PDA

View Full Version : Ajax Tabs Content script- Doesn't work



BorO
01-13-2009, 05:58 PM
1) Script Title:
Ajax Tabs Content Script (v 2.2)

2) Script URL (on DD):
http://www.dynamicdrive.com/dynamicindex17/ajaxtabscontent/

3) Describe problem:
I use this script and it works fine but I tried to add some new content
generated from YouTube.
More info here:
http://gdata.ops.demo.googlepages.com/yt_json_codelab.html#callback


<html>
<head>
<title>My Videos</title>
<script type="text/javascript">
function showMyVideos(data) {
var feed = data.feed;
var entries = feed.entry || [];
var html = ['<ul>'];
for (var i = 0; i < entries.length; i++) {
var entry = entries[i];
var title = entry.title.$t;
html.push('<li>', title, '</li>');
}
html.push('</ul>');
document.getElementById('videos').innerHTML = html.join('');
}
</script>
</head>
<body>
<div id="videos" />
<script
type="text/javascript"
src="http://gdata.youtube.com/feeds/users/GoogleDevelopers/uploads?alt=json-in-script&format=5&callback=showMyVideos">
</script>
</body>
</html>

I can see the output of that in a webbrowser but not thru AjaxTabs.

Should this work or should I just forget it? :)

Best regards, Boris
thru AjaxTabs.

BorO
01-13-2009, 06:00 PM
Sorry for my poor Title. I saw it to late :(

ddadmin
01-13-2009, 07:05 PM
Ajax generally has trouble showing external pages with complex or runtime JavaScript. Have you tried using the IFRAME option within Ajax Tabs Content script instead to display that particular content?

BorO
01-14-2009, 07:17 AM
Thanks for the answer!

It work's!
:)

Is there a way to set height of the IFRAME created?

Regards!

ddadmin
01-14-2009, 11:11 AM
Thanks for the answer!

It work's!
:)

Is there a way to set height of the IFRAME created?

Regards!

There are several threads on this already actually. Please do a search.

BorO
01-14-2009, 12:01 PM
Ok, I'm going to try to find it.

Thanks you very much!

Best regards!

BorO
01-14-2009, 12:45 PM
I have found the solution and AjaxTabs work great!

Thank you for your help and great scripts!

Best regards!