Who can teach me the right reference path of dojo!thanks a lot!

View: New views
2 Messages — Rating Filter:   Alert me  

Parent Message unknown Who can teach me the right reference path of dojo!thanks a lot!

by Chen Kankan :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Dear Sir or Madam:
        Hello, thanks for your attention, my question how to refer to
dojo as below:
First: My directory structure belows:
        dojoroot (PS:directory)
                --dojo
                --dijit
                --dojox
                --util
        Webpages (PS:directory)
                --LoginPage.aspx
Second: I want to refer to dojo in LoginPage.aspx use the syntax like
dojo.require("dojo.parser");
                dojo.require("dijit.Dialog");
                dojo.require("dijit.form.TextBox");
                dojo.require("dijit.form.Button");
I know that reference is wrong, whilst I know the reason why I can't
refer to is because of the wrong reference path, so please tell me the
right path I can refer to, thank you all the time!

(PS: I'm sorry for my bad English!)
Best Regards
chen kankan
_______________________________________________
FAQ: http://dojotoolkit.org/support/faq
Book: http://dojotoolkit.org/docs/book
Forums: http://dojotoolkit.org/forum
Dojo-interest@...
http://turtle.dojotoolkit.org/mailman/listinfo/dojo-interest

Re: Who can teach me the right reference path of dojo!thanks a lot!

by Peter E Higgins-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Chen,

Not sure exactly what you mean by reference path, but in your
LoginPage.aspx, if the path to dojo.js is correct in
the <script src=""> tag, the dojo.require()'s will all work based on
that location. Where does "dojoroot/" exist on your webserver?  the aspx
would just point to that, sometime easiest as an absolute url:

<script src="/dojoroot/dojo/dojo.js"></script>
<script type="text/javascript">
dojo.require("dijit.Dialog");
</script>

Chen Kankan wrote:

> Dear Sir or Madam:
> Hello, thanks for your attention, my question how to refer to
> dojo as below:
> First: My directory structure belows:
> dojoroot (PS:directory)
> --dojo
> --dijit
> --dojox
> --util
> Webpages (PS:directory)
> --LoginPage.aspx
> Second: I want to refer to dojo in LoginPage.aspx use the syntax like
> dojo.require("dojo.parser");
> dojo.require("dijit.Dialog");
> dojo.require("dijit.form.TextBox");
> dojo.require("dijit.form.Button");
> I know that reference is wrong, whilst I know the reason why I can't
> refer to is because of the wrong reference path, so please tell me the
> right path I can refer to, thank you all the time!
>
> (PS: I'm sorry for my bad English!)
> Best Regards
> chen kankan
> _______________________________________________
> FAQ: http://dojotoolkit.org/support/faq
> Book: http://dojotoolkit.org/docs/book
> Forums: http://dojotoolkit.org/forum
> Dojo-interest@...
> http://turtle.dojotoolkit.org/mailman/listinfo/dojo-interest
>
>  

_______________________________________________
FAQ: http://dojotoolkit.org/support/faq
Book: http://dojotoolkit.org/docs/book
Forums: http://dojotoolkit.org/forum
Dojo-interest@...
http://turtle.dojotoolkit.org/mailman/listinfo/dojo-interest
LightInTheBox - Buy quality products at wholesale price