execute javascript from another url that I load in a sliding panel

Hi I m create a web page where I use sliding panels.
In one of then I load another page. (for example showProducts.php). In there I pass some url variables and my page works all right.
My problem is that inside the show Products.php I load some images. When I click on them I want to saw in a pop up  a bigger image. The problem is that my javascript doesnt execute.
When I reach the page directrly though the url (loading only this page and not this page inside th sliding panel) my script works all right.
What should I do to make this javascript work when a access it throug the sliding panel?

Thank you.
niBeloAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

quincydudeCommented:
You mean the javascript in your showProducts.php or the pop up windows not work? Anyway we can give you a better help if you can shown us some code.
0
niBeloAuthor Commented:
from the showProducts.php which I load inside a sliding panel, I want to open a popup image.
The image below is a thumbnail. It's inside the showProducts.php which loads inside a sliding panel. Clicking on this image I want to open a pop up (or lightbox).
My problem is that javascripts dont execute inside the showProducts.php , cause it loads as an external file inside the sliding panel. The sliding panel forms part of the index.php. When I click an image in the index.php I load the showProducts.php inside my sliding panel.

Thank u.
<!-- THATS THE CODE INSIDE THE SHOWPRODUCTS.PHP-->
<div id="restPhotos"><?php 
// Show IF Conditional region1 
if (@$row_rsGetPhotos['photosSmall1'] != "") {
?>
    <a href="../projectsUpldFiles/<?php echo $row_rsGetPhotos['photosBig1']; ?>" rel="lightbox" target="_blank" ><img src="projectsUpldFiles/<?php echo $row_rsGetPhotos['photosSmall1']; ?>" border="0"/></a>
    <?php } 
// endif Conditional region1
?>
<!--//END OF CODE INSIDE SHOWPRODUCTS.PHP-->
 
 
<!--THATS THE CODE INSIDE INDEX.PHP WHICH LOADS THE SHOWPRODUCTS.PHP INSIDE THE SLIDINIG PANEL-->
<img src="projectsUpldFiles/{projectThumb}" onmouseup="loadNewFragment('xml/showProducts.php?projectFgnId={projectRelId}&amp;&amp;projectDefCat={defaultCat}', 'ex1_p3')" onclick="mySlide()" border="0"/>

Open in new window

0
und3athCommented:
can you please post more code? or attach all files needed to make the script working? because Idont fully understand, what the code should do.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Languages and Standards

From novice to tech pro — start learning today.