Results 1 to 2 of 2

Thread: I have an issue using some external Javascript files when build in architect 3

  1. #1
    Touch Premium Member bts's Avatar
    Join Date
    Mar 2011
    Location
    Mexicali, Mexico
    Posts
    34
    Vote Rating
    0
      0  

    Question I have an issue using some external Javascript files when build in architect 3

    In my Sencha Touch 2.3.1 Project using Architect 3 i add 3 javascript resources files like in the following image:

    resourcesJS01.jpg

    As you can see in the previous image, the 3 javascript resources correspond to a special extension that i can use to render PDF files in a special Panel that use the Mozilla PDF render engine like in the following resource site ( https://github.com/SunboX/st2_pdf_panel ), and only specify the remote and update configs.

    So when i compile or build my project in Testing mode, the resources aren't minified as you can see in the following image and all works perfectly when rendering PDF files functionality:

    resourcesJS02.jpg

    But when i build the project in Production mode, the 3 resources files are minified as you can see in the following image and the PDF rendering functionality doesn't work throwing errors to the browser console:

    resourcesJS03.jpg

    As you can see in the previous image, the resources files are minified and throws an error to the console that and Object doesn't exists, the PDFJS object creates dynamically in the first execution of the Sencha Touch Web App, so i believe it is the same problem with my other recent post that i did in the Architect 3 forum with this link ( http://www.sencha.com/forum/showthre...y-touch-webapp ).

    Can anybody help me with this issue please ...

    Regards

  2. #2
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,318
    Vote Rating
    1291
      0  

    Default

    Customer opened a ticket in the support portal, handling in portal.
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it!

    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •