DOM
tranchula
3 posts
|
hi, I’ve been reading the DOM chapter, but the examples that i download it want work… |
Christophe P...
48 posts
|
Hey, So sorry, but I have no idea what you’re talking about… Could you perhaps illustrate your need? |
tranchula
3 posts
|
hey, 1-> the dom examples from zipped code wont work but the direct link from the book does….... how to solve this?? 2-> the dom code is a bit static, i need to make my code completely dynamic.. coz i’m working on an application where the user will be able to create his own form, using drag and drop…. and the example code presented is a bit static…. hope the questions are clear and u could help me out |
Christophe P...
48 posts
|
Oh. The archive wasn’t regenerated after the recent typo fix in one of the early code blocks. This only borked IE, are you using IE? This is all due to a superfluous comma before closing the You’ll have to explain “static”. Do you mean it is bound to elements already present in the DOM at load time? Going dynamic simply means that after injecting your form elements in the page’s DOM, you can register event handlers for them using Also, it’s been my experience that in dynamic, user-controled forms, most of the event-related behavior is not field-specific, but by field kind. So perhaps using appropriate field classes and event delegation at the whole form’s level would be a win, too. |
tranchula
3 posts
|
hey, I meant by static, that I don’t want to use HTML tags to create element but using JavaScriptcreate element Dom functions or using the builder class provide it in the book. 10x again… |
5 posts, 2 voices
