[Wtr-general] Just wanted to invoke click event where the button have parameters in it
Zeljko Filipin
zeljko.filipin at gmail.com
Wed Jul 19 16:09:57 EDT 2006
HTML that you provided is not valid. Three tags have the same id. Ids should
be unique.
Can you ask your developer to change
<button id="delete" onfiltered="performAction('delete',
'KH');">Delete</button>
to
<button id="KH" onfiltered="performAction('delete', 'KH');">Delete</button>
In short, change id="delete" to id="KH".
Then you could access it like this
ie.button(:id, "KH").click
On 7/19/06, VIKASH KUMAR <vikashkumar051 at yahoo.co.in> wrote:
>
> Sir,
> In my web page there are lots of buttons having same name, they are called
> using javascript. They are as follows:
>
>
> <button type="button" name="delete" id="delete"
> onfiltered="performAction('delete', 'BF');">Delete</button>
>
> <button type="button" name="delete" id="delete"
> onfiltered="performAction('delete', 'BI');">Delete</button>
>
> <button type="button" name="delete" id="delete"
> onfiltered="performAction('delete', 'KH');">Delete</button>
>
> *ie.button(:index,3).click* , this works great if we know the index, but *if
> someone just doesn't know the index, knows only the parameter which is
> ('delete', 'KH'), then what is the solution for it?*
>
> Please send me the solution for this.
> Thanks in Advance
>
> With Regards
>
> Vikash Kumar
>
> ------------------------------
> Find out what India is talking about on Yahoo! Answers India.<http://us.rd.yahoo.com/mail/in/mailanswersshare/*http://in.answers.yahoo.com/>
> Send FREE SMS from New Yahoo! Messenger to Mobile: Download NOW!<http://us.rd.yahoo.com/mail/in/mailmessenger/*http://in.beta.messenger.yahoo.com/>
>
>
> _______________________________________________
> Wtr-general mailing list
> Wtr-general at rubyforge.org
> http://rubyforge.org/mailman/listinfo/wtr-general
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/wtr-general/attachments/20060719/2583ab12/attachment.html
More information about the Wtr-general
mailing list