• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 515
  • Last Modified:

Is there an initBinding() method in either javascript or jquery?


Relatively newbie in the world of javascript and jquery.

Someone told me there is a predefined javascript function called: initBinding().
It is supposed to be a javascript predefined method to bind the controls and data.

I'm not seeing any references to it anywhere online.
I believe that one of us is confused on the matter.

Can someone clarify this?

  • 2
  • 2
1 Solution
With jquery all bindings are done for you when the document is loaded.

Say you wanted to capture when someone clicks a link then this would be an example

<a href="somelink.php" id="mylink">Click me</a>

$(function() { // This will only fire when the document has loaded
     $("#mylink").click(function(e){ // we bind the click event on the anchor tag
          e.preventDefault() // stop the link being followed
          alert("You clicked my link")

Is this what you are referring to?
jxbmaSoftware ConsultantAuthor Commented:
No, I was actually checking on the actual existence if the call (in either JavaScript or Jquery) of the call: initBinding().

I've searched and not found any reference to the specific call. I want to understand the call ( if it in fact exists ) or point out to them that it doesn't.

Thanks for the explanation so far though.

I don't know who's telling you that, but initBinding() is just a function name that someone made up - like naming your functions with meaningful names so you can quickly know what they are for
It is not some special js command
jxbmaSoftware ConsultantAuthor Commented:
And I'm going to call him on it.
Thanks for the feedback.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now