Issue with the datepicker's previous and next buttons not displaying images correctly

I'm currently working with a simple datepicker, but I'm encountering an issue where the previous and next button images are not being displayed.

https://jqueryui.com/datepicker/

Everything works fine when using the following link:

<link rel="stylesheet" href="//code.jquery.com/ui/1.11.4/themes/smoothness/jquery-ui.css">

However, once I copy jquery-ui.css to my local directory, the images fail to display, as shown below:

<link rel="stylesheet" href="css/datatable/jquery-ui.css" />

The browser console shows the following errors:

"NetworkError: 404 Not Found - http://localhost:8080/TestProject/css/datatable/images/ui-bg_flat_75_ffffff_40x100.png"
"NetworkError: 404 Not Found - http://localhost:8080/TestProject/css/datatable/images/ui-bg_highlight-soft_75_cccccc_1x100.png"
"NetworkError: 404 Not Found - http://localhost:8080/TestProject/css/datatable/images/ui-icons_222222_256x240.png"
"NetworkError: 404 Not Found - http://localhost:8080/TestProject/css/datatable/images/ui-bg_glass_75_dadada_1x400.png"
"NetworkError: 404 Not Found - http://localhost:8080/TestProject/css/datatable/images/ui-icons_454545_256x240.png"

The error is simply due to the fact that these images cannot be found. I am unsure of how to resolve this issue while still keeping jquery-ui.css in my local directory.

Thank you in advance.

Answer №1

Make sure to create a new folder called "images" on your personal computer:

TestProject/css/datatable/images/

Proceed to either download or saveAs from the provided link to the above location using the same name and verify:

http://code.jquery.com/ui/1.11.4/themes/smoothness/images/ui-bg_flat_75_ffffff_40x100.png
http://code.jquery.com/ui/1.11.4/themes/smoothness/images/ui-bg_highlight-soft_75_cccccc_1x100.png
http://code.jquery.com/ui/1.11.4/themes/smoothness/images/ui-icons_222222_256x240.png
http://code.jquery.com/ui/1.11.4/themes/smoothness/images/ui-bg_glass_75_dadada_1x400.png
http://code.jquery.com/ui/1.11.4/themes/smoothness/images/ui-icons_454545_256x240.png

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

Is there a way to use flexbox to decrease the size of images?

Struggling to make my code mobile-friendly. The PC version looks good, but on mobile, the bio stretches and text goes off the page. I can't seem to get the picture to shrink when viewed on a mobile device, or have the content neatly boxed alongside it ...

iPhone navigation glitch caused by jQuery and CSS

I have implemented a navigation that slides out from the right-hand side of my website when the menu button is clicked. However, there seems to be an issue with the transition on the navigation not working properly on iPhones. Here's how I've set ...

Close button situated at the top-right corner overlapped by HTML/CSS styling

Currently attempting to position a button overlapping and extending outside of its parent div, much like the illustration provided. However, my current efforts result in the button being contained within the parent DIV. The visual reference below showcases ...

When scrolling, the fixed menu bar at the top of the page is making the content below jump

I am attempting to create a fixed submenu that sticks to the top of the page when scrolling, but I am encountering some issues. The current code I have is as follows: $(window).scroll(function () { if ($(window).scrollTop() > 175) { $('#loca ...

Update the stationary background image on select div elements

Currently working on a "our story" section where the divs move up and change the background image when they reach the center of the screen. I am aiming for a fixed background image that transitions smoothly when the div is in the middle. The relationship b ...

First, the image is reduced by width until it reaches its maximum width, then the height is adjusted proportion

I have an image with the dimensions of 1200 x 200px. In the center of this image, there is a space measuring 500 x 200px which represents the main content of the entire image. Flanking this main content are additional contents on each side. It is important ...

The navigation bar alignment to the right is malfunctioning

I'm puzzled as to why the navbar-right class is not properly closing out the two navigation bar elements on the right. Despite adding the correct code, it doesn't seem to be working as expected. <nav class="navbar fixed-top navbar-toggleable- ...

Divided Progress Indicators in Bootstrap 3

Looking to enhance user experience on my webpage by creating a progress bar for data entry. The goal is for users to enter 10 items before proceeding. The challenge I'm facing is developing a progress bar that accurately reflects the number of items ...

Vertical CSS accordion that flips when hovered within an unordered list

TASK - Flip accordion title divs vertically when hovered over. - Ensure frontface and backface display the same text and color, but with different background colors. ISSUE - I have successfully implemented a horizontal flip effect, but I am struggli ...

Float over a specific line in a drawing

I am looking to develop a unique rating system using css, html, and potentially js : https://i.sstatic.net/pQP79.png My goal is for the user to hover over a specific section of a circular stroke and have it fill with a particular color, all while maintai ...

Unable to alter the background color of the text box

I am currently struggling with my code where I am trying to overlay a text box on an image. Even after setting the background color to white, it still shows up as transparent. I have successfully done this in the past, but for some reason, it is not work ...

Adjust focus dynamically on pressing enter in an HTML form

I am currently working on adjusting the functionality of my HTML input form to change focus upon pressing the enter key. I need to trigger the saveValue() function from the input field when the enter key is pressed and then move the focus to the next input ...

Responsive HTML table with full width of 100%

I am attempting to make an HTML table responsive by setting the two td elements to occupy 100% width on smaller screens. This is what I have so far... .test1{ background:teal; text-align:center; padding:20px; } .test2 { background:tan; paddin ...

Animating SVG from upper left corner to lower right corner

I am looking to create an animation on this SVG that starts from the top left and ends at the bottom right, similar to a gif. You can view the example I want to replicate in the following link: body { background: black } path { fill: white; } /* ...

Fixing the Overflow Property in CSS

I just started learning about css, and I've encountered a problem with the code for the overflow property: div.hidden { background-color: #00FF00; width: 1000px; height: 1000px; overflow: hide; } ...

Attempting to implement CSS styles tailored specifically for a webpage that is dynamically loaded using AJAX

I'm experimenting with loading CSS for AJAX pages so that the styles are contained within each individual page instead of one large CSS file. My current approach is something like the following: $("#content").load(pageid+".html #content > *", func ...

The left-floated image extends beyond the boundaries of the div

I have a situation where text and an image are combined but the cat image goes outside of the parent div. Is there a solution to this issue? View the code here <div style="border:1px solid #CCCCCC"> <img style="float: left;" src="http://plac ...

A different way to add a child element in JavaScript without using

Is there a way to insert a node as a child element at position 0, replacing any existing child nodes rather than appending? What function can I use to ensure cross-browser compatibility for this operation? ...

What is the best way to add spacing between items in an unordered list using HTML and CSS?

I have put together a list that I want to display with lines in between each word... here's the progress so far: #header { position: absolute; width: 100%; } #navbar { position: relative; padding-top: 0.8em; padding-left: 31em; } ul { l ...

Why does my icon container persistently remain visible, rather than appearing only upon hovering?

Below is the code snippet I'm currently working with: .page-section { border: 4px solid rgba(0,0,0, 0); padding: 10px; box-sizing: border-box; transition: border 1s ease-out; } .page-section:hover { border: 4px solid #000000; ...