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