Page 1 of 1

How can I get my data presented in a blank frame

Posted: Tue Jul 01, 2003 9:54 am
by sauron98
Dear All

Excuse another newbie question. Im really stuck again. I have a script that when you press on an image it opens up window with the data stored for that image.

What i want to do is get rid of this 'view' function and just have the data presented in a blank window. A normal browser window.

Im not sure if its possible but if there is anyone who wants to save me many hours...with some assistance here is the function

function view(cd_id,cd_title,cd_image)
{
win1=window.open("view_cd_image.php?cd_id="+cd_id+"&cd_title="+cd_title+"&cd_image="+cd_image,"","width=650,height=250,top=100,bottom=100,left=100")
}


Thanks everyone
Dan

Posted: Tue Jul 01, 2003 10:22 am
by volka
try _blank as window name

Posted: Tue Jul 01, 2003 10:47 am
by sauron98
Hi there

thanks so much for the help!

I tried what you said. it opens a blank frame. but doesnt open up the php page in it. I cant delete the following

view_cd_image.php
is there anyway I can add the blank tag to that line...keeping the rest?
cheers Dan

maybe quotes

Posted: Tue Jul 01, 2003 11:30 am
by phpScott
It could be a quoting issue.
Usually when I have to create the url and open it in a new window I will creat the url first then just subsitite in. Like so.

Code: Select all

function view(cd_id,cd_title,cd_image)
{
url="view_cd_image.php?cd_id="+cd_id+"&cd_title="+cd_title+"&cd_image="+cd_image;
win1=window.open(url, "width=650,height=250,top=100,bottom=100,left=100");
}
That why I don't get to lost in the quotes.
I also noticed that you had a , where a + should have been at the end or your url.

phpScott

Posted: Wed Jul 02, 2003 9:39 am
by sauron98
thanks a lot man

but im still stuck on this...see latest
cheers Dan