Need to load a SVG into my page.

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1

    Need to load a SVG into my page.

    Hi There,

    This is my second post regarding the issue. Somebody pls advise me how to load an SVG content into page using ext.Net.

    I have tried with Iframe but this has some issues as the data comes from different Domain. Also need to do some functionality like zoom in and zoom out opertaions on this lsvg image.


    Thanks in Advance
  2. #2
    Hi,

    Not sure why you need Ext.Net to load SVG.

    Well, to place SVG to an <ext.Container>, please use <Content>.

    Example
    <%@ Page Language="C#" %>
    
    <%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
    
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head runat="server">
        <title>Ext.Net Example</title>
    </head>
    <body>
        <form runat="server">
            <ext:ResourceManager runat="server" />
            <ext:Container runat="server">
                <Content>
                    <svg width="100%" height="100%" version="1.1"
                        xmlns="http://www.w3.org/2000/svg">
    
                        <rect width="300" height="100"
                        style="fill:rgb(0,0,255);stroke-width:1;
                        stroke:rgb(0,0,0)"/>
    
                    </svg>
                </Content>
            </ext:Container>
        </form>
    </body>
    </html>
  3. #3
    How can I add this SVG dynamically?
  4. #4
  5. #5
    Thanks for the reply. But my SVG is an AjaxRequest's response.. So can I use autoload?
  6. #6
    You can use auto load during DirectEvent/DirectMethod with success.

Similar Threads

  1. Load Ext:Gridpanel Conditionally on Page Load
    By kabirnig2405 in forum 1.x Help
    Replies: 0
    Last Post: Sep 02, 2011, 9:09 AM
  2. [CLOSED] Stop treepanel to load data on page load
    By inayath in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Feb 11, 2011, 10:17 AM
  3. How to get params when page load
    By huynd in forum 1.x Help
    Replies: 2
    Last Post: Aug 26, 2010, 8:56 AM
  4. how to load data to grid panel in page load
    By andylaiyongsing in forum 1.x Help
    Replies: 1
    Last Post: Apr 16, 2010, 10:27 AM
  5. Replies: 3
    Last Post: Feb 03, 2010, 10:11 AM

Posting Permissions