Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 5 years ago.
Improve this question
I am trying to create full calendar in web application. But the calendar doesn't display in browser. I don't know what should i do?
I follow the code in https://fullcalendar.io/docs/usage/ and i tray to test it in http://jsfiddle.net and it work.However, When i test the web app, it doesn't give any error only empty whit page in both chrome and explorer .
hope you know the reason.
See the example code and results from snippet below. The possible reason you did not get it could be the external library was not included.
$(document).ready(function() {
// page is now ready, initialize the calendar...
$('#calendar').fullCalendar({
// put your options and callbacks here
})
});
<link rel='stylesheet' href='https://cdnjs.cloudflare.com/ajax/libs/fullcalendar/3.8.0/fullcalendar.min.css' />
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script src='https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.20.1/moment.min.js'></script>
<script src='https://cdnjs.cloudflare.com/ajax/libs/fullcalendar/3.8.0/fullcalendar.min.js'></script>
<div id='calendar'></div>
Related
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 4 months ago.
This post was edited and submitted for review 4 months ago and failed to reopen the post:
Original close reason(s) were not resolved
Improve this question
I'm new to web development.
I made a website using HTML, CSS, and JavaScript and uploaded it to GitHub Pages. My JavaScript doesn't work there.
When running on my localhost, everything works fine, but on GitHub pages the javascript simply does not show up on my HTML page. If you check the IMPORTANTE_LER.md file, there's a youtube video on how it looks on localhost.
My repo: https://github.com/maruan-achkar/N2PAC_NEW
Console errors:
Probably the way you included your JS file path breaks in Github Pages because it can't find the file so adding a "./something.js" to your include might fix it.
<script src="./something.js" type="module"></script>
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 2 years ago.
Improve this question
Hello fellow coders I have a website I'm making for a friend and I when I made it and opened it from the html file it looks perfectly normal. When I uploaded it to his web server the footer became white and the sites listed were vertical instead of horizontal.
Here is what I have tried:
Going on Microsoft edge worked but I use chrome and chrome doesn't show it like that!
Uploading it again.
Here is the code and html errors on website:
http://www.mediafire.com/file/kp9iihyjv120oi8/WEBSTIE.zip/file
Here is what the website looks like on the domain
Here is what it looks like when I open the html file
Thank you!
This is very simple, instead of download bootstrap files just add two lines.
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.3/css/bootstrap.min.css" integrity="sha384-TX8t27EcRE3e/ihU7zmQxVncDAy5uIKz4rEkgIXeMed4M0jlfIDPvg6uqKI2xXr2" crossorigin="anonymous">
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.3/js/bootstrap.bundle.min.js" integrity="sha384-ho+j7jyWK8fNQe+A12Hb8AhRq26LrZ/JpcUGGOn+Y7RsweNrtN/tE3MoK7ZeZDyx" crossorigin="anonymous"></script>
this is the link to more options
https://getbootstrap.com/docs/4.5/getting-started/download/
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 6 years ago.
Improve this question
I've been doing a lot of FreeCodeCamp and CodeCademy courses recently and finally decided to try to create my own webpage. I'm wondering why my code isn't working? Did I not src jQuery correctly? The Code[1]
Put https:// before code.jquery.com in your <script> tag. Like this: <script src="https://code.jquery.com/jquery-3.1.1.js"></script>
As the other answer said, put https:// in front of your src in the script-call - or just use // which will work regardless of specific protocol.
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 8 years ago.
Improve this question
I am writing php code to track the visitors details who is visiting that web page.
Now i want to write a javascript code on the pages i want to track.
The javascript code will be using that php file code which i am writing to track visitors.
Can somebody please guide what should be my javascript code.
If the PHP code is on same page then you can do something like this:
<script>
var code = '<?php echo $server_code;?>';
</script>
If it's on another page, then you can fetch it using an Ajax request.
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 8 years ago.
Improve this question
$(document).on('click', 'div.item_2', function(){
alert('buy');
});
the item exists on the page, anyway this should work no matter if the element exist or not, its a delegated click, but I can't understand why it not work on my:
<div class="item_2">
</div>
there are no event removers, where I should look to find a bug? cause I don't see any reason that it should not work...
A div that is not visible will not fire the click. See this question.
Are you sure you've included jQuery in the <head>?
Are you running on your local filesystem? If you copy and paste from jQuery from google:
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
It won't work on your local file system. You'll need to add http: to the url:
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>