search for: somespan

Displaying 3 results from an estimated 3 matches for "somespan".

2006 Mar 09
0
RE: extending an existing DOM object in aprototypeway
..lol... and I screwed up the option... one more time... var myActiveSpanBase = new ActiveSpan({color: "red"}); Object.extend($(''someSpan''), myActiveSpanBase); $(''someSpan'').setup(); Or, more concisely... Object.extend($(''someSpan''), new ActiveSpan({color: "blue"}); $(''someSpan'').setup(); -----Original Message----- From: rails-spinoffs-bounces-1W37MKcQCpIf0...
2006 Mar 09
0
RE: extending an existing DOM object in a prototypeway
Gosh darn Outlook seems to have stripped some newlines from my response... last few lines should read... var myActiveSpanBase = new ActiveSpan({"red"}); Object.extend($(''someSpan''), myActiveSpanBase); $(''someSpan'').setup(); Or, more concisely... Object.extend($(''someSpan''), new ActiveSpan({"blue"}); $(''someSpan'').setup(); -----Original Message----- From: rails-spinoffs-bounces-1W37MKcQCpIf0INCOvqR...
2006 Mar 09
2
extending an existing DOM object in a prototype way
I want to take an existing DOM object and extend it with some functionality. I know there''s a way to do this with prototype. Unfortunately, I''m not entirely sure how to do this. Basically, I want to take an existing DOM object and turn it into a ''widget'' by adding some functionality. say we have a span: <span id="blah">some text