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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T19:43:13+00:00 2026-05-18T19:43:13+00:00

I’m facing a trouble with jquery ajax under IE8. I have a form which

  • 0

I’m facing a trouble with jquery ajax under IE8. I have a form which at the base level displays a list of few items, each with buttons to edit and remove. The list, along with those two buttons, is loaded via jquery ajax call. Although it works fine on Firefox and Chrome, on IE8 it won’t trigger functions behind edit or remove buttons.

So basically, on a base page, jquery works and loads the list. Within that list tho, jQuery doesn’t work as it won’t trigger edit or remove functions

I have a similar problem with the modal window call. IE8 is able to open the modal window (content is loaded with jquery ajax) but won’t trigger any function within the content of the modal

Example of a simple call

$('#form-modal').load('/form/' + path + '?id=' + id).modal(); 

This works on IE8 from the base page, but doesn’t when triggered within ajax-loaded content

All js scripts definitions are being loaded in the <head> of the main base page. I tried adding definition to the ajax-loaded file header, but didn’t help so it must be something else

Any ideas? If you need more details, will gladly provide


Let me show you the easiest example. Each item on the list loaded with ajax has a ‘remove’ button.

<a href="#" onclick="deleteItem('itemId')">Remove</a>

DeleteItem definition is in external lib.js file

function deleteItem(id){

            $.ajax({
               type: "POST",
               url: "/ajax/deleteitem.php",
               data: "id=" + id,
               success: function(msg){
               loadItemsList();
               }
            });
}           

This is it… That simply doesn’t work on IE8… Nothing happens, not even javascript error. Same thing works no problem on Firefox and Chrome

  • 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-18T19:43:14+00:00Added an answer on May 18, 2026 at 7:43 pm

    It would be nice if you show the event handlers for those buttons, since if you’re using bind(); for example, it loads when the dom is ready, and your ajax call is made. That means that the dom elements loaded through the ajax call wasn’t there when bind was called to bind the buttons.

    The solution to this is to use live();

    $(".button").live("click", function () {
      // do stuff
    });
    

    I don’t know what event binder you’re using, but if you’re using anything other than live, you could try live and it should work.

    EDIT

    Read my comment first on the alert(id), if your function doesn’t run at all in IE8, try doing this instead. Give the link element the id instead like this

    <a id="item_10" href="#">Remove</a>
    

    Then somewhere in your javascript

    $("document").ready( function () {
       $("a").live("click", deleteItem);
    });
    
    function deleteItem (event) {
       event.preventDefault();
       var id;
       id = $(this).attr("id").replace("item_", "");
    
       //this will now provide you with the current id
       console.log(id);
    
       your ajax-stuff here..
    
    }
    

    This should work in IE8, no problem. You might wanna specify the selector though for the click event by giving all the delete links some class or something.

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

Sidebar

Related Questions

link Im having trouble converting the html entites into html characters, (&# 8217;) i
this is what i have right now Drawing an RSS feed into the php,
I have just tried to save a simple *.rtf file with some websites and
Is it possible to replace javascript w/ HTML if JavaScript is not enabled on
Seemingly simple, but I cannot find anything relevant on the web. What is the
Does anyone know how can I replace this 2 symbol below from the string
I'm trying to decode HTML entries from here NYTimes.com and I cannot figure out
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I want to count how many characters a certain string has in PHP, but
I ran into a problem. Wrote the following code snippet: teksti = teksti.Trim() teksti

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.