Tag Archive for 'javascript'

26AprAJAX Comments WPMUified 0.2 fix for WordPress 2.5.x

You notice how this plug-in reacts to not filling in all the required fields in a comment form? Seems to inject a little to much back on the page, right? On this site, it even changed the layout from fluid to fixed width because it loaded install.css as well.

Here’s the fix for that:

Open /ajax-comments-wpmuified/ajax-comments/ajax-comments.js

change:
msg = r.substring(r.indexOf('</h1>') + 5, r.indexOf('</body>'));
to
msg = r.substring(r.indexOf('<p>') + 3, r.indexOf('</p>'));

The end.

25AprOperation Aborted in IE7 (WordPress+Lightbox)

I will keep this very short. If you’re getting the “Operation Aborted” message on your WordPress site, it may be related to a Lightbox version with some old world coding.
Just make sure you’re using Lightbox by Rupert Morris.
The offending code in the “bad” version started with:
objBody.appendChild...
This was in the initialize function of the class that loaded along with the script in load-time. In other words, it was attempting to add child nodes to the <body> while the body tag was still being loaded (and had not yet been closed). IE7 apparently really doesn’t like this.




flickr stream

California ufo / droneObama/clintonCalifornia ufo / drone 3Drone 2 - blurryCalifornia ufo / drone 4california ufo / drone (raw picture) 2california ufo / drone (raw picture) 5Drone 2 - blurry

Random Gallery Image

Turm Palast Niagara Falls at Night Niagara Falls From the Side More pillars A Dog the trees View from the CN Tower on the Toronto harbour

Most Recent

lego-mohammed.jpg mbaside.jpg macessity-laptop-stand.jpg macessity-laptop-stand-messy.jpg

Calendar

May 2008
M T W T F S S
« Apr «-»  
 1234
567891011
12131415161718
19202122232425
262728293031