ajax

How can live search / search suggestions be implemented using Dojo?

I want to implement a 'live search' or 'search suggestions' feature in a web application that uses the Dojo Framework. It would be similar to the way Google and Bing searches display matches as you type: when you type in the search box, a list of potential matches appears below. Searches would be performed server side, with the results s...

How to run batch process?

Hi, I am working on News means I need to include online yahoo news title and description in my page. For that I have to create 1 batch file , but the problem is that how to create that batch file which will call the yahoo online news inside that file then how can I include that file in my page? Thanks ...

Django - Ajax HttpResponse delay

I have a django view function that calls another function if a condition is true, the function is called as a separate process, the view returns a status variable which shows if the function was called or not, the status is returned to a ajax click event assigned to a button. The problem is that when the function 'do_work' is executed aj...

Calling simple web service (.asmx file) from AJAX and JQuery using JSON - parse error

Hi all, Making my first steps in trying to use all these technologies together.. I'm having some toubles.. Here is my Server side: [WebMethod(EnableSession = true)] [ScriptMethod(ResponseFormat = ResponseFormat.Json)] public string simplestMethod() { return "Simplest method returned"; } And here is my client side: $(document).rea...

same origin policy in external js file

if in the website http://www.mysite.com there's an external js file added as <script src="http://www.yoursite.com/new.js"&gt;&lt;/script&gt; within the http://www.yoursite.com/new.js js file, there's an ajax call to a script in http://www.yoursite.com/new.js in such a case will there be the same-origin policy security problem, as i...

Loading ScriptManager only once either from Master page or Content page

I have an web application of 200 web pages and all has a single master page. Most of the content pages use AJAX controls so most of content pages has its own ScriptManager. Now I have a requirement to add a link with HoverMenuExtender control and for that I need to put ScriptManager in the Master page, but it is working only in the conte...

ASP.NET MVC rendering partial view with jQuery ajax

I have a controller action which renders a partial view: public ActionResult Details(int id) { DetailsViewModel model = ModelBuilder.GetDetailsViewModel(id, _repository); return PartialView("Details", model); } and I'm loading the returned content into a dynamic element as follows: $container = appendContainer(); // ...

Can I make an Ajax request inside an ongoing Ajax request (e.g. on the success callback function)?

Hi! I have a jQuery application, a shopping cart, that posts back info to the server, if the text inputfield is changed. This is done in an Ajax request. Now, if the Ajaxrequest is a success, I want to reload the shoppingcart asynchronously. The code is as follows: $(document).ready(function() { var jInput = $(":input"); jInpu...

[PHP - jQuery - AJAX] - Form submit

Hi Everyone, I'm basically just trying to submit a form through AJAX and want to show the return of the processing PHP page. The PHP page just validates the input and shows either the errors that occured, or a thank you message to the user. Normally I wouldn't use ajax for it, but in this case the customers setup requires me to. As sim...

how to go trough javasciprt array

I have this output from ajax call: {"total":"3","data":[{"id":"4242","title":"Yeah Lets Go!","created":"1274700584","created_formated":"2010-07-24 13:19:24","path":"http:\/\/domain.com\/yeah"}]} So there is three that kind of items in that array and I would need to go that through and print actual html out if. So on page it would: Ye...

"object required" -- ajax in IE

Hi, I have the following code : secondLevelElement = document.createElement('div'); if(xmlDoc.getElementsByTagName('get_updated' + i)[0].childNodes[0].nodeValue == false) { secondLevelElement.setAttribute('class', 'content disabled'); updatedDateStr = "<span class=\'red\'>Updated to: " + xmlDoc.getElementsByTagName('Updated_to' + i)...

Ajax toolkit ModalPopupExtender drag&drop returns to original position

When I drag the popup over the page and release it, it's returned some times to it's original position. Depends where I drop it... Is it possible to freely move it over the page? ...

Refering objects in jQuery each

Hi all, i had asked a question about refering objects in a function that is inside jquery each function but that first function is defined before in a array. In my question everything went ok (because i was testing with one element only), when i put 2 elements, it didn't worked, it is calling the first always. I think that is because a...

Passing multiple variables in URL

If I do something like var url = "dynamicprice.php"; httpObject.open("GET", url, true); everything works, but if I try to pass variables var url = "dynamicprice.php?package=" + document.getElementById('package').value + "&markup=" + document.getElementById('markup').checked; httpObject.open("GET", url, true); I get no answer from d...

Asp.net Generic Handler Encoding Problem

Hi everyone, My problem is not too hard but really annoying. I'm sending values to Generic Handler via Ajax like that way. xmlHttpReq.open("GET", "AddMessage.ashx?" + (new Date().getTime()) +"&Message=" + Message,true); when message contains İ,ç,ö,ğ,ü,ı they are looking like that on Handler ������� In context.Request.RawURL İ,ç,ö,ğ,ü...

How to parse json string to javascript object

I have this kind of json string: {"total":"3","data":[{"id":"4242","title":"Yeah Lets Go!","created":"1274700584","created_formated":"2010-07-24 13:19:24","path":"http:\/\/domain.com\/yeah"}{"id":"4242","title":"Yeah Lets Go!222","created":"1274700584","created_formated":"2010-07-24 13:19:24","path":"http:\/\/domain.com\/yeah222"}{"id":...

Ajax requires user to submit information multiple times before it is recived and logged

Hi! I'm having a little problem getting my data to submit. I'm trying to make a simple chat box using PHP and Ajax, but whenever I try to submit data it will only post after it has been submitted several times. I'm hoping somebody could tell me the problem with me code. I'm a very novice coder and this is my first time using this site s...

Question about making XHR requests.

I'm not sure why but I haven't really been able to find the right resource for this which helps me understand the best practice here, but say I have an application, that I want to make an Ajax request to another application. Say app A's domain name is: www.example.com, and I want to make a request to www.someapplication.com Can I do so...

boolean variables posted through AJAX being treated as strings in server side

Following is a part of an AJAX functionality to add classes and packs to session cart:- The jquery part function addClassToCart(itemId) { addItemToCart(itemId,true); } function addPackToCart(itemId) { addItemToCart(itemId,false); } function addItemToCart(itemId,isClass) { $.post(url+"/ajax/add_cart", { operation: 'add_c...

Send another <input> value in Ajax file upload

here is my upload function function ajaxFileUpload(){ $("#loading") .ajaxStart(function(){ $(this).html('loading...'); $('#buttonUpload').hide(); }) .ajaxComplete(function(){ $(this).hide(); $('#buttonUpload').show(); }); $.ajaxFileUpload ...