Click here to Skip to main content
16,010,268 members
Home / Discussions / Web Development
   

Web Development

 
QuestionHow to archieve in implemented toolbar in mozilla Pin
shivditya24-Jul-06 1:30
shivditya24-Jul-06 1:30 
QuestionTemplate Creation using TYPO3 Version 4 Pin
georgekjolly24-Jul-06 1:11
georgekjolly24-Jul-06 1:11 
QuestionAjax in asp.net 1.1 why almost autocomplete not working in edit mode? [modified] Pin
uscodeproject22-Jul-06 4:57
uscodeproject22-Jul-06 4:57 
AnswerRe: Ajax in asp.net 1.1 why almost autocomplete not working in edit mode? Pin
Edbert P23-Jul-06 15:22
Edbert P23-Jul-06 15:22 
GeneralRe: Ajax in asp.net 1.1 why almost autocomplete not working in edit mode? [modified] Pin
uscodeproject24-Jul-06 9:11
uscodeproject24-Jul-06 9:11 
QuestionASP ? Ajax ? :confused: Pin
RedDragon2k22-Jul-06 0:57
RedDragon2k22-Jul-06 0:57 
AnswerRe: ASP ? Ajax ? :confused: Pin
Landarzar22-Jul-06 1:31
Landarzar22-Jul-06 1:31 
QuestionAutosuggest Text box code gives "Object Expected" Pin
bubberz21-Jul-06 10:08
bubberz21-Jul-06 10:08 
Hello!

I'm trying to use the Autocomplete for the AjaxPro.dll from:
http://munich.schwarz-interactive.de/autocomplete.aspx

I keep getting "Object Expected" in my javascript on my .js include file along with that in the HTML body.

I've added this to my web.config file:
<httpHandlers>
<add verb="POST,GET" path="ajaxpro/*.ashx" type="AjaxPro.AjaxHandlerFactory, AjaxPro"/>
</httpHandlers>
</system.web>

**********
**********
My code behind is trying to return names from my table (for starters) so I can see the names with the autosuggest:

<AjaxPro.AjaxMethod()> _
Public Function SearchAdvanced(ByVal orderNumber As String, ByVal customerID As Integer, ByVal count As Integer) As DataTable
Dim ds As DataSet = New DataSet
Dim sCon1 As New SqlConnection
sCon1.ConnectionString = Session("DBDDL")

Dim cmd As New SqlCommand("SELECT Authority FROM Signature_Authority_Names WHERE Authority like @CustomerID") '+
'"AND OrderNumber LIKE @OrderNumber " +
'"ORDER BY OrderNumber, PartNumber, JobNumber", conn)

cmd.Parameters.Add("@CustomerID", customerID)
'cmd.Parameters.Add("@OrderNumber", orderNumber + "%")

Try
sCon1.Open()

Try
Dim da As SqlDataAdapter = New SqlDataAdapter(cmd)
da.Fill(ds)
Finally
sCon1.Close()
End Try
Catch
Return Nothing
End Try
'Return ds.Tables
Return ds.Tables(0)

End Function

**********
**********
My HTML is:
<body>
<script type="text/javascript" src="scripts/autocomplete.js"></script>
<script type="text/javascript">

//Code for Autocomplete
function init() {
var x = new MS.Web.AutoCompleteDataTable("searchCustomerID", 10);

x.getDisplay = function(item) {
return (item != null ? item.Authority : "");
}
x.getValue = function(item) {
return (item != null ? item.Authority.toString().trimRight() : "");
}
x.getData = function() {
Namespace.ClassName.AjaxMethod(this.ele.value, this.count, this.callback.bind(this));
}
}
addEvent(window, "load", init); //error received on this line
//End Code for Autocomplete

</script>

<form id="Form1" method="post" runat="server">
<TABLE id="Table1">
<TR>
<TD><INPUT id="searchCustomerID" type="text" size="62">
</TD>
</TR>
</TABLE>
</form>

....I get an error on the line for addEvent(window, "load", init); saying "Object Expected"

**********
**********
My first error, "object expected" is received in this .js file on line one:

addNamespace("MS.Web.AutoComplete");

MS.Web.AutoComplete = Class.create();

Object.extend(MS.Web.AutoComplete.prototype, {
timer: null,
count: 10,
pos: -1,
waitAfterInput: 230,
minChars: 0,
children: null,

I'm using IE6 Sp2
Questionlocalhost Pin
MickYL21-Jul-06 5:00
MickYL21-Jul-06 5:00 
AnswerRe: localhost Pin
Brent Lamborn21-Jul-06 5:12
Brent Lamborn21-Jul-06 5:12 
GeneralRe: localhost Pin
RichardGrimmer30-Jul-06 4:10
RichardGrimmer30-Jul-06 4:10 
QuestionFLASH BORDERS Pin
TintinV3ck20-Jul-06 23:22
TintinV3ck20-Jul-06 23:22 
AnswerRe: FLASH BORDERS [modified] Pin
Brent Lamborn21-Jul-06 5:03
Brent Lamborn21-Jul-06 5:03 
QuestionHREF between folders? Pin
TintinV3ck20-Jul-06 23:19
TintinV3ck20-Jul-06 23:19 
AnswerRe: HREF between folders? Pin
Paddy Boyd21-Jul-06 0:09
Paddy Boyd21-Jul-06 0:09 
GeneralRe: HREF between folders? Pin
Amit Agarrwal24-Jul-06 19:55
Amit Agarrwal24-Jul-06 19:55 
GeneralRe: HREF between folders? Pin
Paddy Boyd24-Jul-06 21:55
Paddy Boyd24-Jul-06 21:55 
Questionprinting a webform using javascript Pin
arvindk820-Jul-06 17:58
arvindk820-Jul-06 17:58 
QuestionCSS Nesting Pin
eggsovereasy20-Jul-06 11:13
eggsovereasy20-Jul-06 11:13 
AnswerRe: CSS Nesting Pin
J. Dunlap20-Jul-06 11:54
J. Dunlap20-Jul-06 11:54 
AnswerRe: CSS Nesting Pin
theJazzyBrain25-Jul-06 5:33
theJazzyBrain25-Jul-06 5:33 
QuestionMicrosoft VBScript runtime error '800a01a8' Pin
Abbas8220-Jul-06 10:58
Abbas8220-Jul-06 10:58 
AnswerRe: Microsoft VBScript runtime error '800a01a8' Pin
Abbas8221-Jul-06 6:46
Abbas8221-Jul-06 6:46 
QuestionHow to Compare two Dates in date picker Pin
abufaizur20-Jul-06 7:48
abufaizur20-Jul-06 7:48 
AnswerRe: How to Compare two Dates in date picker Pin
mahesh kukkadapu21-Jul-06 5:35
mahesh kukkadapu21-Jul-06 5:35 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.