Loading ...
Sorry, an error occurred while loading the content.

Re: [ydn-javascript] Merging js files?

Expand Messages
  • Eric Miraglia
    Pete, Are you sure you put the contents of utilities.js before the contents of container-min.js? Regards, Eric ______________________________________________
    Message 1 of 7 , Feb 3 10:52 PM
    • 0 Attachment
      Pete,

      Are you sure you put the contents of utilities.js before the contents of container-min.js?

      Regards,
      Eric


      ______________________________________________
      Eric Miraglia
      Yahoo! User Interface Library



      On Feb 2, 2007, at 11:00 AM, Pete wrote:

      Hi,
      I am using the utilities.js and container-min.js library files. I am
      currently trying to reduce all external references to js files on our
      site, so to reduce the number of downloads that a user has to make.

      I've tried simply merging these two YUI files and including them in our
      project, but I get a YAHOO undefined error.

      Is there any reason why I shouldn't be able to just merge these two
      files?

      Thanks!


    • Nige White
      You have to merge them in order because there are dependencies. If you use Ant, try
      Message 2 of 7 , Feb 5 1:10 AM
      • 0 Attachment
        You have to merge them in order because there are dependencies.

        If you use Ant, try

        <!-- Create Aspicio.js from YUI files -->
        <concat destfile="${basedir}/WebRoot/js/Aspicio.js"
        fixlastline="yes" append="no">
        <filelist
        dir="${basedir}/WebRoot/js"

        files="yahoo.js,event.js,dom.js,logger.js,connection.js,animation.js,

        dragdrop.js,treeview.js,container.js,calendar.js,menu.js"/>
        </concat>
        <concat destfile="${basedir}/WebRoot/js/Aspicio.js"
        fixlastline="yes" append="yes">
        <fileset dir="${basedir}/WebRoot/js"
        includes="*.js"
        excludes="Aspicio.js,

        yahoo.js,event.js,dom.js,logger.js,connection.js,animation.js,

        dragdrop.js,treeview.js,container.js,calendar.js,menu.js"/>
        </concat>

        That adds base files in a specified order, and then adds all others not
        previously added in directory order.

        Pete wrote:

        > Hi,
        > I am using the utilities.js and container-min.js library files. I am
        > currently trying to reduce all external references to js files on our
        > site, so to reduce the number of downloads that a user has to make.
        >
        > I've tried simply merging these two YUI files and including them in our
        > project, but I get a YAHOO undefined error.
        >
        > Is there any reason why I shouldn't be able to just merge these two
        > files?
        >
        > Thanks!
        >
        >
        > - -
        > Scanned for viruses.



        - -
        Forward Computers Limited is a company registered in England and Wales with company number 3249628, VAT Number 416458349. Registered office address : Forward House, 161 Glaisdale Drive West, Nottingham, NG8 4GY

        This email has been scanned for viruses by Messagelabs.
      • François Dussert
        hello, i m using connection manager and put some content in simpleDialogs. It works fine but in internet explorer only background-images aren t display (in
        Message 3 of 7 , Feb 5 1:33 AM
        • 0 Attachment
          hello,
          i'm using connection manager and put some content in simpleDialogs.
          It works fine but in internet explorer only background-images aren't display (in firefox i can see them) !!!!
          Other properties like color or text-indent are ok.
          My css styles are in a stylesheet and i can't put them in the HTML.
          What can i do ?
          thx
        • François Dussert
          sorry i just found that i have to put a presentation: relative for the elements and i can see background in ie. _____ De : ydn-javascript@yahoogroups.com
          Message 4 of 7 , Feb 5 2:05 AM
          • 0 Attachment
            sorry i just found that i have to put a presentation: relative for the elements and i can see background in ie.
             
             


            De : ydn-javascript@yahoogroups.com [mailto:ydn-javascript@yahoogroups.com] De la part de François Dussert
            Envoyé : lundi 5 février 2007 10:34
            À : ydn-javascript@yahoogroups.com
            Objet : [ydn-javascript] Background-images ie or dialog bug ?

            hello,
            i'm using connection manager and put some content in simpleDialogs.
            It works fine but in internet explorer only background-images aren't display (in firefox i can see them) !!!!
            Other properties like color or text-indent are ok.
            My css styles are in a stylesheet and i can't put them in the HTML.
            What can i do ?
            thx

          • Pete
            Hmmm... all I did was create a new yahoo-merge.js file, and put the contents of the utilities.js file first and then the contents of the container-min.js
            Message 5 of 7 , Feb 5 7:41 AM
            • 0 Attachment
              Hmmm... all I did was create a new 'yahoo-merge.js' file, and put the
              contents of the utilities.js file first and then the contents of the
              container-min.js file second. These were the only 2 yahoo library
              files I was using.

              If I use the yahoo-merge.js file I get that 'YAHOO undefined' error.
              If I take that out and then use the 2 seperate files in the same
              order it works fine.

              I thought perhaps there was something about having the files included
              seperately that causes the js code to behave differently than if
              these 2 files were combined together?

              Thanks for the help....!


              --- In ydn-javascript@yahoogroups.com, Eric Miraglia <miraglia@...>
              wrote:
              >
              > Pete,
              >
              > Are you sure you put the contents of utilities.js before the
              contents
              > of container-min.js?
              >
              > Regards,
              > Eric
              >
              >
              > ______________________________________________
              > Eric Miraglia
              > Yahoo! User Interface Library
              >
              >
              >
              > On Feb 2, 2007, at 11:00 AM, Pete wrote:
              >
              > > Hi,
              > > I am using the utilities.js and container-min.js library files. I
              am
              > > currently trying to reduce all external references to js files on
              our
              > > site, so to reduce the number of downloads that a user has to
              make.
              > >
              > > I've tried simply merging these two YUI files and including them
              in
              > > our
              > > project, but I get a YAHOO undefined error.
              > >
              > > Is there any reason why I shouldn't be able to just merge these
              two
              > > files?
              > >
              > > Thanks!
              > >
              > >
              > >
              >
            • dav.glass@yahoo.com
              Pete -- Can you put up a copy of the file somewhere so that we can see it? Dav Dav Glass dav.glass@yahoo.com blog.davglass.com + Windows: n. - The most
              Message 6 of 7 , Feb 5 7:48 AM
              • 0 Attachment
                Pete --

                Can you put up a copy of the file somewhere so that we can see it?

                Dav
                 
                Dav Glass
                dav.glass@...
                blog.davglass.com


                + Windows: n. - The most successful computer virus, ever. +
                + A computer without a Microsoft operating system is like a dog
                without bricks tied to its head +
                + A Microsoft Certified Systems Engineer is to computing what a
                McDonalds Certified Food Specialist is to fine cuisine +


                ----- Original Message ----
                From: Pete <rizzmanix@...>
                To: ydn-javascript@yahoogroups.com
                Sent: Monday, February 5, 2007 7:41:57 AM
                Subject: [ydn-javascript] Re: Merging js files?


                Hmmm... all I did was create a new 'yahoo-merge.js' file, and put the
                contents of the utilities.js file first and then the contents of the
                container-min.js file second.  These were the only 2 yahoo library
                files I was using.

                If I use the yahoo-merge.js file I get that 'YAHOO undefined' error.  
                If I take that out and then use the 2 seperate files in the same
                order it works fine.

                I thought perhaps there was something about having the files included
                seperately that causes the js code to behave differently than if
                these 2 files were combined together?

                Thanks for the help....!


                --- In ydn-javascript@yahoogroups.com, Eric Miraglia <miraglia@...>
                wrote:
                >
                > Pete,
                >
                > Are you sure you put the contents of utilities.js before the
                contents  
                > of container-min.js?
                >
                > Regards,
                > Eric
                >
                >
                > ______________________________________________
                > Eric Miraglia
                > Yahoo! User Interface Library
                >
                >
                >
                > On Feb 2, 2007, at 11:00 AM, Pete wrote:
                >
                > > Hi,
                > > I am using the utilities.js and container-min.js library files. I
                am
                > > currently trying to reduce all external references to js files on
                our
                > > site, so to reduce the number of downloads that a user has to
                make.
                > >
                > > I've tried simply merging these two YUI files and including them
                in  
                > > our
                > > project, but I get a YAHOO undefined error.
                > >
                > > Is there any reason why I shouldn't be able to just merge these
                two
                > > files?
                > >
                > > Thanks!
                > >
                > >
                > >
                >





                Yahoo! Groups Links

                <*> To visit your group on the web, go to:
                    http://groups.yahoo.com/group/ydn-javascript/

                <*> Your email settings:
                    Individual Email | Traditional

                <*> To change settings online go to:
                    http://groups.yahoo.com/group/ydn-javascript/join
                    (Yahoo! ID required)

                <*> To change settings via email:
                    mailto:ydn-javascript-digest@yahoogroups.com
                    mailto:ydn-javascript-fullfeatured@yahoogroups.com

                <*> To unsubscribe from this group, send an email to:
                    ydn-javascript-unsubscribe@yahoogroups.com

                <*> Your use of Yahoo! Groups is subject to:
                    http://docs.yahoo.com/info/terms/


              Your message has been successfully submitted and would be delivered to recipients shortly.