Topic: Fun with the DOM -- setting <button> type (Page 1 of 1) |
|
---|---|
Bipolar (III) Inmate From: |
posted 06-17-2004 03:38
I have a form for registering for training classes. 5 fieldsets: |
Maniac (V) Mad Scientist From: Somewhere over the rainbow |
posted 06-17-2004 08:54
The poster has demanded we remove all his contributions, less he takes legal action. |
Maniac (V) Mad Scientist From: New California |
posted 06-17-2004 19:33
I wrote a bit of code that simulates a button that is created dynamically. It is a 3 image based button that switches state following the up, hover, and down events. The onclick event can be redirected to any function on the page as well. That could be a way to go on this. I remember trying to create some form elements on the fly and I ran into all sorts of trouble so that is why I ended up creating this button code to get around it. If you think that sort of thing may be useful then I would be more than happy to show you how I did it and maybe you could tailor it to your needs. |
Bipolar (III) Inmate From: |
posted 06-17-2004 20:33
I thought innerHTML was only for the contents, not the attributes. Seems I need to do more reading about that. |
Paranoid (IV) Inmate From: France |
posted 06-17-2004 20:49
It would be interresting to hear Slime talking about the creation of form fields with the DOM. I remember he had some problems with some bugs in IE while he worked on the GUI of his 2nd JavaScript Raytracer. |
Maniac (V) Mad Scientist From: New California |
posted 06-17-2004 21:20
Take a look at this page: http://www.bugimus.com/dhtml/bugLib/bugLib1.0%20Test/bugButton.html |
Paranoid (IV) Inmate From: France |
posted 06-18-2004 00:24
quote: what does it mean ? I'm not a croquemitaine ( the French version of the "bogeyman" ). code: function getoOpacity() |
Maniac (V) Mad Scientist From: New California |
posted 06-18-2004 00:38
poi, I didn't mean anything against you at all, just the opposite actually (whether or not you're a croquemitaine is perhaps a subject for another thread ) I was expressing my own insecurity since I don't have as much time anymore to devote to keeping up the latest scripting techniques. I appreciate your peer reviewing. |
Maniac (V) Mad Scientist From: New California |
posted 06-18-2004 08:05
I looked at my methods a little closer and I must say that I don't have a good reason for using browser detection instead of property detection. A long time ago, I did a little of both methods but I just got into the habit of detecting browsers and never put much more thought into it since that time. I will reconsider that as I continue to develop this collection of code. |
Maniac (V) Mad Scientist From: Somewhere over the rainbow |
posted 06-18-2004 09:24
The poster has demanded we remove all his contributions, less he takes legal action. |
Paranoid (IV) Inmate From: France |
posted 06-18-2004 12:18
InI+Bugimus: yep, browser or object detection is questionnable. Not so long ago I used browser detection because the real problem was the backward compatibily. But with the recent boost of activity in the browser world, I tend to think in term of forward compatibiliy. Many sites were broken when Netscape 6 came out. On one hand it generated some contracts to fix them, but it also put some doubts on the companies who did those sites in the first place as the problems were avoidable. |
Bipolar (III) Inmate From: |
posted 06-18-2004 15:11
Bugs, that's slick. I dig it. |
Maniac (V) Mad Scientist From: New California |
posted 06-18-2004 22:41
Sweet. I will be out of town this weekend but I will be online via dialup for some of that time. I would very much like to chat with you if we get online at the same time. |
Maniac (V) Mad Scientist From: Somewhere over the rainbow |
posted 06-19-2004 23:25
The poster has demanded we remove all his contributions, less he takes legal action. |
Maniac (V) Mad Scientist From: Somewhere over the rainbow |
posted 06-20-2004 12:51
The poster has demanded we remove all his contributions, less he takes legal action. |
Maniac (V) Mad Scientist From: New California |
posted 06-20-2004 15:15
Now that is a very interesting page! It really pissse me off that I've been spending so much time learing the "right" way of doing things when it is so $%&&#@#@ slow!!! Ugh... |
Paranoid (IV) Inmate From: France |
posted 06-20-2004 16:09 |
Maniac (V) Mad Scientist From: New California |
posted 06-20-2004 17:08
I just hate being torn between "standards" and reality. You know? |