Internet Explorer: Difference between revisions

From NSB App Studio
Jump to navigation Jump to search
Line 4: Line 4:


=== Defining Controls ===
=== Defining Controls ===
''(This tip may apply to FireFox as well)''


Chrome and Safari allow controls to be referred to directly by their name. For example, TextBox1.value. Internet Explorer requires that you use the following expression instead to refer to TextBox1:
Chrome and Safari allow controls to be referred to directly by their name. For example, TextBox1.value. Internet Explorer requires that you use the following expression instead to refer to TextBox1:

Revision as of 19:18, 16 March 2013

AppStudio does not officially support Internet Explorer. AppStudio uses WebKit for some of its controls, which IE does not support, and not all the needed HTML5 features which are required have been implemented in IE.

However, many apps will still run in Internet Explorer. In this article, we will cover some tips to make it easier to run AppStudio apps in IE.

Defining Controls

(This tip may apply to FireFox as well)

Chrome and Safari allow controls to be referred to directly by their name. For example, TextBox1.value. Internet Explorer requires that you use the following expression instead to refer to TextBox1:

 document.getElementById("TextBox1").value

You can get around this be defining TextBox1 in the beginning of your code:

TextBox1=document.getElementById("TextBox1")
txtSerialNumber=document.getElementById("txtSerialNumber")
TextArea1=document.getElementById("TextArea1")
radProduct_1=document.getElementById("radProduct_1")
radProduct_2=document.getElementById("radProduct_2")
radProduct_3=document.getElementById("radProduct_3")
radProduct_4=document.getElementById("radProduct_4")
radProduct_5=document.getElementById("radProduct_5")

You can then do

 TextBox1.value="some text"