Jump to content

using AJAX and youtube videos


caedo

Recommended Posts

Hi,

 

 

I'm programming a module that works like youtube. You have a player object where the video is played and a list of videos.

I'm using AJAX to change the videos dynamically when you click on the image. Right now I'm using Prototype.

The problem is that it does'nt changes the video, so I think that the new player is not being loaded.

 

This is the code I have:

 

echo '<object width="625" height="350">'.

'<param name="movie" value="'.$_GET['url'].'"></param>'.

  '<embed src="'.$_GET['url'].'" type="'.$_GET['type'].'" width="425" height="350">'.

  '</embed>'.

'</object>';

 

 

I thought that only echoing the HTML  tags with the right parameters would make it. Do you have any idea of how to do it?

 

 

thanks in advance

 

caedo

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.