MDS, Script Editor WebPart does not load javascript files with script tag

Hello everyone,
I have MDS and I would like to use some custom Javascript inside of a script editor web part in a page of my site.
When I add the references to the libraries I need in the Script Editor Web Part SharePoint is smart enough to disable MDS on that page.
I would like to be able to load external libraries inside of my Script Editor Web Part (without using ScriptLink or anything that would require the edition of the masterpage) but still using the added value of MDS.
Can I use SOD for that? What would be the best pattern? Could you provide a simple example?
Thanks in advance for your help!

Hi,
Per my knowledge, including CSS and JavaScript files using HTML style and script tags is not supported in MDS(Minimal Download Strategy).
We can refer the custom JavaScript file in the .aspx page or master page using ScriptLink control.
<SharePoint:ScriptLink language="javascript" name="custom_javascript.js" runat="server" />
The following articles for your reference:
http://sharepointsnacks.blogspot.com/2014/02/sharepoint-2013-minimal-download.html
http://tech.bool.se/make-javascript-code-work-with-minimal-download-strategy-part-2/
Thanks,
Dennis Guo
TechNet Community Support
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
[email protected]
Dennis Guo
TechNet Community Support

Similar Messages

  • JDEV 10.1.3  XML Editor does not load XML file

    I am trying to edit a large (300MB+) xml file with JDEV 10.1.3 running on a Windows XP Pro workstation with a 2.8 ghz processor and 1GB of memory. The XML file has application data in it. The file loads just fine into the Oracle database using the XML Developer's toolkit so I don't thing there is anything wrong with the XML.
    I'm finding that the XML editor does not load the file. Many minutes elapse, then JDEV appears to simply give up - JDEV is no longer busy. There's no XML data to edit - that window is empty. There are no error messages displayed.
    I'm new to JDEV so I need to know if there is an error log file I should examine.
    BTW, other XML editors (XML Spy, Stylus Studio, etc) simply run out of memory and lock up the machine - it appears they are tryign to convert the XML file contents into 32-bit unicode in memory, build a list of pointers to impose a DOM-like structure, and then load their editor.

    Do you really want to manually edit the 300MB file? how much scrolling will you need to do to get to the last row?
    In any case it is likely that JDeveloper also runs out of memory - you can try running the [jdev-root]\jdev\bin\jdev.exe file and see if you get any error message in the log window.

  • -moz-transform:scale does not work in Firefox with select tag(DropDown)

    -moz-transform:scale does not work in Firefox with select tag(Dropdown). The Dropdown options are being displayed at incorrect location.

    'Hi, Please try the HTML attached in image. This works in IE, Safari, Crome but not in Firefox

  • Mail command in script hangs and does not release control to calling script

    Hello folks,
    I am running in a situation which I haven't seen before.
    Main script calls function which executes another script.
    No matter which statement is the last in called script, it hangs on the last line and does not return control to main script.
    I tried to call another script not within the function - it is the same result.
    Can you help please.
    Below example of code:
    --- Main script:
    function checksum
    set -x
    /sybdump/ukgoald/scripts/egrep_expr1
    ##MAIN --- call to script script execution which runs mail command
    checksum
    ---- trace execution of called script:
    + read A B RF_FULL_NAME
    + print
    + /usr/bin/mailx -s Checksum Report [email protected]
    + 0< /sybdump/ukgoald/dump1/egrep_expr1.log3
    + print
    + return 0
    Edited by: ge**** on Dec 14, 2010 11:29 PM

    Hello folks,
    I am running in a situation which I haven't seen before.
    Main script calls function which executes another script.
    No matter which statement is the last in called script, it hangs on the last line and does not return control to main script.
    I tried to call another script not within the function - it is the same result.
    Can you help please.
    Below example of code:
    --- Main script:
    function checksum
    set -x
    /sybdump/ukgoald/scripts/egrep_expr1
    ##MAIN --- call to script script execution which runs mail command
    checksum
    ---- trace execution of called script:
    + read A B RF_FULL_NAME
    + print
    + /usr/bin/mailx -s Checksum Report [email protected]
    + 0< /sybdump/ukgoald/dump1/egrep_expr1.log3
    + print
    + return 0
    Edited by: ge**** on Dec 14, 2010 11:29 PM

  • Deployed application does not contain javascript files

    Hello,
    I am a unexperienced user of the BPM Studio. When I start my application in Oracle BPM my application does not contain the javascript files. It is quite weird, because the path to the .js files is proper - the application works on other computers. I have observed several weird things:
    - when I lookup the application in Firebug, when I try to lookup the source of the .js files, firebug console presents something like this (i deleted most of the html so that it is easy to read):
    <html><head><title>Apache Tomcat/5.5.15 - Error report</title>
    <body>HTTP Status 404 - /workspace//webRoot/webResources/js/jquery-1.4.2.min.js
    Status report message /workspace//webRoot/webResources/js/jquery-1.4.2.min.js
    The requested resource (/workspace//webRoot/webResources/js/jquery-1.4.2.min.js) is not available.
    <h3>Apache Tomcat/5.5.15</h3></body></html>- as i said - the application works just fine on other computers, without having to edit the path to the .js files
    - the application doesn't deploy the application (at least I think it does not) in the OraBPMStudioHome - the application is in the following folder:
    C:\Users\<username>\AppData\Local\VirtualStore\Program Files\OraBPMStudioHome\webapps\workspace\webRoot
    I am using OracleBPM Studio 10gR3, my system is Windows 7 Proffessional 64bit. Could the fact, that my system is 64 bit, cause the error?
    I haven't changed anything in the web.xml, workspace.properties files.
    It looks as if the server didn't include my js files. What may be causing this? I tried to locate the folder where the Tomcat Server deployes the application, and copying the js files where they should be manually, but that didn't work out well - the web application still does not see them.
    By the way, the double // slashes in the path to the .js file are fine on other computers, but is that proper?
    My application uses other scripts, not only jQuery, so changing the link to the jQuery file, won't work.
    I'd be very happy for any solution, thanks in advance!
    Chris Mejka
    Edited by: 789731 on 2010-08-20 01:20

    Nope, that's not the case; all the imports are handled by the <fuego:webResources /> tag, like this:
    <script type="text/javascript" src="<fuego:webResources relativePath='js/jquery-1.4.2.min.js'/>"></script>If that helps, the folder structure, with the .js files is as follows: ../webRoot/webResources/js/ ....
    As I said before - none of my colleagues, who use this application, has this problem, the application runs fine on other computers. The only (or at least that's what I think) difference, is that I use a 64 bit OS... Maybe that's the problem? Or maybe something is wrong in one of my BPM configuration files?
    Edited by: 789731 on 2010-08-20 02:29
    Edited by: 789731 on 2010-08-20 04:42

  • Tomcat6 does not load class files from WEB-INF/lib/myjarfile.jar  WHY???

    I have placed my jar file in c:\tomcat6\webapps\my-application\WEB-INF\lib\myjarfile.jar
    But, after restarting tomcat6, when i try to import the class file contained in the myjarfile.jar in a servlet, it says
    ProcessFileUpload.java:4: package test.test1 does not exist
    import test.test1.*;
    ^It clearly tomcat's class loading problem.
    As i unzipped my jar and placed the packagefolder structure to
    c:\tomcat6\webapps\my-application\WEB-INF\classes\testand it works perfectly.
    Anyone knows its workaround? please suggest if any configuration changes is required in tomcat or so.
    Thanks.
    ---Sujoy

    Thank you gimbal2 . There was error in creating the jar file myjarfile.jar.
    But, now I have created it again and placed it in place
    c:\tomcat6\webapps\my-application\WEB-INF\lib\myjarfile.jarand tried to use one on the Class file included within the jar to compile my servlet. But, still I am getting error at servlet compilation time. I want to place executable jar files in
    c:\tomcat6\webapps\my-application\WEB-INF\lib\myjarfile.jar and compile my servlet and execute the servlet.
    I DO NOT WANT TO unzip the jar, placing all unzipped files to
    c:\tomcat6\webapps\my-application\WEB-INF\classes\ folder and comiple my servlet and execute the servlet. But, I am failing to user WEB-INF\lib\ folder facility....please help me why i am not getting class files from WEB-INF\lib\ folder.
    If you please see the small code bit and tell me any possible error that would be very helpful.
    Step 1: my library java file MyClass.java
    package test.test1;
    public class MyClass {
         String myName = "Default return string value";
         public void setMyName(String varName) {
              this.myName = varName;
         public String getMyName() {
              return this.myName;
    }Step2 : Creating jar file of my library class files
    C:\jdk1.6\bin>jar cvf myjarfile.jar test
    added manifest
    adding: test/(in = 0) (out= 0)(stored 0%)
    adding: test/test1/(in = 0) (out= 0)(stored 0%)
    adding: test/test1/MyClass.class(in = 452) (out= 296)(deflated 34%)
    adding: test/test1/MyClass.java(in = 230) (out= 140)(deflated 39%)
    C:\jdk1.6\bin>Step3 : Double checking the created jar file content by listing its content
    C:\jdk1.6\bin>jar tf myjarfile.jar
    META-INF/
    META-INF/MANIFEST.MF
    test/
    test/test1/
    test/test1/MyClass.class
    test/test1/MyClass.java
    C:\jdk1.6\bin>Step4 : Placed myjarfile.jar to
    c:\tomcat6\webapps\my-application\WEB-INF\lib\Step5 : Restarted standalone Tomcat6 in my Windows XP SP2.
    Step6 : Created a simple servlet LibFolderTest.java within my-application\WEB-INF\classes\ folder with code
    import java.io.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import test.test1.*;
    public class LibFolderTest extends HttpServlet {
         public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
              response.setContentType("text/html");
              PrintWriter out = response.getWriter();
              MyClass mc = new MyClass();
              out.println(mc.getMyName());
    }Step7 : Tried to compile my servlet LibFolderTest.java and got the following error
    LibFolderTest.java:4: package test.test1 does not exist
    import test.test1.*;
    ^
    LibFolderTest.java:11: cannot find symbol
    symbol  : class MyClass
    location: class LibFolderTest
                    MyClass mc = new MyClass();
                    ^
    LibFolderTest.java:11: cannot find symbol
    symbol  : class MyClass
    location: class LibFolderTest
                    MyClass mc = new MyClass();
                                     ^
    3 errorsThe above servlet compilation error on Step7 is telling me that myjarfile.jar is not loaded by Tomcat6 or not available for use when compiling servlet. I want to use myjarfile.jar from within WEB-INF\lib\ folder but I can not. please help.
    ---Sujoy

  • PI does not combine .wsdl file with .xsd files.

    Hi,
    I imported .wsdl file with necessary .xsd files in PI system (7.1).
    PI does not find fields in .wsdl already necessary .xsd files imported with .wsdl file.
    Is there anyone to help me to solve problem with test it in PI system.
    I send .wsdl file and necessary .xsd files as attachment his mail address.
    Thanks.

    Did you try opening the wsdl file in some XML tool...if there is problem in referring the XSD then it will be visible in the tool itself.....even I am working on PI7.1 and some of the WSDLs are referring XSDs...and i had no problem in using them.....dont know what is failing in your case
    Do you want me to send .wsdl and .xsd files zipped into your mail box
    instead you can post your wsdl file and the corresponding XSD here in SDN....even a dummy structure would do....we are not allowed to do personal email comunication
    Regards,
    Abhishek.

  • Finder does not show new files with older creation dates

    Short story: when I somehow create new files or folders with older dates, Finder does not show them.
    This happens e.g. when I unrar archives created some time ago: the files or folders coming out of the archive get their original date, which is earlier than today.
    I can see those files and folders without problems in a terminal (using ls). But they don't show up in Finder when I visit the same directory.
    When I use terminal to go into some directory that is not yet visible in Finder, and I open a new Finder window for that directory from within terminal (using "open ."), the new directory and its contents will show up in Finder.
    My best guess is that some things have changed in the way Finder and the indexing of my flle system co-operate. In any case, this is higly annoying.
    Does anyone know how to fix this?
    OS X Yosemite 10.10 (14A389)
    Macbook Air - 13 Inch - Mid 2013

    I have the same problem.  I create files and they do not show up in their respective Finder window.  I know the files are there because I created them and I can see them using Terminal and applications can open them.  If I refresh the window by going to the parent directory and back again, the files do not show up.  If I close all windows and open that specific  window again, the files still do not show up.  If I leave the computer overnight, the new files still do not show up.  As brdsutte stated, after rebooting the computer, the files show up in the Finder window.  Anyone have any suggestions?
    iMac 27 inch, mid 2011
    Yosemite 10.10.1

  • After a disk crash. I tunes does not see the file with my music in it.  How do I fix this?

    Windows 7 PC.  Disk crash.  Restored disk.  Reinstalled itunes.  I tunes does not see my music.  Music is in a folder called myipodmusic.  Has sub folders for artists, below artists has files for songs.  Any ideas??  Actually itunes sees my music titles, just does not play the song.  Says cannot find file. I can direct it to file, but there are 5,000 of them.  Help?

    See turingtest2's user tip Empty/corrupt iTunes library after upgrade/crash

  • Double clicking Illustrator (.ai) file does not open a file with opened app.

    Hello,
    I have an Illustrator CS5 (15.0.2) running on Windows 7 Pro. Here are the symptoms: when double clicking the Illustrator file once the application is already open, the file will not open. You will see an hourglass for a few seconds, but no file contents are displayed. However, if I were to close Illustrator application and then double click on the file, Illustrator will open the file correctly. Additionally, if I go to File -- Open and manually select the file, it also opens the file correctly. Only double clicking the file once the Illustrator application is already open does not work.
    Has anyone seen this issue and knows how-to fix it?

    Right click on a .ai file and choose properties, check to see what application is set to open .ai files. Try running in 32 bit mode.

  • Reader X does not load dymanic file correctly on Citrix

    Good day,
    I am having issues with Reader X in Internet Explorer 7 on a Citrix Terminal Server running Windows 2003 SP2.  When I click on a hyperlink requesting a dymanic PDF file, it opens a new IE window, then displays a gray box.  If I delete and re-type the last letter in the web address it will re-request the file and correctly display the file.  At another web site where I request a static PDF and it opens correctly but it uses a frame in the original web page.  This issue happens to both standard users and domain admins.  Also the webpage that we have issues with will render correctly from IE7, Reader X on a XP system.
    Eric Maynard

    I find it does the same error on this website when I request to view the thread as PDF.
    Eric Maynard

  • Creative cloud on the web does not load my files

    When I go to creative cloud online (view files on the web) to see my files, it takes forever to load and it finally only shows a blank page even though on my desktop version I have files and folders, which seem to be synced (All files up to date)!
    Browser Google Chrome, Operating System OS X 10.9.3 - Internet connection GOOD

    myrtomag We are investigating.
    There was a problem with accessing files in the website that has since been resolved.
    If you are still experiencing an issue please reply here and we will investigate further.

  • Photoshop elements editor 12 does not open .psb file

    why is this isn't this a type of photoshop file, it reads "Could complete your request because it is not the right kind of document" when I attempt to open

    I do understand your question. You need to have main stream Photoshop (Not Photoshop Elements) to open this type of file.  The trial version can be downloaded from this link:
    <https://creative.adobe.com/products/download/photoshop>
    Sorry not be helpful here.

  • Essbase client perl module does not contain any files or scripts

    Hi
    Essbase Client in the following location is empty
    /Oracle/Middleware/EPMSystem11R1/products/Essbase/EssbaseClient-32/perlmod
    Essbase Server has the following files under
    Oracle/Middleware/EPMSystem11R1/products/Essbase/EssbaseServer/perlmod > ls -altr
    total 116
    Makefile.PL.unix
    Makefile.PL.linux
    -test.pl
    Essbase.xs
    MANIFEST
    README
    Makefile.PL.windows
    Makefile.PL.sol64
    samples
    Essbase.pm
    Makefile.PL.aix
    Has anyone come across this one before? Essbase Server SPARC 64 bit 11.1.2.1

    I've tried to create the TMF file were the provider is in located. The .PDB file will try to locate the provider in the  TMF file, but it doesn't get created. I've used tracepdb.exe to make one.
    I don't think Microsoft provided the provider. Instead it is looking for a .tmc file.
    See the documentation for creating a tmf file.

  • Nokia 5800: Does not recognize M4A files with uppe...

    I use linux, and when I recently copied over two M4A tracks (I did not realize they had UPPER case extensions), they were not recognized during library refresh and did not show in the Music Player application. They did show in the File manager. Windows cannot rename such a file to .m4a, and neither can the 5800. The workaround was to rename the file to a bogus or no extension and then rename it to .m4a lower case.
    This is probably a bug since the music player should be file name case insensitive.

    Iḿ desperatly looking for a way to sync my Nokia 5800 under linux. Did you find a way? So far I once had a contection thrugh multisync but it ended with errors and i didn find any data transfered.
    It is time nokia comes with Ovi or Pc Suite for linux !  Currently when I google on the subject I get a lot of tech talk and failures no clear working sollution. Can you help!?

Maybe you are looking for