It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

Forum

Log In Sponsors
Board index Programming JavaScript Forum

Javascript form question

Javascript form question

Postby darmahart on Fri Jul 31, 2009 9:08 pm

I have passed values from one form to another. I have placed the data in hidden text boxes on the new form. How do I grab the text from the hidden form fields to a table on the page? I have tried document.write and GetElementById.

thanks!
darmahart
 
Posts: 3
Joined: Fri Jul 31, 2009 9:03 pm

Re: Javascript form question

Postby hellsmissingdevil on Tue Aug 04, 2009 6:49 am

hey

u can try this

document.formname.getElementById('elementId').value;

to get value from form
hellsmissingdevil
 
Posts: 6
Joined: Fri Jul 10, 2009 9:40 am

Re: Javascript form question

Postby darmahart on Tue Aug 04, 2009 12:03 pm

Thanks - but that doesn't work with client side form fields.
darmahart
 
Posts: 3
Joined: Fri Jul 31, 2009 9:03 pm

Re: Javascript form question

Postby hellsmissingdevil on Wed Aug 05, 2009 8:19 am

hey can u plz provide your sample code..
so tht i can check n give u a solution
hellsmissingdevil
 
Posts: 6
Joined: Fri Jul 10, 2009 9:40 am

Re: Javascript form question

Postby hellsmissingdevil on Wed Aug 05, 2009 10:38 am

hey
u can use server side code to access tht field..

or u can use request object to get those fields

like request.getParameter() in java
hellsmissingdevil
 
Posts: 6
Joined: Fri Jul 10, 2009 9:40 am

Re: Javascript form question

Postby darmahart on Wed Aug 05, 2009 11:44 am

They didn't want to use server side coding. I suggested that. I solved it another way. I just showed the information in the textbox that was sent from another form and used css to format it to look like it wasn't a text box. This is a quick fix for now. Later they will use a database and do it properly. Thanks for your help!
darmahart
 
Posts: 3
Joined: Fri Jul 31, 2009 9:03 pm


Who is online

Users browsing this forum: No registered users and 1 guest