![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
King of Portal
|
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.
__________________
Lo, there do I see my father. 'Lo, there do I see My mother, and my sisters, and my brothers. 'Lo, there do I see The line of my people... Back to the beginning. 'Lo, they do call to me. They bid me take my place among them. In the halls of Valhalla... Where the brave... May live... ...forever.. GrimBB | Mimesis |
|
|
|
|
|
#2 |
|
Expert Programmer
|
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. |
|
|
|
|
|
#3 |
|
Resident Grouch
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jun 2005
Posts: 6,453
Rep Power: 10
![]() |
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.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code. Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers |
|
|
|
|
|
#4 |
|
Hobbyist Programmer
Join Date: Sep 2007
Location: Sydney - Australia
Posts: 195
Rep Power: 2
![]() |
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.
__________________
SYNTAX ERROR ... Last edited by Grich; Oct 23rd, 2007 at 7:14 PM. Reason: Add on |
|
|
|
|
|
#5 |
|
King of Portal
|
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> <a href="someOtherPage.html" target="someFrame">click here</a> @Grich: my question specifically refers to the HTML Strict standard, hence why I'm asking if it can be done this way.
__________________
Lo, there do I see my father. 'Lo, there do I see My mother, and my sisters, and my brothers. 'Lo, there do I see The line of my people... Back to the beginning. 'Lo, they do call to me. They bid me take my place among them. In the halls of Valhalla... Where the brave... May live... ...forever.. GrimBB | Mimesis |
|
|
|
|
|
#6 |
|
Resident Grouch
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jun 2005
Posts: 6,453
Rep Power: 10
![]() |
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.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code. Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers |
|
|
|
|
|
#7 |
|
King of Portal
|
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.
__________________
Lo, there do I see my father. 'Lo, there do I see My mother, and my sisters, and my brothers. 'Lo, there do I see The line of my people... Back to the beginning. 'Lo, they do call to me. They bid me take my place among them. In the halls of Valhalla... Where the brave... May live... ...forever.. GrimBB | Mimesis Last edited by grimpirate; Oct 24th, 2007 at 12:25 AM. |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| start Learning HTMl | smita | HTML / XHTML / CSS | 0 | Mar 15th, 2007 7:38 AM |
| a basic question about using forms in html file | boraciner | PHP | 12 | Aug 5th, 2006 8:17 PM |
| Basics of HTML Tutorial | crawforddavid2006 | HTML / XHTML / CSS | 14 | Jul 11th, 2006 7:40 AM |
| Basic HTML Tutorial - Reuben Keeney | ReubenK | HTML / XHTML / CSS | 14 | Mar 26th, 2006 5:50 AM |
| HTML =/= Programming | Sane | Coder's Corner Lounge | 32 | Mar 8th, 2006 2:50 AM |