Category: Uncategorized
-
.json files and .txt files are functionally interchangeable.
If, for some reason you do not have permissions to load .json files into your project don’t worry. You can simply change the file extensions of your .json files to .txt and load your json files as .txt files. It simply works. You can also access cross-domain txt files using the JSONP protocol.
-
Correctly format a Date Time value for import into Microsoft Excel
I was having a challenge consistently importing a DateTime value into Microsoft Excel. This was because I was starting with the day or the month and that makes Excel have to guess which is the day or month. If you start with the year then Excel will assume a hierarchical order (year, month, day, hour,…
-
Line breaks in PHP generated emails
If you are trying dynamically generate emails with PHP your line breaks must be double-quoted and use the “\r” and the “\n” to work in all situations. $body = ‘First line’.”\r\n”.’Second line’; mail(’email@address.com’, ‘Your subject line’, $body);
-
AS3 Discovering the required .font name when Embedding Fonts
When embedding a font in Actionscript 3 you need to know the correct handle for your font. I haven’t been able to find a master list anywhere but I did find that you can trace out the .font property of a text field already in your movieclip. So all you need to do is set…
-
Simplest way to create html link in Adobe Illustrator CS5
It seems that Illustrator’s export to PDF function was never meant to be very interactive. However, if you want to create an html link within Illustrator here’s how you do it. First create your layout. Then add the links on top using the HTML text attribute of slices in Adobe Illustrator. For every link you…
-
You can drop the .container or .wrapper class from a css centered layout
You can drop the .container or .wrapper class from a centered layout in CSS by applying styles to the html and body tag instead. I was thrilled to try this out and it worked! I checked with the folks on StackOverflow in this discussion just to confirm you could do this. html { background-color: lightgrey;…
-
Temporarily turn off a website’s Javascript “disable right-click” option
Sometimes you want to right-click on an image to save it and the site owner has set up their site to disable right-clicking, most likely with Javascript. Simply turn of your browser’s Javascript engine and reload (F5) the page.
-
IE10 Compat View, IE7 Standards causing page elements to disappear or hide behind backgrounds.
In IE10, if a site is forced into Compatibility View it applied IE7 standards to display the page. This means that your site still has to support IE7. You may have elements “disappearing” because of this problem. What the elements are actually doing is hiding behind the background of their parent element. This is because…
-
Tweet through URL variable
Want to make a button that will send a tweet to twitter.com? Try using a url like this: http://twitter.com/share?text=Whatever you want to tweet. Test it
-
Flash AS3: Swap Movieclip to top
This will place your movieclip (“myMc”) at the top of the display list on the stage. If your movieclip is nested within “anotherMc” movieClip then you’ll have to use something like: