• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Ganesh Patekar

Problem with IE7

 
Ranch Hand
Posts: 156
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I am using JSF in my application. I need to check the close event and at the same time have to remove the session from the application. My code is working fine for the IE6. But in the case of IE7 it remove the session even if I click on the title bar.
I am using following javascript

To made the proper changes I made some changes in the above code but it gives me following error
"Error Traced[line: 28] The content of elements must consist of well-formed character data or markup."

Please suggest me what to do in this case.

Thanks
Kushagra Bindal
 
Saloon Keeper
Posts: 21133
133
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you only have a problem with IE7, I'm surprised. The proper way to specify a URL with parameters is in the following form:


So what you probably want to do is something more like this:

 
Ranch Hand
Posts: 80
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please observe the changes between IE6 and IE7 and change it accordingly in Java Script. It is the problem with Java Script.
 
Kushagra Bindal
Ranch Hand
Posts: 156
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Tim,

I use this url so that all you can understand that by doing that I would like to forward it to this url.
This url is woking fine for IE6

actually url is smthng like
"SampleServlet?invalidateSession=true"

But this is not a probl to me. My problem is with the js which is not working properly on it.

Please help.

Thanks
Kushagra Bindal
 
Kushagra Bindal
Ranch Hand
Posts: 156
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Vamsi,

There are difference in IE7 & IE6.
IE7 js example

I follow this link and got smthng but not proerly for IE7 still.

Please help if having any suggestion.

Thanks
Kushagra Bindal
 
Kushagra Bindal
Ranch Hand
Posts: 156
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is there a way to detect the close(X) button click on the IE7 browser.

Please help if have any solution on the same.

Thanks
Kushagra Bindal
 
Kushagra Bindal
Ranch Hand
Posts: 156
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks All for the help. I have resolve the problem.

But I am having one more issue. How to detect tab of the IE7 browser is close. Please suggest.

Thanks
Kushagra Bindal
 
Lasagna is spaghetti flvored cake. Just like this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!