Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Akram MONCER
onchange event
November 14, 2012 10:46 AM
Answer

Akram MONCER

Rank: Regular Member

Posts: 106

Join Date: September 25, 2012

Recent Posts

hi i my hook i use this code but didn't work :

 1
 2<script type="text/javascript">
 3    function init()
 4    {
 5        alert('Test');
 6    }
 7   
 8</script>
 9
10
11<aui:input bean="<%= item %>" model="<%= ShoppingItem.class %>" name="featured" onChange="init()" />






can anyone help me. thanks
Rochad Tlusty
RE: onchange event
November 14, 2012 11:06 AM
Answer

Rochad Tlusty

Rank: Junior Member

Posts: 42

Join Date: January 18, 2012

Recent Posts

Is this script loaded on a jsp page? If not you should probably consider putting this in your theme to load it.
Akram MONCER
RE: onchange event
November 14, 2012 11:07 AM
Answer

Akram MONCER

Rank: Regular Member

Posts: 106

Join Date: September 25, 2012

Recent Posts

yes it on a jsp page
Vitaliy Koshelenko
RE: onchange event
November 14, 2012 2:29 PM
Answer

Vitaliy Koshelenko

Rank: Expert

Posts: 284

Join Date: March 25, 2011

Recent Posts

Try to use lowercase: <aui:input bean="<%= item %>" model="<%= ShoppingItem.class %>" name="featured" onchange="init()" />
Akram MONCER
RE: onchange event
November 15, 2012 12:15 AM
Answer

Akram MONCER

Rank: Regular Member

Posts: 106

Join Date: September 25, 2012

Recent Posts

i try lowercase but didn't work