Struts2 + dojo + ajax for confirm button

2011-02-16 Thread Emi Lu
Good afternoon, I found very good examples for ajax + asp: http://www.asp.net/ajax/ajaxcontroltoolkit/samples/ConfirmButton/ConfirmButton.aspx For example, confirm button May I know where I can find similar examples for Struts2 + dojo + ajax for confirm button please? Thanks a lot! -- Lu Ying

Re: Struts2 + dojo + ajax for confirm button

2011-02-16 Thread Dave Newton
+ asp: http://www.asp.net/ajax/ajaxcontroltoolkit/samples/ConfirmButton/ConfirmButton.aspx For example, confirm button May I know where I can find similar examples for Struts2 + dojo + ajax for confirm button please? Thanks a lot! -- Lu Ying

Re: Struts2 + dojo + ajax for confirm button

2011-02-16 Thread Emi Lu
On 02/16/2011 03:13 PM, Dave Newton wrote: Please, please be aware that the S2 Dojo plugin is *deprecated*, for good reasons. If you're just using raw Dojo, your best bet is the Dojo documentation/samples. Ok. If dojo is deprecated, then how struts2 supports ajax? -- Lu Ying On Wed, Feb

Re: Struts2 + dojo + ajax for confirm button

2011-02-16 Thread Dave Newton
. If you're just using raw Dojo, your best bet is the Dojo documentation/samples. Ok. If dojo is deprecated, then how struts2 supports ajax? -- Lu Ying On Wed, Feb 16, 2011 at 2:52 PM, Emi Luem...@encs.concordia.ca  wrote: Good afternoon, I found very good examples for ajax + asp

Re: Struts2 + dojo + ajax for confirm button

2011-02-16 Thread Emi Lu
is *deprecated*, for good reasons. If you're just using raw Dojo, your best bet is the Dojo documentation/samples. Ok. If dojo is deprecated, then how struts2 supports ajax? -- Lu Ying On Wed, Feb 16, 2011 at 2:52 PM, Emi Luem...@encs.concordia.cawrote: Good afternoon, I found very good

File upload in struts2 using Ajax.

2009-10-05 Thread sharath karnati
Hi All,      Anyone implemented struts2 file upload with Ajax? file upload will display progress bar for showing file upload status.      I tried below one but it is not working      http://www.struts2.org/ajax-file-upload-in-struts2-using-ajax-file-upload-plugin/      Please send me links

File upload in struts2 using Ajax.

2009-10-05 Thread sharath karnati
Hi All,      Anyone implemented struts2 file upload with Ajax? file upload will display progress bar for showing file upload status.      I tried below one but it is not working      http://www.struts2.org/ajax-file-upload-in-struts2-using-ajax-file-upload-plugin/      Please send me links

Re: SPAM WARNING!: RE: Struts2 : Calling AJAX function on button click(ONLY)

2008-10-29 Thread Steven Yang
Hi on thing i noticed is that you have a notifyTopics attribute on you submit tag which i dont think is necessary and used wrong. i havent used dojo for a long time, so i am not sure if they changed any api or settings. but just a reminder you might need to take a look. you dont have to specify

Re: Struts2 : Calling AJAX function on button click(ONLY)

2008-10-29 Thread Roger
On Tuesday 28 October 2008 20:01:41 Kanade, Sayali wrote: Thanks for your reply, but not sure it answers my question. My question is: How can I prevent a div from refreshing its contents on page load? The div should only be refreshed on button click. My problem is that, my div loads on page

RE: Struts2 : Calling AJAX function on button click(ONLY)

2008-10-29 Thread Kanade, Sayali
to Struts 2 and got all confused. Thanks again, Regards, Sayali. -Original Message- From: Roger [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 29, 2008 7:56 AM To: Struts Users Mailing List Subject: Re: Struts2 : Calling AJAX function on button click(ONLY) On Tuesday 28 October 2008 20:01

RE: Struts2 : Calling AJAX function on button click and passing form parameters to the same

2008-10-28 Thread Kanade, Sayali
WARNING!: Struts2 : Calling AJAX function on button click and passing form parameters to the same Hi All, I am new to Struts 2, so please forgive me if this question is inane. I have a very simple form which has some checkboxes and on the click of the submit button of the form, I want to pass

RE: Struts2 : Calling AJAX function on button click and passing form parameters to the same

2008-10-28 Thread Mileidys Gonzalez Prieto
-Original Message- From: Kanade, Sayali [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 28, 2008 11:05 AM To: user@struts.apache.org Subject: RE: Struts2 : Calling AJAX function on button click and passing form parameters to the same Hi, Can someone please help me out with the problem I mentioned

RE: Struts2 : Calling AJAX function on button click(ONLY)

2008-10-28 Thread Kanade, Sayali
[mailto:[EMAIL PROTECTED] Sent: Tuesday, October 28, 2008 11:10 AM To: Kanade, Sayali; user@struts.apache.org Subject: RE: Struts2 : Calling AJAX function on button click and passing form parameters to the same Hi, I don't' know if I get the idea about what do u want to do, but I will try to copy some

RE: SPAM WARNING!: RE: Struts2 : Calling AJAX function on button click(ONLY)

2008-10-28 Thread Kanade, Sayali
, October 28, 2008 2:02 PM To: Mileidys Gonzalez Prieto; user@struts.apache.org Subject: SPAM WARNING!: RE: Struts2 : Calling AJAX function on button click(ONLY) Thanks for your reply, but not sure it answers my question. My question is: How can I prevent a div from refreshing its contents on page

Struts2 : Calling AJAX function on button click and passing form parameters to the same

2008-10-27 Thread Kanade, Sayali
Hi All, I am new to Struts 2, so please forgive me if this question is inane. I have a very simple form which has some checkboxes and on the click of the submit button of the form, I want to pass the values of the form to an AJAX action. CODE SNIPPET

Re: struts2: simple ajax form - returns value to a new page (not to a DIV)

2008-08-20 Thread MyAshok
] -- View this message in context: http://www.nabble.com/struts2%3A-simple-ajax-form---returns-value-to-a-new-page-%28not-to-a-DIV%29-tp15562626p19065871.html Sent from the Struts - User mailing list archive at Nabble.com

Re: struts2: simple ajax form - returns value to a new page (not to a DIV)

2008-08-20 Thread Jeromy Evans
MyAshok wrote: Hi all, Thanks for all your response. Finally i isolated the problem and found that the problem is with the ajax submit of the same div. (i.e) my form and the submit targets to the same div. This scenerio creates the problem that the values in the jsp is not populated to the

Re: struts2: simple ajax form - returns value to a new page (not to a DIV)

2008-08-20 Thread MyAshok
] -- View this message in context: http://www.nabble.com/struts2%3A-simple-ajax-form---returns-value-to-a-new-page-%28not-to-a-DIV%29-tp15562626p19067009.html Sent from the Struts - User mailing list archive at Nabble.com

Re: struts2: simple ajax form - returns value to a new page (not to a DIV)

2008-08-20 Thread Dave Newton
- On Wed, 8/20/08, MyAshok wrote: Can you tell me whats might be the problem with my IE. It's IE. Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: struts2: simple ajax form - returns value to a new page (not to a DIV)

2008-08-20 Thread Jeromy Evans
Dave Newton wrote: - On Wed, 8/20/08, MyAshok wrote: Can you tell me whats might be the problem with my IE. It's IE. Dave He he he. I don't know for certain, but I think it's due to IE's non-standard event-handling (event ordering) and Dojo's/widget's failure to accommodate

Re: struts2: simple ajax form - returns value to a new page (not to a DIV)

2008-08-20 Thread Musachy Barroso
Indeed, can't wait for 2.1 to come out, at least this setting will be set to false by default. On Wed, Aug 20, 2008 at 8:07 PM, Jeromy Evans [EMAIL PROTECTED] wrote: Dave Newton wrote: - On Wed, 8/20/08, MyAshok wrote: Can you tell me whats might be the problem with my IE. It's IE.

Re: struts2: simple ajax form - returns value to a new page (not to a DIV)

2008-08-18 Thread Jeromy Evans
MyAshok wrote: I do have the same issue. on click of submit, the loadingtext is displaying but the result in a new page as i am redirect to a action. Any solutions? please asap. action name=activateSubscriber class=subscriberAction method=activateSubscriber

Re: struts2: simple ajax form - returns value to a new page (not to a DIV)

2008-08-18 Thread MyAshok
, turn off the loadingText message. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/struts2%3A-simple-ajax-form

Re: struts2: simple ajax form - returns value to a new page (not to a DIV)

2008-08-18 Thread Dave Newton
: Re: struts2: simple ajax form - returns value to a new page (not to a DIV) To: user@struts.apache.org Date: Monday, August 18, 2008, 8:08 AM Thanks Evans, In IE, instead of loading text it shows [object error]. But it redirects to a new page. In Firefox, neither showing loading text nor

Re: struts2: simple ajax form - returns value to a new page (not to a DIV)

2008-08-18 Thread Jeromy Evans
Dave Newton wrote: I'd be immediately suspicious of your manual form submission; as a guess I'd say that bypasses the normal form submission process, making it a non-XHR request. Off-the-cuff guess, though. Dave Absolutely positive that's it. This line:

RE: struts2: simple ajax form - returns value to a new page (not to a DIV)

2008-08-18 Thread Martin Gainty
: [EMAIL PROTECTED] To: user@struts.apache.org Subject: Re: struts2: simple ajax form - returns value to a new page (not to a DIV) MyAshok wrote: I do have the same issue. on click of submit, the loadingtext is displaying but the result in a new page as i am redirect to a action. Any

Re: struts2: simple ajax form - returns value to a new page (not to a DIV)

2008-08-18 Thread Jeromy Evans
Martin Gainty wrote: var xmlhttp=dojo.hostenv.getXmlhttpObject() var response= xmlhttp.responseXML; var parsed_response=SomeXMLParser(response); document.getElementByTagId(div).innerHtml = parsed_response; -- /script yes/no? Martin That would work, but dojo already includes code to

Re: struts2: simple ajax form - returns value to a new page (not to a DIV)

2008-08-17 Thread MyAshok
/javascript src=/struts2-showcase/struts/dojo/dojo.js/script script type=text/javascript src=/struts2-showcase/struts/simple/dojoRequire.js/script script type=text/javascript src=/struts2-showcase/struts/ajax/dojoRequire.js/script script type=text/javascript src

Re: struts2: simple ajax form - returns value to a new page (not to a DIV)

2008-02-20 Thread xianwinwin
PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/struts2%3A-simple-ajax-form---returns-value-to-a-new-page-%28not-to-a-DIV%29-tp15562626p15595878.html Sent from the Struts - User mailing list archive at Nabble.com

Re: struts2: simple ajax form - returns value to a new page (not to a DIV)

2008-02-20 Thread bhaarat Sharma
=\data\/br/ Q: How can I incorporate the \'data\' value in the DIV and not in a new page? -- View this message in context: http://www.nabble.com/struts2%3A-simple-ajax-form---returns-value-to-a-new-page-%28not-to-a-DIV%29-tp15562626p15562626.html Sent from the Struts - User mailing list

Re: struts2: simple ajax form - returns value to a new page (not to a DIV)

2008-02-20 Thread xianwinwin
(\Expires\, 0); //prevents caching at the proxy server % The value you entered was: s:property value=\data\/br/ Q: How can I incorporate the \'data\' value in the DIV and not in a new page? -- View this message in context: http://www.nabble.com/struts2%3A-simple-ajax-form---returns-value

Re: struts2: simple ajax form - returns value to a new page (not to a DIV)

2008-02-20 Thread Jeromy Evans
Use the FireBug plugin for FF. Check that dojo is setup in the head of your page (view the html) and that all of the resources it requires are loaded (using the net tab). Ensure that struts filter is receiving requests for the /struts/* resources. xianwinwin wrote: :-( I think I have an

Re: struts2: simple ajax form - returns value to a new page (not to a DIV)

2008-02-20 Thread xianwinwin
] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/struts2%3A-simple-ajax-form---returns-value-to-a-new-page-%28not-to-a-DIV%29-tp15562626p15601041.html Sent from the Struts - User mailing list archive

Re: struts2: simple ajax form - returns value to a new page (not to a DIV)

2008-02-20 Thread Jeromy Evans
=text/javascript src=/struts2-showcase/struts/ajax/dojoRequire.js/script script type=text/javascript src=/struts2-showcase/struts/CommonFunctions.js/script In FireBug, you should see all those scripts being found. xianwinwin wrote: Check that dojo is setup in the head of your page

struts2: simple ajax form - returns value to a new page (not to a DIV)

2008-02-19 Thread xianwinwin
was: s:property value=data/br/ Q: How can I incorporate the 'data' value in the DIV and not in a new page? -- View this message in context: http://www.nabble.com/struts2%3A-simple-ajax-form---returns-value-to-a-new-page-%28not-to-a-DIV%29-tp15562626p15562626.html Sent from the Struts - User

Re: struts2: simple ajax form - returns value to a new page (not to a DIV)

2008-02-19 Thread Jeromy Evans
Your code looks valid, but have you included the s:head theme=ajax/ tag in your head section? It looks like the default event is executing (submit form for new page) rather than Dojo using ajax to post it. Also, as your target is theForm2, add showLoadingText=false to your submit button.

Re: struts2: simple ajax form - returns value to a new page (not to a DIV)

2008-02-19 Thread xianwinwin
% The value you entered was: s:property value=data/br/ Q: How can I incorporate the 'data' value in the DIV and not in a new page? -- View this message in context: http://www.nabble.com/struts2%3A-simple-ajax-form---returns-value-to-a-new-page-%28not-to-a-DIV%29

Re: struts2: simple ajax form - returns value to a new page (not to a DIV)

2008-02-19 Thread Jeromy Evans
No, it seems fine now. Turn on debugging: s:head theme=ajax debug=true/ Also use FireBug to see if there's any javascript errors reported. xianwinwin wrote: thanks you for the reply. I added the code: s:head theme=ajax/ on top, plus s:submit value=GO2 showLoadingText=false

Struts2 with AJAX

2007-09-08 Thread animesh saxena
Hi, I am using a very basic AJAX code snippet with struts. No it's not dojo. req = new XMLHttpRequest(); var url='http://localhost:8084/StrutsAjax/example/SearchAJAX.action'; req.open(POST,url,true); req.onreadystatechange=searchResults; req.send(null); in searchResults() function I

Re: Struts2 with AJAX

2007-09-08 Thread Nuwan Chandrasoma
Hi, In your action class you have to return null after you write the response for eg:- public String ajax() throws Exception { respone.getWriter().println(hello); respone.getWriter().close(); return null; } and also i dont think you need to specify the full URL

Re: Struts2 with AJAX file upload??

2006-12-16 Thread Don Brown
List user@struts.apache.org Sent: Saturday, December 16, 2006 12:22 AM Subject: Re: Struts2 with AJAX file upload?? What do you mean by trying to find controller tags in struts.xml? How do you have it implemented in Struts 1? Don On 12/15/06, Nagraj Rao [EMAIL PROTECTED] wrote: Hi guys I

Struts2 with AJAX file upload??

2006-12-15 Thread Nagraj Rao
Hi guys I want to implement AJAX file upload in Struts2. tried searching over on the net, but couldn't find much. I have an AJAX based file uploader working in Struts1.x but i'm not able to migrate it to Struts2 due to some uncommon controller mappings (such as i'm not finding any conroller

Re: Struts2 with AJAX file upload??

2006-12-15 Thread Don Brown
What do you mean by trying to find controller tags in struts.xml? How do you have it implemented in Struts 1? Don On 12/15/06, Nagraj Rao [EMAIL PROTECTED] wrote: Hi guys I want to implement AJAX file upload in Struts2. tried searching over on the net, but couldn't find much. I have an AJAX

Re: Struts2 with AJAX file upload??

2006-12-15 Thread Nagraj Rao
] To: Struts Users Mailing List user@struts.apache.org Sent: Saturday, December 16, 2006 12:22 AM Subject: Re: Struts2 with AJAX file upload?? What do you mean by trying to find controller tags in struts.xml? How do you have it implemented in Struts 1? Don On 12/15/06, Nagraj Rao [EMAIL PROTECTED] wrote

Struts2 and Ajax pb

2006-12-07 Thread walidito
the refreshment, but always the there was an error message. Can anyone help please ? -- View this message in context: http://www.nabble.com/Struts2-and-Ajax-pb-tf2776562.html#a7745973 Sent from the Struts - User mailing list archive at Nabble.com

RE: Struts2 and Ajax pb

2006-12-07 Thread Dave Newton
walidito [mailto:[EMAIL PROTECTED] href=/dashboard/actions/AjaxTest.action Do you have a mapping to that action? Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

Re: Struts2 and Ajax pb

2006-12-07 Thread Musachy Barroso
First try putting the full url for your action on your browser , and make sure you are getting the expected page, just to get any ajax problem out of the way. After you get that working, try the div, which should work. regards musachy walidito wrote: Hi, I hava followed one of the showcase

RE: Struts2 and Ajax pb

2006-12-07 Thread walidito
: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Struts2-and-Ajax-pb-tf2776562.html#a7746317 Sent from the Struts - User mailing list archive at Nabble.com

RE: Struts2 and Ajax pb

2006-12-07 Thread walidito
- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Struts2-and-Ajax-pb-tf2776562.html#a7746431 Sent from the Struts - User mailing list archive at Nabble.com

Re: STRUTS2 and AJAX

2006-11-30 Thread Don Brown
for your answers... Regards, Juan Espinosa -Mensaje original- De: Don Brown [mailto:[EMAIL PROTECTED] Enviado el: Lunes, 20 de Noviembre de 2006 02:05 p.m. Para: Struts Users Mailing List Asunto: Re: STRUTS2 and AJAX On 11/20/06, Juan Espinosa [EMAIL PROTECTED] wrote: Hi to all

STRUTS2 and AJAX

2006-11-21 Thread Juan Espinosa
to be updated without reloading the whole page, for example. I need some advise where to start, struts2 ajax support, etc... well thats all, thanks for helping me. Regards, Juan Espinosa