Solved

HTML-HTML communication

Posted on 1999-01-11
4
231 Views
Last Modified: 2010-04-09
How to pass parameters between two HTML files?
0
Comment
Question by:dvmadhavi
4 Comments
 

Accepted Solution

by:
tgoglia earned 20 total points
ID: 1841602
You can't pass parameters between one pure HTML page and another.
You need to use a cookie of some sort, or store the information in one HTML frame and swap out the other- then use a scripting language to pass the information from the frame containing the parameters to the page newly loaded in the other frame.
Hope that helps...
0
 
LVL 28

Expert Comment

by:sybe
ID: 1841603
If the pages are both in the same browser-window (so if you use frames), then parameters can be interchanged using javascript. This can also be done between different instances of the same browser, but only if you know how to refer to those instances (for example if you have used "window.open".

0
 

Expert Comment

by:rodnolan
ID: 1841604
I am assuming that you want to take text that has been entered into an <input type="text"> and display it in another page. If this is the case you can use the Session object to store text values as variables and then use them in any other page in the site. This requires the use of Active Server Pages and a server that supports them. I recommend Microsoft Personal Web Server for testing and Microsoft Internet Information Server for the live site.

An important point is that the pages MUST be viewed from a web server; ie: just opening the file on your local disk using the File|Open command in the browser won't work. Also, I haven't tested this with Netscape so I really don't know if it works but I doubt it. If this sounds like an option you'd like to explore, I can post some samples.

In the meantime, you can read more about the Session Object and ASP Cookies by visiting the MSDN Online Library and searching for "Session". The document entitled Managing Sessions is quite good. http://msdn.microsoft.com

Good Luck


0
 

Expert Comment

by:clique10
ID: 1841605
The Above comments may very well work in different Frames, but I am having a typical problem with the same type.
I am having Two Web Servers.
Displaying a FrameSet with Two Frames
Frame #1 Contains Page #1 from WebServer #1
Frame #2 Contains Page #2 from WebServer #2

Page #1 of Frame #1 Contains a Button On Clicking Which I have to Pass a Hard-Coded Value to a Text Box on Page #2 of Frame #2

I have Used JavaScript, VBScript on IE4.0 & IE5.0(Beta) both browsers fail but,
Netscape Navigator & Communicator does this.

On Enquiring this typical scenario with Microsoft, they say its a Security Feature but How to disable this security feature so that I can solve my possibility of running the applicaion is not known.

Hope You guys are having a Quick and Fast Solution for this.
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article describes how to create custom column layout styles for Bootstrap. The article uses 5 columns to illustrate the concept, but the principle can be extended to any number of columns.
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
In this tutorial viewers will learn how to position items using CSS's three positioning types Create a new HTML document with an internal stylesheet.: Create another div in CSS and name it Absolute : Type "position:absolute;" and "top:10px; left:50p…
In this tutorial viewers will learn how to embed Flash content in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <object> tag to embed Flash content.: To specify that the object is Flash content, d…

808 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question