Main Board > iNomads
Screen Size
HendersonS:
Sorry, I might be missing something, I just copy and paste the code you posted(see attached),and return that. i using chrome.
Mike King:
No idea why you get an error -- the function js_eval$ passes the parameter to the browser to execute.
Try accessing the fields individually as in:
%inomads'js_eval$("window.innerWidth")
and
%inomads'js_eval$("window.innerHeight")
HendersonS:
Thanks for reply mike,
Could already find out why the js_val method was returning an error, the problem was that I wanted to know the size of the mobile device screen to load one program or another and inadvertently I was executing the code before the inomads.js was loaded (I guess it is the interface that executes that method).
i did the test with inomads.js loaded and it worked fine.
Navigation
[0] Message Index
[*] Previous page
Go to full version