473,385 Members | 1,397 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

how to stop - window.open()

How can i change the following so its just a regular link & stays in
its current window?

window.open ("ShowProp.asp?ref=" + GetNodeValue(curNode, "PROPREF") +
"&ReqParty=<%= Session("SearchNoOfPeople") %>","details" +
Math.floor( Math.random()* 100000) + "_" + nodeId );

May 17 '07 #1
3 2063
window.open ("ShowProp.asp?ref=" + GetNodeValue(curNode, "PROPREF") +
"&ReqParty=<%= Session"SearchNoOfPeople") %>", "_self");


May 17 '07 #2
dylanb wrote:
How can i change the following so its just a regular link & stays in
its current window?

window.open ("ShowProp.asp?ref=" + GetNodeValue(curNode, "PROPREF") +
"&ReqParty=<%= Session("SearchNoOfPeople") %>","details" +
Math.floor( Math.random()* 100000) + "_" + nodeId );
<a target="_self" title="whatever" href="ShowProp.asp?ref=X&ReqParty=<%=
Session("SearchNoOfPeople") %>&details1234567890_nodeId">whatever</a>

Something along those lines...

Bear in mind, to get your "GetNodeValue()" stuff you need to write it
with JavaScript, e.g. document.write, innerHTML, or whatnot.

The rest is code written by your server's script. ASP maybe? So, as
long as what it sends to the client UA is dynamic (e.g. server-side),
you are set.

--
-Lost
Remove the extra words to reply by e-mail. Don't e-mail me. I am
kidding. No I am not.
May 18 '07 #3
dylanb wrote :
How can i change the following so its just a regular link & stays in
its current window?

window.open ("ShowProp.asp?ref=" + GetNodeValue(curNode, "PROPREF") +
"&ReqParty=<%= Session("SearchNoOfPeople") %>","details" +
Math.floor( Math.random()* 100000) + "_" + nodeId );
You have to get ride of the window.open execution. By definition,
window.open functions will always create a secondary window or will load
the referenced resource into a (already created) secondary window (here,
the window named "details"). Another idea is to recycle, reuse the
details window if it was already created and still existing.

Please provide a link, an url if you want to get a working solution.

Gérard
--
Using Web Standards in your Web Pages (Updated Apr. 2007)
http://developer.mozilla.org/en/docs...your_Web_Pages
May 18 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Baffin Shea | last post by:
Dear All, I am a beginner in javascript and looking for help, I put the following script in the original.asp: function NewWindows() { window.open("abc.asp", "new") }
2
by: siggy2 | last post by:
Hi All, (sorry for my bad english) I wrote a __tiny__ and __stupid__ recursive script directly into pythonwin interactive window with a time.sleep(1) and a print before each recursion... I...
4
by: David | last post by:
Hi everyone, I am trying to stop an image preload sequence by the click of a mouse but have been unsuccessful trying several methods. Imagine this simple script below that loads 50 images to...
11
by: Frank Rizzo | last post by:
Hello, My c# based windows service takes a while to dispose. I have to release bunch of resources all over the place and unfortunately it can take 20-40 seconds before I can cleanly exit. ...
8
by: Matt Theule | last post by:
While stepping through an ASP.NET project, I found that data was being inserted into my database even though I was not stepping through the code that inserted the data. I have a single page with...
1
by: Raterus | last post by:
Hello, I'm using Firefox now as my VisualStudio 2003 browser for debugging my asp.net applications. It's great, when I debug, a new tab is opened into Firefox, and I can debug normally. My only...
6
by: John (Z R) L | last post by:
Hi all, I am very new to programming, and I chose to study the Python language before C++. I am currently using the Wikibooks "Non-Programmer's Tutorial for Python", and am up to the section "Who...
3
by: mark4asp | last post by:
How can I stop my Calendar control from firing the form validation events? I have a form containing several controls which have several validation controls each. One control is a TextBox...
1
by: Lie Ryan | last post by:
On Wed, 01 Oct 2008 11:33:59 +0100, dudeja.rajat wrote: The root window is the main window, not the DOS box. I think in windows, you should use pythonw.exe or something to open the python...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.