Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I have no experience concerning this TEmbeddedWebBrowser tool, but according to your post I'm thinking of a way to retrieve the form's fields. Once you know what fields it contains, I suppose you can fill them as it doesn't seem to be the purpose of your post.</p> <ol> <li><p>Assuming there is a form declared and it is reachable: you can grab the form and parse its <code>.elements</code> collection: easily if it's declared in your page (give it an <code>id</code> attribute, then use a <code>document.getElementById()</code>), it may still be doable if the form is declared by/inside <code>editor.js</code>, using <code>document.forms</code> then.</p></li> <li><p>Otherwise: you can get a dump script from the Net - like <a href="http://www.openjs.com/scripts/others/dump_function_php_print_r.php" rel="nofollow">this one</a> - and see what is printed when you call (after including <code>editor.js</code> naturally) <code>dump(data)</code> or <code>dump(data[body])</code>. As <code>data[]</code> is used as an argument to the <code>rtevalue()</code> called by your submit button's <code>onclick</code>, it should contain the form's key/value pairs. The bad thing about this method is that <code>data[]</code> must be filled by Javascript, so if your form has radio buttons or checkboxes you may only see the selected ones, which is why I would give a shot at the first option before trying this trick.</p></li> </ol> <p>About the comments, you should not directly use <code>innerHTML</code> to insert an HTML subtree to the document as most of the times it doesn't work (especially when forms are involved), have an <code>appendChild()</code> redo the work to ensure a correct document, like this:</p> <pre><code>var dummyContainer=document.createElement("span"); var dummyContainer.innerHTML="..."; //insert stuff here, because it's easy to use ;) myContainer.innerHTML=""; //clearing your "real" container doesn't add anything to the HTML tree, it'll work - you can also use removeChild() in a loop (but it's not as easy to use!) myContainer.appendChild(dummyContainer); //appendChild will translate properly the text inserted by innerHTML in dummyContainer into a clean HTML subtree </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload