javascript - jQuery SO Vote-Object and Scope -


This is a javascript question, the fact is that the mention of this website is irrelevant. It does not is in the meta.


I am working on the answer stack overflow on the first page of the answer, as you scroll. It's working well I want to keep the ability to vote / down-vote loaded items, so I'm using $ .live (), which is working fine too.

My problem is that the vote object is used by $ .live () not found within the scope of the method, or at least I think this is a problem.

  $ ("vote-up") Live ("click", function (d) {vote.up ($ (D.target))} $. Get ("/ query / 1151074", function (data) {$ ("div.answer" Data) .inertAfter (". Answer: last");});  

This is a bit of sample code that you can paste in your FireBug console for testing. You can see the vote, .live () is not accessible in terms of calls. How can I fix this?

Try Unsecured Window.vote.up () .

See it in a way Security measures when upset you forget.


Comments

Popular posts from this blog

c# - ListView onScroll event -

PHP - get image from byte array -

Linux Terminal Problem with Non-Canonical Terminal I/O app -