jquery-ajax

Send some parameters to the same page using jquery.ajax

hi folks I use jquery and it gives me error : "Microsoft JScript runtime error: 'url' is null or not an object" when I use "$.ajax(window.location.href");" inside window.location.href is like this : "http://localaddress/mypage.aspx?id=2" How I can solve it ? ...

get data from web service by jquery

here is my web service : public class Header : System.Web.Services.WebService { public Header () {} [WebMethod] public string GetArchive(string PageID) { StringBuilder sb = new StringBuilder(); BusinessRules.News news = new BusinessRules.News(); BusinessObject.NewsItemList newsList = n...

jQuery .get error response function?

Thanks to StackOverflow, I managed to get the following code working perfectly, but I have a follow up question. $.get('http://example.com/page/2/', function(data){ $(data).find('#reviews .card').appendTo('#reviews'); }); This code above enabled my site to fetch a second page of articles with a Load More button in WordPress. Howeve...

Is there a way to show two images simultaneously with a Javascript image gallery?

I'm trying to create a comic book reader using javascript where the content of the gallery is dynamically generated from the images in a given directory (directory is chosen with a bit of php). I want to display two pages(images) at a time so the comic is read like it would be in a book format. Users are then able to navigate two pages a...