Hi,
thanks for the response! I've found out that if I set "break on all errors"
that I get what I want :)

Will think about your second remark, I haven't thought of that :)

--
Jan Hančič
http://hancic.info


On Thu, Oct 8, 2009 at 3:55 PM, Neo [GC] <[email protected]> wrote:

> This is a somewhat cheap workaround, but you could start your handler with
> a function which sets the links href to "#" or "javascript:void(0)". You
> could depend this on some variable which is only set in debug mode.
>
> Anyway, this is a great way even for users _with_ Javascript, as they are
> able to open a new tab by middle-click or ctrl-click, what is impossible
> with pure-ajax links. :)
>
> Jan Hančič schrieb:
>
>> I have some links that point to some pages but I attach some onclick
>> events, that do something and then return false, on them (with
>> JavaScript not in the markup). So after clicking you don't go to the
>> page the link points to (if you have to know; I'm building a image
>> gallery and you can navigate trough the images via AJAX, the links are
>> there for users without JavaScript and web-spiders).
>> Anways, the problem is that if there is some error (runtime error) in
>> the event handler the script brakes and the browser follows that link.
>> If I have Firebug opened I can see the error for a glimpse of a second
>> but then the console clears itself as there is a new request taking
>> place.
>>
>> Is there any way to configure firebug to stop the request in such
>> case, so that I can look at the error and debug it?
>>
>> >>
>>
>>
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Firebug" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/firebug?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to