我正在使用json数据并通过jquery迭代它并显示我的结果...
使用var jsonObj = JSON.parse(HfJsonValue);作品firefox但不是IE6......
HfjsonValue是一个从我的aspx code behind page... 返回的json字符串.所以我不使用ajax ...任何建议让我的json更好地解析并跨浏览器...
我在用户注册期间存储了密码的salt和hash值...但是在登录期间我然后对用户给出的密码进行加密和散列,会发生什么是新的盐并生成新的哈希....
string password = collection["Password"];
reg.PasswordSalt = CreateSalt(6);
reg.PasswordHash = CreatePasswordHash(password, reg.PasswordSalt);
Run Code Online (Sandbox Code Playgroud)
这些陈述都在注册和登录....
注册期间的盐和哈希是eVSJE84W和18DE22FED8C378DB7716B0E4B6C0BA54167315A2
在登录期间它是4YDIeARH和12E3C1F4F4CFE04EA973D7C65A09A78E2D80AAC7.....任何建议....
public static string CreateSalt(int size)
{
//Generate a cryptographic random number.
RNGCryptoServiceProvider rng = new RNGCryptoServiceProvider();
byte[] buff = new byte[size];
rng.GetBytes(buff);
// Return a Base64 string representation of the random number.
return Convert.ToBase64String(buff);
}
public static string CreatePasswordHash(string pwd, string salt)
{
string saltAndPwd = String.Concat(pwd, salt);
string hashedPwd =
FormsAuthentication.HashPasswordForStoringInConfigFile(
saltAndPwd, "sha1");
return hashedPwd;
}
Run Code Online (Sandbox Code Playgroud) 我在我的facebox模式上使用我的自定义关闭按钮来关闭它...它工作正常(即)它关闭但它在我点击关闭按钮后附加到页面的底部...
<a onclick="$.facebox.close();" href="javascript:void(0);" class="close">
<img alt="Close the popup" src="images/close.png" title="close"
class="close_image" />
</a>
Run Code Online (Sandbox Code Playgroud)
这是我得到的,
alt text http://img825.imageshack.us/img825/3739/foo.jpg
这是我想要做的,
$(document).bind('close.facebox', function() {
$(document).unbind('keydown.facebox')
$('#aspnetForm').append($('#facebox .content').html());
/// extra line to make sure there's no flashing effect as the facebox closes: the content is still in there too!
$('#facebox .content').children().css({ 'display': 'block' });
$('#facebox').fadeOut(function() {
$('#facebox .content').removeClass().addClass('content')
hideOverlay()
$('#facebox .loading').remove()
})
})
Run Code Online (Sandbox Code Playgroud)
我的页面有这个,
$(document).ready(function($) {
$.facebox.settings.opacity = 0.2;
$('a[rel*=facebox]').facebox();
});
<div id="forgetPassword" style="display:none">
//content
</div>
Run Code Online (Sandbox Code Playgroud) 我试图隐藏具有淡出效果的div但它似乎不起作用..
$('#messageDiv').hide().fadeOut('slow'); 任何建议.
我正在使用自定义函数显示错误div?
function getErrorMsgStyle(txt) {
return "<table width='100%' border='0' cellpadding='0' cellspacing='0' align='center'><tr style='line-height:7px;'><td> </td></tr></table><div class='error_Style_Border' id='messageDiv'><a href='javascript:void(0);' onClick=\"$('#messageDiv').fadeOut('slow');\" class='link'><table width='100%' border='0' cellpadding='0' cellspacing='0' align='center'><tr style='line-height:2px;'><td> </td></tr><tr><td class='table_error_Style_Border'><table width='97%' border='0' cellpadding='0' cellspacing='0' align='center' >" + "<tr style='line-height:2px;'><td colspan='15' align='center'></td></tr>" + "<tr ><td width='10px'> </td><td colspan='12' align='center' ><span class='error-txt'>" + txt + "</span></td><td width='10px' class='error-close'>X</td><td> </td></tr></table></td></tr>" + "<tr style='line-height:2px;'><td> </td></tr></table></a></div><a href='javascript:void(0);' onClick=\"$('#messageDiv').fadeOut('slow');\" class='link'><table width='100%' border='0' cellpadding='0' cellspacing='0' align='center'><tr style='line-height:7px'><td> </td></tr></table></a>";
}
Run Code Online (Sandbox Code Playgroud)
$('#messageDiv').fadeOut('slow');似乎也没有用
Hai Guys,我必须在php中打印一个页面,但我不想使用window.print .....我必须打印而不打开打印对话框...我正在使用php .....
我通过我的申请向我的客户发送短信.假设如果向100个手机号码发送消息,则其中一个恰好是不存在的手机号码.我怎样才能单独跳过这个号码并发送其余的号码?当消息无法传递时,我在方法中使用try catch块,它会捕获并且无法发送其余的数字.有什么想法可以做到这一点?
jquery ×3
asp.net-mvc ×1
comparison ×1
effect ×1
facebox ×1
fadeout ×1
hash ×1
json ×1
modal-dialog ×1
parsing ×1
passwords ×1
php ×1
salt ×1
sms ×1