CodeCharge Studio
search Register Login  

Visual PHP Web Development

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

YesSoftware Forums -> Archive -> GotoCode Archive

 open new window

Print topic Send  topic

Author Message
johng
Posted: 06/22/2002, 8:09 AM

I have a url field to a document with the complete path, let's say: c:\documents\mydocument.doc

My problem is that it opens in the same window. How can I open that url in a new window, but at the same time the other url's (other tables) on that page still in the same window.

CC and ASP with templates

John
Nicole
Posted: 06/25/2002, 12:53 AM

John,
to be able to open link in new window it should contain "target = blank" attribute. To do it you should create link manually in form Before Show event. e.g.:
fldfield_name = "<a href = '"&fldfield_name&"' target = blank>"& fldfield_name &"</a>"
Jeroen
Posted: 06/28/2002, 12:14 PM

But what if you want to give the window a name. Because if you click it more than once then it will open a new window every time. You can do it with JavaScript. But how will I do this in CCS. I've tried to use the event onClick ( onClick="window.open('http://www.website.com/home.html','homewindow','width=400,height=200')"> ).
This works, but I want to get the url from a database table. I used the link button, but this will only put it in "a href". But I want it in the JavaScript line. For example: onClick="window.open({homelink}','mywindow','width=400,height=200')">.

I'm using PHP and MySQL.

Jeroen
www.labs4.com
Posted: 06/28/2002, 5:38 PM

Jeroen,
I had the same problem and then I found that only solution is to duplicate the label in the grid. It means that I have to place {homelink} label anywhere in the grid properly and then just re-use it in onClick="window.open... tag and it will work fine.

Josef
Jeroen
Posted: 06/29/2002, 2:06 AM

Thank you very much for the help.

   


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

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


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