I’ve been using WordPress for about two months now and I really like it. It takes away a lot of the pain from blogging. Recently I was writing a blog post and I was trying to get two images displayed side-by-side. This proved to be more difficult than I thought. There’s no immediately obvious way…
Category: Web
The new vivin.net
Well, I finally did it. I decided to migrate over to WordPress! For a long time I was thinking of rewriting my homegrown blogging-engine (that I initially designed over seven years ago). I never got around to doing it because it was just so much work! I know part of it has to do with…
jQuery tip: Changing the TYPE attribute of an INPUT element
I was trying to change the type attribute (using jQuery) of an input element from submit to button when I got this error: type property can’t be changed Apparently, you can’t change the type attribute of an input element once it’s part of the DOM. I figured out a way to do it by cloning…
Publishing to twitterfeed
I just got myself a twitterfeed account so that I can publish my journal entries to twitter. I hope this works.
Drop-shadows with CSS and Javascript
You have probably seen websites that have images with drop-shadows. It gives the image a three-dimensional floating effect. Usually the images are given drop-shadows with an image editing software like Photoshop. In IE, a drop-shadow is easy to achieve using the DropShadow filter. Unfortunately, this method is not standards compliant and only works on Internet…
innerHTML alternative for XHTML documents in Firefox
I finally figured out an alternative to using innerHTML for an XHTML document in Firefox.
innerHTML and createContextualFragment problems when Firefox renders XHTML
If any of you use Firefox, then you’ll have noticed that the “Preview Comment” feature doesn’t work anymore. It stopped working after I converted this site over to XHTML. Initially it worked (even though it validated as XHTML 1.1) because I was setting the mime-type to text/html. To make it completely compliant, I set the…
This site is XHTML 1.1 Valid
I finally got this site to validate! The folks over here were really helpful, and pointed out that I wasn’t assigning values to my objects’ style attributes properly. For example, I was doing: instead of: The second way is the correct way because it is important to specify units for your attributes. In addition, Firefox…
Live! Preview and XHTML Compatibility
I’ve added a new feature called “Live Preview”. You can see your comment as it will appear, right as you type it. I randomly just came up with the idea yesterday – I figured I could use the same code I have in place for the preview, for the Live Preview as well. I just…
Preview Button and no more Iframes
I have added a “Preview Comments” button to the comment submission form. So now, you’re able to preview your comments before submitting them. The preview will show you your comments exactly as they will appear (after they have been submitted). The other big thing is the removal of iframes. I thought iframes were really freaking…