Skip to content

Tag: jquery

Outputting JSON from Curl APi call to Ajax

I am working on a course project in which I am required to use php to make api calls. The Ajax call looks like this: The php api call looks like this: This works perfectly. I have used the same routine to make similar calls go the geonames API and had no issues doing so as they provide the name

Sync two scrolls with different sizes

I have been trying to sync two different divs with different sizes. As you can see in this jsfiddle I’m almost there. But while move the bigger horizontal scroll the inner one doesn’t finish at its final scroll end. I want both to be synchronized, start and finish in their own sizes. I have tried …

How to call variabled ajax

I put the ajax call in a variable, how can I call it again and pass some parameters to the data attribute of the ajax?. now I have a date range picker, If i click apply button i just want to call the request variable to be able to trigger the ajax call again and pass some parameters. TIA Answer