Hi,

i have used multiple options to invoke javascript on clicking linkSubmit,
but none works, although they all work with Submit.
a) Invoking javascript from tml page as follows:
 <script>
  function extraStep() {
    alert("ENTER extraStep");  
  }
</script>
 <t:loop source="photoDetails" value="each"> -${each.title}  <br />    
        <t:form t:id="formId" id="formId"><p>
    <t:label for="reportedCategory"/>  <t:select t:id="reportedCategory"
t:label="Reported Category"/></p>
    [<t:actionlink t:id="approvePhotos">Approve</t:actionlink>]
          <input type="hidden" id="photoObject" value="${each}" />
    <t:submit t:id="disapprovePhoto" value="Disapprove Photo" 
onclick="extraStep();"></t:submit>
      </t:form>      
        </t:loop>    
** This works with Submit but not with linkSubmit
b) tried using mixins, but didnt work with LinkSubmit
c) tried using JSON, but that also didnt work with LinkSubmit. afterRender()
does not get invoked.
onSuccess(),onSelectedFromDisapprovePhoto() methods are not invoked from
Linksubmit.

Can someone please advise how can I use LinkSubmit in order to invoke
javascript.
Looking forward for an early response.

regards
sakshi
-- 
View this message in context: 
http://old.nabble.com/Invoke-Javascript-using-LinkSubmit-tp28922231p28922231.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to