Re: [WebDNA] Variable truncating when using javascript openwindow

This WebDNA talk-list message is from

2011


It keeps the original formatting.
numero = 107479
interpreted = N
texte = Then I would think that the proper thing to do would be to escape the = second time *with javascript*. encodeURIComponent() AFAIK. -G On 2011-10-14, at 1:54 PM, aaronmichaelmusic@gmail.com wrote: > Javascript (acting on behalf of the browser) will interpret a URL = encoded string on its own before passing onto the landing page. If = you're using popups or redirects with JS, you have to think of it as = sending a parameter twice (unlike a standard link). Thus, wrapping the = variable with [url] twice >=20 > On Oct 14, 2011, at 1:17 PM, Govinda wrote: >=20 >> But in that example he is [url]'ing the var's value *twice* just to = get it to work (to not break the URL)... rather than the need for just = once, as we would expect it to work. >> (?) >>=20 >> I popup javascript windows all the time and just wrap the var's vals. = once... (without looking again to be sure I tried with an amp char in = there ;-) >>=20 >>>=20 >>> I'm not sure that your test3 example *is* a hack: that's how it's = supposed to work. When you put text into a URL, it needs to be = URL-encoded for exactly this reason. >>>=20 >>> test3 is what I would consider "best practice" rather than "hack" >>>=20 >>> On Oct 14, 2011, at 9:31 AM, Steve Raslevich wrote: >>>=20 >>>> Thanks for your reply. No, I haven't solved it. For now, I am using = the 'test3' example/hack I listed below. Let me know if you test and = what results you get. I don't think it is anything in the landing page = as using the text link and the hack both display correctly on the = landing page. >>=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 >=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] Variable truncating when using javascript openwindow (Steve Raslevich 2011)
  2. Re: [WebDNA] Variable truncating when using javascript openwindow (Govinda 2011)
  3. Re: [WebDNA] Variable truncating when using javascript openwindow (aaronmichaelmusic@gmail.com 2011)
  4. Re: [WebDNA] Variable truncating when using javascript openwindow (Grant Hulbert 2011)
  5. Re: [WebDNA] Variable truncating when using javascript openwindow (Govinda 2011)
  6. Re: [WebDNA] Variable truncating when using javascript openwindow (Grant Hulbert 2011)
  7. Re: [WebDNA] Variable truncating when using javascript openwindow (Steve Raslevich 2011)
  8. Re: [WebDNA] Variable truncating when using javascript openwindow (Govinda 2011)
  9. [WebDNA] Variable truncating when using javascript openwindow (Steve Raslevich -Northern Sound 2011)
Then I would think that the proper thing to do would be to escape the = second time *with javascript*. encodeURIComponent() AFAIK. -G On 2011-10-14, at 1:54 PM, aaronmichaelmusic@gmail.com wrote: > Javascript (acting on behalf of the browser) will interpret a URL = encoded string on its own before passing onto the landing page. If = you're using popups or redirects with JS, you have to think of it as = sending a parameter twice (unlike a standard link). Thus, wrapping the = variable with [url] twice >=20 > On Oct 14, 2011, at 1:17 PM, Govinda wrote: >=20 >> But in that example he is [url]'ing the var's value *twice* just to = get it to work (to not break the URL)... rather than the need for just = once, as we would expect it to work. >> (?) >>=20 >> I popup javascript windows all the time and just wrap the var's vals. = once... (without looking again to be sure I tried with an amp char in = there ;-) >>=20 >>>=20 >>> I'm not sure that your test3 example *is* a hack: that's how it's = supposed to work. When you put text into a URL, it needs to be = URL-encoded for exactly this reason. >>>=20 >>> test3 is what I would consider "best practice" rather than "hack" >>>=20 >>> On Oct 14, 2011, at 9:31 AM, Steve Raslevich wrote: >>>=20 >>>> Thanks for your reply. No, I haven't solved it. For now, I am using = the 'test3' example/hack I listed below. Let me know if you test and = what results you get. I don't think it is anything in the landing page = as using the text link and the hack both display correctly on the = landing page. >>=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 >=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 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:

Another option (2005) Databases inside [SHOWIF] (1998) webdna+post+WinIE6 (2004) WebCommerce: Folder organization ? (1997) Order not created error (1997) Semi-OT: Update forms not working remotely (2002) What am I missing (1997) WC1.6 to WC2 date formatting -FIXED! (1997) formula's (1998) FileMaker and WebCat - .hdr OK Merge not OK (1999) OT: CSS and Positioning (2001) [WebDNA] [OT] Spam reduction? (2009) WebCat2 Append problem (B14Macacgi) (1997) E-mail loop ! (1997) Bug In Admin Templates (2003) Nested tags count question (1997) Re:HELP - NONE STOP DIGESTS. Digest for 4/24/97) (1997) WebCat2b15MacPlugin - showing [math] (1997) Question (1997) http upload (2001)