This is the first thing I write in JavaScript, so I hope that its a basic error
Am I trying to get here: Take a bunch of links from a page, load your content query for the link and add it to a list on the current page.
I get an error on the app and in the JQ documentation they say that the method can get a Juke object
Let's see if my estimate error is checkable enough for it:
// Use in And it does not matter // it would be better, or at least readable var link = $ (". Download"); // If you are not actually using it, then add any of the arguments There is no need for each (function () {// To do this you can create dot to create / apply the element without any type of element; element method var newFrame = $ ('& lt; div / & gt;') ; // this.href lower and lowercase newFrame.load (this.href, {'html': '.jax'}, function (response, position, xhr) {if (condition == "error") {conso Le.log (xhr);} // This is the weird part - feedback is a selector? // It should be loop through each anchor which is a child I received feedback // Use the attachment here // better than looping through each element and using .append () There $ (reaction). Game ("a") AppendTo ("# results"); // And finally because it is. Load () // Remember that the actual response is also apped for the element in question / //, so additional AJAX is showing there}); // It has happened outside the callback, // so actually * executed * above * * code ("# result") * before * has been executed. Attachment (newframe); });
See jsfiddle for this piece of code actually working:
Comments
Post a Comment