This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes How to edit javascript in firefox 3.6 Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Reply Bookmark "How to edit javascript in firefox 3.6" Watch "How to edit javascript in firefox 3.6" New topic
Author

How to edit javascript in firefox 3.6

gourav chouhan
Ranch Hand

Joined: Apr 02, 2010
Posts: 74
Hi friends

How can i edit the javascript in firefox 3.6. Is there any tool to edit javascript and how can i use that tool to edit javascript.

Thanks
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 56205
    
  13

Firebug


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
gourav chouhan
Ranch Hand

Joined: Apr 02, 2010
Posts: 74
Thanks for the reply
I have firebug. please tell me how to use firebug to edit javascript. any document or any link.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 56205
    
  13

In the HTML view you can change the markup in real time.
gourav chouhan
Ranch Hand

Joined: Apr 02, 2010
Posts: 74
Hi
i m able to change the markup but not the javascript.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 56205
    
  13

Hmmm. It used to let you do that. Apparently, not any longer. Sorry for the bum lead.
gourav chouhan
Ranch Hand

Joined: Apr 02, 2010
Posts: 74
So any suggestion now how to do that ?
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15357
    
    6
What do you mean edit JavaScript? You mean to actually code it in an editor like eclipse?

Eric
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 56205
    
  13

I assumed he meant on-the-fly in real time within the browser. Otherwise, yeah, a text editor.
gourav chouhan
Ranch Hand

Joined: Apr 02, 2010
Posts: 74
I need to edit javascript in real time within a mozilla browser.
And one more thing i can edit the javascript with firebug if javascript is written in jsp page itself like below
<html>
<head>
<script type="text/javascript">
function message()
{
alert("This alert box was called with the onload event");
}
</script>
</head>

<body>
<input type = "button" onclick="message()">
</body>
</html>


But i m not able to edit if javascript is imported from some other location like this:-

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<script type="text/javascript" src="external.js">
</script>
</HEAD>

<BODY>
<input type = "button" onclick="message()">
</BODY>
</HTML>


please provide some suggestions
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: How to edit javascript in firefox 3.6
 
Similar Threads
how to assign my function to onclick
how can i open save file dialog box in firefox?
problem setting form Action name Dynamically on button click
Javascript in Mozilla
GWT and Firefox 3.6: Don't upgrade!