tejateja 0 Newbie Poster

Hi,

I am trying to get the directions between two points in google map.becoz i need to insert directions into database.i have a script wich get and display directions using div id .i am trying to send that id to another function in which i am assigning that id to a variable so that i can insert that variable in DB.but i am getting the total javascript code(with the direction values also)(i am using var a=document.getElementByID("id").innerHTML.i need to pick only the directions instead of javascript .what can i do any suggestions most appreciated.