calling a function on one page from a link on another page
<p>I have an html page (django) that contains several divs(each displaying different data) and one div that has navigation links. I'll call this my main page. I have an external .js file (jQuery) that reveals one display div on the main page and simultaneously hides all of the others (except the navigation div) based on which nav link is chosen.</p>

<p>$(function(){</p>

<pre><code>$("#sl_sectorbr").click(function showSectorMini(){
  $(".minimenu").hide();
  $(".minimenu &gt; *").hide();
  $("#sector_mini").fadeIn("slow");
  $("#sector_mini &gt; *").fadeIn("slow");
});
</code></pre>

<p>All of this works fine. My question is, if I want to place "navigation links" on a second html page; that when clicked would both load my main page AND call/execute a specific function like
"showSectorMini()" just as if it were clicked from the main page itself — how would I write that code? I'd really appreciate any help I could get.</p>

<hr>

<p>Oh.... existing class is...</p>

<pre><code>}
/* ------- Interaction Containers Class -------- */
.interactContainers {
padding:8px;
border:#999 1px solid;
display:none;
}
</code></pre>

<p>But you probably already knew that!</p>

<p>Steve</p>

<hr>

<p>Gentlemen...</p>

<p>This is exactly what I need and mine is less complicated than this.  Just one div to open with the script.  I am a javascript incompetent person so far. :(</p>

<p>How do you dumb this down to my needs?</p>

<p>Seperate page link is:
    <code>&lt;a href="myprofile.php?id='. $id .'" target="_parent"&gt;Email&lt;/a&gt;&lt;/div&gt;</code></p>

<p>Page it goes to code is:</p>

<pre><code>function toggleSlideBox(x) {
    if ($('#'+x).is(":hidden")) {
            $(".interactContainers").slideUp(200);
            $('#'+x).slideDown(300);

    } else {
        $('#'+x).slideUp(300);
    }
}
</code></pre>

<p>and the div is this...</p>

<pre><code>&lt;div class="interactContainers"  id="interactContainers" style="background-color: #EAF4FF;"&gt;
</code></pre>

<p>I just want to click the link (Email) from one page...have it open the correct persons(id) profile page...and then execute my existing toggleSlideBox javascript.</p>

<p>Is that doable without a bunch or re-code with javascript that I have about an IQ of 4 in. :\</p>

<p>Thank you for any assistance you provide</p>

<p>S</p>
