I have a display tag with Straits 2 I have a form to use Ajax and the result is displayed on the div OK, now everything is fine with the display tag, the result is Delayed on Delivery, but when I try to select the next page on the Display Tag paging tab, the whole page is refreshed and the results page is displayed.
Calling - main jsp
& lt; S: form method = "post" action = "menuubmit" id = "form" topic = "simple" & gt; & Lt; Table & gt; & Lt; TR & gt; & Lt; Td> & Lt; S: Label & gt; Select category & lt; / S: Labels & gt; & Lt; / Td> & Lt; Td> & Lt; S: Select label = "select category" list = "id" list = "id" list value = "category" name = "category" tooltip = "select category" /> gt; & Lt; / Td> & Lt; / TR & gt; & Lt; TR & gt; & Lt; TD & gt; & Lt; / TD & gt; & Lt; Td> & Lt; Sj: submit id = "btn" align = "center" value = "submit" target = "rage" indicator = "pointer" button = "true" on endpoint = "full" precedence = "first" & gt; & Lt; / TD & gt; & Lt; / TR & gt; & Lt; / Table & gt; & Lt; / S: Forms & gt; & Lt; / Fieldset & gt; & Lt; Img id = "indicator" src = "picture / pointer. Gif" alt = "Loading ..." style = "display: none" /> & Lt; / Div & gt; & Lt; Div id = res> & Lt; / Div & gt;
Ajax jsp
& lt; Display: "export" = id = "data" name = "menu" pagesize = "10" & Lt; Display: column property = "name" heading = "name" ordered = "true" /> & Lt; Display: column property = "value" heading = "value" ordered = "true" /> & Lt; / Display: table & gt;
You need to stop the event default behavior and its proliferation:
event.preventDefault (); Event.stopPropagation ();
No comments:
Post a Comment