Calling file with javascript
-
Hello, I’m having a bit of an issue, I made a calendar in php, the way I have it to work is that I made 3 javascript functions and the php page automatically puts the right calls for said functions on the right place and the calendar works.
However when I try and do this in wordpress it just seems more complicated then it should be, like javascript needs to be registered in particular ways and so on, I’m really lost this is the function I have for the calendar going forward 1 month
function forward() { $.get("date.php", { month: count } , function(data){ $("div#Calendar_wrap").html(data); }); count = count + 1; back = count - 2; }
what it pretty much does is sends out a call on the php file with a month value and the php file’s output gets placed in the Calendar_wrap div, how would it be possible to do that in wordpress?
I’ve seen loads of tutorials online but most of them are about different things it’s kinda wierdThanks.
- The topic ‘Calling file with javascript’ is closed to new replies.