I am trying to use ajax to 'embed' a youtube video on page.
I make my calls and put the responseText to the innerHTML. But the embed object does not appear.
I have verified that I can write to the div tag by ID (I pumped some straight text into it).
I have verified that the container page works properly by calling it from the address bar.
I have verified that the returned response text looks correct by popping it up in an alert and verifying the source against the address bar call.

I have tried both loading an entire page and just loading object HTML code.

Is this something that Ajax cannot do?

Hi,

Please post you code.

The videos-v1.php was the first bit of code I tried to just pump the <object> code into the innerHTML.
The Video.php is a more 'complete ajax' attempt.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.