DiigIT | IT Community
No Profile Image
Welcome Guest
New User? Register | Login

ajax call

By: Manoj | 22 Sep 2008 2:27 pm

 This code is working fine. But i wanted to know if i am doing any
wrong here. I am calling a function inside another function

onComplete: function (){
$('msg').innerHTML = 'i am here';

}
inside good()

function good()
{
var url = 'myurl';
var pars = 'param1=' + param1;

var myAjax = new Ajax.Request(
url,
{
method: 'get',
parameters: pars,
onComplete: function (){

$('msg').innerHTML = 'i am here';
}
});
}

Comments

The best way to tell is to measure (with the equivalent of a ruler) with performance monitoring (Perfmon) counters. While I do a lot of PerfMon for SQL Server on Windows, I have never done Perfmon for MySQL, but if the OS is Windows I can give you some tips on Perfmon memory and CPU counters. So what is the OS and database?

I will see if I can find information on Permon counters for MySql.

Everyone will have different opinions on whether code should have functions or minimize sub procedure calls, don't listen to any of it. You can prove what is fastest and most scalable with facts of permon. I speak from 15 years of experience in IT.
By: Shailesh Singh | 22 Sep 2008

Leave a comment

Enter the text in the image
img
Can't read?
Type the characters you see in the picture below.


Close Move