I love you. I've been trying to figure a way to unobtrusively identify elements uniquely for aaaaaaaaaages. This is exactly what I needed, thank you so much.
How often does the clunky code justify the use of preloaded images? It seems like in this day and age, many people have a fast enough connection that preloading images is unneeded.
I was wondering if anyone knew how jQuery adds functions to the readyList array if the dom wasn't loaded. I understand how it waits until the dom loads, I understand how it passes selectors and all...
Sorry for double posting, but the edit button is gone and i realized I didn't actually post my script from earlier. It's since changed, I settled for just having it fade in and then resetting the...
The following code, executed on a page with at least two images, with one being id'd as test and the other as test2 binds both images mouseover and mouseout events to an opacityup and an opacitydown...
I was playing with constructor functions to build objects and because it is so dependent on the 'this' keyword, I'm finding it a little unwieldy. How are you supposed to reference a property or...
I'd like to point out that you are using the wrong tool for the job. It sounds like you need to look into something like PHP or something similar to create a more easily maintainable website.
No, the script adds ids so that it can have a unique reference to that particular element. The B portion of my problem mostly relates to my reluctance to change the ID of the element because ID is...
I'm aware of both of these. See what I'm wanting to do is write an object using JSON (something like 'fades') and then write a few methods to allow for you to add the fading effect to several...
Is there a way to uniquely and on the fly identify an element without using the ID attribute? I'd like to add intervals and such to create a fade unobtrusively and without using id hooks if at all...
XHTML is a standard, one that is being improved upon as part of HTML 5, IE has supported XML/XSLT since IE 6, which covers most of IE's market share by now (IE5 tapering off into obscurity). XHTML,...
The best way to do this would be using a transformation language, namely XSLT. More brutish ways could be with a server side scripting language or Javascripts XMLHTTPRequest object, but they all have...
Yeah, I figured that out. I'm currently looking at how you referenced it and am sorting that bit out. If I get stuck anywhere, I'll post back. Thanks for the help.
I used a timer variable to space out the portions of the loop so that it would go off a few miliseconds later each time. JS can animate the effects in this way.
For speed issues, you should look into a MySQL/PHP solution for building XML files on the fly. This resolves the issue of the user needing to load the XML file in its entirety (which can be a pain)...
There can be only one instance of an ID per web page. You shouldn't do it like that. You could potentially nest the menu items inside of a div id'd as menu, and access it non obtrusively like so:
Been toying with some behaviors in unobtrusive javascript, but it always gets hung up on the "this" because the events change what "this" references. The function runs to completion, but because...