ajax

use json object in c#

http://xurrency.com/api this webservice is returning a json response message. how can I use this message as an object in my .net project (asp.net web app) ...

jQuery AJAX: update two parts of a page with scripts inside the response

Hello, I'm using jQuery AJAX to load (and refresh) a part of my page Here's the jQuery function in my main page: function updateCategories(){ catList = $('#cat_list'); catList.hide(); //send the post to shoutbox.php $.ajax({ type: "POST", url: "../ajax/products-categories.php", data: "action=refresh", co...

localhost :: cross domain ajax

Hi there, Is there any way to tell your localhost that it can do cross domain ajax calls? I need this for my testing. If it is a browser specific issue i am using google chrome. Cheers. ...

Integrating Spring-MVC for page navigation & RESTEasy for REST service calls (Ajax)

Hi, I'm on a project that requires Spring-MVC for page navigation (possibly with webflow) where certain pages use RESTEasy to make Ajax calls (with JSON). I found an approach on DZone JavaLobby and followed it's approach (server is JBoss): I have configured the project so that it uses Spring MVC for page navigation and REST calls as re...

ajax or html error on mozilla?

The web site was built on asp.net platform. Ajax enabled. It works very well on ie or chrome, but it does not work on mozilla...? You see arrows work great but the numbers does not appear? how can i fix.. http://dexiab-2.hosting.parking.ru//Default.aspx#world the link to see the detail.. ...

Upload files asynchronously (AJAX) with HTTP/1.1 PUT method, why not ?

Uploading files via PUT method, even binary or text, via a "normal web browser" is possible. Why many people are just saying, that is not possible ? Sample code with jQuery and PHP. $(document).ready(function() { $("#uploadbutton").click(function() { var filename = $("#file").val(); $.ajax({ type: "PUT", ...

How does facebook rewrite the source URL of a page in the browser address bar?

Go to http://www.facebook.com/facebook?v=wall, then click on the info tab. The content will be loaded, and the address bar now becomes http://www.facebook.com/facebook?v=info but the webpage didn't reload. At first I think it is Ajax, but my question is, how do you change the address bar without reloading? I know I can change anchor (#w...

submit form cause validation error in other form.

hello, i have post detail page (asp.net, umbraco cms), with search box and post replay box. the problem is that when user try to search using the search box, it cause validation error in the post replay box. the search is client side form. the post replay is server side form. you can view it live at: http://www.thereturnvalue.com/blog/20...

ajax hoverMenu in asp.net dosn't work with windows 7

i have a web site with asp.net a made the menu with ajax hovermenu it runs in windows xp but in windows7 it doesn't appear i don't know why ...

Use jQuery to loop through a Django object via. AJAX

Hey, i think this is simple, but I can't get it to work! :( def ajax_filter(request): area_id = request.REQUEST.get('area_id') outlets = Outlet.objects.filter(zipcode__area=area_id) json_serializer = serializers.get_serializer("json")() data = json_serializer.serialize(list(outlets), ensure_ascii=False) return Htt...

overrideMimeType alternative for IE

This is a question that never has a proper answer, i have search the net many times and i couldnt find a solution. xhr.open("GET", fullurl, true); if(xhr.overrideMimeType) xhr.overrideMimeType("text/html; charset=ISO-8859-1"); xhr.send(null); xhr.onreadystatechange = function(){ if(xhr.readyState == 4){ if(xhr.status == 200) alert...

Problem with AJAX, JavaScript, ASP.Net MVC

Hi, everyone! I'm writing Asp.Net MVC 2 site. I have TimeController and TimeView, CountDownHelper for render time on TimeView page. Also I have JavaScript that updates current time, that is used in CountDownHelper. I need to call AJAX from this JavaScript to get current Time on server. How I can to do it? Please help me! I must i...

Load local JSON files via file:// triggers cross-domain null origin violation, solution? (jQuery)

Hi all, I have a webpage I'd like to use locally, without a web server, by simply opening the local HTML file in my browser. This webpage in question loads data via jQuery's getJson() method, as in: $.getJSON("mydata.json", function(j) { ... The JSON files are also local, and are stored in the same directory as the webpage. When I a...

Changing and Submitting URL with unobtrusive jQuery?

I have a bunch of urls that toggle user settings I would like to add some unobtrusive jQuery so the page doesn't have to reload every time. Everything I've found so far deals with forms, where as this is just a URL submit via js. How do I add ajax url submit to the a attribute. Ex: <a class="user_attrs" href="/users/testuser/attr/img...

can mechanize read ajax? (ruby)

can I get the correct data/text that is displayed via AJAX using mechanize in ruby? Or is there any other scripting gem that would allow me to do so? ...

Retrieve jQuery requested ajax URL and compare if matches

I am trying to grab the requested AJAX URL generated by a plugin to use in my callback. My intention is, to say in plain English: If the current requested AJAX URL matches attribute href in a certain selector already available in the page, then do something. $(selector).myplugin({settings},function(){ if (currentAjaxURL == $(anoth...

Apply Server Side Javascript Validation in Grails

Hi All... I am working on grails project where I need to apply server side validations. For client side validations I have created basic validation.js file which contains all the javascript functions. Now what should be the ideal way to achieve the server side validation using Ajax, to achieve the validations like Record Duplication c...

How to get Ajax Request Progress ?

  I am developing a project which is built in CakePHP and using jQuery in it. I have a script which need to be called by an ajax request. This request do many manipulation in database and takes too much time. Between the execution it is writing its status in a seperate file so i can see the status of script execution. Every time it open ...

Most efficient way - PHP/MYSQL requests - Real time news system

Hi there, I've got a quick performance question for my real time news system. This is a community news system, where everybody can post his news, and vote for it, or vote for other news. Every 20secs in jQuery I search in the DB to refresh the 20 last news/votes. But at the moment, I extract every 20sec the last 20 questions, even if ...

Partial page refresh for evary X seconds with Jquery and Ajax?

1) I have to change images dynamically according to values for every x seconds. I'm using the following function: setInterval(function() { $("#content").load(location.href+" #content>*",""); }, 5000); It works fine for updating the value, but the images not getting updated into its position. 2) From the 1st question i want to k...