Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

Add $js->request()

#3

request($url, $options = array())
Generate a javascript snippet to create an XmlHttpRequest or 'AJAX' request.

Event Options
•complete - Callback to fire on complete.
•success - Callback to fire on success.
•before - Callback to fire on request initialization.
•error - Callback to fire on request failure.
Options
•method - The method to make the request with defaults to GET in more libraries
•async - Whether or not you want an asynchronous request.
•data - Additional data to send.
•update - Dom id to update with the content of the request.
•type - Data type for response. 'json' and 'html' are supported. Default is html for most libraries.
•evalScripts - Whether or not
•dataExpression - Should the data key be treated as a callback. Useful for supplying $options['data'] as another Javascript expression.
Example use

Reported by Sean Templeton · January 30th, 2010 @ 12:04 AM

State: resolved
Milestone: DojoCake 1.3.2
Assigned to: Sean Templeton Sean Templeton

Activity

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.