JQuery document.ready

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Tassos Souris
    New Member
    • Aug 2008
    • 152

    JQuery document.ready

    Hi to everyone,

    I am new to Javascript and i am trying some cool stuff based on JQuery but i have a problem when i want to add more than one in one html page.

    For example (following the instructions written in their sites) i add to index.html:

    and


    but only the effect of the css-dock-menu is activated.

    for the spacegallery i added this code to the body section:
    Code:
    <script type="text/javascript">
    		$(document).ready(
    					function(){
    						$('#my_gallery').spacegallery( 
    							{
    								loadingClass: 'loading'
    							} 
    						)
    					}
    				);
    </script>
    I would appreciate any help.
    Thanks for reading
  • acoder
    Recognized Expert MVP
    • Nov 2006
    • 16032

    #2
    Can you get the space gallery working on its own?

    Comment

    • Tassos Souris
      New Member
      • Aug 2008
      • 152

      #3
      yes both work on their own... (actually the space gallery works only in firefox for unknowsn reasons)... if you know how spacegallery correctly works then i would appreciate it!

      however, regardless of spacegallery, i cannot make two scripts that require document.ready to activate in the same page...

      (ps: if you know a link to a very very cool image gallery please let me know... i am trying different to make a personal photo album while learning web development)

      Comment

      • acoder
        Recognized Expert MVP
        • Nov 2006
        • 16032

        #4
        See Multiple document.ready.

        Comment

        Working...