May 19, 2012

javascript报错误semicolon缺少分号,行 字符 代码 URI问题解决

Filed under: javascript — Tags: , , , , , , — admin @ 1:18 pm

var var1= (function(obj){var var2={…
} //<= add semicolon to here
return {..}
)(window); »阅读全文…

May 17, 2012

NT javascript new technology discover

Filed under: javascript — Tags: , , — admin @ 2:25 pm

some javascript framework/library discover,explorer

ajax
XHR request,but NOT allows for cross-domain loading

www.websocket.org
The WebSocket specification developed as part of the HTML5 initiative—introduced the WebSocket JavaScript interface, whic

May 16, 2012

MySQL server has gone away Error while reading SET_OPTION’s EOF packet

Filed under: mysql — Tags: , , , , , , , , — admin @ 11:25 pm

MySQL server has gone away Error while reading SET_OPTION’s EOF packet
today feihu it-web had to face the problem again
i googled although find few solution for it but one like this give me some help

mysql_select_db($MYSQL_db, $link);
// RUN REALLY

May 15, 2012

javascript new array/object

Filed under: javascript — Tags: , , , — admin @ 2:40 pm

new Javascript Array
1:
var cd00=new Array()
2:
var cd00=[]

new javascript object
1:
var cd00=new Object
2:
var cd00={}

assign value to object
2.1:
cd00.k1=’val1′
cd00.k2=’val2′
2.2:
var cd00={k1:’val1′,’k2′:’val2′} »阅读全文…

May 14, 2012

file_get_contents curl fopen+fread+fclose

Filed under: php — Tags: , , , , , , , — admin @ 10:06 am

file_get_contents curl fopen+fread+fclose
php using 3 method for get web page content

1
$contents=file_get_contents($url);

2

curlget($url){
$ch=curl_init();
$timeout=5;
curl_setopt($ch,CURLOPT_URL,$url);
curl_setopt($ch,CURLOPT_RETURNTRANSFE

May 12, 2012

IE8问题about:Tabs tabswelcome.htm脚本错误没有重新打开已关闭选项卡问题解决

Filed under: 应用, 问题 — Tags: , , , , , , , , , , , , — admin @ 2:13 pm

IE8问题 新建标签about:Tabs出现tabswelcome.htm脚本错误然后不显示重新打开已关闭选项卡等
显示为
接下来你想做什么What do you want to do next
这里为空白 正常有过是有

重新打开已关闭选项卡 
查看启动 Internet Explorer 后关闭的选项卡。
全部打开
重新打开上次浏览会话

解决方法 运行注册表程序 regedit 找到
HKEY_CLASSES_ROOT\TypeLib\{EAB22AC0-30C1-11CF-A7

May 10, 2012

mysql TIMESTAMP disable ON UPDATE CURRENT_TIMESTAMP

Filed under: mysql — Tags: , , , , , , , , — admin @ 10:57 am

Q:dont want timestamp auto update time when record update?
A:you should disable ON UPDATE CURRENT_TIMESTAMP for timestamp column.
Q:how to disable ON UPDATE CURRENT_TIMESTAMP?
A:just define the default value for timestamp or just define it not null

e

May 9, 2012

Warning:Cannot modify header information-headers already sent by(output started at…session,cookie problem solved

Filed under: php — Tags: , , , , , , , , , , , , , , , , — admin @ 10:35 pm

Warning: Cannot modify header information – headers already sent by (output started at /index.php:1) in /includes/cls_session.php on line 116

feihu it-web today meet this easy understand problem,this issue usually is output(echo/print) some char before

mysql select DATEDIFF from now to past 30 days sql

Filed under: mysql — Tags: , , , , , , , , , — admin @ 9:41 am

want to query record from mysql table where past 30 days from now

sql:
select * from feihu_table where DATEDIFF(NOW(),time_field)>30

 DATEDIFF(day1,day2), DATEDIFF use day1-day2
example
SELECT DATEDIFF(’2012-5-1′,’2012-5-3′) AS DiffDate
result

May 2, 2012

javascript window onload load multiple function

Filed under: javascript — Tags: , , , , , — admin @ 9:54 pm

function addLoadEvent(func){
var oldonload = window.onload;
if (typeof window.onload != ‘function’){
window.onload = func;
}else{
window.onload = function(){
if (oldonload){
oldonload();
}
func();
}
}
}

addLoadEvent(nameOfSomeFunctionToRunOn

Older Posts »

16 queries. 1.971 seconds.
itweb - it zhishi jiayuan