Forum Moderators: coopster

Message Too Old, No Replies

PHP and JS

need a combo, cannot figure it out

         

henry0

5:51 pm on Jun 1, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



<A HREF= $url($i+($cur_page * records_per_page)).".$title
</A></STRONG>\n";

this works fine
but I need to combine it with:

<a href="javascript:void(window.open('http'))">title</a>

where 'http' would be $url
and title would be $title

by doing so when closing a browser the user is still kept on the main site where from he/she clicked the link

thank you

Henry

jatar_k

6:31 pm on Jun 1, 2004 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



this maybe?

echo "<strong><a href=\"javascript:void(window.open('" . $url($i+($cur_page * records_per_page)) . "'))\">$title</a></strong>\n";

henry0

7:01 pm on Jun 1, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Thanks
jatar_k
sorry but it does not work

jatar_k

7:07 pm on Jun 1, 2004 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



look at the output then and adjust the portion where the error is

the code you posted was a little mismatched and looked like it was chopped out of something. I made some guesses.

henry0

12:24 pm on Jun 2, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Jatar_K
well I had to reposition a few elements
within that script
and made it working
thank you

Henry