This forum contains outdated content and is available for reading only. Please contact technical support if you have any questions.

AJAX compatability?

Our application utilizes AJAX for our connectivity to the back end. All of our pages except the image editor use this functionality.
Is there a way to do this on your components currently? If not, do you plan on adding this functionality soon?

-Jason
Hello Jason,

jcavaliere (11/1/2005)
Our application utilizes AJAX for our connectivity to the back end. All of our pages except the image editor use this functionality.
Is there a way to do this on your components currently? If not, do you plan on adding this functionality soon?


Graphics Mill supports rich client side object model as well as custome AJAX-like implementation of remote methods calling. You can check Cropping Photos Using Client-Side Scripting topic for samples. It is possible that in future we will use common AJAX approach for improving user interface interactivity.
I keep gettign a timeout exception on the remote scripting calls - we're using 2.0 framework. Any ideas?



<%@ Page Language="C#" AutoEventWireup="true" CodeFile="editFileClientSide.aspx.cs" Inherits="editFileClientSide" MasterPageFile="~/MasterPages/adminTemplate.master" %>
<%@ Register TagPrefix="cc1" Namespace="Aurigma.GraphicsMill.WebControls" Assembly="Aurigma.GraphicsMill.WebControls" %>

<asp:Content ContentPlaceHolderID="mainContent" runat="server">
    <div>
		<cc1:bitmapviewer id="BitmapViewer1" runat="server" ScrollBarsStyle="Auto" ZoomQuality="Medium" Height="345px" width="460px"></cc1:bitmapviewer>
		    
		<cc1:pannavigator id="PanNavigator1" runat="server"></cc1:pannavigator>
		<cc1:zoominnavigator id="ZoomInNavigator1" runat="server"></cc1:zoominnavigator>
		<cc1:zoomoutnavigator id="ZoomOutNavigator1" runat="server"></cc1:zoomoutnavigator>
		<cc1:zoomrectanglenavigator id="ZoomRectangleNavigator1" runat="server"></cc1:zoomrectanglenavigator>
		<cc1:rectanglerubberband id="RectangleRubberband1"  runat="server" GripsVisible="True"></cc1:rectanglerubberband>
			<a href="#" onclick="AddTransform_click();">Add Transform</a>
    </div>
    
    
    <script>
	var bitmapViewer1 = document.getElementById("<%=BitmapViewer1.ClientID%>"); 
		
    function AddTransform_click()
    {   
		bitmapViewer1.invokeRemoteMethod("AddTransform",null);
		bitmapViewer1.addStatusChanged(bitmapViewer1_addStatusChanged,this);

	}
	
	function bitmapViewer1_addStatusChanged()
	{   		
		alert(bitmapViewer1.getExceptionName());
		bitmapViewer1.removeStatusChanged(bitmapViewer1_addStatusChanged, this);    
		bitmapViewer1.refresh()
	}


    </script>

</asp:Content>

Here's the back end:


using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using Aurigma.GraphicsMill;
using Aurigma.GraphicsMill.Transforms;
using System.ComponentModel;

public partial class editFileClientSide : System.Web.UI.Page
{
	protected void Page_Load(object sender, EventArgs e)
	{
		if (!Page.IsPostBack)
		{
			BitmapViewer1.Bitmap.Load("c:\\filepicker.jpg");
		}
	}

	[Aurigma.GraphicsMill.WebControls.RemoteScriptingMethod]
	public void AddTransform()
	{
		BitmapViewer1.Bitmap.Transforms.Mosaic(10, 10);
	}



}

I turned on the debug frame and here's what I get:


System.MissingMethodException

Attempted to access a missing method.
ok, I just figured it out - it's failing becuase of the master page that we're using. I removed the master page and it worked fine. How can I use the master page? I woudl really like to be able to.


-Jason