Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Page 2 of 2 FirstFirst 12
Results 16 to 17 of 17
  1. #16
    Supreme Master coder! Old Pedant's Avatar
    Join Date
    Feb 2009
    Posts
    25,020
    Thanks
    75
    Thanked 4,323 Times in 4,289 Posts
    Quote Originally Posted by knightCoder View Post
    and a downside to creating extra html elements which might not be used is that if you want to change say an option value then you have to go make that change in every single block of similar html code which would be a real pita if you have a large number
    <grin>Well, if you have a really crappy program editor, maybe.</grin>

    But any that support replacement using regular expressions should be able to do it instantly.

    Look, I'm not arguing against the *concept* of creating dynamic forms. Goodness knows I have done it myself often enough. Just that if you look at his JS code, I think the learning curve to get to the point where he knows how to use document.createElement so it works (for example) in MSIE 8 when you want to create an <input type="file"> is...well, "steep" would be an understatement, methinks.

    I hope you aren't suggesting he do it all by using innerHTML? No, I see you aren't, since you mentioned insertCell(), etc.
    An optimist sees the glass as half full.
    A pessimist sees the glass as half empty.
    A realist drinks it no matter how much there is.

  2. #17
    Banned
    Join Date
    Mar 2013
    Posts
    139
    Thanks
    0
    Thanked 9 Times in 9 Posts
    Quote Originally Posted by Old Pedant View Post
    <grin>Well, if you have a really crappy program editor, maybe.</grin>

    But any that support replacement using regular expressions should be able to do it instantly.
    It could be a pita even if you have a well respected and popular IDE. If doing a global replace of some kind (regex or whatever) you coukld accidentally alter other parts of code without realising it. If the amount of code is small it should be easy to do a global replace of some sort but if the amount of code is huge then you have to be extra careful when doing global replacements of any kind.


 
Page 2 of 2 FirstFirst 12

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •