...

View Full Version : Javascript what is "This" passing value ?



anthor
08-19-2011, 09:18 PM
<DIV class=UIImageBlock_Ext>
<DIV id=friend_browser_unit_100002258463790 class="friendBrowserUnit ">
<INPUT class=friendBrowserID value=100002258463790 type=hidden name=friend_browser_id[] autocomplete="off">
<DIV id=friendBrowserActionId_100002258463790 class="friendBrowserAddAsFriend stat_elem">
<A class="mhs uiButton" role=button onclick='FriendBrowserCheckboxController.makeFriendRequest(this, "100002258463790"); return false;' href=" http://www.facebook.com/#">
<I class="mrs img sp_du7a4w sx_4c9e49"></I>
<SPAN class=uiButtonText>Add Friend</SPAN>
</A>
</DIV>
</DIV>
</DIV>

FriendBrowserCheckboxController.makeFriendRequest(this, "100002258463790"); return false;'

what is the value of "this" passing value?passing a structure?
or
have any application can track the javascript parameters passing value?

Thanks!

rnd me
08-19-2011, 09:21 PM
this is the A.

edit: wow, try searching for that response...least index-able reply ever?

anthor
08-19-2011, 09:23 PM
<A class="mhs uiButton" role=button onclick='FriendBrowserCheckboxController.makeFriendRequest(this, "100002258463790"); return false;' href=" http://www.facebook.com/#">
<I class="mrs img sp_du7a4w sx_4c9e49"></I>
<SPAN class=uiButtonText>Add Friend</SPAN>
</A>

so?what value i should passing? class and role Value??

anthor
08-20-2011, 07:34 AM
help me pls...i don't understand at all..

rnd me
08-20-2011, 06:40 PM
you can use chrome inspector and ie9's debugger to set a breakpoint and step through your code. when the code execution gets to a function, it should show the arguments passed.

without seeing FriendBrowserCheckboxController.makeFriendRequest(), nobody here can advise you as to what kind of arguments it expects...



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum