ConvincingMail - Email Marketing SoftwareConvincingMail
 
Email Marketing Software

Welcome Guest! To enable all features please try to register or login.
AutoComplete show in Local PC and not work in web server
billyhui
#1 Posted : Saturday, June 20, 2009 4:54:16 AM(UTC)
Rank: Newbie

Groups: Member
Joined: 6/20/2009(UTC)
Posts: 3
Points: 9
Location: HK

Hi,

I have developed a auto suggest using .net 3.5 version. The autosuggest box work fine in my local PC. But it does not work when I deploy to web server.

Then, I have tried to received the JSON message by textbox from the asmx in the web server and the message looks fine:

{"Header":{"Contents":"Please select your symbol."},"Items":[{"Id":"0005.HK","Title":"\u003cspan class=\"hilighted\"\u003e0\u003c/span\u003e005.HK","Description":"HSBC HOLDINGS","TitleValue":"0005.HK"},{"Id":"0941.HK","Title":"\u003cspan class=\"hilighted\"\u003e0\u003c/span\u003e941.HK","Description":"CHINA MOBILE","TitleValue":"0941.HK"},{"Id":"0386.HK","Title":"\u003cspan class=\"hilighted\"\u003e0\u003c/span\u003e386.HK","Description":"SINOPEC CORP","TitleValue":"0386.HK"},{"Id":"000001.SS","Title":"\u003cspan class=\"hilighted\"\u003e0\u003c/span\u003e00001.SS","Description":"SSE Composite Index","TitleValue":"000001.SS"},{"Id":"0939.HK","Title":"\u003cspan class=\"hilighted\"\u003e0\u003c/span\u003e939.HK","Description":"CCB","TitleValue":"0939.HK"},{"Id":"0656.HK","Title":"\u003cspan class=\"hilighted\"\u003e0\u003c/span\u003e656.HK","Description":"FOSUN INTL","TitleValue":"0656.HK"},{"Id":"010060.KS","Title":"\u003cspan class=\"hilighted\"\u003e0\u003c/span\u003e10060.KS","Description":"OCI","TitleValue":"010060.KS"},{"Id":"0390.HK","Title":"\u003cspan class=\"hilighted\"\u003e0\u003c/span\u003e390.HK","Description":"CHINA RAILWAY","TitleValue":"0390.HK"},{"Id":"000002.SS","Title":"\u003cspan class=\"hilighted\"\u003e0\u003c/span\u003e00002.SS","Description":"A-Share Index","TitleValue":"000002.SS"},{"Id":"0TV.N","Title":"\u003cspan class=\"hilighted\"\u003e0\u003c/span\u003eTV.N","Description":"Volume in 000\u0027s","TitleValue":"0TV.N"}],"Footer":{"Contents":"Yahoo Stock Quote Symbol is used."}}

However when I connect this webserver with the AutoSuggest:
<cc1:AdvancedAutoSuggestExtender TargetControlID="CityTextBox" ServiceUrl="~/Suggestions.asmx/SymbolSuggest" UpdateField="CityIdTextBox" ID="CityAASE" runat="server" />

The debug console message:
ShowSuggestions Call
textbox:[object]
textbox.value:1
doing service request:tryValue=1&additionalParams=StateIdTextBox|&additionalParams=CountyIdTextBox|
ShowSuggestions Call
textbox:[object]
textbox.value:11
doing service request:tryValue=11&additionalParams=StateIdTextBox|&additionalParams=CountyIdTextBox|

May you please help to see if any issue with the auto suggest?
I have also double checked that the webserver is running the same asp.net framework as my local PC.

Thanks very much,
Billy

billyhui
#2 Posted : Saturday, June 20, 2009 5:31:22 AM(UTC)
Rank: Newbie

Groups: Member
Joined: 6/20/2009(UTC)
Posts: 3
Points: 9
Location: HK

Hi,

I found the solution in the top "sticky" by adding this in web.config.
Although I am not sure why it can be resolved:

<webServices>
<protocols>
<add name="HttpSoap"/>
<add name="HttpPost"/>
<add name="HttpGet"/>
<add name="Documentation"/>
<add name="HttpPostLocalhost"/>
</protocols>
</webServices>

Thanks very much. The autoSuggest extender is the best autosuggest I found in Google!! keep going!
trooper
#3 Posted : Sunday, June 21, 2009 7:26:42 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 Billy
Thank you for using our control.

This happens because the WebServices Get and Post access is disabled by default for remote hosts but allowed for localhost.
So the control works when you access it on your local machine but on remote it fails.
here is the MS article about it:
http://support.microsoft.com/kb/819267

Thanks
Mikhail
trooper
#4 Posted : Sunday, June 21, 2009 8:13:40 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)
Just as a quick solution for IE6 just put this:
<div style="display: none; position: absolute; overflow: scroll; height:400px;" id="suggestionsDiv"></div>
right after the <body> tag

It should work in IE6 after that

I'll release the fixed versrion of the control next week.

Thanks
Mikhail
billyhui
#5 Posted : Sunday, June 21, 2009 8:35:27 AM(UTC)
Rank: Newbie

Groups: Member
Joined: 6/20/2009(UTC)
Posts: 3
Points: 9
Location: HK

Hi Mikhail,

Thanks for this solution, you are really helpful.

Besides, I found that in IE8, CSS suggestionsHilightedTr is
not rendered and thus there are no effect on highlighted under hover/mouseover effect.

Everything else, IE 5,6,7,8 are working fine.
I look forward for new version and it's great work I need to re-emphazise.

Many thanks,
Billy
trooper
#6 Posted : Sunday, June 21, 2009 4:32:02 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)
just for your info
the bug with IE8 (it doesn't highlight the item when mouse hovers it).
I did some research and found that it is prototypejs bug described here:
https://prototype.lighth...nt-add-classname-in-ie8

as I understood it is resolved in prototypejs 1.6.1.RC1. But anyway I'll release the hot fix for the autosuggest control this week.

Thanks
Mikhail
trooper
#7 Posted : Monday, June 22, 2009 3:52:14 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 Billy,
I've released a new version v X.X.2.4 of the control.
Fixed an issue with IE8 and other minor changes.
there are no changes in server code so you don't need to change your code.
Just replace the dll and it should work fine.

You can get it here:
http://www.convincingmail.com/Download.aspx

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.091 seconds.