[jQuery] Re: jquery.com incredibly slow for me

2008-09-17 Thread Konstantin Tokar

At me the site is loaded for some seconds.
try traceroute jquery.com - and

On 17 сент, 16:30, micha_17 [EMAIL PROTECTED] wrote:
 Can someone please confirm that jquery.com is sometimes (%2) so slow,
 pages won't even show up after 2 minutes waiting ? The slowness has
 been there before tha page has been redesigned.

 I'm on winxp FF3. I's the same with my colleagues here and @home.


[jQuery] Re: What is the best way to send data betwen JS - PHP

2008-06-20 Thread Konstantin Tokar

 but sometimes text contains \ or another istrange characters and not like
 to be correct send data in this way.
 ¿what is the best way? PHP - JS I use json, but for JS-PHP?

JSON!!!


function KT_RPC(subname, data, on_success, on_error){
jQuery.ajax({
'type': POST,
'url': /RPC.php,
'data':
{
'subname' : subname,
'json' : jQuery.toJSON(data)
},
success: function(data){
   var data_decoded = jQuery.parseJSON(data);
   if( typeof on_success == 'function'){
 on_success(data_decoded);
   }
   ...
},
 ...
);
}

KT_RPC(
  'test_sub',
  {name:value,name:value...},
  function (data){...},
  function (...){...}
);