I am attempting to build a basic microsite and using JavaScript found here
https://github.com/bgrins/TinyColor on my website.
Everything works fine when I am working locally, however the script doesn't work when I upload it.
Can anyone help?
FILE permissions required
Needs file permissions for tinycolor.js. go to hosting server and provide full permissions
try 1: provide read permissions for tinycolor.js and upload it to your server
try 2: give full permissions to one folder and place your file in that folder on server and change the url in html page
Related
enter image description hereThis is my first post here and i'm looking for getting some help.
I have recently taken courses in HTML/CSS/JavaScript and I feel pretty comfortable in that. Now i'm getting into PHP, and noticed that i need a localhost. I downloaded MAMP, added my website files to the htdocs but I cannot find my index.html in the localhost.
This is what I put in the browser: localhost/htdocs/web-development/Portfolio/index.html
What i'm trying to do is to preview my website and try my registration form which is done with html/css/javascript and php/phpmyadmin.
Even though I can understand and code HTML/CSS/JavaScript and still fairly new to programming so let me know if I explained it a bit messy.
I'm using Atom for coding.
Lukas
The default configuration for MAMP uses ports 8888 and 8889, and 7888, you can see the default port in controle panel under ports
http://localhost:{port number}/{project folder}/index.html -> ( if write php file this could be index.php)
htdocs represents web root that you no need to use in url
Based on your image, your index.html file is in your forms folder, so you have two options:
Move your index.html into your portfolio file and have the server automatically serve it when the address localhost/htdocs/web-development/Portfolio is requested.
Change your URL route to localhost/htdocs/web-development/iPortfolio/forms/index.html
The first would be more in keeping with standards - the server will search for an index.html/php file in the route of a website, which is why people generally use this file for their homepage, as noted here Why do people name their files index.html?
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.
I need some help. I am working on the web page based on prestashop.
I've done everything on the local server on my machine.
Everything worked correctly. I decided to public the page so I move to the server.
When I open the page with chrome or other browser It looks very bad.
I checked the console and I've got some errors like this:
boston-armatura.pl/:26
GET http://boston-armatura.pl/new/themes/boston/assets/css/mystyle.css
boston-armatura.pl/:28
GET http://boston-armatura.pl/new/themes/boston//assets/css/theme.css
There is quite a long list.
I tried to change privileges.
I am also sure that the path is correct.
what might be the problem?
The server is not allowing you to access those files maybe due to some configuration you might have made on your .htaccess(webconfig) file.
And that's why it is giving a 403 error.
If there are errors, edit your .htaccess file which this:
Options -Indexes
This will deny access to just the directories and no js, css and any other files.
I tried uploading my website to the free 000webhosting service. My website loads fine locally, but when uploading it through FileZilla and reloading the page I get an error that says "The jQuery library must be included before the smoothscroll.js file. The plugin will not work properly."
I have a smooth scrolling javascript file and some jquery in my code that I got from somebody else. Does anybody have any idea why my website loads fine locally, but the smooth scrolling doesn't load when uploading my site to a host? And yes, the jquery is before the javascript.
Try to check for your problem:
The files don't exist on the server at all at that path
You moved the files but didn't change the path in index.html
You changed the path in index.html but didn't move the files there
Try checking the files of the particular plugin on the hosting server.
There must be some files that are missing or not uploaded completely.
I'm uploading a JavaScript file that a freelancer that I hired sends me and when I access this file directly over the url, everything seems fine.
But now when I add one line of code to this file and upload it again, sometimes the changes are not displayed even when I access it again over the url or the line of code that I added is displayed but some lines of code are missing at the end.
I checked the file that I uploaded several times over different ftp clients and the file is exactly the file that I upload ofc.
The file is part of a Wordpress plugin, I'm running on a Nginx Server, I don't have any kind of caching plugin.
What is going on ?