ajax

YUI 3: Setting request headers with DataSource.IO

I need to retrieve a JSON resource which requires HTTP Basic authentication. Therefore, I need to set a request header for a DataSource.IO object. I see that the IO utility itself supports a header key in its configuration object. However, since I'm new to YUI, I can't figure out how to set this configuration value through the mediation...

JQuery's getJSON() not setting Accept header correctly?

It looks like people have had issues with Accept headers in the past, but I'm not sure my issue is related. Using jQuery 1.4.2, I'm having trouble getting JSON with getJSON(). I can watch the request / response in Firebug and it looks like the source of the problem is that the resource in question returns different results depending on...

responseXML always null

Im using firefox 3.6.10, and firebug to debug So, here is my code: var xmlhttp = new XMLHttpRequest(); xmlhttp.open("GET", url,false); xmlhttp.setRequestHeader('Content-Type', 'text/xml'); xmlhttp.send(null); alert(xmlhttp.responseXML); responseXML is always null, and i've tried it on several URLs from different domains. I have also...

Moving to a New Stack - AJAX, REST & NoSQL

All, I'm beginning to explore what frameworks (open source) and tools for building web applications. What should I select and learn for the following layers, Layer 1 Client side JavaScript / AJAX library or framework that will invoke REST style services provided by layer- 2 Layer 2 Provides a framework to rapidly create REST style serv...

Scan xml for links using ajax, apply links to another ajax call to scrape page and return data.

So, I've tried to look around before posting, but I can't seem to find an answer. My dilemma: I have an XML file that houses url links to various pages(all similar, diff products). By using jQuery and AJAX, I am able to pull the links from the XML file. I then want to be able to pass those links, in order, to another AJAX call that w...

jquery submit vs javascript event

I have a button that calls a javascript function after an onclick event is called. This function validates my entries, and then creates an ajax object to populate my table of information. Everything seems to work fine, except when I add this code: echo "$(document).ready(function() { $(\"#newDate\").submit( function() { Valid...

jQuery: How to make an AJAX request and continue without waiting for request to complete?

I want to make an AJAX request "in the background" of my JavasSript function, but my script waits for the AJAX request to complete before it continues to execute my code. $('div').hide(); $.get('/controller/action', { id: 'abc123' }, function(data){ //request completed //now update the div with the new data ...

Ajax success, how to refresh response every minute

Hi, I am really confused by this few lines of code that should work in my opinion. Div is updating when using .html, but not when using custom script. I have a couple files, index.php and test.php index contains: $(document).ready(function () { setInterval(function () { $(function () { $.ajax({ ...

Is there a way to prevent jqGrid from autoloading?

I am using jqGrid and I don't want the grid to autoload. I only want the grid to load once a user enters filter criteria. Any advice? ...

jQuery elements inside a jQuery dialog stop working after ajax call

Hello all, <div id="divItems"><div id="divItemsContent"></div></div> I think i know what the problem is, just don't know how to solve it. Here is the code: function SplitOrder() { var SplitTable = $.ajax({ url: 'AjaxActions/SplitTable.aspx?FromObjectID=' + $('#hidObjectID').val() + '&ToObjectID=' + ObjectID[1], as...

jCarousel infinity ajax load (browser compatibility?)

Dear all, I tried to use jCarousel to create a sort of image display gallery, it will first load a few images and then load some more dynamically when clicking "next" or "prev". Everything work fine in clicking "next" but it acting weird when loading ajax in clicking "prev" in working in chrome and IE 8. I suspect the problem would be ...

jQuery ajaxSuccess and ajaxError behavior

Hi, The global events ajaxSuccess and ajaxError are not working properly for me. I disconnected my Internet connection and ajaxSuccess handler executes with xhr.status=0, and ajaxError is not executing at all. I need you to confirm if this is bug or am I doing something wrong? Thanks! ...

jQuery Ajax Accessing json

I have been trying to access certain part of the json response, however I am unable to do so. json = '{ "now": "2010-09-23 22:06:53 EST", "data":[ {"id":"1","year":"2010","month":"09","day":"23","hours":"08","minutes":"09","seconds":"25"},{"id":"8","year":"2010","month":"09","day":"23","hours":"08","minutes":"09","seconds":"18"}, ...

jquery GET request not working in IE and FF

Right now I have this GET request which works in Chrome but not in IE or FF. var dire = $(this).attr('dir'); if(dire == "ASC"){ var dp = "DESC"; } else if(dire == "DESC"){ var dp = "ASC"; } else{ var dp = "NA"; } $(this).attr('dir',dp); var col = $(this).attr('col'); $('#entries').fadeO...

how to automatically click a href?

i got videos list using AJAX, and me want to play a top video an a light box? so after viewing list how it is possible to play video automaticaly? ...

Dynamic feed using Jquery and Ajax

Hello guys, I have a newbie question... Look at the Recent Activity Panel of this website: http://barcodehero.com/ Looking at the source code, I can see how they are animating the feed. But where are the ajax calls? How can something like this be implemented. I am sure this is very easy. But not for me .. Here's how they are animat...

Returning response from a view that contains input type file - Microsoft JScript runtime error: Object expected

Hi guys, I have a simple view that has 2 textboxes and 1 file input. <%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<iLoyalty.BackOfficePortal.Models.SegmentModel>" %> <% using (Html.BeginForm("SaveSegment", "Segment", FormMethod.Post, new { id = "SegmentForm", enctype = "multipart/form-data" })) { %> <div class="StCon...

ASP.Net MVC TempData - how to keep state

We are using ASP.Net MVC TempData to store form data between page refreshes. We have a button on the page that allows the user to perform a certain action. If the user clicks this button one time, it works fine. If they click the button twice, which is allowed, we lose the TempData data. We need to make sure the TempData data is pres...

Check email availability with asp.net ajax and make page invalid if exists

I'm trying to performa an ajax validation for e-mail address. I need to know if user is already registered so I need to check it in my database. There is similar example: http://www.highoncoding.com/Articles/439_Performing_Instant_UserName_Availability_Check_Using_JQuery_Ajax_API.aspx My current code is: function validateEMail(email) ...

The Number Of Fractional Digits Is Out Of Range - Javascript

I am using ajax numeric updown extender control but it is raising an exception "The Number Of Fractional Digits Is Out Of Range" when i change values using the up or down buttons. The structure of my web page is shown below : <body> <form id="form1" runat="server"> <asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server"> </a...