ASP Forum
please help me on asp, javascript!
eeswar | Posted 1:14pm 25. August 2009 Server Time |

Hai,

i am trying to add email this page to a friend option for my webpage, i am passing the current URL with request.servervariable like....

<%Thispage ="http://" & Request.ServerVariables("SERVER_NAME") & Request.ServerVariables("URL") & "?" & Request.Querystring%>

<a href="send_this_page.asp?article=<%=thispage%>" target="_blank"><img src="images/mail_icon_s.gif" border="0" alt="Mail" /></a>.....

i need to open the window as a popup, so i added javasctipt in the tag .....

<a href="javascript:poptastic('send_this_page.asp?article=<%=thispage%>);" target="_blank"><img src="images/mail_icon_s.gif" border="0" alt="Mail" /></a>

now the problem is that in the new window i am getting url as....

javascript:poptastic('send_this_page.asp?article=http://www.suryaa.com/suryaa_new/showcinema.asp?ContentId=12584);

instead of...

send_this_page.asp?article=http://www.suryaa.com/suryaa_new/showcinema.asp?ContentId=12584

please suggest how to open popup without messing up the URL..

thanks a lot!

gnan


Reply to Post please help me on asp, javascript!



Back to Forum Page