The above line of code in my navbar is crapping at me for having bad syntax, something about lacking a closing brace. Clearly, I have a closing brace. Any ideas?
I closed the other link, but here is one of them. I could have misread it - I'm still pretty new to Javascript... programming in general, really.
I haven't had a chance to implement your CSS bar just yet - I will be very soon. The current Javascript bar seems to be working fine now on most computers, just not a few. The error seems to focus on that one line, which is the only section that doesn't load properly.
My question is are you sure you did not miss any import of a js file where the method addMainItem is defined?
Um, not really sure what you mean by this, sorry.
I never uploaded the code with semicolons to the site, but the rest of the code is the same. Now that VIPStephan assures me that they shouldn't be there, I won't be.
Now that I look at the code, I see the problem. VIPStephan didn't say to replace ALL semicolons on your site with commas. Use commas in function calls to separate the arguments. Use semicolons as line terminators.
Now that I look at the code, I see the problem. VIPStephan didn't say to replace ALL semicolons on your site with commas. Use commas in function calls to separate the arguments. Use semicolons as line terminators.
Aha! Okay, I'll go and convert those now. Thank you!
I have FireBug - how do I use it to view Javascript errors? I can only see HTML.
Open the Firebug panel. Click on something like the Script tab. You should see text similar to "XYZ panel is disabled." Click all of the checkboxes and click the Apply Settings button. Welcome to a whole new world of debugging. Celebrate with pizza.