File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem with IE7

 
Kushagra Bindal
Ranch Hand
Posts: 156
  • 0
  • 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
 
Tim Holloway
Saloon Keeper
Pie
Posts: 17620
39
Android Eclipse IDE Linux
  • 0
  • 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:

 
Vamsi Mohan
Ranch Hand
Posts: 80
  • 0
  • 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
  • 0
  • 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
  • 0
  • 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
  • 0
  • 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
  • 0
  • 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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic