The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
vB_AJAX_Handler - Where is this defined?
So...maybe I'm the only one who noticed (or the only one who has this problem ), but AJAX scripting does NOT appear to work with Mozilla. Not FireFox, mind you. FireFox works fine. MOZILLA, however, does not.
I believe that the solution lies somewhere in this little snippet I found on Mozilla.org's AJAX tutorial Code:
In order to make an HTTP request to the server using JavaScript, you need an instance of a class that provides you this functionality. Such a class was originally introduced in Internet Explorer as an ActiveX object, called XMLHTTP. Then Mozilla, Safari and other browsers followed, implementing an XMLHttpRequest class that supports the methods and properties of Microsoft's original ActiveX object. As a result, in order to create a cross-browser instance (object) of the required class, you can do: if (window.XMLHttpRequest) { // Mozilla, Safari, ... http_request = new XMLHttpRequest(); } else if (window.ActiveXObject) { // IE http_request = new ActiveXObject("Microsoft.XMLHTTP"); } (For illustration purposes, the above is a bit simplified version of the code to be used for creating an XMLHTTP instance. For a more real-life example, see step 3 of this article.) Some versions of some Mozilla browsers won't work properly if the response from the server doesn't have an XML mime-type header. To satisfy this, you can use an extra method call to override the header sent by the server, just in case it's not text/xml. http_request = new XMLHttpRequest(); http_request.overrideMimeType('text/xml'); The next thing is to decide what you want to do after you receive the server response to your request. At this stage you just need to tell the HTTP request object which JavaScript function will do the work of processing the response. This is done by setting the onreadystatechange property of the object to the name of the JavaScript function you plan to use, like this: The question is, where can I find where the vB_AJAX_Handler is defined so I can poke around at it? Currently, all you do is say "somerequest = new vB_AJAX_Handler()", I want to look at it from a deeper level. Suggestions? |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|