Reply
Hidding an Input field in a form
Old 10-29-2006, 09:24 AM Hidding an Input field in a form
Junior Talker

Posts: 2
Hi

I am trying to update a hidden field in a form. here is what i am trying to do.

i have a form. it contains a image table with click able images..so input type = image
AND it contains an iframe which is the part i update using cgi.

So the problem is i don't know where to put this Hidden field..to the table or to the iframe.

the use of the hidden field is, it carries all the past infomations where the user clicks(and some other stuff too)

when i keep the hidden field in the iframe tag, the info of hidden field is not passed to the server (cgi)

& it works when i keep the hidden field out side the iframe & table tags BUT inside the form tag. whether it works this way...How do i update that field when the cgi program updates the things in the iframe..

hOPE u understood this..

Can anyone plz comment on this..I need an idea very soon.

Thanks
eudos is offline
Reply With Quote
View Public Profile
 
When You Register, These Ads Go Away!
Old 10-29-2006, 10:11 AM Re: Hidding an Input field in a form
chrishirst's Avatar
Super Moderator

Latest Blog Post:
Am I impressed or what?
Posts: 14,876
Location: Blackpool. UK
quite simple; It HAS to be inside the <form> </form> elements and you will have to use javascript in the iframe page to update the parent form.
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
Indifference will be the downfall of mankind, but who cares?
Code Samples | People Counting System
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 10-29-2006, 01:41 PM Re: Hidding an Input field in a form
Junior Talker

Posts: 2
Quote:
quite simple; It HAS to be inside the <form> </form> elements and you will have to use javascript in the iframe page to update the parent form.
Can any one plz tell me the java script ..i am dont know java at all..

thanks
eudos is offline
Reply With Quote
View Public Profile
 
Old 10-29-2006, 01:46 PM Re: Hidding an Input field in a form
ADAM Web Design's Avatar
Canadastaninianite

Posts: 5,945
Name: Adam for web page design, not program
Location: Toronto, Ontario, Canada
You're not going to find a javascript for your specific application, simply because the usage of iframes isn't all that common to begin with.

My suggestion to you would be NOT to use an iframe, but to use a scrolling div instead. The only reason to even use iframes that I've found is to direct users to external websites within the layout of the original website.

In other words, rebuild your page using a scrolling div for the content and then use Javascript if it's still necessary to do what you want.

Here's the code for a scrolling div:
Code:
<div style="width:  (width);  height:  (height);  overflow:  auto;">
Your content here.
</div>
ADAM Web Design is offline
Reply With Quote
View Public Profile Visit ADAM Web Design's homepage!
 
Reply     « Reply to Hidding an Input field in a form
 

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.12848 seconds with 12 queries