Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    New to the CF scene
    Join Date
    Aug 2011
    Posts
    5
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Javascript what is "This" passing value ?

    <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!

  • #2
    Senior Coder rnd me's Avatar
    Join Date
    Jun 2007
    Location
    Urbana
    Posts
    4,296
    Thanks
    10
    Thanked 584 Times in 565 Posts
    this is the A.

    edit: wow, try searching for that response...least index-able reply ever?
    my site (updated 13/9/26)
    BROWSER STATS [% share] (2014/5/28) IE7:0.1, IE8:5.3, IE11:8.4, IE9:3.2, IE10:3.2, FF:18.2, CH:46, SF:7.9, NON-MOUSE:32%

  • #3
    New to the CF scene
    Join Date
    Aug 2011
    Posts
    5
    Thanks
    1
    Thanked 0 Times in 0 Posts
    <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??

  • #4
    New to the CF scene
    Join Date
    Aug 2011
    Posts
    5
    Thanks
    1
    Thanked 0 Times in 0 Posts
    help me pls...i don't understand at all..

  • #5
    Senior Coder rnd me's Avatar
    Join Date
    Jun 2007
    Location
    Urbana
    Posts
    4,296
    Thanks
    10
    Thanked 584 Times in 565 Posts
    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...
    my site (updated 13/9/26)
    BROWSER STATS [% share] (2014/5/28) IE7:0.1, IE8:5.3, IE11:8.4, IE9:3.2, IE10:3.2, FF:18.2, CH:46, SF:7.9, NON-MOUSE:32%


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •