By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,575 Members | 1,413 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,575 IT Pros & Developers. It's quick & easy.

Which browser supports cloneNode and appendChild ?

P: 26
Hi again.

I'm builting a multiple choice form, all dinamic, allowing users in the firts dinamic space to specify how many questions for mulitple choice they want, and a button to add them, so therefore as soon button is clicked the choices appear and a checkbox plus a textarea appears to fill.
My problem is, it works perfectly in IE8 and mozila and opera doesn't even work.

Been searching on the web, it maybe because i'm using the methods:
- cloneNode()
& appendChild();

Is this true, to support these browsers i need to find another way withous using these methods ?
Why haven't they supported, is there any serious disadvantage ?
Jan 29 '10 #1

✓ answered by Dormilich

any decent code editor with sufficient code highlighting will do. to track down the problem, use Opera’s developer extension (Dragonfly) and the JavaScript Error Console.

Share this Question
Share on Google+
7 Replies


Dormilich
Expert Mod 5K+
P: 8,639
My problem is, it works perfectly in IE8 and mozila and opera doesn't even work.
then I guess it’s a problem within your code somewhere else, afaik Opera does support the DOM (even more than IE)
Jan 29 '10 #2

P: 26
Thx for answering.
In that case, i will have to review all the code i have.
I'm using Antechinus Javascript Editor, is there any software better to use ? That atleast spots these errors in coding.

BR
Jan 29 '10 #3

Dormilich
Expert Mod 5K+
P: 8,639
any decent code editor with sufficient code highlighting will do. to track down the problem, use Opera’s developer extension (Dragonfly) and the JavaScript Error Console.
Jan 29 '10 #4

P: 26
My favorite brwoser is opera, and i had it all the time (DragonFly) and didn't know !
Regarding Firefox i'm using FireBug.

But still i'm a beginner on this, it will take a while untill take full potential of it,.
But thank you for the tips.
Jan 29 '10 #5

Dormilich
Expert Mod 5K+
P: 8,639
yea, Firefox is the only one that doesn’t come with built-in developer tools (but since there is FireBug, why should it …) and never forget the Error Console, that should be the first place to look.
Jan 29 '10 #6

P: 26
Well, i'm using dragonfly right now,and the only error that appears is:
Expand|Select|Wrap|Line Numbers
  1.  
  2. file://.../QuestTeorico.html    ?    Unhandled exception: [Object DOMException]
  3. file://localhost/..../QuestTeorico.html
  4. Unhandled exception: [Object DOMException]
  5. name: Error
  6. message: INVALID_CHARACTER_ERR
  7. stacktrace: n/a; see  opera:config#UserPrefs|Exceptions Have Stacktrace
  8.  
Would appreciate if ya could translate it.


One good thing was:

Expand|Select|Wrap|Line Numbers
  1. file://localhost/C:/..../QuestTeorico.html?Radio=2&nodeAction=on
  2. Error:
  3. name: TypeError
  4. message: Statement on line 102: Cannot convert undefined or null to Object
  5. stacktrace: n/a; see  opera:config#UserPrefs|Exceptions Have Stacktrace
  6.  
Just added an if to ensure that if it was null, didn't proceed. So this error was fixed. But remaining critical error still haven't fixed.
Jan 29 '10 #7

Dormilich
Expert Mod 5K+
P: 8,639
there is somewhere an Exception thrown, which is not caught. from the looks of it, it comes from a DOM method and its input parameter is wrong.
Jan 29 '10 #8

Post your reply

Sign in to post your reply or Sign up for a free account.