Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 05-13-2012, 09:57 PM   PM User | #1
KJoe
New Coder

 
Join Date: May 2012
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
KJoe is an unknown quantity at this point
BG image doesn't display in files is live

I have used an excellent HTML5 template which uses JS to display background images. However while this works locally it doesn't when published. The site structure is sound and I notice this happens with the source files I downloaded also so it's nothing I have done in my build which could have caused this.

This is the link to my site, everything is fine except the background image not showing.

http://www.khawkinsdesign.com

Any ideas, as I say fine locally, not fine when published?
KJoe is offline   Reply With Quote
Old 05-13-2012, 10:21 PM   PM User | #2
Excavator
Master Coder


 
Excavator's Avatar
 
Join Date: Dec 2006
Location: Alaska
Posts: 9,410
Thanks: 22
Thanked 1,765 Times in 1,749 Posts
Excavator has a spectacular aura aboutExcavator has a spectacular aura aboutExcavator has a spectacular aura about
Hello KJoe,
This is probably a path issue since I can see twilight.jpg when I use an absolute path. It does not work from your js as a relative path though.

Try this - { "image" : "../img/bg/twilight.jpg", "color" : "#a9a9a7" },

or just this { "image" : "/img/bg/twilight.jpg", "color" : "#a9a9a7" },

or an absolute path. That would at least verify the js is going to load the image at all - { "image" : "http://www.khawkinsdesign.com/img/bg/twilight.jpg", "color" : "#a9a9a7" },

See absolute/relative paths here.
__________________
Validate often DURING development - Use it like a splelchecker | Debug during Development |Write it for FireFox, ignore IE
Use the right DocType | Validate your markup | Validate your CSS | Why validating is good | Why tables are bad
Excavator is offline   Reply With Quote
Old 05-14-2012, 01:45 PM   PM User | #3
KJoe
New Coder

 
Join Date: May 2012
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
KJoe is an unknown quantity at this point
I haved checked the path, altered it to your suggestions but still this doesn't work. Would it be a js issue? As I say it works locally fine just not live...
KJoe is offline   Reply With Quote
Old 05-14-2012, 02:16 PM   PM User | #4
_Aerospace_Eng_
Supreme Master coder!


 
_Aerospace_Eng_'s Avatar
 
Join Date: Dec 2004
Location: In a place far, far away...
Posts: 19,293
Thanks: 2
Thanked 1,044 Times in 1,020 Posts
_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light
Looks like your prettyphoto javascript and CSS files are returning 403 forbidden to the browser. Did you upload those files? Or do you have some kind of htaccess preventing access to those files?
__________________
||||If you are getting paid to do a job, don't ask for help on it!||||
_Aerospace_Eng_ is offline   Reply With Quote
Old 05-14-2012, 02:19 PM   PM User | #5
DJCMBear
Senior Coder

 
DJCMBear's Avatar
 
Join Date: Mar 2010
Location: United Kindom
Posts: 1,173
Thanks: 14
Thanked 136 Times in 136 Posts
DJCMBear is on a distinguished road
The OP has posted this in the Javascript forum also where I have also told the OP what the issue with the files are, due to them not even existing in the file/folder tree.
__________________
Official BinPress hand picked coder.
For anyone worried about SQL injection go have a look at my small yet powerful script here.
Go Pledge for Light Table, if it hit's $300,000 Python and other languages will get added.
I am 1 of 65,608 people to get a Pebble Watch :P
DJCMBear is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 05:00 AM.


Advertisement
Log in to turn off these ads.