RE: [WebDNA] Problem saving returned value as a variable
This WebDNA talk-list message is from 2012
It keeps the original formatting.
numero = 107919
interpreted = N
texte = Dave,=0A=Here's a url that links to a fundraiser page that has an ajax function doin=g pretty much what you want.=0A=https://webapps.utah.edu/lrrh/index.html=0A==0A=Marc=0A==0A=________________________________________=0A=From: Dave Stengel [dave@mobilinkpro.com]=0A=Sent: Wednesday, January 04, 2012 6:31 PM=0A=To: talk@webdna.us=0A=Subject: Re: [WebDNA] Problem saving returned value as a variable=0A==0A=Anyone have any examples of AJAX variable to WebDNA?=0A==0A=Dave Stengel=0A=___________________________=0A==0A=On Wed, Jan 4, 2012 at 2:42 PM,
wrote:=0A=> Your markup inside of the [text] context isn't recognized in the DOM.=0A=>=0A=> Instead of inserting into a div, you can insert into a hidden input withi=n a form. In your javascript function, once the uid is added, you can call= a submit or send the form via ajax to your dna.=0A=>=0A=> On Jan 4, 2012, at 5:40 PM, Govinda wrote:=0A=>=0A=>>=0A=>>> I'm trying to connect a page with Facebook, grab the user's FB id and==0A=>>> save it to a database when they log in.=0A=>>>=0A=>>> This script retrieves the correct data:=0A=>>>=0A=>>> =0A=>>>=0A=>>> This displays User ID correctly on the page:=0A=>>> =0A=>>>=0A=>>> My problem is I can't save this as a text variable.=0A=>>> [text]UID=3D[/text]=0A=>>>=0A=>>> gives me:=0A=>>> UID=3D=0A=>>>=0A=>>> Am I missing something obviously?=0A=>>=0A=>> Hi Dave, yes, you are missing that javascript is client side.. while web=dna is server side. The server (incl. webdna) parses all webdna tags in th=e file *before* the file gets sent to the browser, where javascript can the=n finally get its mitts on the current state of the file.=0A=>>=0A=>> Please ponder this ^^^ deeply as it will come up again and again, until =you get really clear about the situation.=0A=>>=0A=>> Now to answer your specific problem, (I am still thinking... and then re=alized I must focus on what I am doing to get done today what has to get do=ne.. so real quickly.. can you use ajax to send the result of your javascr=ipt to a webdna page that does the needful with that fb value which you pas=s it?)=0A=>>=0A=>> Or else someone else's mind will be less preoccupied and answer you bett=er... but do consider the first paragraph...=0A=>>=0A=>> -G=0A=>>=0A=>> ---------------------------------------------------------=0A=>> This message is sent to you because you are subscribed to=0A=>> the mailing list .=0A=>> To unsubscribe, E-mail to: =0A=>> archives: http://mail.webdna.us/list/talk@webdna.us=0A=>> Bug Reporting: support@webdna.us=0A=>=0A=> ---------------------------------------------------------=0A=> This message is sent to you because you are subscribed to=0A=> the mailing list .=0A=> To unsubscribe, E-mail to: =0A=> archives: http://mail.webdna.us/list/talk@webdna.us=0A=> Bug Reporting: support@webdna.us=0A==0A==0A==0A=--=0A=Dave Stengel=0A==0A=http://www.mobilinksoftware.com=0A=209.820.1300=0A=dave@mobilinkpro.com=0A=---------------------------------------------------------=0A=This message is sent to you because you are subscribed to=0A=the mailing list .=0A=To unsubscribe, E-mail to: =0A=archives: http://mail.webdna.us/list/talk@webdna.us=0A=Bug Reporting: support@webdna.us=0A=
Associated Messages, from the most recent to the oldest:
Dave,=0A=Here's a url that links to a fundraiser page that has an ajax function doin=g pretty much what you want.=0A=https://webapps.utah.edu/lrrh/index.html=0A==0A=Marc=0A==0A=________________________________________=0A=From: Dave Stengel [dave@mobilinkpro.com]=0A=Sent: Wednesday, January 04, 2012 6:31 PM=0A=To: talk@webdna.us=0A=Subject: Re: [WebDNA] Problem saving returned value as a variable=0A==0A=Anyone have any examples of AJAX variable to WebDNA?=0A==0A=Dave Stengel=0A=___________________________=0A==0A=On Wed, Jan 4, 2012 at 2:42 PM, wrote:=0A=> Your markup inside of the [text] context isn't recognized in the DOM.=0A=>=0A=> Instead of inserting into a div, you can insert into a hidden input withi=n a form. In your javascript function, once the uid is added, you can call= a submit or send the form via ajax to your dna.=0A=>=0A=> On Jan 4, 2012, at 5:40 PM, Govinda wrote:=0A=>=0A=>>=0A=>>> I'm trying to connect a page with Facebook, grab the user's FB id and==0A=>>> save it to a database when they log in.=0A=>>>=0A=>>> This script retrieves the correct data:=0A=>>>=0A=>>> =0A=>>>=0A=>>> This displays User ID correctly on the page:=0A=>>> =0A=>>>=0A=>>> My problem is I can't save this as a text variable.=0A=>>> [text]UID=3D[/text]=0A=>>>=0A=>>> gives me:=0A=>>> UID=3D=0A=>>>=0A=>>> Am I missing something obviously?=0A=>>=0A=>> Hi Dave, yes, you are missing that javascript is client side.. while web=dna is server side. The server (incl. webdna) parses all webdna tags in th=e file *before* the file gets sent to the browser, where javascript can the=n finally get its mitts on the current state of the file.=0A=>>=0A=>> Please ponder this ^^^ deeply as it will come up again and again, until =you get really clear about the situation.=0A=>>=0A=>> Now to answer your specific problem, (I am still thinking... and then re=alized I must focus on what I am doing to get done today what has to get do=ne.. so real quickly.. can you use ajax to send the result of your javascr=ipt to a webdna page that does the needful with that fb value which you pas=s it?)=0A=>>=0A=>> Or else someone else's mind will be less preoccupied and answer you bett=er... but do consider the first paragraph...=0A=>>=0A=>> -G=0A=>>=0A=>> ---------------------------------------------------------=0A=>> This message is sent to you because you are subscribed to=0A=>> the mailing list .=0A=>> To unsubscribe, E-mail to: =0A=>> archives: http://mail.webdna.us/list/talk@webdna.us=0A=>> Bug Reporting: support@webdna.us=0A=>=0A=> ---------------------------------------------------------=0A=> This message is sent to you because you are subscribed to=0A=> the mailing list .=0A=> To unsubscribe, E-mail to: =0A=> archives: http://mail.webdna.us/list/talk@webdna.us=0A=> Bug Reporting: support@webdna.us=0A==0A==0A==0A=--=0A=Dave Stengel=0A==0A=http://www.mobilinksoftware.com=0A=209.820.1300=0A=dave@mobilinkpro.com=0A=---------------------------------------------------------=0A=This message is sent to you because you are subscribed to=0A=the mailing list .=0A=To unsubscribe, E-mail to: =0A=archives: http://mail.webdna.us/list/talk@webdna.us=0A=Bug Reporting: support@webdna.us=0A=
Marc Thompson
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:
problems with 2 tags (1997)
wild question (1998)
[WebDNA] A new popuated field to a DB with 700.000 records (2009)
OT: Poll Please (2002)
[Fwd: F3 database munching] (1997)
Search Context: How to set Max=N? (2000)
Error: this shopping cart has already been submitted and (2006)
WebDelivery downloads alias, not original ? (1997)
Multi-processor Mac info ... (1997)
Error:Too many nested [xxx] contexts (1997)
Emailer setup (1997)
Reversed words (1997)
RE: [WebDNA] COMMITDATABASE in linux unix 64bits FastCGI version 8.6 (2020)
Problems passing [SKU] with $Replace in 2.0 (1997)
multiple databases (1997)
Re:Dumb Question about Docs (1997)
Fields/Forms Processing (1998)
UPS Online tool (2007)
[BoldWords] WebCat.acgib15Mac (1997)
RAM variables (1997)