[jQuery] IE: call function defined in ajax loaded page

2009-10-15 Thread Michael Anckaert
Hello everyone, In one of my projects I use simplemodal to show an ajax loaded dialog. The HTML page loaded by the ajax call defines a javascript function setup_dialog() that I use to initialize some functions specific to that page. In the simplemodal callback onShow I call setup_dialog(). This

[jQuery] Simplemodal ajax dialog

2009-08-07 Thread Michael Anckaert
Hello everyone, Using the simplemodal plugin I create a dialog dynamically from links using $(".dialog-link").live('click', function(e) { e.preventDefault(); $.get($(this).attr('href'),function(data) { $.modal(data,

[jQuery] ui core tabs

2008-08-25 Thread Michael Anckaert
n a tab is selected but I would like to keep it. Kind regards, Michael Anckaert

[jQuery] Re: Execute script loaded into div from ajax

2008-08-18 Thread Michael Anckaert
Hello Karl, Thank you for your reply. But I think you mis understand me. I want the scripts in the page I loaded with ajax to execute, not let my already existing scripts work with the newly loaded content. For example: main.html: function test() { ... } newpage.html: onready function other

[jQuery] Execute script loaded into div from ajax

2008-08-18 Thread Michael Anckaert
Hello everyone, I'm trying to do something that's probably trivial, but I can't get it to work :p My main page has a div where content gets loaded via ajax: $('#main').load('page.html'); The file page.html has some html and javascript code, the problem is getting the javascript from page.html