ConvincingMail - Email Marketing SoftwareConvincingMail
 
Email Marketing Software

Welcome Guest Search | Active Topics | Members | Log In | Register

'Form' is not defined using AdvancedAutoSuggest control Options · View
nessy00
Posted: Tuesday, September 29, 2009 1:56:57 AM
Rank: Newbie
Groups: Member

Joined: 9/29/2009
Posts: 3
Points: 9
Hello,

I've tried to use the AdvancedAutoSuggest control, but I get and error and I don´t know what to do to make it works!

The error I get is an Jscript error ant it says in Spanish:
Error en tiempo de ejecución de Microsoft JScript: 'Form' no está definido
In English it'd be sth like:
Runtime error in Microsoft JScript: 'Form' is not defined
Does smn knows what's happens??

Thanks
trooper
Posted: Tuesday, September 29, 2009 2:56:33 AM
Rank: Administration
Groups: Administration

Joined: 11/18/2007
Posts: 74
Points: 134
Hi,
Can you post the link where I can see this error?


Thanks
Mikhail
nessy00
Posted: Tuesday, September 29, 2009 3:19:39 AM
Rank: Newbie
Groups: Member

Joined: 9/29/2009
Posts: 3
Points: 9
Sorry trooper, but I haven´t got any link where to show the error. and i don't think that I can upload images here.
I cannot show you the error, but thanks.

If smn has a example with this control it'd be wonderfull to write it here.

I download the control demo that is published in the web but i don´t get to run it! it gives me the same error!!

I'm getting mad!!
trooper
Posted: Tuesday, September 29, 2009 4:20:47 AM
Rank: Administration
Groups: Administration

Joined: 11/18/2007
Posts: 74
Points: 134
Does the error happen on demo page
http://www.convincingmail.com/Autosuggest-autocomplete.aspx

Which browser do you use?

Thanks
Mikhail
nessy00
Posted: Tuesday, September 29, 2009 6:02:06 AM
Rank: Newbie
Groups: Member

Joined: 9/29/2009
Posts: 3
Points: 9
The error does not happen on demo page, it´s only in my PC. I´m using IE7.

I've tried again with the demo in my PC. Again from the begining!

I don't get that error but I't doesn't run at all. I've made some changes in the code.
I've changed the StateSuggest function in Default.aspx.cs and Suggestions.cs not to get the elements of the list from DB:
Quote:
List<SuggestionItem> items = new List<SuggestionItem>();

SuggestionItem suggestionItem = new SuggestionItem();
suggestionItem.Title = "title1";
suggestionItem.Id = "id1";
//add item to the list
items.Add(suggestionItem);

return SuggestionItem.SuggestionArrayToJSON(items.ToArray(), tryValue);


One of the things I don't understand is why the function StateSuggest is in two files. Anyway, the application starts running and the hourglass rounding¿? but it doesn't stop, it doesn't do anything.

I've also had to changed the name of the SuggestionItemToJSON function in AdvancesSuggestionItem.cs because the function is not been recognized, I've changed the name for ToJSON. Is it ok?

Quote:
public override void SuggestionItemToJSON(StringBuilder sb, string tryValue)


This is the first time I use WebServices, so I may be doing sth wrong,

Thanks,
trooper
Posted: Tuesday, September 29, 2009 6:16:02 AM
Rank: Administration
Groups: Administration

Joined: 11/18/2007
Posts: 74
Points: 134
Are you using the correct verrsion of the control and .net framework?
2.0 or 3.5?

Thanks
Andre
Posted: Friday, November 06, 2009 5:52:08 AM
Rank: Newbie
Groups: Member

Joined: 7/29/2009
Posts: 6
Points: 18
Location: Germany
Are you sure prototype-1.6.0.3.js is included?
Else I get the same error like you discribe ...

<script type='text/javascript' language='JavaScript' src="prototype-1.6.0.3.js"></script>
trooper
Posted: Friday, November 06, 2009 6:37:16 AM
Rank: Administration
Groups: Administration

Joined: 11/18/2007
Posts: 74
Points: 134
Hi,
If your application is public then you can use the google
http://code.google.com/intl/en/apis/ajaxlibs/documentation/index.html#prototype
content distribution network

instead of
<script type='text/javascript' language='JavaScript' src="prototype-1.6.0.3.js"></script>
use
<script src="http://ajax.googleapis.com/ajax/libs/prototype/1.6.0.3/prototype.js" language="javascript" type="text/javascript"></script>

Thanks
Mikhail
Users browsing this topic
Guest


Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Main Forum RSS : RSS

Powered by Yet Another Forum.net version 1.9.1.8 (NET v2.0) - 3/29/2008
Copyright © 2003-2008 Yet Another Forum.net. All rights reserved.
This page was generated in 0.078 seconds.