javascript - Unable to execute function after JSON loaded -


Indicates that when a JSON request completes, a name is 'Antonio' Appears but the jQuery function is not implemented on this. Please make sure that document.write is an essential function for me.

This is the code I wrote for the name of Antonio.

  & lt; Script type = "text / javascript" & gt; Function Gallery (JSN) {document.write ('& lt; span & gt;' + json.feed.title. $ T + '& lt; / span & gt;'); } & Lt; / Script & gt; & Lt; Script src = 'http: //www.antonio-bloggerever.blogspot.com/feeds/posts/summary/-/ constructive max-results = 2 & alt = json-in-script and callback = gallery' / & gt;  

You essentially bind one click event Trying to use an element that is not yet dynamically added to the DOM and added elements.

  $ ('span'). On ('click', function () {warning ('aaa');});  

Comments

Popular posts from this blog

Member with no value in F# -

java - Joda Time Interval Not returning what I expect -

c# - Showing a SelectedItem's Property -