ConvincingMail - Email Marketing SoftwareConvincingMail
 
Email Marketing Software

Welcome Guest! To enable all features please try to register or login.
'Form' is not defined using AdvancedAutoSuggest control
nessy00
#1 Posted : Monday, September 28, 2009 8:56:57 PM(UTC)
Rank: Newbie

Groups: Member
Joined: 9/28/2009(UTC)
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
#2 Posted : Monday, September 28, 2009 9:56:33 PM(UTC)
Rank: Administration

Groups: Administration
Joined: 11/18/2007(UTC)
Posts: 92
Points: 188
Man

Was thanked: 2 time(s) in 2 post(s)
Hi,
Can you post the link where I can see this error?


Thanks
Mikhail
nessy00
#3 Posted : Monday, September 28, 2009 10:19:39 PM(UTC)
Rank: Newbie

Groups: Member
Joined: 9/28/2009(UTC)
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
#4 Posted : Monday, September 28, 2009 11:20:47 PM(UTC)
Rank: Administration

Groups: Administration
Joined: 11/18/2007(UTC)
Posts: 92
Points: 188
Man

Was thanked: 2 time(s) in 2 post(s)
Does the error happen on demo page
http://www.convincingmai...ggest-autocomplete.aspx

Which browser do you use?

Thanks
Mikhail
nessy00
#5 Posted : Tuesday, September 29, 2009 1:02:06 AM(UTC)
Rank: Newbie

Groups: Member
Joined: 9/28/2009(UTC)
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
#6 Posted : Tuesday, September 29, 2009 1:16:02 AM(UTC)
Rank: Administration

Groups: Administration
Joined: 11/18/2007(UTC)
Posts: 92
Points: 188
Man

Was thanked: 2 time(s) in 2 post(s)
Are you using the correct verrsion of the control and .net framework?
2.0 or 3.5?

Thanks
Andre
#7 Posted : Friday, November 06, 2009 12:52:08 AM(UTC)
Rank: Newbie

Groups: Member
Joined: 7/29/2009(UTC)
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
#8 Posted : Friday, November 06, 2009 1:37:16 AM(UTC)
Rank: Administration

Groups: Administration
Joined: 11/18/2007(UTC)
Posts: 92
Points: 188
Man

Was thanked: 2 time(s) in 2 post(s)
Hi,
If your application is public then you can use the google
http://code.google.com/i...on/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
Rss Feed  Atom Feed
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.

YAFVision Theme by Jaben Cargman (Tiny Gecko)
Powered by YAF 1.9.5 RC1 | YAF © 2003-2010, Yet Another Forum.NET
This page was generated in 0.095 seconds.