DroidScript wiki

(was AndroidScript) unofficial documentation by the community

User Tools

Site Tools


tips_tricks:tip_its_javascript

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

tips_tricks:tip_its_javascript [2014/09/21 15:16]
81.174.242.106 created
tips_tricks:tip_its_javascript [2014/10/13 15:57]
stevegarman
Line 1: Line 1:
 ====== Tip - it's JavaScript ====== ====== Tip - it's JavaScript ======
-There'​s something you want AndroidScript ​to do and you can't find out whether ​AndroidScript ​can do it.+There'​s something you want DroidScript ​to do and you can't find out whether ​DroidScript ​can do it.
  
-Maybe you want to find the current time or date but the AndroidScript ​docs don't mention it.+Maybe you want to find the current time or date but the and DroidScript ​docs don't mention it.
  
-Remember, you are mostly using JavaScript. If JavaScript can do it, there'​s a good chance ​AndroidScript ​can do it.+Remember, you are mostly using JavaScript. If JavaScript can do it, there'​s a good chance ​DroidScript ​can do it.
  
 The number of times I've typed things like **javascript slice** into google is legion. I often end up at [[http://​www.w3schools.com/​js/​default.asp|w3schools.com]] for my answer. The number of times I've typed things like **javascript slice** into google is legion. I often end up at [[http://​www.w3schools.com/​js/​default.asp|w3schools.com]] for my answer.
Line 10: Line 10:
 If you look at js sample code, you may need to ignore the bit that tries to display it for you such as  If you look at js sample code, you may need to ignore the bit that tries to display it for you such as 
     document.getElementById("​demo"​).innerHTML = Date();     document.getElementById("​demo"​).innerHTML = Date();
-and replace it with something from AndroidScript ​like+and replace it with something from DroidScript ​like
     txt.SetText( Date() );     txt.SetText( Date() );
-but you'll find lots of things JavaScript can do that are not specific to AndroidScript+but you'll find lots of things JavaScript can do that are not specific to DroidScript
tips_tricks/tip_its_javascript.txt ยท Last modified: 2014/10/13 15:57 by stevegarman