Re: [WebDNA] Before I write this AJAX code from scratch ...

This WebDNA talk-list message is from

2015


It keeps the original formatting.
numero = 112241
interpreted = N
texte = --089e013cc21a63aaaa0512d2e715 Content-Type: text/plain; charset=UTF-8 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 >>>> >>> >>> >> > --089e013cc21a63aaaa0512d2e715 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

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" &= lt;dan@danstrong.com> wrote:
One m= ore thing... wrap your cc processing code in [spawn] for ultimate user luxu= riousness

<img src=3D"processing.gif"= ; />
[spawn]
=C2=A0 =C2=A0 =C2=A0[parse your code here]
=C2=A0 = =C2=A0 =C2=A0[writefile done.txt][/writefile]
[/spawn]

[waitforfi= le file=3Ddone.txt&timeout=3D300]
=C2=A0 =C2=A0 =C2=A0[redirect or w= hatever ...]
[/waitforfile]=C2=A0


On Thu, Apr 2, 2015 at 9:07 AM, Dan Strong <= span dir=3D"ltr"><dan@danstrong.com> wrote:
=
Something like this:

<img=20 src=3D"processing.gif" />
[parse your code here]
[writ= efile=20 done.txt][/writefile]

[waitforfile file=3Ddone.txt&timeout=3D30= 0]=20
=C2=A0=C2=A0=C2=A0 [redirect or whatever ...]
[/waitforfile]=C2=A0<= br>


On Thu, Apr 2, 2015 at 9:04= AM, Dan Strong <dan@danstrong.com> wrote:
Ken, I'll respond in more detail late= r 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/p= rogress bar image being displayed while [waitforfile] waits for some file t= riggered by the conclusion of the CC transaction. I'm sure you get the = idea...

Will check back later today.

<= /span>

On Thu, Apr 2, 2015 at 8:52 AM, Kenneth Grom= e <ken@webdnasolutions.com> wrote:
I have a client who wants me to display a 'page loadin= g' spinner
while waiting for his 'thank you' page to load.=C2=A0 Sometimes thi= s
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 c= ode 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.web= dnasolutions.com
Web Database Systems and Linux Server Management

---------------------------------------------------------
This message is sent to you because you are subscribed to
the mailing list <ta= lk@webdna.us>.
To unsubscribe, E-mail to: <talk-leave@webdna.us>
archives: http://mail.webdna.us/list/talk@webdna.us
Bug Reporting: suppo= rt@webdna.us



--089e013cc21a63aaaa0512d2e715-- Associated Messages, from the most recent to the oldest:

    
  1. Re: [WebDNA] Before I write this AJAX code from scratch ... (Kenneth Grome 2015)
  2. Re: [WebDNA] Before I write this AJAX code from scratch ... (Dan Strong 2015)
  3. Re: [WebDNA] Before I write this AJAX code from scratch ... (Dan Strong 2015)
  4. Re: [WebDNA] Before I write this AJAX code from scratch ... (Dan Strong 2015)
  5. Re: [WebDNA] Before I write this AJAX code from scratch ... (Dan Strong 2015)
  6. [WebDNA] Before I write this AJAX code from scratch ... (Kenneth Grome 2015)
--089e013cc21a63aaaa0512d2e715 Content-Type: text/plain; charset=UTF-8 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 >>>> >>> >>> >> > --089e013cc21a63aaaa0512d2e715 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

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" &= lt;dan@danstrong.com> wrote:
One m= ore thing... wrap your cc processing code in [spawn] for ultimate user luxu= riousness

<img src=3D"processing.gif"= ; />
[spawn]
=C2=A0 =C2=A0 =C2=A0[parse your code here]
=C2=A0 = =C2=A0 =C2=A0[writefile done.txt][/writefile]
[/spawn]

[waitforfi= le file=3Ddone.txt&timeout=3D300]
=C2=A0 =C2=A0 =C2=A0[redirect or w= hatever ...]
[/waitforfile]=C2=A0


On Thu, Apr 2, 2015 at 9:07 AM, Dan Strong <= span dir=3D"ltr"><dan@danstrong.com> wrote:
=
Something like this:

<img=20 src=3D"processing.gif" />
[parse your code here]
[writ= efile=20 done.txt][/writefile]

[waitforfile file=3Ddone.txt&timeout=3D30= 0]=20
=C2=A0=C2=A0=C2=A0 [redirect or whatever ...]
[/waitforfile]=C2=A0<= br>


On Thu, Apr 2, 2015 at 9:04= AM, Dan Strong <dan@danstrong.com> wrote:
Ken, I'll respond in more detail late= r 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/p= rogress bar image being displayed while [waitforfile] waits for some file t= riggered by the conclusion of the CC transaction. I'm sure you get the = idea...

Will check back later today.

<= /span>

On Thu, Apr 2, 2015 at 8:52 AM, Kenneth Grom= e <ken@webdnasolutions.com> wrote:
I have a client who wants me to display a 'page loadin= g' spinner
while waiting for his 'thank you' page to load.=C2=A0 Sometimes thi= s
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 c= ode 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.web= dnasolutions.com
Web Database Systems and Linux Server Management

---------------------------------------------------------
This message is sent to you because you are subscribed to
the mailing list <ta= lk@webdna.us>.
To unsubscribe, E-mail to: <talk-leave@webdna.us>
archives: http://mail.webdna.us/list/talk@webdna.us
Bug Reporting: suppo= rt@webdna.us



--089e013cc21a63aaaa0512d2e715-- Dan Strong

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:

Setting the Date (2000) Dummy Credit Card Number for debug? (1997) Summaries (1999) WebTen and WebCat (1997) Nesting format tags (1997) WebCat2 several catalogs? (1997) Server slowing down. (1997) more on prefs not being written (2000) OT-test (1998) Version f1 status (1997) WebDNA update from Smith Micro (2002) WebCatb15 Mac CGI -- [purchase] (1997) DataBaseHelper Flawed (1997) Platform Switch (1997) Adding Suffixes (2004) choice of images (2000) Extended [ConvertChars] (1997) AOL and [redirect] (2000) Setting up WebCatalog with Retail Pro data (1996) emailer settings and control questions (1997)