File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes HTML, CSS and JavaScript and the fly likes IE 7 Javascript or HTML problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "IE 7 Javascript or HTML problem" Watch "IE 7 Javascript or HTML problem" New topic
Author

IE 7 Javascript or HTML problem

Bob Grossman
Ranch Hand

Joined: Dec 18, 2008
Posts: 69
At this page, I have put an example of some JSP code that works very well with Firefox for PC, Safari for Mac, and (I am told) Internet Explorer 8. However, IE 7 loads the page with some errors. The first pulldown menu starts at 2 instead of 1 as it ought, and the Refresh and Delete buttons are centered instead of to the left as they are in Firefox and Safari. If I double-click on the yellow warning symbol in IE 7, it tells me that "Problems with this Web page might prevent it from being displayed properly." When I ask it to show me details, it says,

Line:1257
Char: 5
Error: Not implemented
Code: 0

If I choose View Source, I can pull the page up in NotePad, but the Go to... function is grayed out. If I save the file to disk and then reopen it iwth Notepad, I can go to line 1257, but consists only of tab characters. Furthermore, on another page which uses the same code (but it's in a password-protected area), IE won't even let me view the source!

Any insight into how we can work around these problems with IE 7 would be greatly appreciated.
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
Bob Grossman wrote:
If I choose View Source, I can pull the page up in NotePad, but the Go to... function is grayed out.


You have word wrap enabled. [why are you using notepad anyway to view the file? Old School.

Eric
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
Using line numbers will not help anyway since you are using documetn.write and all that other yucky stuff to add content to the page.

The error actually is here:



You should not have the () when you are assigning functions to the events.

Eric
Bob Grossman
Ranch Hand

Joined: Dec 18, 2008
Posts: 69
I'm using NotePad because I rarely use PCs, and I have little control over the software installed on the PC to which I have access, and it's an old machine.

I removed the () as you suggested. It fixed the IE warning, but it did not fix the select menu or the position of the buttons.
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
You are lucky I am being nice today.

The line



needs to be



Eric
Bob Grossman
Ranch Hand

Joined: Dec 18, 2008
Posts: 69
I consider myself very lucky that this forum exists and that people like you are willing to answer my questions.

Maybe you can explain to me why removing the paragraph markers makes a difference. It makes the submission and rewrite of calculated XML work properly now. However, it doesn't solve the problem with the pulldown menu starting at 2 or with the buttons not being located on the left side of the table. The pulldown menu should start at 1.
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
paragraph tags can not contain block level elements.



Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
Spot your mistake:


Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
Had to edit my last post, forum code actually fixed the problem. lol
Bob Grossman
Ranch Hand

Joined: Dec 18, 2008
Posts: 69
Duh. A missing >. And Safari and Firefox recognized the problem, and IE did not.

Thanks for your help. And I'm going to change the document.write() to innerHTML =.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: IE 7 Javascript or HTML problem