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:
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 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.
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.
have a javascript in which i am trying to assign the value to a hiden field and getting the below msg'document.Form1.H_ROWID' is null or not an objecti am getting the value in the alert box but not able to assign it o teh control alert("row " +M_ROWID)document.Form1.H_ROWID.value = M_ROWID
I am currently working on a small Ajax image upload script using some clever iframes, php and a lytebox to create a seamless application. a small link on a page starts my lytebox that essentially opens a new page inside this. this page takes a file upload and using an iframe posts to a php script that will validate the file and upload to the server, the location of this file is then posted back to the iframe for viewing. Once this completes I have a cropping tool available for users to make final adjustments to their image before saving this and sending the new cropped image location to a value of a hidden text box. Once the user is happy with this they can click close to return to the parent page, upon doing this the value of the hidden filed is passed back to parent page and saved into another hidden filed to use. ( To clarify, i use hidden values as the parent page is the actual upload script.
My lytebox version was created to allow usability for users to re-size and crop their image before upload, all this happens in the lytebox to appear like its just a cropping tool.) Its at this point I am having some difficulty. I want to alert the user that the upload has been successful and all that is required is the user to hit save. This was ultimately save the finished image with all the users date in the database. I thought I could use an onchange event to trigger a function that would insert text into a div but this wont work. My code for the parent page and the hidden field is:-
I have a form whereby I can add multiple contacts to a single address. There is only one firstname/lastname/telephone box - when the user clicks the add button, I read the values from the form fields and record them into a hidden text input field. This part works because during debugging, I have converted the <input type=hidden> into a <input type=text> to visably confirm my data is being copied into the 'hidden' field.
Once the user has entered in one or more names, they can click another button and submit the form for processing. My idea is that I would then parse this hidden field server side...
I have a WAMPHP based server and as a test, I dump out my entire $_POST (basically, the name and value in every INPUT tag).
My PHP script picks up the name of every input tag, including the hidden field (like it should) but for some reason, the value that was written to the hidden field is not passed to the server. Thus, for the PHP folk reading this post, my hidden input field is called mylist and $_POST['mylist'] exists, but its empty. Even though before processing, I could visably see the input in the box (for debugging remember, I made the input tag box a normal, unhidden one).
Here is what I have done to try and resolve: - I have used both Mozilla 1.7.5 and IE6 - both provide same results - my hidden field name gets passed, but not its value.
- I have created another hidden field and given it a default value ie I have <input type="hidden" name="extraone" value="xyz"> and I get $_POST['extraone']="xyz" passed to my php server, like I would expect - however, the value of mylist is sent empty, even though it has data.
- I have even put in a javascript alert box just before the form is sent to the server and can see the result in my (unhidden) box, and the same value displayed in the javascript alert - but again, the value of the mylist does not get sent to the server.
The only difference is that my hidden field (even if its displayed like an ordinary text input box) does not post data written to form fields as the result of a javascript function. Interestingly though, the server does know about the input tag box since it does receive $_POST['mylist'], it justs receives it empty.
What gives? If the form reads my input from one field, and writes it to another field, then it should be sent to the server, true?
Also... my tags are all inside my <form></form> tag (which is proven by double checking, and the fact that I do get the input tag box name sent to my server).
Since I can see the data values in the box, it tells me my javascript is doing what it should be doing - so I don't see any point in including my javascript (though I have no problems doing so if someone requests it). On the php server, I am using a simple phpinfo(); to check the data is being received...
i have a form in which a hidden field (initial value as Ɔ', and my javascript set it to Ƈ' when an event is trigged). In the same form, i have a reset field. But I realized that the hidden field is not reset to Ɔ' when i push the reset button. If I simply change the node from
"<input type="hidden" id='IsChanged' value=Ɔ'>" to
i have a page with lots of checkboxes and hidden fields. When i tick a checkbox i want it to give the hidden filed a value. But give it no value if it is not ticked. For every checkbox i have a hidden field is with it. Both the checkbox and the hidden field send information. I have used some js scripts but they don't seem to work with more than one checkbox.Example:
So when box1 is ticked it then gives price1 a value. But if not ticked then the value remains at 0. I want it to give a value of 699.There will be about 100 checkboxes and hidden fields on the page. Also onclick behaviours do not work because it may still send the information if the checkbox is not checked.So for the next checkbox and hidden field i use box2 and price2.
I have modified a free JS function from here: [URL] To dynamically add text fields to the form. My work-in-progress version is here: [URL] On the form, I have a hidden text field:
I want to pass a value received through the Url to another screen with new data by a form using the method="get". I have tried several different ways, my latest attempt was to use a hidden field hoping that would add to the url string but it isn't working.