It finally worked...firebug was a big help. turns out the hunch i had
was right.
Galleria.loadTheme('/js/galleria/themes/galleria.classic.js'); was the
problem since it was
returning a 404 not found in firebug. The above format you suggested
was right only that my path was
a little messed up.
Thanks again.On Jun 16, 12:09 am, el-sid <[email protected]> wrote: > geez! i think you are right..just put firebug and it seems some of the > javascript code is being obstructed by the debug toolbar and/or with > my other javascript code there. On my layout..i had used: > <?php include_stylesheets() ?> > <?php include_javascripts() ?> > > though now i am starting to think its a better idea to include > stylesheets for the layout only and add module specific stylesheets > and javascripts in the view.yml > Is that about right?? > > Anyway, time to power down my brain. its late in my continent. Thanks > for all your help Richard, i'll let you know how it goes. > On Jun 15, 11:43 pm, Richard D Shank <[email protected]> wrote: > > > 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<[email protected]> 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<[email protected]> 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 [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en
