Винчестер, sIFR храни

6th January 2005 - 17:40

Проспал выход sIFR2.0rc3. Скачал сегодня, посмотрел. Собственно, меня интересует лишь одно: когда такие страницы можно будет спокойно бросать на винт. Пока что нельзя. При всей своей дружественности к браузерам без поддержки (или просто отключенного) flash и поисковым системам, разработчики этого метода до сих пор не задумались о том, что некоторые пользователи имеют привычку сохранять страницы. Хотя сделать sIFR более дружественным к локальному просмотру не составляет труда. В самом простом случае достаточно открыть sifr.js и добавить что-нибудь вроде

if (!/http:\/\//.test(window.location)) sIFR = false;

перед последними строками в этом файле

if(sIFR != false){sIFR.setup();};

То ли это настолько очевидно, что я нигде не нашёл упоминания об этой проблеме, то ли плохо искал, то ли… одно из трёх.

Ещё по теме:

Update: пользуйтесь Mozilla, она сохранит Ваш Flash до самых кончиков. :)

Categories: Flash MX, Usability | comments: (4)

Комментарии

1. Mark Wubben 6th January 2005 - 20:22

Hey… seeing the code snippets here makes me curious at what you are actually writing about. My Russion isn't that good, you know ;-) I wonder if you want to translate it for me?

Thanks,

Mash:

My English is not good too, but I try… :)

I open some page that using sIFR for replace text and save this page to disk. Later, when I try open it, I can’t see flash or text. Just blank space. Yeah, in Opera, for example, I can disable flash plug-in «in one click» and get text; I can use some plug-ins for IE, but…

Saved page has url in browsers like "file://…", "C:\…" or whatever. Why don’t check url before starting sIFR? If this url has "http://", then start replacement and stop if not.

"http://" — in very simple case, coz… "http://localhost", "http://127.0.0.1" or "https" on site.

Or maybe other (better) way to do this? It’s just «quick» idea.

2. Mark Wubben 6th January 2005 - 21:30

Hey Mash, thanks for translating. I'm assuming you are saving the page using the «Save Page As…» option of Firefox. This option saves the page directly from the DOM, which means that it saves the state of the document with sIFR applied. If it then doesn't save the Flash files (or if they don't load) you won't see anything. Unfortunately there's nothing we can do about this.

Mash:

ok, I’ve got your point. Gecko is good, smart engine and save page with *.swf files. :) How about other browsers?

>> …nothing we can do about this

(not sarcastic) Really nothing? It’s a pity.

3. Mark Wubben 6th January 2005 - 22:24

Not sure about other browsers, but if they save from the DOM they'll have the same problem.

Mash:

Opera and IE don’t save flash files with page. And that is a problem. I can save page on disk, but can’t see «replaced» text after opening this pages when my flash plug-in still enabled.

I can’t test demo page in Konqueror (as I see not supported(?)), but test another one and this browser also save page without flash files.

Anyway, thanks for your comments (new things for me about Mozilla). Good luck with 2.0 release! :)

4. Mark Wubben 7th January 2005 - 16:57

Yeah we found a bug in Konqueror… but it's solved in the next release!

Комментарии временно отключены.