it won't work
the right way is
$.get(totals.php,function(data){
$(#targetDiv).html(data);
});
^.^
Michael
On 8/24/07, Glen Lipka [EMAIL PROTECTED] wrote:
I am not totally sure how get() works. (Im lame)
However, I am pretty sure load() works for you in this case. Like:
Try this
$.get('page.html',function(data){
($('#target').html(data);
});
Michael
On 8/24/07, John Napiorkowski [EMAIL PROTECTED] wrote:
--- polyrhythmic [EMAIL PROTECTED] wrote:
John,
What version of jQuery are you running? And what
are your browser
versions? Also, style tags
Dear Friend:
I use $getScript to load some .js and include another html into my div
code like
$(#news1).bind(click,function(){
$.getScript(/admin_css/includeme0.js);
$.get(/myadmin/query.xhtml?r=disw=chkandreplacepage=news,function(data){
$(#showhere).show(slow).html(data);
in its own right, ie that it is a full
document. IF you are trying to inject a full document into the DOM under
the
'somediv' DIV then it would not be surprising if some functionality
failed.
Michael Lo wrote:
Dear all:
can some one help
why sometime i load some html like
$(somediv
Dear all:
can some one help
why sometime i load some html like
$(somediv).show(slow).load(some.html);
some javascript function on some.html won't work
but it will work when call it alone?
Thanks!!
Michael
5 matches
Mail list logo