QUOTE(girasquid @ 6 Jun, 2007 - 11:00 AM)

Why can't you use document?
I will not get the Document details, because i'm using this JavaScript inside SharePoint 2007 and this part of javascript will added inside the Ajax AutoComplete Extender.
this line document.selection.createRange();
will return only [object] when run from my SharePoint 2007 page
And my code starts like this
// This is the Event that will fire
function Sys$UI$AutoCompleteBehavior$_onTimerTick(sender, eventArgs)
{
//TextBox Value this.get_element().value
var text = this.get_element().value;
....
from here i need to get those details...
Basically i need the autocomplete functionality works for delimited text char like in this article
http://www.codeproject.com/jscript/jsactb....;select=1823994QUOTE(vivekthangaswamy @ 6 Jun, 2007 - 09:54 PM)

QUOTE(girasquid @ 6 Jun, 2007 - 11:00 AM)

Why can't you use document?
I will not get the Document details, because i'm using this JavaScript inside SharePoint 2007 and this part of javascript will added inside the Ajax AutoComplete Extender.
this line document.selection.createRange();
will return only [object] when run from my SharePoint 2007 page
And my code starts like this
// This is the Event that will fire
function Sys$UI$AutoCompleteBehavior$_onTimerTick(sender, eventArgs)
{
//TextBox Value this.get_element().value
var text = this.get_element().value;
....
from here i need to get those details...
Basically i need the autocomplete functionality works for delimited text char like in this article
http://www.codeproject.com/jscript/jsactb....;select=1823994The follwoing code works fine, when typed mplungjan; followed by mplungjan;vivek;NET;expert; vice versa...
function Sys$UI$AutoCompleteBehavior$_onTimerTick(sender, eventArgs) {
if (this._serviceURL && this._serviceMethod) {
var text = this.get_element().value;
/**************************************************/
if ( text.lastIndexOf(this._separatorChar) > -1 )
{
// found separator char in the text
var pos = text.lastIndexOf(this._separatorChar);
pos++;
text = text.substring(pos, (text.length));
text = text.trim();
}
if ( !this._noMinimumPrefix && (text.trim().length < this._minimumPrefixLength) ) {
this._update('', null, false);
return;
}
----
when change the mplungjan;vivek;NET;expert; text in the middle like this mplungjan;google;NET;expert;
the text should return this google.
hope this clears my requirement to U