![]() |
[AJAX] Problem bei Event.observe bzw onclick
Hallo Leute,
ich habe ein kleines Problem mit Ajax. Ich benutze eine Lightbox für meine Website ( siehe ![]()
Delphi-Quellcode:
Und wenn ich jetzt den Button weglassen möchte, dann geht das spiel nicht. Und ich weiß wirklich nicht wieso.
[url="http://blubb.de/index.html"]<button>blubb</button>[/url]
Hier ist der Code für die Lightbox: ![]() Und wenn ich mich nicht irre ist das hier der Teil wo überprüft wird, ob es ein Element gibt mit der Class 'lbAction':
Delphi-Quellcode:
Ich hoffe jemand kann mir helfen...
// Search through new links within the lightbox, and attach click event
actions: function(){ lbActions = document.getElementsByClassName('lbAction'); for(i = 0; i < lbActions.length; i++) { Event.observe(lbActions[i], 'click', this[lbActions[i].rel].bindAsEventListener(this), false); lbActions[i].onclick = function(){return false;}; } } Danke, Sarte |
Alle Zeitangaben in WEZ +1. Es ist jetzt 18:12 Uhr. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz