Re: [WebDNA] Before I write this AJAX code from scratch ...
This WebDNA talk-list message is from 2015
It keeps the original formatting.
numero = 112242
interpreted = N
texte = Yes, I decided not to mess with ajax/jquery after I finally gotthe spawn context working. Using spawn works even better in thisparticular situation.Regards,Kenneth GromeWebDNA Solutionshttp://www.webdnasolutions.comWeb Database Systems and Linux Server ManagementOn 04/03/2015 09:38 AM, Dan Strong wrote:> Ken did you get this worked out?> > ------------------------------------> Sent from phone> > -Dan Strong> http://danstrong.com> http://sw.amphou.se> > On Apr 2, 2015 9:31 AM, "Dan Strong"
> wrote:> > One more thing... wrap your cc processing code in [spawn] for> ultimate user luxuriousness> >>
>> [spawn]>> [parse your code here]>> [writefile done.txt][/writefile]>> [/spawn]>>>> [waitforfile file=done.txt&timeout=300]>> [redirect or whatever ...]>> [/waitforfile] > > -Dan Strong> http://danstrong.com > http://sw.amphou.se> > On Thu, Apr 2, 2015 at 9:07 AM, Dan Strong > wrote:> > Something like this:> >>
>> [parse your code here]>> [writefile done.txt][/writefile]>>>> [waitforfile file=done.txt&timeout=300]>> [redirect or whatever ...]>> [/waitforfile] >>> > -Dan Strong> http://danstrong.com > http://sw.amphou.se> > On Thu, Apr 2, 2015 at 9:04 AM, Dan Strong> > wrote:> > Ken, I'll respond in more detail later today if others> don't help you before then, but in the broadest sense,> you want to probably use jquery since it has stuff> like this built right in and there are metric> buttloads of plugins and such for ajax spinners.> > But that said, if this is a one-off thing you could> always do a quick & dirty fake-out thing involving an> animated .gif spinner/progress bar image being> displayed while [waitforfile] waits for some file> triggered by the conclusion of the CC transaction. I'm> sure you get the idea...> > Will check back later today.> > -Dan Strong> http://danstrong.com > http://sw.amphou.se> > On Thu, Apr 2, 2015 at 8:52 AM, Kenneth Grome> > wrote:> > I have a client who wants me to display a 'page> loading' spinner> while waiting for his 'thank you' page to load. > Sometimes this> takes a while because the code runs a credit card> transaction at> his processor and waits for their response.> > Since I'm not up on AJAX (and I could not find any> examples on> webdna.us or in my own code> library) I was wondering if anyone> here has done something similar and might share> their code with me> so I can get a jump-start on this project.> > ?> > Regards,> Kenneth Grome> WebDNA Solutions> http://www.webdnasolutions.com> Web Database Systems and Linux Server Management> > ---------------------------------------------------------> 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> > > > > > --------------------------------------------------------- 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
Associated Messages, from the most recent to the oldest:
Yes, I decided not to mess with ajax/jquery after I finally gotthe spawn context working. Using spawn works even better in thisparticular situation.Regards,Kenneth GromeWebDNA Solutionshttp://www.webdnasolutions.comWeb Database Systems and Linux Server ManagementOn 04/03/2015 09:38 AM, Dan Strong wrote:> Ken did you get this worked out?> > ------------------------------------> Sent from phone> > -Dan Strong> http://danstrong.com> http://sw.amphou.se> > On Apr 2, 2015 9:31 AM, "Dan Strong" > wrote:> > One more thing... wrap your cc processing code in [spawn] for> ultimate user luxuriousness> >>
>> [spawn]>> [parse your code here]>> [writefile done.txt][/writefile]>> [/spawn]>>>> [waitforfile file=done.txt&timeout=300]>> [redirect or whatever ...]>> [/waitforfile] > > -Dan Strong> http://danstrong.com > http://sw.amphou.se> > On Thu, Apr 2, 2015 at 9:07 AM, Dan Strong > wrote:> > Something like this:> >>
>> [parse your code here]>> [writefile done.txt][/writefile]>>>> [waitforfile file=done.txt&timeout=300]>> [redirect or whatever ...]>> [/waitforfile] >>> > -Dan Strong> http://danstrong.com > http://sw.amphou.se> > On Thu, Apr 2, 2015 at 9:04 AM, Dan Strong> > wrote:> > Ken, I'll respond in more detail later today if others> don't help you before then, but in the broadest sense,> you want to probably use jquery since it has stuff> like this built right in and there are metric> buttloads of plugins and such for ajax spinners.> > But that said, if this is a one-off thing you could> always do a quick & dirty fake-out thing involving an> animated .gif spinner/progress bar image being> displayed while [waitforfile] waits for some file> triggered by the conclusion of the CC transaction. I'm> sure you get the idea...> > Will check back later today.> > -Dan Strong> http://danstrong.com > http://sw.amphou.se> > On Thu, Apr 2, 2015 at 8:52 AM, Kenneth Grome> > wrote:> > I have a client who wants me to display a 'page> loading' spinner> while waiting for his 'thank you' page to load. > Sometimes this> takes a while because the code runs a credit card> transaction at> his processor and waits for their response.> > Since I'm not up on AJAX (and I could not find any> examples on> webdna.us or in my own code> library) I was wondering if anyone> here has done something similar and might share> their code with me> so I can get a jump-start on this project.> > ?> > Regards,> Kenneth Grome> WebDNA Solutions> http://www.webdnasolutions.com> Web Database Systems and Linux Server Management> > ---------------------------------------------------------> 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> > > > > > --------------------------------------------------------- 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
Kenneth Grome
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:
RE: Automatic Forwarding using WebCat (1997)
Processing all html files through WebCat or Typhoon (1998)
[WebDNA] [OT] the "Work in progress" thread. (2009)
Another question (1997)
WebCat and HTML/OS (2001)
Help with dates (2001)
NT Manual (1997)
WC2b15 - [HTMLx]...[/HTMLx] problems SOLVED! (1997)
Forcing price recalculation in shopping cart (1998)
WebCat2b13MacPlugIn - more [date] problems (1997)
Fun with Dates - revisited (1997)
[WebDNA] upgrading to 8.1 or 8.2? (2016)
If Empty ? (1997)
Word Breaks (1998)
Lastautonumber (2005)
restart needed???? (1997)
Vote: ELSE (2002)
Tax on shipping (1998)
Items XX to XX shown (1997)
[WebDNA] Wishlist: ignore whitespace in database changes (2016)