Need help? Check out our Support site, then


Adding HTML

  1. Hi,
    Trying to add this to the site:

    <script src="http://49video.resources.s3.amazonaws.com/uploadthingy.js" type="text/javascript" language="Javascript"></script>
    <iframe id="uploadtarget" name="uploadtarget" src="" style="width:0px;height:0px;border:0"></iframe>
    <div id='uploadarea'><p><img src=http://49video.resources.s3.amazonaws.com/loading.gif width=16 height=16>  Loading Uploadthingy file upload form...

    If your upload form doesn't display within a few seconds, please check the FAQ or contact us at [email redacted]. We'd love to help out!</p></div>
    <script type="text/javascript" language="Javascript">
    var sitecode="d2VhcmVzdGl0Y2hlZC53b3JkcHJlc3MuY29t";
    authupload();
    function getUploadForm(json) {
    showblinks=false;
    var h="";
    h+="<p style='color:gray;'>Files
    ";
    h+="<input type='file' size='40' id='uploadfile0' name='file0'>
    ";
    h+="<input type='file' size='40' id='uploadfile1' name='file1'>
    ";
    h+="<input type='file' size='40' id='uploadfile2' name='file2'>
    ";
    h+="<input type='file' size='40' id='uploadfile3' name='file3'>
    ";
    h+="<input type='file' size='40' id='uploadfile4' name='file4'>
    ";
    h+="<input type='file' size='40' id='uploadfile5' name='file5'>
    ";
    h+="<input type='file' size='40' id='uploadfile6' name='file6'>
    ";
    h+="<input type='file' size='40' id='uploadfile7' name='file7'>
    ";
    h+="<input type='file' size='40' id='uploadfile8' name='file8'>
    ";
    h+="<input type='file' size='40' id='uploadfile9' name='file9'>
    ";
    h+="<input type='file' size='40' id='uploadfile10' name='file10'>
    ";
    h+="<input type='file' size='40' id='uploadfile11' name='file11'>
    ";
    h+="<input type='file' size='40' id='uploadfile12' name='file12'>
    ";
    h+="<input type='file' size='40' id='uploadfile13' name='file13'>
    ";
    h+="<input type='file' size='40' id='uploadfile14' name='file14'>
    ";
    h+="</p>";
    h+="<input type='hidden' id='authcode' name='authcode' value='"+json.c+"'>";
    h+="<input type='hidden' id='uploadid' name='id' value='widget$"+json.d+"$"+json.c.substring(0,json.c.indexOf("_"))+"'>";
    h+="<input type='hidden' id='callbackurl' name='callbackurl' value='"+baseserverurl+"'>";
    h+="<input type='hidden' name='savemeta' value='yes'>";
    h+="<p><input class='widget_button' id='49widget_submitbutton' type='button' onclick='doUpload();' name='suploadvideo' value='Upload'></p>";
    return h;
    }
    function doUpload() { if (checkform()) { upload('start'); } }
    function checkform() {
    var found=false;
    var cnt=0;
    while (document.getElementById('uploadfile'+cnt)) {
    if (document.getElementById('uploadfile'+cnt).value.length>0) {
    found=true;
    break;
    }
    cnt++;
    }
    if (!found) {
    alert('Please select at least one file to upload.');
    return false;
    }
    uploadmetadata=new Array();
    uploadmetadata['uploadfile0']=document.getElementById('uploadfile0').value;
    uploadmetadata['uploadfile1']=document.getElementById('uploadfile1').value;
    uploadmetadata['uploadfile2']=document.getElementById('uploadfile2').value;
    uploadmetadata['uploadfile3']=document.getElementById('uploadfile3').value;
    uploadmetadata['uploadfile4']=document.getElementById('uploadfile4').value;
    uploadmetadata['uploadfile5']=document.getElementById('uploadfile5').value;
    uploadmetadata['uploadfile6']=document.getElementById('uploadfile6').value;
    uploadmetadata['uploadfile7']=document.getElementById('uploadfile7').value;
    uploadmetadata['uploadfile8']=document.getElementById('uploadfile8').value;
    uploadmetadata['uploadfile9']=document.getElementById('uploadfile9').value;
    uploadmetadata['uploadfile10']=document.getElementById('uploadfile10').value;
    uploadmetadata['uploadfile11']=document.getElementById('uploadfile11').value;
    uploadmetadata['uploadfile12']=document.getElementById('uploadfile12').value;
    uploadmetadata['uploadfile13']=document.getElementById('uploadfile13').value;
    uploadmetadata['uploadfile14']=document.getElementById('uploadfile14').value;
    return true;
    }
    </script>

    Can any one help out?

    I just want the site to have the title of the blog and the upload bar. Is there a better way to do this?

    You are all solid humans,
    TLC

    The blog I need help with is wearestitched.wordpress.com.

  2. @soareyou

    Certain types of code are not allowed on WordPress.com sites (e.g., JavaScript), for security reasons:

    Code

    If you require this functionality, you may need to move to a WordPress.org site.

    Please visit the following link for a clear explanation of the differences between WordPress.com and WordPress.org:

    WordPress.com and WordPress.org

    If you have additional questions, please let us know.

Topic Closed

This topic has been closed to new replies.

About this Topic