Click to See Complete Forum and Search --> : AJAX solution?


outatime
05-18-2009, 01:44 AM
Hi,

http://southernpartsequipment.com/dasher/museum.php

On my page you will see two links that open pop up windows with swf videos in them. And you will see a picture to the right. What I want to do is have those links replace the picture with the corresponding video without the browser refreshing. I was trying to do this with AJAX but I didn't even come close to getting it right. Is AJAX the best solution to do this? If not what is? Thanks in advance.

Charles
05-18-2009, 04:29 AM
Is AJAX the best solution to do this?Yes but you have to be very careful with it. Not everybody uses JavaScript, vast numbers of us do not. So you have to implement the AJAX so that the link that triggers the AJAX works like a normal link when it needs to. Or you could just us an IFRAME.

outatime
05-18-2009, 06:55 AM
I was thinking of using an iframe but I have never used one. Will the iframe change without the browser refreshing?

Charles
05-18-2009, 09:32 AM
Yes and see http://www.w3.org/TR/REC-html40/present/frames.html#edef-IFRAME . But you will have to use the transitional DTD.

outatime
05-18-2009, 07:41 PM
Alright thanks Charles.