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

Re: Custom code

Anyone?

Re: Custom code

Maybe a custom template header?

Re: Custom code

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

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

[LIST=1]

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

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

  • 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