On Feb 7, 2:21 pm, Ivan <[email protected]> wrote:
> Okay,
>
> This is part of the code:
>
> if you notice i am creating 3 frames when i click on the map. Then at
> the last line of code i want to fill an inpout box element with the
> map point. I can seem to be able to load the map point in this code.
>
> submit = GEvent.addListener(map, "click", function(submitmarkerx,
> point) {
>
> addlink();
>
> submitmarkerx = createsubmitMarker(point,'<div>Please enter details
> for this location on the left side bar and click on save to add your
> place</div>');
>
> map.addOverlay(submitmarkerx);
>
> GEvent.addListener(map, "infowindowclose", function(){map.removeOverlay
> (submitmarkerx); map.getDragObject().setDraggableCursor("auto");});
> GEvent.removeListener(submit);
>
> document.getElementById("sidebarwrapper").innerHTML =  '<div
> id="submitform"><div id="submitformimageform"><IFRAME SRC=' +
> submitfilex + ' WIDTH=100% HEIGHT=112px FRAMEBORDER=0 MARGINWIDTH=0
> MARGINHEIGHT=0 ALLOWTRANSPARENCY="false" scrolling="no"></IFRAME></
> div><div id="submiticonform"><IFRAME SRC=' + submiticon + ' WIDTH=100%
> HEIGHT=70 FRAMEBORDER=0 MARGINWIDTH=0 MARGINHEIGHT=0
> ALLOWTRANSPARENCY="false" scrolling="no"></IFRAME></div><div
> id="submitformdata"> <IFRAME name="info_frame" SRC=' + submitfile + '
> WIDTH=100% HEIGHT=385px ALLOWTRANSPARENCY="false" FRAMEBORDER=0
> MARGINWIDTH=0 MARGINHEIGHT=0 scrolling="no"></IFRAME></div></div>';
>
> frames["info_frame"].contentWindow.document.getElementById
> ("foo").value=point;
>
> });
>
> On Feb 7, 4:06 pm, "[email protected]" <[email protected]>
> wrote:
>
> > On Feb 7, 2:00 pm, Ivan <[email protected]> wrote:
>
> > > I am calling a html page within an iframe. I would like to get the
> > > point to prefill the input box.
>
> > > When the page is called withing the iframe it loads the page.
>
> > > At the bottom of the page i have some javascript. Which i would like
> > > to get the map point of the marker i create befire the page loads.
>
> > > I have:
>
> > > document.getElementById("foo").value=parent.map.point;
>
> > > How do i get the value of the point from the page embedded in the
> > > iframe?
>
> > How are we supposed to know, given the information you have provided?
>
> > Please provide a link to the map you are talking about.
>
> > Is it an embedded map?  An API based map?  


You didn't read what I wrote...
> > What does the javascript "at the bottom of the page look like (not an
> > invitation to post code, just an observation on how little you told us)?

Please read the posting guidelines:
http://groups.google.com/group/Google-Maps-API/web/suggested-posting-guidelines

  -- Larry


>
> >   -- Larry
--~--~---------~--~----~------------~-------~--~----~
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