Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Layer

Status
Not open for further replies.

PepperPepsi

Programmer
Aug 3, 2000
241
US
Hi,

I know this doesn't work in NS6 and IE broswer,
<layer src=&quot;data.html&quot;></layer>

is there any other way to do it? i don't work to use IFRAME

thanks Chiu Chan
WebMaster & Software Engineer
emagine solutions, inc
cchan@emagine-solutions.com
 
hi guys,

thanks for the responses.

iza,
the &quot;div&quot; tag sounds very similar to &quot;layer&quot; tag, but it doesn't supports src attributes. I need it to load the file &quot;data.html&quot;

vituz,
thanks for the link, but that one use IFRAME, which i'm not allow to use it.

any other idea?

thanks
Chiu Chan
WebMaster & Software Engineer
emagine solutions, inc
cchan@emagine-solutions.com
 
hey, slow down - u can hide this f*** iframe or set its display property 2 'none' - it is ie only tag, nothing wuld be wrong (i guess) - i use it only 2 insert new html code on the page, then i copy-paste it into div
i think it is the way, but if u'll find the other one i wuld listen 2 u with huge interest

btw - i've heard smth about <object> tag & its src, but didnt checked myself - trick with iframe works pretty good for me (not 100% but 80% cases at least)

regards, vic
 
hey pepperpepsi, did you solve your problem ? sorry i wasn't here much last days ...
if you're still stuck ...
-> you can use frames - they are cross borwser and support the src attributes and you can play with them almost as much as with the layers
-> you can still use the divs, but it might be a bit heavy ... div.innerHTML=(data.html content) <-- it depends on how you'll read & parse the data.html file, i'm sure vituz has some info on it as (s?)he copies the iframe content to the div
-> and i think vituz's idea on iframe is great ...
 
hie
well, iza, first of all, i'm HE
then
yes, this idea was myne, i thought a lot about it, & told myself: why not with iframes? but i'm not a first man 2 think about it, i just hadnt inet that time..
here is a way 2 get this idea 2 work:
originally posted by DoNotEven i knewout that this idea is not so very great
it works, but:
u cant refresh those external files (at least i cant) u c, as u take it & put into the hidden iframe then after first time it will always be taken from cache (u cant refresh/reload it manually) & if u'll cange smth in ur site there will be old files.. :-(
i kno that i can use meta expires & meta no-cache but i dont want 2 do that (there is probability that i wont change anything at all & the site is not dynamic, just information, no forums or chats there (for now))

so, if someone knows a workaround, give me the way, plz..
i have an idea that i shuld have index.htm non-cachin & from there make a redirect 2 needed homepage, so, when i'll change smth, i wuld just rename my new homepage & it wont be taken from cache
or another way:
get rid of scripts cachin, so, any time i'll change external filenames in the script that puts that files into iframe & stuff, that files wont be taken from cache..

anyone have another ideas??
regards, vic
 
how about appending a random number to the files name - so that the cache thinks it is a new file that is required ?
oh, and i'm happy to know you're a he ;]
 
about the he ? no ! it's just that i realized i was thinking of everyone here as a &quot;he&quot;, and tried to post errrr.... cross-gender (?? do you say so ???) comments, so that if there was a girl/woman here, she'd not get offended ;-)
about the random number ? i did it once and it seems to be still working

oh and btw ... i'm &quot;she&quot; ;]]]
 
i'm happy to know you're a &quot;she&quot; (-:
may be we shuld met each other? just kiddin.. (dont think u're from Russia.. but i am..)
& what about cachin - i know it works, & i know it also works with scripts:
Code:
<script language=&quot;javascript&quot;>
var time_now=new Date();
var secs=time_now.getSeconds()
document.write(&quot;<script language=\&quot;javascript\&quot; src=\&quot;scripptt.js&quot;+&quot;?time=&quot;+secs+&quot;\&quot;>&quot;+&quot;</&quot;+&quot;script>&quot;)
</script>
this wuld prevent those script from cachin..
cool, cool.. B-)
regards, vic
 
i'm from france, russia is a bit far (but maybe i'll come to test real vodka some day ;-))
and yes, adding time stamp is even beter than random numbers !! i'm happy to know your problem is on the way to be solved :)
 
u're so happy today, huh? glad for'ya regards, vic
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top