how to show stencil JS build on html without localhost? - html

How to show stencil JS build on html without localhost ?
It is running on local server but I want only running the html file.
enter image description here

I am guessing you may have tried using the files directly from your local machine. This wont work because it will be blocked by CORS issue. Stencil has a lot of requests to load files to your browser when you use the webcomponet.
Possible Solution.
If all scripts can be bundled in to a single javascript file then it will be possible to use this without hosting.

Related

Need to run .exe game file inside web page

I have a .exe game in a folder (it's running without setup) and need to upload it to my hosting so it can view and run it inside my website WordPress page, is it possible?
No, it would be very stupid and unsafe to give browsers the control to run any binary executable via any webpage

Hosting basic html site on iis

I have a basic web site (just html, js and css files) that I want to host on IIS on my local machine for testing purposes. The site runs fine when I run it directly as a file on my computer. I added a website on IIS, using the directory these files are located in, but when I try to launch it, I get an error page that says:
An error occurred loading a configuration file: Failed to start monitoring changes to '[my site path]' because access is denied.
It then says that the source file is a web.config. I know that ASP.NET sites use a web.config, but I don't even have one, and I just want to run a basic site using html, css, and javascript.
Any ideas on what the fix might be? I made sure I have an application pool for the site.
You likely put it into your user profile -- ie c:\users\skitterm\ -- which won't let the process running IIS read the folder. You are better off using IIS' built in directory structure in c:\inetpub and adding a folder for your site.
As you can tell this is a server misconfiguration. It would help to know the version of your IIS.
You can follow the steps on Microsoft's official knowledgebase to resolve the issue:
http://support.microsoft.com/kb/316721
http://support.microsoft.com/kb/317955 (for IIS v6.0, try Method 3)
I worked in IIS about a year ago and such errors are caused by misconfigured Security settings in IIS.
Sounds like you need to set up the proper access rights for the folder to the account specified by the application pool identity.
First make sure that your folder is not anywhere under your \users\, \program files\, or any other place that already has restricted access. Put it under a folder on the root (\inetpub is a good place).
Then, add the appropriate permissions (usually read only) for the folder to allow the user account specified by the app pool identity to access it. If the app pool identity is set to ApplicationPoolIdentity, adding the IIS_IUSRS local group should do it. Otherwise, use the account that is specified.
This should fix the problem.

Accessing a file on my domain relative to port

I am running a node server on port 3000. I have a css file stored just on http://mydomain.com/style.cssbut since every page right now is http://mydomain.com:3000/randompage.html How can I access the style.css file? I can get http://mydomain.com:3000/styles.css from the page I am working on, but that doesn't exist.
What is the best way to deal with this situation? I suppose it applies to any files I need to access.
I don't know a simple solution using a relative URL or some HTML magic in the page.
The usual solution is to install a module in Apache or a function in node.js which will redirect some requests to the other server so that for your HTML, everything seems to be coming from a single source.
This document should get your started when using Apache: Using mod_rewrite for Proxying

Could we directly copy image to MediaWiki images folder?

I am running a local host web-server for MediaWiki (XAMPP).
Typically, an upload special page is used to upload images. These images are stored in the WIKI_HOME/images folder and some records are inserted in the database.
I use this wiki on a local machine and for myself only. I need the speed so I tried to copy an image to WIKI_HOME/images instead of uploading it using the upload extensions. But it does not show up in the wiki. Is there any way to do it?
You can bulk upload images from the local server using the UploadLocal extension or the importImages.php script. You could set up importImages.php to run on a regular basis to import any images in a specific folder.

Configure flex sandbox for server local files

I developed a flex application that loads images from the fileSystem. You just specify the path to the image, then the app brings some data from local webservices, and then flex loads the image and shows them to the user in an specific way.
I tested it by running the application from FlashBuilder as a WebApplication... so far no problems at all. However when loading the swf from a webpage, on a deployment environment (I.E: JBoss as the web application server) it doesn't loads anything...
My guess is that since now the swf is on the web server context, it can't load files from the local filesystem (I.E: /Users/username/files/myFile.jpg)... is this correct?? If it is... then what should I do in order to load the files correctly?? Or should I upload the files on the server first and then set the file path to an URL pointing to my web server resources?
Thanks a lot.
Flex is able to interact with the users file system without the need for httpservice middle ware. Meaning, I go to your your webpage with your flex app, I am able to load images from my filesystem to view in the app. However, if you want to the user to view images from the server that hosts the swf then you will need httpservice calls to a php, jsp, perl scripts or the like to get the data from your server.