www.webdeveloper.com

Search:

Type: Posts; User: GSharp

Page 1 of 3 1 2 3

Search: Search took 0.01 seconds.

  1. Replies
    4
    Views
    1,782

    You're probably right for most browsers on most...

    You're probably right for most browsers on most mobile devices, however I would imagine that the click implementation would be more universally implemented than hover.
  2. Replies
    4
    Views
    1,782

    I don't think the hover property is really what...

    I don't think the hover property is really what you want to use for iOS. A tap is the same as a click, just set an image with display:none and have a simple javascript function that changed the...
  3. Maybe in IE9 the removeFormat function is eating...

    Maybe in IE9 the removeFormat function is eating the carriage returns? If you comment out that line, do you still have the issue?
  4. Replies
    8
    Views
    2,071

    You're welcome, glad it worked out!

    You're welcome, glad it worked out!
  5. Replies
    8
    Views
    2,071

    You don't need to do anything with the variable,...

    You don't need to do anything with the variable, it's just to ensure that your browser thinks you are making a unique request. Your php page will ignore it completely. Example:
    ...
  6. Replies
    8
    Views
    2,071

    If you are calling the same page with the same...

    If you are calling the same page with the same parameters, IE will cache that (depending on your settings). While you can try to tell it not to using pragma no-cache headers I haven't found it to be...
  7. Replies
    8
    Views
    2,071

    Does IE work the first time and then stop...

    Does IE work the first time and then stop working? If so you might need to change setInterval('fback()',5000); to setInterval('fback',5000). Just a guess...
  8. Replies
    14
    Views
    2,490

    In my experience inline javascript isn't executed...

    In my experience inline javascript isn't executed when added to the page via ajax (not sure if it's a browser shortcoming or a security measure). If you want to keep your current structure I think...
  9. Replies
    14
    Views
    2,490

    You don't put the eval in your ajax, you put it...

    You don't put the eval in your ajax, you put it in the code that calls the ajax.
  10. Replies
    14
    Views
    2,490

    The simplest way to solve this would be to use an...

    The simplest way to solve this would be to use an iframe instead of ajax.
  11. That's funny... I thought things were lined up...

    That's funny... I thought things were lined up weird but I assumed it was a copy/paste formatting issue and didn't bother counting the braces. Glad you were able to figure it out :)
  12. Have you tried doing...

    Have you tried doing secondListBox.appendChild(newOption)?
  13. Replies
    4
    Views
    1,469

    Oh sorry, I misunderstood your original post. ...

    Oh sorry, I misunderstood your original post. Can you change the first function call to be synchronous AJAX? What javascript framework are you using?
  14. Replies
    4
    Views
    1,469

    Easiest way is to attach it to the onload event...

    Easiest way is to attach it to the onload event of the iframe. Something like

    <iframe onload='showEvent2()'>
  15. Replies
    1
    Views
    2,838

    I believe scrollIntoView takes a parameter that...

    I believe scrollIntoView takes a parameter that will let you scroll the item to the bottom of the page instead of the top. You would need to do something custom to make it centered.
  16. Replies
    2
    Views
    989

    Actually it does, you would see them if you were...

    Actually it does, you would see them if you were to view source. However if you want them to show in the browser, you have to use HTML. Replace your \n with <br> and you'll be good to go.
  17. You could also try: ...

    You could also try:

    parentFrame.innerHTML+='Name is #form.name# and email is #form.email#';
  18. Replies
    1
    Views
    993

    You need to do .className instead of .style.

    You need to do .className instead of .style.
  19. Replies
    8
    Views
    914

    I believe if you enter in something like 1-45 it...

    I believe if you enter in something like 1-45 it considers that the same as 2-14 and valid. Not sure that the javascript Date method is sophisticated enough to use for validation. I'm sure if you...
  20. Replies
    6
    Views
    947

    If I understand what you are asking, you just...

    If I understand what you are asking, you just need to eval it and that will give you the value.



    var strName = "Name"
    var currValue = eval(strName);
  21. Replies
    2
    Views
    1,996

    AJAX My guess is that you are overwriting the onload...

    My guess is that you are overwriting the onload command when you call it the second time. Try making a function that calls both functions and setting your onload to that, or append the second...
  22. Replies
    4
    Views
    2,470

    Won't be a working example but hopefully it will...

    Won't be a working example but hopefully it will be enough so you get the idea.
    In your form put:
    <input type='submit' style='display:none' id='my_submit'>

    Change your submit link to:
    <a...
  23. Replies
    4
    Views
    2,470

    I've had trouble getting the submit() function of...

    I've had trouble getting the submit() function of a form to work via javascript. I tend to instead put a submit button on the form (you can make it hidden if you want to use your styled href still)...
  24. Replies
    4
    Views
    3,141

    Just shooting in the dark here, but maybe the...

    Just shooting in the dark here, but maybe the element is being focused, but not brought into view. Have you tried using scrollIntoView?

    http://msdn.microsoft.com/en-us/library/ms536730(VS.85).aspx
  25. Replies
    6
    Views
    3,097

    Any modern browser supports some form of XHR. ...

    Any modern browser supports some form of XHR. The best method is to find out via detection like so:
    xmlhttp=null;
    if (window.XMLHttpRequest)
    {// code for all new browsers
    xmlhttp=new...
Results 1 to 25 of 52
Page 1 of 3 1 2 3
HTML5 Development Center



Recent Articles