Multiple JavaScript requests within a single function

Wimpy Javascript functionality is synchronous. Which means you should be able to make multiple requests into Wimpy.

Wimpy will return "something" -- regardless of whether something should be returned. For example, when requesting to "play" Wimpy returns "true" (boolean), so you may want to set up your javascript requests to wait for the returned "thing" such as:

temp = wimpy_play();

By setting the function call to a variable, javascript will "wait" until the "thing" is returned before moving on to the next line.

 

Wimpy Player Documentation
Copyright ©2002-2008 Plaino LLC. All rights reserved.
Use of this website signifies your agreement to the Terms of Use.