www.webdeveloper.com

Search:

Type: Posts; User: harrierdh

Page 1 of 5 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    16
    Views
    1,607

    That's some pretty bad coding. Try using...

    That's some pretty bad coding. Try using getElementById

    function submitMe(val)
    {
    // create a form element that will show up in $_POST with the same
    // name as the old submit button
    ...
  2. //Sorry here are better instructions. //Place...

    //Sorry here are better instructions.
    //Place this between your <head> and </head> tags.

    <script>
    function changeLinks() {
    var aArray = document.getElementsByTagName("A"); // get all the a...
  3. var aArray = document.getElementsByTagName("A");...

    var aArray = document.getElementsByTagName("A"); // get all the a tags
    for (i = 0; i < aArray.length; i++) {
    aTag = aArray[i];
    aTag.href = "newHref" + i; //or whatever you want the new href tobe...
  4. Here is one way. var aArray =...

    Here is one way.

    var aArray = document.getElementsByTagName("A"); // get all the a tags
    for (i = 0; i < aArray.length; i++) {
    aTag = aArray[i];
    aTag.href = "newHref" + i;...
  5. Is this really your code. You are executiing a ...

    Is this really your code. You are executiing a return which will cause the function to exit. Then you are executing a document.write that will never happen because you have already exited the...
  6. Replies
    8
    Views
    906

    I cut and pasted your code into Notepad++ and...

    I cut and pasted your code into Notepad++ and tinkered with it a little. There is nothing wrong with your Javascript. I don't know what you are passing into it though.

    A couple things came to...
  7. Replies
    8
    Views
    906

    Ah so you have. Trying to help. I don't see...

    Ah so you have. Trying to help. I don't see anything else. If you're still having issues tomorrow I'll copy a paste your code and try it out. That's part of I don't like if's on one line. They can be...
  8. Replies
    8
    Views
    906

    Try == in your if statements. Equal to...

    Try == in your if statements. Equal to (remember, the "=" sign assigns a value to a variable, the "==" compares two values for equality.)
  9. Replies
    8
    Views
    906

    It's not really good coding standards to put if...

    It's not really good coding standards to put if statement all on one line. Your problem seems to be here. Use semicolons. Even though they are not required it can save you hours of frustration...
  10. If you want to control the submit action then use...

    If you want to control the submit action then use this type="button".

    Not this:
    <input name="submit" type="submit" class="texto" value="Ingresar Datos" onclick="Compare(this)">

    But this:...
  11. Replies
    2
    Views
    1,040

    If your code wasn't so poorly formatted you might...

    If your code wasn't so poorly formatted you might get a ton of responses. Learn to indent and other coding standards. I don't even want to read this.
  12. Replies
    4
    Views
    513

    What Fang said is correct. You cannot access or...

    What Fang said is correct. You cannot access or alter the file name of an upload. It is a security issue. So just put the darn box out there and live with it.
  13. Replies
    2
    Views
    822

    Good Numeric Decimal Checker

    I've been using a decimal numeric checker for years but the code is bulky not efficient. It walks through the number one character at a time. I was wondering if anyone has some good snippets that I...
  14. Replies
    1
    Views
    1,935

    data-image and data-overimage are not html...

    data-image and data-overimage are not html attributes. They are custom attributes used by anylinkmenu. I didn't try but I'm certain their site doesn't validate either. It is really bad code and you...
  15. Replies
    5
    Views
    1,730

    You have to implicitly convert OutText to a...

    You have to implicitly convert OutText to a string object before you can use split.

    OutText = OutText.toString();
    var tmp = new Array();
    tmp = OutText.split("\n");
  16. Replies
    3
    Views
    842

    You could do this with javascript. You could...

    You could do this with javascript. You could change the url (action) in the form tag or use javacript document.form1.submit();

    You could figure out which location the code is running on using...
  17. Replies
    5
    Views
    1,730

    Can you post the code, especially where the split...

    Can you post the code, especially where the split is.
  18. Replies
    3
    Views
    868

    This code should be in a javascript function and...

    This code should be in a javascript function and the window.opener would go at the end of that.



    function calcTotal() {
    if (rounded.checked == true) {
    eval('C.value = ' +...
  19. Try giving your input tags an id and reference...

    Try giving your input tags an id and reference that. You can leave the names the same. And use semi-colons at the end of your javascript lines. It will save you hours of headaches.



    <td...
  20. Replies
    3
    Views
    558

    You have too many squirly brackets. This: ...

    You have too many squirly brackets.

    This:

    return false;
    }
    } else if ( document.simpleform.email.value == '' )


    Should be:
  21. function clearField(obj) {...

    <head>
    <script>
    function clearField(obj) {
    document.getElementById(obj.id).value = "";
    }
    </script>
    </head>
    <table width="400" cellspacing="1" cellpadding="1" border="2">
    ...
  22. Replies
    3
    Views
    868

    In hw_calculator.html you would reference the...

    In hw_calculator.html you would reference the page1 field like this using window.opener (that's the window that opened hw_calculator.html.

    hw_calculator.html

    ...
  23. Try this at the very top of your css. * { ...

    Try this at the very top of your css.

    * {
    margin: 0;
    padding: 0;
    }

    This is a common technique. It clears your elements default margins and padding. You may have to add it in to some...
  24. Replies
    10
    Views
    1,165

    function getWidthAndHeight() { ...

    <script>
    function getWidthAndHeight() {
    alert("'" + this.name + "' is " + this.width + " by " + this.height + " pixels in size.");
    return true;
    }
    function loadFailure() {
    alert("'"...
  25. You have several variable in your javascript that...

    You have several variable in your javascript that are never declared or given values. It looks like you are missing some code. Dreamweaver? Better get the javascript back that you need. Here is one...
Results 1 to 25 of 104
Page 1 of 5 1 2 3 4
HTML5 Development Center



Recent Articles