Garbage Burrito

Topic

Author Topic
Rheaghen-za
rheaghen

The Dynamic Nature of Javascript =)

07 28, 2006 @ 10:37PM

this week I've really delved into the dojo toolkit. and WOW! there's an equal abount of cool stuff to bugs; at least with the ComboBox thats like google suggest.

it does all the cool stuff you'd want. it stays on top of select controls in IE with out hiding them, and I have no clue how. but unfortunately the developers have neglected the basics.

if you want a preselected value, you gotta use traditional select options. if you want to have no preselected value, you must use a dataUrl attribute. what comes from the data url is basicly a hash set that transleated into the dojo options. you can get the little hack off there bug forum, #916 I think, that allows you to set initial values as "" but you gotta set the initValue="" AND initSelectValue=""; otherwise the game's Off. even then, the dorp down dosn't behave properly on IE.

all this adventure has taught me some interesting and new concepts to javascript. you can force any object to inherit attributes, functions, & objects using the prototyping feature. its really quite cool. for instance, you've wrote a XmlHttpRequest wrapper. you can force the DOM to inherit your new Object just like any other Run-of-the-mill object. call you custom object as if it were native code =) sometimes I've experienced haveing to call the parentObject.myInheretedThingie but in the end it really makes doinging certain things allot easier. I'm not sure how my code validator's gonna like this, but oh well. I've got a nice link at work that has lots of sugar code to fill in on the details.

for now, it's 12:30 friday night and I'm gonna go get a hang over! talk to yall tomorrow when I'm in pain & grumpy!

Comments

Author Comments
Anonymous
07 29, 2006 @ 10:06AM

yes, that's very cool. I'm familiar with javascripts prototyping but I haven't actually gotten into it yet. this reminds me of some stuff I did in projector to get the templates working. I basically replaced the getoutputstream method of the response object to write to a string buffer so I could manipulte the jsp output before printing.

btw this will be my first test of posting from my phone. we'll see if the ajax degradability works.

Picture1
Ben Kittrell
07 31, 2006 @ 08:03AM

Weird. Apparently when I post from my phone, it doesn't recognize the user in the session.

Rheaghen-za
rheaghen
07 31, 2006 @ 03:41PM

and annomous comments arn't openly supported here either

as promised...

http://javascript.crockford.com/inheritance.html


powered by : Doodlekit Online Free Website Builder : developed by : Doodlebit™ Website Company