Script# has jQuery support, but it lacks the jQueryUI.

Since the available Script# compiler is ISO-2, it doesn't support extensions methods, so this is the purposed solution for jQueryUI:

jQueryObject element = jQuery.Select("#ad");
jQueryUI.FromElement(element).Dialog();
 

OR


jQueryUI.FromElement("#ad").Dialog();

Last edited Sep 8, 2010 at 9:44 PM by brunofig, version 2

Comments

erikkallen Sep 9, 2010 at 12:50 PM 
Perhaps something with interfaces:

public interface IJQueryUI {
public IJQueryUIDialog Dialog();
}

public interface IJQueryUIDialog {
public void Open();
}

jQueryObject element = jQuery.Select("#ad");
IJQueryUIDialog dialog = ((IJQueryUI)jQueryObject).Dialog();
dialog.Open();