New topic: 

return a value from javascript

<http://forums.realsoftware.com/viewtopic.php?t=39286>

         Page 1 of 1
   [ 1 post ]                 Previous topic | Next topic          Author  
Message        damon          Post subject: return a value from 
javascriptPosted: Thu Jun 02, 2011 1:39 am                         
Joined: Mon Oct 17, 2005 6:43 pm
Posts: 83                Hi guys,
I have used this
ExecuteJavaScript("RS.controls['" + controlID + "'].setValue(""" + escapedText 
+ """);")
as a template to fill a textfield with a value from javascript
 
ExecuteJavaScript("RS.controls['" + TextField1.ControlID + "'].setValue( 
navigator.javaEnabled() );")

which will put true or false in the text field if the client has java installed 
on there machine.
The problem is that WE doesnt see that the field has changed and when you try 
to read it you get "" returned even though on the screen it says true or false.
I can see why WE does this as it hasnt actually changed as part of the WE code, 
therefore on the server side the texfield is still empty.

Is there a way to read a field once it is altered by a ExecutejavaScript 
command?

Tried with Label as well. 

Thanks
Damon   
                             Top             Display posts from previous: All 
posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost 
timeSubject AscendingDescending          Page 1 of 1
   [ 1 post ]      
-- 
Over 1500 classes with 29000 functions in one REALbasic plug-in collection. 
The Monkeybread Software Realbasic Plugin v9.3. 
http://www.monkeybreadsoftware.de/realbasic/plugins.shtml

[email protected]

Reply via email to