Solved

Parameters between pages HTML

Posted on 1998-09-24
1
149 Views
Last Modified: 2013-12-25
Can anybody give me an Example?

Y 'am working with Java and Y have 2 HTML pages in the same Window of the Browser.
In Page A  Y am calling Page B with the statement showDocument like this :

showDocument(PageB)
This works fine but if Y have to pass a Parameter should Y do like this ?
showDocument(PageB?name=value)

If it`s like this how should be the code of PAGE B ( the code to receive the parameter).

Y'am not shure if Y'am doing this rigth.
PD: Y heard something about CGI but Y don't know much ( so Y need an Example)


 
0
Comment
Question by:cari
[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
1 Comment
 
LVL 11

Accepted Solution

by:
mouatts earned 150 total points
ID: 1828813
I presume you are talking about javascript and not Java. Anyhow if page B is a plain HTML page you cannot simply pass it a parameter in the way that you have done. The approach that you have taken would be fine if it were a CGI (which is a program) that outputs the HTML.

As you state that it is plain HTML the way to pass the parameters is to have some Javascript in page B which is executed when the page loads and fetches a parameter from page A.

The code would be along the lines

pageb.myvalue=pagea.myvalue

where pagea and pageb are the frame names and myvalue are the variables that hold the value in each page.

The code would be executed by using the onLoad event in the body statement of page b.
If it is indeed a CGI that you want then there is a lot to be covered and you would be better to read up on CGIs and then repose any questions that you have (specifing the language that you are using).
0

Featured Post

How our DevOps Teams Maximize Uptime

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us. Read the use case whitepaper.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
excel file 5 78
Disk Ram Peak 1 54
Chocolatey under PowerShell is not working properly 3 77
Copying directory listing to specific files in another directory 8 30
If you get a (Blue Screen of Death), your system writes a small file called a minidump. Your first step is to make certain your computer is setup to record memory dumps. Right click My Computer, choose properties. Click on the advanced tab, an…
It is becoming increasingly popular to have a front-page slider on a web site. Nearly every TV website,  magazine or online news has one on their site, and even some e-commerce sites have one. Today you can use sliders with Joomla, WordPress or …
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

756 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