Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 581213
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T14:33:17+00:00 2026-05-13T14:33:17+00:00

I am developing web-application using Google Maps API and ASP.NET Ajax. Here is my

  • 0

I am developing web-application using Google Maps API and ASP.NET Ajax. Here is my JavaScript-code for PageLoad:

map.openInfoWindowHtml(map.getCenter(),'Hello, <b>world</b>!');

First run is successful. But after execution some ASP.NET Ajax-function we have strange effect: In Internet Explorer, Mozilla Firefox and Opera everything is good, but in Google Chrome and Safari text with html-tags is invisible. In other words in Google Chrome we have text: “Hello, !”

I want to make the application that would normally in Google Chrome and Safari too. How can I do it?

Update:

String "Hello, <b>world</b>, <strong>world</strong>, <span style='font-weight: bold;'>World</span>, <a href='http://ya.ru'>Link</a>." transform to "Hello, , , , . " (I examined the DOM). Words really are disappearing.

I observed this strange effect on any Ajax-function with request to server.

Update2:

Many thanks to Koobz for many leading questions. They helped me a more detailed understanding of the problem.

First of all, full description of actions:

  1. Load the page. GMap have several markers with dblclick-event in JavaScript. Dblclick event exec marker.openInfoWindowHtml(/My text/). /My text/ is located in JavaScript of my Page.
  2. I double-click on the marker. I see a infoWindow with a normal formatting
  3. Exec __doPostBack (starndard ASP.NET PostBack)
  4. In server side JavaScript is updated with same
  5. Server return some information with /My text/ to my page
  6. I doouble-click on the marker. I see a infoWindow with a wrong formatting.

An interesting fact, which puts me in embarrassing:

I try set to “Hello, <b>world</b>, &lt;b&gt;test&lt;/b&gt;”

Before Ajax function in all browser I have: “Hello, world, <b>test</b>”

After Ajax function in Google Chrome and Safari: “Hello, ,test“

After Ajax function in Mozilla, Opera and IE: “Hello, world, <b>test</b>”

What Chrome and Safari have features that may cause such behavior? Now I can write separately necessary infoWindow-text for each browser. But I would like to find a normal way to solve my problem.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T14:33:18+00:00Added an answer on May 13, 2026 at 2:33 pm

    Hit ctrl+shift+j to open up your chrome developer tools.

    1. Set a breakpoint right before the function call that breaks everything.
    2. Attempt to reproduce the bug.
    3. After the break point hits, step through your code until the text disappears.
    4. Set a breakpoint after the text first disappeared.
    5. Repeat this process. Refine your breakpoints until you’ve narrowed down where the bug is occurring.

    It could be any number of things. I have no idea what kind of Ajax things you’re doing. Are you dynamically updating content on your page after doing the request? It’s possible that this update code is modifying dom elements that it shouldn’t be. Tracing through using the methodology above will help nail it if this is the case.

    If you’re using jQuery, maybe one of your selectors is out of whack and it’s eating up content. Chrome is very good and I’m hesitant to believe it’s a javascript bug or anything like that.

    Validate your HTML. If you’re traversing the dom, invalid markup might result in chrome “seeing” a different picture than other browsers. Just look for broken tags and ignore all the other things a validator complains about.


    Wild guess: but the way it’s stripping out HTML might point to some kind of XSS protection. Is the Ajax script that’s returning the new HTML code on another domain than the one the visitor is viewing?

    Some info here:
    http://groups.google.com/group/chromium-dev/browse_thread/thread/d2931d7b670a1722/d56bdfccfcef677f

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 444k
  • Answers 444k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer You are right, it would append dummyAgain. You can deal… May 15, 2026 at 6:26 pm
  • Editorial Team
    Editorial Team added an answer If you are seeing Connection: Close in the response, does… May 15, 2026 at 6:25 pm
  • Editorial Team
    Editorial Team added an answer Yes, it is possible. We had some discussion about this… May 15, 2026 at 6:25 pm

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.