Hi,
I don't really know JavaScript or AJAX very well, so
I have a question - what does this code means:
AjaxNS.AR(\'ctl00$ContentPlaceHolder1$RoundsDDL\',\'\',
\'ctl00_ContentPlaceHolder1_Radajaxpanel1\', event)
Without all of the backslashes in front of the apostrophe symbols it
is a method call. There is an object that is referred to by the
Identifier - AjaxNS - that has a property named - AR - which will have
a value that is a function, and that function is being called (as a
method, so within the function's code the - this - keyword will be a
reference to the - AjaxNS - object (as opposed to the global object))
with 3 string primitive arguments and a final argument that is the
value of whatever is referred to by the Identifier - event (probably,
but not necessarily, an Event object). Or at least if that is not the
object structure then a runtime error will replace the syntax error
that would be corrected by removing the backslashes.
None of the objects/properties mentioned above are part of javascript
(or at least ECMAScript, as they could be language extensions in
ECMAScript implementations, though if they are I have never noticed
them). Instead they are probably objects defined in/created by some
pre-exiting piece of javascript code (such as a library or some
example code from somewhere). The above then is an attempt to employ
that pre-existing code in some way, but what it is doing, or why it is
doing it, can only be answered by looking at that pre-existing code
(or maybe its documentation, if any).
I've been trying to search for what is "AjaxNS.AR", and
I've also searched for it and for the inputs in the
JavaScript of the page,
Including javascript files imported by the page with <script
src="xxxxxxxx.js" ... elements?
but
I didn't find anything so I guess it is a common function.
<snip>
It is not a common function.
Richard.