Changing the frameset row value

3.6k views Asked by At

I am changing the frameset with this line

parent.document.all("Edit").rows="0%,100%,0%";

this is the frameset i am changing

<frameset id="Edit" border="0" frameborder="0" rows="0%,0%,100%">

  <frame name="PermaPlayer" src="EditPermaPlayer.html?h=<%= System.DateTime.Now.Ticks %>" />
  <frame name="EditPlaylist" src="EditPlaylist.aspx?id=<%= playlistEditingId %>&hs=<%= System.DateTime.Now.Ticks %>" />
  <frame name="EditPlaylistLoading" src="EditPlaylistLoading.aspx?&hsm=<%= System.DateTime.Now.Ticks %>" />
</frameset>

Changing it IE works and it works in chrome. It doesnt work in Firefox. Is there something diferent that needs to be done in Firefox?

1

There are 1 answers

0
lonesomeday On BEST ANSWER

document.all is proprietary to Internet Explorer and is absolutely non-standard. Moreover, it's hideously outdated. Use document.getElementById instead:

parent.document.getElementById('Edit').rows = "0%,100%,0%";