Forum Moderators: phranque

Message Too Old, No Replies

mod_rewrite and JS popups? Urgent help needed please!

         

KyleMcD

10:07 pm on May 17, 2005 (gmt 0)

10+ Year Member



Hi, I'm sorry to make my first post here a desperate plea.but urgent help is needed!

I am using the following code
RewriteEngine On
RewriteRule ^([a-z-]+)/([a-z-]+)?/?$ bandpageurl.php?bandurl=$1&section=$2 [L]

Which sends
mysite.com/the-band-name/home
to
mysite.com/bandpageurl.php?bandurl=the-band-name&section=home

All is working fine and links within the pages are working too. Here is my problem; on this page I have a few includes. Within the includes are a few links which bring up popup windows. It uses the following code:
<?php echo"<a href= \"$urlrev\" onclick=\"window.open('$urlrev','popup','width=420,height=350,scrollbars=yes,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no,left=50,top=100');return false\"><u>View all reviews written by this member</u></a>";?>

But every popup I have on these pages bring a 404.

If I manually direct my browser to
mysite.com/bandpageurl.php?bandurl=the-band-name&section=home, the js popups work fine on the page.

All works fine. Does JS try to look at the URL for the path? I noticed that if I just mouse over the links it shows the correct path.

Please help, this one is urgent!

Thanks

KyleMcD

10:40 pm on May 17, 2005 (gmt 0)

10+ Year Member



NM,

I switched to absolute url's and it seems to be working fine.