The answer to this is that prototype.js just doesn't like the for-in loop. I changed the loop to
var i= 0;
for(i = 0; i < tabs.length; i++)
and it worked fine.
Thanks for sticking with me on this one!
User Profile
Collapse
-
Using the FF error console and the Venkman js debugger add-on all I get is
Error: tabTarget has no properties
Source File: http://threepipeproble m.com/labs/cm/tabs_scripts.js
Line: 19
tabs_scipts.js is just the code above.Leave a comment:
-
Spoke too soon. I'm basically stuck with if I take prototype.js out, everything works fine. I need prototype for this application, so the question is again how to debug something like this?
I'm using prototype v.1.5.0. Here is the complete html and complete js:
Code:<html> <head> <link rel="stylesheet" href="cm3.css" type="text/css"> <link rel="stylesheet"
Leave a comment:
-
FIXED! Appears to have been an error in the url path of the script source for prototype.js. Again, thanks for putting up with me!Leave a comment:
-
Thanks for sending me in the right direction. I've discovered that this code conflicts with prototype.js. I've changed every variable name in my script, but still can't see where the prototype problem is. How do you begin to debug something like this?
New code:
Code:function changeTab(chosen) { var singleTab; var navTabs = new Array() navTabs[0] = "tab1" navTabs[1] =
Leave a comment:
-
Well, I checked and I don't think so:
Code:<div id="header"> <ul> <li ><a href="#" onClick="changeTab('one');"><span id="one">Home</span></a></li> <li><a href="#" onClick="changeTab('two');"><span id="two">Cases</span></a></li> <li><a
Leave a comment:
-
I'm embarassed to say I didn't mention that there was javascript involved. Once I used javascript escape to encode the url, the get worked fine. Thanks for putting up with me.Leave a comment:
-
Error Messages
The function below is used to change the bgcolors of a tabbed navigation interface. The tab clicked by user (chosen) is changed to white and all other tabs to another color.
In FF this code returns the error "target has no properties." IE6 returns the error "Object required." Interestingly, the effect works regardless of the error in FF and the colors are changed.
Any suggestions? Thanks.... -
Thanks for the replies. Neither of those does the trick, though.Leave a comment:
-
Line Break Madness!
I've been trying to work out this very simple thing for hours now and I wonder if you can help.
My form submits the value of textarea, then takes the value and emails it in a plaintext email. Problem is the no matter what I do, I cannot get the line breaks in the email.
[CODE=php]
$msg_text = $_GET['msg_text'];
$email = "me@gmail.c om";
$subject = "My Subject";
...
No activity results to display
Show More
Leave a comment: