Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Oct 23rd, 2007, 3:20 PM   #1
grimpirate
King of Portal
 
grimpirate's Avatar
 
Join Date: Sep 2005
Posts: 431
Rep Power: 4 grimpirate is on a distinguished road
Send a message via Yahoo to grimpirate
Question 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.
__________________
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
grimpirate is offline   Reply With Quote
Old Oct 23rd, 2007, 3:42 PM   #2
titaniumdecoy
Expert Programmer
 
titaniumdecoy's Avatar
 
Join Date: Nov 2005
Posts: 855
Rep Power: 3 titaniumdecoy is on a distinguished road
Send a message via AIM to titaniumdecoy
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.
titaniumdecoy is online now   Reply With Quote
Old Oct 23rd, 2007, 3:48 PM   #3
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
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
DaWei is offline   Reply With Quote
Old Oct 23rd, 2007, 7:12 PM   #4
Grich
Hobbyist Programmer
 
Grich's Avatar
 
Join Date: Sep 2007
Location: Sydney - Australia
Posts: 195
Rep Power: 2 Grich is on a distinguished road
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
Grich is offline   Reply With Quote
Old Oct 23rd, 2007, 9:56 PM   #5
grimpirate
King of Portal
 
grimpirate's Avatar
 
Join Date: Sep 2005
Posts: 431
Rep Power: 4 grimpirate is on a distinguished road
Send a message via Yahoo to grimpirate
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>
So basically someOtherPage.html appears in the iframe when you click on the link. Can I do this using objects?

@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
grimpirate is offline   Reply With Quote
Old Oct 23rd, 2007, 10:09 PM   #6
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
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
DaWei is offline   Reply With Quote
Old Oct 24th, 2007, 12:15 AM   #7
grimpirate
King of Portal
 
grimpirate's Avatar
 
Join Date: Sep 2005
Posts: 431
Rep Power: 4 grimpirate is on a distinguished road
Send a message via Yahoo to grimpirate
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.
grimpirate is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

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




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 4:17 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC