Help please

Status
Not open for further replies.

mydevora

New Member
Messages
6
Reaction score
0
Points
1
Hello, I am new to coding and I am trying to upload my files in order to do some college work, however I am having trouble with the website at the moment.

I uploaded all my files, and all I see is this:

upload_2015-3-4_16-34-32.png

excuse me if this is a silly mistake, like I said, I am new to it all.
 

caftpx10

Well-Known Member
Messages
1,534
Reaction score
114
Points
63
Rename 'Index.html' to 'index.html'. Linux (the operating system type that is being used on the web server) is case-sensitive.
 

mydevora

New Member
Messages
6
Reaction score
0
Points
1
Ah thank you so much, the only problem I have now is that some of my images aren't showing up but I'm sure its not too hard to solve. Thanks for you help :)
 

caftpx10

Well-Known Member
Messages
1,534
Reaction score
114
Points
63
It looks like your IMG sources are incorrect. You will have to make them all lower case (like 'dollar.png' rather than 'Dollar.PNG') to make sure it matches the exact naming and case.
Also, it seems that you're missing a few images such as 'pound.png' and a CSS file. You may want to reupload them.
 
Last edited:

mydevora

New Member
Messages
6
Reaction score
0
Points
1
Yeah I am in the process of doing that at the moment, thanks so much for helping me by the way I appreciate it a lot.
 

mydevora

New Member
Messages
6
Reaction score
0
Points
1
I've changed them all to lowercase and added pound.jpg, in addition to changes some of the paths in my HTML, yet some images don't display, any thoughts why?
 

caftpx10

Well-Known Member
Messages
1,534
Reaction score
114
Points
63
You need to change the file extensions to lower case, like .PNG to .png, in the actual HTML.
EDIT:
Here's something useful you may want to follow.
BywLqka.png
 

mydevora

New Member
Messages
6
Reaction score
0
Points
1
Ah ok, well it seems there is a small delay in the upload, so I might as well ask you about my last problem - we were asked to put in a popup box at the page load, however my teacher didn't actually teach us how to do that he just gave us the code. My code (technically his) doesn't work for this, sorry to be a pain but do you know why?

I can provide you with the code he gave us originally if you would like by the way.

Thanks :)
 

essellar

Community Advocate
Community Support
Messages
3,295
Reaction score
227
Points
63
You've already downloaded jQuery above the pop-up, so there's no need to download that again. You are missing the actual code that flips the display property of the overlay/pop-up, and there is a pretty good chance that the pop-up box HTML is supposed to be living inside of the overlay div.

A BIG note here: the code for the document type should be:
HTML:
<!DOCTYPE html>
Note that there is a space, not a period. That one line of code tells the browser which of the various HTML dialects the rest of the page is using (there have been many over the years, all subtly different), and what rules it should use to interpret and display your HTML and CSS. As was (almost) pointed out above, the browser is interpreting your existing doctype declaration as a "foreign" element (an undeclared SGML element entity), so it's being ignored. That probably means your page will be interpreted as HTML 4.01 Transitional, where you want it interpreted as HTML 5.
 

caftpx10

Well-Known Member
Messages
1,534
Reaction score
114
Points
63
Not sure if it would be cheating, but okay. Lol.
Probably best if you provide the code you've currently got as I'm not sure how this popup has to be done.
If it's going to be a "forever" popup (like where it appears on every page load) then you can use .remove() from JQuery(?). As for the popup, I would assume that this would use CSS to be fixed slap-bang in the middle, with a close button that'll execute the JavaScript function that'll remove the whole popup DIV itself.

EDIT:
Here's an example, it should give you an idea of how it would work. http://jsbin.com/meturajowa/1/
I'm not the best when it comes to JavaScript as of now. :p
 
Last edited:

mydevora

New Member
Messages
6
Reaction score
0
Points
1
it would only be once, and I've actually managed to get it working, after a lot of trial and error. Thanks a lot for the replies anyway :)
 

Sharky

Community Paragon
Community Support
Messages
4,399
Reaction score
94
Points
48
Just to add that you don't HAVE to use lower case for everything - the only thing to remember is that if you call a file myFirstWebPage.html, you have to remember that the system distinguishes between upper and lowercase, it is 'technically' 'correct': although M and m are the same letter as you or I would read it, it is a different character code. Therefore, these are all technically different:
- myFirstWebPage.html
- myfirstwebpage.html
- MYFIRSTWEBPAGE.HTML
- myFirstWebPage.HTML

I could go on but I'm sure you get the general idea.
 

caftpx10

Well-Known Member
Messages
1,534
Reaction score
114
Points
63
Just to add that you don't HAVE to use lower case for everything - the only thing to remember is that if you call a file myFirstWebPage.html, you have to remember that the system distinguishes between upper and lowercase, it is 'technically' 'correct': although M and m are the same letter as you or I would read it, it is a different character code. Therefore, these are all technically different:
- myFirstWebPage.html
- myfirstwebpage.html
- MYFIRSTWEBPAGE.HTML
- myFirstWebPage.HTML

I could go on but I'm sure you get the general idea.
I had a feeling that didn't sound right. What I mean't was that the provided path should match the exact same case.
 
Status
Not open for further replies.
Top