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 8703019
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T02:47:14+00:00 2026-06-13T02:47:14+00:00

I have a map (intanceOf Google Maps) and dinamically i’m appending html to it.

  • 0

I have a map (intanceOf Google Maps) and dinamically i’m appending html to it. It’s a pim more specifically a richMarker. Everything goes right, the mark is there.

The problem is, i’m trying to set a class to a tag of this html rendered by richMarker and in the page i’m trying to catch this tag with JQuery selector, and of course do stuff with it.

some code:

the main page have this.

$.cometd.subscribe(channelCerca, function (comet) {

        if (comet.data.type== 0) //Enum ETipoCerca
            sigo.notifyError("viature: " + comet.data.viatura + " out");
        else if (comet.data.type== 1)
            sigo.notifyError("viature: " + comet.data.viatura + " out");

        color = comet.data.cercaColor;
        cerca = doDraw(comet.data, color);

        cadg.rastreador.cerca = true;
        cadg.rastreador.LoadRastreator(force, color );

        $('.blink').each(function () {
            var elem = $(this);
            setInterval(function () {
                if (elem.css('visibility') == 'hidden') {
                    elem.css('visibility', 'visible');
                } else {
                    elem.css('visibility', 'hidden');
                }
            }, 500);
        });

        //$(window).load(doBlink());
        //doBlink();
    });

loadRastreador do a lot of stuffs. In general:
1 – An ajax post
2 – Preparing the marker
3 – Append the marker to the map

on preparing the new marker i do:

//CERCA
    if (cerca) {
        desc = "<span class='blink' color: " + cor + "' >&nbsp;" + this.des + "</span>";
    }

i want to catch this span with blink class and make it blink with jquery.

$('.blink').each(function () {
            var elem = $(this);
            setInterval(function () {
                if (elem.css('visibility') == 'hidden') {
                    elem.css('visibility', 'visible');
                } else {
                    elem.css('visibility', 'hidden');
                }
            }, 500);
        });

the application is a little complex.. but my problem is simple.
by some reason jquery can’t see this new element.

I already have tried:
1 – put this jquery instruction inside done method method of ajax.
2 – using $(window).load()
3 – using text-decorarion: blink <- it work on firefox but you know.. it’s not recomended and chrome ignore it at all.

NOTE: if I catch this jquery instruction and execute it with chrome console or firefug the element start to blink as i want it to do.

  • 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-06-13T02:47:15+00:00Added an answer on June 13, 2026 at 2:47 am

    Use CSS:

    .hidden {
        visibility:hidden;
    }
    

    jQuery class selectors ALREADY select all of the elements as a group. No need to loop.

    JS:

    setInterval(function () {  
        $('.blink').toggleClass('hidden');
    }, 500);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have map with multiple different colors markers with some info window. Everything works
I want to display google map in Android ,i have map API even map
I have map.html which shows a US map and address details below it: <img
I have map.resources :posts and I want to be able to serve post bodies
I have a Map and a List . The List should be sorted based
I have a map of the UK broken down into various geographic regions. I
I have a map that i want to update from a separate thread. Im
I have a map with various markers and i need to be able to
I have image map that can I move, but this map will be so
I have a map<int int> . I need to get a vector of the

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.