Re: [WebDNA] Problem saving returned value as a variable
This WebDNA talk-list message is from 2012
It keeps the original formatting.
numero = 107918
interpreted = N
texte = Anyone have any examples of AJAX variable to WebDNA?Dave Stengel___________________________On Wed, Jan 4, 2012 at 2:42 PM,
wrote:> Your markup inside of the [text] context isn't recognized in the DOM.>> Instead of inserting into a div, you can insert into a hidden input withi=n a form. =A0In your javascript function, once the uid is added, you can ca=ll a submit or send the form via ajax to your dna.>> On Jan 4, 2012, at 5:40 PM, Govinda wrote:>>>>>> 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.>>>>>> This script retrieves the correct data:>>>>>> >>>>>> This displays User ID correctly on the page:>>> >>>>>> My problem is I can't save this as a text variable.>>> [text]UID=3D[/text]>>>>>> gives me:>>> UID=3D>>>>>> Am I missing something obviously?>>>> Hi Dave, yes, you are missing that javascript is client side.. while web=dna is server side. =A0The server (incl. webdna) parses all webdna tags in =the file *before* the file gets sent to the browser, where javascript can t=hen 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 re=alized I must focus on what I am doing to get done today what has to get do=ne.. =A0so real quickly.. can you use ajax to send the result of your javas=cript to a webdna page that does the needful with that fb value which you p=ass it?)>>>> Or else someone else's mind will be less preoccupied and answer you bett=er... =A0but do consider the first paragraph...>>>> -G>>>> --------------------------------------------------------->> 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--=20Dave Stengelhttp://www.mobilinksoftware.com209.820.1300dave@mobilinkpro.com
Associated Messages, from the most recent to the oldest:
Anyone have any examples of AJAX variable to WebDNA?Dave Stengel___________________________On Wed, Jan 4, 2012 at 2:42 PM, wrote:> Your markup inside of the [text] context isn't recognized in the DOM.>> Instead of inserting into a div, you can insert into a hidden input withi=n a form. =A0In your javascript function, once the uid is added, you can ca=ll a submit or send the form via ajax to your dna.>> On Jan 4, 2012, at 5:40 PM, Govinda wrote:>>>>>> 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.>>>>>> This script retrieves the correct data:>>>>>> >>>>>> This displays User ID correctly on the page:>>> >>>>>> My problem is I can't save this as a text variable.>>> [text]UID=3D[/text]>>>>>> gives me:>>> UID=3D>>>>>> Am I missing something obviously?>>>> Hi Dave, yes, you are missing that javascript is client side.. while web=dna is server side. =A0The server (incl. webdna) parses all webdna tags in =the file *before* the file gets sent to the browser, where javascript can t=hen 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 re=alized I must focus on what I am doing to get done today what has to get do=ne.. =A0so real quickly.. can you use ajax to send the result of your javas=cript to a webdna page that does the needful with that fb value which you p=ass it?)>>>> Or else someone else's mind will be less preoccupied and answer you bett=er... =A0but do consider the first paragraph...>>>> -G>>>> --------------------------------------------------------->> 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--=20Dave Stengelhttp://www.mobilinksoftware.com209.820.1300dave@mobilinkpro.com
Dave Stengel
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:
Unknown error: OrderNotCreated (1997)
WebCat2b12 CGI Mac - [shownext] problem (1997)
Not really WebCat (1997)
[format xs] freeze (1997)
What about this [delete] situation? (1998)
Webstar 1.3.1 PPC (1997)
Multiple cart additions (1997)
converted seed value? (1998)
from product to cart to orders folder in one operation? (2000)
OFF TOPIC: help wanted (1997)
[quantity] within formulas (1997)
OT: 800x600 (2003)
Why doesn't it change? (1998)
Setting up WebCatalog with Retail Pro data (1996)
New WebCatalog site! (1997)
Null Characters (2005)
[delete] problem (1997)
No luck with taxes (1997)
Forbidden CGI Error (1997)
DHTML Tag Feature (2000)