Archive for August, 2009

jquery ui modal dialog on ie6

Posted on August 30, 2009
No Comments

I use jQuery UI modal dialog for my recent project, and the client is very detail about browser compatibility, especially about IE6. I believe if you’ve played around with IE6, you would notice some irritating behavior, and in this case with modal dialog is that sometimes the combo box still appears on top of the modal dialog. If I’m not mistaken you could search on google about “IE6 active-x bleed through” for details of why this thing happen on IE6.

I’ve a workaround for this IE6 active-x bleed through with jQuery UI modal dialog, I got the idea from other modal dialog that has fix this issue, they are using dummy iframe to cover the page, so other active-x (in this case, combo box) will be hidden behind this iframe, while the modal dialog sits on top of the dummy iframe.

basically i just add this iframe on the part of jQUery UI modal dialogĀ  where it adds a layer div for background, plus additional checking for IE6 browser.

<iframe class=\”ui-widget-overlay\” src=\”javascript:false;document.write(”);\” style=\”opacity: 0; width: 100%; height: 100%;z-index:-1;\”/><p style=\”width: 100%; height: 100%;\”/>

var d=c(“<div></div>”).appendTo(document.body).addClass(“ui-widget-overlay”).css({width:this.width(), height:this.height()});

so it will be:

if(c.browser.msie&&c.browser.version<7){var d=c(“<div><iframe class=\”ui-widget-overlay\” src=\”javascript:false;document.write(”);\” style=\”opacity: 0; width: 100%; height: 100%;z-index:-1;\”/><p style=\”width: 100%; height: 100%;\”/></div>”).appendTo(document.body).addClass(“ui-widget-overlay”).css({width:this.width(),height:this.height()});}else{var d=c(“<div></div>”).appendTo(document.body).addClass(“ui-widget-overlay”).css({width:this.width(),height:this.height()});}

you can download the modified jquery ui modal dialog code here.
(note that this is only jquery ui modal dialog, it will need ui.core.js, ui.draggable.js, and ui.resizable.js. You can download the complete jquery ui framework from http://jqueryui.com/)

Tags: , , , , , ,

love today

Posted on August 30, 2009
No Comments

relaxI like it today, it’s rainy Sunday and I’m free, I can enjoy staying at home while rain is pouring outside ^^ add a sip of cappuccino, a good book, a nice and cozy sofa, and it’s all perfect!

I still need to do something though, but I’ll take my time, I’ll enjoy today, o yea, I’ve setup an icon collection on my domain, u guys can access it from anywhere, if u’d like to put images on your blog, or somewhere online, here’s how:

  • go to url http://blogs.z3r0c0d3.com/icons/
  • right click on the icon that u’d like, and copy image location.
  • for online like twitter/plurk: just paste the link.
  • for blog, just write this tag on ur html post <img src=”–paste the link here–” alt=”–put alternate text here–” />
enjoy today

Tags: , , , , ,

not raining yet as expected

Posted on August 25, 2009
2 Comments

well, what do you do when the rain that u’ve been preparing for doesn’t come? or should i say, has not come yet? well what I can think of now is just that we’ll need to wait, and keep preparing ourselves if we believe that someday the rain will come. I just need to remind myself that the rain won’t come too late! Give thanks for what we have at the moment and hope for greater things to come!

for without hope, what will our life be?

Tags: , , , , , , , , , , , , , ,

preparing for the rain!

Posted on August 21, 2009
1 Comment

I have two short stories to share today, one is about a farmer, and one is about a swimmer lost in the sea. enjoy!

farmer story:

once upon a time, there was this two neighboring farmers. They are both an experienced farmers, and this year has been a tough one for them. They need to plant soon in order to survive, but there was a long drought season in a country. They know well that with this kind of season, they cannot start to plant, nevertheless since both of them are Christian, so they prayed for rain. One farmer prays for rain, and he is waiting for the rain to fall, he is anxiously waiting for the answered prayer, every morning he goes out of his house to see the sky looking for clouds, but seeing no clouds, he goes back to his house disappointed. The other farmer also prays for rain, and every morning he goes out of his house to see the sky, looking for the long awaited clouds, seeing none, but instead disappointed, he goes out to his field and prepare his field for rain, he believe, as he prays, that rain will come, soon!

Swimmer story:

there was this swimmer who was lost in the sea, he kept trying to go to the beach, but despite his best effort, he still could not defeat those big waves that keeps pushing him to the middle of the sea. 3 washes later he got knocked out, and when he eventually gain his focus, he is lost in the middle of an ocean already. He could not figure out which way is the nearest land. So he pick one direction and give his best to swim to that direction. While trying to get to a safe land, He pray to God for help. He did meet with 3 boat, 1 is a fisherman boat, that is only able to carry the fisherman and his catches, the fisherman is willing to let go of his catches in order to rescue this swimmer, but the swimmer refuses and said that his God will help him. The second boat is a pirate boat, but seeing the crew, the swimmer is afraid and refuses to get into the boat, he said that his God will help him. He keeps praying to God for help, and finally comes a boat, but inside the boat was his biggest enemy, his life time rival. The swimmer refuses also to go inside the boat, he doesn’t want to be save by his enemy. After those 3 boats, the swimmer finally gave up, and drown. When he finally died, he met God and ask, “Lord, why didn’t u sent for help and save me?”. God said, “I did! remember those 3 boats I sent you?!”

I’m sure y’all have heard this two stories before, but I believe just reading those 2 stories will refresh ur day, and give you strength to carry on your day! have faith, He is never too late!

prepare for the rain!

Tags: , , , , , , , , , , , , ,