Im trying to rewrite a link with a href function. I need to parse a query string within it ('+tid')
But all attempts Have falied. The current onclick/ link function
CODE
<a href="java script:who_posted();">Who Posted?</a>
is attached to my forums 'replys' number colum in forum veiw' {i have no direct access}
it appears in the staus bar on hover as
CODE
<a href="java script:who_posted(428);">Who Posted?</a>
where '428 is the tid (topic id).
I want to write a href link to do this (elsewhere in html) and add the tid of whatever topic
the page is currently on.
see site for clarification (click the 'replies' number next to a title)
http://inny.ipbfree.com/index.php?showforum=1click on any topic, and see a mail href link above. I want to add the who_posted function href there, so that whatever topic your on, the who posted box will work.
code is {no direct access}
CODE
<script language='javascript' type="text/javascript">
<!--
function who_posted(tid)
{
window.open("http://inny.ipbfree.com/index.php?s=&act=Stats&CODE=who&t="+tid, "WhoPosted", "toolbar=no,scrollbars=yes,resizable=yes,width=230,height=300");
}
//-->
</script>
Im not sure to write the new link to include the extra function of adding the topic id (tid)
i tried a few variations on
CODE
<a href="java script:window.open("http://inny.ipbfree.com/index.php?s=&act=Stats&CODE=who&t="+tid, "WhoPosted", "toolbar=no,scrollbars=yes,resizable=yes,width=230,height=300");>Who Posted?</a>
but got 'page not found'
Please help?
This post has been edited by Inny: 18 Mar, 2008 - 05:07 PM