ajax

Image refreshing using Ajax & jsp

I’m using Ajax in jsp, I have to refresh image for every 30 seconds by using some data base values. Can any one know how to refresh image? Please send me some code examples. Thanks. ...

jQuery AJAX timing issue

In my backend I'm using jquery 1.4.1 and the newest UI 1.8rc1. I defined a couple of buttons that do things... one is create a certain type of page using serialize functions calling a php file and then reloading the entire page. locally this always works like a charm! but as soon as i put it on my providers webserver, it only works in ab...

WebRat+Selenium WebDriver: wait for ajax to be completed

We are running Webrat with Selenium2.0 aka WebDriver in our application. WebDriver handles page reloading very well and do not start next steps if the browser is reloading entire page. The problem is that this mechanism doesn't work with Ajax requests. WebDriver doesn't do any idle when there some after click() or change(). Can anyone ...

jQuery, Shadowbox and AJAX

I would like to load some content using AJAX and Shadowbox Basically I would like the user to goto a page in case javascript is off. So this is what I want to do :- 1) Cancel the click event i.e the User must not go to a different page. 2) Load content using ajax function in jQuery 3) Show the content inside a shadow box My code wor...

Ckeditor only submits part of the content

I'm using ajax to gather the ckeditor data to be submitted. The problem is only the content before the first apostrophe is being submitted to the database. What could I be doing wrong? Edit: $date = strtotime($formData['date']); $article=mysql_real_escape_string($formData['article'],$DBconnect); $DBconnect=mysql_connect($dbVals['host...

Where can i get a popout side control ajax?

Hi Guys, Im looking for a control similar to: http://www.treehugger.com/files/2009/01/built-in-dishwasher-vs-hand-washing-which-greener.php [the control on the left] Could anyone tell me of a good free one that we can distrubute with our web based software preferably that has an Mit licence. Cheers Pq ...

How do I determine what kind of error ajaxError is handling?

I'm trying to handle AJAX errors in a web application that uses jQuery. I'm setting up an event handler to deal with AJAX errors like this: $('body').ajaxError(error_handler); However, despite the information that's passed to that handler, I'm finding it difficult to determine what sort of error occured. The two errors I'm intereste...

ScriptManager.RegisterStartupScript not available

Not sure why but the RegisterStartupScript method is not available on my scriptmanager. I am using System.Web.UI. ...

how to render a full view using Ajax.BeginForm

I have a partial view which has a Ajax.BeginForm, with a UpdateTargetID set. When the validation on the form fails the update target id is replaced with the validation errors, but when there are no validation errors users should be redirected to a new page. The code in my Partial view is <div id="div_UID"> <% using (Ajax.BeginForm...

How can i increase speed for loading of google maps embeded on site?

Are there any javascripts or other method which can decrease loading time of google maps? Google maps are added by iframe code. Update: 12 FEB 2010 Can any jquery plugin be useful for me? ...

How to return an array from jQuery ajax success function properly?

Hi, I have this code: TheObject = { getArray: function(){ var groups = new Array; $.ajax({ type: "POST", url: "link.php", success: function (data){ var counter = 0; $('g',data).each(function(){ var group_name = $(...

JQuery events don't work with ASP.NET MVC Partial Views

I am trying to get JQuery events to work with partial views in ASP.NET MVC. However, after you load a partial view through Ajax, JQuery seems not able to fire events for any of the elements in the partial view. I suspect that this issue will also happen if you are using other frameworks or JavaScript libraries to load partial html code w...

ajax synchronous call with timeout

New to ajax, so asking a very basic question. -- Is there no way to make a Synchronous ajax call (async:false) with timeout set on it.? http://www.ajaxtoolbox.com/request/ Timeout works perfect with Asynchronous call though in my application, but for one particular scenario, I need a Synchronous call (the javascript should actually wa...

Better ajax toggle performance for checkbox attr with select change

Im creating a simple message system with a mail inbox like UI. I have a select box that witll control a list of check box one for each message. It works fine but i need it with less code lines. heres my code: jQuery("#select_deselect").change(function(){ switch (jQuery(this).val()){ case 'unread': jQuery("input[class=new_messa...

JQuery UI Tabs - Load AJAX Tab content

All, I am using JQuery UI Nested tabs. Consider the structure like this: There are 2 Main tabs: Animals, Birds. Under Animals, there are two tabs "Cats", "Dogs". Both the tabs "Cats" and "Dogs" should be loaded via AJAX when selected.. So, the code for them is something like this: <div id="fragment-1"> <ul> <li><a href="/pub...

passing multiple values from multiple textboxes in jquery

Below is the jquery script that takes one input value from textBox1 and pass it to a web method then returns the name of the person and displays it in textBox2. The web method only takes one parameter, the user initials. <script type="text/javascript" > $('#textBox1').live('keydown', function(e) { var keyCode = e.keycode ...

Deciphering the Google Search API: how to refer to an argument passed into callback function?

I'm using the Google Search API to load some Search results into my page. I'd like to set an argument to the callback function that says which div the search results should attach themselves to. Here's the callback function definition, per Google: .setSearchCompleteCallback(object, method, opt_arguments?) Here's how I'm doing it: se...

How to identify the partial view that is returned in an Ajax callback

I am retrieving a partial view with Ajax that is a form that can be submitted. If the form is submitted and ModelState is not valid I return the view and hookup the buttons again for the form. With that I get the validation error messages which works quite nice. But when ModelState is valid I want to return a different partial view that ...

What is the best dropdown navigation alternative to Superfish?

I know superfish is amazing, but the terrible CMS we are using conflicts with it in IE6 (hovers break in IE6 when the CMS applies a selected class to the li). I don't know how, but feel free to look at valitics.com/test1. It can be mootools, scriptaculous, whatever, I just need a good alternative to superfish. ...

Ruby on Rails ajax - dynamically loading all pages

I have a flash media player (similar to lala.com) that needs to continue to stream while people click around. I don't want to use an iframe. So, I need to dynamically load all site pages with ajax no matter what link people click on. I've got this working with Rails and JQuery for a single page. With this method I have to place a file....