Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

jquery datetimepicker gives 404 not found (.png files) error

I'am using this datetimepicker on my website. My html file includes .js and .css files ;

<link rel="stylesheet" type="text/css" href="asts/css/style.css">           
<script type="text/javascript" src="asts/js/modernizr.2.0.6.js"></script>
<script type="text/javascript" src="asts/js/jquery_1.7.1.js" ></script>
<script type="text/javascript" src="asts/js/jquery-ui-1.8.17.custom.min.js" ></script>  
<script type="text/javascript" src="asts/js/jquery-ui-timepicker-addon.js" ></script>
<script type="text/javascript" src="asts/js/jquery.ui.slider.js" ></script> 
<script type="text/javascript" src="asts/js/gonnasphere.js" ></script>

Also, I've imported the css files of custom minified package and datetime-picker-addon by @import url statement. I've also included the css/images folder with necessary icons.

When I click the text field, the jquery ui plugin works correctly. All the functions and ui works. However, firebug gives me the following network errors ;

  • NetworkError: 404 Not Found - http://subdomain.domain.com/asts/css/images/ui-bg_highlight-soft_100_eeeeee_1x100.png
  • NetworkError: 404 Not Found - http://subdomain.domain.com/asts/css/images/ui-bg_gloss-wave_35_f6a828_500x100.png
  • NetworkError: 404 Not Found - http://subdomain.domain.com/asts/css/images/ui-bg_glass_100_f6f6f6_1x400.png
  • NetworkError: 404 Not Found - http://subdomain.domain.com/asts/css/images/ui-bg_highlight-soft_75_ffe45c_1x100.png

Can you please help me to prevent getting this error ?

like image 280
aacanakin Avatar asked Feb 18 '12 13:02

aacanakin


1 Answers

I've figured out the problem. It was a folder fault. When I changed the file paths of .png files in the jquery-ui-1.8.17.custom.css file, it doesn't show any error.

Before I changed, it was ;

url(images/ui-bg_inset-soft_50_c9c9c9_1x100.png)

After ;

url(../images/ui-bg_inset-soft_50_c9c9c9_1x100.png)
like image 118
aacanakin Avatar answered Sep 21 '22 18:09

aacanakin