Real Software Forums

The forum for Real Studio and other Real Software products.
[ REAL Software Website | Board Index ]
It is currently Thu Oct 18, 2018 6:41 am
xojo

All times are UTC - 5 hours




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Frustrated with WE javascript errors
PostPosted: Thu Dec 13, 2012 6:34 pm 
Offline

Joined: Tue Aug 28, 2012 12:50 pm
Posts: 6
I'm in the early stages of a web edition project and am getting frequent error messages like below when opening a webDialog containing textfields, popupmenus and checkboxes. Running Mac OS X with RB 2012r2. This happens on both Safari 6.0.2 & Firefox 17.0.1.

Does anyone have an idea what would cause this?
Thanks!

"This application has encountered an error and cannot continue."

Could not execute returned javascript: 'null' is not an object (evaluating 'this.object().children')

Source: RS.controls['QGwEOdrc'].setValue("Mike");
RS.controls['Vo3DMDHN'].setValue("Jones");
RS.controls['OyPFihbG'].setValue("mj");
RS.controls['MZRqEzqZ'].setValue("mj");
RS.controls['FEf1weLc'].setValue(1);
RS.controls['ApQGR17m'].setValue("mj@");
RS.controls['AUrLcK3T'].setValue(true,true);
RS.controls['ZM6raohy'].setValue(true,true);


Top
 Profile  
Reply with quote  
 Post subject: Re: Frustrated with WE javascript errors
PostPosted: Thu Dec 13, 2012 7:44 pm 
Offline

Joined: Mon May 31, 2010 5:35 am
Posts: 2412
Location: Netherlands
I suspect your using ExecuteJavascript somewhere or some code is not in the right order.

Perhaps it will help you once your understand the basics around the browser and the server part.
RS Web Edition is actually both in 1. Where you code on the server side, manipulating the client.

One tip:
- NEVER use the "Open" event to change client side content, use the "Shown" event for this.

It's very common to make a mistake about this, as the "Open" event in Desktop Edition can be used to manipulate the UI.
In Web Edition that's a little bit different, as the Open event tells the Server-Side is ready, but not the Client-Side (browser).

_________________
SWORT™
- Windows Vista, Windows XP, Windows 7, Linux Mint 11 and Mac OSX Lion
- REAL Studio Enterprise(latest) and WEB Edition(latest)
- Plugins (MBS Complete, ToringoLib, Einhugur, VanHoek + Some open source plugins)
For Dutch User Groups ask me to enter!


Top
 Profile  
Reply with quote  
 Post subject: Re: Frustrated with WE javascript errors
PostPosted: Fri Dec 14, 2012 12:12 pm 
Offline

Joined: Tue Aug 28, 2012 12:50 pm
Posts: 6
Thanks, SWORT! I'm pretty sure I have some code in the Open event. I'll try moving it to Shown.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 5 hours


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group