aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes Firefox 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 "Firefox problem" Watch "Firefox problem" New topic
Author

Firefox problem

Sam Doder
Ranch Hand

Joined: Feb 06, 2008
Posts: 204
simple question firefox is not calling my function when I put
onkeydown="specialkeypressed();" on my button.
But it works fine in IE.

my function is

this




WTF
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
Works for me. Did you do a hard refresh?

Eric
Sam Doder
Ranch Hand

Joined: Feb 06, 2008
Posts: 204
hard refresh???

What do you mean by this.
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
http://www.google.com/search?q=hard+refresh
Sam Doder
Ranch Hand

Joined: Feb 06, 2008
Posts: 204
can you have a onkeypress and onkeydown events on the same html tag in firefox.
Because they work seperately but when I have two or more onkey...etc events on the same element it doesn't work usually just the onkeypress works and the other 2 onkeydown , onkeyup doesn't work?

In IE. it works you can have more then one onkey...etc on a html element.

Curious what the problem is.

What I am trying to do is get the current text on the textbox but when some one pushes delete or backspace the method gets the previous text on the textfield before the delete modifications where made....etc thats my problem.

thanks for your help
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
It should work, just do not use alert to test if they are working. That is what console and firebug is for.

Eric
Sam Doder
Ranch Hand

Joined: Feb 06, 2008
Posts: 204
Ok,
Is their a javascript debugger for IE.

I know firefox has firebug... But it is hard to debug in IE.

Thanks I will look more into this issue either way I found a work around.
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
IE8 has a built in debugger and their is Firebug lite.

Eric
Sam Doder
Ranch Hand

Joined: Feb 06, 2008
Posts: 204
IE. has a built in debugger?

When I view the details of any error it only gives the line number...etc
I would like away to step thru the javascript code like I can do with firefox.

Basically their was an plugin for eclipse to debug firefox / javascript.
But I need to debug IE as well ....

Doesn't have to be in eclipse but it must be something I can use to set break points , step thru the code ,...etc

Like a regular debugger would do for c/c++ like gdb ,...etc

Anybody know?

Thanks for any info
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
IE8 Hit F12

And it is possible to step through code in other versions of IE. Just have to have an IDE that can do it.

Eric
Sam Doder
Ranch Hand

Joined: Feb 06, 2008
Posts: 204
Cool I didn't know that existed for IE.
Awsome F12!!!

Is their something in firefox built in that would do the equivalent.
I tried F12 on firefox but it doesn't bring up any built in debugger?
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
Firefox, you need Firebug and that opens with Ctrl-F12
Sam Doder
Ranch Hand

Joined: Feb 06, 2008
Posts: 204
Where can I get FireBug is this not built into the firefox browser?
Is their no debugger built into the firefox browser?

Thanks

Also is their a plug in for eclipse gallieo that allows you to use IE consol debugger to debug the js files in eclipse.

Anyway thanks this was eye opening to know their was a debugger built in to IE all along.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61430
    
  67

A simple search reveals that Firebug is a Firefox plugin.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
 
subject: Firefox problem