473,326 Members | 2,048 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

Alternative to embedding HTML with <OBJECT>?

I'm a proficient, standards-conscious HTML/CSS coder who is in over her head!

Here's my dilemma. I've got a page with some boilerplate text at the top and a "portfolio" area that extends beyond the fold. I need a coding strategy that would allow visitors to navigate the "pages" of the portfolio without forcing them back to the top of the page with every click.

There are probably several ways to do this, but since I don't know anything beyond basic HTML and CSS, I thought I could do it by embedding HTML for the portfolio pages within an independent viewport on the containing page. Frames get a bad rap, so I chose the <OBJECT> tag for this purpose. It was all working great until (surprise, surprise) I tested it in IE.

IE (all versions) treats objects as "ActiveX" (ie., potentially dangerous) components. My current setup triggers a security warning and requires visitors to click to allow the content.
Even if the user chooses to allow, IE adds an ugly gray "shadowbox" border around the object that can't be removed or even masked with CSS. Thanks, Microsoft.

Anyway, I need to find another way to create this page and I'm at a loss. I tried using a server-side include to import the portfolio content, but it only works for the first page — after the user clicks the "next" arrow, the containing page disappears.

I'm totally clueless about everything outside of HTML, so if the solution is javascript or CGI-related, I might need a little handholding. I don't even know what search terms to use. You see this sort of thing all the time (stationary containing page with navigable content), but I just don't know what it is or what it's called.

Help!

Thanks,
jenncita

P.S. You can see the current <OBJECT> setup here: http://www.inkmeansbusiness.com/Old/...ingsamples.htm. My attempt at using SSI is here: http://www.inkmeansbusiness.com/Old/...inerTEST.shtml.
Mar 7 '10 #1
3 2277
drhowarddrfine
7,435 Expert 4TB
Are you saying you don't want to do what you're doing now and prefer to display each item one after another scrolling their way down while some other navigation is available while scrolling? If so, you might look into putting your nav on one side and using 'position:fixed' which will keep it in one position. The only 'gotcha' of course will be with IE where 'fixed' doesn't work in IE6 and is buggy in IE7.
Mar 7 '10 #2
Thanks for your quick response, DrHoward.

Actually, no, it's not that—only one portfolio "page" is visible at a time. If you have a moment to check out the page (http://www.inkmeansbusiness.com/Old/...ingsamples.htm) you'll see that I used CSS to make this part of the page look like a notebook, with the visitor seeing the various "pages" as they click the [next] arrow.

With the object setup I currently have (that—unfortunately—doesn't work in ie), the book does just what it's supposed to: hold still while the inner text and images change, like a slide show. Without this viewport functionality, changing slides would make the view jump back to the top each time.
Mar 8 '10 #3
drhowarddrfine
7,435 Expert 4TB
I don't have IE available and may be gone most of the day. I thought I had looked at that page and it did work in IE, at least for me with IE8.
Mar 8 '10 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: JayBrahms | last post by:
Hi there. OK, this is a little bit complicated. I would live to find a different way to do this, but evidentially I am not able to open a Text-File in JAVASCRIPT and fill an Array with the...
4
by: KC | last post by:
Could some one explain to me the casting rules for sending generic lists, ex. List<Person>, to a function that accepts List<object>? I cannot get the following easy-cheesy app to work. I get the...
0
by: Dominator.Legend | last post by:
Hallow every one, i have a problem using .net user control with the <OBJECT> tag, I made a normal user control in C#, then i use the regasm to register it, also i use the option regfile to...
1
by: easy.lin | last post by:
.... <object id="10">door</object> .... I try to write this in clipse XSD editor <element name="object" type="string"> <attribute name="id" type="int"></attribute> </element> but get wrong...
4
by: colson | last post by:
Hi, If I have a class A, and a List<List<object>> containing instances of A. How do I explicitly cast List<List<object>> as List<List<A>>?
4
by: msnews.microsoft.com | last post by:
hello every one i am using media player in internet explorer but i cannot access it directly in code behind, so do you know a way to access it? <object id="video123"...
0
by: diver | last post by:
I was using an <iframe> to load a website within my .aspx page. When the user "logged out", I called a javascript break out function to breakout of the frame and load the appropriate page when...
9
by: Stephan Steiner | last post by:
Hi I seem to have a bit of trouble understanding one bit of how generics work: In C#, every class automatically derives from object, and inherits a bunch of properties (i.e. ToString()). Thus,...
5
by: Barrie Wilson | last post by:
anyone have any idea why I might be having an impossible time embedding a YouTube <objectin an .ASPX file: <object width="425" height="355"> <param name="movie"...
4
by: Alan Silver | last post by:
Hello, I have an <objecttag that is used to display a Flash file. I would like the whole Flash file to be a link. The obvious thought would be to do this... <a...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.