Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

reusing a window

Status
Not open for further replies.

Bong

Programmer
Dec 22, 1999
2,063
US
I tried searching but I don't even know how to phrase the search.
I have a Web page with a button attached to a script. Basically, the script does some calculations and then opens a window sending some of the results of that calculation as data. It works fine but I'd prefer if the new page opened in the same window as I started from, as if it were the result of a link.

I'm using this:
Code:
window.open("[URL unfurl="true"]http://localhost/cgi-bin/page1a.py?a="+a+"&b="+b+"&c="+c+"&d="+d);[/URL]
As I said, it works just fine but I suspect there's a different command/method I could use in place of "window.open()".

_________________
Bob Rashkin
 
Try window.location instead.

Code:
window.location=[URL unfurl="true"]http://localhost/cgi-bin/page1a.py?a="+a+"&b="+b+"&c="+c+"&d="+d;[/URL]

----------------------------------
Phil AKA Vacunita
----------------------------------
Ignorance is not necessarily Bliss, case in point:
Unknown has caused an Unknown Error on Unknown and must be shutdown to prevent damage to Unknown.

Behind the Web, Tips and Tricks for Web Development.
 
Phil,
Thanks, but that didn't work for me. The page, page1a.py, doesn't execute at all. At least, the display doesn't change.

_________________
Bob Rashkin
 
missed a double quote:

Code:
window.location=[red]"[/red][URL unfurl="true"]http://localhost/cgi-bin/page1a.py?a="+a+"&b="+b+"&c="+c+"&d="+d;[/URL]



----------------------------------
Phil AKA Vacunita
----------------------------------
Ignorance is not necessarily Bliss, case in point:
Unknown has caused an Unknown Error on Unknown and must be shutdown to prevent damage to Unknown.

Behind the Web, Tips and Tricks for Web Development.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top