ajax

ASP.NET Ajax - Autocompleteextender control appears behind other controls

To be specific I have a search form with an autocompleteextender at the top. When you type in a string, it autocompletes with matches in a drop down as expected. The problem is that a couple of SliderExtender controls further down the form are appearing above the autocomplete dropdown (it is not covering these controls). I've looked ...

Refreshing a Table Column via Ajax

I have a web page containing a table of jobs running on my system. As these jobs finish or change state the table needs to reflect the changes. Currently I refresh the whole table via AJAX every 8 seconds. This works fine for a certain number of jobs, but causes performance issues with very high (~100) job loads, eventually causing brow...

synchronous jquery json request

I need to make a synchronous request to the last.fm API, but when I use GET and json together, the request becomes asynchronous. my code: $.ajax({ async: false, dataType: "json", url: "http://ws.audioscrobbler.com/2.0/?method=artist.getimages&artist="+artist+"&api_key="+apiKey+"&format=json&callback=?", succ...

How can I prevent IE Caching from causing duplicate Ajax requests?

We are using the Dynamic Script Tag with JsonP mechanism to achieve cross-domain Ajax calls. The front end widget is very simple. It just calls a search web service, passing search criteria supplied by the user and receiving and dynamically rendering the results. Note - For those that aren’t familiar with the Dynamic Script Tag with Jso...

What is AJAX, really?

I have to start using AJAX in a project and I don't know where to start. Can someone please help? ...

Ajax Returns Random Values?

I am working on a simple AJAX page. when the page loads, it should take the result from the PHP page and display it in the text box. If the result is "1" (which it should be), then it should pop up an alert saying "Ready." Main page's code (t1_wait.php): <html><head><title>Waiting...</title></head><body> <script type="text/javascript"...

How can I do form validation with jQuery using icons as pass/fail indicators?

How can I do form validation with jQuery to allow a green check mark if a field passes a regex and a red x if it fails? Can anyone point me to an example of some jQuery that shows one icon immediately if a field validates and a different one if it fails? ...

Stupidly easy JS variable passing issue...i think.

I have an XHR call getting a date for me, but can't seem to pass it into the page - i know its school-boy stuff, but its driving me mad. I just need to pass the date from the XHR call to a variable to be inserted via document.write... Anyone ? thanks in advance. B var upDated function getUpdated(){ xmlhttp.open("HEAD", "MBP_box...

One callback for multiple json requests

I want to make X number of ajax requests in jQuery and add the json response to an array. When all the ajax requests are done, I would like to execute some code. Is there a good way to solve this? ...

Cross domain ajax request from javascript file without help of server side code.

I am consuming service of random.org, (I want to get the numbers from random.org site using url). I am fetching data using ajax from my JavaScript. So how to make cross domain ajax call from my domain (and avoid permission error)? I want solution without help of server side code (sever proxy). Example code will be great help for me. ...

AJAX Alert Box with visitor memory - any examples?

I'm looking to deploy a semi-temporary alert box about maintenance on our website. However I don't want anything too aggressive like a browser warning box. I'd also really like it to remember if a visitor has already been to the site and clicked close, so not to display it again. Essentially I'm looking at how to do the S.O. "First time...

Extending asp.net Panel-controller with inward/outward rounded corners

Hello, i'm trying to extend asp.net panel-controller to include Ajax Control Toolkit's RoundedCornerExtender. I have no problems with the basic functionality, but i'd like to have the ability to round individual corners, not just the ones available as default in BoxCorners-enumeration and be able to define the rounding both inwards and ...

Oracle BPM Ajax to Fuego Object

I have a specific requirement to have autocomplete in an Oracle BPM project. I have been trying to figure out the best way to achieve this activity. I have a good foundation of jQuery and auto-complete. What way do you find yourself satisfing these types of requirements? I would like to get the response straight from the object. ...

jquery images with preloading image

$(document).ready(function(){ // The plugin $.fn.image = function(src, f){ return this.each(function(){ var i = new Image(); i.src = src; i.onload = f; this.appendChild(i); }); } // The code for...

Simple ajax onclick question

Hi, I'm having difficulty setting up a simple menu that displays results on a div box: I have a list of 10 links which link to php files on my server that return data. I would like it so that when the viewer clicks on one of the links, the data from the php file will display on a div box on the screen, and then when he clicks on anoth...

Update multiple div's from jQuery ajax response html

I have a page in a asp.net mvc shopping cart which allows you to enter a coupon and shows an order summary along with other page content. I would like to have an Update button which will validate the coupon code, report any errors and also update the order summary on the page via jQuery ajax. I know I could do this by making a form and ...

Show animation in a jsp page while waiting for server to respond

Hi everyone, What would be the best way to display an animation while waiting for server-side processing of a jsp page to complete.Basically, the server side request can take more than a minute to process and until then I would like the user to have some way to get an update of how his request is getting along.I require an animated gif ...

Preferred way to dynamically add markup content from XMLHttpRequest.

Hello, What's the best way to add dynamic content to a web page after a successfull xml http request. To break down a more concrete example: User fills in data in input field (e.g. a forum post) Data is asynchrously updated using the ajax technology The forum post is instantly displayed for the end user Sites like Facebook or last.f...

Using another Controller/view inside the One controller/view By ajax and CakepHP

Hi, I m having a three controllers in my app. Forms,attributes,Users In my /forms/designpage I m posting the datas as $.ajax({ type: "POST", url: "./attributes/untitledfieldname", data: "sequence_no="+counter+"&type="+type, success: function...

asp.net - How can I update a text box asynchronously during a long process.

I'm using MS Ajax toolkit and would like to be able to display status messages back to my user asynchronously. I have an update panel wrapped around a text box, this is the desired destination for any update message. Inside the update panel I have a trigger pointing to the click event of the only button on the page. I'm able to make th...