Go Back  FlyerTalk Forums > Support&Services > Technical Support and Feedback
Reload this Page >

Trouble posting a non-standard "url"

Community
Wiki Posts
Search

Trouble posting a non-standard "url"

Thread Tools
 
Search this Thread
 
Old Jul 19, 2007 | 3:14 pm
  #1  
Original Poster
 
Join Date: May 2007
Location: WAS
Programs: UA 1K, AS MPVG
Posts: 482
Trouble posting a non-standard "url"

I've created a small browser tool to help calculate the milage between cities, and I'm trying to create a thread about it in the MR Discussion forum. However, try as I might I can't get the link to work correctly. Specifically, I'd like to post a link to a short piece of javascript, so that users can drag it into the "links" section of their browser. When I try to use the [url] tool, the parser (1) adds "http://" to the front end of the url and (2) adds "<b></b>" (no quotes) after the word "javascript". Although it's frustrating, I understand the reasoning behind (1), but (2) baffles me.

In any case, I'm trying to post the following code:
Code:
javascript:{void(term=prompt('Enter itinerary (3 letter codes separated by -)',''))}if(term)location.href='http://www.milecalc.com/schmutzig/?paths='+escape(term)
And here's what I'm getting:

Milecalc

Obviously, I could just post the bare code, but it would be so much easier for other FT'ers to just be able to drag a link with their mouse, rather than having to manually create a new button. Any workaround for this?
FBKSan is offline  
Old Jul 19, 2007 | 3:54 pm
  #2  
Tim at WebFlyer
Guest
 
Posts: n/a
You can't use JavaScript in a post, if you were able to this would be security problem. You will have to create a page on your side that you link to (a standard url link) and you can execute your JavaScript on your side. Thanks,
 
Old Jul 19, 2007 | 5:37 pm
  #3  
Original Poster
 
Join Date: May 2007
Location: WAS
Programs: UA 1K, AS MPVG
Posts: 482
Originally Posted by Tim at WebFlyer
You can't use JavaScript in a post, if you were able to this would be security problem. You will have to create a page on your side that you link to (a standard url link) and you can execute your JavaScript on your side.
Thanks for the reply. Just to be clear, I'm not trying to execute javascript anywhere, I just wanted to allow people to create a bookmark/shortcut that then allows them to use javascript. But I understand that there may be no real distinction between those two things, so I'll try to post the hotlink elsewhere.
FBKSan is offline  
Old Jul 20, 2007 | 9:42 am
  #4  
Tim at WebFlyer
Guest
 
Posts: n/a
Understood, we didn't think that you were trying to do anything malicious, but we cannot allow javascript to be used within a post. You could of course still use the method I suggested to set up a page that would show people how to set that up as well. Thanks,
 


Contact Us - Archive - Advertising - Cookie Policy - Privacy Statement - Terms of Service -

This site is owned, operated, and maintained by MH Sub I, LLC dba Internet Brands. Copyright © 2026 MH Sub I, LLC dba Internet Brands. All rights reserved. Designated trademarks are the property of their respective owners.