Документация
на русском v1.2.5 Документацитя по MooTools 1.4.5 Обсуждение Установить себе Благодарности
на русском v1.2.5 Документацитя по MooTools 1.4.5 Обсуждение Установить себе Благодарности
Request Specifically made for receiving HTML.
var myHTMLRequest = new Request.HTML([options]);
onSuccess(responseTree, responseElements, responseHTML, responseJavaScript)
var myHTMLRequest = new Request.HTML().get('myPage.html');
var myHTMLRequest = new Request.HTML({url:'myPage.html'}).post("user_id=25&save=true");
//Loads "load/?user_id=25". var myHTMLRequest = new Request.HTML({url:'load/'}).get({'user_id': 25});
<form action="save/" method="post" id="user-form"> <p> Search: <input type="text" name="search" /> Search in description: <input type="checkbox" name="search_description" value="yes" /> <input type="submit" /> </p> </form>
//Needs to be in a submit event or the form handler. var myHTMLRequest = new Request.HTML({url:'save/'}).post($('user-form'));
Sets a default Request.HTML instance for an Element.
el.set('load'[, options]);
el.set('load', {evalScripts: true}); el.load('some/request/uri');
Returns either the previously set Request.HTML instance or a new one with default options.
el.get('load', options);
el.set('load', {method: 'get'}); el.load('test.html'); //The getter returns the Request.HTML instance, making its class methods available. el.get('load').post('http://localhost/script');
Custom Native to allow all of its methods to be used with any DOM element via the dollar function $.
Updates the content of the Element with a Request.HTML GET request.
myElement.load(url);
<div id="content">Loading content...</div>
$('content').load('page_1.html');
© Linux.ria.ua, 2008-2024 |