ajax

Problem with AJAX responses

hi, I have the following problem. I programmed a java servlet, which responses to ajax requests from my javascript application. the answer from the java servlet is a xml encoded message. normally everything works well, but if I send "too much" (I think) Ajax reqeusts, it happens that more responses are within one ajax reponse, and as a c...

HTML Form/Database query

Hi, I am having some trouble with some code I am trying to implement. Any help would be much appreciated. In a database table I have 2 fields: postcode area Every postcode is related to an area. On a HTML form I have an input field. Users enter their postcode into this field. My question: what is the best/safest/easiest method, w...

Problem with AJAX and PHP

I have a small problem, I want to load data from a PHP file and put them on a DIV. Here's the Jquery code // Store the username in a variable var jq_username = $("#txt_checkuser").val(); // Prepare the link variable var link = 'user.php?action=check&username=' + jq_username; $('div #checkuser_hint').load(link); So it works! but i...

How to load php file using ajax. Some Compatibility Problem

I try to load a php file called summary.template.hp when the content in class profi is clicked and load changepass.template.php when the content of class changepass is clicked. There is no problem in loading in firefox. But in Internet Explorer 7 the summary.template.php file is loading but the changepass.template.php file is not loadi...

How do I do something to AJAX loaded content of a thickbox?

Id there an event I can hook into? I've looked through the docs, and unless my Wednesday brain is failing me I can't see anything along those lines. I am loading AJAX content into a thickbox using the standard way (adding the "thickbox" css class), but when it's loaded I want to do some jQuery magic on some of the loaded content. What ...

how do I launch an ajax request after the prior on has finished ?

Hi, I need to launch serveral ajax requests. For some reasons, I want do this synchroneous. That is to say that before launching an ajax request I have to know if the prior request has been finished. The 'asynchronous : false" property of prototype's Updater object seems not work. // A loop to launch one after each other the reques...

Explanation and usage of JSONP

What is JSONP, why is it needed, and what are some real world examples of it's usage. ...

Save All and Cancel All with jeditable?

How do you, if at all, place a save all button, and a cancel button, that turns off all editing with one click, and a save button that saves all the fields at one shot? ...

jquery ajax call to a remote php file failing

i've got a foo.php file which retrieves client infomation and generates an xml output with the relevant client info. i'm trying this ajax call which does not seem to want to work $.get('http://www.foo.php','',function(xml){ $('samplenode',xml).each(function(i){ //stuff done here }); }, 'xml'); i'm still new to javascript...

ajax calendar with dropdownlist issue

Hi, I'm using IE6, and I'm trying to work with the ajax calendar extender. Right beneath it is a dropdownlist. Most of the answers I found while googling involved setting the z-index. I added: .ajax__calendar_container { z-index : 9999 ; } to my css file, and I can see with IE developer toolbar that it's taking the z-index, but it ...

How can I dynamically add and remove <fieldsets> using prototype and scriptaculous?

I'm writing a basic recipe organization application and I would like to be able to dynamically add additional items to the list of ingredients using Ajax. This is what one ingredient <fieldset> looks like: <fieldset id="ingredient_item_0"> Ingredient <input id="ingredient_0" type="text" size="20" /> <div id="ingredient_list_0" style=...

jQuery Ajax Json submission problem with single quotes

I've looked around and I'm trying to find an elegant solution to this and I'm yet to find one. I have an ASMX web service in .NET that I'm trying to call that requires parameters. I'm using jQuery on the client side to call the service and my jQuery looks something like this: $.ajax({ type: "POST", contentType: "application/js...

how to upload a file with ajax,like what gmail does?

I know how to POST/GET text values with ajax, but never know how to upload files with ajax. Can someone just give a simple demo here? ...

Google Search CSE open in same page - AJAX / iframe overlay

Hi Guys, I've got the google cse on my site to display results in the right place but when i click on them it opens in a new page, i want it to open in the same page but can't figure it out. All the files are uploaded and the page can be found at http://www.alwaystwisted.com/sandbox/stagecraft/template.html Thanks in advance Regards...

Resizing Image in ASP.NET -- Output as a Stream of the resized image for

I got this block of code from link text and modified it a little because I want to use it with my AJAX Uploader that needs a Stream to be used for adding uploaded items into the attachments display; public Stream ResizeFromStream(int MaxSideSize, Stream Buffer) { int intNewWidth; int intNewHeight; System.Drawing.Image imgInp...

jQuery load content from link with Ajax

I have a -link element that has href link to page, but I have to use Ajax to load that content from href -url and not redirect user to that page. How can I modify my link to just load content from that link, so I can inject that content to current page? <a class="bind-jquery-event-here-class" href="http://webpage.com"&gt;Link&lt;/a&gt; ...

Curious: is it possible to have dynamic Ajax data variable names?

Some background: On a recent project, I tried to write a streamlined jQuery plugin that would handle some Ajax calls made when various inputs were updated. I wrote the JavaScript function as a plugin so that I could just call it on various inputs, like so: $("#email").updateChanges(); Then, from within the plugin, I collected the inp...

How to show ajax loading gif animation while the page is loading?

I try to implement AJAX in my website. When the content of the div changepass is clicked then it should load changepass.template.php. Here is the code im using for that. $(function() { $(".changepass").click(function() { $(".block1").load("views/changepass.template.php"); return false; }); My question is how to show GIF A...

How do you make the browser go dim while showing a pop up

I am quite often coming across sites that respond to a click on a What's This or a Gallery link by poping up a window in front of the original page, and making the original page go dim. Is this a fancy AJAX trick? Is it only likely to be supported in certain browsers? And most importantly, how is it done? ...

Content jumps around on inserting or updating TextBoxes/DropDownList

My .aspx form dances around when I tab from a textBox to another textBox, but the worst jumping around occurs when I tab to or from a DropDownList. All I have is few textboxes. nothing complex, no gridviews, no labels. What am I doing wrong? IE8 .NET 3.5 <%@ Page Language="vb" AutoEventWireup="false" CodeBehind="Requestor.aspx.vb" I...