传参数调用javacript?? 举个例子是这样么?
<script language="javascript" src="js.asp?id=www"></script>js.asp is an ASP file which outputs javascript content, likevar id = "<%=Request.QueryString("id")%>";
document.write(id);

解决方案 »

  1.   

    就如同:<?xml:namespace prefix="soo" ?><style>
    soo\:editor {behavior: url(soeditor.htc);}
    </style>
    </HEAD>
    <BODY><form name="documentation" action="hello.asp" method="post"><textarea name="soeditor"  style="display: none;"  value="中国">中国+hello+中国</textarea>
        <soo:editor   field="soeditor" form="documentation" id="soEditor"  height="250px" width="100%" singlespaced="false" wordcount="true"  /></form><soo:editor 。。一样结果
      

  2.   

    this is a tag, not javascript
      

  3.   

    其实呀,上面的soeditor.htc包含了若干的 javascript。如:<public:property name="DocumentHTML" put="setHTML" />      
      <public:attach event="oncontentready" onevent="init()"/><script language= "JScript">function setHTML(sVal) {      soEditor.editor.DocumentHTML = sVal+"文本变量测试1";      } // Initialize the editor by adding the DHTML Edit Component and Table object to the document and loading the control arraysfunction init(){
        
      var tempHTML = 略
    soEditor.innerHTML = tempHTML+"变量测试2";         soEditor.editor = window.document.all.soeditorbox;
      soEditor.form = eval("window.document." + soEditor.form);  
      // load the html to be edited
      //var elHidden = eval("this.form." + soEditor.Field);
      soEditor.DocumentHTML = this.form.soeditor.value;}
    </script>
      

  4.   

    噢,那请您你看看<soo:editor   field="soeditor" form="documentation" id="soEditor"  height="250px" width="100%" singlespaced="false" wordcount="true"  />
    到底做什么用呀?
      

  5.   

    这只不过是个与HTC对应的tag,其中的属性(attributes)是传到HTC内部的properties去的,这个tag的显示是由HTC中的innerHTML决定的
      

  6.   

    谢谢,可我<soo: 这家伙做什么,我还是不明白。您是说后面跟的field="soeditor" form="documentation" id="soEditor"  height="250px" width="100%" singlespaced="false" wordcount="true"  是属性传递。那通常我们怎么使用呢? 这里用xml指定什么前缀的东东,然后引用,是这样吗?
      

  7.   


    你的HTC中没有定义singlespaced,wordcount
    顶多只能叫字符串传递。。
      

  8.   

    <html>
    <body>
      <form name = 'huo'>
         <input type=text onblur="kk(this)" value='jdfkdfd'>
      </from>
    </body>
    </html>
    <script language = javascript>
      function kk(aa)
      {
         alert(aa.text)  
       }
    </script>