www.webdeveloper.com

Search:

Type: Posts; User: Sockwave

Search: Search took 0.01 seconds.

  1. Replies
    3
    Views
    2,320

    What specifically are you having trouble with?...

    What specifically are you having trouble with? Finding the anchors, or making the drop down list? What have you tried? For starters, you should look into the document.getElementsByTagName function...
  2. It still "works" in the sense that it changes the...

    It still "works" in the sense that it changes the variable value, but when you move the alert outside the "onclick" function it doesn't run the alert command when you click. You should read up on...
  3. I think you can do this. The following script...

    I think you can do this. The following script works fine in chrome at least. Please note the use of single and double quotes.


    <html>
    <head>

    <script>
    var j="HA";
    </script>
  4. Replies
    3
    Views
    8,311

    Several things: You usually can't set an event...

    Several things: You usually can't set an event property like "onClick" directly through javascript. You have to do it in the HTML (as below) or use addEventListener/attachEvent (one for not IE, the...
  5. Replies
    3
    Views
    4,224

    Hmm... that is a weird one. Have you tried...

    Hmm... that is a weird one. Have you tried running the local script with the online sources, i.e. src="http://whatever"? I can't think why you would get a 404 error if the files are there and...
  6. Replies
    5
    Views
    1,639

    if (navigator.appName == "Netsacpe") It looks...

    if (navigator.appName == "Netsacpe")
    It looks like you misspelled "Netscape" there, which would cause it to alert that you are using IE no matter what. Let me know if that fixes it.
  7. Replies
    2
    Views
    6,879

    I've had this same problem. The "value" of the...

    I've had this same problem. The "value" of the file input element is just the file name; most browsers (all modern ones) remove the path from the file name internally, stopping javascript from...
  8. Replies
    2
    Views
    2,569

    Not sure what the problem is. Can you add the tag...

    Not sure what the problem is. Can you add the tag manually to each entry, or do you want to do it automatically? If you're concerned about having the quotes inside the <a> tag, use single quotes,...
  9. Replies
    2
    Views
    1,644

    I think this is what you want. Sorry if I...

    I think this is what you want. Sorry if I misunderstand the problem.


    function regnr_and_fabrikat() {
    if(harVarde(inform)){
    //good result
    }
    else{
    //bad...
  10. The problem, as clueful explained, is that you...

    The problem, as clueful explained, is that you were submitting the form. You can keep the form tag if you want, just change the button to type="button" instead of type="submit". You really don't need...
  11. Replies
    7
    Views
    2,972

    You can do this, but maybe you shouldn't? That...

    You can do this, but maybe you shouldn't? That page has a disclaimer about image permissions:
    http://apod.nasa.gov/apod/lib/about_apod.html#srapply
    which specifically doesn't allow unlimited...
  12. Replies
    3
    Views
    4,009

    Sorry if I'm not exactly sure where you're having...

    Sorry if I'm not exactly sure where you're having trouble, but here are some ideas: to set up your form checking, you want to use either an onChange or onBlur event attached to the input, i.e. <input...
  13. Replies
    2
    Views
    1,199

    That's a tricky one, but I think I found it. If...

    That's a tricky one, but I think I found it. If you delete the first row, i is 0 so the i-- line in the middle of the loop will make i = -1. Then, the call for table.rows[i].cells[1].childNode[0]...
  14. Replies
    3
    Views
    1,939

    You probably want an "if" statement, not a...

    You probably want an "if" statement, not a "while" statement unless the animal type is changing inside the loop. A while statement will loop endlessly and can freeze the script if the condition never...
  15. Replies
    1
    Views
    2,403

    I think the problem is with pokazi2, which wasn't...

    I think the problem is with pokazi2, which wasn't in the original script. The function tzatvori only hides the last drop-down menu drawn. When you draw the sub-menu (m3) with your pokazi2 function,...
  16. Replies
    17
    Views
    2,345

    You're right, sorry. The fact remains that the...

    You're right, sorry. The fact remains that the fadeout callback won't call until the fadeout completes. By then the loop will have finished and the value of i will be testarray_length-1, not whatever...
  17. Replies
    17
    Views
    2,345

    I think I see two likely problems here, both with...

    I think I see two likely problems here, both with your loop variable "i"

    1: if you are on the last element of the array (i.e. i==testarray_length-1) then test[i+1] is out of bounds

    2: i is a...
  18. Replies
    4
    Views
    2,189

    Without seeing more of the code I can't tell...

    Without seeing more of the code I can't tell exactly what you're trying to do, but it looks like your function is just resetting the form1.action parameter. Changing the form1.action parameter does...
  19. jQuery I don't know much about jQuery, but couldn't this...

    I don't know much about jQuery, but couldn't this be done with css classes? Is there any reason you need to get the style specifically from another element? You can declare a class in your style tag:...
Results 1 to 19 of 19
HTML5 Development Center



Recent Articles