Skip navigation
elektron4
Currently Being Moderated

extension with extra included files

May 18, 2012 6:04 AM

Tags: #web #dreamweaver #extension #extensions

I'm trying to do dreamweaver extension, and need to add jQuery library in to final file (in to that file, what is generated by extension).

How i can add jQuery (.js, .css) files so they will be uploaded in to user site automatically, when he use extension.

 

Thank you in advance

 
Replies
  • Currently Being Moderated
    May 19, 2012 6:27 PM   in reply to elektron4

    Can you just put links in the page to directly access the files via CDN (e.g. http://code.jquery.com/jquery-1.7.2.min.js). That way, the user doesn't need to worry about hosting the files on their site, and you don't need to worry about uploading them.

     

    Take alook at this doc:

    http://docs.jquery.com/Downloading_jQuery#CDN_Hosted_jQuery

     

    HTH,

    Randy

     
    |
    Mark as:
  • Currently Being Moderated
    May 20, 2012 4:39 PM   in reply to elektron4

    When the user uploads the updated page to their server, then the files will get uploaded as dependent files, correct?

     

    Randy

     
    |
    Mark as:
  • Currently Being Moderated
    May 21, 2012 8:25 AM   in reply to elektron4

    Take a look in SpryAccordion.htm at the objectTag() function. It uses the dom.copyAssets() API.

     

    HTH,

    Randy

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points