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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T09:30:38+00:00 2026-06-13T09:30:38+00:00

Im using ajax to load a youtube video on the page load $(document).ready(function(){ $.ajax({

  • 0

Im using ajax to load a youtube video on the page load

$(document).ready(function(){
     $.ajax({
        url : '/myurl',
        type:"post",           
        data:{"d": $('#d_id').val()},  
        async:false,
        success:function(data){ 
            $('#container').html(data);

            //data is an emebed string

          //This is what i get from PHP page
            /*<embed class="frame"  width="850" scrolling="no" height="415" frameborder="0" src="http://www.youtube.com/embed/' . $k[0] . '?showinfo=1&amp;modestbranding=1&amp;autoplay=1&amp;rel=0&amp;iv_load_policy=3&amp;cc_load_policy=1&amp;loop=1&amp;playlist=' . $k[0] . '&amp;wmode=transparent" frameborder="0""  allowfullscreen="yes" wmode="Opaque"></embed> */
        }    
    });
});

Working in every browser except IE

enter image description here

IM getting an error “Math is undefined” as per the screen shot
If i change embed to iframe im getting more serious error such as ‘__flash__removecallback is undefined’..

UPDATE

If i use emebed the whole thing is not working in IE8

Somebody help me IE is driving me NUTS

  • 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-13T09:30:39+00:00Added an answer on June 13, 2026 at 9:30 am

    Finally i got this

    On the server side (i.e Ajax response)

    if (preg_match('/MSIE 9.0/', $_SERVER['HTTP_USER_AGENT'])) { /*for IE 9.0 generate with objace tag*/ ?>
         <object type="application/x-shockwave-flash" data="VIDEO_URL">
          <param name="movie" value="VIDEO_URL" />
          </object>
     <?php } else { /*rest of all browsers,in iframe*/ ?>
          <iframe src="VIDEO_URL"></iframe>
     <?php } ?>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using ajax to load a page $.get(url, function(content){ //ajax content }); on the
Does loading unimportant data right after page load using AJAX help load the web
I have a page where I load a table of information using ajax. Once
Is it possible to load an html document using ajax and then perform a
I am using jQuery to load a page by AJAX using $.ajax (suppose test.html).
I make an AJAX request like so using JQuery: $.ajax({ type: GET, url: getvideo.php,
Steps Get remote data using ajax (jQuery) I Load the data into div with
I want to populate a DropDown control on page load using AJAX. I have
On page load, I'm making two AJAX requests: one to pull the newest video
OK here goes, I'm using jQuery ajax to load post from inside a slider.

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.