ajax

JSON Feed Appears to be XHR when it should be JS

I don't get why it'd doing this with the 2nd feed (appearing as a XHR call rather than just JS [looking at it in Firefox/Firebug]). The 2nd feed has the exact same MIME type as Flickr's JSON feed, yet the PortlandOregon.gov one shows as XHR and i get a NULL callback when using $.getJSON and if i use $.ajax with a 'json' or 'jsonp' type i...

How can we send a large size of data (>2038 char) from client to Server using ajax?

How can we send a large size of data (>2038 char) from client to Server using ajax? I like to send an array of key-pair values of size more than 10KB. I am currently using cookies, is there any other prefered way by which we can send it through an Ajax Call. ...

problems with passing html to the server with jquery

i have an ajax call $.ajax({ url: '<%=Url.Action("SaveDetails","Survey") %>', dataType: 'JSON', cache: false, data: { Id: selectedRow.Id, Value: surveyValue, FileName: filename, FileGuid: fileguid }, success: function(data) { ... ...

rss help in iphone development

Since my last question was deleted without giving me a chance to reply: I want to build a similar rss parser feed to: http://misc.inexistent.org/ontd/ Can anyone give me really good tutorials that I could build a similar iphone app for my rss feed. I can see it uses jquery, javascript, and ajax. If any can check out the code to head...

Download binary without triggering onbeforeunload

I want to kick off a file download for a user when he clicks a link, but I have an onbeforeunload handler that I don't want to get invoked when the download begins. To downloads, I currently have an <a> with the href set to the file location but clicking it results in onbeforeunload being invoked in Chrome (not in FF, though). I know I...

login problem with ajax

i have created login page which sends ajax request to a php page for login verification. On that php page i m creating session, and sending response as per login verification. if user is authenticated i m redirecting it to home page from java script from where i send ajax. but on that homepage i cant get that session object... why? can u...

jQuery UI dialog and Ajax POST, JSON

Is it possible to combine Ajax post with jQuery UI dialog? And I want to process the ajax reponse in JSON to HTML for showing inside the Dialog box var url = AJAX_URL+requestId+'/'+userId; // Need to POST the requestId and userId instead of GET $("body").append("<div id='dialog-modal'>Loading...</div>"); $("#dialog-modal").dialog("dest...

How does WCF RIA Services handle authentication/authorization/security?

Since no one answered this question: What issues to consider when rolling your own data-backend for Silverlight / AJAX on non-ASP.NET server? Let me ask it another way: How does WCF RIA Services handle authentication/authorization/security at a low level? e.g. how does the application on the server determine that the incoming http ...

Zend framework Json engine?

Is there some kind a engine for Json in the Zend framework, What I mean is some abstraction that all the Json (ajax) responces go through ? in other words some class to controll all the Ajax calls? ...

Javascript concatenate properties from multiple objects (associative array)

I am looking for the best way to augment multiple javascript associative arrays. For example the following code a = { "one" : 1, "two" : 2 }; b = { "three" : 3 }; c = { "four" : 4, "five" : 5 }; d = Collect(a,b,c) Should result in value of d being: { "one" : 1, "two" : 2, "three" : 3, "four" : 4, "five" : 5 }; What is the bes...

how to manipulate Json response like an object?

Hello, my jQuery.ajax return JSon object. I firstly read other articles. but their response text not likes mine. My Response content: from firebug response {"item":"[{\"country\":\"USA\",\"lan\":\"EN\"},{\"country\":\"Turkiye\",\"lan\":\"TR\"}]"} Now i trying to alert countryName: $('#loadData').click(function() { $.ajax...

Ajax: distinguish old posts and new posts.

Hi at all, I have created a very simple blog at www.example.com with a only one page. When I connect to www.example.com I see all posts inserted in the database ( in mysql ). Now I want that every 60 seconds an ajax request check in the database if there are new posts. If there are new posts these will be inserted at the top above the o...

Ajax DragPanelExtender drag an item from one panel to another

I have a panel called "ItemPot" and several panels called "ItemBank1", "ItemBank2" etc. Currently I have dynamically added 5 items to the pot and given each one a DragPanelExtender so that those items can be moved around within the panel, however what I wan't to be able to do is to move those items into the banks and then save there ne...

Image zooming solutions?

Hi folks, Got waist deep in a project that will involve presenting zoomable hi res catalog images. Was assuming I would use Zoomify (Can be seen at their dot com which I am not linking to) and bought a license. Found out too late that their product relies on user preparing every image into a large number of tiles using their windows e...

Creating Clock hand animation on an ASP.Net website (ajax / charts)?

Hi, I have a 180-degree circular image, sort of like a speed meter, where I need to dynamically show a value based on an XML / database. One option is using 5-10 different images and loading a different image based on the current value when the visitor enters the website. But I would much rather use something truly dynamic, or an animat...

Poll the Server with Ajax and Dojo

I'm using dojo.xhrPost to sent Ajax Requests The call is wrapped by a function sendRequest() I've now to continuously (every 3sec) send the same ajax Post to the server How can I implement a Server Poll with Dojo? I basically need to call sendRequest() every 3 secs ...

Using Javascript to detect when a user has selected an item in an ASP.NET listbox

Hello all, I am developing an ASP.NET web application that incorporates google maps. I have an ASP.NET listbox on my page which contains a list of items. When the user selects one of the items, I'd like to show this item on the map. The main complication lies in the fact that google maps uses javascript to control it and the listbox is ...

Are HttpModules utilized when a .Net web service is called through the javascript proxy (AJAX)?

I am making our large set of web services available to AJAX calls. I have added the [System.Web.Script.Services.ScriptService] to each service. We have a registered HttpModule that initializes some objects we use regularly for logging and internationalization in the IHttpModule.Init override. It appears that the IHttpModule.Init is calle...

Problem with jQuery.ajax with 'delete' method in ie

I have a page where the user can edit various content using buttons and selects that trigger ajax calls. In particular, one action causes a url to be called remotely, with some data and a 'put' request, which (as i'm using a restful rails backend) triggers my update action. I also have a delete button which calls the same url but with ...

How much data can a javascript global variable hold??

Hi, To enable a go back function with an ajax div i have create these simple functions and i was wondering how much data a .js global variable can hold?? var dataAfterSearch; //global variable which holds our search results function goBackAfterSearch() { /** * function which displays the previous state * **/ ...