Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

Maximum ASP
  Need Help?  
Professional technical support for DotNetNuke is available from DotNetNuke Corporation.
 


  Ads  
Webhost4Life - $4.95 Windows Hosting
 


  Sponsors  

Meet Our Sponsors

WebSecureStores -- ASP.NET & DotNetNuke Hosting Solutions
FCKeditor Project
Salaro -- Skins and more
OnyakTech
The best choice for your web site host, email hosting, and domain registration.
CrystalTech Web Hosting™
 


DotNetNuke Forums
 
  Forum  DotNetNuke® Pro...  Iframe Module [...  Google Map and iframe issue
Previous Previous
 
Next Next
New Post 9/25/2007 12:14 PM
User is offline matt
3 posts
10th Ranked


Google Map and iframe issue 

I'm a total amatuer and inherited this site from another developer. What this site does is allows user to click on a point on the google map and it opens a java applet that does this pano thing. Hard to explain, so check out the site here and click on an icon in the map: http://www.aqua.wisc.edu/glct/

So the problem is when you click the "back to map" in the panorama page, it totally refreshes the google map. This is bad, because the user spends a lot of time panning and zooming on the map to find there area of interest and when they return to the map, that have to start the whole map navigation process over again. So my question is, are there any quick fixes for this? Is there some way I could modify the iframe so it doesn't refresh when you return to it? Thanks and let me know if I need to clarify anything.

 
New Post 9/25/2007 2:10 PM
User is offline Stefan Cullmann
1489 posts
6th Ranked








Re: Google Map and iframe issue 

Thank you for sharing this beautiful site with us. I tried it on my own and I know what you mean. The current implementation uses a link to the java applet that opens in the same iframe and " history.go(-1)" to go back (which is the same as hitting the back button). The state of the google map gets lost, and with it the selected details.

A fix isn't simple or quick and not an issue of the iframe, it happens also when you use the inner link directly.

Simple (but ugly): Open links in a new window.
Complex (though nice): Instead of just using a simple link you create a postback which takes the current (Client Site State), persists it somewhere and redirects to your applet. The way back would be similar: Retrieving the state, load it to the client...

The complex task is not manageable for amateurs, you will need at least somebody with Google map development experience (best accompied with DNN knowledge).


Stefan Cullmann - stefan.cullmann [at] dotnetnuke.com

forms & Lists (UDT5.0) will be the next major release of the User Defined Table project.
A first Preview is available, though it requires DotnetNuke 5 (Beta 5).

Need to import external data to a UDT? Try http://www.codeplex.com/Csv2UDTImport

 
New Post 9/25/2007 2:48 PM
User is offline Steve White
169 posts
9th Ranked


Re: Google Map and iframe issue 

My advice would be to read the API documentation. There's a method called savePosition() and another called returnToSavedPosition() in the Google Maps API:

http://www.google.com/apis/maps/documentation/reference.html

If I were looking at this I'd try to add an onclick event on the link in the InfoWiindow to save the current map state. Then I'd check returnToSavedPosition() on the body onload call. I don't think it needs a postback, just a way of saving the current view on the client, which can be recalled as the map is loaded.

You might get some good responses if you post this to the API Group:

http://groups.google.com/group/Google-Maps-API


Steve White
Talwrn Technology
FeedMailer - DNN RSS subscription module
WikiArticle - DNN Wikipedia module
 
Previous Previous
 
Next Next
  Forum  DotNetNuke® Pro...  Iframe Module [...  Google Map and iframe issue
 


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, please observe the following posting guidelines:

1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

 


Softech Development, Inc.
We help your business work smarter with DotNetNuke. Whether you need a new implementation, a custom module or skin for an existing implementation, or integration with your business processes, Softech has the experience and expertise to make it happen.
www.softechdevelopment.com
Module Development by Engage Software
Specializing in custom module development, training and skinning.
www.engagesoftware.com
BataviaSoft DotNetNuke Solutions
BataviaSoft offers custom DotNetNuke solutions especially for the European and the South East Asian market.
www.bataviasoft.com

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
Hosted by MaximumASP