it is probably overkill but here's that the dynapi.include file is doing:
/dir1/dir2/htmlfile.html <-- this is your html file
/dir1/dir2/slider.js <-- this is your html file
/dynapi/src/lib/ <-- this is where the dynapi files are
/dynapi/src/dynapi.js <-- this is where the dynapi itself is
check that these are the correct locations.
Peter Curran wrote:
> 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
--
Michael Pemberton
[EMAIL PROTECTED]
ICQ: 12107010
_______________________________________________
Dynapi-Help mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/dynapi-help