Vimeo Video Is Not Showing in IE and showing script error.

Discussion in 'PHP' started by ShinoRex, Nov 29, 2011.

  1. #1
    Hi anybody please help me to find out what is the problem with my code.I placed vimeo video in my site and it is working clearly in firefox and all. but not in IE. It showing the error.

    Error: Permission denied for <http://player.vimeo.com> to call method Location.toString.

    My site link is http://www.thecommercialutilitybrokers.co.uk/

    I used below function for getting vemio id from its url.

    function _GetVimeoIdFromUrl($url) {

    if ( preg_match("/vimeo\.com\/[0-9]+/i", $url) ) {

    list($domain, $video_id) = split(".com/", $url);
    $video_ids = explode("[",esc_attr($video_id));
    $id = $video_ids[0];
    return $id;
    }
    }


    And below function for embedding its code.


    function EmbedVimeo($videoid,$width = 320,$height = 350) {
    $videoid = $this->_GetVimeoIdFromUrl($videoid);
    return '<iframe src="http://player.vimeo.com/video/'.$videoid.'?title=0&amp;byline=0&amp;portrait=0&amp;color=b09f84" width="'.$width.'" height="'.$height.'" frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe><p>';
    }

    And i'm calling function using

    <div id="innervideos"><?php echo $ytube->EmbedVimeo(''.$url.'','462','328');?></div>

    pls any one help me to clear this issue soon... Thanks in advance..
     
    ShinoRex, Nov 29, 2011 IP
  2. luckyguy354

    luckyguy354 Peon

    Messages:
    21
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    What IE version do you use?
     
    luckyguy354, Dec 16, 2011 IP
  3. ShinoRex

    ShinoRex Well-Known Member

    Messages:
    227
    Likes Received:
    9
    Best Answers:
    2
    Trophy Points:
    148
    #3
    Hi luckyguy, First of all thanx for your reply, I had checked in all IE versions bro. Including IE7,IE8.
     
    ShinoRex, Dec 16, 2011 IP