Or even better ...

jQuery(document).ready(function($) {
$('a button').click(function() {
         location.href=$(this).closest("a").attr("href");
});
});


2011/8/3 Gunnar Eketrapp <gunnar.eketr...@gmail.com>

> I found a javascript solution ....
>
> jQuery(document).ready(function($) {
> $('.actionbutton').click(function() {
>         location.href=$(this).closest("a").attr("href");
> });
>  });
>
>
> 2011/8/3 Gunnar Eketrapp <gunnar.eketr...@gmail.com>
>
>> Just found ...
>>
>>
>> http://www.expertsguide.info/2010/07/button-tag-inside-anchor-not-working-in-i/
>>
>> .. but now i need some smart way of adding this fix my actionlink's ....
>>
>>
>>
>>
>> 2011/8/3 Gunnar Eketrapp <gunnar.eketr...@gmail.com>
>>
>>> Oops forgot to mention that I  am using version 8.0 of the unmentionable
>>> browser :-)
>>>
>>>
>>> 2011/8/3 Gunnar Eketrapp <gunnar.eketr...@gmail.com>
>>>
>>>> Hi all!
>>>>
>>>> I have some actionlink's that works fine in Chrome but in IE they do
>>>> absolutely nothing.
>>>>
>>>> There are no javascript errors.
>>>>
>>>> Has anyone else had the same problems?
>>>>
>>>> Note: The actionlink's encloses a button element.
>>>>
>>>> Thanks in advance!
>>>>
>>>> Gunnar Eketrapp
>>>>
>>>> =====================================
>>>>
>>>> Tml extract ....
>>>>
>>>>         <t:loop source="rejections" value="rejection">
>>>>             <div class="info"><b>Anmärkning:</b> <i><t:timepoint
>>>> time="rejection.created"/> av ${rejection.validator.name}</i>
>>>>                  <t:actionlink style="float:right" t:id="deleteRemark"
>>>> t:context="[rejection.id]"><button>Radera</button></t:actionlink>
>>>>                  <t:actionlink style="float:right" t:id="editRemark"
>>>> t:context="[rejection.id]"><button>Redigera</button></t:actionlink>
>>>>                  <p><pre>${rejection.validatorComment}</pre></p>
>>>>             </div>
>>>>         </t:loop>
>>>>
>>>> ======================================
>>>>
>>>> Html extract ...
>>>>
>>>> <div class="info"><b>Anmärkning:</b> <i>Idag 14:45 av Bengt Modig</i>
>>>>
>>>> <a style="float:right"
>>>> href="/meeting/view.delete2remark/4?t:ac=1/2"><button>Radera</button></a>
>>>>  <a style="float:right"
>>>> href="/meeting/view.editremark/4?t:ac=1/2"><button>Redigera</button></a>
>>>>  <p><pre>Usch o fy</pre></p>
>>>>
>>>> </div>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>
>>>
>>> --
>>> [Hem: 08-715 59 57, Mobil: 070-991 86 42]
>>> Allévägen 2A, 132 42 Saltsjö-Boo
>>>
>>
>>
>>
>> --
>> [Hem: 08-715 59 57, Mobil: 070-991 86 42]
>> Allévägen 2A, 132 42 Saltsjö-Boo
>>
>
>
>
> --
> [Hem: 08-715 59 57, Mobil: 070-991 86 42]
> Allévägen 2A, 132 42 Saltsjö-Boo
>



-- 
[Hem: 08-715 59 57, Mobil: 070-991 86 42]
Allévägen 2A, 132 42 Saltsjö-Boo

Reply via email to