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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T20:25:47+00:00 2026-05-23T20:25:47+00:00

why after several times click on buttons, is hang website? i use of function

  • 0

why after several times click on buttons, is hang website? i use of function .load() for loading content(html). i use of firebug for solution this problem but did not succeed.
my purpose is this buttons:

https://i.stack.imgur.com/ElWXy.gif

you yourself can see my site : http://zigweb.ir/siran/

and can see this js code to address: http://zigweb.ir/siran/files/js/admin.js

$('#icon a').click(function (event) {
        event.preventDefault();
        var id = '#' + this.id;
        var title = $(id).attr('title');
        $(".title").toggleClass("suject").html(title);
        var url = $(id).attr('href');
        $('.table_show, #num_count, #select_box, #input_search').fadeOut('slow', function () {
            $('.results').load(url+' .load', function(){
                $(this).hide().show();
                $.getScript("http://zigweb.ir/siran/files/js/admin.js"); 
            })
            //.hide().show("slow")
        });
    });

please tell me, what do i do?
With respect

  • 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-23T20:25:47+00:00Added an answer on May 23, 2026 at 8:25 pm

    That is because of a Same-origin policy.

    Chrome Inspector says,

    XMLHttpRequest cannot load http://localhost/test/1st.htm. Origin
    http://zigweb.ir is not allowed by Access-Control-Allow-Origin.

    To fix this, you should change the request URL from http://localhost to http://zigweb.ir.

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

Sidebar

Related Questions

Why after a click on add, adding several input together? I want once times
I have this function that after a click on a marker draws a line
I have several items on memcached that should expire 24h after the creation time.
I'm working with someone who's looking to get back into programming after several years
The example code of section 10.6, the expected result is: after several iterations, the
After reading several questions regarding problems with compilation (particularly C++) and noticing that in
After a several hour (re)search, I just can't come up with a explainable difference
I'm getting back into web design after a several year break, so a lot
After looking at several questions/answers here, I'm not seeing what I think I need.
First, the set up: I have a script that executes several tasks after a

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.