List Info

Thread: XMLHttpTransport error callback failed: ReferenceError: data is not defined




XMLHttpTransport error callback failed: ReferenceError: data is not defined
country flaguser name
United States
2007-02-19 03:01:01

XMLHttpTransport error callback failed: ReferenceError: data
is not
defined

Can any one give me a clue for the above error message?

I've subscribed to a topic, all is good.
I then unscubscribe, and seems good.
I then request a PDF from another servlet on the same
server.
Error message is displayed.
I resubscribe, servlet code seems fine, subscription
accepted.
The webpage doesn't connect back to get the data at
anypoint.

Any clues/ideas would be great.

Jeff Porter


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "cometd-users" group.
To post to this group, send email to cometd-usersgooglegroups.com
To unsubscribe from this group, send email to
cometd-users-unsubscribegooglegroups.com
For more options, visit this group at http://gr
oups.google.com/group/cometd-users

Visit the cometd website at http://www.cometd.com/
-~----------~----~----~----~------~----~------~--~---


Re: XMLHttpTransport error callback failed: ReferenceError: data is not defined
country flaguser name
United States
2007-02-20 04:55:11

This was caused by the javascript redirecting the main page
to a new
location.

In the normal HTML world this is fine for prompting the
browser to
download a file.
In the world of cometd this is a bad thing.

Workaround: Open a new window to download the
document/file.

function executeReport(reportID) {
      	newwindow=window.open("../ReportServlet?
reportID="+reportID,'name','height=100,width=100');
		if (window.focus) {newwindow.focus()}
}

Jeff Porter


On Feb 19, 9:01 am, "PORTE...wmgmail.wmg.warwick.ac.uk"
<jeffrey.por...gmail.com> wrote:
> XMLHttpTransport error callback failed: ReferenceError:
data is not
> defined
>
> Can any one give me a clue for the above error
message?
>
> I've subscribed to a topic, all is good.
> I then unscubscribe, and seems good.
> I then request a PDF from another servlet on the same
server.
> Error message is displayed.
> I resubscribe, servlet code seems fine, subscription
accepted.
> The webpage doesn't connect back to get the data at
anypoint.
>
> Any clues/ideas would be great.
>
> Jeff Porter


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "cometd-users" group.
To post to this group, send email to cometd-usersgooglegroups.com
To unsubscribe from this group, send email to
cometd-users-unsubscribegooglegroups.com
For more options, visit this group at http://gr
oups.google.com/group/cometd-users

Visit the cometd website at http://www.cometd.com/
-~----------~----~----~----~------~----~------~--~---


[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )