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

  • Home
  • SEARCH
  • 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 8738203
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T10:41:20+00:00 2026-06-13T10:41:20+00:00

im having some weird problems with this arrays, what im trying to do first

  • 0

im having some weird problems with this arrays, what im trying to do first of all is compare two dates within a map array and if its true then i will append it to the container , if its false it wont do anything , but for some reason it does append the div but not the img with the value ;( , if i alert the variable is in there but it doesnt work within the image tag.

So heres what im doing:

var sabiasfechas = {
    '2012-01-02': '2012-12-02',
    '2012-01-02': '2012-12-02'
}
sabiasfotos=new Array(2);
sabiasfotos[0] ='sabias1.jpg';
sabiasfotos[1] ='promo-tablet.jpg';


$.each(sabiasfechas,function(key,value){
        $.each(sabiasfotos,function(otrovalue){
            var fechainisab = Date.parse(key);
             var fechafinalsab = Date.parse(value);
             var fechainicomsab = Date.today().compareTo(fechainisab);
             var fechafincomsab = Date.today().compareTo(fechafinalsab);
            if(fechainicomsab == 1 && fechafincomsab == -1){

                $("#imagenescontent").append("<div class='sombra'><img src='img/" + this+ "'/></div>");
            }
            else{
                console.log("nada")
            }
        })



})

Any ideas?
Edit: I forgot to close the img tag LOL tnx btw.

  • 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-13T10:41:21+00:00Added an answer on June 13, 2026 at 10:41 am

    you have no closing ‘ at the end of your src attribute

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

Sidebar

Related Questions

Um, this might sound a bit weird. We were having some problems with a
I just began having problems with Indy. For some weird reason, even this very
I'm having some weird problems with this. We are using Xvfb virtual desktop manager
I've been having some very weird problems. Yesterday I updated my master branch on
I'm having some problems with a weird HTTP status code in MSIE8. I send
I am having some problems when returning with printf of a char array from
I'm having some problems with JSF navigation and passing parameters; this is the scenario:
I am having weird problems with setBackgroundResource. For some reason when I run the
I'm having the weird problem that after having javascript inject some dom-elements the css-rules
I'm having some weird issues with pytz's .localize() function. Sometimes it wouldn't make adjustments

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.