libsfan01 wrote:
Im trying to use prototype
Javascript is a language that uses prototype based inheritance, in which
functions have - prototype - properties which refer to objects that will
be used as the base of a prototype chain for objects constructed with
those functions, and is employed in resolving property name on those
constructed objects. If you speak of using "prototype" in the context of
javascript it is these aspects of the language that you will initially be
assumed to be referring to. If you want to talk about an unwisely named
third party product then you should qualify its lable.
for an xmlhttprequest, but it doesn't seem
to be working cross-browser.
As Prototype.js is not ECMAScript compliant it should not be expected to
work in any modern browser, and so not be expected to work cross-browser
(but it was never designed to be cross-browser anyway).
Is there someway of getting it to be IE6
compatible (active x)?
IE 6 is one of the few browsers where the script environment has been
observed to comply with Protoype.js's expectations of its environment. So
it (prototype.js) should 'work' in IE 6.
here's my code so far, because of the level of abstraction,
i guess i would need to edit the prototype.js file?
The Prototype.js code is so convoluted and interdependent that I would be
reluctant to attempt to modify it. XML HTTP requests are very simple
things in themselves, and examples of code that employs them directly is
readily available.
<script type="text/javascript" src="includes/javascript/prototype.js">
</script>
function getAssociateData() {
new Ajax.Updater("results", "index.php", {
asynchronous: true,
method: "get",
parameters: "",
^
The contents of an object literal may not end with a comma, that is a
syntax error. Any browser that does not disregard that syntax error
(which should be all, but will probably just be most) will never execute
this code.
//onFailure:
});
Richard.