Techno Geeks

A fusion of technology, music, and geekyness…

Entries Comments


Blizzcon

Posted by jesse on October 8, 2008 (12:48) | Website | No comments

It’s going to be a long night. Our plane leaves Indy at 6 AM (5 AM our time). Its a 2-3 hour drive to Indy. You do the math :)But we are going to Blizzcon baby! For those of you who do not know what Blizzcon is, check out theirĀ website. I will be taking my camera to be prepared for a video upon return.

Lightbox Gone Wild! - Broken Cursor Solution

Posted by jesse on March 28, 2008 (13:01) | Coding, Technology | 1 comment

If you have used Lightbox Gone Wild in Firefox, then chances are you have noticed that the cursor is sometimes broken in input fields such as input texts and text areas. I found a solution posted by Roger Riche that was very close to working but was missing a few pieces. We figured out the missing pieces and I thought id share the solution. I have posted Roger Riche’s post along with my modifications

Roger Riche’s post:

To everyone and anyone having issues with carrets (flashing cursors) disappearing for input boxes within your lightbox, I have found the problem and have a suggested fix.

The problem is related to when you have more than one element on the page that has a position of fixed and the input being contained in one of them.

The suggested fix requires a bit of hacking to the original lightbox.js:

function addLightboxMarkup() { bod = document.getElementsByTagName(?body?)[0]; lightboxFixed = document.createElement(?div?); lightboxFixed.id = ?lightboxFixed?; overlay = document.createElement(?div?); overlay.id = ?overlay?; lb = document.createElement(?div?); lb.id = ?lightbox?; lb.className = ?loading?; lb.innerHTML = ? + ?Loading Activity. Please wait?? + ?; bod.appendChild(lightboxFixed); lightboxFixed.appendChild(overlay); lightboxFixed.appendChild(lb); }

displayLightbox: function(display){ $(?lightboxFixed?).style.display = display; if(display != ?none?) this.loadInfo(); }

You will also need to update lightbox.css with the following:

Remove -> #overlay[id] { position: fixed; }

Add -> #lightboxFixed { position:fixed!important;position:absolute;width:100%;height:100%;top:0;left:0;display:none;}

Remove -> position: fixed!important from the lightbox declaration.

That should be it! Now you would have the carret issues. Also, the script will run a lil more efficiently because it now only needs to modify the display of one element. The lightbox and overlay are contained within the lightboxFixed div.

After figuring everything out, my functions are as follows:

  1. displayLightbox: function(display) {
  2.         $(‘overlay’).style.display = display;
  3.         $(‘lightboxFixed’).style.display = display;
  4.         $(‘lightbox’).style.display = display;
  5.         if(display != ‘none’) this.loadInfo();
  6. },
  1. function addLightboxMarkup() { bod = document.getElementsByTagName(‘body’)[0];
  2.         lightboxFixed = document.createElement(‘div’);
  3.         lightboxFixed.id = ‘lightboxFixed’;
  4.         overlay = document.createElement(‘div’);
  5.         overlay.id = ‘overlay’;
  6.         lb = document.createElement(‘div’);
  7.         lb.id = ‘lightbox’;
  8.         lb.className = ‘loading’;
  9.         lb.innerHTML    = ‘<div id="lbLoadMessage" align="center" style="margin-top:120px">’ +
  10.                 ‘<p>Loading</p>’ +
  11.                 ‘</div>’;
  12.         bod.appendChild(lightboxFixed);
  13.         lightboxFixed.appendChild(overlay);
  14.         lightboxFixed.appendChild(lb);
  15. }

As for CSS changes:

  1. /*
  2. #lightbox[id]{
  3.         position:fixed;
  4. }
  5. */
  6.  
  7. /*#overlay[id]{
  8.         position:fixed;
  9. }*/
  10.  
  11. #lightboxFixed {
  12.         position:fixed!important;
  13.         position:absolute;
  14.         width:100%;
  15.         height:100%;
  16.         top:0;
  17.         left:0;
  18.         display:none;
  19. }

Lightbox Gone Wild! - Submit Action

Posted by jesse on March 18, 2008 (11:11) | Coding, Technology | 2 comments

This post is for all of you that are familiar with Lightbox Gone Wild! When I was implementing this library for a project recently, I found no built in easy way to submit data from the lightbox window to the next for processing. As a result, I wrote my own custom lightbox action.

  1. // Submitting form data
  2. submit: function(e){
  3.         var form = document.forms[0]
  4.         var parameters = ;
  5.  
  6.         for (i=0; i<form.elements.length; i++) {
  7.                 if (form.elements[i].name.length > 0) {
  8.                         if (i > 0) {
  9.                                 parameters = parameters + "&amp;";
  10.                         }                  
  11.  
  12.                         var type = form.elements[i].type;
  13.                         if (type == ‘text’ || type == ‘hidden’ || type == ‘password’ || (type == ‘radio’ &amp;&amp; form.elements[i].checked)) {
  14.                                 parameters = parameters + form.elements[i].name + "=" + form.elements[i].value;
  15.                         }
  16.                 }
  17.         }
  18.  
  19.         link = document.getElementById(‘lbAnchor’);
  20.         Element.remove($(‘lbContent’));
  21.  
  22.         var myAjax = new Ajax.Request(
  23.                 link.href,
  24.                 {method: ‘post’, parameters: parameters, onComplete: this.processInfo.bindAsEventListener(this)}
  25.         );
  26. },

Prot Warriors

Posted by jesse on February 11, 2008 (12:43) | Website | No comments

Being a prot warrior this day and age seems tough. They are more gear dependent than most classes and they have been replaced by Paladins (AOE) and Druids (Uber Armor/Health). Will I be able to surpass them? Lets hope…

We did it!

Posted by jesse on February 10, 2008 (04:17) | WoW | No comments

leethacks_flying_machine

After all of my griping, complaining, and whining, we finally made it to 70!

Frustrations!!

Posted by jesse on February 9, 2008 (11:07) | WoW | No comments

Ok… so on Friday our internet dies at 10:30 PM and is out for the whole night. Sucks, but oh well. We will start bright and early tomorrow. Wake up the next morning at 8:30 AM. Play for a good hour and then oh.. what happens? Dragonmaw goes down. Great. I guess im not going to get level 70 this weekend. We would’ve been about 10 bars away to 70 right now. But im still 5 bars away from 69. Awesome. I hope the incompetent Blizzard employees are getting fired so they can bring in some talent.

Leethacks in Love

Posted by jesse on February 7, 2008 (15:43) | Website | No comments

leethacks_netherdrake

Leethacks really wishes this Netherdrake was his. Unfortunatly, Blizzard designed a quest that generates drool and makes you want to play the game more. They really have that stuff figured out. LOL

Testing out a new theme

Posted by jesse on February 7, 2008 (15:04) | Website | No comments

I am testing out this new WordPress theme. Please let me know what you think

Thanks!