Internet Explorer: Difference between revisions
Jump to navigation
Jump to search
Created page with "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..." |
|||
Line 5: | Line 5: | ||
=== Defining Controls === | === Defining Controls === | ||
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: | 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 | document.getElementById("TextBox1").value | ||
You can get around this be defining TextBox1 in the beginning of your code: | You can get around this be defining TextBox1 in the beginning of your code: | ||
<pre> | <pre> | ||
TextBox1=document.getElementById("TextBox1") | |||
txtSerialNumber=document.getElementById("txtSerialNumber") | txtSerialNumber=document.getElementById("txtSerialNumber") | ||
TextArea1=document.getElementById("TextArea1") | TextArea1=document.getElementById("TextArea1") | ||
Line 19: | Line 19: | ||
radProduct_5=document.getElementById("radProduct_5") | radProduct_5=document.getElementById("radProduct_5") | ||
</pre> | </pre> | ||
You can then do | |||
TextBox1.value="some text" |
Revision as of 18:09, 15 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
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"