Forum Moderators: open

Message Too Old, No Replies

iframe source validation

ifram html

         

ferfish

9:43 pm on Oct 15, 2008 (gmt 0)

10+ Year Member



Hey, I am trying to have an iframe with some content on it. For somehow when the source page that the iframe is refering to does not exists, something on a javascript code that messes with a div that contains the frame gets messed up.

Does anyone knows a way to validate if the page exists and if it does not, the something else get displayed on it?

MizzBia

10:16 pm on Oct 20, 2008 (gmt 0)

10+ Year Member




You'll most definitely need a script for that... maybe try JavaScript. If I may ask, why are you linking to pages that do not exist anyway?

ferfish

1:31 am on Oct 21, 2008 (gmt 0)

10+ Year Member



Hahaha, good question!

The thing is, I will display a page to my users that will load the name of a page (which lives in a different server) but my app can not guarantee that it will exists. But, this other page is not loading via the HTTP protocol but through a file system protocol in IE, this is, the page is in a Network Drive.

I've tested the behavior of this case on IE6 and it will not generate any kind of problem, but the problem comes in IE7.

Anyways I have not been able to work this around since my app cannot control anything beyond the server where it lives, so I leave it up to IE to grab the file and show it.

Thanks!

MizzBia

2:34 am on Oct 21, 2008 (gmt 0)

10+ Year Member




Oh, I get it now. I thought it was a little odd, lol.
I wish I could have been more help! Good luck

piatkow

9:57 am on Oct 21, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Had that problem. The solution was to put all the content on the web server. I now have to slap one or two people about occasionally for dodging quotas on the file and print server by sneaking non site files onto the web server.

ferfish

9:59 pm on Oct 21, 2008 (gmt 0)

10+ Year Member



Hahaha, yeah... that's the way... actually we though about setting up a tunnel between servers (they are all unix) so a specific folder would be actually a folder somewhere else... :( the techy guys at IT department send us back home!