Call Javascript function from a URL

There isn’t from a hyperlink, no. Not unless the page has script inside specifically for this and it’s checking for some parameter….but for your question, no, there’s no built-in support in browsers for this. There are however bookmarklets you can bookmark to quickly run JavaScript functions from your address bar; not sure if that meets … Read more

asp.net, url rewrite module and web.config

I was able to get this working in Visual Studio 2010. Start with Ruslan’s post here and download the 2.0 IntelliSense file. Then, just follow the directions he posted previously here. All I ended up doing was running the following command as Ruslan instructs: C:\download_directory\rewrite2_intellisense>cscript UpdateSchemaCache.js As Christoph points out in his comment, make sure … Read more

Email addresses inside URL

Basically it depends on if you love or hate your users. When you do what you suggest, these URLs will spread on HTML pages on the web. Not necessarily confined to your own site, because people may link to it. When your page gains enough traction to become important, crawler authors for spam bots will … Read more

Is there a predefined class for URL in Python?

urlparse does encapsulate URLs into a class, called ParseResult, so it can be considered a factory function for these. Straight from the Python docs: >>> urlparse(‘http://www.cwi.nl:80/%7Eguido/Python.html’) ParseResult(scheme=”http”, netloc=”www.cwi.nl:80″, path=”/%7Eguido/Python.html”, params=””, query=”, fragment=””) If you desperately want a class called URL to encapsulate your URLs, use an alias (URL = urlparse.ParseResult) or create an adapter.