How can I get my data presented in a blank frame

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
sauron98
Forum Newbie
Posts: 16
Joined: Mon Jun 30, 2003 1:42 pm

How can I get my data presented in a blank frame

Post 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
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

try _blank as window name
sauron98
Forum Newbie
Posts: 16
Joined: Mon Jun 30, 2003 1:42 pm

Post 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
User avatar
phpScott
DevNet Resident
Posts: 1206
Joined: Wed Oct 09, 2002 6:51 pm
Location: Keele, U.K.

maybe quotes

Post 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
sauron98
Forum Newbie
Posts: 16
Joined: Mon Jun 30, 2003 1:42 pm

Post by sauron98 »

thanks a lot man

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