|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now! |
|
#1
|
||||
|
||||
|
new window unexplainable reload
ok so here is the deal. i'm loading a new window from another page. but when i do for some reason the page it was loaded from kindof reloads, and all you see at the top of the page is
[Object] and the title has changed to a bit of this code i used to create the new window. also when i view source for the page that i loaded the new window from all it says is [object]. what am i doing wrong? here is the code i'm using to open the new window. [CODE<a href="javascript:window.open ('details.asp?detail=<%=rsURL(0)%>', 'newwindow2', config='height=300, width=300, toolbar=yes, menubar=yes, scrollbars=no, resizable=no, location=yes, directories=yes, status=yes')"><img src="images/detail.gif" width="15" height="15" border="0" alt=""></a>[/CODE] any idea what i'm doing wrong?
__________________
My brain cells are like a storm trooper's armor: useless |
|
#2
|
|||
|
|||
|
not a clue, rip out the "java script:" part of window.open and see what happens.....
if not maybe post the code and i'll give it some test runs... |
|
#3
|
|||
|
|||
|
It happens since the Window.open returns a result and that is fed to the <a href=>.
you may have to move the window.open in to a function and call that function on click of the url as <a href="javascript:func()"> that way you can just return true or nothing even. |
|
#4
|
||||
|
||||
|
All u gotta do is... instead of window.open(), use the proper format...
Code:
var new_win = window.open(); That is not only the correct syntax, it also takes care of your return value that is messing up your page. |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > ASP Programming > new window unexplainable reload |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|