Diff for /rat/client/Attic/extpickcode.html between versions 1.3 and 1.7

version 1.3, 2002/09/13 19:05:10 version 1.7, 2010/02/04 11:37:29
Line 29  Pick External Resources Line 29  Pick External Resources
 // http://www.lon-capa.org/  // http://www.lon-capa.org/
 //  //
 -->  -->
   <head>
     <script type="text/javascript">
   function initfields () {
       if ( parent.opener.document.forms.extimport.title.value != '') {
           document.forms.pick.exttitle.value =
               parent.opener.document.forms.extimport.title.value;
           document.forms.pick.exturl.value =
               parent.opener.document.forms.extimport.url.value;
       
       }
   }
   
 <body bgcolor="#FFFFBB">    </script>
 <form>  </head>
   <body bgcolor="#F8F8F8" onload="javascript:initfields()">
   <form name="pick" action="">
 <table>  <table>
 <tr><td bgcolor="#FFFF99">  <tr>
 <input type="button" name="cancel" value="Choose"  
 onClick="javascript:parent.opener.document.forms.extimport.title.value=this.form.exttitle.value;parent.opener.document.forms.extimport.url.value=this.form.exturl.value;parent.opener.finishpick();parent.close();" /></td>  
 <td>Title:</td>  <td>Title:</td>
 <td><input type="text" size="60" name="exttitle" value="External Resource" />  <td><input type="text" size="60" name="exttitle" value="External Resource" />
 </td></tr>  </td></tr>
   
 <tr>  <tr>
 <td bgcolor="#FFFF99">  <td>URL:</td>
 <input type="button" name="cancel" value="Cancel"  <td><input type="text" size="60" name="exturl" value="http://" />
 onClick="parent.close();"/></td>  <input type="button" name="view" value="Preview" onclick="javascript:parent.extcontent.location.href=this.form.exturl.value;" />
 <td>URL: <input type="button" name="view" value="View"  
 onClick="javascript:parent.extcontent.location.href=this.form.exturl.value;" />  
 </td>  
 <td><input type="text" size="60" name="exturl"  
 value="http://" />  
 </td></tr>  </td></tr>
   
   <tr>
   <td>
   <input type="button" name="cancel" value="Cancel" onclick="parent.close();" />
   </td>
   <td>
   <input type="button" name="cancel" value="Choose"
   onclick="javascript:parent.opener.document.forms.extimport.title.value=escape(this.form.exttitle.value);parent.opener.document.forms.extimport.url.value=escape(this.form.exturl.value);parent.opener.finishpick();parent.close();" />
   </td>
   </tr>
 </table>  </table>
 </form>  </form>
 </body>  </body>

Removed from v.1.3  
changed lines
  Added in v.1.7


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>