How to combine css and js files.

Last post 01-11-2013, 11:46 AM by Kenneth. 3 replies.
Sort Posts: Previous Next
  •  01-10-2013, 3:37 AM 76615

    How to combine css and js files.

    Hi

     

    1)There are total 10 js files and 5 css files it calls when we use DotNetGallery control.How we can comabine into one js and css file.It makes 15 requests.Also how we can assign our desired path for the css and js file insted of the default path.

     

    <script type="text/javascript" src="/CuteSoft_Client/Gallery/Core/GalleryLibrary.js"></script>
    <script type="text/javascript" src="/CuteSoft_Client/Gallery/Share/LibraryExt.js"></script>
    <script type="text/javascript" src="/CuteSoft_Client/Gallery/Core/GalleryMenu.js"></script>
    <script type="text/javascript" src="/CuteSoft_Client/Gallery/Core/GalleryBrowser.js"></script>
    <script type="text/javascript" src="/CuteSoft_Client/Gallery/Layout/Modern/Code.js"></script>
    <script type="text/javascript" src="/CuteSoft_Client/Gallery/Slider/NewWin/Code.js"></script>
    <script type="text/javascript" src="/CuteSoft_Client/Gallery/Viewer/LightBox/Code.js"></script>
    <script type="text/javascript" src="/CuteSoft_Client/Gallery/Popup/Default/Code.js"></script>
    <script type="text/javascript" src="/CuteSoft_Client/Gallery/Theme/Classic/Code.js"></script>
    <script type="text/javascript" src="/CuteSoft_Client/Gallery/Editor/Explorer/Code.js"></script>
    <link rel="stylesheet" href="/CuteSoft_Client/Gallery/Gallery.css">
    <link rel="stylesheet" href="/CuteSoft_Client/Gallery/Theme/Classic/Style.css">
    <link rel="stylesheet" href="/CuteSoft_Client/Gallery/Layout/Modern/Style.css">
    <link rel="stylesheet" href="/CuteSoft_Client/Gallery/Viewer/LightBox/Style.css">
    <link rel="stylesheet" href="/CuteSoft_Client/Gallery/Editor/Explorer/Style.css">

     

    2) Is there any event available when file upload completes.Where we can call some functionality ones file upload is done.

    3) Currently it shows 1 file(s) have been uploaded!.Can we customize this alert message.

    4) How about Asp.net image gallery with MVC.

     Regards

    Sekhar 

  •  01-10-2013, 12:24 PM 76618 in reply to 76615

    Re: How to combine css and js files.

    Hi Sekhar,

     

    Question 1

     

    The code has been encrypted, so can not achieve this requirement for now.

     

    Question 2

     

    You can try event PostProcessImage

     

    1. protected void GalleryBrowser1_PostProcessImage(object sender, GalleryImageEventArgs args)  
    2. {  
    3. }  
     

    Question 3

     

    Please open file \CuteSoft_Client\Gallery\Core\GalleryBrowser.js, you can find the message below in it. Then change it directly.

     

    file(s) have been uploaded! 

     

    Question 4

     

    Does not support mvc for now.

     

    Regards,

     

    Ken 

     

  •  01-10-2013, 3:31 PM 76620 in reply to 76618

    Re: How to combine css and js files.

    Hi Ken

    Thanks for the reply.It would be great if you provide as single js and .css file instead of somany files.This can reduce so many server requests.Hope in the next version we can find this.

    Regards

    Sekhar 

  •  01-11-2013, 11:46 AM 76626 in reply to 76620

    Re: How to combine css and js files.

    Hi Sekhar,

     

    I will report this requirement to the development team.

     

    Regards,

     

    Ken 

View as RSS news feed in XML