views:

771

answers:

4

I am trying to dynamically load the contents of a div tag with a .cfm page that contains a cfchart in png format. When the user clicks on a link, I am using the load function to put the .cfm page into the div.

$("#bank").bind("click", function(){
    $("#chartx").load("bank.cfm");
});

I can get this to come up perfectly in Firefox, but not in IE6. It gives no error messages.

A: 

Have you tried jQuery.get? Maybe something like:

$("#bank").bind("click", function(){
    $.get("bank.cfm", function(data){
        $("#chartx").html(data);
    });
});

It's not as clean but it's more specific. Maybe it will take a different course from whatever is breaking.

Wyatt
+3  A: 

Weirdest thing, but the cfdebug information in the classic style appended on the page is what causes it to break.

Light
Ah yes, you have to disable ColdFusion Debugging output on AJAX requested pages or you get a bunch of junk on your page. You can disable it per page with the cfsetting tag.
Nathan Strutz
A: 

Oh, so that's what it was. I was going to say that sometimes on some computers if you have IE security settings set too high, AJAX calls that load special components into the page sometimes don't work.

A: 

I have been having cfchart and jquery/ajax issues for sometime now. even though the debug setting is set to off still wont render graphs with ajax in IE6/7 everything works in FF anyone have any suggestions?