Announcement

Collapse
No announcement yet.

Custom code

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Custom code

    I need insert code in head Section, for example:

    <script type="text/javascript" src="/uploadify/jquery-1.4.2.min.js"></script>
    <script type="text/javascript" src="/uploadify/swfobject.js"></script>
    <script type="text/javascript" src="/uploadify/jquery.uploadify.v2.1.4.min.js"></script>
    <script type="text/javascript">
    // <![CDATA[
    $(document).ready(function() {
    $('#file_upload').uploadify({
    'uploader' : '/uploadify/uploadify.swf',
    'script' : '/uploadify/uploadify.php',
    'cancelImg' : '/uploadify/cancel.png',
    'folder' : '/uploads',
    'auto' : true
    });
    });
    // ]]>
    </script>

    In the body section, I need put this code:

    <input id="file_upload" type="file" name="file_upload" />

    How I do it?

    Thanks


  • #2
    Re: Custom code

    Anyone?

    Comment


    • #3
      Re: Custom code

      Maybe a custom template header?

      Comment


      • #4
        Re: Custom code

        Yes I would like to do the same....any answers?

        Comment


        • #5
          Hi leocharrua,
          You can insert your own code in the header of any application using ScriptCase. Please follow these steps:

          1. Go to ScriptCase>Tools>Layout>Templates, and create a new header template, put your own code and save it.
          2. Then you need to go to your application and select the new theme in Application>Layout>Settings

          Note: You can set your own header theme as default in: ScriptCase>Project>Default Values.
          Best Regards
          Hiram BQ

          Comment


          • #6
            Hi,
            I'm not sure but you can also try to create a new method and then use a [global value] OnApplicationInit to recall it.
            Then on the layout header you can use 'Value' with [glo_var] as defined input.
            Bye

            Comment

            Working...
            X