473,788 Members | 2,861 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

AJAX/DOM - Works in FF but not IE?

Hey All,

I'm relatively new to all this and any help would be appreciated.
What I'm aiming to do is create a few requests, to
1. Search for a Student against XML created from the database
2. If more than one student, list all students using DOM
3. Finally, return individual student and enrolments.

Heres the code (sorry it's going to be a long one):
request.php
------------------------------------------------------
<html>
<head>
<title>AJAX Request Test</title>
<script language="javas cript">
<!--
function createRequestOb ject() {
var ro;
var browser = navigator.appNa me;
if(browser == "Microsoft Internet Explorer"){
ro = new ActiveXObject(" Microsoft.XMLHT TP");
}
else {
ro = new XMLHttpRequest( );
}
return ro;
}

http = createRequestOb ject();

function searchStudents( ) {
updateStatus('s how', 'Searching for students...', 'working');

var params = "";
var search_adno = document.getEle mentById('searc h_adno').value;
var search_forename s =
document.getEle mentById('searc h_forenames').v alue;
var search_surname = document.getEle mentById('searc h_surname').val ue;
var search_dob = document.getEle mentById('searc h_dob').value;

if (search_adno != "") params += 'student_studen treference='+
search_adno;

if (search_forenam es != "") {
if (params != "") params += '&student_foren ames='+ search_forename s;
else params += 'student_forena mes='+ search_forename s;
}
if (search_surname != "") {
if (params != "") params += '&student_surna me='+ search_surname;
else params += 'student_surnam e='+ search_surname;
}
if (search_dob != "") {
if (params != "") params += '&student_dob=' + search_dob;
else params += 'student_dob='+ search_dob;
}

if (params != "") {
http.open('post ', 'student.xml');
//http.overrideMi meType('text/xml');
http.onreadysta techange = listStudents;
http.send(param s);
}
else {
alert('You must enter search criteria');
}
}

function listStudents() {
if(http.readySt ate == "4"){
updateStatus('h ide');

var response = http.responseXM L.documentEleme nt;
var div = document.getEle mentById('resul ts');
var string = "";

var results = response.getEle mentsByTagName( 'student').leng th;

document.getEle mentById('total Students').inne rHTML =
response.getEle mentsByTagName( 'student').leng th;
document.getEle mentById('resul ts-outer').style.d isplay = "";

if (results == 1) {
getIndividualSt udent(response. getElementsByTa gName('student' )
[0].getAttribute(' id'));
}
else if (results 0) {
string = '<ul>';

for (i=0; i<response.getE lementsByTagNam e('student').le ngth; i++) {
string += '<li>';
string += '<a href="javas'+'c ript:getIndivid ualStudent(\''+
response.getEle mentsByTagName( 'student')[i].getAttribute(' id')
+'\')">';
string += response.getEle mentsByTagName( 'adno')
[i].firstChild.nod eValue;
string += ' - ';
string += response.getEle mentsByTagName( 'forenames')
[i].firstChild.nod eValue;
string += ' ';
string += response.getEle mentsByTagName( 'surname')
[i].firstChild.nod eValue;
string += '</a>';
string += '</li>';
}

string += '</ul>';

div.innerHTML = string;
}
}
}

function getIndividualSt udent(id) {
updateStatus('s how', 'Getting Student...', 'working')
// Hide old Div's
document.getEle mentById('searc h').style.displ ay = "none";
document.getEle mentById('resul ts-outer').style.d isplay = "none";
document.getEle mentById('amend ments').style.d isplay = "";

// Get Student and Populate Form
http.open('post ', 'individual.xml ');
http.onreadysta techange = populateStudent AmendmentForm;
http.send('stud ent_id='+id);

}

function populateStudent AmendmentForm() {
if(http.readySt ate == 4){
updateStatus('s how', 'Populating Form...', 'working')

var response = http.responseXM L.documentEleme nt;

document.getEle mentById('a_id' ).value =
response.getEle mentsByTagName( 'student')[0].getAttribute(' id');
document.getEle mentById('a_for enames').value =
response.getEle mentsByTagName( 'forenames')[0].firstChild.nod eValue;
document.getEle mentById('a_sur name').value =
response.getEle mentsByTagName( 'surname')[0].firstChild.nod eValue;
document.getEle mentById('a_adn o').value =
response.getEle mentsByTagName( 'adno')[0].firstChild.nod eValue;
document.getEle mentById('a_dob ').value =
response.getEle mentsByTagName( 'dob')[0].firstChild.nod eValue;

document.getEle mentById('a_add ress').value =
response.getEle mentsByTagName( 'address')[0].firstChild.nod eValue;
document.getEle mentById('a_pos tcode').value =
response.getEle mentsByTagName( 'postcode')[0].firstChild.nod eValue;
document.getEle mentById('a_ema il').value =
response.getEle mentsByTagName( 'email')[0].firstChild.nod eValue;
document.getEle mentById('a_tel ephone').value =
response.getEle mentsByTagName( 'telephone')[0].firstChild.nod eValue;
document.getEle mentById('a_ema il').value =
response.getEle mentsByTagName( 'email')[0].firstChild.nod eValue;
document.getEle mentById('a_mob ile').value =
response.getEle mentsByTagName( 'mobile')[0].firstChild.nod eValue;

http.open('post ', 'enrolments.xml ');
http.onreadysta techange = updateEnrolment s;
http.send('stud ent_id='+respon se.getElementsB yTagName('stude nt')
[0].getAttribute(' id'));
}
}

function updateEnrolment s() {
if(http.readySt ate == 4){
var response = http.responseXM L.documentEleme nt;
var div = document.getEle mentById('resul ts');
var string = "";

var results = response.getEle mentsByTagName( 'enrolment').le ngth;

if (results == 0) {
// Add Row with 'No Enrolments'
tbl = document.getEle mentById('enrol ment');
var lastrow = tbl.rows.length ;

var row = tbl.insertRow(l astrow);
var ne_cell = row.insertCell( 0);

ne_cell.colSpan = 4;
var text = document.create TextNode('No Current Enrolments...') ;

ne_cell.appendC hild(text);
}
else {
for (i=0; i<response.getE lementsByTagNam e('enrolment'). length; i++)
{
var id = response.getEle mentsByTagName( 'enrolment')
[i].getAttribute(' id');
var code = response.getEle mentsByTagName( 'code')
[i].firstChild.nod eValue;
var title = response.getEle mentsByTagName( 'title')
[i].firstChild.nod eValue;
var status = response.getEle mentsByTagName( 'status')
[i].firstChild.nod eValue;

addEnrolmentTab leRow(id, code, title, status);
}
}

updateStatus('h ide');
}
}

function addEnrolmentTab leRow(id, code, title, status) {
tbl = document.getEle mentById('enrol ments');
var lastrow = tbl.rows.length ;

var iteration = lastrow - 1;

var row = tbl.insertRow(l astrow);

// Add Hidden ID
id_input = document.create Element('input' );
id_input.type = 'hidden';
id_input.name = 'enrolment[' + lastrow + '][id]';
id_input.value = id;

document.getEle mentById('amend ments').appendC hild(id_input);

// Numbered Cell
var numbered_cell = row.insertCell( 0);
var textNode = document.create TextNode(iterat ion);
numbered_cell.a ppendChild(text Node);

// Add Code Cell with Input Box
var code_cell = row.insertCell( 1);

var code_input = document.create Element('input' );
code_input.type = 'text';
code_input.name = 'enrolment[' + lastrow + '][code]';
code_input.size = 8;
if (code != null) {
code_input.valu e = code;
code_input.disa bled = true;
}

code_cell.appen dChild(code_inp ut);

// Add Title Cell with Input Box
var title_cell = row.insertCell( 2);

var title_input = document.create Element('input' );
title_input.typ e = 'text';
title_input.nam e = 'enrolment[' + lastrow + '][title]';
title_input.siz e = 15;
if (title != null) {
title_input.val ue = title;
title_input.dis abled = true;
}

title_cell.appe ndChild(title_i nput);
// Add Status Cell with Status Select
var status_cell = row.insertCell( 3);

var status_select = document.create Element('select ');

status_select.n ame = 'enrolment[' + lastrow + '][status]';
status_select.o ptions[0] = new Option('Pre-Enrolled', '0');
status_select.o ptions[1] = new Option('Current ', '1');
status_select.o ptions[2] = new Option('Complet ed', '2');
status_select.o ptions[3] = new Option('Withdra wn', '3');
status_select.o ptions[4] = new Option('Transfe rred', '4');
status_select.o ptions[5] = new Option('Never Attended', 'W');

switch (status) {
case (status = "Current"):
status_select.s electedIndex = 1;
break;
case "Completed" :
status_select.s electedIndex = 2;
break;
case "Withdrawn" :
status_select.s electedIndex = 3;
break;
case "Transferre d":
status_select.s electedIndex = 4;
break;
case "Never Attended":
status_select.s electedIndex = 5;
break;
default:
status_select.s electedIndex = 0;
break;
}

status_cell.app endChild(status _select);

// Add Date Cell with Input Box
var date_cell = row.insertCell( 4);

var date_input = document.create Element('input' );
date_input.type = 'text';
date_input.name = 'enrolment[' + lastrow + '][date]';
date_input.size = 6;

date_cell.appen dChild(date_inp ut);
}

function updateStatus(sh owhide, text, image) {
if (showhide == "show")
document.getEle mentById('statu s').style.displ ay="";
else if (showhide = "hide")
document.getEle mentById('statu s').style.displ ay="none";

status_image = document.getEle mentById('statu s-image');
status_text = document.getEle mentById('statu s-text');

if (text != null) status_text.inn erHTML = text;
if (image != null) status_image.in nerHTML = '<img src="'+ image
+'.gif" border="0" alt="Status Image" height="16" />';
}
//-->
</script>

</head>
<body>

<div id="status">
<span id="status-image"></span>
<span id="status-text"></span>
</div>

<h1>Student Amendment Form</h1>

<div id="search">
<h2>Search For Student</h2>
<table border="0" cellspacing="0" cellpadding="0" >
<tr>
<caption>Sear ch for Student</caption>
</tr>
<tr>
<td class="field">A d No:</td>
<td><input type="text" name="search_ad no" id="search_adno "
size="6" /></td>
</tr>
<tr>
<td class="field">S urname:</td>
<td><input type="text" name="search_su rname"
id="search_surn ame" /></td>
</tr>
<tr>
<td class="field">F orenames:</td>
<td><input type="text" name="search_fo renames"
id="search_fore names" /></td>
</tr>
<tr>
<td class="field">D ate of Birth:</td>
<td><input type="text" name="search_do b" id="search_dob " /></td>
</tr>
<tr>
<td colspan="2"><in put type="button" value="Get Results"
onClick="javasc ript:searchStud ents();" /></td>
</tr>
</table>
</div>

<div id="results-outer" style="display: none">
<h2>Results</h2>
<b>Total Students:</b<span id="totalStuden ts">&nbsp;</span>
<div id="results">&n bsp;</div>
</div>

<form action="post.ph p" method="post" id="amendments " style="display:
none">
<input type="hidden" name="id" id="a_id" />
<h2>Amendment s</h2>

<table border="0" cellspacing="2" cellpadding="1" >
<tr>
<caption>Person al Details</caption>
</tr>
<tr>
<td class="field">A d No:</td>
<td><input type="text" name="adno" id="a_adno" disabled /></td>
</tr>
<tr>
<td class="field">S urname:</td>
<td><input type="text" name="surname" id="a_surname" /></td>
</tr>
<tr>
<td class="field">F orenames:</td>
<td><input type="text" name="forenames " id="a_forenames " /></td>
</tr>
<tr>
<td class="field">D ate of Birth:</td>
<td><input type="text" name="dob" id="a_dob" /></td>
</tr>
</table>

<table border="0" cellspacing="2" cellpadding="1" >
<tr>
<caption>Contac t Details</caption>
</tr>
<tr>
<td class="field">A ddress:</td>
<td><textarea name="address" id="a_address"> </textarea></td>
</tr>
<tr>
<td class="field">P ost Code:</td>
<td><input type="text" name="postcode" id="a_postcode " /></td>
</tr>
<tr>
<td class="field">E-Mail:</td>
<td><input type="text" name="email" id="a_email" /></td>
</tr>
<tr>
<td class="field">T elephone:</td>
<td><input type="text" name="telephone " id="a_telephone " /></td>
</tr>
<tr>
<td class="field">M obile:</td>
<td><input type="text" name="mobile" id="a_mobile" /></td>
</tr>
</table>
<table border="0" cellspacing="0" cellpadding="0" id="enrolments" >
<tr>
<caption>Enrolm ents</caption>
</tr>
<tr>
<th>&nbsp;</th>
<th>Code</td>
<th>Course Title</td>
<th>Status</td>
<th>Date</td>
</tr>
</table>
<div align="right">< a href="javascrip t:addEnrolmentT ableRow();">Add
New Enrolment</a></div>

<input type="submit" name="Submit" value="Update" />

</form>

</body>
</html>

XML Formats:

Student.xml
<students>
<student id="93000001061 744">
<adno>xxx</adno>
<forenames>xx x</forenames>
<surname>xxx</surname>
<title>Mr</title>
<gender>Male</gender>
</student>
<student id="93000001061 745">
<adno>xxx</adno>
<forenames>Ne w</forenames>
<surname>Person </surname>
<title>Mr</title>
<gender>Male</gender>
</student>
</students>

Enrolment.xml:
<enrolments>
<enrolment id="11938913" student="930000 01061744">
<code>xxx</code>
<title>xxx</title>
<start>03-OCT-00</start>
<end>15-JUN-00</end>
<status>Complet ed</status>
</enrolment>
<enrolment id="12128794" student="930000 01061744">
<code>xxx</code>
<title>HND Computing Full Time</title>
<start>03-OCT-00</start>
<end>15-JUN-00</end>
<status>Current </status>
</enrolment>
<enrolment id="12754637" student="930000 01061744">
<code>xxx</code>
<title>xxx</title>
<start>03-OCT-00</start>
<end>15-JUN-00</end>
<status>Current </status>
</enrolment>
</enrolments>

This all works fine in Firefox, but when it comes to IE it returns a
'null' is null or not an object error on the line:
var results = response.getEle mentsByTagName( 'student').leng th;

Is there anything glarinly obvious that I'm missing or am I using bad
practices? I'm finding it really hard to find anything on responseXML
anywhere!

Thanks in advance

Apr 2 '07 #1
13 2161
ad**@areasix.co .uk wrote:
Hey All,

I'm relatively new to all this and any help would be appreciated.
What I'm aiming to do is create a few requests, to
1. Search for a Student against XML created from the database
2. If more than one student, list all students using DOM
3. Finally, return individual student and enrolments.
<snippage>
>
This all works fine in Firefox, but when it comes to IE it returns a
'null' is null or not an object error on the line:
var results = response.getEle mentsByTagName( 'student').leng th;

Is there anything glarinly obvious that I'm missing or am I using bad
practices? I'm finding it really hard to find anything on responseXML
anywhere!
Make sure your Content-Type HTTP response headers are correct
(text/xml), FF doesn't care too much and will accept XML even if this
isn't set. IE will treat XML as text if Content-Type isn't correct.

Also bear in mind that you can't add elements form the response XML into
the page DOM in IE.

--
Ian Collins.
Apr 2 '07 #2
On 2 Apr, 12:05, Ian Collins <ian-n...@hotmail.co mwrote:
a...@areasix.co .uk wrote:
Hey All,
I'm relatively new to all this and any help would be appreciated.
What I'm aiming to do is create a few requests, to
1. Search for a Student against XML created from the database
2. If more than one student, list all students using DOM
3. Finally, return individual student and enrolments.

<snippage>
This all works fine in Firefox, but when it comes to IE it returns a
'null' is null or not an object error on the line:
var results = response.getEle mentsByTagName( 'student').leng th;
Is there anything glarinly obvious that I'm missing or am I using bad
practices? I'm finding it really hard to find anything on responseXML
anywhere!

Make sure your Content-Type HTTP response headers are correct
(text/xml), FF doesn't care too much and will accept XML even if this
isn't set. IE will treat XML as text if Content-Type isn't correct.

Also bear in mind that you can't add elements form the response XML into
the page DOM in IE.

--
Ian Collins.
Funnily enough I've got the overrideMimeTyp e('text/xml') commented out
because IE didn't like it when I first started. I can't get to the
XML file to set the content-type header so that could be a problem.
Would this be where the problem stems from?

Apr 2 '07 #3
ad**@areasix.co .uk wrote:
function createRequestOb ject() {
var ro;
var browser = navigator.appNa me;
if(browser == "Microsoft Internet Explorer"){
ro = new ActiveXObject(" Microsoft.XMLHT TP");
}
else {
ro = new XMLHttpRequest( );
}
return ro;
}
This function really isn't the best way of doing it. Don't check to see
what browser it is, but check to see if the browser supports the objects
you are trying to create. It's possible that MSIE isn't even getting a
object to work with here.

Try something like this (from http://ajaxcookbook.org/xmlhttprequest/):

function createXMLHttpRe quest() {
if (typeof XMLHttpRequest != "undefined" ) {
return new XMLHttpRequest( );
} else if (typeof ActiveXObject != "undefined" ) {
return new ActiveXObject(" Microsoft.XMLHT TP");
} else {
throw new Error("XMLHttpR equest not supported");
}
}

This doesn't rely on browser sniffing, which is what your code appears
to be doing.

--
Dylan Parry
http://electricfreedom.org | http://webpageworkshop.co.uk

The opinions stated above are not necessarily representative of
those of my cats. All opinions expressed are entirely your own.
Apr 2 '07 #4
ad**@areasix.co .uk wrote:
On 2 Apr, 12:05, Ian Collins <ian-n...@hotmail.co mwrote:
>>a...@areasix. co.uk wrote:
>>>Hey All,
>>>I'm relatively new to all this and any help would be appreciated.
What I'm aiming to do is create a few requests, to
1. Search for a Student against XML created from the database
2. If more than one student, list all students using DOM
3. Finally, return individual student and enrolments.

<snippage>
>>>This all works fine in Firefox, but when it comes to IE it returns a
'null' is null or not an object error on the line:
var results = response.getEle mentsByTagName( 'student').leng th;
>>>Is there anything glarinly obvious that I'm missing or am I using bad
practices? I'm finding it really hard to find anything on responseXML
anywhere!

Make sure your Content-Type HTTP response headers are correct
(text/xml), FF doesn't care too much and will accept XML even if this
isn't set. IE will treat XML as text if Content-Type isn't correct.

Also bear in mind that you can't add elements form the response XML into
the page DOM in IE.
*Please* don't quote signatures.
>
Funnily enough I've got the overrideMimeTyp e('text/xml') commented out
because IE didn't like it when I first started. I can't get to the
XML file to set the content-type header so that could be a problem.
Would this be where the problem stems from?
I'm sure IE requires the correct Content-Type header. Otherwise it
won't even attempt to parse the XML, it just returns text.

--
Ian Collins.
Apr 2 '07 #5
On 2 Apr, 22:56, Ian Collins <ian-n...@hotmail.co mwrote:
a...@areasix.co .uk wrote:
On 2 Apr, 12:05, Ian Collins <ian-n...@hotmail.co mwrote:
>a...@areasix.c o.uk wrote:
>>Hey All,
>>I'm relatively new to all this and any help would be appreciated.
What I'm aiming to do is create a few requests, to
1. Search for a Student against XML created from the database
2. If more than one student, list all students using DOM
3. Finally, return individual student and enrolments.
><snippage>
>>This all works fine in Firefox, but when it comes to IE it returns a
'null' is null or not an object error on the line:
var results = response.getEle mentsByTagName( 'student').leng th;
>>Is there anything glarinly obvious that I'm missing or am I using bad
practices? I'm finding it really hard to find anything on responseXML
anywhere!
>Make sure your Content-Type HTTP response headers are correct
(text/xml), FF doesn't care too much and will accept XML even if this
isn't set. IE will treat XML as text if Content-Type isn't correct.
>Also bear in mind that you can't add elements form the response XML into
the page DOM in IE.

*Please* don't quote signatures.
Funnily enough I've got the overrideMimeTyp e('text/xml') commented out
because IE didn't like it when I first started. I can't get to the
XML file to set the content-type header so that could be a problem.
Would this be where the problem stems from?

I'm sure IE requires the correct Content-Type header. Otherwise it
won't even attempt to parse the XML, it just returns text.

--
Ian Collins.
Thanks Dylan, you're right that is a much better way to do it.

So without setting the headers in the source file this isn't going to
work? But surely this can't be the problem, I'm testing using local
xml files - I've put in the <?xml version="1.0" encoding="UTF-8"?>
header at the start of the XML and still no dice.

I really can't find anything tutorial wise on the internet that does
what I need it to do.

If different to what I've got, how would you work out the number of
nodes in an XML file and return the relevent details?

Thanks in advance

Apr 3 '07 #6
ad**@areasix.co .uk wrote:
So without setting the headers in the source file this isn't going to
work? But surely this can't be the problem, I'm testing using local
xml files - I've put in the <?xml version="1.0" encoding="UTF-8"?>
header at the start of the XML and still no dice.
When you're doing stuff with XMLHttpRequest( ) objects the XML and the
page using it *must* be on the same domain. Are you trying to test this
on a locally installed server (local host) or are you just loading the
files up in your browser from the local filesystem? The latter won't work...

--
Dylan Parry
http://electricfreedom.org | http://webpageworkshop.co.uk

The opinions stated above are not necessarily representative of
those of my cats. All opinions expressed are entirely your own.
Apr 3 '07 #7
ad**@areasix.co .uk wrote:
On 2 Apr, 22:56, Ian Collins <ian-n...@hotmail.co mwrote:
>>a...@areasix. co.uk wrote:
>>>On 2 Apr, 12:05, Ian Collins <ian-n...@hotmail.co mwrote:
>>>>Make sure your Content-Type HTTP response headers are correct
(text/xml), FF doesn't care too much and will accept XML even if this
isn't set. IE will treat XML as text if Content-Type isn't correct.
>>>>Also bear in mind that you can't add elements form the response XML into
the page DOM in IE.

*Please* don't quote signatures.
>>>Funnily enough I've got the overrideMimeTyp e('text/xml') commented out
because IE didn't like it when I first started. I can't get to the
XML file to set the content-type header so that could be a problem.
Would this be where the problem stems from?

I'm sure IE requires the correct Content-Type header. Otherwise it
won't even attempt to parse the XML, it just returns text.
*I did ask you politely not to quote signatures, please don't.*
>
So without setting the headers in the source file this isn't going to
work? But surely this can't be the problem, I'm testing using local
xml files - I've put in the <?xml version="1.0" encoding="UTF-8"?>
header at the start of the XML and still no dice.
I didn't say the source file, I said the HTTP Content-Type response
header sent from the server.

--
Ian Collins.
Apr 3 '07 #8
Dylan, I have the a copy of the generated XML file that will be
deployed from the server stored locally for development and testing,
the student.xml and enrolment.xml are generated by a file from the
server, but once I've finished the files I'm calling to will change
but will be relative to the html.

Ian, So to clarify - the server header sent from the XML file? I'm
self taught so I really don't know technical terms.

I have tried returning the content type
using .getResponseHea der("Content-Type") - but comes back
blank. .status also doesn't return 200, but 0 - is this also a
problem?

Would you also suggest JSON? XML is the preferred choice because I
could then use it to integrate with other systems but would you
recommend taking a different route?

Apr 3 '07 #9
ad**@areasix.co .uk wrote:
>
Ian, So to clarify - the server header sent from the XML file? I'm
self taught so I really don't know technical terms.
NO, the header is part of the HTTP response packet sent back to the
browser from the web server. You realy should be testing this with a
proper server, not local files. As Dylan made clear, the behaviour is
quite different.
Would you also suggest JSON? XML is the preferred choice because I
could then use it to integrate with other systems but would you
recommend taking a different route?
That depends of a number of factors, as you have found browser
differenced are a pain in the arse with XML (mainly because you can't do
much with the response on IE). JSON is much easier to work with in a
pure browser to server application.

--
Ian Collins.
Apr 3 '07 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
2991
by: noballack | last post by:
I've got a problem, I'm working with Ajax in a web with a form with a list of checkbox added to the form via an Ajax.Updater method. These added checkboxs are not been sended by the form if I use Firefox or Safari. My source code is something like that: <script type="text/javascript" src="http://www.my_web_page.com//js/prototype-1.4.0.js"></script> <script> function showMoreOptions( url, pars, div_id ){ if...
1
4033
by: geevaa | last post by:
http://www.phpbuilder.com/columns/kassemi20050606.php3 XMLHttpRequest and AJAX for PHP programmers James Kassemi Introduction: Although the concept isn't entirely new, XMLHttpRequest technology is implemented on more sites now than ever. Compatibility is no longer an issue (IE, Mozilla and Opera all support it), and the benefits to using it are amazing. There are too many PHP programmers avoiding any
8
4344
by: Bill Gower | last post by:
I have a webapp that uses the AjaxControlToolkit. The app and ajax works fine when run within my dev server in Visual Studio 2005 but does not work on IIS. Any Suggestions? Bill
10
3482
by: paulie | last post by:
Hi, I have been experiencing an issue when trying to use AJAX to reload a DIV area using a timer of 2000ms, which contains a html page with another DIV and javascript. Scenario ------------- I have perl script which simply runs a ps on a Solaris server and generates a static html page with all of the code perfectly and this html page works fine when viewing it statically or with a META REFRESH header tag. The idea is to give the user...
5
3111
by: simon | last post by:
hello, I have a server set up on my local (home) network and can not get an ajax application to run on the box. it works fine on our developement server and also works fine locally. I copied the application to the server, setup the website, installed the ajax extensions, also loaded/enabled front end extensions so i could load the site in visual studio 2005. when i attempt to run the site, either from the server or from another pc...
22
1695
by: sheldonlg | last post by:
I am looking for a clean solution to a problem that I solved in, what I call, a "dirty" way. Here is what I want to do. I have a dropdown list. Clicking on an item in the dropdown list invokes an AJAX call that gets data which populates the entire lower part of my screen. It does this with an innerHTML for the div tag that holds all of this. This works fine. I also have an "Edit" button that I want to show next to dropdown list,...
1
2057
by: Mark B | last post by:
This is my first try at using AJAX. I want the calendars to be enabled if the user checks CheckBox1. It works OK for a normal all page refresh but once I introduced the AJAX code it stopped working. Any ideas? <%@ Page Language="VB" AutoEventWireup="false" CodeFile="default-ajax.aspx.vb" Inherits="pages_verify_groups_Default" Debug="true" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
3
17696
by: George | last post by:
I am doing an AJAX call using JQuery on my page to which returns JSON objects and everything works fine. Now I decided to use ashx handler instead of and simply write JSON out. Then my problems begun. So here is JQuery call $.ajax({ type: 'POST', url: url,
0
9656
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10172
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10110
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8993
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6750
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5398
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5536
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4069
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3670
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.