Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > 'Back Button (Arrow)' Puzzle ?

Reply
Thread Tools

'Back Button (Arrow)' Puzzle ?

 
 
Beauregard T. Shagnasty
Guest
Posts: n/a
 
      07-26-2010
Mel Smith wrote:

> Beauregard said:
>> After a quick glance, I'd guess that your Back button problem is due
>> to the fact that your entire site is enclosed in frames.

>
> Most of the external sites work properly -- so Frame use should not
> be the problem. Also, I use zoneedit.com for translating my site from
> www.mesaeastpark.com to ww2.mesaeastpark.com:4296.
>
> My pages have *no frames* (I don't even know how to *make* a frame --
> yet ) )


Your entire site is inside a frameset -- it is generally called a
"stealth frame" so that you can use your domain name instead of that ww2
URL.

>> Where is there a link to an "external site?"

>
> Arggg. I copied faulty code from my pages (I copied the .jpg image
> rather than the link). Here is the proper code:


Where - on your site - is there a link to this external site?

> <a
> href="http://www.flexmls.com/cgi-bin/mainmenu.cgi?cmd=url+other/run_public_link.html&public_link_tech_id=rjr0to90v fa&s=12&id=1&cid=1">X007231</a>


That page does not have the "Refresh" that Rob W. was so sure was the
answer. The real answer is that flexmls site uses a *frame-busting*
JavaScript script.

var win = window;
while( parent !== win && (parent.frames.length > 0) )
win = win.parent;

if( window !== win )
win.location = window.location;

I use a similar script on all my sites/pages as well. I don't
particularly care to be buried within someone else's site, implying that
the content belongs to them. So unless your own visitors have disabled
JavaScript, they will leave your frame -- and your Back button.

For external links on my sites, here's my technique:
http://tekrider.net/pages/faq.php?q=osl
which, though it doesn't mention frames, is the same principle.

--
-bts
-Four wheels carry the body; two wheels move the soul
 
Reply With Quote
 
 
 
 
Beauregard T. Shagnasty
Guest
Posts: n/a
 
      07-26-2010
123Jim wrote:

> .. you might able to reprogram it to force the external pages to stay
> in your frame.


... only if he found a way to disable JavaScript in all his visitors'
browsers... which isn't possible.

--
-bts
-Four wheels carry the body; two wheels move the soul
 
Reply With Quote
 
 
 
 
123Jim
Guest
Posts: n/a
 
      07-26-2010

"Beauregard T. Shagnasty" <> wrote in message
news:i2kq4s$bf6$...
> 123Jim wrote:
>
>> .. you might able to reprogram it to force the external pages to stay
>> in your frame.

>
> .. only if he found a way to disable JavaScript in all his visitors'
> browsers... which isn't possible.
>
> --


I always knew javascript was evil! .. I have it turned off with Noscript in
FF .. that is why I found no problems before I used IE.

On the other hand .. might it be possible to scrape the offending web page
containing the frame busting javascript, and paste the relevant bit back
into the frame .... in that way there will be no escape from the frame ... I
dont think javascript can do that client side but some php or other server
side script can I'm sure ...


 
Reply With Quote
 
Beauregard T. Shagnasty
Guest
Posts: n/a
 
      07-26-2010
123Jim wrote:

> "Beauregard T. Shagnasty" wrote:
>> 123Jim wrote:
>>> .. you might able to reprogram it to force the external pages to
>>> stay in your frame.

>>
>> .. only if he found a way to disable JavaScript in all his visitors'
>> browsers... which isn't possible.

>
> I always knew javascript was evil!


Can be sometimes ... but normally, it is _frames_ that are evil!
http://www.html-faq.com/htmlframes/?framesareevil

The part that causes me to use the framebusting script is:
"Linking and copyright"

> .. I have it turned off with Noscript in FF .. that is why I found no
> problems before I used IE.


Yes, that would be the case. In Firefox, I use the PrefBar extension to
place a checkbox for JavaScript (and other things) right there in front
of me, and only enable it if i) I trust the site, and ii) there's no
other way to get the content I desire.

> On the other hand .. might it be possible to scrape the offending web
> page containing the frame busting javascript, and paste the relevant
> bit back into the frame .... in that way there will be no escape from
> the frame ... I dont think javascript can do that client side but
> some php or other server side script can I'm sure ...


I suppose that could be possible, but I don't have any experience
attempting to do so. I wouldn't do it, because it violates the copyright
that I mentioned above.

--
-bts
-Four wheels carry the body; two wheels move the soul
 
Reply With Quote
 
Doug Miller
Guest
Posts: n/a
 
      07-26-2010
In article <>, "Mel Smith" <> wrote:
> Here is the proper 'external link' that doesn't allow the Back button to
>work.
>
><a
>href="http://www.flexmls.com/cgi-bin/mainmenu.cgi?cmd=url+other/run_public_link
>.html&public_link_tech_id=rjr0to90vfa&s=12&id=1&c id=1">X007231</a>


Works just great for me; ergo, there's some problem on your site...
 
Reply With Quote
 
123Jim
Guest
Posts: n/a
 
      07-26-2010

"Beauregard T. Shagnasty" <> wrote in message
news:i2ksf5$luj$...
> 123Jim wrote:
>
>> "Beauregard T. Shagnasty" wrote:
>>> 123Jim wrote:
>>>> .. you might able to reprogram it to force the external pages to
>>>> stay in your frame.
>>>
>>> .. only if he found a way to disable JavaScript in all his visitors'
>>> browsers... which isn't possible.

>>
>> I always knew javascript was evil!

>
> Can be sometimes ... but normally, it is _frames_ that are evil!
> http://www.html-faq.com/htmlframes/?framesareevil
>
> The part that causes me to use the framebusting script is:
> "Linking and copyright"
>
>> .. I have it turned off with Noscript in FF .. that is why I found no
>> problems before I used IE.

>
> Yes, that would be the case. In Firefox, I use the PrefBar extension to
> place a checkbox for JavaScript (and other things) right there in front
> of me, and only enable it if i) I trust the site, and ii) there's no
> other way to get the content I desire.
>
>> On the other hand .. might it be possible to scrape the offending web
>> page containing the frame busting javascript, and paste the relevant
>> bit back into the frame .... in that way there will be no escape from
>> the frame ... I dont think javascript can do that client side but
>> some php or other server side script can I'm sure ...

>
> I suppose that could be possible, but I don't have any experience
> attempting to do so. I wouldn't do it, because it violates the copyright
> that I mentioned above.
>
> --


^^ Good points .. ^^

I think something has changed on the OP's website, or maybe even the linked
webpage as the back button now seems to work fine in IE ..


 
Reply With Quote
 
Beauregard T. Shagnasty
Guest
Posts: n/a
 
      07-26-2010
Doug Miller wrote:

> "Mel Smith" wrote:
>> Here is the proper 'external link' that doesn't allow the Back button
>> to work.
>>
>><a
>>href="http://www.flexmls.com/cgi-bin/mainmenu.cgi?cmd=url+other/run_public_link
>>.html&public_link_tech_id=rjr0to90vfa&s=12&id=1& cid=1">X007231</a>

>
> Works just great for me; ergo, there's some problem on your site...


The flexmls link just above works fine, by itself. The problem occurs
when it is clicked on Mel's page (within his frame) and the flexmls
frame-busting script is run. You have to run it from within a frame to
notice this.

I can't find this link on Mel's site ...

--
-bts
-Four wheels carry the body; two wheels move the soul
 
Reply With Quote
 
Beauregard T. Shagnasty
Guest
Posts: n/a
 
      07-26-2010
Mel Smith wrote:

> Beau says:
>> [Doug wrote:]
>>> Works just great for me; ergo, there's some problem on your site...

>>
>> The flexmls link just above works fine, by itself. The problem
>> occurs when it is clicked on Mel's page (within his frame) and the
>> flexmls frame-busting script is run. You have to run it from within
>> a frame to notice this.
>>
>> I can't find this link on Mel's site ...

>
> Beau and Others:
>
> Here's the way to drill down to the offending 'back button':
>
> - http://ww2.mesaeastpark.com:4296


Using this *real* URL (ww2.mesaeastpark.com:4296) negates the problem.
There's no longer a frame to bust out of. Go to http://mesaeastpark.com
and do the rest.

> - Click on 'Visit Us'
> - Click on 'Real Estate Services'
> - Click on 'View Homes for Sale'
> - Scroll down the left-hand column (under Sandy's Listings) until you
> come to an *Exclusive* Listing (and button) (e.g.,'Exclusive: X007241')
> - Click on that button.
> - Click on the 'X007241' button on the next page to see the home
> detail and pictures.
> - Then try to 'back up' with the 'Back Button'
>
> Jeez, I'm sick of this 'drilling down' !!


If you didn't use frames, you could have given a link directly to the
X007241 page. No drilling required.

--
-bts
-Four wheels carry the body; two wheels move the soul
 
Reply With Quote
 
Mel Smith
Guest
Posts: n/a
 
      07-26-2010
Beau said:

>
> Using this *real* URL (ww2.mesaeastpark.com:4296) negates the problem.
> There's no longer a frame to bust out of. Go to http://mesaeastpark.com
> and do the rest.
>
>> - Click on 'Visit Us'
>> - Click on 'Real Estate Services'
>> - Click on 'View Homes for Sale'
>> - Scroll down the left-hand column (under Sandy's Listings) until
>> you
>> come to an *Exclusive* Listing (and button) (e.g.,'Exclusive: X007241')
>> - Click on that button.
>> - Click on the 'X007241' button on the next page to see the home
>> detail and pictures.
>> - Then try to 'back up' with the 'Back Button'
>>
>> Jeez, I'm sick of this 'drilling down' !!

>
> If you didn't use frames, you could have given a link directly to the
> X007241 page. No drilling required.



Beau:

Thanks for the clarification and the guidance on your webpage about
visiting external sites.

*Many* years ago, I live north across the *big* lake well north of you
(i.e., in Picton)

Again, many thanks !

-Mel Smith


 
Reply With Quote
 
Dave
Guest
Posts: n/a
 
      07-26-2010
Mel Smith wrote:
> Enviro: IE7, Firefox, Chrome, Opera, Safari browsing my own website
> (mesaeastpark.com) and its real estate listings.
>
> As a newbie, I've been fussing over the last day or so about an annoying
> characteristic of the 'Back Button' of the above browsers.
> On some *external* sites I visit (from one of my pages on my own site),
> my 'back button' fails to return me to the previous page. When I press this
> button, the current page reloads again, and again. This is highly annoying
> to me (and to my visitors).
> After puzzling over this problem all morning, it seems that the
> visitation to 'some' external sites leads to a *further* leap by that site
> to a further page (which contains the ultimate info desired). However,
> *now* the back button returns to that 'certain' external site and thence to
> the detail page again.
>
> Result: I can never get back the my own site again and have to 'X' the
> browser.


Terrible frame designs notwithstanding, you do realise that your back
button also acts as a dropdown allowing you to go back several pages in
one go?

No need to close the browser/window !

(At least it does by default in IE and Firefox, and can be made to do so
in Opera. No idea about Safari/Chrome).
 
Reply With Quote
 
 
 
Reply

Thread Tools

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
What is the extra bar along top in v1.5 with puzzle image? Can we get rid of? S.Rodgers Firefox 9 12-14-2005 11:15 AM
Home networking puzzle?!? =?Utf-8?B?Qm9ya28=?= Wireless Networking 3 01-25-2005 06:49 AM
A NS puzzle:) Brad Snow Firefox 6 09-03-2004 04:54 AM
A puzzle to puzzle you sk A+ Certification 1 07-17-2004 05:19 PM
PUZZLE Getting DropDownList Index of Matching Value Earl Teigrob ASP .Net 3 08-06-2003 09:41 PM



Advertisments