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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T05:25:15+00:00 2026-06-03T05:25:15+00:00

I am executing this function, and I do not know what I am missing

  • 0

I am executing this function, and I do not know what I am missing but var BYE is empty when HELLO is full of HTML, how could this happen?.

$.get(path+'productor/masnotas.jsp', function(data){
                    var hello = data; 
                    var bye = $(data).find("#columna1");
                            $("#columnauno").append($(data).find("#columna1"));
                                    },'html');

Could Someone help me?

Edit: Sorry I am rushing, here is part of the content of data, then it goes with more HTML and is compossed by another div called #columna2, outside #columna1. And I want to, using one HTML/JSP, select and put each content in each column of the web when I update the page:

<html>
<!-- Primera Columna --> 
<div class="span-12 first" id="columna1">
<br>
   <div class="caja">
    <b>Cambios en las denuncias por Self</b>
    <p style="text-align: justify;">
       Lorem ipsum dolor sit amet Lorem ipsum dolor sit amet Lorem ipsum dolor sit ametLorem ipsum dolor sit ametLorem ipsum dolor sit ametLorem ipsum dolor sit ametLorem ipsum dolor sit ametLorem ipsum dolor sit ametLorem ipsum dolor sit amet
       <a href="${self.monitor.basePath}siniestro/ayudaDenuncia.jsp" target="_blank">Leer más</a>
     </p>
    </div>
    <br>
    <div class="caja">
    <img border="0" align="left" src="${self.monitor.basePath}images/aapas.jpg"/>
    <b>Lorem ipsum dolor sit amet</b>
    <p style="text-align: justify;"> 
     Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis condimentum purus vel diam dictum non pharetra dolor vulputate. Aenean sed sapien leo, sed laoreet risus. Duis dictum volutpat imperdiet. Donec eros nibh, accumsan condimentum euismod laoreet, auctor vel lacus. Pellentesque felis tortor, laoreet eget varius eget, iaculis vitae turpis. Cras lobortis malesuada erat, nec sodales tellus porttitor eu. Vestibulum porttitor, neque vel aliquet porttitor, est tortor commodo magna, id faucibus orci massa at velit. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse arcu quam, volutpat ut ullamcorper in, laoreet eget diam. Pellentesque in massa nec massa dapibus vehicula. Sed nec lectus nisi, sed pharetra est. Ut leo metus, sagittis non blandit ac, adipiscing eu leo. <a href="#" target="_blank">ver nota completa</a>
     </p>
    </div>
    <br>

path is system path, the basepath = ${self.monitor.basePath}
*VARS created are made for testing purposes*

  • 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-03T05:25:17+00:00Added an answer on June 3, 2026 at 5:25 am

    Unfortunately find won’t work in this case because i’m suspecting #columna1 is not a descendant. Try the following instead.

    var bye = $('<div/>').html( data ).find('#columna1'); 
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Now, I know it's because there's not the overhead of calling a function, but
How would I rewrite this query to be performant by executing the SQL function
We all know that the code: var ssum = function(a,b) { return a+b; }
This is an issue with Javascript executing linearly on a single thread. using setTimeout(function(){},time);
How do I prevent this JavaScript function from executing. I have a js function
Sorry about the title but could not come up with anything really informative and
We know that all user input must be escape by mysql_real_escape_string() function before executing
I know this has been asked before (and I will keep researching), but I
I am expecting when I go $.each($(something).find(something), function(){ $(this).delay(1000).fadeOut(); }); then for each matching
I am executing this statement under while (($data=fgetcsv($this->fin,5000,;))!==FALSE) Now what I want in else

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.