Re: [WebDNA] Problem saving returned value as a variable

This WebDNA talk-list message is from

2012


It keeps the original formatting.
numero = 107916
interpreted = N
texte = 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 = within 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. On Jan 4, 2012, at 5:40 PM, Govinda wrote: >=20 >> 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? >=20 > 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. >=20 > Please ponder this ^^^ deeply as it will come up again and again, = until you get really clear about the situation. >=20 > 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?) >=20 > Or else someone else's mind will be less preoccupied and answer you = better... but do consider the first paragraph...=20 >=20 > -G >=20 > --------------------------------------------------------- > 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 Associated Messages, from the most recent to the oldest:

    
  1. Re: [WebDNA] Problem saving returned value as a variable (Dave Stengel 2012)
  2. Re: [WebDNA] Problem saving returned value as a variable (Govinda 2012)
  3. RE: [WebDNA] Problem saving returned value as a variable (Marc Thompson 2012)
  4. Re: [WebDNA] Problem saving returned value as a variable (Dave Stengel 2012)
  5. Re: [WebDNA] Problem saving returned value as a variable (aaronmichaelmusic@gmail.com 2012)
  6. Re: [WebDNA] Problem saving returned value as a variable (Govinda 2012)
  7. [WebDNA] Problem saving returned value as a variable (Dave Stengel 2012)
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 = within 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. On Jan 4, 2012, at 5:40 PM, Govinda wrote: >=20 >> 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? >=20 > 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. >=20 > Please ponder this ^^^ deeply as it will come up again and again, = until you get really clear about the situation. >=20 > 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?) >=20 > Or else someone else's mind will be less preoccupied and answer you = better... but do consider the first paragraph...=20 >=20 > -G >=20 > --------------------------------------------------------- > 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 aaronmichaelmusic@gmail.com

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:

OK, here goes... (1997) Convert Chars Issue? (2000) Professional WebDNA Hosting Solutions (2005) Using Encrypt/Decrypt (2003) Size images (2002) Sort Order on a page search (1997) Search all Fields in a db (1997) Plugin or CGI or both (1997) PCS Frames (1997) using showpage and showcart commands (1996) I'm new be kind (1997) Webcat 2.0.1 date math bug -> Crash! (1997) WebCatalog stalls (1998) Re:E-mailer application times out (1998) Close Databases Crash? (1998) Show if time tags (1997) RE: PIXO support (1997) Country & Ship-to address & other fields ? (1997) Merging databases (1997) WebCat2final1 crashes (1997)