Please try Firebug 1.5b5, http://getfirebug.com/releases/firebug/1.5X. If you still have a problem I will fix it.
jjb On Dec 2, 3:16 am, PaulT <[email protected]> wrote: > I have an issue with breakpoints not being triggered in my Javascript > code. Having searched this group's discussions, I can see that this > issue has occurred before with previous versions of FB and FF, but I'm > running version 1.4.5 of FB and 3.5.5. of Firefox. The add-ons I have > installed are as follows: > > Delicious Bookmarks 2.1.072 > Download Statusbar 0.9.6.5 > Firebug 1.4.5 > Google Toolbar for Firefox 6.1.20091119W > Java Quick Starter 1.0 > Microsoft .Net Framework Assistant 1.1 > Zotero 1.0.10 > > I inserted a breakpoint on line 31 of the HTML/Javascript page shown > below. I notice that in the Breakpoints tab, the breakpoint is listed > as "Undefined". > > Note that the breakpoints do not fail consistently - some breakpoints > in other pages work sometimes, some not always (it's hard to make out > the exact pattern). > > Can anyone suggest what the problem here is? If you need any more > information, let me know. > > Test case - create an HTML page from the following and place a > breakpoint on line 31 (var countMe = field.value): > > <!-- TWO STEPS TO INSTALL LIMIT TEXTAREA: > > 1. Copy the coding into the HEAD of your HTML document > 2. Add the last code into the BODY of your HTML document --> > > <!-- STEP ONE: Paste this code into the HEAD of your HTML document -- > > > > <HEAD> > > <SCRIPT LANGUAGE="JavaScript"> > <!-- Original: Ronnie T. Moore --> > <!-- Web Site: The JavaScript Source --> > > <!-- Dynamic 'fix' by: Nannette Thacker --> > <!-- Web Site:http://www.shiningstar.net--> > > <!-- This script and many more are available free online at --> > <!-- The JavaScript Source!!http://javascript.internet.com--> > > <!-- Begin > function textCounter(field, countfield, maxlimit) { > if (field.value.length > maxlimit) // if too long...trim it! > field.value = field.value.substring(0, maxlimit); > // otherwise, update 'characters left' counter > else > countfield.value = maxlimit - field.value.length; > > } > > function checkLength(field, countfield, maxlimit) { > var countMe = field.value > var escapedStr = encodeURI(countMe) > if (escapedStr.indexOf("%") != -1) { > var count = escapedStr.split("%").length - 1 > if (count == 0) count++ //perverse case; can't happen > with real UTF-8 > var tmp = escapedStr.length - (count * 3) > count = count + tmp > } else { > count = escapedStr.length > } > > if (count > maxlimit) { // if too long...trim it! > field.value = field.value.substring(0, maxlimit); > // otherwise, update 'characters left' counter > } > else { > countfield.value = maxlimit - field.value.length; > } > // alert("Current bytes = " + count); > > } > > // End --> > </script> > </HEAD> > > <!-- STEP TWO: Copy this code into the BODY of your HTML document --> > > <BODY> > > <!-- textCounter() parameters are: text field, the count field, max > length --> > > <center> > <form name=myform action="YOUR-SCRIPT.CGI"> > <font size="1" face="arial, helvetica, sans-serif"> ( You may enter up > to 125 characters. )<br> > <textarea name=message wrap=physical cols=28 rows=4 > onKeyDown="checkLength(this.form.message,this.form.remLen,125);" > onKeyUp="checkLength(this.form.message,this.form.remLen,125);"></ > textarea> > <br> > <input readonly type=text name=remLen size=3 maxlength=3 value="125"> > characters left</font> > </form> > </center> > > <p><center> > <font face="arial, helvetica" SIZE="-2">Free JavaScripts provided<br> > by <a href="http://javascriptsource.com">The JavaScript Source</a></ > font> > </center><p> > > <!-- Script Size: 1.37 KB --> -- You received this message because you are subscribed to the Google Groups "Firebug" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/firebug?hl=en.
