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 -> General/Other

 making a link to a pop-up window

Print topic Send  topic

Author Message
GeorgeS

Posts: 206
Posted: 10/16/2004, 7:06 PM

This is what I have now:

<a href="{link}" onclick="openWindow('{link}','upload','toolbar=yes,location=yes,width=500,height=500')">mylink</a>

If I change href="{link}" to href="#" in HTML
CCS always deletes link control when I click F8.

What is the proper way of creating popup links in CCS?

Thank you

_________________
GeorgeS
View profile  Send private message
E43509

Posts: 283
Posted: 10/16/2004, 9:00 PM

Perhaps this example will help
http://examples.codecharge.com/ExamplePack/PopUpList/PopUpList.php
View profile  Send private message
GeorgeS

Posts: 206
Posted: 10/16/2004, 9:13 PM

Thanks, but this example doesn't have pop-up windows.
_________________
GeorgeS
View profile  Send private message
Tuong Do
Posted: 10/17/2004, 10:59 PM


Try this


function popwindow(mypage,myname,w,h,scroll,pos){
var win=null;
if(pos=="random"){LeftPosition=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;TopPosition=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;}
if(pos=="center"){LeftPosition=(screen.width)?(screen.width-w)/2:100;TopPosition=(screen.height)?(screen.height-h-100)/2:100;}
else if((pos!="center" && pos!="random") ||
pos==null){LeftPosition=0;TopPosition=20}
settings='width='+w+',height='+h+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',location=no,directories=no,status=yes,menubar=no,toolbar=no,resizable=yes';
win=open(mypage,myname,settings); win.focus();}


<a href="{link}" onclick="popupwindow(this.href, 'popup1', '800',
'520','yes','centre');return false" </a>





"GeorgeS" <GeorgeS@forum.codecharge> wrote in message
news:24171d3adadf16@news.codecharge.com...
> This is what I have now:
>
> <a href="{link}"
> onclick="openWindow('{link}','upload','toolbar=yes,location=yes,width=500,height=500')">mylink</a>
>
>
> If I change href="{link}" to href="#" in HTML
> CCS always deletes link control when I click F8.
>
> What is the proper way of creating popup links in CCS?
>
> Thank you
>
> _________________
> GeorgeS
> ---------------------------------------
> 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.