SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Hybrid View

  1. #1
    SitePoint Member
    Join Date
    Jun 2010
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    What is the purpose of _hbEvent function definition

    I am new to javascript and ran across this function definition on a web page. What is the purpose of the _HBEvent callback? I am not really interested in the code as much as the function _hbEvent definition. What event will cause it to be called???

    var _hbEC=0, _hbE=new Array; function _hbEvent(a,b){b=_hbE[_hbEC++]=new Object();
    b._N=a;b._C=0;return b;}
    var hbx=_hbEvent("pv");hbx.vpc="HBX0200u";hbx.gn="www35.vzw.com";
    hbx.acct="DM5701180EEZ;DM570203L6VD";
    hbx.mlc="/messaging/text+messaging";
    hbx.pn="Send+a+Text+Message+Non-Registered";
    hbx.pndef="title";
    hbx.lt="auto";//LINK TRACKING
    hbx.lc="y";//Lower Case

  2. #2
    Unobtrusively zen silver trophybronze trophy
    paul_wilkins's Avatar
    Join Date
    Jan 2007
    Location
    Christchurch, New Zealand
    Posts
    14,684
    Mentioned
    99 Post(s)
    Tagged
    4 Thread(s)
    Quote Originally Posted by CarlSite View Post
    I am new to javascript and ran across this function definition on a web page. What is the purpose of the _HBEvent callback? I am not really interested in the code as much as the function _hbEvent definition. What event will cause it to be called???
    There is nothing in the code you provided that makes use of the callback ability. If a callback is not provided then the function just returns undefined, which is what normally happens if no return is provided from a function.
    Programming Group Advisor
    Reference: JavaScript, Quirksmode Validate: HTML Validation, JSLint
    Car is to Carpet as Java is to JavaScript


Tags for this Thread

Bookmarks

Posting Permissions

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