Jump to content
xisto Community
Sign in to follow this  
rajesh2209

Adjusting Rows/cols Of Frames In Frameset Using Javascript Is Not Working In Firefox 3 Is Not Working

Recommended Posts

I am not able to adjust frames length/width in a frameset using java script functions

I am using firefox 3.

In below code changerows is not working for me. Where as same is working in IE6.

Please help me in resolving this issue.

Note: here frameset1 is the name given to the FRAMESET.

function changeRows() { parent.frameset1.rows="30%,70%" }function restoreRows() { parent.frameset1.rows="50%,50%" }

Share this post


Link to post
Share on other sites

Try placing "document." between "parent." and the frameset's name:

parent.document.frameset1.rows
If that doesn't work, then when you try to call the function, check out Firefox's error console.

Share this post


Link to post
Share on other sites

Thanks for your reply.I tried using parent.document.ecp_cart, even thats not worked for me.As per your suggestion i checked error console of firefox and i found an interesting thing that "parent.ecp_cart is undefined".I am quite confused with this, because if i use some thing like below its working.parent.index.location ="abc.asp". Where index is one of the frame in ecp_cart frameset.If parent.ecp_cart frameset cant be identified how come its able to identify parent.index. Can you please help me to understand this behaviour.Thanks in advance.

Share this post


Link to post
Share on other sites

Maybe index returns a value that can be matched to the frame's node (i'm not sure why it works), but consider using IDs as an alternate solution:

parent.document.getElementById("id").rows="%, %";

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.