Jump to content

loquaz

Members
  • Posts

    3
  • Joined

  • Last visited

Everything posted by loquaz

  1. Thanks man! Your tip solved my problem. So, now i'll rewrite my code in another way, refactoring my callback function or passing the function declaration as a parameter to the eventListener. Thanks brow! []
  2. why will you use XML instead a conventional database storage? Yes, you can do this, but i don't recomend this approach. What language are you using as middleware for your application? if the answer is php or java, there are many classes in the web that can help you to do this. Look at this : www.phoclasses.org:)
  3. Hi all, First of all, sorry by my english. I'm brazilian and i don't speak english very well :)I'm trying to add an eventlistener to an anchor element that i created on the fly using DOM and some functions from the x library. When my page that contains this function are loaded, the function are triggered one time on this load event (which is an error, because i'm using the 'click' mouse event) and then doesn't work anymore. I'm using xAddEventListener function from x library but when i made without using x library happen the same.i'll paste some code to ilustrate the situation: [this.test = function(_id){ _icons = xGetElementById(_id); _children = _icons.childNodes; for(i = 0 ; i < _children.length; i++ ){ if(_children.nodeName.toLowerCase() == 'a'){ xAddEventListener(_children, "click", t("works fine!"), false); } } }]"t" is my callback function that display a dialog box with the message contained in the unique argument passed to the function.Somebody can help me to solve this problem?
×
×
  • Create New...