• Got a Tipila, google, windows live or facebook account ?
Tips tagged: javascript
3
votes
Defining the function var $var = (function(){return 1 + 2;})(); Accessing the variable window.alert($var); // 3
1
votes
You need to set the Access-Control-Allow-Origin http header to allow cross domain calls. Add the following to your sites root web.config <system.webServer> <httpProtocol> <customHeaders> <add name="Access-Control-Allow-Origin" value="*" /> <add name="Access-Control-Allow-Headers" value="content-type" /> </customHeaders ...
1
votes
IF you use facebook to log in to a webpage, the return url has # appended to it. This is a bug with the facebook and add the following javascript inside the head tag of the web page remove it. <script type="text/javascript"> if (window.location.hash == '#_=_') window.location.hash = '';</script>
3
Matching Tips
Search options
  • Use the syntax:
    seach text, tag1, tag2,...
    to search for tips with the given tags.
  • Add ,mytips to the search text to search within MyTips only.
  • Use the syntax:
    ,tag1, tag2,...  to get all tips with the given tags.
Login to Tipila