Note that there are some explanatory texts on larger screens.

plurals
  1. POHow can i access the frame that my page is in jQuery?
    primarykey
    data
    text
    <blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="https://stackoverflow.com/questions/2921957/how-to-access-frame-not-iframe-contents-from-jquery">How to access frame (not iframe) contents from jQuery</a> </p> </blockquote> <p>So, I'm trying to use some jquery in my project, and I'm having difficult with the jQuery parts. </p> <p>What I'm trying to do is, I have three frames on the intranet system, the Top, that have some links, the left frame, who have the menu, and the main frame, that have the pages and everything else. When the person clicks on a Menu, and start navigating through the pages, i want to give an option to the person hides the left frames, so the page would get bigger, what is better for visualization.</p> <p>But the left frame loads a page that loads the menu, and I can't hide the frame, cause the button that would hide the frame it's on the page that are Loaded by the page which had the frame.</p> <p>I know it's confusing but i can't explain this much better in english. </p> <p>So, Can i access the frame and hide it, with a button that are on the page loaded in the frame?</p> <p>I'm trying to do this</p> <pre><code>&lt;script type="text/javascript" language="JavaScript"&gt; $(document).ready(function(){ $("#btnTeste").click(function(){ $("#menuFrame").hide(); }); }); &lt;/script&gt; </code></pre> <p>but with no sucess, because the frame it's not on the page. Trying to put parent on the second parameter doesn't help anyways.</p> <p>Hope you can help me, thanks.</p>
    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.
 

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