-
Dynamic Content Problem
I am using this particular script successfully....
http://www.dynamicdrive.com/dynamici...jaxcontent.htm
except when I insert a video (.flv extension). The script will readily display images and text but will not show the video. As a footnote, the video will run when opened directly in the browser. It just won't show in the 'right column'.
Any ideas please?
Thank you.
-
from briefly looking at the script..do you load directly the flv? or you r loading a page that contains a flv player of some sort?
-
Hi genia....
I am loading an HTML page which contains the syntax for the code.
-
the page links to flv or swf that then loads the flv?
-
Correct. It's a relatively simple page which contains the code to display the video. The page itself works. I just cannot figure out why it won't display in the right-hand column of the dynamic code. I have tested a couple of images and they display fine. I wasn't certain if there was a prohibition on displaying video content?
-
i dont see any.
post the code\link
maybe you missed something simple..
-
Do you have a link to your page?
-
Yep. Bear with me. I'm working on a demo right now. Will post it ASAP.
-
okay, here is a 'test page'.
http://www.knightymeproductions.com/test/test.html
If you go directly to the external page itself, it works fine.
http://www.knightymeproductions.com/test/external.htm
I'm at a loss as to why though.
-
try
Code:
javascript:ajaxpage('test/external.htm','rightcolumn');
-
Tried it. Didn't work. I really suspect it's something simple and I'll be mad at myself after I figure it out...but don't know how many more birthdays that'll be!!
-
You forgot to close the left column div
and remove the extra </div> after </table>
-
Yes, I did. Closed it but that didn't solve the problem. :confused:
-
it should be:
Code:
<body>
<table width="650">
<tr>
<td width="45%">
<div align="center"><!--webbot bot="HTMLMarkup" startspan -->
<div id="leftcolumn"><a href="javascript:ajaxpage('external.htm', 'rightcolumn');">Test Page</a></div>
</td>
<td width="45%">
<div id="rightcolumn"><h3>Choose a page to load.</h3></div>
<div style="clear: left; margin-bottom: 1em"></div><!--webbot bot="HTMLMarkup" endspan i-checksum="13151" --></p></td>
</tr>
</table>
</div>
</body>
if this doesn't help then get rid of the table
-
Well, it didn't work, so I took your advice and deleted the table.
That's the way I have it right now. Still no go.
-
pay attention to your code..you left there a </p> with no opening <p>.
anyway try this:
Code:
<body>
<div align="center"><!--webbot bot="HTMLMarkup" startspan -->
<div id="leftcolumn"><a href="javascript:ajaxpage('external.htm', 'rightcolumn');">Test Page</a></div>
<div id="rightcolumn"><h3>Choose a page to load.</h3></div>
</div>
</body>
also,at the top of the page before the <html> add the following:
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
-
Thanks....but no, that didn't work either. I've been trying some other things as well. This is a puzzler.
-
Dude!
now you have no <html>
pay attention!
another tought:
get rid of the centering empty div
Code:
<body>
<div id="leftcolumn"><a href="javascript:ajaxpage('external.htm', 'rightcolumn');">Test Page</a></div>
<div id="rightcolumn"><h3>Choose a page to load.</h3></div>
</body>
-
Corrected the HTML oversight and got rid of the other.
Nope.
-
crap
change to this at the top:
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
-
Done. Didn't work. I'm going to work on this sucker another half-hour...then give it a break.
But...I'm not going to let it beat me!!!!
-
ok,i think i got the fu**er
add width and height to the divs,say:
Code:
<style type="text/css">
#leftcolumn{
float:left;
width:150px;
height: 400px;
border: 3px solid black;
padding: 5px;
padding-left: 8px;
}
#rightcolumn{
float:left;
width:550px;
min-height: 400px;
border: 3px solid black;
margin-left: 10px;
padding: 5px;
padding-bottom: 8px;
}
</style>
inside the <head> </head> tags
-
Dannnng....I thought that was going to do it!! But :( it didn't.
-
ahahahahaha crap..i'm going to shoot myself or something(kidding)..btw you're invited to help my with my frustrating stuff too:
http://www.dynamicdrive.com/forums/s...ad.php?t=39066
and currently dont know what preventing it to work..
try to upload the example files from DD and see if they work
-
I did that a while back. In fact, I tested images with it from DD an it worked. The video, well, that's another story.
-
genia...I'm going to give up on mine for the day. However, I'm going to tackle both of our tomorrow to see if I can come up with anything. I've been going to long on this today, starting to make elementary mistakes.
-
well,post tommrow..my time is 00:17 now..i'm going to slepp too.
luck with this tommrow i will check the post when i will have time tomorrow
-
Okay, it's now about 4:47 AM, my time and I'm back to work on this mission. I figure I'll get it to work today or find another avenue to achieve the same objective, so that I can move on.
-
wow..447 is very early
any progress?
have you tried this locally on your pc?
-
Hi genia....
THAT'S the frustrating thing. I got it to work....once, locally. The weird thing is it won't work on the server!
I've had no progress yet but am starting over, completely from scratch so that I may play it by the numbers. This time I'm making notes and keeping track of gorund I've already covered. It will work. It's something I'm doing or not doing with the video script, getting it to talk back to DD's script.
-
genia...if you're still around, take a look at this...
http://www.knightymeproductions.com/...les/index.html
it's working there....
but...not here....
http://www.knightymeproductions.com/...est2/index.htm
Going into the kitchen to catch me a bite of breakfast. Be back in just a bit.
-
Whoa...You guys have been trying a lot of things here. Sad to say that most of it is way off base and you're wasting to your time. To clear up the mystery....
The original problem:
You're embedding the Flash player via JavaScript but not passing the JS into AJAX. Read the instructions under the headline "Load page and external CSS /JavaScript links" for more information on how to do this.
So, either load the JS into the parent page or as syn0psis as shown use <object> tags. These of course have validity issues (and EOLAS in IE) but if that's not a concern, it's a valid option.
Syn0psis's code:
On the test page you can tell that the Flash file is loading. Right click after loading the text page and you'll see the Flash context menu. Why isn't the video showing up? The path to the video is wrong! It needs to be relative to the page showing it.
Hope that clears some of your frustration and stops you guys from wasting more time.
-
Hi Medyman....
When all of that sinks in, it will clear a LOT UP!! Thank you!
I think my brain is about fried as I've been working on this longer than I care to admit.
Much APPRECIATED!!! :)
-
well,at last!
maybe you will take a look at my problem?
http://www.dynamicdrive.com/forums/s...ad.php?t=39066
-
Medyman and genia....
I have finally come to the conclusion that what I'm attempting to do is entirely possible, but a couple of planes above my level of comprehension.
I thought I could hardcode my way into or out of anything but this one has me whipped.
Medyman, I did understand your advice via e-mail (I think) but couldn't get it to work to save my life. Right now I'm frazzled.. :eek: ..and headed out to the sunshine.
Thanks guys for all your help! :)