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-users googlegroups.com
To unsubscribe from this group, send email to
cometd-users-unsubscribe googlegroups.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/
-~----------~----~----~----~------~----~------~--~---
|