Hello,
I'm having a little problem with a snippet of mine:
Since it's written for a very special kind of browser, it does some things that will break the page for normal browsers. So I'd need a way of checking whether the page is being viewed in the preview-pane of the manager or not, as to turn the snippet off when needed. I do not want to check for the browser type, as I have to be sure that it's the preview of the manager and nothing else.
Thanks for any help,
iHawk
Check If Page Is Viewed Via Preview?
Started by iHawk, Apr 23 2006 12:26 AM
6 replies to this topic
#1
Posted 23 April 2006 - 12:26 AM
#2
Posted 23 April 2006 - 01:21 AM
That's a bit too vague of a description of what you are attempting to do to be of any help... Can you elaborate...??? If you'd rather not disclose any additional information here in the forums feel free to PM me with details and I'll see what I can come up with for ideas...
#3
Posted 23 April 2006 - 04:47 AM
Hmm... I don't really know how to be more specific. I just need some check to see if the page is called by the manager. There has to be some way for a snippet to verify this, by ways of the current session maybe.
#4
Posted 23 April 2006 - 02:51 PM
iHawk, on Apr 23 2006, 05:47 AM, said:
Hmm... I don't really know how to be more specific. I just need some check to see if the page is called by the manager. There has to be some way for a snippet to verify this, by ways of the current session maybe.
There is some CSS code that returns a message dependent on the browser. ie your are using IE or Firefox etc. It could easily return a snippett call only if viewed through your 'special' browser'.
However, I believe the viewer in the manager is a framed area so that it would only register as a normal IE browser or whatever browser you are using. If you run your etomite manager on your special browser, then the viewer would be read by the css as that special browser, and could then deliver your snippett content.
By the way and only out of curiosity, what is your special browser?
#5
Posted 23 April 2006 - 02:55 PM
That would be the EVE-Online ingame browser. It sends auth informations via it's request headers. Those infos are used to validate a user. The site is not supposed to be accessible through standard browsers, so it doesn't show in the preview pane either.
I know that this is in no way safe, since you can access the site by simply altering your browsers requests, but it's enough for the case at hand.
I know that this is in no way safe, since you can access the site by simply altering your browsers requests, but it's enough for the case at hand.
#6
Posted 23 April 2006 - 03:10 PM
iHawk, on Apr 23 2006, 03:55 PM, said:
That would be the EVE-Online ingame browser.
Just took a look at it online and it looks excellent. What a shame it is so expensive! I couldn't believe it when I saw it.
Are you incorporating a game into an etomite site. If you are I have an idea.
If you have all the eve stuff on a seperate page, not part of etomite, where it works. Can you not then wrap etomite around that page. I believe there is a snippett to do that. Would that achieve what you are trying to do?
#7
Posted 23 April 2006 - 05:10 PM
I don't know if this will help or not but when you use the Launch site link within Etomite Manager or click the Preview button on the Edit Document panel the URL in the launched browser window contains the get string z=manprev... This is also the case when the page is being displayed in the page preview iframe of the View document data panel... It should also be noted that Enable preview can be disabled on your Etomite configuration > Interface & editor settings panel if required...
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users











