ajax

AJAX: how to get progress feedback in web apps, and to avoid timeouts on long requests?

This is a general design question about how to make a web application that will receive a large amount of uploaded data, process it, and return a result, all without the dreaded spinning beach-ball for 5 minutes or a possible HTTP timeout. Here's the requirements: make a web form where you can upload a CSV file containing a list of UR...

ASP.NET validations not showing up after AJAX calls are made (SharePoint 2007)

I have an AJAX form on SharePoint 2007. If I don't call AJAX on the page, the validations all work fine and the css for the validations shows up. Once I make an AJAX call (say, Create Customer), all the validations still work, but the css for the validations does not show up. Any ideas? ...

Load text from specific external DIV using AJAX?

I'm trying to load up the estimated world population from http://www.census.gov/ipc/www/popclockworld.html using AJAX, and so far, failing miserably. There's a DIV with the ID "worldnumber" on that page which contains the estimated population, so that's the only text I want to grab from the page. Here's what I've tried: $(document)....

How to prevent caching from jQuery Ajax?

Hi, Could anyone please help me with this? I have a web page using .manifest for offline storage caching. In that page, I use jQuery ajax call to get the data from the server. If I first load the page, it is OK. I can switch between Online and Offline. But the problem is when I go back online and refresh the page. jQuery ajax cannot be ...

how to search some character inside string

i have been type some string inside textfield that is "KD-G435MUN2D"... i already use this code for search "UD" character from that string: <script> var str="KD-R435MUN2D"; var patt1=/UD/gi; document.write(str.match(patt1)); </script> but this code doesn't work..where is my fault? ...

html widget communicating with server

I'm making html widget for websites. Let's say, it will display current stock indexes. In short, arbitrary website owner takes code snippet from me and includes it on his webpage http://website.com/index.html. When arbitrary user opens http://website.com/index.html, my code sends request to my server (provider.com), which performs necess...

Aborting jQuery().load()

The .load() function of the jQuery library allows you to selectively load elements from another page (subject to certain rules). I would like to know whether it is possible to abort the load process. In our application, a user can browse a list of items. They may choose to click a button which loads and displays additional information a...

echo/print specific element

hi everyone,, i tried this example on ajax here and i wonder if i can echo/print a specific element of the array at the php side let's say i just want to print the second element which is "lastName" i tried echo $t2lpostData[1] it gives me error "Undefined offset: 1 in C:\wamp\www\thank-you.php on line 12" help plz,, ...

Works in Firefox & Opera, but not in IE8

1) This issue involves just one html webpage, lets call it "ajax.html". 2) I have AJAX functions in this webpage that work in both Firefox and IE8. 3) I now attempt generating just the option values of a dropdown list of dates using my ajax functions, and it works in Firefox & Opera, but not IE8. 4) The surrounding html code for the d...

how do i get textfield value then combine with regex

i have this code for get data from textfield: <script type="text/javascript"> var mod=document.getElementById("mod").value; ajax(mod); function callback() { if(ajaxObj(mod) { document.getElementById("divResult").innerHTML=ajaxObj.responseText; }); }; </script> this code for show r...

ajax onsucess method context

function createSuccess(context) { $get(“result”).innerHTML = context.get_data(); } <% using (Ajax.BeginForm(new AjaxOptions {OnSuccess="createSuccess"})) {%> What does context holds in the createsuccess method? data return by controller? How do we return json data in the createsucess if so ...

jquery dialog is clearing my form fields and I need to return a value from a jquery dialog

1.) I have a jQuery dialog that is opened whenever a particular textbox is focused. The dialog's contents are loaded from ajax and the unique ID of the textbox that was focused is passed in the ajax call (like this): $('[name=start_airport[]],[name=finish_airport[]]').click(function(){   var id = $(this).attr('id');   if($('#use_advanc...

Second time real value post problem

I have added ckeditor on my page. the thing is that when i make changes in the value in the ckeditor and post the value to the controller the new posted value is not there (the previous value is coming). the new value comes on posting it second time.the cycle goes on(the changes in the value in the ckeditor comes on the second posting). ...

Updating div after full page refresh following AJAX request

Hi, I have an AJAX controller action which returns JSON. The returned JSON is handled via jQuery and contains a message displayed in an update div. The JSON also contains a flag which indicates a change in state. If this is true the entire page needs to be reloaded from a different url. This is currently performed in the jQuery using wi...

A brief question about JavaScript or AJAX

I have been finding ways around this for a long time but think it's time I addressed it. If I have a page that has a dropdown menu, is there anyway I can select a value which will subsequently load other values further down. Can this be done without a page reload? I will give you an example. Say I was making some tools for an admin pan...

mysql_real_escape_string() just makes an empty string?

I am using a jQuery AJAX request to a page called like.php that connects to my database and inserts a row. This is the like.php code: <?php // Some config stuff define(DB_HOST, 'localhost'); define(DB_USER, 'root'); define(DB_PASS, ''); define(DB_NAME, 'quicklike'); $link = mysql_connect(DB_HOST, DB_USER, DB_PASS) or die('ERROR: ' . m...

Ajax & PEAR\HTML_TreeMenu @ Joomla module

Hi. I'm working on a Tree Menu that gets it's parents and childs from a web service via soap. I have used PEAR\HTML_TreeMenu and i have my tree up and running.. So now i have to do 2 more things: Ajax it so parents and child are loaded async and when need it. Get all that in a joomla module... My problem for starters is that HTML_T...

MooTools request fails

Hi everyone, I am trying to achieve this task using MooTools. Description: I have three buttons. Two buttons outside myDiv and one button inside myDiv. A click on any of these buttons initiates an AJAX request (passing button variable to "button.php") and updates myDiv content based on the response text. So, after update, myDiv shows B...

jquery advice on tabbed system

Hello There, I create a 'my account' section for a site, the site has some e-commerce functionality too it, what I wanting to create is a tab that shows the users current basket/short list and the other tab to show there purchase history. On buying the products from the short list (this is done in a one click system using AJAX, if a su...

Using Java server-side with PHP-generated front-end

Hi!  Does anyone have a real-world experience in building such a project? I'd like to move away questions about "is it good idea or not", but focus on possible solutions. I see one simple way - HTTP GET/POST + xml/json - and one more elegant - AJAX/DWR. As for the first one - I understand that it is possible, but needs quite a lot coding...