
Originally Posted by
Dr Livingston
Okay - no offence was intended btw website - no hard feelings ? none on my part anyways 8)
Well, ok, no hard feelings here too, but simply I have been using the exact line in my websites and it never breaks
(without the php though...)
why are you using that ugly href anyway? what's wrong with a good old fashioned onclick?
Not that I am a javascript expert but does it matter?
ok.. the link now works and displays a new window, but.... in the new window no such file blah blah, then once the window has been closed the original page ie (headlines) now shows exactly this [object] ?
ok, yes Livingstone was right in that there is missing part here
PHP Code:
<a href=\"java script: window.open('article.php" .$id ."', null, 'width=500,height=500')\">". $headline ."</a>
while it should be
PHP Code:
<a href=\"java script: window.open('article.php?id=" .$id ."', null, 'width=500,height=500')\">". $headline ."</a>
My apologies!
also if you would like it to be just the box and no scroll bars etc try this:
PHP Code:
<a href=\"java script: window.open('article.php?id=" .$id ."', null, 'width=500,height=500,status=no,scrolling=no,resizable=yes,scrollbars=no')\">". $headline ."</a>
Then you modify the height, width, status etc as you want it to be.
but why the name of the headline changes to [object] I have abselutely no clue.... Is it still going on with the new part?
Hope that helps.
Bookmarks