Go Back   CodingForums.com > :: Client side development > JavaScript programming > JavaScript frameworks

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 11-25-2009, 02:24 PM   PM User | #1
lauthiamkok
Regular Coder

 
Join Date: Dec 2008
Posts: 117
Thanks: 14
Thanked 0 Times in 0 Posts
lauthiamkok is an unknown quantity at this point
jquery: getting the variable's value from a link

Hi,
Is it possible to get the values of variable from a link and then pass it into javascript?

for instance from the link here,
Code:
<a href="incl_layouts/form_sign_up.php?w=500&h=100" class="load">Sign up</a>
w=500 and h=100 are the values I want to pass into the function click() below,

Code:
$(".load").click(function(){
	var path = $(this).attr("href");
	var width = w;
	var height = h;
});
Many thanks,
Lau
lauthiamkok is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 06:56 AM.


Advertisement
Log in to turn off these ads.