Atalasoft
Welcome to Atalasoft Community Sign in | Join | Help
in

Embed WebThumbnailViewerm in a container

Last post 07 May 2008, 10:49 AM by DMann. 12 replies.
Sort Posts: Previous Next
  •  25 Feb 2007, 10:06 PM 11536

    Embed WebThumbnailViewerm in a container

    Hi,
     

    When I try to put a WebThumbnailViewer into another container, say a multiview control, I get the following error :

    Atalasoft DotImage Error: atalaGetFormValue: WebThumbnailViewer1_bgc was not found.
    Exception: 

     However, when I pull the control out of the multiview, it works properly...

    Is there any way to use the viewer embedded in a control and avoid these errors ?


     Thanks,
     

    Guillaume
     

    Filed under:
  •  26 Feb 2007, 10:51 AM 11538 in reply to 11536

    Re: Embed WebThumbnailViewerm in a container

    In DotImage 4.0 and earlier, the JavaScript portion of the WebImageViewer (and other Atalasoft WebControls) expects to be rendered to the client even if it's not visible (this is so that you can maintain state and still access properties, etc from client side JavaScript).  So any controls that attempt to hide the control completely, and cause it not to render at all, will cause an error similar to this.

    In DotImage 5.0, we allowed for the supression of this error, and assumed that if you are attempting to hide the control completely by not rendering it, you do not intend to access any client side code for the Atalasoft WebControls.


    David Cilley
    My AJAX Imaging Blog
    Atalasoft Development Team
  •  10 May 2007, 10:44 PM 11995 in reply to 11538

    Re: Embed WebThumbnailViewerm in a container

    Can you explain this with some example again?

    I created custom control(ascx) page with webThumbnailViewer and WebImageViewer.
    I cannot figure it out how to control the functions on ascx from aspx via Javascript.
    in the example, I like to call OpenURL to display new image file from aspx parent page.

    How can I do that? can you show me the javascript example?

    Thank you,


    Young
    Founder of Medical and Web application companies
    Focus on mulitimedia processing
    FairFax, Virginia, USA
  •  11 May 2007, 9:23 AM 11999 in reply to 11995

    Re: Embed WebThumbnailViewerm in a container

    Do you mean that you are using a WebUserControl, and that you can't find the name of the WebImageViewer?

    WebUserControls will change the name of WebImageViewer1 to something like WebUserControl1_WebImageViewer1.

    We've made it a little easier to do this kind of thing in 5.0b (which will be released early next week)


    David Cilley
    My AJAX Imaging Blog
    Atalasoft Development Team
  •  11 May 2007, 9:36 AM 12001 in reply to 11999

    Re: Embed WebThumbnailViewerm in a container

    That's just one thing. what you meant that as long as I can match the id of the viewer when I embed on aspx, I have a control to use all the public functions by javascript on parent page?

    I still prefer to have a sample code since I just started to digestive Atala SDK if you don't mind.
    Thanks,

     


    Young
    Founder of Medical and Web application companies
    Focus on mulitimedia processing
    FairFax, Virginia, USA
  •  11 May 2007, 5:08 PM 12008 in reply to 12001

    Re: Embed WebThumbnailViewerm in a container

    If you have a RemoteInvokable method in the WebUserControl called Process_Region, you can call it from the parent page like this:

    [Atalasoft.Imaging.WebControls.RemoteInvokable]
    public void Process_Region(string selectedValue)
    {
        this.WebUserControl1.Process_Region(selectedValue);
    }

    For sample code on how to use JavaScript with this type of RemoteInvokable method, please look at the ASP.NET demo source code installed when you install the SDK.


    David Cilley
    My AJAX Imaging Blog
    Atalasoft Development Team
  •  15 May 2007, 10:23 PM 12033 in reply to 12008

    Re: Embed WebThumbnailViewerm in a container

    Please validate whether I correctly understand or not.

    1. Design a RemoteInvokable method in the WebUserControl called Process_RegionControl

    [Atalasoft.Imaging.WebControls.RemoteInvokable]
    public void PR_Control(string selectedValue)
    {
        ProcessRegion_Herel(selectedValue);
    }

    2. Design parent page with

    [Atalasoft.Imaging.WebControls.RemoteInvokable]
    public void Process_Region(string selectedValue)
    {
        this.WebUserControl1.PR_Control(selectedValue);
    }

    3. design javascript on parent page to call Process_Region(string selectedValue)
    function on parent page.
    <script >
    function call_PR(select){

     aspx.Process_Region(select);

    }
    </script>

    Please varify this and let me know whether this is ring or wrong.

    Thanks,


    Young
    Founder of Medical and Web application companies
    Focus on mulitimedia processing
    FairFax, Virginia, USA
  •  16 May 2007, 9:41 AM 12039 in reply to 12033

    Re: Embed WebThumbnailViewerm in a container

    This is incorrect.  The parent page step that you took (step 2) can be left out if you are using the leatest version (5.0b).

    Step 3 needs something like this:

    function call_PR(select){
       var a = new Array();
       a.push(select);

       WebImageViewer1.RemoteInvoke('PR_Control', a);
    }


    David Cilley
    My AJAX Imaging Blog
    Atalasoft Development Team
  •  04 Mar 2008, 2:14 PM 13410 in reply to 12039

    Re: Embed WebThumbnailViewerm in a container

    I am running into a problem just like this in that we keep getting "Atalasoft DotImage Error: atalaGetFormValue: WebThumbnailViewer_ManyDifferentValuesHere (and WebAnnotationViewer) was not found. Exception" errors.

    Everything worked well when I mocked up the DotImageWebFormsCS.WebFormsDemoAnnotations sample. But when I tried to implement the mockup into our ExtJS template, the errors started happening. Has there been any testing as to whether or not Atalasoft Web/AJAX works in ExtJS? I have a feeling I am running into a problem with the fact that Atalasoft is trying to wire up stuff onLoad but ExtJS hasn't finished the page yet.

  •  11 Mar 2008, 10:01 AM 13455 in reply to 13410

    Re: Embed WebThumbnailViewerm in a container

    When many "Atalasoft DotImage Error: atalaGetFormValue: WebThumbnailViewer_..." errors occur, it's usually a case of either the control's ID changing from Page.Init to Page.Render, or that the control has only partially rendered because of a container control setting WebThumbnailViewer.Visible = false before Page.Render

    Beyond that, I have no experience with ExtJS.  What exactly does this do to the page?  How does it change the Page/Control LifeCycle?


    David Cilley
    My AJAX Imaging Blog
    Atalasoft Development Team
  •  21 Apr 2008, 3:45 PM 13723 in reply to 13455

    Re: Embed WebThumbnailViewerm in a container

    Yea what was happening was that I was using <IFrame></IFrame> tags and ExtJS sort of threw that tag outside of the form/DOM causing those errors when the Atalasoft init code was called. In essence, I was 'cheating' when it came to ExtJS's eyes. The proper way is to contruct an Ext.DomHelper, append an IFram tag to it, then add that to whatever ExtJS element you want it attached to (i.e. an Ext.Panel's contentEl).

    Might sound gibberishy to some, but if others run into this problem, lemme know and I can pop some code up here.

    Thanks David that helped us find the problem believe it or not.

  •  22 Apr 2008, 10:40 AM 13732 in reply to 13723

    Re: Embed WebThumbnailViewerm in a container

    Glad I could help.

    I found it odd that ExtJS would allow the user to shoot themselves in the foot without a warning/error of any kind

    For anyone else that may be using ExtJS with our controls, could you describe the incorrect syntax for us?


    David Cilley
    My AJAX Imaging Blog
    Atalasoft Development Team
  •  07 May 2008, 10:49 AM 13926 in reply to 13732

    Re: Embed WebThumbnailViewerm in a container

    We're evaluating the possiblity of using ExtJS, too, and we've run afoul of the myriad atalaGetFormValue errors.  We're not loading the ThumbnailViewer/AnnotationViewer in an IFrame, though, so I'm at a complete loss as to how to get the ExtJS framework to properly connect the viewer.  The thumbnail viewer and the image viewer both reside inside div tags that are then attached to ExtJS.

    Jaypompano, could you be more specific in how you used the DomHelper to attach your viewer page? That would be really useful in troubleshooting this issue.

     David, if you have any further advice on how to suppress those errors, that would also be useful.

     Thanks!

    --David
     

View as RSS news feed in XML