Hi sir,

          for temporery solution...i changed script is like below

  function getRoute()
   {
                 var url = "getRoute.php";
       GDownloadUrl(url, function(data, responseCode)
     {

               * d=data.split("\n");
                route=d[0].split(";");      *
                var x=document.getElementById("cmbroutename");

            for(i=0;i<route.length;i++)
                   {

                     x.options[i]=new Option(route[i],route[i]);
                   }
    });


   }

Now it is not showing the string, can any one please give the perminent
solution for this....


Thanks in advance,
with sincerely,
sravan

On Tue, Mar 24, 2009 at 1:28 PM, sravan kumar gudivada <
[email protected]> wrote:

> Hi Sir,
>
>         http://googlemaps.uuuq.com/route/addroute2.html
>
>    Now my map, kml file is working fine, but the route name field is
> storing with below script.
>
>         <script type="text/javascript">\r\nvar gaJsHost = (("https:" ==
> document.location.protocol) ? "https://ssl."; : 
> "http://www.";);\r\ndocument.write(unescape("%3Cscript
> src='" + gaJsHost + "google-analytics.com/ga.js'
> type='text/javascript'%3E%3C/script%3E"));\r\n</script>\r\n<script
> type="text/javascript">\r\ntry {\r\nvar pageTracker =
> _gat._getTracker("UA-950416-50");\r\npageTracker._trackPageview();\r\n}
> catch(err) {}</script>"
>
>
> In my php script there is no javascript then why the script is coming in to
> this feild??
>
> i checked my data base is there any routename with this script, but there
> is no route name with this.
>
> I understood its coming from, getRoute.php(If i see the view page source, i
> can able to see)
>
> below is the my php code:
>
>
> <?php
>
>       require('routedb.php');
>
>    // Opens a connection to a MySQL server
>
>       $connection = mysql_connect 
> <http://www.php.net/mysql_connect>("localhost", $username,$password);
>
>    if (!$connection)
>       {
>         die <http://www.php.net/die>('Not connected : ' . mysql_error 
> <http://www.php.net/mysql_error>());
>       }
>
>    // Set the active MySQL database
>      $db_selected = mysql_select_db 
> <http://www.php.net/mysql_select_db>($database, $connection);
>
>     if (!$db_selected)
>      {
>        die <http://www.php.net/die> ('Can\'t use db : ' . mysql_error 
> <http://www.php.net/mysql_error>());
>       }
>
>      $query= 'select route_name from route';
>      $result=mysql_query <http://www.php.net/mysql_query>($query);
>    if (!$result)
>      {
>            die <http://www.php.net/die> ('Query not correct: ' . mysql_error 
> <http://www.php.net/mysql_error>());
>      }
>
>    while($row = mysql_fetch_array 
> <http://www.php.net/mysql_fetch_array>($result))
>      {
>           echo <http://www.php.net/echo> $row['route_name'] . ";";
>
>      }
>
>
> ?>
>
>
> Can any one please explain why this javascript is coming into my route_name
> field...
>
> Thanks in advance,
> with sincerely,
> sravan
>
>
> On Tue, Mar 24, 2009 at 11:33 AM, sravan kumar gudivada <
> [email protected]> wrote:
>
>> Hi sir,
>>
>> Thanks for your help, i understood how to solve the kml problem but i am
>> not understanding how to solve the
>>
>> the below problem. Can you please help me regarding this.
>>
>> > Why the Large String Name is Adding into my route name login field?
>>
>> Because that's what your getRoute.php script is sendin in the text to
>> your getRoute() javascript function that builds form select boxes.
>> Paste http://googlemaps.uuuq.com/route/getRoute.php directly in your
>> browser and 'view source'
>>
>> with sincerely,
>> sravan
>>
>>
>> On Tue, Mar 24, 2009 at 6:11 AM, Rossko <[email protected]>wrote:
>>
>>>
>>> > Why the Large String Name is Adding into my route name login field?
>>>
>>> Because that's what your getRoute.php script is sendin in the text to
>>> your getRoute() javascript function that builds form select boxes.
>>> Paste http://googlemaps.uuuq.com/route/getRoute.php directly in your
>>> browser and 'view source'
>>>
>>> >  why the generated kml file is not working?
>>>
>>> http://googlemaps.uuuq.com/route/routekml_poly.php?route_name=AB shows
>>> up fine when pasted directly into maps.google.com
>>> You need to specify the full URL to GGeoXml -
>>>
>>>
>>> http://groups.google.com/group/Google-Maps-API/browse_thread/thread/d604bdde37afc91a/f67e1a9260353648?lnk=gst&q=ggeoxml+full+domain#f67e1a9260353648
>>>
>>> cheers, Ross K
>>> >>>
>>>
>>
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Maps API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/Google-Maps-API?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to