Insert Scripts ..

Last post 09-28-2006, 1:34 PM by Pete W.. 2 replies.
Sort Posts: Previous Next
  •  09-28-2006, 12:35 PM 23159

    Insert Scripts ..

    Is it possible to write a script command like the following
     
    <script type="text/javascript" src="user/media/audio/ply2.js"></script>
     
    Using the pastHTML function or something alike ?
     
    I've tried to insert the above script within the codes section of the common.config file.
     
    example ..
     
    <item text="Script" value="<script type="text/javascript" src="user/media/audio/ply2.js"></script>
     
    This insert will produce the following error ..
     
    Failed to load the Configure file.
     
    Thx for any suggestions on how to effectively add a basic script using a dropdown menu of the editor
    toolbar.
     
    Thx in advance :)
     
     
    Filed under:
  •  09-28-2006, 1:24 PM 23165 in reply to 23159

    Re: Insert Scripts ..

    Pete,
     
    Please try the following code:
     
    I assume your editor ID is Editor1.
     
    obj_Editor1.PasteHTML('&nbsp;<script type="text/javascript" src="user/media/audio/ply2.js"></script>')
     
     
     
     

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

  •  09-28-2006, 1:34 PM 23167 in reply to 23165

    Re: Insert Scripts ..

    Adam,
     
    The line of code offered does not even fire .. when inserted into the script the ASP page will not even fire. :)
     
    obj_Editor1.PasteHTML('&nbsp;<script type="text/javascript" src="user/media/audio/ply2.js"></script>')
     
    The error is generated within the brackets .. of course I set the object to the editor object I use.
     
    I await your reply,
     
     
    Pete
     
     
     
     
View as RSS news feed in XML