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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T03:45:33+00:00 2026-06-10T03:45:33+00:00

I have a page that load different pages with ajax. but the other use

  • 0

I have a page that load different pages with ajax. but the other use some script to convert grayscale image effect. grayscale image hover
the problems is when it try to load doesnt show the effect
for example:

in my main page:

$(function(){
$("#family").click(function () {
    $("#proyects").load('family.html');
});
});

put the content here

<div class="ten columns content" id="proyects">

</div>

the other page load the grayscale effect, works fine alone but when it loads with ajax doesn’t show the effect

<script src="js/jquery.min.js" type="text/javascript"></script> 
<script src="js/gray.js" type="text/javascript"></script>

    <section id="content">
        <article class="item">
        <a href="#"><img src="images/proyecto1.jpg" height="223" width="327"></a>
         </article>
             </section>
  • 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-10T03:45:35+00:00Added an answer on June 10, 2026 at 3:45 am

    According to your code sample, there is no #family tag when the page is loaded, so making a click() call will not bind to anything. If #family is populated after the page loads, you should use an on('click') call which does proper event binding when the DOM element is actually loaded onto the page. I would also recommend using the jQuery.ajax method in favor of load() to properly handle AJAX requests.

    In other words…

    $(function(){
        $(document).on('click', '#family', function (event) {
            $.ajax({
                url: '/path/to/family.html'
              , dataType: 'html'
            }).done(function (data) {
                $('#proyects').append(data);
            }); 
        });
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a page http://www.mysite.com/image.aspx , that I want to load and display an
I have a page that is taking a couple of seconds to load due
I have to do a asp.net web page that when load will say something
I have a large dataset that load in with a fill method on page
I have a <ul> that is populated with javascript after the initial page load.
I've got a page with multiple forms that load via ajax. Each form includes
I have a site with a page that contains some tabs and when selecting
I have a page that builds out a table. Nothing else on that page
I have a page that lets the user edit the content of the page
I have a page that uses the Telerik RadListView control and a Telerik RadDataPager

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.