I have a quick question on the FancyBox plugin. I don't need help on code, I just need help understanding one thing.
I have been designing the website in NetBeans and every now and then I will use Chrome and refresh the page to see my progress. The site isn't online, and I am just checking via my laptop and Chrome.
I have videos that I want to open in an iframe class, but they don't seem to work. The demo file that came with the downloaded pack states "Will not run from your local computer, requires a server to run." Is this the reason why the youtube videos don't show? Do I need to actually get hosted to see if they work? Can I bypass this by getting the video files themselves and putting them in my root folder?
If you are ok with terminal/prompt you can cd into that folder and run this to get a simple server running which might help
In terminal:
python -m SimpleHTTPServer
Related
Forgive me if this is a silly question but I could really use advice on the direction to look at for a project I am working on.
I made a webserver that streams RTSP to a webpage using LAMP, php and mysql; and served a html template. This was done on a raspberry pi and it all works fine as is. Also done on an Ubuntu VM.
EXAMPLE I FOLLOWED: https://www.thewebblinders.in/programming/article/rtsp-streaming-on-a-web-browser-6069
The next part of my project was to add buttons to the html page, that when pressed send a universal protocol command. I found that I needed to do this using IPC (inter-process communication) however I'm not really sure how to implement this to what I have now.
At the moment my system works simply as a html webpage that is served from /var/www/html using npx http-server --cors (from the open source server environment NODE.js)
I'm not really sure how I could implement a python or javascript back end that communicates to something like electron.js (I tried the latter method but had no success).
Would it be a separate program that acts as a server that hosts the html page instead of Node.js? Would I still keep my templates and methods in the LAMP src directory (/var/www/html)?
Any advice on the possible direction I could look at would be a lot of help. I've not found much online that discusses IPC work on html templates served by node.js. The only html related topic I've seen relating to it is JavaScript with electron.js and that changes the way my webserver is ran.
Thanks for taking the time.
here is my link to the image
to host my project on fire base,i did everything perfectly with a public folder in the project folder and put all the files in public folder, did the steps according to the official tutorial video from fire-base hosting,i tried this for multiple projects,it did show'deployed' but am not getting the actual result ,what am getting is this message when i open the site.
Welcome
Firebase Hosting Setup Complete
You're seeing this because you've successfully setup Firebase Hosting. Now it's time to go build something extraordinary!
OPEN HOSTING DOCUMENTATION
i tried redoing the process by uninstalling and reinstalling to clear the fire base cache on my terminal but that does not work too.
here's the link to my image.
[1]: https://i.stack.imgur.com/DXjFQ.png
Both ".web.app" and ".firebaseapp.com" are valid domains for your hosted site. .web.app is relatively new. You can choose which one you want to use.
My live server on visual studio keeps opening an old html file when i try to open my current one. Ive tried reinstalling the extension but its the same problem. Can anyone help please
i cannot have two project folders with an html file running through the live server. Only one html file can be streamed at one time other wise when trying to stream the second, it will stream the first (Like the issue i was having)
I was having the same problem but later on I find out that, I renamed my project folder while my server was still loading the same project but with the previous folder name so I changed the link to my new folder folder name and it worked for me.
I have live server will simply not work if there was an error in JavaScript file.
Even if you do an alert in the beginning of JavaScript file (for test purposes) but at the end of the file re-define a variable which was already defined before, this error will render liver server not working.
The html page will not respond as well.
Solution is to go to developer tools (F12), see the errors on console, fix them and save and the live server would be back in action! At least that was the case with me.
I had the same issue, sometimes it was an error on the console, or keep showing an old HTML, tried everything, deleting cookies, reinstalling everything and nothing worked,
Eventually, it worked with a hard refresh, what it really worked was to
Go to ---> vs code settings ----> extensions ---> live server config set as chrome private. So far no more errors!
The liveserver extension serves static pages like html files and it does not load javascript or typescript files. You need to setup a server yourself for example in react you use webpack to configure your local server and your app runs on a localhost:port. In a nutshell, you need to write a script for node to run your js files. And you won't need liveserver after that.
Good morning dears,
I had installed the Prestashop Bitnami on localhost (with XAMPP) and all works good.
BUT!
I have a theme (elena, Velathemes) have good feedbacks, and it work very well on my live store (prestashop 1.6.1.4) and when i try to install the same one on the localhost prestashop (1.6.1.5 !!!) don't find any CSS or Js (Firebug error log show nothing strange, i attached a screenshot however).
I tried to update Prestashop, and it improved a little bit.. some CSS appear but the most ones no..
The back office works good, the deafult theme too.
I had install it with the .zip file on the BO
Someone have any idea where i mistake?
Thank you so much
You need to go on the BO and:
Disable caching (when designing is better)
Regenerate Thumbnails
Force the HTML compilation
You may have configured shop wrongly. In back office go to Preferences -> SEO& URLs and do the following changes and save the changes.
Shop Domain: localhost:8080
SSL Domain: localhost:8080
Base URI: /preshtashop/
Then clear your cache and look again.
You have cached all.css file on your screenshot. Please refresh the cache by "Advanced parameters->Performance->Clear cache"
Then please check paths of your js scripts, css files in modules, theme files. If no links in result html please check paths and real css and js locations.
Seems obvious to recreate a site -- just copy the files over and it should work. But it doesn't for me. I've tried copying down all the scripts, images, and .html files but it doesn't seem to be displaying anything. All the paths are right btw, and still all black.
This is the website.
Advice?
try to run it for local web server like apache
if you are using windows try use wamp server
Please Checkout this link for how to run three.js on local machine
https://github.com/mrdoob/three.js/wiki/How-to-run-things-locally