You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Manuel Correa <mc...@itos.uga.edu> on 2007/08/03 20:13:40 UTC

div properties

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>