generating data in a browser page- please help
Moderator: General Moderators
generating data in a browser page- please help
Hi All
Im still having this horrible problem...
currently when a user selects a cd image, the script calls a function, opens a window and presents the data in a preformated page heres the script:
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")
}
The problem is I need the data and the page 'view_cd_image.php' to be presented in a normal _blank browser window. Can anyone help me change this...ive tried everything.
Thanks a lot
Dan
Im still having this horrible problem...
currently when a user selects a cd image, the script calls a function, opens a window and presents the data in a preformated page heres the script:
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")
}
The problem is I need the data and the page 'view_cd_image.php' to be presented in a normal _blank browser window. Can anyone help me change this...ive tried everything.
Thanks a lot
Dan
If I understand you correctly, you want a "normal" browser-window with toolbar, menubar, statusbar etc.?
If so, use this
P.S.: This is Javascript, not PHP - would have been better to post it in the client-side forum 
If so, use this
Code: Select all
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,toolbar=yes,menubar=yes,status=yes,location=yes")
}still not working
Hi thanks very uch for that..yes youre right this is script..maybe i should have posted on the different forum...
I used that exactly...as quoted and its still throwing up a window with no status bar etc..
what i really want is to do is just have the data presented in a standard browser page..in a chosen frame...
excuse my ignorance
Dan
I used that exactly...as quoted and its still throwing up a window with no status bar etc..
what i really want is to do is just have the data presented in a standard browser page..in a chosen frame...
excuse my ignorance
Dan
below where you seen "FRAME NAME", replace that with the name of the frame you want the page to open in.
win1=window.open("view_cd_image.php?cd_id="+cd_id+"&cd_title="+cd_title+"&cd_image="+cd_image,"FRAME NAME","");
if that still isnt what you're after, ill have to see the page your working on... cause im not sure what you are trying to do =)
win1=window.open("view_cd_image.php?cd_id="+cd_id+"&cd_title="+cd_title+"&cd_image="+cd_image,"FRAME NAME","");
if that still isnt what you're after, ill have to see the page your working on... cause im not sure what you are trying to do =)