Solved

HTML-HTML communication

Posted on 1999-01-11
4
232 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: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering 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

Suggested Solutions

Title # Comments Views Activity
Do alert on select 6 26
Validating Date 4 29
Html split(text) Part2 6 23
Hta File displays dynamic File names 4 49
This article discusses four methods for overlaying images in a container on a web page
Is your Office 365 signature not working the way you want it to? Are signature updates taking up too much of your time? Let's run through the most common problems that an IT administrator can encounter when dealing with Office 365 email signatures.
In this tutorial viewers will learn how to code links for mobile sites that, once clicked, send a call or text to a specified number. For a telephone link (once clicked, calls a number), begin with a normal "<a href=" link tag. For the href, specify…
In this tutorial viewers will learn how to embed videos in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <video> tag to insert a video. Define the src as the URL of your video; this is similar to …

733 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