dcsimg
www.webdeveloper.com

Search:

Type: Posts; User: ahurtt

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    3
    Views
    688

    You seem to have missed the important bit about...

    You seem to have missed the important bit about making the getGenderChoice() function actually RETURN a value which you then ASSIGN to validForm. Compare my rewritten getGenderChoice() function to...
  2. Replies
    21
    Views
    4,214

    "Difficult" is a subjective term. Anybody can...

    "Difficult" is a subjective term. Anybody can probably follow a few examples, read a couple beginner tutorials, and produce the equivalent of a "hello world" application. To create a simple...
  3. Replies
    21
    Views
    4,214

    His complaint in the original post was that the...

    His complaint in the original post was that the cases in the switch were getting long and unwieldy and he wasn't even halfway done yet. So from that information we can easily deduce that eventually...
  4. Replies
    3
    Views
    688

    Firstly you didn't declare any variable named...

    Firstly you didn't declare any variable named 'validForm' local to your getGenerChoice() function. So when within the getGenderChoice() function you say validForm = false, you are not setting the...
  5. Replies
    2
    Views
    1,820

    Prototype try something like: var DropDownMenu =...

    try something like:



    var DropDownMenu = Class.create();

    DropDownMenu.prototype = {

    initialize: function(menuElement) {
    menuElement.childElements().each(function(node){
  6. Replies
    21
    Views
    4,214

    I initially had thought about proposing something...

    I initially had thought about proposing something similar to what Jona proposed above but I decided against it for the reason that it does not alleviate the problem of having to load ALL the data for...
  7. Replies
    21
    Views
    4,214

    If you know HTML, you already know XML well...

    If you know HTML, you already know XML well enough to do what you need to do here :) HTML is just an XML vocabulary. With XML, it's just like HTML for the most part except you get to make up your...
  8. Replies
    21
    Views
    4,214

    Well if you have no server side processing...

    Well if you have no server side processing capability available to you (PHP, JSP, .NET, etc...) then I guess it's any port in a storm. Yes this will be somewhat kludgy to implement if the only tools...
  9. AJAX You could also do something like this which...

    You could also do something like this which allows you to pass function local arguments to a ready state change handler function and receive a return value from the handler. To see it work add some...
  10. AJAX I get the error message "text is undefined" in...

    I get the error message "text is undefined" in the firefox error console every two seconds. Try "var text" before you start assigning things to a variable named text. But more likely now that I...
  11. AJAX I think you are failing to comprehend the...

    I think you are failing to comprehend the difference between these two statements (assuming that someFunction() exists as a defined function):

    /*immediately executes someFunction() and assigns the...
  12. AJAX instead of this: receiveReq.onreadystatechange =...

    instead of this:
    receiveReq.onreadystatechange = UpdateSection();

    do you mean this:
    receiveReq.onreadystatechange = UpdateSection;


    Because when you say UpdateSection(), you are actually...
  13. Replies
    8
    Views
    1,173

    But you have not shown us any actual javascript. ...

    But you have not shown us any actual javascript. What code are you talking about having to modify? All I see is two external javascript file link tags. Are you saying your gateway.js file contains...
  14. Replies
    8
    Views
    1,173

    Going back to the original post. . .If you had to...

    Going back to the original post. . .If you had to put this:

    <SCRIPT SRC="http://mysite.com/gateway.js"></SCRIPT>

    in every one of your files, how is that any different from having to put this:
    ...
  15. Replies
    6
    Views
    1,020

    I'd say there may be no need to use the...

    I'd say there may be no need to use the document.write() function for this at all. Instead you might be able to just do a classic javascript image swap by getting a reference to the <img> object...
  16. Replies
    9
    Views
    931

    Yes. But you'd never know it because javascript...

    Yes. But you'd never know it because javascript is not really typed...that is to say, it has objects of different types under the covers but you can't easily tell that by looking at declared vars. ...
  17. Replies
    9
    Views
    931

    In this case I'll refer you back to toicontiens...

    In this case I'll refer you back to toicontiens reply. What you are trying to do might be easier using the form object reference rather than its id string. But it seems like first you need to...
  18. The expression 20* in javascript (without quotes...

    The expression 20* in javascript (without quotes around it) is probably being interpreted as a mathematical expression as in 20 times something. But there is no second operand so this is an...
  19. Replies
    8
    Views
    1,173

    I don't think you can have another tag...

    I don't think you can have another <script> tag nested inside a script file you are including from a separate file like that if that is in fact what you are doing. I don't think that the browser...
  20. Replies
    9
    Views
    931

    If I'm understanding you right, you have some...

    If I'm understanding you right, you have some element in your document that has an id attribute of some value...let's say id="foo". And then you want to assign that value "foo" to a variable frmId...
  21. Replies
    6
    Views
    1,020

    The problem you are having is because when you...

    The problem you are having is because when you call document.write() on a document that has already fully completed rendering, it erases the old document contents, including the scripting functions...
  22. Replies
    4
    Views
    971

    Well navigating objects in the document with...

    Well navigating objects in the document with javascript can be either very easy or extraordinarily confusing depending on how used to more type-safe and rigid languages you are used to. There is...
  23. try value="${k}"

    try value="${k}"
  24. Pay me or do your own homework.

    Pay me or do your own homework.
  25. I suspect the reason why form submission is...

    I suspect the reason why form submission is continuing anyway even if your validation function is returning false is because you probably forgot to put something like the following in your <form>...
Results 1 to 25 of 28
Page 1 of 2 1 2
HTML5 Development Center



Recent Articles