• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

IE 7 Javascript or HTML problem

 
Ranch Hand
Posts: 83
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 83
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You are lucky I am being nice today.

The line



needs to be



Eric
 
Bob Grossman
Ranch Hand
Posts: 83
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
paragraph tags can not contain block level elements.



 
Eric Pascarello
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Spot your mistake:


 
Eric Pascarello
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Had to edit my last post, forum code actually fixed the problem. lol
 
Bob Grossman
Ranch Hand
Posts: 83
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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 =.
 
reply
    Bookmark Topic Watch Topic
  • New Topic