Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to use execCommand in frames??

Status
Not open for further replies.

jeepey

Programmer
Aug 3, 2000
1
NL
When walking trough an array we are trying to add select-boxes to a document<br>using the execCommand(InsertSelect....) function.<br>The syntax is like:<br><br>document.execCommand(&quot;InsertSelectListBox&quot;);<br><br>In a separate window everything works just fine, but when we use the script<br>in a frame it doesn't :(<br>The script is in the same frame as in which the boxes have to appear, so<br>that's not the problem. We have also tried to wait with executing the script<br>till all the frames are loaded successfully...<br>When debugging we found out that somehow the execCommandEnabled is false<br>when executing the script, so we cannot execute anything. If we just refresh<br>the frame (after ignoring errors), the script does works(??).<br><br>Has somebody ever been in a similar situation? If so, please tell us what<br>to do!<br><br>Thanks!<br>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top