[Dojo-interest] Re: dojo.event.topic.getTopic
Marco Paviotti
marco.paviotti at gmail.com
Wed Jan 31 06:47:30 MST 2007
Marco Paviotti ha scritto:
> I've tried also :
>
> var tab = dojo.widget.byId(String.valueOf(id));
>
> tab.setUrl("ajaxrequests.jsp?sectorId=" + id);
>
> but it tells me :
>
> FATAL exception raised: tab.setUrl is not a function
>
> any suggestion ?
String.valueOf ? yeah ... i'm stupid!
but i've tried also
<script type="text/javascript" >
function caricaVolo(id){
var tab = dojo.widget.byId(id);
tab.setUrl("ajaxrequests.jsp?sectorId=" + id);
}
dojo.event.topic.getTopic("flights").subscribe(null, "caricaVolo");
</script>
<div dojoType="ContentPane" id="<bean:write name="sector"
property="id"/>" >
<a href="javascript:void(0)" onkeypress="return this.onclick();"
onclick="javascript: dojo.event.topic.publish('flights', <bean:write
name="sector" property="id"/>);"
tabindex="1">Richiedi voli</a>
</div>
--
Paviotti Marco
Associazione Cultura Informatica (Asci)
IGLU - Linux User Group Udine
http://iglu.cc.uniud.it
More information about the Dojo-interest
mailing list