On 06/15/2010 01:09 PM, el-sid wrote:
nope. it didn't work. i tried
Galleria.loadTheme('/js/galleria/themes/galleria.classic.js');
and also
Galleria.loadTheme('../js/galleria/themes/galleria.classic.js');
but nothing. I am relatively new to symfony, so i have never
integrated php with jquery. is there
an alternative way of doing this

That part of it is, most likely, not related to symfony. If you have the images being created, the galleria plugin adds the extra html/css/js to make the slideshow work. Have you looked at what is happening on the webpage using firebug?

The other thing, that is obvious, but easy to overlook, are you sure the js files are where they are supposed to be.

On Jun 15, 10:40 pm, Richard D Shank<deve...@zestic.com>  wrote:
On 06/15/2010 12:09 PM, el-sid wrote:



thanks for reply,
i took your advice and put the code on the index and the changed the
<div>    tags..however, i notice that if i comment
out these statements:
<?php use_javascript('jquery-1.4.2.min.js') ?>
<?php use_javascript('galleria/galleria.js') ?>
   the images show, i am thinking it has something to do with file
paths, especially on the javascript
<script>
              Galleria.loadTheme('../galleria/themes/
galleria.classic.js');
          </script>
but i dont know how to set it. i have tried ../../../../ on several
levels but nothing
I think your hunch is right, try an absolute link. Galleria.loadTheme('/js/galleria/themes/galleria.classic.js'); or where
ever it is located for you

On Jun 15, 9:17 pm, Richard D Shank<deve...@zestic.com>    wrote:
I would probably do this on index instead of show.  Also, your code to
create the gallery should be
<div class="images">
       <?php foreach ($gallery_pics as $pics): ?>
           <?php $picUrl =  image_tag('../uploads/assets/picturegal/' .
$pics->getImage()) ?>
<?php echo $picUrl ?>
       <?php endforeach; ?>
</div>
Disable the the script to see if the images are actually loading on the
page.
On 06/15/2010 10:18 AM, el-sid wrote:
hi all,
i am trying to integrate this jquery script into symfony found at:
http://galleria.aino.se/. however i am coming up with a blank
screen.
i put the javascripts inside /js/galleria folder
then in the showSuccess of my module, i put this
<?php use_javascript('jquery-1.4.2.min.js') ?>
<?php use_javascript('galleria/galleria.js') ?>
<div id="body">
       <?php foreach ($gallery_pics as $pics): ?>
           <?php $picUrl =  image_tag('../uploads/assets/picturegal/' .
$pics->getImage()) ?>
       <div class="images"><?php echo $picUrl ?></div>
       <?php endforeach; ?>
       <script>
               Galleria.loadTheme('../galleria/themes/
galleria.classic.js');
           </script>
<script type="text/javascript">
               $('.images').galleria();
           </script>
</div>
the path in the url is like 
this:http://mydomain:8080/portal_dev.php/gallery/show/id/1
is there a better way to integrate external jquery into symfony??
Thanks..

--
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups "symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en

Reply via email to