Solved

HTML-HTML communication

Posted on 1999-01-11
4
227 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
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…
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…

763 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now