• 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

Method not defined in Firefox 3.0.7 working fine in Firefox 3.0.3

 
Ranch Hand
Posts: 59
Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I have a webpage which was designed long back. It is working fine in IE6,7 and 8 as well as till Firefox 3.0.3.

Now i have upgraded the Firefox 3.0.7 and found the issue that method declared on the onload are unable to detect by the firefox 3.0.7

It works fine for the very first time when i visit the page but afte refresh or any exception is occur on the page it throws an error and on click of "Ok" button of the Alert box when we are redirected back to this page it appears blank and Error console of browser displays "... method is not defined."

I am curios to know what changes are being made from Firefox 3.0.3 to Firefox 3.0.7 as it was working properly in earlier one.

Also, what are the possibilities for this types of error when we had defined that method in the particular file though browser complains about it.

Any sort of help is a more valuable for me.

Thanks and Regards,
Rizwan
 
Sheriff
Posts: 67749
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Do you not think it might be helpful to show us the method in question?
 
Rizwan Patel
Ranch Hand
Posts: 59
Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Bear,

I am providing below the template code. As the complete code i cant publish.

We are using Servlet for display logic generation.

Please not that the displayed code below till body tag is being generated in another servlet class and rendered on screen

and below body tag the code is present in the same servlet.

The error console is displaying here focusOnForm is not defined. Sometimes it is working fine but most of the time the error message is got displayed.

Please help.



 
Rizwan Patel
Ranch Hand
Posts: 59
Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Ranchers,

Any lights on the below problem. Please provide me a way to look forward in this issue.
 
Rizwan Patel
Ranch Hand
Posts: 59
Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Dears,
I have further dig the source code for this module. and found that the alert message generation in
some exception scenarios are done via an external servlet. As soon as we click on the OK of alert box the
page gets blank. and When done the view source for that I found that FORM tag completely missing!!!

Is there any sort of changes done in event handling in Firefox 3.0.7.?

Please suggest where to look for.
 
Author
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Wow, debugging that must be a nightmare.

Personally I'd use a JavaScript library that fires a DOM loaded event rather than relying on body onload.

Are you saying that adding the alert causes the error?

What's with the "writeSpace(1)" functions?!
 
Rizwan Patel
Ranch Hand
Posts: 59
Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Are you saying that adding the alert causes the error?

What's with the "writeSpace(1)" functions?!


Thank you David for responding.

I had removed the external alert box and the page works fine.

writeSpace(1) is just a javascript function which writes the given number of spaces between two elements. If you pass 2 then it will write the 2 spaces.

For the further details i am providing yout the external javascript file use for eventHandler registration with browser


Please suggest is there a new way to register the eventHandler in Firefox 3.0.7?
 
Your buns are mine! But you can have this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic