473,512 Members | 14,457 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Passing information from a document to a standard FORM

rfr
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?

Jun 19 '07 #1
1 1805
rfr wrote:
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?
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
Jun 19 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
2513
by: Richard | last post by:
**** Post for FREE via your newsreader at post.usenet.com **** HI, I am working on a project where I need to input data to a (local) HTML page using multiple form elements, such as text,...
10
2877
by: Noozer | last post by:
Below is some ASP, HTML and javascript. It is part of a page used to maintain a small database. This code did work at one time, but has since stopped. For some reason the data on my form is not...
5
2154
by: Jim Banks | last post by:
Greetings I'm opening a pop up window with a html form, (in one document) and I want to pass a variable to the html form called from the hyperlink. Here's the code I'm using to pop up the...
3
4739
by: Simon Harvey | last post by:
Hi, In my application I get lots of different sorts of information from databases. As such, a lot of information is stored in DataSets and DataTable objects. Up until now, I have been passing...
3
1843
by: A Ward | last post by:
I am trying to find a way to have multiple seperate ASP.Net applications where I can response.redirect() to a second web application and pass information. From what I have tried: * HTTP-GET - I...
6
3932
by: Max | last post by:
Last time I tried to explain this on another forum it didn't go too well, so I'll try my best and if you know what I'm talking about then please tell me how to do this. I have a class, inside I...
22
25549
by: Arne | last post by:
How do I pass a dataset to a webservices? I need to submit a shoppingcart from a pocket PC to a webservice. What is the right datatype? II have tried dataset as a datatype, but I can't get it to...
1
3451
by: grabit | last post by:
Hi Peoples i have a search page with a form field "subject" on my results page i have a paging routine . the first page lists its 10 records no trouble but when i click the "next" link i get a error...
8
3379
by: ridgedale | last post by:
I wonder if anyone could explain how I pass the field values in my request form to the PHP processor page. My external javascript file is as follows: var sections = ; for (var i=0; i <...
0
7153
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7371
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7432
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
7517
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
5077
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3230
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1583
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
791
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
452
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.