Announcement

Do not use the forums to submit bug reports, feature requests or patches, submit a New Ticket instead.

#1 2010-06-02 16:04:17

tremmo
New member
Registered: 2010-06-02
Posts: 1

Problem Xinha in Hidden <Div>

Problem is: I need to start xinha in div that's initially hidden.  I unhide it when I need to make an edit.  If the div isn't marked hidden, xinha works fine.

This is how it looks if it's started out hidden then shown later.  It's grayed out and you can't type in it.

xinha.png

        <div class="col1">
            <!-- Column 1 start -->
<div id="view">
      <div class="align_right">
        <form action=""><input type="button" value="Edit" class="button" id="edit_note" /></form>
      </div>
      <p id="view_note"></p>
    </div>
    <div id="editor">
      <div class="align_right">
        <form action="">
          <input type="button" value="Cancel" class="button" id="cancel_note" />
          <input type="button" value="Submit" class="button" id="submit_note" />
        </form>
      </div>
      <div>
        <form method="" action="">
        <textarea id="newbiearea1" name="newbiearea1" rows="10" cols="50" style="width: 100%"></textarea>
        </form>
        </div>
      </div>
            <!-- Column 1 end -->
        </div>

CSS to hide div.

#editor {
  display: none;
}

I use jquery to unhide it. 

 $("#view").hide();
    $("#editor").show();

Last edited by tremmo (2010-06-02 16:18:57)

Offline

#2 2010-06-03 00:42:13

gogo
Xinha Leader
From: New Zealand
Registered: 2005-02-11
Posts: 1,015
Website

Re: Problem Xinha in Hidden <Div>

Unfortunatly you need to start it unhidden and then hide it when it's loaded, this is a commmon request, search the forums.  It's some browser problem that prevents it working the way you want.


James Sleeman

Offline

Board footer

Powered by FluxBB