javascript - How to call a function in Windows 8 app? -


i created function this:

text: function () {      document.getelementbyid("id").innertext = "hello"; } 

i tried call function function , doesn't work:

anotherfunction: function () {     this.text(); } 

the error get:

unhandled exception @ line 89, column 21 in ms-appx://b9f1ea0e-9eeb-41e4-a788-92c282715e21/pages/game/game.js

0x800a01b6 - javascript runtime error: object doesn't support property or method 'text45'

note: text45 function name.

what do wrong?

i solved it. there no way (from know) call function not in function itself. when write function regular function in function worked. example found:

anotherfunction: function () {     function textchange() {         document.getelementbyid("id").innertext = "hello";     }     text(); } 

Comments

Popular posts from this blog

javascript - Bootstrap Popover: iOS Safari strange behaviour -

Magento/PHP - Get phones on all members in a customer group -

session - Logging Out Using PHP -