I'm building a PHP page that will load some off site content into a DIV. There are other static elements on the page also. The problem I'm having is that the page takes too long to load because PHP loads the off site content before displaying the page.
I am considering loading the off site content in the DIV via AJAX. I'm assuming the r...
the first time the code is executed it correctly produces:
load complete
but the 2nd time it produces:
load complete
load complete
the 3nd time it produces:
load complete
load complete
load complete
etc... so the 20th time the load function completes the call back function gets fired 20 times.
$('#image-tag').load(function () {
...
I have a facebook like system, I want the DIV containing the messages to automatically update when a new message is posted. Is this possible? If so, how would i go about doing this?
<?php include('config.php'); ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html>
<head>
...
According to the Mozilla Developer Center HTTP access control article, cross-site POST requests can be "simple" -- i.e. require no preflighting -- if the request's Content-Type is application/x-www-form-urlencoded.
I'm not getting this behavior in Firefox, and I'm not understanding at all why this is so. Here's my setup code:
function ...
I am in a situation where I would like to implement Ajax Push in a Java based web app to update things like counts of item in stock on the web page as they change without any interaction from the user. I understand that the technology needed to do this is called Ajax Push. I also have some experience with JSF 2.0, and this is preferred...
Can anyone help me here, when i run this code the page repeats its self. I also need it to refresh which it isnt doing.
Like this:
EDITED Code Below:
<?php include 'config.php' ?>
<script language="javascript">
function createRequestObject() {
var req;
if(window.XMLHttpRequest){
// Firefox, Safari, Opera...
req = ...
i made a chat using php and ajax, and i am using a while loop to check the database for new messages.
this is the code that retrieves the message:
//retrive message
function update(){
$(document).ready(function(){
$.ajax({
async: true,
type: "POST",
url: "listen.php",
success: function(data){
$("#myp").before(data);
},
comple...
I have a website that grabs a random entry from a database and displays it for the viewer. This is the code I am currently using:
$rows = "SELECT * FROM xxx";
$rows1 = mysql_query($rows);
$rows2 = mysql_numrows($rows1);
$id= rand(1, $rows2);
This generates an ID number which is used to select a corresponding database entry, and of cou...
There are a few options for editing a model in-place while in the Show page, i.e. without having to load a form in the Edit page. For example, see http://www.ruby-toolbox.com/categories/rails_in_place_editing.html.
Has anyone had any experience using any of these options (or others) in Rails 3? Any pointers or advice?
In my case, I hav...
Assuming I have this array:
Array(
[0] => Array(
[Brand] => 'Toyota',
[Model] => 'Camry',
[Color] => 'Red',
[Year] => 2002
)
[1] => Array(
[brand] => 'Nissan',
[Model] => 'Skyline',
[Color] => '...
I wrote my own php captcha script, with a jpeg header, so that I can say
<img src="captcha.php">
which works by storing the value of the captcha into the session variable. When the user can't read it, I want it to be refreshable.
I first tried
$("#refresh").click(function() {
$("#captcha").attr("src","captcha.php");
});
but o...
Hi,
I have installed Ajax in my local machine for development (VS 2005). its working fine in local machie. when i deploy the code in server its throwing an error stating `
"Could not load file or assembly 'System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The syst...
I have this PHP coding (See below) and I'm trying to include a Ajax drop down list into the input form. The javaScript and PHP page both work fine with the normal html form that is inserted right at the bottom of the page. I believe the problem lies in this piece of coding, because it isn;t picking up the "ch=" value
NORMAL PAGE (FO...
I am new to Qooxdoo. I downloaded it. After that i do not know the next step. I want to know how to work in it. I went through http://qooxdoo.org/documentation/1.1#getting_started but am not getting it to work. Please can anyone tell me how it should work? What steps should I take?
When i execute the create-application.py in cmd, i get ...
I'm trying to submit a form via AJAX and prevent a redirect after the form is submitted. I don't understand why I'm having this issue since I set autoRender to false.
Controller Code
function add() {
$this->autoRender = false;
if (!empty($this->data)) {
$this->data['Comment']['user_id'] = $this->Auth->user('id');
...
Hello, I have a function that allows me a selection from a list to update a table. When I tested in FireFox it works without problem
But my application should also run IE6 and when I test any results my table does not update much but I get to put my lines in my table.
My script:
<script type="text/javascript">
function actualiserDLIS()...
I want to setup a automated backup via PHP, that using http/s I can "POST" a zip file request to another server and send over a large .zip file , basically, I want to backup an entire site (and its database) and have a cron peridocally transmit the file over via a http/s. somethiling like
wget http://www.thissite.com/cron_backup.php?d...
I am developing an application which requires the reading and writing of XML files. Reading I've got covered, but is writing possible at all? The layout of my webapp is like this:
../includes/ (irrelevant)
../content.xml (xml to be written to)
../index.html (irrelevant)
../admin.html (file to write with)
Any help appreciated, thanks.
...
I used to implement this above title by using iframe but now I dont want to use it any more I have some plans in my mind I need to implement them by opening an external page inside our asp.net page without using any iframe I have only simple aspx page with div tage and panel and some other serverside componants, I just want to know how I...
Here's the rundown:
I am creating a table dynamically from the results of an AJAX call. To add the rows, I am using the "after" function, seeing as there are certain rows in the table that function as headers.
After I add these rows, I have a quantity box that I would like to make editable.
I am able to add an event to it, however I ...