/javascript">
x$(document).ready(function() {
// Add a div under Nav Bar on Main page
if (x$("div.xg_widget_main_index_index").length > 0) x$("div#xg_body").prepend('YOUR_HTML
'); });
</script>
Substitute for YOUR_HTML and Style the div wrapping it any way you want. Don't use any single quotes ( ' ) in the HTML unless you put a backslash ( \ ) before it.
New to jQuery? See http://jqueryhelp.ning.com/forum/topics/beginners-guide-to-jquery-and and other posts at our site, or check out http://docs.jquery.com/How_jQuery_Works
…
to get it to run. The javascript interpreter is already running the jQuery code. It can place javascript somewhere on the page but it won't be able to run it, which is useless!
That said, there might be ways around this timing issue. If anyone supplies some javascript they're trying to inject, and where they want it to go, I might find some time to play around with it and try to get it to work....…
- any chance you can help out a fellow with tips and tricks as to using jquery inside of ning.
specifically what i was hoping to do is use the jquery library plus the bebole pure templating library http://beebole.com/pure/ to bring in data via JSON from an external side and render it inside a gadget on ning.. any chance that is going to be possible..
ive tried reading docs and doing examples without much traction on this particualar thing so far - can't figure out where the jquery needs to get referenced from and how.. thanks in advance for any help
miles…