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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by cfgoodies

  1. cfgoodies

    javascript alert when too many chars are entered

    This might point you in the right direction: http://www.google.com/search?q=javascript+textarea+limit+characters -Brad
  2. cfgoodies

    how to control forms in a form

    I don't think you can "embed" forms. Maybe someone else has a better solution, but here's a few thoughts. I would do as I stated earlier, maybe with the addition of a check box that says, "Other Fruit". That way, you only have to check for the existence of the check box...
  3. cfgoodies

    Syntax error while CFLOOPING

    The only way (that I know of), that ColdFusion can evaluate the value of a dynamic variable is to do the following: <cfif (len(trim(evaluate(&quot;form.GSub_FName&quot; & GiftNum))) EQ 0) OR (len(trim(evaluate(&quot;form.GSub_LName&quot; & GiftNum))) EQ 0)> I believe the evaluate() function...
  4. cfgoodies

    how to control forms in a form

    If I understand you correctly, you have a drop down list of fruits. You want the user to have the ability to add a fruit, if it is not found in the drop down list. Correct? I would just add a text field (maybe &quot;otherFruit&quot;). Then on your action page, check the value of...
  5. cfgoodies

    Strange Cold Fusion Error

    Can you post the query?
  6. cfgoodies

    DHTML Menu

    Thanks, but I've searched these sites and haven't found a menu that mimics the functionality I want. I'm looking for something like this:
  7. cfgoodies

    DHTML Menu

    I'm looking for a DHTML menu script that mimics a menu similar to the &quot;New&quot; button in Outlook. Anyone know of one? Thanks.
  8. cfgoodies

    Invalid column number when updating my record

    Are your form field names and database column names the same? I've not used cfupdate much, but I think the names have to be the same. You could probably use sql. This is off the top of my head, and could probably be written a little neater (maybe using cfloop to loop over your fieldnames)...
  9. cfgoodies

    Write a calendar with ColdFusion/Javascript

    Check the Developer's Exchange. I've downloaded several in the past. They should point you in the right direction. http://devex.macromedia.com/developer/gallery/ HTH, Brad
  10. cfgoodies

    Save Changes - Before Proceeding to Next Record

    To do it with CF, create a hidden field for each field in your form. The hidden fields will contain the data from your query. Then, on the next page, compare each field to the relevant hidden field. If any of them changed, do an update. You could probably combine Javascript and make it a...
  11. cfgoodies

    Newbie security question....plz help

    In admin_check.cfm, set a client variable after you have validated the user. Something like: <cfset client.loggedIn = &quot;true&quot;> Then, make your third page (third_page.html) a CF page, instead of a html page. Just change it to &quot;third_page.cfm&quot;. Finally, in third_page.cfm...
  12. cfgoodies

    mysql and &lt;cftransaction&gt;

    AFIAK, I don't think MySQL supports transactions (rollbacks). Look up &quot;transactions&quot; in the MySQL docs. HTH, Brad
  13. cfgoodies

    nested CFOUTPUT

    There's several ways you can do this. If your first query only returns one record, don't specify query=&quot;UpdateDealer&quot; in your first cfoutput tag. Then you will need to scope your variables (as a previous user suggested). To do this, use #UpdateDealer.Fi_speed# instead of just...
  14. cfgoodies

    is element visible?

    I tried both and couldn't get it to work. The questionable code is below. I took out everything that was irrelevant. I'm executing this code in IE 5.5 if that makes a difference. Again, I really appreciate your help. <html> <head> <title>Test</title> <script language=&quot;JavaScript&quot...
  15. cfgoodies

    is element visible?

    I've tried this, but it doesn't work. for (a = 1; a <= document.wiz.elements.length; a++) { if (document.wiz.elements[a].style.display != '') { document.wiz.elements[a].focus(); break; } } I get the error: 'document.wiz.elements[...].style' is not an object. Thanks for your help.

Part and Inventory Search

Back
Top