Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Discussions > Past Discussions > problem rendering a map in VB.Net 2005
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  8 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
mwelch16  
View profile  
 More options Jun 21 2006, 8:14 pm
From: "mwelch16" <m...@itechwebinnovations.com>
Date: Wed, 21 Jun 2006 17:14:51 -0700
Local: Wed, Jun 21 2006 8:14 pm
Subject: problem rendering a map in VB.Net 2005
Hello All,

I'm wondering if anyone has had any luck rendering a map inside a
master page.  I am getting the typical error: Internet Explorer cannot
open the Internet Site [url] operation aborted.  I see the map rendered
on the page underneath the error.  I'm calling the JavaScript in the
ClientScript.RegisterStartupScript(//the javascript code) method.  This
will generate the call to the script on window.onload.  I'm thinking
that since my master page puts my content box within a table that this
is causing the problem.  Is it possible to render a map within content
place holder in a table on a master page?  Any insights would be
appreciated.

Thanks,
Mark


    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
mwelch16  
View profile  
 More options Jun 21 2006, 8:24 pm
From: "mwelch16" <m...@itechwebinnovations.com>
Date: Wed, 21 Jun 2006 17:24:28 -0700
Local: Wed, Jun 21 2006 8:24 pm
Subject: Re: problem rendering a map in VB.Net 2005
I also tried putting the content holder outside the table and still had
no success.  I am using the RegisterStartupScript method because I have
to query a database to get my lats and longs.

Thanks again.


    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jacob  
View profile  
(1 user)  More options Jun 22 2006, 2:39 am
From: "Jacob" <ja...@reimers.dk>
Date: Wed, 21 Jun 2006 23:39:16 -0700
Local: Thurs, Jun 22 2006 2:39 am
Subject: Re: problem rendering a map in VB.Net 2005
I have made a .NET control which works under the circumstances you
describe. Try it at http://www.reimers.dk/

    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
mwelch16  
View profile  
 More options Jun 22 2006, 9:12 am
From: "mwelch16" <m...@itechwebinnovations.com>
Date: Thu, 22 Jun 2006 06:12:35 -0700
Local: Thurs, Jun 22 2006 9:12 am
Subject: Re: problem rendering a map in VB.Net 2005
Your wrapper is awesome.  Really good work.  I'm definitely going to
use it.  I would still like to know why this problem was occurring even
though it's a non issue now because of your control.  Maybe it would've
worked if I added a timeout option....I don't know.  Thank you so much
for your help.

    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jacob  
View profile  
 More options Jun 22 2006, 9:27 am
From: "Jacob" <ja...@reimers.dk>
Date: Thu, 22 Jun 2006 06:27:30 -0700
Local: Thurs, Jun 22 2006 9:27 am
Subject: Re: problem rendering a map in VB.Net 2005
Glad you like the control. The problem with IE is that it doesn't like
it when you change the contents of DOM elements before the page is done
loading. Now people hate IE because it complies with the standards :-)

There are some workarounds.
The most popular is to run the map rendering code from the page body's
load event. This is somewhat bothersome when working with masterpages.
Another way is making a script block that uses the defer attribute, but
this is not guaranteed to work cross-browser.
Finally you can delay running the script manually by using a timeout,
but this sometimes causes trouble with very busy pages.

As you can see there is not a golden solution when working with master
pages as you don't have the possibility to write in the master file's
markup. So you have to do it programatically or use options 2 or 3.


    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
mwelch16  
View profile  
 More options Jun 22 2006, 10:09 am
From: "mwelch16" <m...@itechwebinnovations.com>
Date: Thu, 22 Jun 2006 07:09:42 -0700
Local: Thurs, Jun 22 2006 10:09 am
Subject: Re: problem rendering a map in VB.Net 2005
Thanks again.  I had the map working using ajax very nicely passing
back my lats and longs in an xml string and then using the xmlDom
object to parse it in javascript and render the map.  My user wanted
the browsers back and forward buttons to bring back the previous map
image, though....which brought me to this problem.  I really appreciate
your help.

    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
George  
View profile  
 More options Jun 22 2006, 1:15 pm
From: "George" <sefi...@Yahoo.com>
Date: Thu, 22 Jun 2006 10:15:07 -0700
Local: Thurs, Jun 22 2006 1:15 pm
Subject: Re: problem rendering a map in VB.Net 2005
The real answer is to declare your geoinformation as a a function

For Example
---------------------------------

Function mapthis(){
Map stuff here

}

------------------------------------

Then declare your function on the body load like this.

------------------------------------
onload="mapthis()"
------------------------------------

Make sure you put the includes javascript component in the body of the
page at the bottom.

Why? The reason your map dosnt work is because it launches before all
the googlemaps calls have been made. by creating a function to incase
your code in, you force the browser to load all external page
content(ie google maps api) before lauching your personalized codes.


    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
mwelch16  
View profile  
 More options Jun 22 2006, 5:05 pm
From: "mwelch16" <m...@itechwebinnovations.com>
Date: Thu, 22 Jun 2006 14:05:14 -0700
Local: Thurs, Jun 22 2006 5:05 pm
Subject: Re: problem rendering a map in VB.Net 2005
Thanks!  The ClientScript.RegisterStartupScript(//the javascript code)
places the call to the JavaScript below the html in the body and calls
it during the window.onload method.  I actually already have my
javascript in another function and file.   I was using the
RegisterStartupScript function to pass xml back to the client that
contained my lats, longs, and styles for icons on my map.  I guess I
could do a bunch of inline vbscript on the page to get at some server
variables, but I wanted a more elegant solution.

    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google