I'm trying to integrate the CKEditor in Dynamics NAV. Dynamics NAV allows to integrate JavaScript AddIns. Unfortunately, there are some restrictions. One of these restrictions is the strict folder hierarchy for all the files, that belong to the addin. In order to import such a JavaScript Addin, the developer has to create a .ZIP file with a manifest.xml file in the root and three subfolders for Script, Stylesheet and Image. As you can imagine, if I split all files from CKEditor and its plugins and put them into the new folder structure, the editor won't work. On the other hand, if I leave them in their original folder structure, the AddIn could not be imported into Dynamics NAV.
Any ideas?
Put any Third-party software components on the IIS / NAV Webserver.
reference the js inside the Manifest.xml with:
<ScriptUrls>
<ScriptUrl>https://yourserver/ckeditor_version/ckeditor.js</ScriptUrl>
</ScriptUrls>
This is the offical way for all components:
https://learn.microsoft.com/en-us/dynamics-nav/manifest-overview
Related
I found many projects that required a server. My question how do I start Visual Studio Code like any other jQuery/React/Angular library? How do I start it from the browser without using a server?
I know that I will need to provide the files using a script.
I don't need the extension marketplace, terminal and similar. I only need the files tab on the left, the search tab, and the editor itself. The editor is Monaco, I found out. But I didn't find something that also contains the files panel and the tabs switcher (The list of opened files).
There are projects like code-server, but it requires a server. It also should be executed by our clients, so I don't want resources or security risks on the server.
So how do I compile and embed Visual Studio Code into a Web page to be served by a static HTML server?
I'm new to GitHub Pages and Jekyll, and moving my blog to it.
I decided to use CDN for Twitter Bootstrap, so just copied example links from official website to the default.html template which is in the _site/_layouts/default.html
But when my site is generated, Jekyll creates a local copy of css on the fly, so instead of pointing to the CDN, it creates a link to /assets/styles.css file, but styles are not applied.
Also, at the default.html page bottom, instead of 3 JavaScript files on CDN I got only one unknown to me pointing to CloudFlare.
What I have to do to bypass Jekyll processing links to the files located on CDN?
The problem was in the folder structure. I put my whole website in the _site subfolder (you may notice that from the path I provided in the question). The website generated correctly after I moved all of its content to the root folder.
I am building a "product documentation" web application using React. The application just sits on a shared drive, the user opens index.html and browses the docs. I use React and Bootstrap for getting a nice menu/tree etc. I have client side code, only.
I also have a bunch of PDF-s organized nicely into folders. The number of files will grow over time. I want the user to be able to browse among the files. I would be happy to have an ordinary anchor tag that opens the appropriate folder in Windows Exporer. This actually does the trick:
<a href="./folder_i_want_to_display/" >My product docs</a>
However, since I use React Router, the link does not pull up Windows Explorer anymore. Do you have any suggestion?
Browsers:IE10 and 11 only.
Within WebSphere Application Server Liberty Profile Guide for Developers pdf in section 1.4 (Frictionless application development), it mentions:
By default, the Liberty profile will monitor deployed applications for changes.
Updates to static files (HTML, CSS, or JavaScript) or JSP files are detected and
served immediately. Changes to servlet classes cause an automatic restart of
the application.
I am not deploying via dropins folder. I have a configured server.xml file within Eclipse
<application location="/Users/path/my_application.ear" type="ear"></application>
I am not able to make any changes to my source UI files and see updates on WebSphere.
I am also not able to find a particular js file deployed anywhere, so it seems the *.ear file is not expanded, so I could edit the file directly on the server.
The only way I can see changes to my UI files is to make the changes to the source files and rebuild the ear file.
I feel like I am not creating a proper mapping to my source files and/or perhaps the Liberty profile on Mac doesn't explode the ear files so that I can edit the deployed UI files.
Thoughts?
If you want to have automatic updates of your files on the server, the best way is to use Eclipse to deploy the project to the server using "Add Remove" option on the server. This configures server.xml to point to your expanded app in the workspace. As result any changes to the files in the workspace are visible and detectable by the server.
If you configured your server.xml with path to the ear, it will monitor only for ear changes. And since your UI files are in totally different place, changes are not detected unless you rebuild your ear.
For deployment options to Liberty see the following links:
Adding and running an application on the Liberty profile by using developer tools
Deploying applications to the Liberty profile
It is possible to indicate path to an already deployed application, in my case it's a web application:
<webApplication location="\programs\wlp\app1_war" name="app1" contextRoot="app1">
<classloader delegation="parentLast"/>
</webApplication>
Changes in some scripts will be loaded automatically, but java classes are loaded by class loader when server starts or when app is redeployed.
See classLoader and classloaderContext, maybe there is a way to make class loader to reload classes at change:
https://www.ibm.com/support/knowledgecenter/SSD28V_8.5.5/com.ibm.websphere.wlp.core.doc/autodita/rwlp_metatype_core.html?view=kc#mtFile17
Phonegap apps are usually different from general web sites, even if they are written with the same language.
Main differences:
a Phonegap app loads main pages from local file
many web frameworks for mobiles (like jQuery Mobile) usually load a single html file and then programmatically change pages.
So I think it's outdated the common suggestion of put code on external JS file. Is it true?
What's the best way to organize the code so it will be fast to load and easily maintainable? (e.g. do you separate code that concerns the view and code that concerns the data?)
Even with jQueryMobile I have many html files. Sometimes we're loading a portion of content from another html file using the jQueryMobile mechanism of loading just a particular #id from the html file. In many apps the data is being loaded from an external site and being inserted into the content from the local files. If I do load any data locally I use a data subfolder unless I'm loading from local storage.
Given that, here is my typical structure of my www folder:
www (all my views go in this main folder)
data (any local files that will be loaded for insertion into my views)
js (all my phonegap plugins and jquery source goes here)
styles (css for jquery, local views, etc)
images (local images for my views
Phonegap apps are generally web-apps using advanced integration points. The content is still rendered in a WebView which is not very different from system browser...
There is no standard on organizing the code of your application but most advices for web-apps are a good fit for Phonegap apps too...