Works great! Thanks!<br><br><div><span class="gmail_quote">On 5/10/06, <b class="gmail_sendername">Paul Spencer</b> <<a href="mailto:pspencer@dmsolutions.ca">pspencer@dmsolutions.ca</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Clark,<br><br>the included startUp.js file assumes that the javascript is in the<br>same directory as the page that is running until after init.php is<br>called (at which time it picks up the right directory).<br><br>You will need to modify
startUp.js around line 90 right after<br><br>myKaMap = new kaMap('viewport');<br><br>and add:<br><br>myKaMap.init = 'mapping/init.php';<br><br>Cheers<br><br>Paul<br><br>On 10-May-06, at 11:39 AM, Clark Endrizzi wrote:<br>
<br>> Sorry, the init.php is working (I was responding to you noticing it<br>> was not working right). You can see this by going to<br>> <a href="http://dev.naiutah.com/KaMap/cvs_version/htdocs/mapping/init.php">
dev.naiutah.com/KaMap/cvs_version/htdocs/mapping/init.php</a> . I<br>> simply had to change my reference to an absolute.<br>><br>> That however was not the problem. The problem, I think, is that<br>> the javscript files aren't finding this init file to get the
<br>> information they need (or any of the php files). So where does the<br>> javascript contact init.php and any other php files for the ajax<br>> stuff. I'm hoping that is where the path is still wrong. Hope
<br>> this makes any sense.<br>><br>> Thanks,<br>> Clark<br>><br>> On 5/10/06, Paul Spencer <<a href="mailto:pspencer@dmsolutions.ca">pspencer@dmsolutions.ca</a>> wrote: Clark,<br>><br>> I'm a bit confused by your response ... is it working now or do you
<br>> still need help getting it sorted out?<br>><br>> Cheers<br>><br>> Paul<br>><br>> PS thanks :)<br>><br>> On 10-May-06, at 11:03 AM, Clark Endrizzi wrote:<br>><br>> > Actually that is because the relative path I gave that file is
<br>> > "mapping/include/config.php". Because the main file exists under<br>> > mapping. I'll just set an absolute path on all my php files. It<br>> > appears to work now if you go straight to it.
<br>> ><br>> > I should have noted that I'm getting no PHP errors.<br>> ><br>> > Where I'm still foggy is where the php files are references at<br>> > all. What calls them? It's somewhere in the javascript right? If
<br>> > so I never changed that path so I'm thinking that could be it. So<br>> > far I've changed the paths to the javascript files in the main file<br>> > and the reference to the config.php file in the PHP stuff.
<br>> ><br>> > Thanks a ton Paul. I'm involved involved with a lot of open source<br>> > projects and you are the most helpful person of any of them (you<br>> > always respond so quickly). I can only hope some of the stuff
<br>> > we're working on will be useful for the KaMap project.<br>> ><br>> > (forgot to send this to the list the first time)<br>> ><br>> > On 5/10/06, Paul Spencer <<a href="mailto:pspencer@dmsolutions.ca">
pspencer@dmsolutions.ca</a> > wrote:Clark,<br>> ><br>> > if I hit htdocs/mapping/init.php, I get a normal response but with<br>> > nothing filled in.<br>> ><br>> > It is wierd that init.php
returns anything at all if it can't find<br>> > config.php, I would have thought that php would just stop at an<br>> > include that it can't find.<br>> ><br>> > Perhaps check your php logs?<br>> >
<br>> > As far as I can tell, what you are attempting should work fine.<br>> ><br>> > Cheers<br>> ><br>> > Paul<br>> ><br>> > On 10-May-06, at 10:32 AM, Clark Endrizzi wrote:<br>> >
<br>> > > Hi.<br>> > ><br>> > > I'm trying to integrate KaMap into our site and because we have so<br>> > > many files it would be much nicer to have KaMap stuff in a<br>> seperate<br>
> > > directory. I'm trying to create a directory called "mapping" and<br>> > > have the include directory within it. Then my main file, in this<br>> > > case MapSelection.php (which is just a modified
index.html,<br>> will be<br>> > > is in the root directory and includes the stuff in the mapping<br>> > > directory. So it is root->mapping->include. Also the scalebar<br>> > > stuff is in the include directory.
<br>> > ><br>> > > You can see my progress here: <a href="http://dev.naiutah.com/KaMap/cvs_version/">dev.naiutah.com/KaMap/cvs_version/</a><br>> > > htdocs/MapSelection.php<br>> > ><br>
> > > Basically I think I have the JS stuff working because I don't get<br>> > > any errors. What appears to be happening to me is that the<br>> > > config.php file is not being referenced since it can't see to find
<br>> > > my map settings. That said I'm not sure where the PHP stuff gets<br>> > > referenced within the KaMap code. I'm guessing because it used<br>> > > ajax stuff it's somewhere in the JS stuff but I can't seem to
<br>> > find it.<br>> > ><br>> > > It's strange that I'm not seeing any JS errors if it can't find<br>> the<br>> > > PHP files...<br>> > ><br>> > > Is this even a good idea? It really makes our site confusing
<br>> so it<br>> > > would be really nice to make this happen.<br>> > ><br>> > > Thanks,<br>> > > --<br>> > > Clark Endrizzi<br>> > > _______________________________________________
<br>> > > ka-Map-users mailing list<br>> > > <a href="mailto:ka-Map-users@lists.maptools.org">ka-Map-users@lists.maptools.org</a><br>> > > <a href="http://lists.maptools.org/mailman/listinfo/ka-map-users">
http://lists.maptools.org/mailman/listinfo/ka-map-users</a><br>> ><br>> > +-----------------------------------------------------------------+<br>> > |Paul Spencer <a href="mailto:pspencer@dmsolutions.ca">
pspencer@dmsolutions.ca</a> |<br>> > +-----------------------------------------------------------------+<br>> > |Applications & Software Development |<br>> > |DM Solutions Group Inc
<a href="http://www.dmsolutions.ca/|">http://www.dmsolutions.ca/|</a><br>> > +-----------------------------------------------------------------+<br>> ><br>> ><br>> ><br>> ><br>> ><br>> >
<br>> ><br>> > --<br>> > Clark Endrizzi<br>> > _______________________________________________<br>> > ka-Map-users mailing list<br>> > <a href="mailto:ka-Map-users@lists.maptools.org">ka-Map-users@lists.maptools.org
</a><br>> > <a href="http://lists.maptools.org/mailman/listinfo/ka-map-users">http://lists.maptools.org/mailman/listinfo/ka-map-users</a><br>><br>> +-----------------------------------------------------------------+
<br>> |Paul Spencer <a href="mailto:pspencer@dmsolutions.ca">pspencer@dmsolutions.ca</a> |<br>> +-----------------------------------------------------------------+<br>> |Applications & Software Development |
<br>> |DM Solutions Group Inc <a href="http://www.dmsolutions.ca/|">http://www.dmsolutions.ca/|</a><br>> +-----------------------------------------------------------------+<br>><br>><br>><br>
><br>><br>><br>><br>> --<br>> Clark Endrizzi<br>> _______________________________________________<br>> ka-Map-users mailing list<br>> <a href="mailto:ka-Map-users@lists.maptools.org">ka-Map-users@lists.maptools.org
</a><br>> <a href="http://lists.maptools.org/mailman/listinfo/ka-map-users">http://lists.maptools.org/mailman/listinfo/ka-map-users</a><br><br>+-----------------------------------------------------------------+<br>|Paul Spencer
<a href="mailto:pspencer@dmsolutions.ca">pspencer@dmsolutions.ca</a> |<br>+-----------------------------------------------------------------+<br>|Applications & Software Development |<br>
|DM Solutions Group Inc <a href="http://www.dmsolutions.ca/|">http://www.dmsolutions.ca/|</a><br>+-----------------------------------------------------------------+<br><br><br><br><br></blockquote></div><br>
<br clear="all"><br>-- <br>Clark Endrizzi<br>