ajax

Creating an AJAX-Enabled Web Site

Hey, I'am trying to follow an ASP.NET with AJAX Training. At certain moment, they deploy an AJAX-Enabled Web Site. but for me I can't found this option (I'm using Visual Studio 2008). Even if I installed the Ajax Control Toolkit it still not working for me !! What must I do to find this ? ...

Suggestions for jQuery-based Date/Time Selector

Hi everyone, I'm in search for a jQuery-based Date/Time Selector. I have found a few that are quite nice, but one of my requirements is that I can provide a json/xml/etc source of available days/times and the control should only allow selections of available days/times. Is anyone aware of a plugin that does this, or at least a plugin ...

show output of file on client side using jquery + javascript .

Hi, Written some code in my view function : This code reads a file from server . stores it in a list .passes to client def showfiledata(request): f = open("/home/tazim/webexample/test.txt") list = f.readlines() return_dict = {'list':list} json = simplejson.dumps(list) return HttpRespon...

Checking jQuery AJAX Request Status

Hi, i do 2 different ajax request via jQuery and i have to check the other one is active or not. How can i do that ? one of example from my ajax requests: active_project_categories_ajax = $.ajax( { url: "/ajax/get_skill_list", dataType: 'json', ...... }); i need something like that: active_project_categories_ajax.status()...

What's the best way to return stuff from a PHP function, and simultaneously trigger a jQuery action?

So the title is a tad ambiguous, but I'll try and give an example. Basically, I have an 'awards' system (similar to that of StackOverflow's badges) in my PHP/CodeIgniter site, and I want, as soon as an award is earned, a notification to appear to the user. Now I'm happy to have this appear on the next page load, but, ideally I'd like it...

Ajax: Add new <div> from JSON with jQuery

Hi, In a page I have this HTML code: <div id="content"> <div class="container"> <div class="author">@Francesc</div> <div class="message">Hey World!</div> <div class="time">13/06/2010 11:53 GMT</div> </div> <div class="container"> <div class="author">@SomeOtherUser</div> <div class="...

Async Load JavaScript Files with Callback

Hi All, I am trying to write an ultra simple solution to load a bunch of JS files asynchronously. I have the following script below so far. However the callback is sometimes called when the scripts aren't actually loaded which causes a variable not found error. If I refresh the page sometimes it just works because I guess the files are ...

Insert HTML into a page with AJAX

Hi there, I'm currently developing a website and i need that the pages loads dynamically based on what actions the user does. Example: if the user clicks on the button 'Settings' an ajax function will load from an external page the code and will put into the div with tag 'settings'. This is the code i use to make the Ajax request: ...

Can I pass a querystring that translates to a List<int> on the server?

Hi all, I'm writing a Google Maps app that requests data from the server using jQuery's $.ajax() to send the request to my ASP.Net MVC Contoller. This control expects a List for the amenity types. What should the querystring look like for this? I've tried http://localhost:9090/mapamenities?amenityTypes=1,5 http://localhost:9090/map...

AJAX file upload

I have a control for uploading an image and above it is an image control. When User clicks 'Upload' button, image turns to an animated image displaying 'WAIT' message, after the image is uploaded, the image source changes to that image. I want to do this using simple AJAX, JAVASCRIPT (xmlHTTP objects) , ASP.NET, VB.NET. Can anyone help m...

is there anyway to clear the content before loading ajax tab in jquery ui

jquery ui tabs supports loading content through ajax here but if i have already loaded previous content and i click on it again, it stays on the old content until the new content is fully loaded is there anyway to clear the content right when you click the tab so its clear that a new set of content is loading. I see there is a load eve...

Dashcode mysql datasource binding

Hi I've got a tricky question (aren't they all tricky?) I'm converting a database driven site that uses php, to a site being built with Dashcode. The current site selects data held in a mySQL database and dynamically creates the page content. Originally this was done to reduce site maintenance because all the current content could be ...

Sequencing ajax requests

I find I sometimes need to iterate some collection and make an ajax call for each element. I want each call to return before moving to the next element so that I don't blast the server with requests - which often leads to other issues. And I don't want to set async to false and freeze the browser. Usually this involves setting up some k...

accessing list sent from server as JSON object

How to access a list sent in form of json object using django to the template received in ajax callback function . The code is as follows : views.py def showfiledata(request): with open("/home/tazim/webexample/test.txt") as f: list = f.readlines() f.closed return_dict = {'filedata':list} json = simp...

displaying the file data in correct format

hi, In views.py def showfiledata(request): with open("/home/tazim/webexample/tmp.txt") as f: read_data = f.read() f.closed return_dict = {'filedata':read_data} json = simplejson.dumps(return_dict) return HttpResponse(json,mimetype="application/json") In the template: <html> <head> <script type="text/javasc...

how to get additional response in ajax?

Hi I am using ajax to showing the error message ...I am getting the values in success: function(msgqq) This is my ajax if want to get another response then how to get ex: I want success: function(msgqq) and success: function(msg) This is my ajax function UserNameAvailablity(inp) { $.ajax({ type: "GET", url: "<?=bas...

JSF ui:repeat and f:ajax giving wrong value for h:inputText after rerender.

I have a list of questions and I can display them ok using a ui:repeat, but after clicking the Edit button the rerendered inputText is given the wrong question.id. For some reason, if you click Edit on the first item, the inputText value assigned is that of the second item in the list, even though other outputs (other than the h:inputTex...

jQuery-ajax call: async property is not working?

Hi, given to certain circumstances, I'm forced to keep page settings (Javascript-values) in the session and it has to be done right before leaving the page (I can't use cookies, since "pageSettings" can become quite large and localStorage is not an option yet ;) ). So this is how I tried it. However it seems that when I call the page di...

How to use jquery ui slider to create a pagination effect and load the content in a <DIV>?

I want to create a pagination script using jquery UI's slider widget. So far I have got the slider working but I dont know how to send request to the server to fetch new content. So far this is my HTML <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <title>jQuery UI Slider - Range slider</title> <link type=...

flickering issue while using accordion

hi folks, Im using accordion query to my webpage. Its change the tab the query is flickering. Can any one help me to solve this prob. Thanx ...