Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Struts 2 »

div properties

Manuel Correa

2007-08-03


How I get with dojo (Struts 2) the properties of div or some another
element, I'm running this code:



 function updateDiv( url ) {

    var reportDiv= window['info'];

    reportDiv.href = url;

    reportDiv.refresh();

  }

 dojo.event.topic.getTopic("updateDivListTopic").subscribe(null,
"updateDiv");







<s:a id="link1"

   theme="ajax"

   href="#"

   notifyTopics="link1_topic"

   errorText="An Error ocurred" onclick="javascript:
dojo.event.topic.publish('updateDivListTopic', 'anotherpage.jsp');">Link
1</s:a>

 





<s:div theme="ajax" id="info" name="info" href="page.jsp"

    loadingText="Loading information..."

    errorText="Unable to contact server"

    listenTopics="link1_topic"

    >

  Placeholder...

</s:div>

©2008 junlu.com - Jax Systems, LLC, U.S.A.