We help IT Professionals succeed at work.

Doubt on submit button  doc

cofactor
cofactor asked
on
http://code.google.com/p/struts2-jquery/wiki/SubmitTag

What does  onBeforeTopics do  in   <sj:submit ../> button ?

Attribute :
onBeforeTopics ---->Topics that are published before a load

My confusion is, does the Topic  activates as soon I click the submit button but before result  comes up ?
Please clarify.

Comment
Watch Question

IT Expert
CERTIFIED EXPERT
Top Expert 2009
Commented:
onBefore something normally executes before the actual action takes place

for example onbeforeunload triggers when the user leaves page but ideally before they left

so if topics loads something, onbeforetopics should be triggering before the ajax call

Author

Commented:
>>>so if topics loads something, onbeforetopics should be triggering before the ajax call

If my  topics loads button disable  that will mean if I click the button , this should be triggering before the ajax call  and  the button will be disabled right away before the ajax call.

Is that correct ?
Michel PlungjanIT Expert
CERTIFIED EXPERT
Top Expert 2009

Commented:
Not clear on what you mean by "loads button disable"

Author

Commented:
on you comment

>>>so if topics loads something

>>>Not clear on what you mean by "loads button disable"

I take (for an example)  the topic is  doing button disable using jquery $('#button_id).attr('disabled','disabled')

Do you get it now ?
Michel PlungjanIT Expert
CERTIFIED EXPERT
Top Expert 2009

Commented:
Still does not make much sense to me since I cannot find what a topic is or what ontopic does

Author

Commented:
Ex

Explore More ContentExplore courses, solutions, and other research materials related to this topic.