Re: [WebDNA] HTTP Streaming -- impossible?

This WebDNA talk-list message is from

2010


It keeps the original formatting.
numero = 105563
interpreted = N
texte = --001636310929523491048b3780ca Content-Type: text/plain; charset=ISO-8859-1 > > How does the XMLHTTPRequest know when the file has changed on the server? >>> It needs to know this so it can download the new and updated file, right? >>> >> Couldn't you use the same trigger to also look for a text file written to a specific folder so that when that folder has the file in it, the trigger would sweep the folder and display the result to the browser. This would be similar to the way webdna uses the SweepWebDeliveryFolder.tpl page to either show the goodpath.inc or the badpath.inc foe credit card authorization but in your scenario it would be the winning bids and the losing bids. Also, I was wondering if you might be able to use the SPAWN context in this scenario somehow? Sal On Mon, Jul 12, 2010 at 11:18 AM, Kenneth Grome wrote: > > I just ran a test, and entering all asterisks in the timer fields, > including the "Second" field, results in a trigger that executes every > second. Give it a try. > > Thanks for the test Brian, I should have thought of that. The instructions > are wrong in this case, but at least it makes my trigger management easier > ... :) > > > > If you had a trigger that ran once per second and wrote the auction > status to a text or xml file, you could use XMLHttpRequest (AJAX) to fetch > that file from the client page and update the page content with the results. > This would execute very fast, and not bother WebDNA with every client > request, just with the once-per-second trigger. > > I was working on this approach a year ago or so on another website, but the > project ended prematurely so I never learned how this works, and that's why > I'm going to ask: > > How does the XMLHTTPRequest know when the file has changed on the server? > It needs to know this so it can download the new and updated file, right? > > Sincerely, > Kenneth Grome > > > > > > --------------------------------------------------------- > This message is sent to you because you are subscribed to > the mailing list . > To unsubscribe, E-mail to: > archives: http://mail.webdna.us/list/talk@webdna.us > Bug Reporting: support@webdna.us > --001636310929523491048b3780ca Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
How does the XMLH= TTPRequest know when the file has changed on the=20 server? =A0It needs to know this so it can download the new and updated=20 file, right?

Couldn'= ;t you use the same trigger to also look for a text file written to a speci= fic folder so that when that folder has the file in it, the trigger would s= weep the folder and display the result to the browser.=A0 This would be sim= ilar to the way webdna uses the SweepWebDeliveryFolder.tpl page to either s= how the goodpath.inc or the badpath.inc=A0 foe credit card authorization bu= t in your scenario it would be the winning bids and the losing bids.

Also, I was wondering if you might be able to use the SPAWN context in= this scenario=A0=A0 somehow?

Sal

= On Mon, Jul 12, 2010 at 11:18 AM, Kenneth Grome <kengrome@gmail.com> wrote:
> I just ran a test, and entering all asterisks in the timer fields, in= cluding the "Second" field, results in a trigger that executes ev= ery second. Give it a try.

Thanks for the test Brian, I should have thought of that. =A0The inst= ructions are wrong in this case, but at least it makes my trigger managemen= t easier ... :)


> If you had a trigger that ran once per second and wrote the auction st= atus to a text or xml file, you could use XMLHttpRequest (AJAX) to fetch th= at file from the client page and update the page content with the results. = This would execute very fast, and not bother WebDNA with every client reque= st, just with the once-per-second trigger.

I was working on this approach a year ago or so on another website, b= ut the project ended prematurely so I never learned how this works, and tha= t's why I'm going to ask:

How does the XMLHTTPRequest know when the file has changed on the server? = =A0It needs to know this so it can download the new and updated file, right= ?

Sincerely,
Kenneth Grome





---------------------------------------------------------
This message is sent to you because you are subscribed to
the mailing list <talk@webdna.us&g= t;.
To unsubscribe, E-mail to: <talk= -leave@webdna.us>
archives: http://mail.webdna.us/list/talk@webdna.us
Bug Reporting: support@webdna.us

--001636310929523491048b3780ca-- Associated Messages, from the most recent to the oldest:

    
  1. Re: [WebDNA] HTTP Streaming -- impossible? (Kenneth Grome 2010)
  2. Re: [WebDNA] HTTP Streaming -- impossible? (christophe.billiottet@webdna.us 2010)
  3. Re: [WebDNA] HTTP Streaming -- impossible? (Kenneth Grome 2010)
  4. Re: [WebDNA] HTTP Streaming -- impossible? (Kenneth Grome 2010)
  5. Re: [WebDNA] HTTP Streaming -- impossible? (Kenneth Grome 2010)
  6. Re: [WebDNA] HTTP Streaming -- impossible? (Govinda 2010)
  7. Re: [WebDNA] HTTP Streaming -- impossible? (sal danna 2010)
  8. Re: [WebDNA] HTTP Streaming -- impossible? (Jesse Proudman 2010)
  9. Re: [WebDNA] HTTP Streaming -- impossible? (Kenneth Grome 2010)
  10. Re: [WebDNA] HTTP Streaming -- impossible? (Jesse Proudman 2010)
  11. Re: [WebDNA] HTTP Streaming -- impossible? (Kenneth Grome 2010)
  12. Re: [WebDNA] HTTP Streaming -- impossible? (Govinda 2010)
  13. Re: [WebDNA] HTTP Streaming -- impossible? (Kenneth Grome 2010)
  14. Re: [WebDNA] HTTP Streaming -- impossible? (Brian Fries 2010)
  15. Re: [WebDNA] HTTP Streaming -- impossible? (Kenneth Grome 2010)
  16. Re: [WebDNA] HTTP Streaming -- impossible? (Kenneth Grome 2010)
  17. Re: [WebDNA] HTTP Streaming -- impossible? (Marc Thompson 2010)
  18. Re: [WebDNA] HTTP Streaming -- impossible? (sal danna 2010)
  19. Re: [WebDNA] HTTP Streaming -- impossible? (Lawrence 2010)
  20. Re: [WebDNA] HTTP Streaming -- impossible? (Kenneth Grome 2010)
  21. Re: [WebDNA] HTTP Streaming -- impossible? (Stuart Tremain 2010)
  22. Re: [WebDNA] HTTP Streaming -- impossible? (Kenneth Grome 2010)
  23. Re: [WebDNA] HTTP Streaming -- impossible? (Kenneth Grome 2010)
  24. Re: [WebDNA] HTTP Streaming -- impossible? (Stuart Tremain 2010)
  25. Re: [WebDNA] HTTP Streaming -- impossible? (sal danna 2010)
  26. [WebDNA] HTTP Streaming -- impossible? (Kenneth Grome 2010)
--001636310929523491048b3780ca Content-Type: text/plain; charset=ISO-8859-1 > > How does the XMLHTTPRequest know when the file has changed on the server? >>> It needs to know this so it can download the new and updated file, right? >>> >> Couldn't you use the same trigger to also look for a text file written to a specific folder so that when that folder has the file in it, the trigger would sweep the folder and display the result to the browser. This would be similar to the way webdna uses the SweepWebDeliveryFolder.tpl page to either show the goodpath.inc or the badpath.inc foe credit card authorization but in your scenario it would be the winning bids and the losing bids. Also, I was wondering if you might be able to use the SPAWN context in this scenario somehow? Sal On Mon, Jul 12, 2010 at 11:18 AM, Kenneth Grome wrote: > > I just ran a test, and entering all asterisks in the timer fields, > including the "Second" field, results in a trigger that executes every > second. Give it a try. > > Thanks for the test Brian, I should have thought of that. The instructions > are wrong in this case, but at least it makes my trigger management easier > ... :) > > > > If you had a trigger that ran once per second and wrote the auction > status to a text or xml file, you could use XMLHttpRequest (AJAX) to fetch > that file from the client page and update the page content with the results. > This would execute very fast, and not bother WebDNA with every client > request, just with the once-per-second trigger. > > I was working on this approach a year ago or so on another website, but the > project ended prematurely so I never learned how this works, and that's why > I'm going to ask: > > How does the XMLHTTPRequest know when the file has changed on the server? > It needs to know this so it can download the new and updated file, right? > > Sincerely, > Kenneth Grome > > > > > > --------------------------------------------------------- > This message is sent to you because you are subscribed to > the mailing list . > To unsubscribe, E-mail to: > archives: http://mail.webdna.us/list/talk@webdna.us > Bug Reporting: support@webdna.us > --001636310929523491048b3780ca Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
How does the XMLH= TTPRequest know when the file has changed on the=20 server? =A0It needs to know this so it can download the new and updated=20 file, right?

Couldn'= ;t you use the same trigger to also look for a text file written to a speci= fic folder so that when that folder has the file in it, the trigger would s= weep the folder and display the result to the browser.=A0 This would be sim= ilar to the way webdna uses the SweepWebDeliveryFolder.tpl page to either s= how the goodpath.inc or the badpath.inc=A0 foe credit card authorization bu= t in your scenario it would be the winning bids and the losing bids.

Also, I was wondering if you might be able to use the SPAWN context in= this scenario=A0=A0 somehow?

Sal

= On Mon, Jul 12, 2010 at 11:18 AM, Kenneth Grome <kengrome@gmail.com> wrote:
> I just ran a test, and entering all asterisks in the timer fields, in= cluding the "Second" field, results in a trigger that executes ev= ery second. Give it a try.

Thanks for the test Brian, I should have thought of that. =A0The inst= ructions are wrong in this case, but at least it makes my trigger managemen= t easier ... :)


> If you had a trigger that ran once per second and wrote the auction st= atus to a text or xml file, you could use XMLHttpRequest (AJAX) to fetch th= at file from the client page and update the page content with the results. = This would execute very fast, and not bother WebDNA with every client reque= st, just with the once-per-second trigger.

I was working on this approach a year ago or so on another website, b= ut the project ended prematurely so I never learned how this works, and tha= t's why I'm going to ask:

How does the XMLHTTPRequest know when the file has changed on the server? = =A0It needs to know this so it can download the new and updated file, right= ?

Sincerely,
Kenneth Grome





---------------------------------------------------------
This message is sent to you because you are subscribed to
the mailing list <talk@webdna.us&g= t;.
To unsubscribe, E-mail to: <talk= -leave@webdna.us>
archives: http://mail.webdna.us/list/talk@webdna.us
Bug Reporting: support@webdna.us

--001636310929523491048b3780ca-- sal danna

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...

Related Readings:

Database changes (1998) What am I missing (1997) [WebDNA] 3-5 GB of native WebDNA db in RAM?, else MySQL w/WebDNA (2009) OSX - webDNA 4.51 (2003) [ot] html question (2000) Major bug report on rootbeer (1997) WebCat2 several catalogs? (1997) Security (1998) Search Engine questions ... (2002) Nesting WebDNA in JavaScript (2003) PCS Customer submissions ? (1997) For those of you not on the WebCatalog Beta... (1997) showif and cart (1998) Access to shopping cart files (2005) form crasehes server (1997) Emailer Problem (2000) deadlock (2000) Major Security Hole IIS NT (1998) search for non-unique question (2001) [WebDNA] php/mySQL version of WebDNA Speed Test? (2009)