Jump to content

Php Link New Window


Jacket

Recommended Posts

Okay, this is what I have currently. I have a loop that is set up to display the contents of a database. Not very complicated. I also have it set up so that one of the chunks of data is a link to another page with just that row displayed. This is what I want to do. I want the link to open up the new page in another window (have that part), but I want to be able to configure the new window (no toolbars, no scroll, h/w dimensions, etc..) much the same way that you use the Javascript to do this. I have tried to do it with Java, but so far I've had no such luck. Any help is welcomed!

 

http://gsg.graceland.edu/initiative.php to see what I have so far.

Share this post


Link to post
Share on other sites

Why not try something like this, in JS:

function WinOpen() { 
msg=open("http://somedomain.com/newwindow.php","DisplayWindow","toolbar=no,directories=no,menubar=no,resizable=1,width=399,height=890"); 
} 
document.write("Link Title");

Share this post


Link to post
Share on other sites

There isn't anything wrong with the

document.write('".$row['inidesc']."');

 

line of code, it should work fine. Obviously it is null. Try to echo that variable and see if it is null.

Share this post


Link to post
Share on other sites

There isn't anything wrong with the

 

document.write('".$row['inidesc']."');

 

 

line of code, it should work fine. Obviously it is null. Try to echo that variable and see if it is null.

 

I wasn't having a problem with that portion of the code, it's getting the link to show up. Is there another place in the page that I need to add JS?

Edited by Jacket

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...