Skip to main content

contype UserAgent requests in Internet Explorer

Requests made by Internet Explorer that set the UserAgent header to "contype" is IE's attempt to figure out the content type of a file that needs to be retrieved.

Flash ExternalInterface not working in Internet Explorer

There are a few items you need to make sure are done correctly in order for flash ExternalInterface to work correctly in IE:

Open jQuery Colorbox onLoad

Posted in

I've been searching a bit on how to use Jquery Colorbox onLoad when I finally found out the solution thanks to Biostall.

It seems there's an optional parameter called open that you need to use.

  1. <script type="text/javascript">
  2.         $(document).ready(function() {
  3.                 $.fn.colorbox({href:"thankyou.html", open:true});
  4.         });
  5. </script>

How to remove Safari's input highlight

Posted in

I bet you thought that only IE has weird problems, but fear not Safari isn't letting him be the only strange kid on the block.

You'll notice that in safari your input buttons have a strange glow around them when they're focused.
That can be removed by using

  1.     input { outline: none; }

How to replace OpenJDK with Sun Java in Ubuntu

Posted in

Not quite a programming article, but I stumbled in this problem today so I thought it's worth a note.

After you install sun java from the partners repository, you'll see that by using java -version it still shows that it's using OpenJDK.

To fix this you can run:
sudo update-alternatives --config java

That will allow you to choose the default java virtual machine.

How to fix IE7 Z-Index Issues using Jquery

Posted in

I was searching around for an easy solution regarding the stupid IE7 z-index problems and i stumbled upon this article.

Tweaked the jQuery script a bit by adding the browser check.
Here's the end result for the IE7 z-index problem, it seems to work pretty well for me.

  1. $(document).ready(function() {
  2.     if ($.browser.msie && $.browser.msie < 8) {
  3.         var zIndexNumber = 1000;
  4.        
  5.         $('div').each(function() {
  6.             $(this).css('zIndex', zIndexNumber);

Random Joomla 1.5 Logout

Posted in

I was receiving some complaints from a customer that he was getting randomly logged out when using the administration section of his website.

He has a Joomla 1.5 install with the legacy plugin enabled and according to this Joomla Bug you have to have the Remember me Plugin to have an higher priority than the Cache and Legacy plugins.

For solving this, I've made Remember me to have priority 1, Legacy 2 and Cache 3.

SolarPHP How to use unlimited functions in a View Helper

I was chatting on irc with dmytrok (kudos to him about the tip below) about the Solar View Helpers and it seems there's a very simple way of using multiple functions in a solar view helper.

As you know, for creating a Solar View Helper you create a class like:

  1. class Vendor_View_Helper_MyTest extends Solar_View_Helper {
  2.  
  3.     public function myTest()
  4.     {
  5.         // logic here
  6.     }
  7. }

And then you can call it in your views by using $this->myTest() and all will go well.

doubleclick form submit issue when using ajaxForm with validate plugin

Posted in

So if you have the problem that you have to click twice to send the form using ajaxForm when using the validate plugin it's because you need to change the bethod to be ajaxSubmit not ajaxForm.

SolarPHP How to use Make Model with underscore separated table names

Posted in

It's easy, make-model takes an aditional --table parameter.
So you can do something like

  1. ./script/solar make-model myApp_Model_NiceTableName --table nice_table_name

If you need more help on the topic feel free to add a comment or create a new post on the Forum

Syndicate content