Esempio n. 1
0
 public static IE_JQuery installJQuery(this IE_JQuery jQuery)
 {
     if (jQuery.PathToJQueryFile.fileExists().isFalse())
     {
         "[IE_JQuery][installJQuery]: could not file PathToJQueryFile: {0}".error(jQuery.PathToJQueryFile);
         return(jQuery);
     }
     if (jQuery.isJQueryAvaialble())
     {
         "[IE_JQuery][installJQuery]: JQuery was already instaled in this page".info();
     }
     else
     {
         var jQueryCode = jQuery.PathToJQueryFile.fileContents();
         jQuery.ie.eval(jQueryCode);
         if (jQuery.isJQueryAvaialble())
         {
             "[IE_JQuery][installJQuery]: JQuery was instaled ok in this page".info();
         }
         else
         {
             "[IE_JQuery][installJQuery: there was a problem installing JQuery is this page".error();
         }
     }
     jQuery.ie.WebBrowser.ObjectForScripting = jQuery;
     return(jQuery);
 }
Esempio n. 2
0
 public static string attr(this IE_JQuery jQuery, string value)
 {
     if (value.valid())
     {
         value = "'{0}'".format(value);
     }
     jQuery.invokeJQuery("attr", value);
     return(jQuery.getJQueryObject().str());
 }
Esempio n. 3
0
        public static IE_JQuery invokeJQuery(this IE_JQuery jQuery, string method, string parameters)
        {
            var script = "var jQueryObject = window.external.getJQueryObject();" +
                         "window.external.setJQueryObject(jQueryObject.{0}({1}));".format(method, parameters);

            if (jQuery.DebugMode)
            {
                "[IE_JQuery][invokeJQuery]: {0}".debug(script);
            }
            jQuery.ie.invokeEval(script);
            return(jQuery);
        }
Esempio n. 4
0
 public static IE_JQuery parent(this IE_JQuery jQuery)
 {
     return(jQuery.invokeJQuery("parent", ""));
 }
Esempio n. 5
0
 public static IE_JQuery click(this IE_JQuery jQuery)
 {
     return(jQuery.invokeJQuery("click", ""));
 }
Esempio n. 6
0
 public static IE_JQuery a(this IE_JQuery jQuery)
 {
     return(jQuery.element("a"));
 }
Esempio n. 7
0
 public static IE_JQuery img(this IE_JQuery jQuery)
 {
     return(jQuery.element("img"));
 }
Esempio n. 8
0
 public static bool isJQueryAvaialble(this IE_JQuery jQuery)
 {
     return(jQuery.getJQueryObject().notNull());
 }
Esempio n. 9
0
 public static IE_JQuery border(this IE_JQuery jQuery, string value)
 {
     return(jQuery.css("border", value));
 }
Esempio n. 10
0
 public static IE_JQuery attr(this IE_JQuery jQuery, string name, string value)
 {
     return(jQuery.invokeJQuery("attr", "'{0}' , '{1}'".format(name, value)));
 }
Esempio n. 11
0
 public static IE_JQuery wait(this IE_JQuery jQuery, int miliSeconds)
 {
     jQuery.sleep(miliSeconds);
     return(jQuery);
 }
Esempio n. 12
0
 public static IE_JQuery backgroundColor(this IE_JQuery jQuery, string value)
 {
     return(jQuery.css("background-color", value));
 }
Esempio n. 13
0
 public static string attr(this IE_JQuery jQuery)
 {
     jQuery.invokeJQuery("attr", "");
     return(jQuery.getJQueryObject().str());
 }
Esempio n. 14
0
 public static IE_JQuery bgColor(this IE_JQuery jQuery, string value)
 {
     return(jQuery.backgroundColor(value));
 }
Esempio n. 15
0
 public static IE_JQuery fontSize(this IE_JQuery jQuery, string value)
 {
     return(jQuery.css("font-size", value));
 }
Esempio n. 16
0
 public static IE_JQuery fontSize(this IE_JQuery jQuery, int value)
 {
     return(jQuery.fontSize("{0}px".format(value)));
 }
Esempio n. 17
0
 public static IE_JQuery trigger(this IE_JQuery jQuery, string eventName)
 {
     return(jQuery.invokeJQuery("trigger", "'{0}'".format(eventName)));
 }
Esempio n. 18
0
 public static IE_JQuery element(this IE_JQuery jQuery, string elementName)
 {
     return(jQuery.invokeJQuery("'{0}'".format(elementName)));
 }
Esempio n. 19
0
 public static IE_JQuery keydown(this IE_JQuery jQuery)
 {
     return(jQuery.trigger("keydown"));
 }
Esempio n. 20
0
 public static IE_JQuery css(this IE_JQuery jQuery, string cssCode)
 {
     return(jQuery.invokeJQuery("css", cssCode));
 }
Esempio n. 21
0
 public static IE_JQuery addToPage(this IE_JQuery jQuery)
 {
     return(jQuery.installJQuery());
 }
Esempio n. 22
0
 public static IE_JQuery h1(this IE_JQuery jQuery)
 {
     return(jQuery.element("h1"));
 }
Esempio n. 23
0
 public static IE_JQuery value(this IE_JQuery jQuery, string value)
 {
     return(jQuery.attr("value", value));
 }
Esempio n. 24
0
 public static IE_JQuery border(this IE_JQuery jQuery, int value)
 {
     return(jQuery.border("{0}px solid".format(value)));
 }