treehouse : what would you like to learn today?
Web Design Web Development iOS Development

akeenlabs

  • Lightbox 2 problems

    Now, your prototype.js is throwing an error: "Object # has no method 'dispatchEvent'". Which browser are you using to test with? I recommend either Firefox + Firebug or Chrome so you can see these error messages easily yourself. …
    Comment by akeenlabs November 2011 permalink
  • How to 'push' data onto a webpage

    Browsers don't support "push". A server cannot initiate a request and push data to the browser. A technique that Gmail's chat uses (and I'm assuming Facebook's as well) is the "hanging request" technique. Her…
    Comment by akeenlabs November 2011 permalink
  • jQuery form plugin> onclick handler problem

    The reason your top code doesn't work is that on the "onclick" event you define a function. You don't actually call that function, you just define it. Remove the function definition. Try something like this: onclick="docume…
    Comment by akeenlabs November 2011 permalink
  • simple javascript moving effect

    Check out jQuery's animate to animate over the div's position. I'm not sure how smooth it will be though, especially at a very slow speed.
    Comment by akeenlabs November 2011 permalink
  • Lightbox 2 problems

    I'm showing a 500 internal server errors on several of your files: jquery.lightbox-0.5.cssscripts.jsjquery.lightbox-0.5.js The only JavaScript error I'm seeing is "object has no method 'lightBox'"; since the lightbox f…
    Comment by akeenlabs November 2011 permalink
  • Lightbox 2 problems

    At a glance, it looks like you're loading 2 different copies of jQuery. The second copy (a local copy called jquery.js) is being loaded after the jQuery plugins. My guess is you're overwriting the plugins because that second jQuery copy re…
    Comment by akeenlabs November 2011 permalink
  • What Happened to Coded Preview

    I guess if you used it you would know :) I liked the repeating backgrounds, simulated page-to-page navigation, access control, etc. Obviously nothing a competent web guy couldn't do on his own, but it saved a little time. Anyways, the merits …
    Comment by akeenlabs July 2011 permalink
  • onClick handler not working

    Sorry, it's working for me. Check your document type and browser. Make sure there aren't any JavaScript errors anywhere. I tested in Chrome using HTML 4.01 strict. I'm not sure how exactly you plan to use this, but instead of using v…
    Comment by akeenlabs February 2011 permalink
  • Vertically Center Inline Image

    Yes, I'm well aware of vertical-align, but unfortunately it doesn't actually center it. Sure, it's centered based on the line's x-height, but that's almost always a couple of pixels off. Try it, you'll see what I'm…
    Comment by akeenlabs October 2010 permalink
  • Help using jQuery to center an element horizontally and vertically over varying image dimensions.

    It looks like the styling for the magnifier is based on a "span" tag but the span tag never gets created. In my tests, elem.append("") does not generate a span tag. Try this instead elem.append($("")). Also, your "…
    Comment by akeenlabs October 2010 permalink
  • Margin Extends Beyond Parent

    Thanks wolfcry...I can't imagine an article that addressed the problem I was having more accurately. In fact, the instance which finally moved me to make this post was actually the h1 inside a header div :) At least now I understand why; I…
    Comment by akeenlabs October 2010 permalink
  • Favorite text editor

    "TheDoc" said:I'd love to hear your reasoning behind this. Snippets, auto complete, ftp, etc are all features of a development environment (I realize that Ultra Edit, my example text editor, does have ftp capabilities, but I should n…
    Comment by akeenlabs January 2010 permalink
  • Capture Email DB for Client

    Putting together a simple admin area is not very difficult; you don't have to put together full user support when you can just use a single hard-coded username and password (inside the code itself, do DB required). You're only talking abou…
    Comment by akeenlabs January 2010 permalink
  • Favorite text editor

    I can't count the number of times I've gone back to the drawing board looking for the perfect text editor nor the number of text editors I've tried. If you're looking for a real text editor I think Ultra Edit will fit your perfec…
    Comment by akeenlabs January 2010 permalink
  • Store/Shops locations

    Can you be more specific? I doubt there is a plugin as specific as jCreateStoreLocations (obviously, this would be a jQuery plugin), but you may be able to leverage other plugins or just jQuery itself. What exactly do you want to do?
    Comment by akeenlabs September 2009 permalink
  • Help with a menu..

    Although pretty much anything (including this) could be achieved with JavaScript, I would actually recommend you don't use JavaScript. I think the same thing can be achieved with CSS. You ultimately want the navigation background shifted the e…
    Comment by akeenlabs September 2009 permalink
  • Fancy jQuery Clock (IE Fail)

    I know this isn't going to make or break it, but it might be a good idea to get out of Quirks mode in IE; give that sucker a doctype. Also, your "text-align: center" on the body is throwing it off in IE7 (IE8 should be correct with a…
    Comment by akeenlabs August 2009 permalink
  • Event delegation and "sliding door" links?

    Sorry, I thought you were trying to clean up your existing method for the purpose of making it less "hard coded" so you could be more flexible with the code inside the anchor. It seems like you ultimately want to stop events past the anch…
    Comment by akeenlabs August 2009 permalink
  • Event delegation and "sliding door" links?

    I have an idea using jQuery (I don't really know any other libraries). In the event handler, try using target.parents('#demo a') to get the correct anchor if a nested element was clicked; this should work for any dom element and with …
    Comment by akeenlabs August 2009 permalink
  • SOLVED: problem making nav "on" states with jquery addClass

    Either you've already figured out the problem and fixed it, or I'm not able to reproduce the problem you're seeing in Firefox 3.5, Safari 4.0 (PC) or IE 8. If you're already fixed it, then good for you. Otherwise, what browser ar…
    Comment by akeenlabs August 2009 permalink
  • How to dynamically size a with jQuery?

    "Eraser35" said:I see... Though, what's the purpose for using JavaScript in the link I posted? I don't understand why that would be necessary then. As is often the case, the same thing can be accomplished different ways. Maybe t…
    Comment by akeenlabs June 2009 permalink
  • How to dynamically size a with jQuery?

    "Eraser35" said:Yes, basically I am looking for my web application to scale well in different browsers.. for example take a look at this link: http://jx.myofiz.com/jxviewport.html as you can see, when you resize your browser by dragging …
    Comment by akeenlabs June 2009 permalink
  • Copywrite Services

    "TheDoc" said:Just as a heads up, "copyright" and "copywriter" are veeeery different things! Make sure you know which one you're asking for! Thanks for pointing that out; excellent proof as to my failing writing …
    Comment by akeenlabs June 2009 permalink
  • File Uploader for Multiple Files or Entire Folder

    "Stack" said:That cant be done with javascript. You would need a PHP or ASP script written to upload the files. I should point out that uploading a file from start to finish cannot be achieved completely with JavaScript; in fact, to get t…
    Comment by akeenlabs June 2009 permalink
  • drop down menus

    Yeah, I just finished a page that uses the z-index property on the navigation and I'm not using absolute positioning either. I think it will work on any box whose position is absolute, fixed or relative. At the very least, you can make it relat…
    Comment by akeenlabs June 2009 permalink
  • drop down menus

    Try the z-index property. This will allow elements to appear "on top of" other elements that appear after it in the DOM.
    Comment by akeenlabs June 2009 permalink
  • Disabling Played Flash Animation

    I know Flash has the capability to communicate with JavaScript because the SWFUpload project handles all the uploading events in JavaScript while the actual uploader is in Flash. The develop of this project is pretty responsive, so you might just po…
    Comment by akeenlabs June 2009 permalink
  • Click event & Cursor style

    I'm not sure I understand what the problem is. It sounds like you want the hand/pointer to appear when hovered over the "Click here to register" link. As shown in the screenshot below, this is already happening and it does so in Firef…
    Comment by akeenlabs May 2009 permalink
  • Javascript to PHP

    What you need to employ is the much-hyped AJAX. Since the process of setting up an AJAX connection is different for different browsers and IMHO adds quite a bit of unnecessary markup within the page itself, I would recommend using a JavaScript frame…
    Comment by akeenlabs May 2009 permalink
  • updating a form field from selections

    It sounds like you get it now! If anything, you learned how it worked on your own by looking at the code; I've never been good at explaining myself :D Either way, glad I could help. Good luck!
    Comment by akeenlabs May 2009 permalink