Monday, February 11, 2008

_getCursorIndex for FireFox and Internet Explorer

_getCursorIndex for FireFox and Internet Explorer

getCursorIndex function works for FireFox. Hope this works for Internet Explorer also

_getCursorIndex: function() {
return this.get_element().selectionStart;
},


getCursorIndex function works for Internet Explorer

_getCursorIndex: function() {
return o.value.lastIndexOf("Your String")
},

No comments:

ASP.NET MVC - Sport Facility Booking system

  The project relies on some external service providers. Thus accessing them via their API requires authentication. An API Key need to be su...