The Important Bit!

Latest Articles...

IE11 removing Conditional statements, and changing HTTP_USER_AGENT

January 30th, 2014

I’ve just found, that in M$’s infinite wisdom, they have totally changed the way IE11 reports itself to HTTP_USER_AGENT:

http://www.impressivewebs.com/ie11-emulation-conditional-comments/
http://msdn.microsoft.com/en-us/library/ie/hh869301%28v=vs.85%29.aspx

So now, instead of just doing (in perl):

    if ($ENV{HTTP_USER_AGENT} =~ m/MSIE/) {
        $IN->param('isIE' => 1);
    }

It seems we have to do:

    if ($ENV{HTTP_USER_AGENT} =~ m/MSIE|Trident/) {
        $IN->param('isIE' => 1);
    }

..is that safe for other browsers?

Also, conditionals seems broken as well (as per my link above). I couldn’t even get a basic one going (aparantly its MEANT to work, but didn’t for me);

<!--[if IE ]>
  <script>alert("FOO");</script>
<![endif]-->

They say “replace with feature checks” … well thats all good and well – but on my site, the problem is with IE not playing nice with some padding on my rows… so I’m having to add in some code that will actually add some additional padding (just for IE).

Am I the only one who’s finding this a royal PITA?

Posted in HTML / XHTML coding, Perl Coding | Leave a comment

 

Getting more Facebook likes for your pages

January 14th, 2014

Its been a while since I’ve posted anything, apologies! I’ve been busy working on my latest site (and paid jobs): Steampunk Junkies

One of the biggest (and hardest) things we have come across this new site, is getting the Facebook group up in its number of “Likes”. Without a decent number, people just dont take you seriously.

We tried out Facebooks own adverting methods, but this ended up being pretty expensive (and also getting us a fair bit of attention from spammers, who kept PM’ing us with rubbish!)

I was searching around, and came across BoostLikes.com. They have packages starting as low as $27 for 250 likes, and also offer the option to target just the USA (I would love it if they offered other countries too, like UK, France, Germany etc…as this would help us target our audience better). We recently went with the 2000 package, and this got added on in no more than a few days. I’ve been keeping an eye out on the “drop off” rate of “unlikes”, and it actually seems very steady (we are still loosing a few likes a day, but we also gain some via people sharing out content and their friends adding us). You can view our page here:

https://www.facebook.com/steampunkjunkies

Posted in SEO | Leave a comment

 

Progmatically “tick” / “untick” a checkbox in ezMark

May 31st, 2013

I’ve been recently playing with a nice little plugin for jQuery called ezMark ( http://www.itsalif.info/content/ezmark-jquery-checkbox-radiobutton-plugin )

One thing I found it lacking, which was a bit annoying – was a way to “tick” or “untick” a tickbox via the script. After much searching, I finally found this works:

$( '#idOfCheckbox' ).trigger("click");

Obviously you can change it to whatever you want to tick… but the general idea is nice and simple

Hope this helps someone else!

Posted in Uncategorized | Leave a comment