Navigate/Search

Archive for the 'JavaScript' Category

jQuery Simple Menu with Slide in Effect

Wednesday, February 11th, 2009

I put this here because it was probably the least amount of code I’ve seen deployed for some of these menus.  Granted it requires jQuery, the Interface Elements plug-in and the hoverIntent plug-in.  *shrugs*

jQuery simple menu with slide-in effect

OK, the above link is still valid but I linked to the wrong one (and subsequently explained the wrong one). I knew something was up when I started blogging about how compact this example was and then I had to read 3 or 4 pages of code along with grabbing 3 separate downloads.

jQuery Demos

Wednesday, February 11th, 2009

http://interface.eyecon.ro/demos/?page=demos

jQuery plug-in: hoverIntent

Wednesday, February 11th, 2009

I absolutely love the idea of jQuery and out of all the JavaScript libraries it appears to be the most sophisticated due to what it can accomplish with such simplicity.

With that said, this will be the first of several jQuery plug-ins I absolutely love.

hoverIntent

ImageFlow script causes a 503 error – here’s the fix?

Tuesday, February 10th, 2009

And now I’m battling a 503 error due to mod_security.

mod_security: Access denied with code 503. Error normalising REQUEST_URI: Invalid character detected

This link from the Menalto Gallery forums was dead-on my exact problem (experience-wise) and then it derailed into something totally unrelated.  This link from the LiteSpeed Support Forums I thought would be of help in regards to making sure PHP had enough memory and it had enough time to execute.

I’m still struggling trying to figure out what part of the “reflectionN.php” causes problems.

Here’s one straight from the boards of my host, DreamHost.

It’s actually the one that got me thinking.  I re-examined the support documentation and the examples and finally found the problem.

Well, sort of…

If I use:

reflectionGET: '&height=20%'

…nothing appears at all on my Linux host —– Windows host is fine.

If I use:

reflectionGET: '&height=20'

…it starts working, but not in a way I can figure out.  Plus it seems to greatly affect the height and position of the image.

I looked in the code and saw that the part that handles the “height” value is setup to strip a percent symbol (%) if it comes with one, but the other ‘reflectionGET’ values do not strip the percent symbol.

So for whatever reason that particular aspect is wonky.

  • fade_start
  • fade_end
  • height

Those are the values that behave differently and erratically between my Windows and Linux hosts.

JavaScript Editors for WYSIWYG blogging or CMS’ing

Tuesday, February 10th, 2009

Here are the best (as far as I know) JavaScript-based editors for various software platforms like blogs or CMSs.  My online university uses a Java-based one and when it finally finishes loading the applet it rocks — otherwise it stinks — REALLY badly.

DCODE – Lightweight Markup Kit

TinyMCE

FCKeditor

WYSIWYG BBCode Editor in JavaScript

3 Lava Lamp CSS/JavaScript (menu) implementations

Saturday, February 7th, 2009

Don’t ask me which one came first, just know that I found them in this order:

  1. LavaLamp for jQuery lovers!
  2. YUI Lava Lamp Menu
  3. CSS+Javascript[sic] power. Fancy menu

And I’ve no clue how I found #3 after #2 considering it was directly linked from #1.  Catch all that?

Just a personal preference, I don’t directly link commercial stuff unless I am getting affiliate kickbacks.

So, here’s another, um, link?

http://www.robbie-white.com/design/rapidweaver/lava/index.html

%20 and other odd happenings in URL strings

Tuesday, January 20th, 2009

I’ve been doing this for years but apparently someone finds it interesting.

On a JavaScript enabled site (meaning your browser allows JavaScript to execute on that page) you can type this in your browser’s address bar:

<br />javascript:location.href = decodeURIComponent('http%3A%2F%2Fblog.brainsicksolutions.com%2F%3Ffoo%3Dbar');<br />

This particular one changes the current URL to the decoded URL which happens to be:

http://blog.brainsicksolutions.com/?foo=bar

For those who think JavaScript shouldn’t have semicolons let me assure that you need them when typed directly into the address bar or bookmarklets.  Otherwise JavaScript won’t know where a statement ends and begins