[Dojo-interest] Dojo Question

Karl Tiedt ktiedt at gmail.com
Fri Sep 8 05:26:04 MDT 2006


var tab = dojo.widget.byId("tab1");
tab.setUrl('www.sitepoint.de');

That should work... or just put href="http://www.sitepoint.de" in your
tab declaration...
On 9/8/06, mkodura <mko at sitepoint.de> wrote:
>
>
> Hi Bill,
>
> I've just started to work wirt Dojo, but I am a neewbie in Jaja Script. I
> have a little question for you: Is it possible to get displayed a homepage
> in the Content of a DojoTab ? I have to realize a help-section with Dojo
> Tabs. And if a User clicks on the Help-button the specific Help-Page for the
> origin Page should be displayed in the Content of the page.Sorry for my bad
> English I am German.Here is a litte Code from my Work up to now:
>
>
>
> <%@ Page Language="VB" AutoEventWireup="false" CodeFile="dojotest.aspx.vb"
> Inherits="_Default" %>
>
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
>
> <html xmlns="http://www.w3.org/1999/xhtml" >
>
> <head runat="server">
>
> <title>Dojo-Test</title>
>
> <script type="text/javascript">
>
> var djConfig = {isDebug: false};
>
> </script>
>
> <script type="text/javascript" src="dojo-0.3.1-ajax/dojo.js"></script>
>
> <script type="text/javascript">
>
> dojo.require("dojo.lfx");
>
> dojo.require("dojo.dom");
>
> dojo.require("dojo.widget.TabContainer");
>
> dojo.require("dojo.widget.LinkPane");
>
> dojo.require("dojo.widget.ContentPane");
>
>
>
> function linkTab(tabID,ziel)
>
> {
>
> dojo.byId("mainTabContainer").selectedTab = "tab2";
>
> dojo.byId(tabID).href = "help.htm";
>
> }
>
> </script>
>
>
>
> <style type="text/css">
>
> .dojoTabPaneWrapper {
>
> padding : 5px;
>
> }
>
> #tabBlock {
>
> top: 150px;
>
> left: 120px;
>
> width: 320px;
>
> }
>
> #mainTabContainer {
>
> width: 100%;
>
> height: 600px
>
> }
>
> </style>
>
> </head>
>
> <body>
>
> <form id="form1" runat="server">
>
>
>
> <div id="tabBlock">
>
> <div id="mainTabContainer" dojoType=TabContainer selectedTab=<% =
> selectedTab %> >
>
> <div dojoType=ContentPane label="tab1" id="tab1"><a
> href="javascript:linkTab('tab1','http://www.sitepoint.de')">Contents of Tab
> 1</a></div>
>
> <div dojoType=ContentPane label="tab2"
> id="tab2">href="http://www.sitepoint.de"</div>
>
> </div>
>
> </div>
>
> </form>
>
> </body>
>
> </html>
>
> The problem is,how can I get the page: www.sitepoint.de displayed in the
> Content Area of the Tab? Can you give me some advice?
> _______________________________________________
> 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
>
>
>


-- 
-Karl Tiedt


More information about the Dojo-interest mailing list