You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "sakshi (JIRA)" <ji...@apache.org> on 2010/06/16 17:10:23 UTC

[jira] Created: (TAP5-1189) Invoke JavaScript with LinkSubmit

Invoke JavaScript with LinkSubmit
---------------------------------

                 Key: TAP5-1189
                 URL: https://issues.apache.org/jira/browse/TAP5-1189
             Project: Tapestry 5
          Issue Type: Question
          Components: tapestry-component-report
    Affects Versions: 5.1.0.5
            Reporter: sakshi


Hi,

I am using Tapestry5.

I have tried multiple options to invoke javascript on clicking linkSubmit, but none works, although they all work with Submit component of tapestry.
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:linksubmit t:id="disapprovePhoto" value="Disapprove Photo"  onclick="extraStep();"></t:linksubmit>
      </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

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Closed: (TAP5-1189) Invoke JavaScript with LinkSubmit

Posted by "Howard M. Lewis Ship (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/TAP5-1189?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Howard M. Lewis Ship closed TAP5-1189.
--------------------------------------

    Resolution: Invalid

> Invoke JavaScript with LinkSubmit
> ---------------------------------
>
>                 Key: TAP5-1189
>                 URL: https://issues.apache.org/jira/browse/TAP5-1189
>             Project: Tapestry 5
>          Issue Type: Question
>          Components: tapestry-component-report
>    Affects Versions: 5.1.0.5
>            Reporter: sakshi
>
> Hi,
> I am using Tapestry5.
> I have tried multiple options to invoke javascript on clicking linkSubmit, but none works, although they all work with Submit component of tapestry.
> 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:linksubmit t:id="disapprovePhoto" value="Disapprove Photo"  onclick="extraStep();"></t:linksubmit>
>       </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

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Closed: (TAP5-1189) Invoke JavaScript with LinkSubmit

Posted by "Howard M. Lewis Ship (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/TAP5-1189?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Howard M. Lewis Ship closed TAP5-1189.
--------------------------------------

    Resolution: Invalid

> Invoke JavaScript with LinkSubmit
> ---------------------------------
>
>                 Key: TAP5-1189
>                 URL: https://issues.apache.org/jira/browse/TAP5-1189
>             Project: Tapestry 5
>          Issue Type: Question
>          Components: tapestry-component-report
>    Affects Versions: 5.1.0.5
>            Reporter: sakshi
>
> Hi,
> I am using Tapestry5.
> I have tried multiple options to invoke javascript on clicking linkSubmit, but none works, although they all work with Submit component of tapestry.
> 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:linksubmit t:id="disapprovePhoto" value="Disapprove Photo"  onclick="extraStep();"></t:linksubmit>
>       </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

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.