通过功能获取对源代码的访问权限

时间:2015-06-12 00:21:48

标签: javascript jquery html css

我正试图访问此网站http://aptus-usa.com/calc上的源代码,这样我就可以在没有其他链接或图像的情况下使用功能计算器。我已经获得了源代码的访问权限(我将在下面发布),我也可以成功删除链接和图像。但是,缺少计算器的功能。考虑到根据JavaScript文件的Web链接,可能会导致此问题:

  

http://aptus-usa.com/resources/jsmodernizr-2.6.1-respond-1.1.0.min.js

     

http://aptus-usa.com/resources/jsjquery-1.8.2.min

     

http://aptus-usa.com/resources/jsbootstrap.min.js

服务器上没有文件?

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Aptus USA | Plant Nutrition | Nutrient Feed Calculators</title>
<link rel="stylesheet" type="text/css" href="resources/css/nc.css"/>
<!--<link rel="stylesheet" type="text/css" href="resources/css/bootstrap.min.css"/>-->
<script src="http://aptus-usa.com/resources/jsmodernizr-2.6.1-respond-1.1.0.min.js" type="application/javascript"></script>
<script src="http://aptus-usa.com/resources/jsjquery-1.8.2.min" type="application/javascript"></script>
<script src="http://aptus-usa.com/resources/jsbootstrap.min.js" type="application/javascript"></script>

<!--<link rel="stylesheet" type="text/css" href="../assets/css/base.css"/>
<link rel="stylesheet" type="text/css" href="../assets/css/ncstyles.css"/>
<link rel="stylesheet" type="text/css" href="../assets/css/ncPrint.css"/>
<script src="../assets/js/jquery.print.js" type="application/javascript"></script>
<script src="../assets/js/nc.js" type="application/javascript"></script>-->
</head>

<body>

<div id="logo"><img src="resources/img/APTUS Logo_planttech_Full.png" width="150" />
    <h2 style="color:white;font-size:1.3em;margin-top:40px;">Outdoor Growing or<br>Recirculating Hydroponics</h2>
    <p><a href="http://aptus-usa.com/resources/docs/AptusFeedSchedules.pdf" target="_blank" style="font-size:1.3em"><strong>Download Alternate<br>Feeding Schedules</strong></a></p>
</div>
<div id="downloads">

</div>

<form name="calc" method="post" target="_self">


<!--Variables table-->
<table cellpadding="0" cellspacing="0" border="0" class="variablesTable" id="id_variables">
    <tr>
        <td colspan="2" align="center" class="cellHeader">NUTRIENT CALCULATOR</td>
    </tr>
    <tr>
        <td>
            <select name="vegWeeks" id="id_vegWeeks">
                                                        <option value="1" selected>1</option>
                                                        <option value="2" >2</option>
                                                        <option value="3" >3</option>
                                                        <option value="4" >4</option>
                                                        <option value="5" >5</option>
                                                        <option value="6" >6</option>
                                                        <option value="7" >7</option>
                                                        <option value="8" >8</option>
                            </select>
        </td>
        <td>
            <label for="vegWeeks">Vegetative Weeks</label><br />
            <span class="subtitle">From clone/seed transplant to flowering</span>
        </td>
    </tr>
    <tr>
        <td>
            <select name="bloomWeeks" id="id_bloomWeeks">
                                                        <option value="1" >1</option>
                                                        <option value="2" >2</option>
                                                        <option value="3" >3</option>
                                                        <option value="4" >4</option>
                                                        <option value="5" >5</option>
                                                        <option value="6" >6</option>
                                                        <option value="7" >7</option>
                                                        <option value="8" >8</option>
                                                        <option value="9" selected>9</option>
                                                        <option value="10" >10</option>
                                                        <option value="11" >11</option>
                                                        <option value="12" >12</option>
                            </select>
        </td>
        <td>
            <label for="bloomWeeks">Bloom Weeks</label><br />
            <span class="subtitle">Including the final 'flush' week</span>
        </td>
    </tr>
    <tr>
        <td>
            <input type="text" name="resSize" id="id_resSize" value="5" size="6">
        </td>
        <td>
            <label for="resSize">Gallons in Reservoir</label><br />
            <span class="subtitle">
                For full cycle nutrient needs, enter your total weekly water usage.<br />
                Or, enter your reservoir size for specific mixing instructions.
            </span>
        </td>
    </tr>
    <tr>
        <td colspan="2" align="center">
            <input type="submit" name="submit" id="submit" />
        </td>
    </tr>
</table>

</form>

</body>
</html>

2 个答案:

答案 0 :(得分:2)

计算器会回发到服务器以获取结果,因此您无法在客户端上运行它。您可以使用iframe来获得类似的结果:

&#13;
&#13;
<iframe src="http://aptus-usa.com/calc" width="800" height="500">
  <p>Your browser does not support iframes.</p>
</iframe>
&#13;
&#13;
&#13;

另外需要注意的一点是,您应该检查您是否有权根据自己的目的使用计算器。

答案 1 :(得分:1)

从粗略看一下该页面,似乎计算机上的表格由于POST而不是客户端而发生在计算机上。您无法访问该服务器,无法访问该代码。