[jQuery] Re: Triggering a link with no click event

2009-02-09 Thread Michael Lawson
ate: 02/09/2009 02:01 PM Subject:[jQuery] Re: Triggering a link with no click event I was looking to do the same thing - I wanted to emu

[jQuery] Re: Triggering a link with no click event

2009-02-09 Thread solidhex
I was looking to do the same thing - I wanted to emulate the click() method, which doesn't work on all browsers. I have had any luck either. I was trying to open a file input browse view by clicking on another link. I can get it to work in IE and Safari, but Firefox doesn't support it on input[typ

[jQuery] Re: Triggering a link with no click event

2009-01-31 Thread Andy789
Guys, thank you, but it still does not work. 1) The Maurício's solution is just a way of extracting the href value and creating onlick event to jump to that link. What I need is to emulate a click on the a element without opening a link directly. The reason for that: Rokbox scans all rel="rokbox"

[jQuery] Re: Triggering a link with no click event

2009-01-31 Thread Ricardo Tomasi
I'm not sure, but I think click() will only fire the events bound with jQuery itself. RokBox seems to be based on mootools, have you tried the mootools way? $('test').fireEvent('click'); Also, are you sure you're not having conflicts between jQuery and mootools? Which one is using the caret symb

[jQuery] Re: Triggering a link with no click event

2009-01-31 Thread Mauricio (Maujor) Samy Silva
Hi Andy, Sorry. There is no need to use the find() method. function linkClick() { var target = $('#test').attr('href'); window.location = target; } --- But I strongly recommend do not use javascrit whitin the markup. Keep behavior inside its o

[jQuery] Re: Triggering a link with no click event

2009-01-31 Thread Mauricio (Maujor) Samy Silva
Try: function linkClick() { var target = $('body').find('#test').attr('href'); window.location = target; } Maurício -Mensagem Original- De: "Andy789" Para: "jQuery (English)" Enviada em: sábado, 31 de janeiro de 2009 05:15 Assunto: [jQuery] Triggering a link with no click event

[jQuery] Re: Triggering a link with no click event

2009-01-30 Thread Andy789
As I can see quite many posts on this subject I wanted to explain why I need this. I generate links for RokBox modal window - something like test next, I need to trigger these links from jscript function (from the external flash application). I could not figure out the way how to call RokBox dir