www.webdeveloper.com

Search:

Type: Posts; User: mjdamato

Page 1 of 20 1 2 3 4

Search: Search took 0.04 seconds.

  1. Replies
    2
    Views
    1,033

    I'm seeing some things that just don't look right...

    I'm seeing some things that just don't look right in that code. For example the query to get the total records is not using the WHERE parameter to get the correct record total based upon the filter...
  2. Your query is failing. you should add error...

    Your query is failing. you should add error handling to your query call. If you echo'd the query out you would see the error which is cause by this

    // Table and conditions should generally remain...
  3. If you have access to a server-side language...

    If you have access to a server-side language (such as PHP) you could build a javascript enabled "editor" that allows the user to "create" the image in JavaScript which then uses AJAX to send the data...
  4. Replies
    7
    Views
    1,133

    No, offense, but that code is seriously...

    No, offense, but that code is seriously overblown.

    There are many different functions for totally the quantity for a number of fields and populating that total into another field. Instead of...
  5. Replies
    6
    Views
    1,362

    ...

    <!DOCtype HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
    <html>
    <head>
    <script type="text/javascript">
    function validate(formObj)
    {
    var errors = new Array();

    var fname =...
  6. Thread: pause?

    by mjdamato
    Replies
    5
    Views
    684

    Take a look at setTimeout()

    Take a look at setTimeout()
  7. Replies
    5
    Views
    850

    Because, the prompt != the value. The function IS...

    Because, the prompt != the value. The function IS using the value. I am trying to create functionality as seen in many input fields in other applications where a field will have text displayed in...
  8. Replies
    5
    Views
    850

    FF Read Custom Field Attributes

    I am looking for a way, if possible, to allow FF to read/access the values of custom attributes I am setting for text/textarea fields.

    I am working on a script to aid in user experience on forms...
  9. Replies
    6
    Views
    1,237

    You will need to post the form you are using so...

    You will need to post the form you are using so we cn provide a script that will work with it. Any script will depend upon the filed names you are using.
  10. Replies
    2
    Views
    892

    There is so much wrong with that code I don't...

    There is so much wrong with that code I don't know where to begin.

    Your elseif's do not have closing parens

    Your first function does not have a closing bracket

    There references you are...
  11. You're absolutely right. I typically chide people...

    You're absolutely right. I typically chide people for the same thing. I guess I didn't see it as homework.
  12. First, change your input fields to include an id...

    First, change your input fields to include an id and to have an onchnage trigger as follows:

    <input name="CurrentMonth1" id="CurrentMonth1" size="15" type="text" value=""...
  13. ...

    <html>
    <head>

    <script type="text/javascript">

    function setBusinessAddr() {

    var f = document.getElementById('addrForm');

    if (f.sameBus[1].checked) {
  14. Replies
    10
    Views
    1,095

    Here's a working example that you can retrofit to...

    Here's a working example that you can retrofit to your needs:


    <html>
    <head>

    <script language = "javascript">

    defaultColor = '#eeeeee';
    maxValueColor = '#ff0000';
  15. Replies
    10
    Views
    1,095

    What do ou want to be a different color: the text...

    What do ou want to be a different color: the text or the cell color? Also, it would help if you showed the code you are currently working with.
  16. How can anyone solve it without seeing the code...

    How can anyone solve it without seeing the code you are using?
  17. Thread: Numeric

    by mjdamato
    Replies
    5
    Views
    953

    No need to pass the field object and the value....

    No need to pass the field object and the value. Just pass the field object:


    function isNumeric(tb) {
    if (isNaN(tb.value) || tb.value<0) {
    alert('You must enter a positive numeric...
  18. Thread: Numeric

    by mjdamato
    Replies
    5
    Views
    953

    I'm not clear from your post if you want to allow...

    I'm not clear from your post if you want to allow decimals or not. If you do you can use the built in isNaN() function. If the number must be a positive number, then add some addtional functionality...
  19. Your function expects the first parameter to be...

    Your function expects the first parameter to be an object, not an id.



    <body onload="disable(document.getElementById('type'),'SP','image','region2');">
  20. Are you using server-side code to populate field...

    Are you using server-side code to populate field 1 when the page is submitted? If so, you can just run the same code you have for disabling/enabling field2 and just run it onload.
  21. Replies
    10
    Views
    17,171

    Dang. I thought you had asked to hide columns...

    Dang. I thought you had asked to hide columns (which is more difficult) so I wrote code to do that. Oh well, I added additional code to hide a row and left the column code in as well:


    <html>...
  22. Replies
    4
    Views
    670

    He did say this was homework. You would have done...

    He did say this was homework. You would have done him a better service by not giving him the entire solution, just point him in the right direction, such as "take a look at the modulator operator"
  23. Replies
    7
    Views
    5,417

    There is a problem with using CSS to transform...

    There is a problem with using CSS to transform text in a form field. It only changes how the text is displayed in the form field. It does not change the actual text submitted in the form.

    So if...
  24. Replies
    7
    Views
    5,417

    It would be a bit long to stuff in an onkeyup...

    It would be a bit long to stuff in an onkeyup event, but it will work:


    this.value=this.value.substr(0,1).toUpperCase()+this.value.substr(1).toLowerCase

    I would always pefer to create a...
  25. Replies
    3
    Views
    621

    I'm not clear on the issue. When the user selects...

    I'm not clear on the issue. When the user selects to "Save" the changes the page is submitted. You state that the back-end script is successfully updating the value in the database.

    Are you...
Results 1 to 25 of 500
Page 1 of 20 1 2 3 4
HTML5 Development Center



Recent Articles