favc4
Posts: 30
|
| Posted: 06/19/2006, 7:37 AM |
|
Hi all there, this is regarding a function in Javascript (very low knownledge about java) the function is:
function OpenPop_UpList()
{
var FieldValue;
var linkhref = document.getElementById("TituloScript_Id").href;
var win=window.open(linkhref, "Pepotrulo", "left=690,top=10,width=580,height=700");
win.focus();
}
The issue is that I need a second PopUp (different, new window) the issue is when cliking on second link to get the second popup launched, it appears over the first popup window leaving its original address instead of just launching a different, new window... Can you please give some help???
Thanks guys & girls!
cHUCk
_________________
Programming win32 and went crazy... |
 |
 |
marcwolf
Posts: 361
|
| Posted: 06/19/2006, 4:33 PM |
|
Hi There Favc4
The problem you are having is that you are assigning the same name to the new window and thus the system is using its instance again
Have a look at this link
http://www.webreference.com/js/tutorial1/open.html
Now from what the article describes if you do this then it should work
var win=window.open(linkhref, "_blank", "left=690,top=10,width=580,height=700");
And you will get a new popup each time.
Hope this helps
Dave
_________________
' Coding Coding Coding
Keep Those Keyboards Coding.
Raw Code!!!!!!!
|
 |
 |
favc4
Posts: 30
|
| Posted: 06/19/2006, 11:46 PM |
|
Works fine! thanks for sharing!
_________________
Programming win32 and went crazy... |
 |
 |
DonB
|
| Posted: 06/20/2006, 1:23 PM |
|
I believe it is because the window name (2nd parameter of the .open)
identifies what window to use.
--
DonB
http://www.gotodon.com/ccbth
"favc4" <favc4@forum.codecharge> wrote in message
news:64496b6ba22b74@news.codecharge.com...
> Hi all there, this is regarding a function in Javascript (very low
knownledge
> about java) the function is:
>
> function OpenPop_UpList()
> {
> var FieldValue;
> var linkhref = document.getElementById("TituloScript_Id").href;
> var win=window.open(linkhref, "Pepotrulo",
> "left=690,top=10,width=580,height=700");
> win.focus();
> }
>
> The issue is that I need a second PopUp (different, new window) the issue
is
> when cliking on second link to get the second popup launched, it appears
over
> the first popup window leaving its original address instead of just
launching a
> different, new window... Can you please give some help???
>
> Thanks guys & girls!
>
> cHUCk
> _________________
> Programming win32 and went crazy...
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>
|
|
|
 |
|