[Dojo-interest] ContentPane.refreshOnShow not working

Robert Tsang robert.tsang at boonsoftware.com
Wed Feb 7 02:28:41 MST 2007


Hi Thomas,

Why google tab not working??

Below is my code:

<HTML>
<HEAD>
<script type="text/javascript">  var djConfig={isDebug: true,
debugAtAllCosts: false}; </script>
<script language="javascript" src="../dojo.js"></script>
<script type="text/javascript">
dojo.require("dojo.widget.ContentPane");</script>
</HEAD>
<BODY>
<div id="mainTabContainer" dojoType="TabContainer" style="height:200px"
selectedTab="new">
<div id="new" dojoType="ContentPane" refreshOnShow="true"
href="http://www.yahoo.com" label="YAHOO" >
</div>
<div id="modify" dojoType="ContentPane" refreshOnShow="true"
href="http://www.google.com" label="GOOGLE" >
</div>
</div>
</BODY>
</HTML>

regards,
Robert

-----Original Message-----
From: dojo-interest-bounces at dojotoolkit.org
[mailto:dojo-interest-bounces at dojotoolkit.org] On Behalf Of Thomas Wolf
Sent: Wednesday, February 07, 2007 3:21 PM
To: dojo-interest at dojotoolkit.org
Subject: Re: [Dojo-interest] ContentPane.refreshOnShow not working

Robert Tsang wrote:
> Anyone can help pls???
> [.. refreshOnShow causing a 404 on dynamic content]

Hm, strange, I did a very basic test with
refreshOnShow true/false and everything works
fine (see code below, live version at
http://www.wsf.at/test/5d.html)
Perhaps you can spot a difference to
your actual code?

Thomas



<html>
<head>
<script type="text/javascript">
    var djConfig={isDebug: true, debugAtAllCosts: false};
</script>
<script type="text/javascript" src="dojo/dojo.js"></script>
<script type="text/javascript">
dojo.require("dojo.widget.TabContainer");
dojo.require("dojo.widget.ContentPane");
</script>

</head>
<body>
<div id="tab_container"></div>
<div id="static_container" dojoType="TabContainer" style="height:200px">
    <div dojoType="ContentPane" href="http://www.wsf.at/test/quote.php" 
refreshOnShow="false" label="rOS Off">
    </div>
    <div dojoType="ContentPane" href="http://www.wsf.at/test/quote.php" 
refreshOnShow="true" label="rOS On">
    </div>
    <div dojoType="ContentPane" href="http://www.wsf.at/test/quote.php" 
refreshOnShow="true" label="rOS On">
    </div>
    <div dojoType="ContentPane" href="http://www.wsf.at/test/quote.php" 
refreshOnShow="true" label="rOS On">
    </div>
</div>
</body>
</html>


_______________________________________________
Dojo FAQ: http://dojo.jot.com/FAQ
Dojo Book: http://manual.dojotoolkit.org/DojoDotBook
Dojo-interest at dojotoolkit.org
http://dojotoolkit.org/mailman/listinfo/dojo-interest



More information about the Dojo-interest mailing list