Documentation Index

CPAINT :: Cross-Platform Asynchronous INterface Toolkit

Frontend: cpaint.set_async()

cpaint Method Summary

void set_debug()
void set_proxy_url()
void set_transfer_mode()
void set_async()
void set_response_type()
void set_persistent_connection()
void set_use_cpaint_api()
void set_auth_user()
void set_auth_pass()
void call()

cpaint Property Summary

boolean capable

void set_async ( boolean asynchronous )

Sets the flag whether or not to use an asynchronous connection.

Class

cpaint

Parameters

» boolean asynchronouswhether or not to use an asynchronous connection

Return Value

» void

API Tags

» Access: public

Default Value

» true

Description

CPAINT can be configured to use synchronized connections. This means that your JavaScript application will wait until cpaint.call() has returned.

Please note that some browsers (among them MSIE and Firefox 1.x) will freeze completely until the response has been received when using synchronized connections. Unfortunatelly there is nothing we can do about this.
Of course this limits the use of synchronized connections severely, so be advised not to use sync'ed connections if there are other options.

CPAINTs default behaviour is to use asynchronous connections (hence the name AJAX).