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.-GOn 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:
Then I would think that the proper thing to do would be to escape the =second time *with javascript*.encodeURIComponent()AFAIK.-GOn 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:
Re(2): MASTER_STORE revision (2002)
emailer (1997)
FS WebCatalaog license (2000)
Configuring E-mail (1997)
Server slowing down. (1997)
Extended [ConvertChars] (1997)
Site Builder & IE Mac (2004)
Help formatting search results w/ table (1997)
WebCatalog 3.0.8 Mac OS (2000)
WebCat editing, SiteGuard & SiteEdit (1997)
What is WebDNA (1997)
Webstar SSL and Non-SSL question (1998)
WC2b15 File Corruption (1997)
NT vs Mac (1997)
[SHOWIF AND/OR] (1997)
DataBaseHelper Flawed (1997)
browser info.txt and SSL (1997)
Alias Problem (2002)
WebCatalog and WebMerchant reviewed by InfoWorld (1997)
Cart Creation (1998)