Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
AJAX and refresh/location bar/backbutton woes (adding to history)
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  5 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
petermich...@gmail.com  
View profile  
 More options Jul 7 2006, 3:48 pm
Newsgroups: comp.lang.javascript
From: petermich...@gmail.com
Date: 7 Jul 2006 12:48:00 -0700
Subject: AJAX and refresh/location bar/backbutton woes (adding to history)
Hi,

If I type http://domain.com/product/5 into my browser I will see the
product details in the main div plus a side bar div containing links to
other products. This side bar is common to all product views. I click a
sidebar link to product 6 and an ajax request updates the main cell
with the product 6 information. My location bar will still say
/product/5. If I refresh the browser I will see product 5. If I
bookmark the page it will be for product 5. If I click the back button
I will go to the page I saw before product 5. I know none of these
problems with AJAX are new. Why is it that JavaScript can't tell the
browser "Now you are looking at http://domain.com/product/6"? Is there
a security risk? Is this just something not yet implemented?

Thanks,
Peter


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jim Ley  
View profile  
 More options Jul 7 2006, 3:54 pm
Newsgroups: comp.lang.javascript
From: j...@jibbering.com (Jim Ley)
Date: Fri, 07 Jul 2006 19:54:33 GMT
Local: Fri, Jul 7 2006 3:54 pm
Subject: Re: AJAX and refresh/location bar/backbutton woes (adding to history)
On 7 Jul 2006 12:48:00 -0700, petermich...@gmail.com wrote:

> Why is it that JavaScript can't tell the
>browser "Now you are looking at http://domain.com/product/6"? Is there
>a security risk? Is this just something not yet implemented?

It's a security risk, the URL needs to reflect where you are:

Imagine this URL
<URL:
https://www.google.com/ig/feeds?q=http://ha.ckers.org/blog/feed/?%3CS...


It looks a bit fishy right?  but a couple of days ago that would've
shown you a page that looked indistinguishable from

https://www.google.com/adsense/

only the log in details would be stolen.  The inability to make the
url look like you want is an important protection, even within the
same site.

Jim.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Matt Kruse  
View profile  
 More options Jul 7 2006, 3:59 pm
Newsgroups: comp.lang.javascript
From: "Matt Kruse" <newsgro...@mattkruse.com>
Date: Fri, 7 Jul 2006 14:59:43 -0500
Local: Fri, Jul 7 2006 3:59 pm
Subject: Re: AJAX and refresh/location bar/backbutton woes (adding to history)

petermich...@gmail.com wrote:
> Why is it that JavaScript can't tell the
> browser "Now you are looking at http://domain.com/product/6"? Is there
> a security risk?

Most certainly.

If javascript could change the url displayed by the browser, yet not
actually cause it to make a request and load the new page, I could make a
fake Paypal sign-on page, for example, and change the url to
www.paypal.com - you wouldn't even know the difference!

The challenges you face with Ajax are just some issues you need to consider
in the design. If you want bookmarkable pages, don't use ajax. Or provide a
link to the permanent url which represents the view you are seeing, so it
can be bookmarked. Etc.

--
Matt Kruse
http://www.JavascriptToolbox.com
http://www.AjaxToolbox.com


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
petermich...@gmail.com  
View profile  
 More options Jul 7 2006, 4:29 pm
Newsgroups: comp.lang.javascript
From: petermich...@gmail.com
Date: 7 Jul 2006 13:29:15 -0700
Local: Fri, Jul 7 2006 4:29 pm
Subject: Re: AJAX and refresh/location bar/backbutton woes (adding to history)

Good enough. Thanks.

Peter


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
petermich...@gmail.com  
View profile  
 More options Jul 7 2006, 4:30 pm
Newsgroups: comp.lang.javascript
From: petermich...@gmail.com
Date: 7 Jul 2006 13:30:07 -0700
Local: Fri, Jul 7 2006 4:30 pm
Subject: Re: AJAX and refresh/location bar/backbutton woes (adding to history)

Thanks, Jim.

Peter


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »