If I recall correctly "Do in browser" only worked in revlets. If you want to execute script in a browser instance on the desktop then marks example is the way to go. (revbrowserexecutescript)
Also if I recall correctly your first line is the correct way to get a result out(except using revbrowserexecutescript), and the result would contain whatever values were in urlParams. get revbrowserexecutescript(sbrowserid,"result = urlParams") There is also revbrowsercallscript for calling pre-defined functions in a web page in a browser instance. On Tue, Nov 13, 2012 at 7:03 PM, Mark Schonewille < m.schonewi...@economy-x-talk.com> wrote: > Hi Simon, > > Probably, you want this: > > on mouseUp > put "12131232" into myScore > put "alert('" & myScore & "');"into myScript > put revBrowserExecuteScript(gBrowserInstanceID, myScript) into myJSResult > end mouseUp > > -- > Best regards, > > Mark Schonewille > > Economy-x-Talk Consulting and Software Engineering > Homepage: http://economy-x-talk.com > Twitter: http://twitter.com/xtalkprogrammer > KvK: 50277553 > > Use Color Converter to convert CMYK, RGB, RAL, XYZ, H.Lab and other colour > spaces. http://www.color-converter.com > > We have time for new software development projects. Contact me for a quote. > > > On 14 nov 2012, at 02:33, Simon Smith wrote: > > > I've been trying to execute some basic JavaScript tests in the IDE on > OSX. > > > > *on* mouseUp > >> *do* "result = urlParams" in browser > >> *-- put "12131232" into myScore > >> * *-- do "alert ('" & myScore & "');" in browser > >> **end* mouseUp > > > > However although the script compiles, the debugger complains and I can;t > > get anything to work. There is no mention in the help either - has this > > feature been dropped somewhere along the road? > > > > _______________________________________________ > use-livecode mailing list > use-livecode@lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > _______________________________________________ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode