Loading CSS file with content through AJAX call

Loading CSS file with content through AJAX call
Michael Palladino
08-05-26 02:04
I have a form that is loaded through an AJAX call that gets the HTML content to be edited from a database field and the name of the related css file (which can be different depending on the conent).

I'm not submitting the form, so the whizzywig control is already loaded with the prior css filename. Is there a way through javascript to to change the css file that a loaded whizzywig control is using?

I see the name of the file is just written into the iFrame head. Or, I guess, is there a way to programatically reload a whizzywig control without submitting the form?

I did try a couple of things to trigger makeWhizzywig manually, but it seemed to go into a loop and throwing an error the var "c" was not found.

Thanks.

New Message


Your message

Type in these letters/numbers Type in this code (prevents automated submissions).
Can't make it out? Double click it for new code.


hide menu | Show caps
Google