Yeah, I actually don't mind doing dhtml now :)

Timothy Heald wrote:

>Very tight.
>
>Man that is tiny.   Thanks much, I can use that all over the place :)
>
>Tim
>
>-----Original Message-----
>From: Marlon Moyer [mailto:[EMAIL PROTECTED]]
>Sent: Tuesday, December 24, 2002 10:11 AM
>To: CF-Community
>Subject: Re: JavaScript Constructors
>
>
>Timothy,
>
>Ever since I've discovered this little api, and I mean little (under 
>1k), it's helped me speed up my javascript development. 
>
>http://www.dithered.com/experiments/1kdhtml/
>
>in answer to your question though, I usually use a document.write('<div 
>id="myDiv">....</div>');
>
>Timothy Heald wrote:
>
>  
>
>>Hey,
>>      Not sure who's working today, but I figured I would give it a shot.
>>
>>      I am rewriting a menu for a site and I am trying to get it as small as 
>possible.  Needs to work for NN 4+ IE 4+ minimum.  I figured I would write it myself, 
>rather than use an api, so I can get back into some good js, and to make it more 
>specific to what I am doing.
>>
>>      Now, I have written functions to figure out where the parent menu button is 
>located, and I know how to move the div with the menu items in it around, but what I 
>can't figure out how to do is create a div with a constructor.  Like I would do with 
>an image preloader?
>>
>>      Is it possible just to do myDiv = new Div();?
>>
>>      If not is createElement() the best way? Inner/outerHTML?  I need it to be fast 
>and small.
>>
>>      Also, do you think it's best to do browser detection on the server or client 
>side? I have done it both ways before and had good results with both.  Just with the 
>requirement to support NN 4 (ugggghhhhh) I am going to have to create a layer rather 
>than a div, and I am pretty sure I can do that on the fly easily, I think I even have 
>a good snippet from Critter around here for that somewhere.
>>
>>      Any way any tips or pointers would be much appreciated.
>>
>>Timothy Heald
>>Assistant Webmaster
>>Overseas Security Advisory Council
>>U.S. Department of State 
>>
>>    
>>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=5
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=5
Get the mailserver that powers this list at http://www.coolfusion.com

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.5

Reply via email to