Re: [WebDNA] Rewrite url before redirect
This WebDNA talk-list message is from 2012
It keeps the original formatting.
numero = 108081
interpreted = N
texte = Thanks for e the reply Govinda. Been looking at the same code forhours...I just needed a closing quote in my js and I got it fixed.Dave_________On Wed, Jan 11, 2012 at 4:28 PM, Govinda
wrote:>>> I've got this javascript pulling Facebook information when a user hits my page.>> To keep the script from looping it returns #login at the end on the url.>>>> I then redirect depending some lookups like so:>> [Redirect url=buy.tpl[url]?cart=[cart][/url]]>>>> And get the following in my url bar in some browsers only:>> buy.tpl?cart=1123452343434#login>>>> Everything works fine in Safari, Chrome, and on iphone but I'm>> thinking the "#LOGIN" might be my problem with it not working in>> firefox and android. Is it possible to rewrite the url and remove the>> tailing "#login" before redirecting?>> Hi Dave, if I understand.. then:> have you tried appending a regular URL param to the URL to serve as the flag to stop the redirect loop, instead of "#login"?> ..like append "loginFlag=T" instead of "#login".>> Or if I am missing the point, then maybe post more code so we might be able to better see what is happening.>> -Govinda>> ---------------------------------------------------------> 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-- Dave Stengelhttp://www.mobilinksoftware.com209.820.1300dave@mobilinkpro.com
Associated Messages, from the most recent to the oldest:
Thanks for e the reply Govinda. Been looking at the same code forhours...I just needed a closing quote in my js and I got it fixed.Dave_________On Wed, Jan 11, 2012 at 4:28 PM, Govinda wrote:>>> I've got this javascript pulling Facebook information when a user hits my page.>> To keep the script from looping it returns #login at the end on the url.>>>> I then redirect depending some lookups like so:>> [Redirect url=buy.tpl[url]?cart=[cart][/url]]>>>> And get the following in my url bar in some browsers only:>> buy.tpl?cart=1123452343434#login>>>> Everything works fine in Safari, Chrome, and on iphone but I'm>> thinking the "#LOGIN" might be my problem with it not working in>> firefox and android. Is it possible to rewrite the url and remove the>> tailing "#login" before redirecting?>> Hi Dave, if I understand.. then:> have you tried appending a regular URL param to the URL to serve as the flag to stop the redirect loop, instead of "#login"?> ..like append "loginFlag=T" instead of "#login".>> Or if I am missing the point, then maybe post more code so we might be able to better see what is happening.>> -Govinda>> ---------------------------------------------------------> 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-- Dave Stengelhttp://www.mobilinksoftware.com209.820.1300dave@mobilinkpro.com
Dave Stengel
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:
Only charge card when product shipped ? (1997)
WebCat2 - [format thousands] (1997)
RE: [WebDNA] Installing WebDNA on Windows 7 (2009)
Resume Catalog ? (1997)
OK, here goes... (1997)
Bug Report, maybe (1997)
[showif]?[/showif] (2000)
One Hour Email (2002)
webcat pro (1998)
Copyright that puppy (1998)
I give up!! (1997)
Bug? (1997)
[isfile] ? (1997)
Re:2nd WebCatalog2 Feature Request (1996)
Summary layout (1997)
Installing WebCat under Linux Q (2000)
pc (1997)
[searchString] (1997)
Quiestion (1997)
BW in a search (2007)