Solved

HTML-HTML communication

Posted on 1999-01-11
4
233 Views
Last Modified: 2010-04-09
How to pass parameters between two HTML files?
0
Comment
Question by:dvmadhavi
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

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

Building a website can seem like a daunting task to the uninitiated but it really only requires knowledge of two basic languages: HTML and CSS.
This article discusses four methods for overlaying images in a container on a web page
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…
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…

691 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