Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. inbaron

    What does "this" means

    Thanks to all Yes, my first response was before I really looked at the code and I missed the last function. In fact, I could not use that approach exactly because I had to assign the same handler to many elements. Instead, I decided to cache the reference to object itself on the document...
  2. inbaron

    What does "this" means

    Thank you so much. I did not know about the objectStore object and it's use. You have opened a new window :-) of opportunity for me.
  3. inbaron

    What does "this" means

    My problem is this. I create a javascript object that has a function associated with it. I instantiate this object and when it is instantiated, it assigns its function as an onclick handler to a div element on the page. Here is a simple html that I created to demonstrate the problem...
  4. inbaron

    outerHTML equivalent in netscape.

    Sorry vbkris, as I said, the html code is not under my control. I write the JS function to serve a general purpose and work on images identified by their id's, no matter how they are embedded in their html page. The suggestion by vongrunt seems to be the right solution. Thanks, I'll try it.
  5. inbaron

    outerHTML equivalent in netscape.

    Thanks, but this won't work. The parent node may include much more than just the image, and this is not under my control. For example, in the following, the parent is a <td> element but there is much more than the image inside. <td><a>some link</a><img src = someSource propertyA =...
  6. inbaron

    outerHTML equivalent in netscape.

    I have an IMG "myImage" object which I want to copy into a div element "myDiv". It is very simple in IE myDiv.innerHTML = myImage.outerHTML Netscape does not support outerHTML. How can I do the same in Netscape? Thanks
  7. inbaron

    Setting onmouseover event on images does not work

    It does the same as just return(false). The cursor "No Entry" form disappears bu the mouseover is not triggered.
  8. inbaron

    Setting onmouseover event on images does not work

    Funny, adding ondragstart="return(false);" to the image cancels the appearance of the the "No Entry" cursor form but it does not solve the problem. The onmouseover on the other image is still not triggered.
  9. inbaron

    Setting onmouseover event on images does not work

    Thanks theboyhope. Is there a way to cancel this default behavior of images so it will not interefere with the mouseover event?
  10. inbaron

    Setting onmouseover event on images does not work

    Thanks to all of you trying to help. I managed to reduce the problem to one simple question - why onmouseover event on one image is not triggered when you click first on another image. Here is a very simple HTML page (you'll have to provide two images of your own) <html> <head> <script>...
  11. inbaron

    Setting onmouseover event on images does not work

    Sorry for not making it clear. The elmts array was declared globally and populated before calling the functions.
  12. inbaron

    Setting onmouseover event on images does not work

    Hi Tviman Thanks for trying to help. Unfortunately, I have to insist that this is the right way to assign handler programtically. Javascript consider functions as variables of object type and what you call a variable name is exacltly that, the function object is a variable. Try it and you see...
  13. inbaron

    Setting onmouseover event on images does not work

    Well, unfortunately, this is the right way to do it. When you assign an handler programtically this way, you cannot pass parameters (a known limitation). Also, you should not include the parenthesis, just the function name.
  14. inbaron

    Setting onmouseover event on images does not work

    I'll try to present the problem in the most simple form: I have an array of elements on the page - "elmts". I have another element "controller" with a onmousedown handler that sets a mouseover event on "elmts". For simplicity, the mouseover function just displays a message: function...
  15. inbaron

    What is the difference between onmouseclick and onclick

    In other words, in a web application onmouseclick is the same as onclick does and there is no need for it. Thanks Shai
  16. inbaron

    What is the difference between onmouseclick and onclick

    What is the difference between "onclick" and "onmouseclick" event handlers? Do they apply to different objects? Dothey work differently? I am baffled? Thanks for Help Shai
  17. inbaron

    submitting form on calling window from code in child window

    Why don't you eliminate the &quot;onsubmit = window.close()&quot; and instead add it to the onclick event <form> ---type here whtever text and html you need--- <input type=&quot;button&quot; value=&quot;submit&quot; onClick=&quot;opener.document.forms['SubmitThread'].submit()...
  18. inbaron

    How can I get the location of keypress

    Thanks Unfortunately I do not have this flexibility. It has to be both IE and NS compatible and use any font.
  19. inbaron

    need to be general purpose

    Ignore this thread, it was supposed to be a reply in the previous one
  20. inbaron

    need to be general purpose

    Thanks Unfortunately my code has to be Netscape compatible and can use any fone, so fixed size cannot help me.

Part and Inventory Search

Back
Top