Okay, new to this magical thing called Javascript and LOVING it. Don't know how I avoided it all these years. :thumbsup:
Running into a stupid issue and I am sure it is just something I am missing. I have a hidden field in my page with the default value of HELLO. I am trying to make a change based on the default value, but I obviously am doing something wrong because it won't display my hidden field value. [code]...
I have the following hidden field within a form:<input type="hidden" name="test12" value="test12" />I also have the following function which does something if that field exists:
When someone arrives at my site I want certain tables to be displayed by default and others hidden. On each one of them I want there to be an image that will be a plus sign (eg. plus.png) for the hidden ones and a minus sign (eg. minus.png) for the shown ones. When someone for example clicks on the plus.png image on a hidden table I want the table to show itself and the image to change to the minus.png one.
My site, lizbmorrison.net, uses an adapted version of superbgimage and I've been trying to find what controls the visibility of #showtitle. Currently its automatically hidden when the page loads, and can be toggled by the info button in the lower right corner, but I'd like it to be visible by default.
I have a single select dropdown in my application which is hidden for one type of user group. Before a user from this group can save any data, I have to explicitly select the default value of this dropdown for him as this dropdown is not visible to him.
Issue: In IE, this default value doesn't get selected as it is not populated but works fine in Firefox. Is this a jQuery bug?
I've been having problems trying to figure this out and my nooby skills can only go so far... :)Basically I have a page that allows a user to select a specific category which links them to another page that has a series of radio buttons. By default I want to have that category checked according to what they selected.I've been able to pass the category variable with no problem but can't get it to default check...So far my Javascript looks like this:
<script type="text/javascript"> var category = category3 function autoForm(){
I have a javascript function for DOM scripting Its a search with certain Nodes which by Default is checked upon clicking the submit button it shows results in a diff table
The problem is that it works perfectly fine in Mozilla ,Firefox but Not Internet Explorer. The check boxes next to the Nodenames are not checked and the search does not display the results in a table. however it works perfectly fine in Mozilla browser. In IE it shows an error with 'a object required' for checked boxes . As i think, It s coming from the save search option function, i am not sure if i have to create another object for calling the .checked operation in the search table Code:
I have created a html purchase request form that people will fill out and submit to make purchase requests within my company. In this html form, I have a text field that is automatically populated when the page is pulled up. The text field is populated with the name of the person who is logged in and it is read only so they cannot be deceitful or anything.To get to this HTML Request form, you must log in through a webclient thus the server knows to populate your name because you are the one logged in. The text field populates because of its <input NAME = "OBProperty_CurrentUserRealName", which is a keyword the program identifies and knows to populate with the logged in users name into that particular text field.
That works all fine and dandy, so here is where the problem lies. When submitting the overall form request, the populated name isnt being saved/ carried over to the admin page so we do not know who it was submitted by.To make the persons name carry over and save, another field name keyword must be used.
Which is OBKey__163_1. Which it was suggested to me to make that the input name of a hidden field. I need "text field A" to continue to populate the form with the persons name using OBKey_CurrentUserRealName, then pass the persons name off to a hidden field containing the input name=OBKey__164_1, which will thus save/pass the persons name on with the rest of the filled out request form when its submitted.
This is my form, i would like to default the select box to USA, and default the text field to a name such as 'Sarah' and the hidden field to another number like ??', when the user clicks on the check box, otherwise the fields should be blank, the value of the select box dosnt matter much, only that it defaults to USA, when the user checks it.
Am using Struts framework. I want the cursor to be on the first field (text box/select box) when i run the JSP. I've tried with the following command <body onLoad="document.login.userid.focus"> login is my form name and userid is text box name where I want the cursor to be but it didnt work.
When a user has entered text into form fields and hits the Save button, the text is saved into local storage. When they hit the Load button at a later date, the text fields are populated.If the user does NOT enter text and hits the Load button, the default empty text fields are populated with the word "undefined." How do I keep the field blank? Because if they do this accidentally, they'll be hitting the back button repeatedly to delete the word in every field (this is on an iPhone).Here is the Load code:
Code: /* * Insert data into form fields from local storage.
My users are requesting that when they goto my search page, that the cursor already be blinking in the keyword field. Currently you have to click in there with your mouse. Is there an easy way to do this with PHP or even HTML?
How to reset an input field to its default value, which is depend on another. There is a way to clear the input field but not resetting to its default value.
Example
I have 2 radio buttons. Depends of the radio button selection some other input fields are required. Those things are already done using the click function. It clears the input field. But I need to reset to its default value.
It shows a default value which dissapears when the user clicks on the password field. However, because the input field type is set to 'password', whatever I set as the default value is masked by *
Is there any way around this to make normal text appear but still have the input box masked when they start to type the password?
I have to add some technique which will solve the following problem. A form is presented to the user in our web application. Say it has
4 text fields, 2 radio buttons (Yes / No) 1 checkbox 1 select list.
Now 2 textfields are pre-populated, one radio button (Yes) is pre-selected, checkbox is not checked, one option from select list is preselected.
Problem: In 90% of the cases, all that the user needs to do is enter values in the 2 empty textfields and click Submit.
However, the user might change the values in the preselected controls, like check the checkbox, change radio selection from Yes to No, select a different option from the select list, change the default values from the prepopulated text fields.
Now in such a case where 'default' values are changed, I need to show a alert or a popup layer to the user when the submit button is clicked.
Showing a popup layer or an alert: The popup layer/alert will be a confirmation popup which will say something like -
"You have changed the default values for:[all the fields which were changed by user]. This requires you to do [some task] once you submit the form.
If you do not wish to change these defaults, click Cancel. To proceed with the changes, click OK and then Submit."
Clicking OK: If user clicks OK, then all is well. User will click Submit to submit the form and do some task which is required when defaults are changed.
Clicking Cancel: If user clicks Cancel then the defaults should be restored. User is now free to click Submit. Code:
so I have a form page for a cart to checkout, on the first page, I am using the form action get and the page to pass the variables in the url to...
on the next page, I have grabbing some of them using the document.indexOf function...works great just using document.write(what is returned from the indexOf function); obviously, this just outputs the value in text, however, I need to set the value of a specific hidden field on the same page/form to that of what is returned by what I described above:
I am still learning jquery but I am wondering why this code does not work. I have a select field called item_name and a hidden field called amount. Based on the selection in item_name, I want to set the value of the hidden field (amount) to a set value. For example:
$(document).ready(function () { $('#item_name').change(function () { var value = $('#item_name').val(); if(value == "institutional memberhip"){ $("#amount").val("$349.00"); [Code]...
I'm looking for a quick example of how to make a "word" have an onclick event that sets the value of a hidden radio button to true.
I've search for inline examples but couldn't find one online.
This is the code I have but it is not working. You should see I was trying to make the + and - signs trigger setting a radio button to true, which then triggers a sql search. code...
I want to have a window pop up with a form. When the form is submitted, it needs to pass along the URL of the original window. If find on th web eight gazillion descriptions of how to pass data from one page to another via hidden fields, but not a word about how to pass that data a second time. Code:
I have a little bit of Javascript that runs fine, but I am trying to write some XML out so that it is the value of a hidden field. When I put it in the hidden field, it just shows the javascript instead of the value.
So, instead of showing the value of i++ it is showing <script>i++</script>
What I want it to show:
What it is showing
It works in the regular page, just not when I make it the value of the hidden form field. Sorry, kinda new to javascript.