FlyerTalk Forums

FlyerTalk Forums (https://www.flyertalk.com/forum/index.php)
-   Technical Support and Feedback (https://www.flyertalk.com/forum/technical-support-feedback-386/)
-   -   Trouble posting a non-standard "url" (https://www.flyertalk.com/forum/technical-support-feedback/716129-trouble-posting-non-standard-url.html)

FBKSan Jul 19, 2007 3:14 pm

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?

Tim at WebFlyer Jul 19, 2007 3:54 pm

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,

FBKSan Jul 19, 2007 5:37 pm


Originally Posted by Tim at WebFlyer (Post 8086468)
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.

Tim at WebFlyer Jul 20, 2007 9:42 am

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,


All times are GMT -6. The time now is 9:42 am.


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.