Forum Moderators: open

Message Too Old, No Replies

object tag for page that doesnt end in .htm/.html

object tags work on my page, but not if source page doesnt have .html suffx

         

seanmh

11:30 pm on Apr 26, 2005 (gmt 0)

10+ Year Member



using this code below, it works. except i'd rather not use iframes and, more importantly, iframes arent really working that well in firefox/mozilla. i'd rather be standards compliant and i'll be damned if i have to launch explorer to view my own site:

<iframe src="http://www.example.com/modules.php?op=modload&name=News&file=article&sid=53459&mode=thread&order=0&thold=0" height="300" width="100%" frameborder="0"></iframe>

but when i use the object tag, it doesnt work:

<object classid="http://www.example.com/modules.php?op=modload&name=News&file=article&sid=53459&mode=thread&order=0&thold=0" height="300" width="100%" type="text">object cant load</object>

i've tried classid and also data. i have other object tags on the site, specifically here:

<Sorry, no personal URLs.
See Terms of Service [webmasterworld.com]>

and it works. the only thing i can figure is that the object source that isnt working doesnt have a .html suffix on the page. i did some poking around and i cant find that exception explained. i'm sure i'm missing something stupid. but the reason i think this is because i first tested a homepage, which didnt work, then i added "/index.html" to it, and it worked.

what bothers me is that the iframe always seems to work in ie, but the object, even when referring to .html pages, doesnt work in ie. i'd rather use object tags and tell my small site membership to use a real browser.

i really appreciate any insight you can provide. i'm dont have tons of expertise with html, but it's frustrating because i'm so close on this.

thanks.

[edited by: seanmh at 12:04 am (utc) on April 27, 2005]

[edited by: tedster at 12:51 am (utc) on April 27, 2005]

bird

12:00 am on Apr 27, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



First, Welcome to Webmasterworld! [webmasterworld.com]

Second, you should remove the URL (or a friendly moderator will do it for you) to keep the post of general use. Your explanation of the problem is easy enough to understand withoug getting specific about your site.

Third, you might want to try a different type attribute in your object tag. Don't use "text", but "text/html". This will give the browser a better idea about what to do with the content it is supposed to load.

seanmh

12:05 am on Apr 27, 2005 (gmt 0)

10+ Year Member



actually i forgot to mention that i had used "text/html" before trying "text". that didnt work. i wasnt sure if there was anything else i could try.

url removed - sorry bout that.

seanmh

1:53 am on Apr 27, 2005 (gmt 0)

10+ Year Member



looks like i got it - i needed the data and the correct type (text.html) attributes. i guess in my constant testing i missed that combination.

but the best part is, i found this site. i'm sure i'll be around with more stupid questions.