Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

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

Posted on 2008-11-16
3
Medium Priority
?
664 Views
Last Modified: 2013-11-19
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.
0
Comment
Question by:niBelo
3 Comments
 
LVL 15

Expert Comment

by:quincydude
ID: 22973720
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
 

Author Comment

by:niBelo
ID: 22975456
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
 
LVL 4

Accepted Solution

by:
und3ath earned 500 total points
ID: 23011089
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

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Preface This is the third article about the EE Collaborative Login Project. A Better Website Login System (http://www.experts-exchange.com/A_2902.html) introduces the Login System and shows how to implement a login page. The EE Collaborative Logi…
JavaScript has plenty of pieces of code people often just copy/paste from somewhere but never quite fully understand. Self-Executing functions are just one good example that I'll try to demystify here.
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn how to count occurrences of each item in an array.
Suggested Courses

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question