Hello, I have a problem.
I need to know how to define this existing variable in event sheet before call this javascript function.
This .capx
https://dl.dropboxusercontent.com/u/762 ... oblem.capx
I tried to click anywhere, then I got an error that this variable is undefined.
Could you help me how to solve it?
Thanks!
R0J0hound would you take a look about this problem?
We have 2 similiar problems in different topics and no one helped.
Global Text ThePlace = "World"
Mouse On any click - Browser Execute javascript
"alert( 'Hello "&ThePlace&"')"
Develop games in your browser. Powerful, performant & highly capable.
Noncentz705 I've tried with your method and I got an error as Unexpected identifier.
This is snippet that I've used.
"window.open ('http://maps.google.co.uk/maps?q=' + "& ThePlace &" + '&iwloc=A&hl=en', "& ThePlace &"); "[/code:2tw902xp] Unusual connotation?
"window.open ('http://maps.google.co.uk/maps?q="&ThePlace&"')"
Noncentz705 Thanks! It worked.
It seems it doesn't use operators such as +, does eval(); would work with operators? maybe not.
I understand this method, I will implement Google Analytics event track to send report data, when ga.js is implemented on index.html, according to https://developers.google.com/analytics ... ntTracking
"_gaq.push(['_trackEvent', 'Game', 'Win', ' "& Variable1 & " ', ' " & Variable2 & " ', false]);"[/code:28eooqjm] Does this string look correct to you?
Im here again, it seems working, but I would like to do a callback.
How to make a callback using Browser Execute javascript ?