Re: [WebDNA] Variable truncating when using javascript openwindow

This WebDNA talk-list message is from

2011


It keeps the original formatting.
numero = 107473
interpreted = N
texte = Steve, that seems odd to me too. I was about to set up and test here.. but thought I better ask first if = you already solved it? You could escape with the right JS escaping function.. but use of the = one [url] wrapper should have solved it, so I thought. (?) -Govinda On 2011-10-13, at 12:09 PM, Steve Raslevich -Northern Sound & Light = wrote: > Hi, >=20 > I am having an issue passing a text variable that includes an = ampersand within it when using a javascript openwindow. >=20 > Example: > Text in var2 is: One & Two >=20 > This doesn't work: > test1 >=20 > I't seems to be sending the variable as the full text "One & Two" = appears in the address bar of the newpage.dna that opened in a new = window. However, var2 only displays "One" and truncates the ampersand = and "Two" when displaying on the page.=20 >=20 > =20 > This however does works going to same page: > test2 >=20 > I can hack it to work by doing the following: >=20 > [text]vartemp=3D[url][var2][/url][/text] > = "javascript:videoPopup('newpage.dna?_var1=3D[var1]&_var2=3D[url][vartemp][= /url]');" > >test3 >=20 > Anyone else run into this or have any ideas? >=20 > Thanks, > Steve >=20 >=20 >=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)
Steve, that seems odd to me too. I was about to set up and test here.. but thought I better ask first if = you already solved it? You could escape with the right JS escaping function.. but use of the = one [url] wrapper should have solved it, so I thought. (?) -Govinda On 2011-10-13, at 12:09 PM, Steve Raslevich -Northern Sound & Light = wrote: > Hi, >=20 > I am having an issue passing a text variable that includes an = ampersand within it when using a javascript openwindow. >=20 > Example: > Text in var2 is: One & Two >=20 > This doesn't work: > [url][v= ar2][/url]')">test1 >=20 > I't seems to be sending the variable as the full text "One & Two" = appears in the address bar of the newpage.dna that opened in a new = window. However, var2 only displays "One" and truncates the ampersand = and "Two" when displaying on the page.=20 >=20 > =20 > This however does works going to same page: > [url][var2][/url]">test2 >=20 > I can hack it to work by doing the following: >=20 > [text]vartemp=3D[url][var2][/url][/text] > = "javascript:videoPopup('newpage.dna?_var1=3D[var1]&_var2=3D[url][vartemp][= /url]');" > >test3 >=20 > Anyone else run into this or have any ideas? >=20 > Thanks, > Steve >=20 >=20 >=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: WebCat 3.0 Serial Numbers (1999) A multi-processor savvy WebCatalog? (1997) Can't Update records (1997) Card clearance, problems - solutions? (1997) ThisURL (2000) Requiring that certain fields be completed (1997) Date format question (1998) AutoCommit Preference? (1998) show all problem (1997) PIXO with cometsite ... and/or other plugins (1998) Webcat XML/XSLT Performance vs. static Html (2006) Multiple security dbs (1997) [random] only for 1-100??? (1997) pictures / referrer etc. (1998) Separate server for jpg/gif files (1998) [encrypt] entire site? (2003) webstar (ot) (2001) RE: TeaRoom (1997) limitation found on group searching (1997) Virtual Postcards (1998)