User Profile

Collapse

Profile Sidebar

Collapse
jmitchell
jmitchell
Last Activity: Aug 28 '07, 01:53 AM
Joined: Jun 22 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • jmitchell
    replied to Error Messages
    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!
    See more | Go to post

    Leave a comment:


  • jmitchell
    replied to Error Messages
    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.
    See more | Go to post

    Leave a comment:


  • jmitchell
    replied to Error Messages
    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"
    ...
    See more | Go to post

    Leave a comment:


  • jmitchell
    replied to Error Messages
    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!
    See more | Go to post

    Leave a comment:


  • jmitchell
    replied to Error Messages
    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] =
    ...
    See more | Go to post

    Leave a comment:


  • jmitchell
    replied to Error Messages
    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
    ...
    See more | Go to post

    Leave a comment:


  • jmitchell
    replied to Line Break Madness!
    in PHP
    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.
    See more | Go to post

    Leave a comment:


  • jmitchell
    started a topic Error Messages

    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....
    See more | Go to post

  • jmitchell
    replied to Line Break Madness!
    in PHP
    Thanks for the replies. Neither of those does the trick, though.
    See more | Go to post

    Leave a comment:


  • jmitchell
    started a topic Line Break Madness!
    in PHP

    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";
    ...
    See more | Go to post
No activity results to display
Show More
Working...