|
List Info
Thread: problem rendering a map in VB.Net 2005
|
|
| problem rendering a map in VB.Net 2005 |

|
2006-06-22 00:14:51 |
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
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Google Maps" group.
To post to this group, send email to Google-Maps googlegroups.com
To unsubscribe from this group, send email to
Google-Maps-unsubscribe googlegroups.com
For more options, visit this group at http://gro
ups.google.com/group/Google-Maps
-~----------~----~----~----~------~----~------~--~---
|
|
| problem rendering a map in VB.Net 2005 |

|
2006-06-22 00:24:28 |
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.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Google Maps" group.
To post to this group, send email to Google-Maps googlegroups.com
To unsubscribe from this group, send email to
Google-Maps-unsubscribe googlegroups.com
For more options, visit this group at http://gro
ups.google.com/group/Google-Maps
-~----------~----~----~----~------~----~------~--~---
|
|
| problem rendering a map in VB.Net 2005 |

|
2006-06-22 06:39:16 |
I have made a .NET control which works under the
circumstances you
describe. Try it at http://www.reimers.dk/
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Google Maps" group.
To post to this group, send email to Google-Maps googlegroups.com
To unsubscribe from this group, send email to
Google-Maps-unsubscribe googlegroups.com
For more options, visit this group at http://gro
ups.google.com/group/Google-Maps
-~----------~----~----~----~------~----~------~--~---
|
|
| problem rendering a map in VB.Net 2005 |

|
2006-06-22 13:12:35 |
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.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Google Maps" group.
To post to this group, send email to Google-Maps googlegroups.com
To unsubscribe from this group, send email to
Google-Maps-unsubscribe googlegroups.com
For more options, visit this group at http://gro
ups.google.com/group/Google-Maps
-~----------~----~----~----~------~----~------~--~---
|
|
| problem rendering a map in VB.Net 2005 |

|
2006-06-22 13:27:30 |
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.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Google Maps" group.
To post to this group, send email to Google-Maps googlegroups.com
To unsubscribe from this group, send email to
Google-Maps-unsubscribe googlegroups.com
For more options, visit this group at http://gro
ups.google.com/group/Google-Maps
-~----------~----~----~----~------~----~------~--~---
|
|
| problem rendering a map in VB.Net 2005 |

|
2006-06-22 14:09:42 |
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.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Google Maps" group.
To post to this group, send email to Google-Maps googlegroups.com
To unsubscribe from this group, send email to
Google-Maps-unsubscribe googlegroups.com
For more options, visit this group at http://gro
ups.google.com/group/Google-Maps
-~----------~----~----~----~------~----~------~--~---
|
|
| problem rendering a map in VB.Net 2005 |

|
2006-06-22 17:15:07 |
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.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Google Maps" group.
To post to this group, send email to Google-Maps googlegroups.com
To unsubscribe from this group, send email to
Google-Maps-unsubscribe googlegroups.com
For more options, visit this group at http://gro
ups.google.com/group/Google-Maps
-~----------~----~----~----~------~----~------~--~---
|
|
[1-7]
|
|
|
about | contact Other archives ( Real Estate discussion Medical topics )
|