小编Cod*_*Guy的帖子

ColdFusion查询是否有字符限制?

我有一个MySQL数据库,列数据为LONGTEXT.它有85.504个字符.当我使用coldfusion查询执行select时,它只返回前64,001个字符.ColdFusion仅限于64,001个字符吗?

selectTest = new query();
selectTest.setDatasource("myDB");
selectTest.setName("selectTest");
selectTest.addParam(name="MyID",            value="#arguments.data.MyID#",          cfsqltype="cf_sql_integer");
result = selectTest.execute(sql="SELECT MyLongText FROM MyTable WHERE ID = :MyID");
rs = result.getResult();
return rs.MyLongText[1];
Run Code Online (Sandbox Code Playgroud)

这是我的函数,只返回前64,001个字符.

谢谢

mysql coldfusion cfquery

2
推荐指数
1
解决办法
184
查看次数

打印 iframe 内容并未打印所有内容

我创建了一个 JavaScript 函数来打印 iFrame 的内容。

    <a href="#" onclick="printBGReport();" align="center">Print Report</a> <br/>
    <script>
        function printBGReport(){
            var content = document.getElementById("printBGReport").innerHTML;
            var mywindow = window.open('', 'Print', 'height=600,width=800');
            mywindow.document.write(content);
            mywindow.document.close();
            mywindow.focus()
            mywindow.print();
            mywindow.close();
            //return;
        }
    </script>
<div id="printBGReport">
    <iframe id="reportBGID" name="reportBGID" src="myiFrameURL" width="900" height="1000" align="center" target="_self" valign="top" scrolling="yes" frameborder="no">
</div>
Run Code Online (Sandbox Code Playgroud)

但是,它并没有打印所有内容。看起来只是打印第一页。有谁知道为什么?

谢谢

html javascript

0
推荐指数
1
解决办法
5892
查看次数

标签 统计

cfquery ×1

coldfusion ×1

html ×1

javascript ×1

mysql ×1