Re: [jQuery] remote ajax with jquery...

2007-01-31 Thread Dan Atkinson

As much as I enjoyed this demo, my brain has trouble parsing and rendering
HTML and JavaScript, and therefore I didn't get the full effect of the
'demo'.

Is it possible for you to put this demo in a place which I am able to sample
the demo-ness of it, please? It does sound interesting!

Cheers.


Ⓙⓐⓚⓔ wrote:
 
 I casually mentioned 'remote ajax' in another thread... I thought I'd
 show a demo of it... very simple!
 
 it's used to watch woot.com while they are doing rapid sales!
 
 ?xml version=1.0 encoding=utf-8 ?
 !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.1//EN
 http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd;
 html xmlns=http://www.w3.org/1999/xhtml; xml:lang=en
   head
   title
   Wootster
   /title
   script type=text/javascript src=/js/jquery.js/script
   script type=text/javascript
   $(function(){
   var doit = function(){
   $.ajax({
   
 url:'http.cgi?http://www.woot.com/DefaultMicrosummary.ashx',
   success: function(data) {
   var title = '@' + new 
 Date();
   $('body').prepend('div 
 title='+title+'' + data + /div)
   var sale = 
 document.title = data.split('\r')[0];
   if (!sale.match(/%/)) {
   
 $('body').prepend('h1See you at 10pm! Woot is not
 flashing!/h1')
   
 clearInterval(interval)
   }}})}
   doit()
   var interval = setInterval(doit,4)
   $('body').click(function(){window.location = 
 http://www.woot.com/})
   })
   /script
   /head
   body/
 /html
 
 is a simple page that ajaxes a microsummary  repeatedly from another site.
 
 and http.cgi is:
 
 #!/usr/bin/perl
 use LWP::UserAgent;
 use CGI;
 $ua = LWP::UserAgent-new;
 $ua-agent(NuBrowser/10.7 );
 $res = $ua-request(HTTP::Request-new(GET =  $ENV{QUERY_STRING} ||
 http://www.woot.com/DefaultMicrosummary.ashx;));
 $q = CGI-new;
 print $q-header($res-headers-{'Content-Type'}),$res-content;
 -- 
 Ⓙⓐⓚⓔ - יעקב   ʝǡǩȩ   ᎫᎪᏦᎬ
 ___
 jQuery mailing list
 discuss@jquery.com
 http://jquery.com/discuss/
 
 

-- 
View this message in context: 
http://www.nabble.com/remote-ajax-with-jquery...-tf3146158.html#a8725501
Sent from the JQuery mailing list archive at Nabble.com.


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] remote ajax with jquery...

2007-01-31 Thread Klaus Hartl
Dan Atkinson wrote:
 As much as I enjoyed this demo, my brain has trouble parsing and rendering
 HTML and JavaScript, and therefore I didn't get the full effect of the
 'demo'.
 
 Is it possible for you to put this demo in a place which I am able to sample
 the demo-ness of it, please? It does sound interesting!
 
 Cheers.

It's about using a proxy to make cross domain ajax possible.

Related read:
http://snook.ca/archives/javascript/cross_domain_aj/



-- Klaus

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] remote ajax with jquery...

2007-01-31 Thread Lick

Very nice, Jake. I was looking for a method to do this but I never found one.
Thanks a lot!




Ⓙⓐⓚⓔ wrote:
 
 I casually mentioned 'remote ajax' in another thread... I thought I'd
 show a demo of it... very simple!
 
 it's used to watch woot.com while they are doing rapid sales!
 
 ?xml version=1.0 encoding=utf-8 ?
 !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.1//EN
 http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd;
 html xmlns=http://www.w3.org/1999/xhtml; xml:lang=en
   head
   title
   Wootster
   /title
   script type=text/javascript src=/js/jquery.js/script
   script type=text/javascript
   $(function(){
   var doit = function(){
   $.ajax({
   
 url:'http.cgi?http://www.woot.com/DefaultMicrosummary.ashx',
   success: function(data) {
   var title = '@' + new 
 Date();
   $('body').prepend('div 
 title='+title+'' + data + /div)
   var sale = 
 document.title = data.split('\r')[0];
   if (!sale.match(/%/)) {
   
 $('body').prepend('h1See you at 10pm! Woot is not
 flashing!/h1')
   
 clearInterval(interval)
   }}})}
   doit()
   var interval = setInterval(doit,4)
   $('body').click(function(){window.location = 
 http://www.woot.com/})
   })
   /script
   /head
   body/
 /html
 
 is a simple page that ajaxes a microsummary  repeatedly from another site.
 
 and http.cgi is:
 
 #!/usr/bin/perl
 use LWP::UserAgent;
 use CGI;
 $ua = LWP::UserAgent-new;
 $ua-agent(NuBrowser/10.7 );
 $res = $ua-request(HTTP::Request-new(GET =  $ENV{QUERY_STRING} ||
 http://www.woot.com/DefaultMicrosummary.ashx;));
 $q = CGI-new;
 print $q-header($res-headers-{'Content-Type'}),$res-content;
 -- 
 Ⓙⓐⓚⓔ - יעקב   ʝǡǩȩ   ᎫᎪᏦᎬ
 ___
 jQuery mailing list
 discuss@jquery.com
 http://jquery.com/discuss/
 
 

-- 
View this message in context: 
http://www.nabble.com/remote-ajax-with-jquery...-tf3146158.html#a8729839
Sent from the JQuery mailing list archive at Nabble.com.


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] remote ajax with jquery...

2007-01-31 Thread Ⓙⓐⓚⓔ
Dan, it's on my home machine http://cigar.dynalias.org/woot.html
it's active right now woot  is selling different products every
few minutes!!



On 1/31/07, Dan Atkinson [EMAIL PROTECTED] wrote:

 As much as I enjoyed this demo, my brain has trouble parsing and rendering
 HTML and JavaScript, and therefore I didn't get the full effect of the
 'demo'.

 Is it possible for you to put this demo in a place which I am able to sample
 the demo-ness of it, please? It does sound interesting!

 Cheers.


 Ⓙⓐⓚⓔ wrote:
 
  I casually mentioned 'remote ajax' in another thread... I thought I'd
  show a demo of it... very simple!
 
  it's used to watch woot.com while they are doing rapid sales!
 
  ?xml version=1.0 encoding=utf-8 ?
  !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.1//EN
  http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd;
  html xmlns=http://www.w3.org/1999/xhtml; xml:lang=en
head
title
Wootster
/title
script type=text/javascript src=/js/jquery.js/script
script type=text/javascript
$(function(){
var doit = function(){
$.ajax({

  url:'http.cgi?http://www.woot.com/DefaultMicrosummary.ashx',
success: function(data) {
var title = '@' + new 
  Date();

  $('body').prepend('div title='+title+'' + data + /div)
var sale = 
  document.title = data.split('\r')[0];
if (!sale.match(/%/)) 
  {

  $('body').prepend('h1See you at 10pm! Woot is not
  flashing!/h1')

  clearInterval(interval)
}}})}
doit()
var interval = setInterval(doit,4)
$('body').click(function(){window.location = 
  http://www.woot.com/})
})
/script
/head
body/
  /html
 
  is a simple page that ajaxes a microsummary  repeatedly from another site.
 
  and http.cgi is:
 
  #!/usr/bin/perl
  use LWP::UserAgent;
  use CGI;
  $ua = LWP::UserAgent-new;
  $ua-agent(NuBrowser/10.7 );
  $res = $ua-request(HTTP::Request-new(GET =  $ENV{QUERY_STRING} ||
  http://www.woot.com/DefaultMicrosummary.ashx;));
  $q = CGI-new;
  print $q-header($res-headers-{'Content-Type'}),$res-content;
  --
  Ⓙⓐⓚⓔ - יעקב   ʝǡǩȩ   ᎫᎪᏦᎬ
  ___
  jQuery mailing list
  discuss@jquery.com
  http://jquery.com/discuss/
 
 

 --
 View this message in context: 
 http://www.nabble.com/remote-ajax-with-jquery...-tf3146158.html#a8725501
 Sent from the JQuery mailing list archive at Nabble.com.


 ___
 jQuery mailing list
 discuss@jquery.com
 http://jquery.com/discuss/



-- 
Ⓙⓐⓚⓔ - יעקב   ʝǡǩȩ   ᎫᎪᏦᎬ
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] remote ajax with jquery...

2007-01-31 Thread Web Specialist

Jake, jquery plugin page haves a great plugin for hit remote URL every X
time. Named JHeartBeat(http://www.jasons-toolbox.com/JHeartbeat/). Looks
like a great choice. Your demo works like that?

Cheers

2007/1/31, Ⓙⓐⓚⓔ [EMAIL PROTECTED]:


Dan, it's on my home machine http://cigar.dynalias.org/woot.html
it's active right now woot  is selling different products every
few minutes!!



On 1/31/07, Dan Atkinson [EMAIL PROTECTED] wrote:

 As much as I enjoyed this demo, my brain has trouble parsing and
rendering
 HTML and JavaScript, and therefore I didn't get the full effect of the
 'demo'.

 Is it possible for you to put this demo in a place which I am able to
sample
 the demo-ness of it, please? It does sound interesting!

 Cheers.


 Ⓙⓐⓚⓔ wrote:
 
  I casually mentioned 'remote ajax' in another thread... I thought I'd
  show a demo of it... very simple!
 
  it's used to watch woot.com while they are doing rapid sales!
 
  ?xml version=1.0 encoding=utf-8 ?
  !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.1//EN
  http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd;
  html xmlns=http://www.w3.org/1999/xhtml; xml:lang=en
head
title
Wootster
/title
script type=text/javascript
src=/js/jquery.js/script
script type=text/javascript
$(function(){
var doit = function(){
$.ajax({
url:'http.cgi
?http://www.woot.com/DefaultMicrosummary.ashx',
success: function(data)
{
var title = '@'
+ new Date();
 
$('body').prepend('div title='+title+'' + data + /div)
var sale =
document.title = data.split('\r')[0];
if
(!sale.match(/%/)) {
 
$('body').prepend('h1See you at 10pm! Woot is not
  flashing!/h1')
 
clearInterval(interval)
}}})}
doit()
var interval = setInterval(doit,4)
$('body').click(function(){
window.location = http://www.woot.com/})
})
/script
/head
body/
  /html
 
  is a simple page that ajaxes a microsummary  repeatedly from another
site.
 
  and http.cgi is:
 
  #!/usr/bin/perl
  use LWP::UserAgent;
  use CGI;
  $ua = LWP::UserAgent-new;
  $ua-agent(NuBrowser/10.7 );
  $res = $ua-request(HTTP::Request-new(GET =  $ENV{QUERY_STRING} ||
  http://www.woot.com/DefaultMicrosummary.ashx;));
  $q = CGI-new;
  print $q-header($res-headers-{'Content-Type'}),$res-content;
  --
  Ⓙⓐⓚⓔ - יעקב   ʝǡǩȩ   ᎫᎪᏦᎬ
  ___
  jQuery mailing list
  discuss@jquery.com
  http://jquery.com/discuss/
 
 

 --
 View this message in context:
http://www.nabble.com/remote-ajax-with-jquery...-tf3146158.html#a8725501
 Sent from the JQuery mailing list archive at Nabble.com.


 ___
 jQuery mailing list
 discuss@jquery.com
 http://jquery.com/discuss/



--
Ⓙⓐⓚⓔ - יעקב   ʝǡǩȩ   ᎫᎪᏦᎬ
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] remote ajax with jquery...

2007-01-31 Thread Ⓙⓐⓚⓔ
it looks lilke a similar idea... but without the remote part. with the
addition of the perl program you are not limited to a heartbeat from
your own machine it would work with any machine!

On 1/31/07, Web Specialist [EMAIL PROTECTED] wrote:
 Jake, jquery plugin page haves a great plugin for hit remote URL every X
 time. Named
 JHeartBeat(http://www.jasons-toolbox.com/JHeartbeat/).
 Looks like a great choice. Your demo works like that?

 Cheers

 2007/1/31, Ⓙⓐⓚⓔ [EMAIL PROTECTED]:
  Dan, it's on my home machine
 http://cigar.dynalias.org/woot.html
  it's active right now woot  is selling different products every
  few minutes!!
 
 
 
  On 1/31/07, Dan Atkinson [EMAIL PROTECTED] wrote:
  
   As much as I enjoyed this demo, my brain has trouble parsing and
 rendering
   HTML and JavaScript, and therefore I didn't get the full effect of the
   'demo'.
  
   Is it possible for you to put this demo in a place which I am able to
 sample
   the demo-ness of it, please? It does sound interesting!
  
   Cheers.
  
  
   Ⓙⓐⓚⓔ wrote:
   
I casually mentioned 'remote ajax' in another thread... I thought I'd
show a demo of it... very simple!
   
it's used to watch woot.com while they are doing rapid sales!
   
?xml version=1.0 encoding=utf-8 ?
!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.1//EN
http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd;
html xmlns=http://www.w3.org/1999/xhtml  xml:lang=en
  head
  title
  Wootster
  /title
  script type=text/javascript
 src=/js/jquery.js/script
  script type=text/javascript
  $(function(){
  var doit = function(){
  $.ajax({
   
 url:'http.cgi?http://www.woot.com/DefaultMicrosummary.ashx',
   
 success: function(data) {
   
 var title = '@' + new Date();
   
 $('body').prepend('div title='+title+'' + data + /div)
   
 var sale = document.title = data.split('\r')[0];
   
 if (!sale.match(/%/)) {
   
 $('body').prepend('h1See you at 10pm! Woot is not
flashing!/h1')
   
 clearInterval(interval)
  }}})}
  doit()
  var interval = setInterval(doit,4)
   
 $('body').click(function(){window.location = http://www.woot.com/ })
  })
  /script
  /head
  body/
/html
   
is a simple page that ajaxes a microsummary  repeatedly from another
 site.
   
and http.cgi is:
   
#!/usr/bin/perl
use LWP::UserAgent;
use CGI;
$ua = LWP::UserAgent-new;
$ua-agent(NuBrowser/10.7 );
$res = $ua-request(HTTP::Request-new(GET =
 $ENV{QUERY_STRING} ||
http://www.woot.com/DefaultMicrosummary.ashx;));
$q = CGI-new;
print
 $q-header($res-headers-{'Content-Type'}),$res-content;
--
Ⓙⓐⓚⓔ - יעקב   ʝǡǩȩ   ᎫᎪᏦᎬ
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/
   
   
  
   --
   View this message in context:
 http://www.nabble.com/remote-ajax-with-jquery...-tf3146158.html#a8725501
   Sent from the JQuery mailing list archive at Nabble.com.
  
  
   ___
   jQuery mailing list
   discuss@jquery.com
   http://jquery.com/discuss/
  
 
 
  --
  Ⓙⓐⓚⓔ - יעקב   ʝǡǩȩ   ᎫᎪᏦᎬ
  ___
  jQuery mailing list
  discuss@jquery.com
  http://jquery.com/discuss/
 


 ___
 jQuery mailing list
 discuss@jquery.com
 http://jquery.com/discuss/





-- 
Ⓙⓐⓚⓔ - יעקב   ʝǡǩȩ   ᎫᎪᏦᎬ
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


[jQuery] remote ajax with jquery...

2007-01-30 Thread Ⓙⓐⓚⓔ
I casually mentioned 'remote ajax' in another thread... I thought I'd
show a demo of it... very simple!

it's used to watch woot.com while they are doing rapid sales!

?xml version=1.0 encoding=utf-8 ?
!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.1//EN
http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd;
html xmlns=http://www.w3.org/1999/xhtml; xml:lang=en
head
title
Wootster
/title
script type=text/javascript src=/js/jquery.js/script
script type=text/javascript
$(function(){
var doit = function(){
$.ajax({

url:'http.cgi?http://www.woot.com/DefaultMicrosummary.ashx',
success: function(data) {
var title = '@' + new 
Date();
$('body').prepend('div 
title='+title+'' + data + /div)
var sale = 
document.title = data.split('\r')[0];
if (!sale.match(/%/)) {

$('body').prepend('h1See you at 10pm! Woot is not flashing!/h1')

clearInterval(interval)
}}})}
doit()
var interval = setInterval(doit,4)
$('body').click(function(){window.location = 
http://www.woot.com/})
})
/script
/head
body/
/html

is a simple page that ajaxes a microsummary  repeatedly from another site.

and http.cgi is:

#!/usr/bin/perl
use LWP::UserAgent;
use CGI;
$ua = LWP::UserAgent-new;
$ua-agent(NuBrowser/10.7 );
$res = $ua-request(HTTP::Request-new(GET =  $ENV{QUERY_STRING} ||
http://www.woot.com/DefaultMicrosummary.ashx;));
$q = CGI-new;
print $q-header($res-headers-{'Content-Type'}),$res-content;
-- 
Ⓙⓐⓚⓔ - יעקב   ʝǡǩȩ   ᎫᎪᏦᎬ
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/