www.webdeveloper.com

Search:

Type: Posts; User: animalj7

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    2
    Views
    643

    Are they not passed into the Perl script via the...

    Are they not passed into the Perl script via the input box on the form? You could just use Perl to split the string that was validated by the JavaScript.
  2. Replies
    3
    Views
    1,230

    It's not clear what you have stored in...

    It's not clear what you have stored in parseXMLTask.

    Try

    parseXMLTask.documentElement.getElementsByTagName("status");

    If there is no status tag found, it should return a zero-length...
  3. Seems to work fine for me in FF 3.6.3 & IE 8.

    Seems to work fine for me in FF 3.6.3 & IE 8.
  4. Replies
    12
    Views
    1,581

    Also, I think that the issue might be using the...

    Also, I think that the issue might be using the same length counter for both the inner (e) and outer loops (a).

    Give this HTML page with your modified code a look.


    <HTML>
    <HEAD>
    <SCRIPT...
  5. Replies
    12
    Views
    1,581

    Just looked briefly, something looks to be off...

    Just looked briefly, something looks to be off with the swap variable. Why evaluate if it is true, if it is always true?

    The first time the inner loop (e) runs, there will be at least one swap...
  6. Replies
    1
    Views
    677

    if (empty !=""){ alert ("You Haved Missed the...

    if (empty !=""){

    alert ("You Haved Missed the Following Required Details :\n"
    + empty
    + "Please complete and resubmit");
    return false;
    }
  7. You may want to try to find out if there is a way...

    You may want to try to find out if there is a way to make the pages/resources for the messenger unavailable from the server end.

    You can potentially run into problems trying to script this in...
  8. Replies
    5
    Views
    1,252

    Line 111: var h2 = getElementsByTagName("h2");...

    Line 111:

    var h2 = getElementsByTagName("h2");

    You aren't referencing an object whether the document or the xml from which to get the elements.

    e.g.

    document.getElementsByTagName("h2"); ...
  9. Could it be something related to how the object...

    Could it be something related to how the object is defined in the HTML?

    Looks like for non-IE browsers, it defines an object within the MediaPlayer1 object.

    Maybe try something like giving that...
  10. Replies
    2
    Views
    452

    You might want to google 'jquery slideDown',...

    You might want to google 'jquery slideDown', since it looks like the effect used in your sample code.

    You may have better success by providing sample code that illustrates the problem. What you...
  11. Replies
    3
    Views
    640

    Your second if criteria is wrong. It...

    Your second if criteria is wrong.

    It translates to if email is blank or if all of the address fields are blank. It looks like you want it to be if email is blank or if any of the address fields is...
  12. Replies
    1
    Views
    1,329

    Is there a reason why you need to worry about...

    Is there a reason why you need to worry about Shift-tab and tab key presses? I haven't found anything about a keycode being sent for Shift-tab, so you might have to just put up with that default...
  13. Replies
    3
    Views
    802

    jQuery I threw the below together to give you a starting...

    I threw the below together to give you a starting point. I'm not sure of a way to match nodes starting with a specific letter. You would probably have to iterate through the entire nodelist and use...
  14. Thread: Problem with

    by animalj7
    Replies
    7
    Views
    1,058

    Try using less than (

    Try using less than (<) in your comparisons for this or parsing the values.


    <html>
    <script type="text/javascript" src="script.js"></script>
    <body onload="main()">
    </body>
    </html>
  15. Replies
    10
    Views
    45,114

    In the case of the snippet I posted, 123px would...

    In the case of the snippet I posted, 123px would be parsed to 123 and then compared to 123px returning false providing that 123px is not an integer. The only times when it would return true is when...
  16. Replies
    10
    Views
    45,114

    You could do something like this... function...

    You could do something like this...


    function isInteger(s){return parseInt(s,10)===s;}
  17. Are you sure the function is returning true the...

    Are you sure the function is returning true the second time? It looks like you initialize valid as true outside of the function which means it only happens the first time the script is loaded. Try...
  18. You could use JSP to redirect on an unsuccessful...

    You could use JSP to redirect on an unsuccessful login. It would be something like whats described in the link below.

    http://www.jguru.com/faq/view.jsp?EID=376

    Assuming you don't know enough to...
  19. Replies
    3
    Views
    795

    You might do better using the excel application...

    You might do better using the excel application object. Google "createobject("Excel.Application")." However you might get more responses by posting in a correct forum. Your code is vbscript. This is...
  20. Replies
    3
    Views
    4,346

    I kind of hacked this together, someone else...

    I kind of hacked this together, someone else might be able to provide something a little more simple and elegant but who knows.



    <HTML>
    <HEAD>
    </HEAD>
    <BODY>
    <SCRIPT>
  21. Replies
    6
    Views
    862

    My mistake. Yes, It does.

    My mistake. Yes, It does.
  22. Replies
    6
    Views
    862

    toFixed doesn't round, it truncates. You can...

    toFixed doesn't round, it truncates.

    You can try something like this...


    <script language="javascript" type="text/javascript">
    function roundNumber(rnum, rlength) { // Arguments: number to...
  23. Replies
    3
    Views
    720

    What error message? Works in both IE and FF for...

    What error message? Works in both IE and FF for me.
  24. Replies
    5
    Views
    1,515

    Instead of this line: var myType =...

    Instead of this line:


    var myType = (type.options[type.selectedIndex].value);

    I was suggesting this:


    var myType = document.getElementById("type").value;
  25. Replies
    5
    Views
    1,515

    type is the id of the field you are using. when...

    type is the id of the field you are using. when you copy and paste to another file, you probably don't have a field with the id type. Also, you should use document.getElementById()
Results 1 to 25 of 28
Page 1 of 2 1 2
HTML5 Development Center



Recent Articles