Re: [WebDNA] generic Ajax question: storing a variable site-wide

This WebDNA talk-list message is from

2009


It keeps the original formatting.
numero = 102071
interpreted = N
texte = It works! thank you Toby! chris On Feb 26, 2009, at 10:44, Toby Cox wrote: > sorry - think I missed a bracket. Please find all below > > > > > > >
>
> Enter Information > > > >
>
> > > > > > > > > On 26 Feb 2009, at 12:18, christophe.billiottet@webdna.us wrote: > >> Hello Toby! i replaced the js code by the one you gave: >> >> >> >> >> but the fadein, fadeout effects do not work anymore. I guess the >> solution would be to permanently store the [fname] value, this is >> why i used the scope=global, but unsuccessfully so far.. >> >> chris >> >> On Feb 26, 2009, at 9:09, Toby Cox wrote: >> >>> try this: >>> >>> $.post('test.dna',{fname:$('#fname').val()}, function(data){ >>> $('form#submit').hide(); >>> $('div.success').html(data); >>> $('div.success').fadeIn(); >>> } >>> >>> }); >>> >>> >>> >>> On 26 Feb 2009, at 11:03, christophe.billiottet@webdna.us wrote: >>> >>>> Hello folks! >>>> >>>> i am testing an Ajax form (using jquery.js) that posts a field >>>> into a .dna file, fade out the field and fade in the result >>>> inside another
>>>> >>>> Here the code: >>>> --------------------------- >>>>
>>>>
>>>> Enter Information >>>> >>>> >>> type="text" /> >>>> >>>>
>>>>
>>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> --------------------------- >>>> >>>> It partly works only: the test.dna file gets the fname variable >>>> but returns 2/26/2009 and [fname], uninterpreted: >>>> >>>> --------------------------- >>>> >>>> [date], [text scope=global]name=[fname][/text] >>>> [date], [name] >>>> --------------------------- >>>> >>>> I tested with [writefile], and this works: i get a file with >>>> 2/26/2009 and the correct content of the field, meaning the fname >>>> variable is properly passed to test.dna. I can then include it >>>> inside my "success" container, but this is not what i want. Does >>>> anyone knows how to store the [fname] value site-wide in order to >>>> recover it inside my container? >>>> >>>> chris >>>> >>>> --------------------------------------------------------- >>>> 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 >>>> old archives: http://dev.webdna.us/TalkListArchive/ >>> >>> --------------------------------------------------------- >>> 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 >>> old archives: http://dev.webdna.us/TalkListArchive/ >> >> --------------------------------------------------------- >> 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 >> old archives: http://dev.webdna.us/TalkListArchive/ > > --------------------------------------------------------- > 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 > old archives: http://dev.webdna.us/TalkListArchive/ Associated Messages, from the most recent to the oldest:

    
  1. Re: [WebDNA] generic Ajax question: storing a variable site-wide (christophe.billiottet@webdna.us 2009)
  2. Re: [WebDNA] generic Ajax question: storing a variable site-wide (Toby Cox 2009)
  3. Re: [WebDNA] generic Ajax question: storing a variable site-wide (christophe.billiottet@webdna.us 2009)
  4. Re: [WebDNA] generic Ajax question: storing a variable site-wide (Toby Cox 2009)
  5. [WebDNA] generic Ajax question: storing a variable site-wide (christophe.billiottet@webdna.us 2009)
It works! thank you Toby! chris On Feb 26, 2009, at 10:44, Toby Cox wrote: > sorry - think I missed a bracket. Please find all below > > > > > > >
>
> Enter Information > > > >
>
> > > > > > > > > On 26 Feb 2009, at 12:18, christophe.billiottet@webdna.us wrote: > >> Hello Toby! i replaced the js code by the one you gave: >> >> >> >> >> but the fadein, fadeout effects do not work anymore. I guess the >> solution would be to permanently store the [fname] value, this is >> why i used the scope=global, but unsuccessfully so far.. >> >> chris >> >> On Feb 26, 2009, at 9:09, Toby Cox wrote: >> >>> try this: >>> >>> $.post('test.dna',{fname:$('#fname').val()}, function(data){ >>> $('form#submit').hide(); >>> $('div.success').html(data); >>> $('div.success').fadeIn(); >>> } >>> >>> }); >>> >>> >>> >>> On 26 Feb 2009, at 11:03, christophe.billiottet@webdna.us wrote: >>> >>>> Hello folks! >>>> >>>> i am testing an Ajax form (using jquery.js) that posts a field >>>> into a .dna file, fade out the field and fade in the result >>>> inside another
>>>> >>>> Here the code: >>>> --------------------------- >>>>
>>>>
>>>> Enter Information >>>> >>>> >>> type="text" /> >>>> >>>>
>>>>
>>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> --------------------------- >>>> >>>> It partly works only: the test.dna file gets the fname variable >>>> but returns 2/26/2009 and [fname], uninterpreted: >>>> >>>> --------------------------- >>>> >>>> [date], [text scope=global]name=[fname][/text] >>>> [date], [name] >>>> --------------------------- >>>> >>>> I tested with [writefile], and this works: i get a file with >>>> 2/26/2009 and the correct content of the field, meaning the fname >>>> variable is properly passed to test.dna. I can then include it >>>> inside my "success" container, but this is not what i want. Does >>>> anyone knows how to store the [fname] value site-wide in order to >>>> recover it inside my container? >>>> >>>> chris >>>> >>>> --------------------------------------------------------- >>>> 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 >>>> old archives: http://dev.webdna.us/TalkListArchive/ >>> >>> --------------------------------------------------------- >>> 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 >>> old archives: http://dev.webdna.us/TalkListArchive/ >> >> --------------------------------------------------------- >> 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 >> old archives: http://dev.webdna.us/TalkListArchive/ > > --------------------------------------------------------- > 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 > old archives: http://dev.webdna.us/TalkListArchive/ christophe.billiottet@webdna.us

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:

WebCatalog/Mac 2.1b2 - PIXO (1997) IE Cookies problem (2001) Multiple catalog databases and showcart (1997) Cart Unique After Rolling Back Time? (2001) [WebDNA] Conversion of 500.000 records; advise needed (2008) cart (1997) PCS Frames (1997) WebCat2 - [format thousands] (1997) WebSite and *NO* Authentication Dialog Box!!? (1998) converchars in sendmail context.... (2004) WebCat name recognition (1998) Auto Unsubscribe (2000) Multiple prices (1997) problems with 2 tags (1997) WC1.6 to WC2 date formatting (1997) WebCatalog 4.0.2b5 install problems (2000) international time (1997) minimalist shopping cart. (1997) FAX orders (1996) Check boxes (1997)