If you include a simple .js file it does not use the library path.

For instance:
DynAPI.include('slider.js','./');

Assumes that slider.js is in the same directory as the html file that
is including it.

Where as:
DynAPI.include('dynapi.api.*');
uses the librarypath.

-- 
// Robert Rainwater

On 2/19/2001, 12:01:05 PM EST, Peter wrote about "[Dynapi-Help] Help with 
DynAPI.include needed":

> I am having trouble with DynAPI.include(). I know ways of working around 
> it, but I'd really like to figure out what I am doing wrong. (Currently 
> using Win98SE, IE5.5)

> As an example, I have been looking at Jeff Greenberg's Slider widget. No 
> matter what I try, I cannot get the SliderDemo.html example to run without 
> fiddling with the includes. No matter where I put the code, I always get 
> the error message "Slider is not defined" (which, as I understand 
> JavaScript's error messages, means that the file slider.js is not being 
> loaded successfully.

> I have tried all sorts of variations, but nothing works. I've also checked 
> the tutorials and API documentation and the code in  dynapi.,js, without 
> finding enlightenment.

> The relevant code from the HTML file is

> DynAPI.setLibraryPath('../../dynapi/src/lib/')
> DynAPI.include('dynapi.api.*')
> DynAPI.include('slider.js','./');

> I assume from this that the HTML file and the slider.js file should be in a 
> directory two levels below the main DYNAPI directory. If I put them 
> anywhere else, I get worse problems (dynapi.js not loaded). However, I 
> cannot find anywhere to put them within this constraint that works. Perhaps 
> my assumption that slider.js and the html file should be in the same 
> directory is the problem. I figure the path "./" refers to the starting 
> directory containing the html file, but maybe not. I have tried a few other 
> ideas, but no luck.

> I understand how DynAPI.include works with one parameter, but I have 
> obviously not grasped what it is doing when there are two parameters.

> Thanks for any help.


> --
> Peter Curran     Software Developer    Casebank Technologies Inc.
> [EMAIL PROTECTED]


> _______________________________________________
> Dynapi-Help mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/dynapi-help


----------------------
DynAPI Snapshots: http://dynapi.sourceforge.net/snapshot/
DynAPI Homepage: http://dynapi.sourceforge.net/



_______________________________________________
Dynapi-Help mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/dynapi-help

Reply via email to