Sometimes a web server is set up with a root directory different than
the system's root directory... it could be that /abspathto/ is not the
real path to MochiKit. Try treating the root directory as the
document root for your web server and see if that works.
- Kevin
On 8/29/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> Hi guys,
>
> I want to use the doSimpleXMLHttpRequest function of Async module, I
> don't know how to include Async, I try as above:
>
> -----------
> <html>
> <head>
> <script type="text/javascript"
> src="/abspathto/MochiKit.js"></script>
> <script type="text/javascript" src="/abspathto/Base.js"></script>
> <script type="text/javascript" src="/abspathto/Async.js"></script>
> <script type="text/javascript"><!--
> function loadMyXML() {
> deferred = MochiKit.Async.doSimpleXMLHttpRequest('test.xml');
> // deferred = doSimpleXMLHttpRequest('test.xml');
> alert(deferred);
> }
> --></script>
> </head>
> <body>
>
> <a href="javascript:carregarXML()">teste</a>
>
> </body>
> </html>
> ---------------
>
> The javascript console of firefox indicates that MochiKit is not
> defined, Async is not defined and doSimpleXMLHttpRequest is not defined
> too. How can I include MochiKit in my page? Do you have any example? Am
> I missing some dependencie?
>
> Thanks in advance, regards.
>
> --
> Michel Thadeu Sabchuk
> Curitiba - ParanĂ¡ - Brasil
>
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"MochiKit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/mochikit
-~----------~----~----~----~------~----~------~--~---