CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> ASP

 PopIt Up! popups with Java using same window?

Print topic Send  topic

Author Message
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...
View profile  Send private message
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!!!!!!!
View profile  Send private message
favc4

Posts: 30
Posted: 06/19/2006, 11:46 PM

Works fine! thanks for sharing!
_________________
Programming win32 and went crazy...
View profile  Send private message
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/
>


Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Web Database

Join thousands of Web developers who build Web applications with minimal coding.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.