Web Analytics Made Easy -
StatCounter Javascript what is "This" passing value ? - CodingForum

Announcement

Collapse
No announcement yet.

Javascript what is "This" passing value ?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new 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
    this is the A.

    edit: wow, try searching for that response...least index-able reply ever?
    Create, Share, and Debug HTML pages and snippets with a cool new web app I helped create: pagedemos.com

    Comment


    • #3
      <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??

      Comment


      • #4
        help me pls...i don't understand at all..

        Comment


        • #5
          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...
          Create, Share, and Debug HTML pages and snippets with a cool new web app I helped create: pagedemos.com

          Comment

          Working...
          X
          😀
          🥰
          🤢
          😎
          😡
          👍
          👎