You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
763 B
16 lines
763 B
2 months ago
|
**jQueryServer** is a jQuery plugin giving unobstrusive, client-side bindings to server-side implementation of jQuery.
|
||
|
|
||
|
## Example scenario
|
||
|
1. Connect to server and make an [Ajax](Ajax.md) request to somewhere ([crossdomain allowed](CrossDomainAjax.md))
|
||
|
1. Do some manipulations, you can even trigger a [server-side event](http://code.google.com/p/phpquery/wiki/Events#Server_Side_Events)
|
||
|
1. Get processed date back to the browser
|
||
|
|
||
|
## Example code
|
||
|
```
|
||
|
$.server({url: 'http://somesite.com'})
|
||
|
.find('.my-class')
|
||
|
.client(function(response){
|
||
|
$('.destination').html(response);
|
||
|
});
|
||
|
```
|
||
|
Since version **0.5.1** (this is **not** phpQuery release version number) there is a support for config file which **authorizes** [Ajax](Ajax.md) hosts and referers.
|