Robert is, of course, correct, but it seems to me that you already
understand what he mentioned.

So, if you are still having problems, take a deep breath, relax and...

1) Start from scratch (in terms of the lib path and the path to the
slider.js file). Put them where YOU want them and then change the paths
to reflect that.

2) If the slider.js file is in the same directory as the html file that
is calling it, then, yes, DynAPI.include('slider.js','./'); is correct.
If it's anywhere else, change the second parameter accordingly. ** -
Double check file names, capitalizations, etc.

3) Make sure that the lib path for the DynAPI files is indeed correct in
regard to where your DynAPI files are.

I know this is all straightforward, and I hope I'm not insulting you by
pointing these things out. These frustrating problems are almost always
solved by going back to basics and double checking yourself.

Jeff Greenberg
[EMAIL PROTECTED]


Robert Rainwater wrote:

> 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




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

Reply via email to