Cool! I just gave up mootools and made a jump over jQuery because of the
so-so documentations and forum help. So far, I find jQuery to be EXCELLENT.
Thanks for your help again!
Matt Stith wrote:
>
> No need to test if the element begins with eip- manually, just use a
> selector:
>
> $("[EMAIL PROTECTED]'epi-']") will select all 'span' elements with id's that
> begin
> with epi-
>
> Sorry i cant help too much with your problem though.
>
> On 1/1/07, xmrcivicboix <[EMAIL PROTECTED]> wrote:
>>
>>
>> Hi friends,
>>
>> I ran into a problem using the bind and unbind events. I have a function
>> that triggers when $(document).ready. The function name is begin. This
>> function iterates through all the span elements in the DOM and find an id
>> that begins with 'eip-' then assign 3 events, "contextmenu", "mouseover",
>> and "mouseout". The contextmenu event triggers a edit() function. When
>> this
>> edit function is triggered. it does $("span").unbind to remove all events
>> so
>> that none of them can be editable. Then one the cancel() function is
>> trigger
>> the begin() function gets fired again, which theoretically should do look
>> for span elements and do it all over again. However, this does not work
>> properly. Any thoughts?
>>
>> the script can be viewed here:
>>
>> https://crux.baker.edu/~thuynh01/eip/static_pages/eip.js
>>
>> the actually demo can be found here:
>>
>> https://crux.baker.edu/~thuynh01/eip/test.html
>>
>> if you right click the second link, then all events are disable. Click
>> the
>> red x button on the top left to close the editor. Then click the right
>> click
>> the first link. After this one, the begin() does not seem to fire again.
>>
>> Thanks,
>> --
>> View this message in context:
>> http://www.nabble.com/bind-and-unbind-events-HELP%21-tf2903534.html#a8112193
>> Sent from the JQuery mailing list archive at Nabble.com.
>>
>>
>> _______________________________________________
>> jQuery mailing list
>> [email protected]
>> http://jquery.com/discuss/
>>
>
> _______________________________________________
> jQuery mailing list
> [email protected]
> http://jquery.com/discuss/
>
>
--
View this message in context:
http://www.nabble.com/bind-and-unbind-events-HELP%21-tf2903534.html#a8112257
Sent from the JQuery mailing list archive at Nabble.com.
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/