I have added a java script file, named 'dtformat.js' in my oracle apex application. The file was added inside the Static Application Files directory.
I added the file in my page using the code
<script src="#APP_IMAGES#dtformat.js" type="text/javascript"> </script>
The console log shows an error,
Loading failed for the <script> with source “#WORKSPACE/r/140/files/static/v74/dtformat.js”. 1 f:471
Then I found something at the location of static files. The size of the uploaded file shows 833, all the other files show 100KB,21KB,300KB as the file size, but this file- dtformat.js shows 833 and not 833KB. KB is excluded. What might be causing this error?
The problem is the path: why #WORKSPACE string is in the path?
#WORKSPACE/r/140/files/static/v74/dtformat.js
Related
I have got this problem with a program when I publish it to the server, the problem arises because it is published to a folder on the server rather than the root.
In the pages there are bits of code like this in the .cshtml files
#section head {
<link rel="stylesheet" href="/css/login.scss" />
}
If I publish this it interprets it as the file being at www.website.com/css/login.scss instead of www.website.com/folder/css/login.scss
I tried to use ~ infront of the link but that causes the whole program to crash with an Error 500, logging says this:
fail: Microsoft.AspNetCore.Server.Kestrel[13]
Connection id "0HM3MGHFA29RH", Request id "0HM3MGHFA29RH:00000001": An unhandled exception was thrown by the application.
System.IO.FileNotFoundException: No files found matching "/folder/css/login.scss" exist in "C:\inetpub\wwwroot\website\folder\wwwroot\"
Adding the ~ makes the program think the file is in the wrong location, I don't know how to resolve this without publishing the project to a root of a website which I want to avoid. I've tried all kinds of methods but am getting nowhere.
I'm saving a file by running the following code with Capacitor:
Filesystem.writeFile({
path: fileName,
data: content,
directory: FilesystemDirectory.Documents,
//encoding: FilesystemEncoding.UTF8
});
Now, I would like to open it (it's a pdf). However, I don't see anything in FileSystem documentation about how to achieve that? I'm missing a FileOpener function.
The goal is that it gets opened with whichever pdf app the user has in the phone.
I'm using Vuejs.
I hope that this is helpful to you, a package for capacitor to read pdf. https://www.npmjs.com/package/capacitor-pdf-viewer-plugin
I am using Yii EAjaxUpload extension to upload files. I am facing a problem during uploading image. 'Getting content length is not supported'. In console It is showing the error "http://46.101.98.121/MyApp/index.php?r=controller/upload&PHPSESSID=j7…KEN=077cb06478a3c70e40a2a01dc4cb1a94a6ff96ec&qqfile=518164-backgrounds.jpg". In php.ini 'upload_max_filesize' and 'post_max_size' both are 100MB. File is already uploaded to the destination folder but the uploading procedure fails each time. Please help.
I get an error while i try to include the js file which is in the same folder. I tried cleaning my project but was of no use.
The console says "error loading path".
Please help.
var db={}
Titanium.include('windows/gallery');
var displayButton= Ti.UI.createButton({
title:'Display',
onClick:function(){
db.gallery.open();
}
});
I have used open function which opens the file. The open file works has no problem.
usually, we use require('files/myFile'), where :
Resources/files/myFile.js is the path (note that require doesn't use the .js)
The js file is NOT at the same level that app.js, but included in Resource folder.
So here, you should do
Titanium.require('windows/gallery');
instead of
Titanium.include('windows/gallery');
By the way, the previous method was Titanium.include('windows/gallery.js');
Note the .js at the end of the include version.
Is it a mobile or desktop version ?
I'm trying to load "Ext.ux.CheckColumn" and using the following code:
Ext.Loader.setConfig({enabled: true});
Ext.Loader.setPath('Ext.ux', '../ux');
Ext.require(['Ext.ux.CheckColumn', '*']);
The Ext scripts are located at:
/Scripts/Library/Ext
The ux folder is at:
/Scripts/Library/Ext/ux
My script in which I'm using loader is located at:
/Scripts/MyApp/Module/jsFile.js
And my web page is located at:
/moudleFolder/mypage.aspx
I'm getting error: namespace is undefined
PS: I'm using Ext4 and I'm using the above code snippet outside of ready method
Note that all relative paths are relative to the current HTML document.(docs)
So, I believe in your case you should replace your path with:
Ext.Loader.setPath('Ext.ux', '../Scripts/Library/Ext/ux');