Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: tnsbuff
  • Order by date
  1. tnsbuff

    Strange problem when comparing Hex code

    That works just fine. Thanks a bunch!
  2. tnsbuff

    Strange problem when comparing Hex code

    Yeah I did. I'm sure it was a problem with my code but I couldn't get it to work. Seems easy enough. I think I'll come back to this later when my brain's working better. :-) Thanks for your help.
  3. tnsbuff

    <a> tag onclick

    I always had problems with this.form so I always name my forms and use the same to refer to it: <form name="form1"> <input type="text" name="myt1"> <a href="javascript:void(0)" onclick="document.form1.myt1.value=1">Click Here</a> </form> Works for me.
  4. tnsbuff

    Strange problem when comparing Hex code

    Thanks Dan. Unfortunately no matter what I do I can't seem to get it to work in Firefox. Must be having a brain cramp today.
  5. tnsbuff

    Strange problem when comparing Hex code

    Thanks, in IE I guess #1 was the problem. This didn't work: function toggleColor(){ coloredBkg = document.getElementById('bkg'); if(coloredBkg.style.backgroundColor=='#71B9D7'){ coloredBkg.style.backgroundColor = '#FF579E'; } else{ coloredBkg.style.backgroundColor = '#71B9D7'; } } but this...
  6. tnsbuff

    Strange problem when comparing Hex code

    Hi, Can someone tell me why this script works when I use color "names" in the if comparison, but not when I use the hexadecimal code: (the problem only seems to be in the if statement, it's ok when I use hex code in the other lines)...strange function toggleColor(){ coloredBkg =...
  7. tnsbuff

    no line breaks

    Hi, I don't know if you'll be able to help me with this or not, but here's my problem. I've been using a Perl "form to email" script that works just fine using html forms. Now I've created a Flash form and I'm using the same script to process it, and everything is working hunky dory except for...
  8. tnsbuff

    Change image onLoad (tab menu ON state)

    Well, I was thinking that maybe you had a dynamic url that you could extract an id from. If the dynamic portion is not set in the url (not passed by querystring), then you'll need to use a server-side scripting language to extract the id (or other dynamic qualifiers) and specify the specific...
  9. tnsbuff

    change id depending on url

    Oh, I didn't pick up on that requirement. I thought you were referring to a directory where the index page wasn't specified such as about/ rather than about/index.html. I'm sure there's a way to do it but I'm not that well versed in javascript. Hopefully someone will come along who is.
  10. tnsbuff

    change id depending on url

    See if this helps: http://tek-tips.com/viewthread.cfm?qid=982839
  11. tnsbuff

    Change image onLoad (tab menu ON state)

    Just to clarify, I used javascript to determine the current page and CSS to highlight that link.
  12. tnsbuff

    Change image onLoad (tab menu ON state)

    Marthirial, I did something similar recently, but I used CSS to set the background color of the current link/page, but I would think you could use similar javascript logic if you had access to some sort of identifier like a category id or something (you said the pages were dynamic). Anyway...
  13. tnsbuff

    Stripping White Space Problem

    Hi, I have a form that I have been running that is a combination of FrontPage javascript validation and a custom javascript that determines which cgi script will perform the action based on an option field. That all works fine except that FrontPage validation doesn't take into consideration...
  14. tnsbuff

    Can't get Simple Loop to Work

    Thanks Ken, that works great. Unfortunately, I've never seen curly braces around the concatenated variables like that, but I guess it makes sense to set the $ sign apart. I did find a different suggestion in my book that I thought was intended for this type of purpose. It went like the...
  15. tnsbuff

    Can't get Simple Loop to Work

    I know I'm doing something simple incorrectly here, but please tell me what's wrong with the following loop where I'm trying to retrieve the variables from a form where all of the form variables are named q1 through q3: <? for ($i=1; $i<=3; $i++){ $q.$i = $_POST['q.$i']; echo "$q.$i <br>"; } ?>
  16. tnsbuff

    Warning: mail(): SAFE MODE Restriction in effect.

    Thanks willyd61, but I just figured it out. I had a space at the beginning right before MIME-Version: 1.0\n Once I removed that, the subject line didn't have the MIME-Version in it. Thanks very much for taking a look though.
  17. tnsbuff

    Warning: mail(): SAFE MODE Restriction in effect.

    Hi, Thanks for the reply. Actually the variable $tfrom was the From parameter. This is a script that someone else wrote that I'm trying to troubleshoot. Anyway, I added the $tfrom variable to the $mailheaders (cutting it down to 4 parameters) and now it works, except I'm getting this...
  18. tnsbuff

    Problem with onLoad in BODY using PHP

    How about this: <?php if($_POST['name'] != NULL) { echo "<body bgcolor='#7692AC' onLoad='alert(\"hello world!\")'>"; } else { echo "<body bgcolor='#000000'>"; } ?> You need to escape the double quotes inside your echo statement.
  19. tnsbuff

    Warning: mail(): SAFE MODE Restriction in effect.

    Hi, I'm having a problem with sending html mail from a form. I get an error: Warning: mail(): SAFE MODE Restriction in effect. The fifth parameter is disabled in SAFE MODE. The 5th parameter is $mailheaders. This is the related code: $mailheaders = "MIME-Version: 1.0\n"; $mailheaders .=...
  20. tnsbuff

    Only Upper Case Allowed in Text Box on Gift Certificate

    Hi, I'm a complete newbie with Publisher and I'm trying to make a gift certificate. I noticed that with many of the templates, in the text box where it says "Gift Certificate" it will only let me use all caps. Is there a way to disable this so that I can use a mix of upper and lower case? If...

Part and Inventory Search

Back
Top