[Ajax] - Returning a file after ajaxlongresponse
Hello, I'm having some trouble trying to return a file after an ajaxlongresponse. I'm currently have my callable task used through ajaxlongresponse (CCAjaxLongResponsePage), I'm generating a woresponse (which is actually a file) then hand back this woresponse to the controller component (which is my regular page where I also initiate the longresponse from. I'd like the file to be downloaded without user interaction at the end of the task, but so far I'm just able to get the response into my controller (so if I make another link on the page to download it works, but I don't want this extra step). Any help would be great as I'm running out of ideas on this one:) Thanks, Xavier ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: [Ajax] - Returning a file after ajaxlongresponse
Hi Xavier, I don't think you can use the callback of an AjaxLongResponse to serve a file. I think this, because that component use javascript to perform a XMLHttpRequest and update the page with the result, so you cannot put the file in the response. I think the easieat way would be to use the callback to show a link after the longresponse is done, that link has a binding to a method that compose a response with a file in attachment. Hope this help. Daniele Hello, I'm having some trouble trying to return a file after an ajaxlongresponse. I'm currently have my callable task used through ajaxlongresponse (CCAjaxLongResponsePage), I'm generating a woresponse (which is actually a file) then hand back this woresponse to the controller component (which is my regular page where I also initiate the longresponse from. I'd like the file to be downloaded without user interaction at the end of the task, but so far I'm just able to get the response into my controller (so if I make another link on the page to download it works, but I don't want this extra step). Any help would be great as I'm running out of ideas on this one:) Thanks, Xavier ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/ildenae%40gmail.com This email sent to ilde...@gmail.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: [Ajax] - Returning a file after ajaxlongresponse
You could return an ERXRedirect pointing to a DirectAction or WOComponent that initiates your download. Am 05.08.2013 um 09:44 schrieb Dev WO webobje...@anazys.com: Hello, I'm having some trouble trying to return a file after an ajaxlongresponse. I'm currently have my callable task used through ajaxlongresponse (CCAjaxLongResponsePage), I'm generating a woresponse (which is actually a file) then hand back this woresponse to the controller component (which is my regular page where I also initiate the longresponse from. I'd like the file to be downloaded without user interaction at the end of the task, but so far I'm just able to get the response into my controller (so if I make another link on the page to download it works, but I don't want this extra step). Any help would be great as I'm running out of ideas on this one:) Thanks, Xavier ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Intermittent hostname null in URL
Every now and then when running a Wonder-based WO app in development with auto-open browser, the app URL comes up as http://null... instead of my local machine name http://mymac.local/... If I manually change the null to mymac.local all is well I thought I had seen an article on this topic but can't find it now. Anyone else had this? It can work, stop working and start working again without any intervention from me. Thanks, John ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Intermittent hostname null in URL
This usually happens when you change IP address I think. Xavier On 5 août 2013, at 15:18, John Pollard j...@pollardweb.com wrote: Every now and then when running a Wonder-based WO app in development with auto-open browser, the app URL comes up as http://null... instead of my local machine name http://mymac.local/... If I manually change the null to mymac.local all is well I thought I had seen an article on this topic but can't find it now. Anyone else had this? It can work, stop working and start working again without any intervention from me. Thanks, John ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/webobjects%40anazys.com This email sent to webobje...@anazys.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Ajax links failing on deployment
All, I have an old project that I made some changes to, and on deployment, the Ajax update links stopped working. I click on the link and the action is not triggered. I tried taking the latest wonder build and installing it, but no help. Any suggestions on how to debug this? When I compare jars with the existing (working) deployment, there are a lot of src.jar jars in the path that weren't there previously. I can't imagine this is an issue… but… Any thoughts are greatly appreciated! Ken ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Ajax links failing on deployment
Ken: Is the browser reporting that there are any missing javascript resources? Tim UCLA GSEIS On Aug 5, 2013, at 2:23 PM, Ken Anderson kenli...@anderhome.com wrote: All, I have an old project that I made some changes to, and on deployment, the Ajax update links stopped working. I click on the link and the action is not triggered. I tried taking the latest wonder build and installing it, but no help. Any suggestions on how to debug this? When I compare jars with the existing (working) deployment, there are a lot of src.jar jars in the path that weren't there previously. I can't imagine this is an issue… but… Any thoughts are greatly appreciated! Ken ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/lists%40thetimmy.com This email sent to li...@thetimmy.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Ajax links failing on deployment
Tim, OK - I went back on to the deployed site to answer your question - and the link is now working! Very weird. I do, however, have an interesting error: SyntaxError: Unexpected number '.3' It says the error is at line 311 of wonder.js, which is: eval(id + Update = function() {AjaxUpdateContainer.update(id, options) }); Strange… but at least it started working! I hope it keeps working :) Ken On Aug 5, 2013, at 5:50 PM, Timothy Worman li...@thetimmy.com wrote: Ken: Is the browser reporting that there are any missing javascript resources? Tim UCLA GSEIS On Aug 5, 2013, at 2:23 PM, Ken Anderson kenli...@anderhome.com wrote: All, I have an old project that I made some changes to, and on deployment, the Ajax update links stopped working. I click on the link and the action is not triggered. I tried taking the latest wonder build and installing it, but no help. Any suggestions on how to debug this? When I compare jars with the existing (working) deployment, there are a lot of src.jar jars in the path that weren't there previously. I can't imagine this is an issue… but… Any thoughts are greatly appreciated! Ken ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/lists%40thetimmy.com This email sent to li...@thetimmy.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Ajax links failing on deployment
I wonder if you have an element whose id is .3? Which sounds like an id generated by ERXWOContext.safeElementID which should be OK. What browser were you using? Aloha, Mr. Johnny Miller Web Development Manager Kahalawai Media Company Lahaina, HI 96761 tel: (808) 661-7962 | mobile: (808) 283-0791 website | e-mail On Aug 5, 2013, at 12:51 PM, Ken Anderson kenli...@anderhome.com wrote: SyntaxError: Unexpected number '.3' ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
problems running *AjaxExamples
When I try to run any of the ajax examples from within Eclipse, they fail with the dreaded: [2013-8-5 19:11:30 PDT] main A fatal exception occurred: ERXExtensions have not been initialized. Debugging information can be enabled by adding the JVM argument: '-Der.extensions.appserver.projectBundleLoading=DEBUG'. Please report the classpath and the rest of the bundles to the Wonder mailing list: Remaining frameworks: [Ajax] The app will run if the Ajax framework project is open in Eclipse. But if it is closed (or not imported) and instead being referenced from the installed framework it fails as above. This true for AjaxExample, AjaxExample2, MooToolsExample, and ...? Is this expected behavior? Tim UCLA GSEIS ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com