ajax

ASP.net MVC put complex data (array) to controller method

I'm porting an ASP.net Web Forms application to MVC. The application uses AJAX, by means of Ajax-enabled WCF Web service and asp:ScriptManager. I send an array of objects for service, it handles it just great. Code example, <script type="text/javascript"> $().ready(function () { var ser = new Services.TasksService(); ...

Progress counter Page Method call is aborted.

I have a fairly long process running in a standard postback. Then I have the following page method to return progress to a repeating JavaScript function that is supposed to report on progress. My simple page method: [WebMethod] public static int GetProgress() { return (int)(HttpContext.Current.Session["ActivationResources.ImportPr...

Ajax on Rails - I'm having an issue...

I'm working on a Ruby on Rails web app, in which I've got several lists of posts. Each post will use Ajax to load their comments. In order of populating them in the right place, I'm doing the following: Each post has a div with an id formatted as follows: <div id="my_div_<%= post.id %>"></div>. So, for example if the post.id is 12, the ...

calculating age using calculator plugin/jquery

I have to sets of dates (via inputs/selects - mm/dd/yyy) on page. I want certain readonly text field to show age in months (calculated based on those two dates) after a certain select field (different select, not a part of dates set) has been changed (any option in that select chosen must trigger calculation and show result in readonly f...

Calendar in javascript/ajax, php, and mysql?

Hi, I need to create a calendar which will allow people to view appointments and edit these. Am aware there are many out there put I have to create my own and it has to be my own code, so anything like jQuery is out of the question. I have studied Google Calendar and although I don't want it as advanced as this something similar should d...

How to do a post request for my reCaptcha ajax api?

My reCaptcha is now implemented into my signup process using ajax.. Currently no matter what is typed in the captcha text field it never validates. It just keeps giving me new words to type in. I've figured it's because I need to test if the user entered the right captcha answer. I need to send a POST request. I have no idea how to do...

'Web' based push notifications for internal-only application

I'm already tossing around a solution but as I haven't done something like this before I wanted to check what SO thought before implementation. Basically I need to modify an existing web based application that has approximately 20 users to add push notifications. It is important that the users get the notifications at the same time (PC...

AJAX Radio Buttons with jQuery

I need help to get submission of an RSVP with radio buttons like this: Attending: <input type="radio" /> Maybe Attending: <input type="radio" /> Not Attending: <input type="radio" /> Whenever someone RSVP the event, it should ratio the input to the selected (so just one radio button can only be selected), so when one option is selecte...

Can an AJAX request be made to a file residing on the server a Javascript file is hosted on when included on a remote site?

Ok so my question title may have been a little confusing. Here's my example: www.WebsiteA.com is hosting MyFile.js at http://www.WebsiteA.com/MyFile.js. This file makes an AJAX request for http://www.WebsiteA.com/location/file When this Javascript file is included on WebsiteB through the script tag, will the Javascript run into cross-...

JQuery stops working after an AJAX call (ASP.NET MVC)

Hi guys i know this is a known problem in ASP.NET MVC, basically what i have here is a photo gallery with categories (Red, Blue, Green). When i choose one category, say 'Red', it will do an ajax call and load the page with photos of red colored products. when i click one of the photos, i expect it to be enlarged (lightbox kinda effect)....

Serializing dictionary in Django to use with Dajaxice or ajax

I'm trying to write a monitor site so the temperature for certain devices gets updated every x seconds. So far I have a function that returns a dictionary using dajaxice. This is my ajax.py: def temperature(request): temperature_dict = {} for filter_device in TemperatureDevices.objects.all(): get_objects = TemperatureData.object...

Broken DOM in IE and FF after Ajax call

Hi, i get a strange behaviour of IE and FF while perfoming an ajax callM; Chrome works as expected for me ;) In Grails i use the <g:formRemote/> Tag which results in the following code : <form onsubmit="jQuery.ajax({type:'POST', data:jQuery(this).serialize(), url:'/url/morUrl',...

Problem with getXMLHTTP()

I have the following code: <script type="text/javascript" language="javascript"> <!-- function getXMLHTTP() { //fuction to return the xml http object var xmlhttp=false; try{ xmlhttp=new XMLHttpRequest(); } catch(e) { try{ xmlhttp= new Acti...

Jquery ajax load problem

Why doesnt this work? $('#websitedesign').load('test.html', function() { alert('Load was performed.'); }); Jquery version using: 1.3.1 min html code: <body> <div id="top"> <div class="wrapper"> <a href="http://www.bmvisuals.nl/" id="logoh1">BMvisuals</h1></a> <div id="menu"> <a href="index.html"> <span id="mhome">Home<...

jquery and user city

I have another question: when user selected dynamic tab its swapped image. How to save user made changes in SQL or maybe in XML file :) How JapanPro wrote $.post('sendData.php', function(data) { $('.result').html(data); }); it can be solution. But someone can show example for sendData.php Maybe: <?php $packed = $_GET['data']; ...

Halo reach stats api?

Hi guys, Can someone please give me an example of how to access the Halo: Reach stats API using jquery ajax? Here is an exert: GetGameHistory(System.String, System.String, System.String, System.String) This function is used to browse through a player's history of games. Parameters identifier: Your application's ide...

serialize is causing a mess when it comes to gather information?

Hey all since I am learning on how to use serialize, I am facing a hiccup where after I used the below code which is the Jquery post jQuery.post("d_in.php",jQuery("#myform").serialize(), function(data){ alert("Data Loaded: " + data); and let's say I have 2 inputs which names are Small$item_id, where each input name follows the it...

something wrong with this jquery?

There is a debugging syntax error, but I can’t see it! im a bit of a newbie, so excuse my code!! $(document).ready(function(){ /* fetch elements and stop form event */ $("form.follow-form").submit(function (e) { /* stop event */ e.preventDefault(); /* "on request" */ $(this).find('i').addClass(...

IE ajax interrupting issue

I am experiencing this issue with IE7 but not in Chrome or firefox: I have several page elements that are loaded via ajax. This elements are dynamically displayed on the page as hyperlinks to another page. As I have many such elements loading, I can sometimes see the progress of the page load (i.e. I can see the elements getting popula...

Ajax with jQuery

Hello! I'm very new to jQuery and AJAX. i read a bit of the API provided by jquery on their website which said : Example: Alert out the results from requesting test.php (HTML or XML, depending on what was returned). $.post("test.php", function(data){ alert("Data Loaded: " + data); }); Now,i'd like to know how exactly test.php re...