This forum is in READ-ONLY mode.
You can look around, but if you want to ask a new question, please use the new forum.
Home » plugins » Javascript plugins » integrating galleria into symfony 1.4
integrating galleria into symfony 1.4 [message #101000] Tue, 15 June 2010 20:06 Go to next message
el-sid  is currently offline el-sid
Messages: 64
Registered: September 2009
Location: Nairobi, Kenya
Member

hi all, ok admittedly this is not a plugin but i gather guys here have a lot of experience with jquery:

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..
Re: integrating galleria into symfony 1.4 [message #101044 is a reply to message #101000 ] Wed, 16 June 2010 13:13 Go to previous message
el-sid  is currently offline el-sid
Messages: 64
Registered: September 2009
Location: Nairobi, Kenya
Member

solved it..it was a problem of paths here
Galleria.loadTheme('../galleria/themes/galleria.classic.js');



Took me a day to see it with a little help and firebug Very Happy
Previous Topic:autocomplete doesn't work
Next Topic:Simple Jquery modal window and AJAX
Goto Forum:
  

powered by FUDforum - copyright ©2001-2004 FUD Forum Bulletin Board Software