ajax tutorial on w3school at http://www.w3schools.com/ajax/ajax_database.asp
In this function (function GetXmlHttpObject()), it creates a object:
new XMLHttpRequest(); or new ActiveXObject("Microsoft.XMLHTTP");
but it doesn't delete this object after getting respons from server.
Are there memory leaks ?
...
Greetings,
I have a list of user comments on a page, with a next button which makes an Ajax call to get the second set of comments.
The problem is, the height of the comments div temporarily becomes very small while the loading bar is in place. This makes the user need to scroll back down to see the new comments
The issue can be seen...
Hi,
I want to insert text field values to database using javascript jquery ajax call to C# server method. problem is that ajax call run successfully but C# is not updating the database. what could be the reason. please reply soon.asp code is giving below:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="dbTest.aspx.cs" Inheri...
just yesterday i finished one site, which provides video watching.
but now i need to show the number of views of each film. i never wrote such thing, so i don't know what to do.
maybe i must add one field in mysql database, and increase it every time the video opened?
but i use flash player, and i can't wrote script onclick of player....
I'm using Json to retrieve data from a database, construct some html, and put it to the page, but I'm getting a syntax error after my tag, which is the last tag in the string from my php file.
PHP:
if($QString == "")
{
$query = "SELECT * FROM categories";
$result = mysql_query($query);
while($row = mysql_fetch_array($resu...
I'm building a custom CMS where you can add and delete clients using ajax and jquery 1.4.2.
My problem lies after I delete a div. The ajax is used to complete this and refresh automatically.. But when I go to create a new div (without a hard refresh) it puts it back in the slot of the div I just deleted.
How can I get this to completel...
<script type="text/javascript" charset="utf-8">
$(document).ready(function() {
$("a").click(function() {
$("#myDiv").load( "job_board_data.php", { pageNo: $(this).text()} );
return false;
});
});
</script>
<a href="job_board_data.php?p=1">1</a>
How can I pass variables to my job_board_data.php script???? I wa...
This is my first time playing with both ajax and objects, so please go easy on me
I have 3 pages that make up the tester shopping cart.
1) page with 'add' 'remove' buttons and ajax code to call the PHP functions on page 2. this is the actual user page with the HTML output.
2) page with PHP cart function calls, receives $_GET requests ...
Hi,
i am using Struts 2 and the Json plugin, to make ajax requests. I want to know if there's one way to validate my json, with struts validator, and show field errors in my jsp, before calling the @SMDMethod in my Action.
Thanks for your help.
...
To save some time on discussing my problem you could check the demo below:
http://demos.telerik.com/aspnet-ajax/combobox/examples/functionality/filteringcombo/defaultcs.aspx
I already checked the ListBoxExtender on the Ajax Control Toolkit but it wouldn't give me fine results.
What I want to do is to filter a listbox which is populate...
Hi...
I'm trying to make a progress bar that updates the user on the progress of the AJAX call.
My immediate thinking was that I need an AJAX call to start a thread on the server, allowing the starting AJAX call to finish, and allowing the thread to send updates back to the user.
For the purpose of simplicity, disregard the actual pro...
I am currently playing around with jqueries drag and drop, basically I currently have a div (.drag_check) that holds a checkbox, I have the drag and drop working but I want to alert out the checkbox's ID once the element is dropped, I assume I have to use child but all my attempts have returned 'undefined'. Below is my code,
$('.drag_c...
ajax search suggest autocomplete. when i input something, ajax sends them to the server, query them and send back to client. But sometime when i input some words, ajax sends them to the server, server keep querying them. Should I set up timeout?
...
Hi all,
I am trying to show the message updated in DB using the following code
var showtime = setInterval('redirect()',5000);
////Redirecting to DB Status /////
function redirect()
{
xmlhttp = GetXmlHttpObject();
if (xmlhttp==null)
{
alert ("Browser does not support HTTP Request");
return;
}
var url="isResult...
Hi,
is it possible to get the last value of an string, that looks like this for example:
tm="1610612741|Bulls|Chicago|CHI"
and save it as a variable?
Something like that:
var tm = $(this).find('htm').attr('tm');
I only need the "CHI" string.
I tried everything, but what i found doesnt work. I get the string and the var from an x...
Okay, so I appreciate that Javascript is not C# or PHP, but I keep coming back to an issue in Javascript - not with JS itself but my use of it.
I have a function:
function updateStatuses(){
showLoader() //show the 'loader.gif' in the UI
updateStatus('cron1'); //performs an ajax request to get the status of something
updateStatus('cro...
How can we get data from the server in an asynchronous way in Flash? I am looking for something like XHR in actionscript.
...
I asked a question [here] recently and it's just not providing me with an answer. Here's what I want to do and you can see my first attempt at the link above:
User submits form
Stop default submit action
check to see if a similar entry exists in database
If it does, display a notice asking them if they want to submit anyway and give ...
On Google code playgorund, I tried to load multiple library like below
google.load("jquery", "1");
google.load("mootools", "1.2.1");
But it breaks the code, why ? Thanks
EDIT: In the left hand pane in playground, I select Library and then jquery, its runs just fine but when I also add mootools in the code, it won't work and I don't s...
The Problem
I am tring to do an ajax request to a PHP script, however I am having a problem getting the data into the format that the PHP is expecting it, the PHP is expecting the data to come in as array within an array something like,
Array
(
[cv_file] => Array
(
[849649717] => Y
[849649810] => Y
...