Javascript & include php

54 views
Skip to first unread message

Greg45

unread,
Jul 6, 2010, 5:57:52 PM7/6/10
to Google Maps JavaScript API v3
hello everybody,

I have a question, after test the tutorial about google map v3 and
infowodows tabs, I come here because I have a probleme !


Tab's code from tutorial google (http://code.google.com/p/gmaps-
samples-v3/source/browse/trunk/infowindow/tabs.html?r=78)

var contentString = [
'<div id="tabs">',
'<ul>',
'<li><a href="#tab-1"><span>One</span></a></li>',
'<li><a href="#tab-2"><span>Two</span></a></li>',
'<li><a href="#tab-3"><span>Three</span></a></li>',
'</ul>',
'<div id="tab-1">',
'<p>Tab 1</p>',
'</div>',
'<div id="tab-2">',
'<p>Tab 2</p>',
'</div>',
'<div id="tab-3">',
'<p>Tab 3</p>',
'</div>',
'</div>'
].join('');


I want to put in a tab this code -> <?php require('_drawrating.php'); ?
>

for have a ajax rating bar ! but they don't work. Someone can help for
use a ajax's script of rating bar in this tabs ?

regards

(sorry for my bad english)

Pil

unread,
Jul 7, 2010, 2:27:16 AM7/7/10
to Google Maps JavaScript API v3
Try this. It's without jquery and similar quark. It shoudl also work
fine in this case because the whole tabs contents are in the document
tree.

http://www.wolfpil.de/v3/tabbed-infowindow.html

Let me know if you have problems.

Greg45

unread,
Jul 7, 2010, 5:30:13 AM7/7/10
to Google Maps JavaScript API v3
YEah !!! many thanks !!!

it's work fine !!! many thanks again !! :)

see you :)

Greg45

unread,
Jul 7, 2010, 5:54:28 AM7/7/10
to Google Maps JavaScript API v3
HUm, question, how work your script if I use XML data ? because I use
the same script of google's tutorial. And after read the comment in
your page, I'm not sure that possible.

Pil

unread,
Jul 7, 2010, 6:58:44 AM7/7/10
to Google Maps JavaScript API v3
Should be doable, of course.

What comment do you mean?

Greg45

unread,
Jul 22, 2010, 5:56:08 AM7/22/10
to Google Maps JavaScript API v3
I am sorry sire, but after a lot of try, I don't arrive to insert in
my infowindow tabs many script.

for example in tab 2 , I want to put a script of picture upload.

in tab 3, a script with comment in php

but nothing work it's impossible to load php in this var
contentstring .


It's possible to help me please ?

Pil

unread,
Jul 22, 2010, 7:20:04 AM7/22/10
to Google Maps JavaScript API v3

There are lots of ways to make mistakes. As long as you don't provide
a link all assistance must remain guesswork:

Sounds as if you tried to load complete pages into the info window.
Have you tried using iframes?

Greg45

unread,
Jul 22, 2010, 10:03:13 AM7/22/10
to Google Maps JavaScript API v3
Thx for your answer ,

Yes, i want to load an interactive page into the info window . I go
search on web example with iframes. You think ,Iframes can work's ?

Ralph

unread,
Jul 22, 2010, 4:29:39 PM7/22/10
to Google Maps JavaScript API v3
Try this tutorial:-

http://code.google.com/apis/maps/articles/phpsqlinfo_v3.html

It might give you ideas.

Ralph
> > > It's possible to help me please ?- Hide quoted text -
>
> - Show quoted text -

Greg45

unread,
Jul 23, 2010, 3:31:44 AM7/23/10
to Google Maps JavaScript API v3
hi ralph,

I already use this code, it's my base for my form when tthe user add
marker.
Reply all
Reply to author
Forward
0 new messages