ConvincingMail - Email Marketing SoftwareConvincingMail
 
Email Marketing Software

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

AutoComplete show in Local PC and not work in web server Options · View
billyhui
Posted: Saturday, June 20, 2009 9:54:16 AM
Rank: Newbie
Groups: Member

Joined: 6/20/2009
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
Posted: Saturday, June 20, 2009 10:31:22 AM
Rank: Newbie
Groups: Member

Joined: 6/20/2009
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
Posted: Sunday, June 21, 2009 12:26:42 PM
Rank: Administration
Groups: Administration

Joined: 11/18/2007
Posts: 73
Points: 131
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
Posted: Sunday, June 21, 2009 1:13:40 PM
Rank: Administration
Groups: Administration

Joined: 11/18/2007
Posts: 73
Points: 131
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
Posted: Sunday, June 21, 2009 1:35:27 PM
Rank: Newbie
Groups: Member

Joined: 6/20/2009
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
Posted: Sunday, June 21, 2009 9:32:02 PM
Rank: Administration
Groups: Administration

Joined: 11/18/2007
Posts: 73
Points: 131
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.lighthouseapp.com/projects/8886/tickets/529-element-constructor-doesnt-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
Posted: Monday, June 22, 2009 8:52:14 AM
Rank: Administration
Groups: Administration

Joined: 11/18/2007
Posts: 73
Points: 131
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
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.080 seconds.