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:
taxrate (1999)
Re[2]: ftp access on Macos X (2000)
Trigger Error (2001)
Tab Charactor (1997)
[WebDNA] Some JS help please (2010)
Great product and great job ! (1997)
duplicate cart numbers (2002)
WebCat B13 Mac CGI -- Frames question (1997)
ANother SHOWIF problem (1997)
Interpret twice? (1997)
Custom WebCat Prefs ... (1997)
Need Sample Template - just purchased (1997)
Help! WebCat2 bug (1997)
[group] ? (1997)
Nesting format tags (1997)
[WebDNA] TLS 1.2 and [tcpconnect] (2018)
PCS Frames (1997)
SETCOOKIE Tricks (2003)
No Access warning when caching HTML files (1997)
Running 2 two WebCatalog.acgi's (1996)