User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the JavaScript / DHTML / AJAX section within the Web Development category of DaniWeb, a massive community of 427,378 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,045 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our JavaScript / DHTML / AJAX advertiser: Lunarpages Web Hosting
Views: 524 | Replies: 0
Reply
Join Date: Oct 2005
Posts: 236
Reputation: Inny is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 5
Inny's Avatar
Inny Inny is offline Offline
Posting Whiz in Training

Question ParseQueryString in href function?

  #1  
Mar 17th, 2008
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

<a href="javascript: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

<a href="javascript: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=1

click 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}

<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>
Always carry a flagon of whiskey in case of snakebite and furthermore always carry a small snake.
W. C. Fields
AddThis Social Bookmark Button
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb JavaScript / DHTML / AJAX Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the JavaScript / DHTML / AJAX Forum

All times are GMT -4. The time now is 4:00 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC