Cane Moo Tools Request.js write html in a Div or Element?

Questions-M

New member
I created a request that works, onSucess: function(responseText, responseXHTML){ $('idofelement').innerHTML = reponseText});

the only problem with this is, I would love for the javascript to write the actual response into the page, because when I view the source nothing comes out, which I need because the results also have effects using moo tools.
What I'm looking for is, to write the literal html that are requested from the php file. for example if the php file i'm requesting from says <div>apples</div> i would like my responesText to output <div> apples</div> into my element, as of right now, i get the results visually but not in the code.
 
It looks like you have it correct, however, I don't know why you have an ending parenthesis after responseText}); ... unless you are ending the document ready ?

Just search for it at http://www.jquery.com if you cannot figure it out.
Good Luck!
 
Back
Top