Re: [WebDNA] Problem saving returned value as a variable
This WebDNA talk-list message is from 2012
It keeps the original formatting.
numero = 107915
interpreted = N
texte = > I'm trying to connect a page with Facebook, grab the user's FB id and> save it to a database when they log in.>=20> This script retrieves the correct data:>=20> >=20> This displays User ID correctly on the page:>
>=20> My problem is I can't save this as a text variable.> [text]UID=3D
[/text]>=20> gives me:> UID=3D
>=20> Am I missing something obviously?Hi Dave, yes, you are missing that javascript is client side.. while =webdna is server side. The server (incl. webdna) parses all webdna tags =in the file *before* the file gets sent to the browser, where javascript =can then finally get its mitts on the current state of the file.Please ponder this ^^^ deeply as it will come up again and again, until =you get really clear about the situation.Now to answer your specific problem, (I am still thinking... and then =realized I must focus on what I am doing to get done today what has to =get done.. so real quickly.. can you use ajax to send the result of =your javascript to a webdna page that does the needful with that fb =value which you pass it?)Or else someone else's mind will be less preoccupied and answer you =better... but do consider the first paragraph...=20-G
Associated Messages, from the most recent to the oldest:
> I'm trying to connect a page with Facebook, grab the user's FB id and> save it to a database when they log in.>=20> This script retrieves the correct data:>=20> >=20> This displays User ID correctly on the page:>
>=20> My problem is I can't save this as a text variable.>
[text]UID=3D
[/text]>=20> gives me:> UID=3D
>=20> Am I missing something obviously?Hi Dave, yes, you are missing that javascript is client side.. while =webdna is server side. The server (incl. webdna) parses all webdna tags =in the file *before* the file gets sent to the browser, where javascript =can then finally get its mitts on the current state of the file.Please ponder this ^^^ deeply as it will come up again and again, until =you get really clear about the situation.Now to answer your specific problem, (I am still thinking... and then =realized I must focus on what I am doing to get done today what has to =get done.. so real quickly.. can you use ajax to send the result of =your javascript to a webdna page that does the needful with that fb =value which you pass it?)Or else someone else's mind will be less preoccupied and answer you =better... but do consider the first paragraph...=20-G
Govinda
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:
whole word matching (2004)
Example Search Form (1997)
New WebDNA Solutions ... (1997)
Database Helper missing? (2000)
How to include weather (2000)
[carts] and databases (1997)
Location of Browser Info.txt file (1997)
Sandbox Question (2003)
WebMerchant does anybody really understand the process? (2000)
Limit on nested [ShowIf]'s? (1997)
WebCommerce: Folder organization ? (1997)
Smith Micro - no competition (2000)
[SHOWIF]s and empty arguments (1997)
[WebDNA] PayPal IPN - solved (2009)
WebCat2b15MacPlugin - showing [math] (1997)
Omnihttpd server on Win98 : Who knows how to configure it? (1999)
unable to run webcatalog locally (1998)
Problem 2: Prefs file... (1997)
[middle] (2000)
PCS Emailer's role ? (1997)