新书推介:《语义网技术体系》
作者:瞿裕忠,胡伟,程龚
   XML论坛     W3CHINA.ORG讨论区     计算机科学论坛     SOAChina论坛     Blog     开放翻译计划     新浪微博  
 
  • 首页
  • 登录
  • 注册
  • 软件下载
  • 资料下载
  • 核心成员
  • 帮助
  •   Add to Google

    >> 本版讨论SVG, GML, X3D, VRML, VML, XAML, AVALON, Batik等基于XML的图形技术,以及有关GIS的应用。
    [返回] 中文XML论坛 - 专业的XML技术讨论区XML.ORG.CN讨论区 - 高级XML应用『 SVG/GML/VRML/X3D/XAML 』 → [求助] svg & asp.net 查看新帖用户列表

      发表一个新主题  发表一个新投票  回复主题  (订阅本版) 您是本帖的第 12859 个阅读者浏览上一篇主题  刷新本主题   树形显示贴子 浏览下一篇主题
     * 贴子主题: [求助] svg & asp.net 举报  打印  推荐  IE收藏夹 
       本主题类别:     
     achio 帅哥哟,离线,有人找我吗?
      
      
      等级:大一新生
      文章:4
      积分:76
      门派:XML.ORG.CN
      注册:2006/6/20

    姓名:(无权查看)
    城市:(无权查看)
    院校:(无权查看)
    给achio发送一个短消息 把achio加入好友 查看achio的个人资料 搜索achio在『 SVG/GML/VRML/X3D/XAML 』的所有贴子 引用回复这个贴子 回复这个贴子 查看achio的博客楼主
    发贴心情 [求助] svg & asp.net

    Hi.....
    i'm facing problem with printNode() and postURL in svg.
    this is what i have done in my application.

    function saveImage()
    {
           var imageString=printNode(myImage); //myImage is the shape i draw dynamically
           //alert(imageString);
           postURL("webForm1.aspx",imageString,null);
    }

    what should i do in "webForm1.aspx" to get the value i sent?
    how can i get the value of imageString in asp.net?

    hope anyone that know the solution give me some coding example.....

    thanks......


       收藏   分享  
    顶(0)
      




    点击查看用户来源及管理<br>发贴IP:*.*.*.* 2006/6/21 14:25:00
     
     tamefox 美女呀,离线,快来找我吧!魔羯座1980-1-1
      
      
      威望:1
      等级:大四(每天看1小时莱昂氏)
      文章:129
      积分:1236
      门派:XML.ORG.CN
      注册:2005/7/6

    姓名:(无权查看)
    城市:(无权查看)
    院校:(无权查看)
    给tamefox发送一个短消息 把tamefox加入好友 查看tamefox的个人资料 搜索tamefox在『 SVG/GML/VRML/X3D/XAML 』的所有贴子 引用回复这个贴子 回复这个贴子 查看tamefox的博客2
    发贴心情 
    postURL() is an function that send data to a given location. It is useful for saving the results of dynamic SVGs that have been updated based on user input/interaction or timed data feeds.

    Examples include an SVG image that has been modified by a user, who wants to save the end product.

    from Adobe, is as follows:

    postURL( url, text, callback, type, enc )
    url :URL to post data; for security reasons, must be on the same server as SVG document  
    text:ata to post  
    callback: function which processes reply status and the returned contents of the file from url  
    type:optional media type of the posted data (such as "text/plain"). Not all browsers support that.  
    enc :optional encoding for data null, 'gzip' and 'deflate' are possible values. If browser does not support binary post this parameter is ignored.  

    postURL() is a non-standard extension available only with the AdobeSVGViewer.


    --------------------------------------------------------------------------------

    From the Adobe SVG Forums:

    Method postURL
    Synopsis:

    void postURL(string url, string data, viewer::AsyncStatusCallback cb, string mimeType, string contentEncoding)
    Post data to the given URL (that should come from the same domain). Notify the callback when done. One can also specify MIME type to be reported to server and encoding to be used (valid values are null, "gzip" and "deflate", some browsers cannot post binary data and will ignore encoding). Callback will get passed an object of type viewer::AsyncURLStatus when post operation completes. Reply is assumed to be either ASCII or Unicode text (in UTF-8 or UTF-16 encodings), possibly compressed with gzip or deflate. Callback will get decoded, uncompressed text as a string.

    For security reasons, it is possible to post only to the server that SVG document came from.


    the above maybe useful to you ~

    Beware that ASV considers the http://localhost and http://127.0.0.1 in a loopback as different server and will throw security violation error

    ----------------------------------------------
    无为而无所不为
    有为而有所不为

    点击查看用户来源及管理<br>发贴IP:*.*.*.* 2006/6/22 8:36:00
     
     achio 帅哥哟,离线,有人找我吗?
      
      
      等级:大一新生
      文章:4
      积分:76
      门派:XML.ORG.CN
      注册:2006/6/20

    姓名:(无权查看)
    城市:(无权查看)
    院校:(无权查看)
    给achio发送一个短消息 把achio加入好友 查看achio的个人资料 搜索achio在『 SVG/GML/VRML/X3D/XAML 』的所有贴子 引用回复这个贴子 回复这个贴子 查看achio的博客3
    发贴心情 
    thanks for your reply....
    But, my problem is on the server side, that is on asp.net web form...

    I know how to post the data to server(asp.net), but in asp.net, how can i get the data i sent? Do you have any idea? Can you give me some codes example? I'm using C# in the server side.

    Thanks again for your kindly reply.......

    点击查看用户来源及管理<br>发贴IP:*.*.*.* 2006/6/22 10:00:00
     
     achio 帅哥哟,离线,有人找我吗?
      
      
      等级:大一新生
      文章:4
      积分:76
      门派:XML.ORG.CN
      注册:2006/6/20

    姓名:(无权查看)
    城市:(无权查看)
    院校:(无权查看)
    给achio发送一个短消息 把achio加入好友 查看achio的个人资料 搜索achio在『 SVG/GML/VRML/X3D/XAML 』的所有贴子 引用回复这个贴子 回复这个贴子 查看achio的博客4
    发贴心情 
    I have found the solution I searched for.
    Here is the sample code in C# that need to be placed on server side to process the input stream.

    XmlDocument xml = new XmlDocument();
    xml.Load(Request.InputStream);
    xml.Save("C:\\file1.xml");

    点击查看用户来源及管理<br>发贴IP:*.*.*.* 2006/6/23 14:10:00
     
     vagerent 帅哥哟,离线,有人找我吗?
      
      
      等级:大一(高数修炼中)
      文章:19
      积分:145
      门派:XML.ORG.CN
      注册:2006/6/5

    姓名:(无权查看)
    城市:(无权查看)
    院校:(无权查看)
    给vagerent发送一个短消息 把vagerent加入好友 查看vagerent的个人资料 搜索vagerent在『 SVG/GML/VRML/X3D/XAML 』的所有贴子 引用回复这个贴子 回复这个贴子 查看vagerent的博客5
    发贴心情 
    yeah,it is a good way,but i think U also can use this way:
    "webform.aspx?param=printtoStr"
    点击查看用户来源及管理<br>发贴IP:*.*.*.* 2006/7/25 8:15:00
     
     achio 帅哥哟,离线,有人找我吗?
      
      
      等级:大一新生
      文章:4
      积分:76
      门派:XML.ORG.CN
      注册:2006/6/20

    姓名:(无权查看)
    城市:(无权查看)
    院校:(无权查看)
    给achio发送一个短消息 把achio加入好友 查看achio的个人资料 搜索achio在『 SVG/GML/VRML/X3D/XAML 』的所有贴子 引用回复这个贴子 回复这个贴子 查看achio的博客6
    发贴心情 
    thanks for your suggestion, vagerent...
    But is that the code u provide is in the server side (C#.net) ? Or is it the coding in the svg file (client side)?

    u wrote----->"webform.aspx?param=printtoStr"

    "param=printtoStr" means what? Actually, i'm a newbie in svg and asp.net, so could you please explain further about your coding?

    Thanks again.
    Regards,
    achio.

    点击查看用户来源及管理<br>发贴IP:*.*.*.* 2006/7/26 16:24:00
     
     welfred 帅哥哟,离线,有人找我吗?
      
      
      等级:大二期末(数据结构考了98分!)
      文章:49
      积分:391
      门派:XML.ORG.CN
      注册:2005/3/16

    姓名:(无权查看)
    城市:(无权查看)
    院校:(无权查看)
    给welfred发送一个短消息 把welfred加入好友 查看welfred的个人资料 搜索welfred在『 SVG/GML/VRML/X3D/XAML 』的所有贴子 引用回复这个贴子 回复这个贴子 查看welfred的博客7
    发贴心情 
    He means the content of the node(myImage) will be attached with the URL. The data you want to post is just a para of "webform.aspx".  You can use this.request("param") to get the data.
    function saveImage()
    {
           var imageString=printNode(myImage);
           postURL("webForm1.aspx?param="+imageString,null,null,null,null);
    }
    点击查看用户来源及管理<br>发贴IP:*.*.*.* 2006/7/26 16:50:00
     
     GoogleAdSense
      
      
      等级:大一新生
      文章:1
      积分:50
      门派:无门无派
      院校:未填写
      注册:2007-01-01
    给Google AdSense发送一个短消息 把Google AdSense加入好友 查看Google AdSense的个人资料 搜索Google AdSense在『 SVG/GML/VRML/X3D/XAML 』的所有贴子 访问Google AdSense的主页 引用回复这个贴子 回复这个贴子 查看Google AdSense的博客广告
    2024/4/27 18:11:08

    本主题贴数7,分页: [1]

    管理选项修改tag | 锁定 | 解锁 | 提升 | 删除 | 移动 | 固顶 | 总固顶 | 奖励 | 惩罚 | 发布公告
    W3C Contributing Supporter! W 3 C h i n a ( since 2003 ) 旗 下 站 点
    苏ICP备05006046号《全国人大常委会关于维护互联网安全的决定》《计算机信息网络国际联网安全保护管理办法》
    93.750ms