I am working on a site that will have more than one 'save' button per page, and I need callback Each one is so that I can register in my system which the user has completed the saved action, I thought I had thought how to do this program ... but for every widget I am making it when I get it on SDK Trying to add in DOM through L do, I can not read a "property" style "zero". / P>
This is my JavaScript
& lt; Script type = 'text / javascript' & gt; True, "clear": wrong, "on-read": function () {$ ('fourswire venuid') (function () {window .___ fourSq = {"uid": "31904528", "secure" {Var vid = $ (this) .val (); var widget = new fourSq.widget.SaveTo ({"vid": vid}); var container = $ (this) .Parent (). ( 'Placeholder.'); Widgets (Container);});}}; Var s = document.createElement ('script'); S.type = 'text / javascript'; S.src = 'https: // platform -s .foursquare.com / js / widgets.js'; S.async = true; Var ph = document.getElementsByTagName ('script') [0]; Ph.parentNode.insertBefore (s, pH);}) (); Basically, when SDK loads, I go through it and find all my hidden inputs with that place ID, and I try to make it there. To change the empty anchor tag, the 'Save' widget is in the form of a placeholder and there is a link to the screenshot of the error in Chrome console:
Any help would be greatly appreciated. Thank you.
Edit: Here I am using the Foursquare documentation:
A Long shots, but did you change the prototype of the Array object?
Comments
Post a Comment