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
IE history menu
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
  3 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
 
Aryeh Leib Taurog  
View profile  
 More options Nov 29 2007, 4:19 am
From: Aryeh Leib Taurog <altau...@gmail.com>
Date: Thu, 29 Nov 2007 01:19:45 -0800 (PST)
Local: Thurs, Nov 29 2007 4:19 am
Subject: IE history menu
It's neat to see all the new activity around this very useful
library!  I only started using it in the last few months, in an AJAX
search framework I'm building for a client organization.

I post the solution I found for a small problem I ran across:

Background: My search app allows a user to search various record bases
according to various search criteria, i.e. people by last name, date
of first contact, id, and so forth.  When the user executes a search,
I set the document title to reflect the search criteria:
"Coordinators Last Name Brown"

The problem: IE's drop-down history menu doesn't show the main
window's title, but that of the page loaded in the iframe.  So instead
of my dynamically generated user-friendly titles, one gets the url for
the iframe source, which isn't very useful to the user.

Solution: I added the following line to the pageLoaded function in
blank.html:
    document.title = window.parent.document.title;

This more or less does the trick.  There is one problematic edge
condition, which is what happens when revisiting a bookmarked search.
I get the generic title instead of the descriptive title for that
search.  If I understand correctly, this is because I can't properly
set the title until my history handler is called, which doesn't happen
until after blank.html is loaded in the iframe.

Perhaps in this case I could add a second page to the history once
I've properly set the window title.  If I'm more clever, I could try
calling the parent frame's title-generating code directly from the
pageLoaded function in the iframe.

In any case, the generic "Search" title is still much better than the
blank.html url, and I may just live with the edge case.

Incidentally, there seems to be another side-effect of using the
iframe in IE which I imagine would be much more difficult to work
around.  That is that as long as the user stays on my AJAX search
page, all the AJAX searches performed appear in the history menu.
However, as soon as the user navigates away from the page, the
searches disappear from the menu and only the last search performed
appears in the history menu.  The individual searches do reappear,
however, if the user backs up to the search page again.

IE's history sidebar only registers the hit on the main AJAX page, and
none of the searches.

Aryeh Leib Taurog


 
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.
mctrivia  
View profile  
 More options Nov 29 2007, 10:20 am
From: mctrivia <squarerootofnegative...@gmail.com>
Date: Thu, 29 Nov 2007 07:20:08 -0800 (PST)
Local: Thurs, Nov 29 2007 10:20 am
Subject: Re: IE history menu
If you create a function lets call it
   openPage(hash)
that generates a page based soley on the hash value you can add

openPage(dhtmlHistory.getCurrentLocation());

to the end of the window.onload function and have the page generated
from a bookmark or manual entry including the nice title you want to
be there.  Requires you hash all necisary data instead of using data
variable.

On Nov 29, 9:19 am, Aryeh Leib Taurog <altau...@gmail.com> wrote:


 
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.
bdpathfin...@gmail.com  
View profile  
 More options Dec 11 2007, 12:35 pm
From: bdpathfin...@gmail.com
Date: Tue, 11 Dec 2007 09:35:46 -0800 (PST)
Local: Tues, Dec 11 2007 12:35 pm
Subject: Re: IE history menu
See this thread for more info on this topic:

http://groups.google.com/group/reallysimplehistory/browse_thread/thre...

On Nov 29, 9:20 am, mctrivia <squarerootofnegative...@gmail.com>
wrote:


 
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 »