WebFX WebBoard
Message Thread:
View All Messages
Back to WebFX
 DHTML Menu: Target and Refresh Problem, Scott Juranek, September 10, 2002
     Re:DHTML Menu: Target and Refresh Problem , Erik Arvidsson, September 12, 2002
     Re:DHTML Menu: Target and Refresh Problem, Scott Juranek, September 11, 2002

Subject: Re:DHTML Menu: Target and Refresh Problem From: Scott Juranek Date: September 11, 2002

Here is what I came up with.  I modified the following code in the dispathAction function.  (Sorry, the formatting is messed up).  With a randomly changing URL IE will always go to the server and get it.

 

else if ( typeof this.action == "string" ) { // href

this.setSelected( false );

this.parentMenu.closeAllMenus();

if ( this.target != null ){

// Changed by Scott Juranek, 9/10/2002

if (this.action.indexOf('?') == -1){

var newWin = window.open( this.action + "?Rand=" + new Date().getTime(), this.target );

} else {

var newWin = window.open( this.action + "&Rand=" + new Date().getTime(), this.target );

}

// End of Change

}

else {

document.location.href = this.action;

}

}


 

From: Scott Juranek
Sent: September 10, 2002
Subject: Re:DHTML Menu: Target and Refresh Problem

First off, great job on the menu!  Very well done.

I have a frameset with the menu up top and the content down below.  The menu works fine the first time I go to the page but each subsequent time IE just pulls up the page from cache even though the pages are dynamic (.NET).  If I place <A> tags up in the top frame with the target attribute set everything works fine.  Apparently the window.open with a target specified doesn't cause the same action as the <A> with the target specified.

Any way to work around this?  I thinking of using <A> tags as the menu items but this seems like a last resort.

-Scott





Reply
Name: 
Email: 
Subject: 

Enter your reply to this message below. HTML tags are not supported but words that start with http://, ftp:// or mailto: are converted to links.


View All Messages
Back to WebFX