![]() |
HTML Strict question
The HTML 4.01 Strict standard doesn't allow the use of iframe. However, it does allow the use of object. I recall reading somewhere that iframe is a special instance of object (don't know if this is true or not, but seems reasonable). My question is, is it possible to make a link which would have an object as its target and thus create the same effect of an iframe that switches to a different location when you click on that hyperlink. I want to try and do this for a picture gallery but without having to reload the entire page. Just the actual picture load on the side when you click on a thumbnail. Without resorting to using javascript and other such tricks.
|
Re: HTML Strict question
You can use JavaScript to alter the src attribute of the image.
I don't think it is possible to do this without JavaScript, but I might be wrong. |
Re: HTML Strict question
How are going to define the object?
You can do what you want server-side if you don't mind making the trips. Personally, I'd rather use client-side script. |
Re: HTML Strict question
In XHTML there are three standards: Transitional, Strict and Frameset. Just use the Frameset standard if you want frames. It is the same as using strict except you are allowed frames.
EDIT: That is if you want to jump to XHTML. |
Re: HTML Strict question
@titaniumdecoy: I want to know if I can do it without javascript or other such client-side techs.
@DaWei: I hadn't really considered defining the object but the html would be this :
<iframe name="someFrame" src="somePage.html"></iframe>@Grich: my question specifically refers to the HTML Strict standard, hence why I'm asking if it can be done this way. |
Re: HTML Strict question
But you're using an iframe tag in your example. You're not defining a new object, you're using a predefined object. How would you plan to define an object that renders a separate server response in a defined area without resorting to a client-side definition (without going to the server for a whole new page)?
I daresay that if it were simple and efficient, there would be no such thing today as AJAX. |
Re: HTML Strict question
@DaWei: I have no idea how I would declare the object, I used the iframe to demonstrate what I wanted to do. I have no idea if it's possible using just the object tag and some params. I was sorta hoping someone here might know.
I don't even know that this is possible. Can someone tell me definitively (and cite the proof) that it's not? I realize I can do it with ajax, but I want to know if I can do it with just HTML Strict tags. EDIT: Found this a moment ago http://www.aplus.co.yu/web-dev/inser...her-html-page/ http://intranation.com/test-cases/object-vs-iframe/ I'll try and see if it'll work if I give the object a target name and put in a link. I'll post back with results. |
| All times are GMT -5. The time now is 12:40 PM. |
Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC