<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: AJAX Script Services on SlxWeb</title>
	<atom:link href="http://blog.nicocrm.com/2009/03/12/ajax-script-services-on-slxweb/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.nicocrm.com/2009/03/12/ajax-script-services-on-slxweb/</link>
	<description>Programming, technology, and CRM - from a Belgian programmer exiled to Missouri</description>
	<lastBuildDate>Tue, 25 May 2010 15:44:53 -0500</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Elizabeth</title>
		<link>http://blog.nicocrm.com/2009/03/12/ajax-script-services-on-slxweb/comment-page-1/#comment-473</link>
		<dc:creator>Elizabeth</dc:creator>
		<pubDate>Wed, 16 Dec 2009 22:03:02 +0000</pubDate>
		<guid isPermaLink="false">http://blog.chivinou.net/2009/03/12/ajax-script-services-on-slxweb/#comment-473</guid>
		<description>Sorry, I didn&#039;t attach you the static code:


    
        
    


And I need this on the &quot;Page_Load&quot; event, because we only have the &quot;Load_Actions&quot; in the CRM pages.

Thank you Nico!!!</description>
		<content:encoded><![CDATA[<p>Sorry, I didn&#8217;t attach you the static code:</p>
<p>And I need this on the &#8220;Page_Load&#8221; event, because we only have the &#8220;Load_Actions&#8221; in the CRM pages.</p>
<p>Thank you Nico!!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Elizabeth</title>
		<link>http://blog.nicocrm.com/2009/03/12/ajax-script-services-on-slxweb/comment-page-1/#comment-472</link>
		<dc:creator>Elizabeth</dc:creator>
		<pubDate>Wed, 16 Dec 2009 21:57:56 +0000</pubDate>
		<guid isPermaLink="false">http://blog.chivinou.net/2009/03/12/ajax-script-services-on-slxweb/#comment-472</guid>
		<description>Thank you so much Nick!!,

I discovered the problem, I declared the service in a static way on the ascx page (custom page) like this:

    
        
    


And I want to declare this on the &quot;Page_Load&quot; event in a dynamic way, like this:
        ScriptManagerProxy service = new ScriptManagerProxy();
        service.ID = &quot;serviceid&quot;;
        ServiceReference item = new ServiceReference();
        item.Path = &quot;~/SmartParts/C_TicketActivityLog/AJAXWebService.asmx&quot;;
        service.Services.Add(item);
        this.Page.Controls.Add(service);

I want to do this because I don&#039;t want to convert my current usercontrols into &quot;custom pages&quot;, but if I do this dynamically it doesn&#039;t work, do you know why?

Thank you so much for your help always!!!

Lyz.</description>
		<content:encoded><![CDATA[<p>Thank you so much Nick!!,</p>
<p>I discovered the problem, I declared the service in a static way on the ascx page (custom page) like this:</p>
<p>And I want to declare this on the &#8220;Page_Load&#8221; event in a dynamic way, like this:<br />
        ScriptManagerProxy service = new ScriptManagerProxy();<br />
        service.ID = &#8220;serviceid&#8221;;<br />
        ServiceReference item = new ServiceReference();<br />
        item.Path = &#8220;~/SmartParts/C_TicketActivityLog/AJAXWebService.asmx&#8221;;<br />
        service.Services.Add(item);<br />
        this.Page.Controls.Add(service);</p>
<p>I want to do this because I don&#8217;t want to convert my current usercontrols into &#8220;custom pages&#8221;, but if I do this dynamically it doesn&#8217;t work, do you know why?</p>
<p>Thank you so much for your help always!!!</p>
<p>Lyz.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nicolas Galler</title>
		<link>http://blog.nicocrm.com/2009/03/12/ajax-script-services-on-slxweb/comment-page-1/#comment-471</link>
		<dc:creator>Nicolas Galler</dc:creator>
		<pubDate>Wed, 16 Dec 2009 03:13:21 +0000</pubDate>
		<guid isPermaLink="false">http://blog.chivinou.net/2009/03/12/ajax-script-services-on-slxweb/#comment-471</guid>
		<description>Hi, Liz,

It can be a little bit touchy about what your web service looks like.  Do make sure you have the ScriptService attribute on your web service class (in the asmx) - the class should look like this:

[WebService(Namespace = &quot;http://sssworld.com/InsertQuickTicketScriptService&quot;)]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
// To allow this Web Service to be called from script, using ASP.NET AJAX, uncomment the following line. 
[System.Web.Script.Services.ScriptService]
public class InsertQuickTicketScriptService : System.Web.Services.WebService

If it still does not work, try debugging with fiddler.  You should see at one point the browser trying to download the script reference.  It will look like Get /SlxClient/SmartParts/QuickTicket/InsertQuickTicketScriptService.asmx/js - watch for any error in that download, they might shed some light.  You can also try downloading it yourself from the browser: http://myserver.com/SlxClient/SmartParts/QuickTicket/MyScriptService.asmx/js - and make sure you get some Javascript back.

Finally, as this Javascript may be cached by the browser, be sure to clear your temporary files while you are debugging.

Hope this helps!</description>
		<content:encoded><![CDATA[<p>Hi, Liz,</p>
<p>It can be a little bit touchy about what your web service looks like.  Do make sure you have the ScriptService attribute on your web service class (in the asmx) &#8211; the class should look like this:</p>
<p>[WebService(Namespace = "http://sssworld.com/InsertQuickTicketScriptService")]<br />
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]<br />
// To allow this Web Service to be called from script, using ASP.NET AJAX, uncomment the following line.<br />
[System.Web.Script.Services.ScriptService]<br />
public class InsertQuickTicketScriptService : System.Web.Services.WebService</p>
<p>If it still does not work, try debugging with fiddler.  You should see at one point the browser trying to download the script reference.  It will look like Get /SlxClient/SmartParts/QuickTicket/InsertQuickTicketScriptService.asmx/js &#8211; watch for any error in that download, they might shed some light.  You can also try downloading it yourself from the browser: <a href="http://myserver.com/SlxClient/SmartParts/QuickTicket/MyScriptService.asmx/js" rel="nofollow">http://myserver.com/SlxClient/SmartParts/QuickTicket/MyScriptService.asmx/js</a> &#8211; and make sure you get some Javascript back.</p>
<p>Finally, as this Javascript may be cached by the browser, be sure to clear your temporary files while you are debugging.</p>
<p>Hope this helps!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Elizabeth</title>
		<link>http://blog.nicocrm.com/2009/03/12/ajax-script-services-on-slxweb/comment-page-1/#comment-470</link>
		<dc:creator>Elizabeth</dc:creator>
		<pubDate>Tue, 15 Dec 2009 21:03:25 +0000</pubDate>
		<guid isPermaLink="false">http://blog.chivinou.net/2009/03/12/ajax-script-services-on-slxweb/#comment-470</guid>
		<description>Hi Nico,

I read the &quot;AJAX Script Services on SlxWeb&quot; article, it is amazing!!!!. But I need to ask you if you can help me because my javascript code is throwing me errors about that my webservice is not being declared. I attached it into the ScriptManager and everything but it doesn&#039;t work.

Could you help me please?

Liz.</description>
		<content:encoded><![CDATA[<p>Hi Nico,</p>
<p>I read the &#8220;AJAX Script Services on SlxWeb&#8221; article, it is amazing!!!!. But I need to ask you if you can help me because my javascript code is throwing me errors about that my webservice is not being declared. I attached it into the ScriptManager and everything but it doesn&#8217;t work.</p>
<p>Could you help me please?</p>
<p>Liz.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
