vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   I need someone good with html/javascript: Rapidshare Uploader (https://vborg.vbsupport.ru/showthread.php?t=194556)

mac-warez 10-25-2008 09:38 PM

I need someone good with html/javascript: Rapidshare Uploader
 
Ok I am working on a nicely working rapidshare uploader because there arent any good working ones right now. I have everything coded except one thing. I need the upload script to open in a new window. The page is: http://mac-warez.org/rapid.html. When you click browse and select a file, the upload button comes up. Once you click the upload button, it runs the script in the same window. I want this to open in a new window. this causes problems because the page runs in an iframe below the new topic part. the iframe has no scrolling and when the link comes up, you cant view it. If you need a better explanation or you have a question about it just reply. Please help! here is the code:

Code:

<body background="http://mac-warez.org/iSkin/misc/rapid.png">
<script type="text/javascript">
<!--
    var multi = false;
    function switchfiles() {
        alert("Please note, the total sum of the files simultaneously uploading, cannot exceed 200 MB.");
        var text = "";
        for (i=1;i<11;i++) {
            if (i < 10)
                text += '0';
            text += i+'.';                           
            text += '<input type="file" size="65" onchange="zeigeUploadBtn();"';
            text += ' id="dateiname';
            if (i > 1)
                text += i;
            text += '" name="filecontent';
            if (i > 1)
                text += i;
            text += '"><br />';
        }
        document.getElementById('files').innerHTML = text;
        multi = true;
    }
    var ok = false;                       
    function zeigeUploadBtn()
    {       
        var dn = document.getElementById("dateiname").value;
        dn = dn.replace(/^\s+|\s+$/g, '');       
        var Woerter = dn.split("\\");
        var dateiname = Woerter[Woerter.length-1];       
        if (dn.length < 1)
        {
            ok = false;
            return false;
        }
        ok = true;
        document.getElementById("btnupload").style.visibility = "visible";           
        var elem = document.getElementById("dname");
        elem.firstChild.nodeValue = dateiname;           
        if (multi)  {
            for (i=2;i<11;i++) {               
                dn = document.getElementById("dateiname"+i).value;
                dn = dn.replace(/^\s+|\s+$/g, '');                     
                Woerter = dn.split("\\");
                dateiname = Woerter[Woerter.length-1];       
                if (dn.length > 1) {                       
                    elem.firstChild.nodeValue += ", "+dateiname;
                }
            }
        }                                                   
    }
    function zeigeProcess()
    {             
        if (!ok)
            return false; 
        document.getElementById("dateiwahl").style.display = "none";
        document.getElementById("progbar").style.display = "block";                   
        return true;
    }
//-->
</script>

<form name="ul" method="post" action="http://rs337l3.rapidshare.com/cgi-bin/upload.cgi?rsuploadid=115526482266981846" enctype="multipart/form-data" onSubmit="return zeigeProcess();">
  <div id="progbar" style="display:none;">
        <iframe src="http://rs337l3.rapidshare.com/progress.html?uploadid=115526482266981846" name="pframe" width="100%" height="120" frameborder=0 marginwidth="0" marginheight="0" scrolling="no"></iframe>       
    </div>           
    <div id="dateiwahl">
        <p>&nbsp;</p>
<br>
<center><table width="355" style="font-size:8pt;color:#002760;><tr><td align=left>
        <div id="files">
                      <input type="file" size="30" id="dateiname" name="filecontent" onChange="zeigeUploadBtn();" />
        </div>
              </td></tr></table>
        <br />       
        <input type=image id="btnupload" name="u" src="http://mac-warez.org/iSkin/misc/rapid_submit.png" style="visibility:hidden;" />
  </div></center>
</form>



All times are GMT. The time now is 09:20 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01145 seconds
  • Memory Usage 1,733KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (1)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete