glenelkins Posted March 18, 2009 Share Posted March 18, 2009 Hi I am using Google API using the function bindInfoWindowTabsHtml() which requires tabs to be sent as a DOM Nodes. I have never dealt with DOM Nodes and cannot find anywhere online on how to structure them for this function. Can anyone help? Quote Link to comment https://forums.phpfreaks.com/topic/149943-solved-dom-nodes/ Share on other sites More sharing options...
syed Posted March 18, 2009 Share Posted March 18, 2009 What does this function do? Quote Link to comment https://forums.phpfreaks.com/topic/149943-solved-dom-nodes/#findComment-787514 Share on other sites More sharing options...
RichardRotterdam Posted March 18, 2009 Share Posted March 18, 2009 Sounds like a javascript related thing. What exactly is the Api and could you include the link to the google api? What code are you using that caused the error? Quote Link to comment https://forums.phpfreaks.com/topic/149943-solved-dom-nodes/#findComment-787516 Share on other sites More sharing options...
glenelkins Posted March 18, 2009 Author Share Posted March 18, 2009 wrong forum it should be javascript lol This function adds the info window bubble to a pointer on a Google MAP. I figured out this function needs an array of GInfoWindowTab objects. But now the problem is, it just doesnt show the tabs. It seems to only show the title of the last one in the array ...very annoying // Setup the home marker var point = new GLatLng ( <?= $latitude; ?>, <?= $longitude; ?> ); var marker = new GMarker ( point, opt ); //marker.bindInfoWindowHtml ( '<h2>You Are Here</h2>' ); var tabs = new Array(); tabs[0] = new GInfoWindowTab ( 'test', 'test' ); tabs[1] = new GInfoWindowTab ( 'test2','test2' ); marker.bindInfoWindowTabsHtml (tabs ); map.addOverlay ( marker ); Quote Link to comment https://forums.phpfreaks.com/topic/149943-solved-dom-nodes/#findComment-787517 Share on other sites More sharing options...
glenelkins Posted March 18, 2009 Author Share Posted March 18, 2009 iv actually just solved this with the code i posted above lol!! i was creating 2 '0' positions in the array like a dumb ass Quote Link to comment https://forums.phpfreaks.com/topic/149943-solved-dom-nodes/#findComment-787518 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.