Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / HTML, CSS, Scripts / JavaScript / June 2007



Tip: Looking for answers? Try searching our database.

Passing information from a document to a standard FORM

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
rfr - 19 Jun 2007 15:55 GMT
I have a need to use a single version of a Visitor Response Feedback Form on
numerous
HTML documents. Rather than have numerous versions of this, one on each HTML
document, it makes more sense to have ONE FORM and use it from each HTML
document that needs it.

But, the visitor should see a title on the form that relates to the specific
page about which they are giving the feedback. And the results of the form
must include what page was being viewed.

Passing a variable from the visited HTML document to the Form seemed like it
should be simple. Ha ha ha!

I Googled for some examples.

I found one that did it the other way around and passed variable from a Form
to an HTML document. But, I could not get this process to work feeding INTO
the Form. http://www.netwood.net/~kosenko/JS5.html

Does anyone have an example of how to pass a variable INTO a Form from
another HTM document? Or know where there is a tutorial?
Erwin Moller - 19 Jun 2007 16:33 GMT
> I have a need to use a single version of a Visitor Response Feedback Form
> on numerous
[quoted text clipped - 17 lines]
> Does anyone have an example of how to pass a variable INTO a Form from
> another HTM document? Or know where there is a tutorial?

Hi,

It is actually not very complex.
We must know where the forms are to give you the excact code.

A few relevant questions:

Are the forms in the same page?
Or is one form in another window?

If so, what are the names of the windows?
Or can the popupwindow (if any) adres the former window via opener?
What are the names of the forms?
What is the name of the variable you want to pass?

Are both pages in the same domain?

A few solutions are possible: passing direct via GET, like opening this:
http://www.example.com/feedbackform.html?origin=bla1

You can read ?origin=bla1 from feedbackform.html

Or you can let the feedbackform query the other page, if they are in the
same domain.

Or use a cookie.

regards,
Erwin Moller
rfr - 29 Jun 2007 05:54 GMT
The form will be a separate page within the same domain.

There will be numerous documents (20+) evoking the same form and passing
several variables to the form so that the form can  provide the visitor the
proper title and when submitted can include which document evoked the form.

I am not a javascript coder. Tho I do use some cut 'n paste script and am
able to modify some of this stuff.

>> I have a need to use a single version of a Visitor Response Feedback Form
>> on numerous
[quoted text clipped - 48 lines]
> regards,
> Erwin Moller
Lee - 29 Jun 2007 21:33 GMT
rfr said:

>The form will be a separate page within the same domain.
>
[quoted text clipped - 4 lines]
>I am not a javascript coder. Tho I do use some cut 'n paste script and am
>able to modify some of this stuff.

The important question that you didn't answer is whether the form
opens in the same window as the document, or does it pop up as a
new window.

Please don't top-post in this group.  That is, please put your response
AFTER what I've written, instead of at the top of the message.

--
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.