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:

Foreign Chars ( יאצה and so on) (1998) Sending Faxes (2003) 9 digit zip (2002) how to know the [LineIndex] number webcat generated during a [AddLineItem]? (2000) Bad suffix error (1997) Postprocessing CCs (2000) Followup question re: checksum for credit cards? (1997) limitation found on group searching (1997) autocommit problem (1998) serial number generation (1997) Converting Aliases to Symbolic Links (2002) Math inside [showif] (1998) unusual search problem (1998) Add to Cart & List of Products (1997) New public beta available (1997) F3 crashing server (1997) Reversed words (1997) Example Search Form (1997) WebCat2: multiple currency support (1997) Help! WebCat2 bug (Ben's input) (1997)