在Google Analytics中,有一个选项可以了解有关客户端访问的连接信息.我想每个人都知道这一点,但我的问题是Javascript如何知道这些细节?
我不是在谈论IP或http/https,假设我正在使用TATA Indicom或使用Internet连接电缆.
谷歌怎么知道这个?
我发现
<rs:Page>
<mx:Image source="@Embed('image1.jpg')" />
<mx:Label x="400" y="40" fontFamily="Verdana" fontSize="9" color="#cccccc" text="butn" />
<mx:Label left="100" right="120" y="90" color="#Ffccdd" textAlign="left" text="Label Text" />
</rs:Page>
Run Code Online (Sandbox Code Playgroud)
在mxml文件中.这意味着什么?
编辑:1
<?xml version="1.0" encoding="utf-8"?>
<mx:Application
xmlns:mx="http://www.adobe.com/2006/mxml"
xmlns:filters="flash.filters.*"
xmlns:rs="com.mybooks.book.*"
layout="absolute"
backgroundColor="#333333"
creationComplete="onCreationComplete()"
viewSourceURL="source/index.html" width="600" height="330">
Run Code Online (Sandbox Code Playgroud) 用于获取所有电子邮件地址的Window Live Contacts API的以下代码.它在登录,注销和其他身份验证中工作正常.我可以使用Get Data函数调用收集登录用户的所有用户信息,但是我收到用户的电子邮件哈希值,其余的电子邮件哈希值都是空白的.我的联系簿中有10个电子邮件地址.
如何使用此API获取我的联系人的电子邮件地址?
<html>
<head>
<script src="https://js.live.net/v5.0/wl.js" type="text/javascript"></script>
</head>
<body>
<a href='javascript:void(0);' onclick='signUserIn();'>signUserIn</a> <br>
<a href='javascript:void(0);' onclick='signUserOut()'>signUserOut</a><br>
<a href='javascript:void(0);' onclick='loginStatus()'>Check User Status</a>
<a href='javascript:void(0);' onclick='getData()'>Get Data</a>
<script type="text/javascript" >
WL.init({
client_id: '0000000044444444',
redirect_uri: 'http://domain.com/contact.php',
response_type: "token",
logging: true
});
var scopesArr = ['wl.signin', 'wl.basic', 'wl.emails'];
function signUserIn() {
WL.login({ scope: scopesArr });
}
function loginStatus() {
WL.getLoginStatus(function(response) {
alert("response " + response );
});
}
function getData() {
alert( "getData");
WL.api(
{
path: "me/contacts",
method: …Run Code Online (Sandbox Code Playgroud) 我对CI很新,所以我想知道下面列出的一个功能将通过CI路由器完成,然后如何?
特征:
Q1.我需要以这样的方式显示我的用户个人资料mysite.com/johhn mysite.com/raju.radha
mysite.com/johhn1.
Q2.其他URL是mysite.com/photo/3434,mysite.com/album/3443等等等等.
我知道这可以通过使用来实现$route.对于Q2,这是解决方案
$route['photo/:num'] = "photo/photo_list";
$route['album/:num'] = "album/album_list";
Run Code Online (Sandbox Code Playgroud)
Q1的解决方案是什么?
提前致谢 !!!
frameworks codeigniter url-rewriting url-routing codeigniter-url
我认为这是一个简单的问题,但也有点复杂的问题.;-)
简单用户注册表单的必填字段是什么.
我想我们不想在注册的第一步输入所有用户详细信息,我们可以在注册成功后设置.
样本表格
First name :_ _ _ _ _ _
Middle Name :_ _ _ _ _ _
Last Name :_ _ _ _ _ _
Organization name :_ _ _ _ _ _
Email id :_ _ _ _ _ _
and finaly captcha:
Run Code Online (Sandbox Code Playgroud)
还有其他任何建议吗?
请告诉我你的想法.
我的域名上有一个私人文件夹
我在那里存储了很多图像和pdf文件
/protected/pad1.pdf
/protected/pad2.pdf
/protected/pad1.png
/protected/pad1.png
Run Code Online (Sandbox Code Playgroud)
这些是文件,如何在.htaccess文件的帮助下隐藏或保护对文件的访问.
只允许那些知道密码的用户.
可能吗 ???
我有一张桌子
create table test(id int not null primary key, day date not null);
insert into test(id, day) values(1, '2006-10-08');
insert into test(id, day) values(2, '2006-10-08');
insert into test(id, day) values(3, '2006-10-09');
select * from test;
+----+------------+
| id | day |
+----+------------+
| 1 | 2006-10-08 |
| 2 | 2006-10-08 |
| 3 | 2006-10-09 |
+----+------------+
select day, count(*) from test GROUP BY day;
+------------+----------+
| day | count(*) |
+------------+----------+
| 2006-10-08 | 2 |
| 2006-10-09 …Run Code Online (Sandbox Code Playgroud) 可能重复:
在用户注册时创建子域
假设我有一个站点,我希望为每个注册用户提供一个子域.喜欢我的网站http://site.com/.
并且test-user是在我的网站上注册的用户,并且该网站想要为该用户创建子域.
喜欢http://test-user.site.com.
喜欢http://test-user1.site.comtest-user1.
我希望你理解这个要求.如何在注册时使用我的网站后端或动态创建子域?
<?php
echo (2884284 >> 16), '<br>'; // = 44
echo ((2884284 >> 16) & 0xFFFF), '<br>'; // 44
Run Code Online (Sandbox Code Playgroud)
从上面我得到44
那怎么能从44回到2884284 ???
我想创建一个自定义事件,任何其他类都可以访问它.假设我有NavigationMenuClass.as其中包含了一些next, prev buttons,而另一个班Page.as应该在每个显示特定网页next或prev按下按钮.我需要创建一个自定义事件(将编写一个EVENTClass.as来管理所有这些事件.)调用"showPage",当这个事件发生时,需要调用Page.as类成员函数.
private function nextPress(event:Event) {
//dispatchEvent(new Event("showPage"));
// this will call the Page class Menmber function page:Page = new Page; page.showNextPage();
}
Run Code Online (Sandbox Code Playgroud)
在传递对象的情况下,如何使用Event和Event Dispatcher方法调用特定的成员函数.
我想知道有没有办法在LINUX,Windows中通过LAN服务器(配置了php + mysql + apache的Web服务器)配置SVN.我的要求是在本地构建一个带有SVN工具的小型Web服务器.
我知道乌龟svn配置.但是如何在LAN(本地)中实现.
<html>
<body>
<script language="javascript">
document.getElementById('myfileId').onchange = function(e) { alert('change'); }
</script>
<form action="" >
<input type="file" id="myfileId" name="myfile">
</form>
</body>
</html>
Run Code Online (Sandbox Code Playgroud)
如何在选择文件后调用JavaScript函数.
编辑:1
<html>
<body>
<form>
<input type="file" id="myfileId" name="myfile">
</form>
<script language="javascript">
window.onload = function()
{
alert("Test");
document.getElementById('myfileId').onblur = function(e) { alert('change'); }
}
</script>
</body>
</html>
Run Code Online (Sandbox Code Playgroud) php ×3
actionscript ×2
apache-flex ×2
javascript ×2
.htaccess ×1
adobe ×1
api ×1
codeigniter ×1
contacts ×1
database ×1
events ×1
flash ×1
flex3 ×1
formatting ×1
frameworks ×1
html ×1
lan ×1
msn ×1
mysql ×1
security ×1
sql ×1
svn ×1
url-routing ×1
webserver ×1
windows ×1