I am getting following exception
"Reference Error: Processor not defined"
I have attached following scripts that generates exception.
var URL;
try
{
alert(new XMLSerializer().serializeToString(uriDoc));
var objNodeList = uriDoc.selectNodes(sXpath);
URL = 'http://localhost:8080/AT/ParserServlet?action=feed';
for(i=0;i<objNodeList.length;i++)
{
var uriNode = objNodeList[i];
URL = URL + '&uri'+i+'='+uriNode.firstChild.nodeValue;
}
}catch(exception)
{
alert("Error occurred while loading stylesheet, :"+exception);
}
alert(URL);
//Sends request
new Ajax.Request(URL, {
method: 'get',
onComplete: showConsole,
onException: function(req,exception){
alert("Exception while showin feeds :"+exception);//Here it generates
exception.
},
onError: function(req,exception){
alert("Error while showin feeds :"+exception);
}
});
On 3/20/07, Eric Harrison <[EMAIL PROTECTED]> wrote:
>
>
> What is the exception being fired? onException is an assignable
> callback that accepts two arguments, the first being the actual
> Ajax.Request object and the second being the exception that was
> thrown. Alert that exception and let us know what it is and maybe
> we'll be able to better solve your problem.
>
> Example:
>
> new Ajax.Request('index.html',{
> method: 'get',
> onException: function(req,exception) { alert(exception); }
> });
>
> -E
>
> On 3/19/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> >
> > Hi Group,
> > In my javascript, I am using consecutive Ajax.Request.
> > First Ajax.Request works perfectly but in case of second Ajax.Request
> > method call, it generates exception and it goes to onException: block.
> > I am not sure why such exception occurs. Any input on how to get rid
> > of such exception...
> >
> > - R
> >
> >
> > >
> >
>
>
> --
> Eric Ryan Harrison
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Spinoffs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---