Frank H. Shaw
03-04-2009, 01:20 PM
The following error is happening and I have some idea that the defining class for the ajax is missing and do not have any idea of how to include the class defination into my php file.
The error i am getting is this error:
Fatal error: Class 'vB_AJAX_Handler' not found in C:\Inetpub\vhosts\burningtaper.org\httpdocs\forums \calendar.php on line 131
At the line 131 number is the following line.
PHP Code:
My_AJAX_Object = new vB_AJAX_Handler(true);
What could be missing ?
Here is all the setup code that i put in the top of my file calendar.php you can look at the other posting of mine to get more detail but I have include that part below.
// ########################## AJAX RECIVER ############################
function My_AJAX_Reciever()
{
if (My_AJAX_Object.handler.readyState == 4 && My_AJAX_Object.handler.status == 200 && My_AJAX_Object.handler.responseText)
{
alert('Data recieved successfully\n\n' + My_AJAX_Object.handler.responseText);
}
}
// ########################## AJAX SETUP ############################
My_AJAX_Object = new vB_AJAX_Handler(true);
My_AJAX_Object.onreadystatechange(My_AJAX_Reciever );
// ################################################## ######################
// ######################### START MAIN SCRIPT ############################
// ################################################## ######################
As you see I put the setup stuff before the START MAIN SCRIPT and I hope that is ok to do so?
In my guess it seems to me the error means that the ajax defination for the class is not tirned on or was never defined.
I really do not know at this level in the vbulletin product how this is done so things get even more complex when it is all kind new stuff for me.
I have read all the articals on ajax it was a help but it is not enough because - I do not know how to defne the class as the error sujgest above.
Can someone give me a example how this is done and how to fix things up so that at least when I make a call vB_AJAX_Handler(true) the thing does not error out first thing.
I also know that there is a need to allow for multi browser support in the class define but I can not understand that either. Please explain?
I have spent the last couple of days looking through the scripts my eyes hurt me.
Please explain me what is missing here and then I think I have the rest preity close I hope.
THANKS
Frank H. Shaw
PS I more details are needed all this: i have posted every thing i have done so far in my modifaction is also posted on a old thread at this url :
https://vborg.vbsupport.ru/showthread.php?p=1759693#post1759693
The error i am getting is this error:
Fatal error: Class 'vB_AJAX_Handler' not found in C:\Inetpub\vhosts\burningtaper.org\httpdocs\forums \calendar.php on line 131
At the line 131 number is the following line.
PHP Code:
My_AJAX_Object = new vB_AJAX_Handler(true);
What could be missing ?
Here is all the setup code that i put in the top of my file calendar.php you can look at the other posting of mine to get more detail but I have include that part below.
// ########################## AJAX RECIVER ############################
function My_AJAX_Reciever()
{
if (My_AJAX_Object.handler.readyState == 4 && My_AJAX_Object.handler.status == 200 && My_AJAX_Object.handler.responseText)
{
alert('Data recieved successfully\n\n' + My_AJAX_Object.handler.responseText);
}
}
// ########################## AJAX SETUP ############################
My_AJAX_Object = new vB_AJAX_Handler(true);
My_AJAX_Object.onreadystatechange(My_AJAX_Reciever );
// ################################################## ######################
// ######################### START MAIN SCRIPT ############################
// ################################################## ######################
As you see I put the setup stuff before the START MAIN SCRIPT and I hope that is ok to do so?
In my guess it seems to me the error means that the ajax defination for the class is not tirned on or was never defined.
I really do not know at this level in the vbulletin product how this is done so things get even more complex when it is all kind new stuff for me.
I have read all the articals on ajax it was a help but it is not enough because - I do not know how to defne the class as the error sujgest above.
Can someone give me a example how this is done and how to fix things up so that at least when I make a call vB_AJAX_Handler(true) the thing does not error out first thing.
I also know that there is a need to allow for multi browser support in the class define but I can not understand that either. Please explain?
I have spent the last couple of days looking through the scripts my eyes hurt me.
Please explain me what is missing here and then I think I have the rest preity close I hope.
THANKS
Frank H. Shaw
PS I more details are needed all this: i have posted every thing i have done so far in my modifaction is also posted on a old thread at this url :
https://vborg.vbsupport.ru/showthread.php?p=1759693#post1759693