HighDots Forums  

Re: forcing URL in frame??

Javascript JavaScript language (comp.lang.javascript)


Discuss Re: forcing URL in frame?? in the Javascript forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Ivo
 
Posts: n/a

Default Re: forcing URL in frame?? - 09-26-2003 , 10:49 AM






"petev" <petervar (AT) 12move (DOT) nl> wrote

Quote:
Hello, can anyone help me out?? Maybe its a bit complicated, maybe not
I'll try to explain. Am not a programmer so have patience!

[SITUATION]
I have a website whose url looks like this:
http://home.provider.nl/~mybusiness/

Shortly I have a registered a domain name:

http://www.mybusiness.nl

... that is now "hosted" by another provider: the only thing it does is
sending a visitor of www.mybusiness.nl to
http://home.provider.nl/~mybusiness/ (this is called "webforwarding" or
routing)
Because my site also has frames, I had to change all "target=_top" to
"target=qwerty" to make internal navigation work correctly while being at
www.mybusiness.nl . That was no problem.

The problem is www.mybusiness.nl and http://provider.nl/ are different
domains, and browser security prevent socalled cross-domain scripting. There
are workarounds, since you control what is happening on pages on both sides,
but it gets nasty quickly. It is very good to be aware of problems you run
into when search engines pick up your unframed pages, but then to force the
correct, even nested frames in another domain, is no sinecure.
Besides all that, frame-forcing scripts will prevent your pages from
participating in Google Images Search to name one good example of the use of
frames. I would reconsider using frames alltogether, at least for the
regular pages, and accept the provider.nl in the address- and statusbars for
the time being (that is:until you move to mybusiness.nl permanently).
HTH
Ivo




Reply With Quote
  #2  
Old   
petev
 
Posts: n/a

Default Re: forcing URL in frame?? - 09-26-2003 , 03:49 PM







"Ivo" <no (AT) thank (DOT) you> wrote

Quote:
"petev" <petervar (AT) 12move (DOT) nl> wrote in message
news:bl1m5d$ajq$1 (AT) reader1 (DOT) tiscali.nl...
Hello, can anyone help me out?? Maybe its a bit complicated, maybe not

I'll try to explain. Am not a programmer so have patience!

[SITUATION]
I have a website whose url looks like this:
http://home.provider.nl/~mybusiness/

Shortly I have a registered a domain name:

http://www.mybusiness.nl

... that is now "hosted" by another provider: the only thing it does is
sending a visitor of www.mybusiness.nl to
http://home.provider.nl/~mybusiness/ (this is called "webforwarding" or
routing)
Because my site also has frames, I had to change all "target=_top" to
"target=qwerty" to make internal navigation work correctly while being
at
www.mybusiness.nl . That was no problem.

The problem is www.mybusiness.nl and http://provider.nl/ are different
domains, and browser security prevent socalled cross-domain scripting.
There
are workarounds, since you control what is happening on pages on both
sides,
but it gets nasty quickly. It is very good to be aware of problems you run
into when search engines pick up your unframed pages, but then to force
the
correct, even nested frames in another domain, is no sinecure.
Besides all that, frame-forcing scripts will prevent your pages from
participating in Google Images Search to name one good example of the use
of
frames. I would reconsider using frames alltogether, at least for the
regular pages, and accept the provider.nl in the address- and statusbars
for
the time being (that is:until you move to mybusiness.nl permanently).
HTH
Ivo
Thanks Ivo. I understand what you're saying. Maybe indeed its best to later
move the entire site to mybusiness.nl! For the moment I keep trying to solve
this puzzle. Stil hoping anyone can come up with some javascript (if at all
possible).

Frames: yes I know they are not considered very positive, for many reasons.
I still did choose for frames though, because my client gave priority to
speed, the site should be super fast. Reloading every time a new page with
all menu-graphics in it would slow it all down... (for people with slow
modems). Or maybe with speed in mind..was/is there a better option than
frames? (graphics are already minimized in number and kb size)

PV




Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.