Log in

View Full Version : Dynamic Content Problem



syn0psis
11-24-2008, 05:40 PM
I am using this particular script successfully....

http://www.dynamicdrive.com/dynamicindex17/ajaxcontent.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.

genia
11-24-2008, 06:27 PM
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?

syn0psis
11-24-2008, 07:08 PM
Hi genia....

I am loading an HTML page which contains the syntax for the code.

genia
11-24-2008, 07:10 PM
the page links to flv or swf that then loads the flv?

syn0psis
11-24-2008, 07:14 PM
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?

genia
11-24-2008, 07:21 PM
i dont see any.
post the code\link
maybe you missed something simple..

Medyman
11-24-2008, 07:23 PM
Do you have a link to your page?

syn0psis
11-24-2008, 07:23 PM
Yep. Bear with me. I'm working on a demo right now. Will post it ASAP.

syn0psis
11-24-2008, 07:47 PM
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.

genia
11-24-2008, 07:53 PM
try

javascript:ajaxpage('test/external.htm','rightcolumn');

syn0psis
11-24-2008, 07:58 PM
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!!

genia
11-24-2008, 08:05 PM
You forgot to close the left column div
and remove the extra </div> after </table>

syn0psis
11-24-2008, 08:08 PM
Yes, I did. Closed it but that didn't solve the problem. :confused:

genia
11-24-2008, 08:12 PM
it should be:


<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

syn0psis
11-24-2008, 08:16 PM
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.

genia
11-24-2008, 08:21 PM
pay attention to your code..you left there a </p> with no opening <p>.
anyway try this:


<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:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

syn0psis
11-24-2008, 08:26 PM
Thanks....but no, that didn't work either. I've been trying some other things as well. This is a puzzler.

genia
11-24-2008, 08:27 PM
Dude!
now you have no <html>

pay attention!
another tought:
get rid of the centering empty div


<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>

syn0psis
11-24-2008, 08:34 PM
Corrected the HTML oversight and got rid of the other.

Nope.

genia
11-24-2008, 08:40 PM
crap
change to this at the top:


<!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">

syn0psis
11-24-2008, 08:42 PM
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!!!!

genia
11-24-2008, 08:49 PM
ok,i think i got the fu**er
add width and height to the divs,say:


<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

syn0psis
11-24-2008, 08:52 PM
Dannnng....I thought that was going to do it!! But :( it didn't.

genia
11-24-2008, 09:30 PM
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/showthread.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

syn0psis
11-24-2008, 09:34 PM
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.

syn0psis
11-24-2008, 09:48 PM
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.

genia
11-24-2008, 10:18 PM
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

syn0psis
11-25-2008, 10:49 AM
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.

genia
11-25-2008, 11:03 AM
wow..447 is very early
any progress?
have you tried this locally on your pc?

syn0psis
11-25-2008, 11:19 AM
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.

syn0psis
11-25-2008, 12:49 PM
genia...if you're still around, take a look at this...

http://www.knightymeproductions.com/test/test2/ajaxfiles/index.html

it's working there....

but...not here....

http://www.knightymeproductions.com/test/test2/index.htm

Going into the kitchen to catch me a bite of breakfast. Be back in just a bit.

Medyman
11-25-2008, 01:50 PM
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 (http://www.dynamicdrive.com/dynamicindex17/ajaxcontent.htm) 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.

syn0psis
11-25-2008, 01:58 PM
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!!! :)

genia
11-25-2008, 02:33 PM
well,at last!
maybe you will take a look at my problem?
http://www.dynamicdrive.com/forums/showthread.php?t=39066

syn0psis
11-25-2008, 05:30 PM
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! :)