Protected DIV

Discussion in 'HTML & Website Design' started by kuser, Dec 29, 2012.

  1. #1
    I am a programmer, I made an web editor.
    The problem is this. The editor is inside a DIV < div ix="container"> now... the problem is with the other party, somebody can upload an document with an extra </div> tag and close my DIV +++ destroy the design of the page, making it unusable.

    Is there any way to make protected DIVs, if i wish to load content inside them with .innerHTML , etc? Or i should write extra functions in php to take care of the extra </div> </span,etc? !
     
    kuser, Dec 29, 2012 IP
  2. sarahk

    sarahk iTamer Staff

    Messages:
    28,827
    Likes Received:
    4,541
    Best Answers:
    123
    Trophy Points:
    665
    #2
    How does your approach differ from ckeditor? Can you resolve the issue the same way they do?
     
    sarahk, Dec 29, 2012 IP
  3. kuser

    kuser Banned

    Messages:
    99
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    16
    #3
    I also use CKEDITOR for paragraph editing,etc.
     
    kuser, Dec 29, 2012 IP
  4. kuser

    kuser Banned

    Messages:
    99
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    16
    #4
    but is not all about editing, it's also about showing things.
     
    kuser, Dec 29, 2012 IP
  5. deathshadow

    deathshadow Acclaimed Member

    Messages:
    9,732
    Likes Received:
    1,999
    Best Answers:
    253
    Trophy Points:
    515
    #5
    Sounds more like you want an OBJECT -- or if you prefer to stuff your head up 1997's backside, an IFRAME.

    Apart from that <broken record>without seeing the code in question, we really can't dial in much of a solution...</broken record>
     
    deathshadow, Dec 29, 2012 IP
  6. sarahk

    sarahk iTamer Staff

    Messages:
    28,827
    Likes Received:
    4,541
    Best Answers:
    123
    Trophy Points:
    665
    #6
    I'm confused then. You are asking advice about an editor you have written but it's not just about editing because for editing you use something else.

    What are you actually trying to do?
     
    sarahk, Dec 30, 2012 IP