ajax

How can I use a php file's output with Ajax?

I was following this tutorial. I need to use a php file's ouput in my HTML file to dynamically load images into a gallery. I call function setOutput() { if (httpObject.readyState == 4) document.getElementById('main').src = httpObject.responseText; alert("set output: " + httpObject.responseText); } from ...

How can I make my Modal Popup Extender Modal? (Disable background)

I added a simple ajax modal popup extender to my asp.net application. It appears and functions correctly, however unlike the sample on the ajax toolkit website, it does not disable/dim the rest of the page. What do I have to do to achieve this effect? <asp:Button ID="btnSaveAndClose" runat="server" Text="Save" onclick...

Mirror SQL's LIKE functionality for a PHP array?

At the minute I have a page with an AJAX script that searches a database with LIKE '%search term from input box%'. I need to modify it so that instead of searching the database it searches an array (that has been constructed from two tables - I can't use a JOIN because there's a bit more to it than that). How do I go about creating a ...

AJAX history remote usage enabling back button and loading old page position in divs

Hi gurus, Thanks again for helping me with this simple solution My scenario is: I have a Jquery + AJAX + CodeIgniter web page where I have many divs like <div id="team"> </div> <div id="wp"> </div> <div id="phase"> </div> <div id="tasks"> </div> On opening the page the page will contain a table with some links in div team. When I clic...

How to get value from elements and add to array with specific names using loop

I am currently sending a query variable to a php file like this: query = "?price_from=" +price_from+ "&price_to=" + price_to etc etc... I want to populate this query variable by using a loop to check if the user has chosen any search criteria in dropdown lists that exists on the page... It is only optional to chose the search cr...

Jquery Ajax, missing ; before statement

I have a jquery ajax call that is making a cross-domain request. all the js syntax looks good, and the response looks good, but i keep getting the "missing ; before statement error" in firebug (console). Here's my web service: [WebMethod()] [ScriptMethod(ResponseFormat = ResponseFormat.Json, XmlSerializeString = false, UseHttpGet = tr...

quickest way to display data

I have several forms in one HTML page... I have to filter these forms somewhere... (eg check if all or some form elements have values etc...) I am using ajax to submit the forms, but i dont know if i should filter it before submitting it to my php file, or filtering it inside the php file? I want the fastest way for the data to show u...

set total number of checkbox in array

i have check box array like this for($j=1;$j<=10;$j++) <input type="checkbox" name="chkLimit[]" id="chkLimit_<?php echo $j;?>" value="<?php echo $j;?>" /> i got 10 check box and i write the jquery code like this... $(document).ready( function (){ setLimitSelection(); } ); function setLimitSelection(){ $('input...

Are there any free Ajax implementation of a HTML editor that can be used in the browser?

What I'm looking for is something similar to this ASP.net Ajax Control. However, I need a solution that uses only free technologies (e.g. PHP, Javascript). ...

need sample of jquery modal dialog content loaded from controller action

My ASP.NET MVC app opens and displays the dialog fine however I can't figure out how to get DB content into it. I have read about making an ajax call to get the data. My disconnect is how it gets displayed in my . Any links where this is done (full code). Thanks. ...

C# ASP.NET Slow AJAX loading

When I call a page with AJAX, everything goes fast and well. But if I have a page (for testing purposes) with the following code: for(int i = 0; i < int.MaxValue; i++) {} the page loading is longer, which is obvious. But then, when I load a page that only sets a text on a label, it takes longer (about 5 seconds), but this ain't the ca...

loading div content from external with jQuery.load into own div

Let's say that I have two html pages that are identically designed, but have different content. I have the same div with the same id on both pages. How do I use jQuery.load (or what do I use) so that the div#conent does not get added into the div#content of the first page. I've tried this: $(document).ready(function(){ $("a#linkHome"...

AHAH loads the code from the html file, but the code in the block is not executed

I am using AHAH - http://binnyva.blogspot.com. My driver html page contains a table of two cells. The right cell contains a link: <a href="javascript:ahah('index.html','video');">test</a> Index.html: <script src="http://domain.name/flashplayer/flowplayer-3.1.4.min.js"&gt;&lt;/script&gt; <a href="http://domain.name/flashplayer/vide...

jquery $.post function's result data

When I make an ajax call (see code below), what is "data". How do I set and get data // $.post() $("#post").click(function(){ $("#result").html(ajax_load); $.post( loadUrl, {language: "php", version: 5}, function(data){ $("#result").html(data); }, "j...

The Facebook footer bar is an iframe, so why it doesn't it reload with the rest of the page?

I want to know how Facebook is doing their iframe footer bar. I mean, i know they have an iframe on footer, but i want to know how they are reloading pages without reloading the iframe also, 'cause the iframe always stick there even though the page does reload again. Any ideas/knowledge? EDITED: Try clicking on a link which is differen...

Best way to display a loading gif while a database call process on the first page load.

So I'm new to Ajax. I have an ASP.NET wizard panel wrapped in an ASP Ajax UpdatePanel. The Ajax is working well, with the page doing partial updates as you step through the wizard. I'm even firing an animated gif images using the unblockUI.js jQuery library to prevent multiple page submits. What I can't figure out is when the page fi...

jquery simple ajax call (flag)

What's the best way to convert this: <a href="#" onclick="saveFavorite('345', '[email protected]');> Favorite</a> To a clean/reusable ajax call with jquery? ...

Alternate methods for highlighting asynchronous page changes with jQuery

Some jQuery use cases call for letting the user know (usually through some animation) that something on the page has changed. For example, the user enters a format string in a text box (with codes for different tokens that can be replaced), then 1 second after the user is done typing, a different area of the page updates a live preview ...

PHP session not working with JQuery Ajax?

Update, Solved: After all this I found out that I was calling an old version of my code in the update ajax. 'boardControl.php' instead of 'boardUpdate.php' These are the kinds of mistakes that make programing fun. I'm writing a browser gomoku game. I have the ajax statement that allows the player to play a piece. $(document).ready(fu...

Making an Ajax call and returning a boolean value in an ASP.NET MVC application

I want to make an ajax call (using JQuery) in an ASP.NET MVC application and return a boolean value, how can I do this? Thanks ...