';
$("#logindiv").hide();
$("#usernamepassworddiv").hide();
$("#facebooktwitteruserdetails").show();
$("#facebooktwitteruserdetails").html(embededlogeddetails);
$("#facebooktwitteruserdetails").show();
$("#whichusertype").val('1');
});
}*/
/*
function fblogout(){
FB.Connect.logout();
$("#logindiv").show();
$("#facebooktwitteruserdetails").hide();
$("#usernamepassworddiv").show();
}
*/
/********** For Validating Email Address*********/
function isValidEmail(str){
emailRe = /^\w+([\.-]?\w+)*@\w+([\.-]?(\w)+)*\.(\w{2}|(com|net|org|edu|int|mil|gov|arpa|biz|aero|name|coop|info|pro|museum))$/
phoneRe = /^((\+\d{1,3}(-| )?\(?\d\)?(-| )?\d{1,3})|(\(?\d{2,3}\)?))(-| )?(\d{3,4})(-| )?(\d{4})(( x| ext)\d{1,5}){0,1}$/
if (!emailRe.test(str))
return false;
else
return true;
}
var badword=0;
function postthecomment1(){
var comment_text = jQuery.trim($("#comment_text").val());
var comment_parentid = jQuery.trim($("#comment_parentid").val());
var content_id = jQuery.trim($("#content_id").val());
var whihcflag = $("#whichcontype").val();
$("#showerrorComment").hide();
$("#commentBoxRes").hide();
if(comment_text==""){
errmsg = "Please Enter Your Comment";
$("#comment_text").val('')
$('#comment_text').focus();
flag=1;
$("#showerrorComment").html(errmsg);
document.getElementById('showerrorComment').style.display="block";
return false;
}
if($("#whichusertype").val()=='1'){
var first_name = $("#first_name").val();
var last_name = $("#second_name").val();
if($('#UsernameSelector').attr('checked') == true){
var screenName = 'Anonymous';
}
else{
var screenName = $("#userscreenname").val();
}
var profile_url = $("#userprofilelink").val();
var profileImage = $("#userprofileimage").val();
var loginusertypeid = $("#loginusertypeid").val();
$('#commentSubmit').attr('disabled','disabled');
$.post("http://luxpresso.com/2db/comment2db.php",{'login_type':'facebook','whihcflag':whihcflag,'first_name':first_name,'last_name':last_name,'screenName':screenName,'profile_url':profile_url,'profileImage':profileImage,'loginusertypeid':loginusertypeid,'comment_text':comment_text,"content_id":content_id,"comment_parentid":comment_parentid},function(data){
if(jQuery.trim(data)=='error'){
$("#showerrorComment").html('User and password did not match.');
document.getElementById('showerrorComment').style.display="block";
}else if(jQuery.trim(data)=='BadWord'){
badword=1;
$("#comment_text").focus();
$("#commentBoxRes").show();
$("#commentBoxRes").html('Whoa... STOP right there! Pls feed us love, not spam, links or abusive words :) Help us keep luxpresso a happy place!');
document.getElementById('commentBoxRes').style.display="block";
}else{
$("#commentBoxRes").show();
$.post("http://luxpresso.com/tpl/tplGetcommentadded.php",{"content_id":content_id,"pageval":"1"},function(data){ //alert(data);
$("#showcommentcontent").html(data);
$("#commentBoxRes").show();
//$("#Username").val('');
//$("#Useremail").val('');
$("#comment_text").val('');
var nocomments = $('#nocomments_'+17865).val();
//console.debug(nocomments);
if( nocomments > 0){
$('#comment_'+17865).html('');
$('#comment_'+17865).html(''+nocomments +' Comments ' );
}
var message = comment_text;
var article_title = "Your Most Expensive Buy Could be the Uunique London Lotus iPhone 5";
var article_page_link = "http://luxpresso.com/news-gadgets/your-most-expensive-buy-could-be-the-uunique-london-lotus-iphone-5/17865";
var story_section ="News";
var story_section_url ="http://luxpresso.com/gadgets";
var author_name = "Agencies";
var author_name_url = "http://luxpresso.com/author/agencies/1100";
var posteddate = "Nov 28th 2012 at 11:55AM"
var article_image_path ="http://images.idiva.com/media/luxury/content/2012/Nov/uunique-london-lotus-iphone2_100x75.jpg";
var attachment = {'name': article_title, 'href': article_page_link ,'properties' :
{
'Filed under': {'text': story_section, 'href': story_section_url},
'Author ' : {'text': author_name, 'href':author_name_url},
'Posted On': posteddate}
,'media': [{ 'type': 'image', 'src': article_image_path, 'href': article_page_link }] };
var action_links = [{'text':'luxpresso', 'href':'http://luxpresso.com/'}];
//FB.Connect.streamPublish(message, attachment, action_links);
streamPublish(attachment, 'luxpresso', 'http://luxpresso.com/', 'Share luxpresso.com');
$('#commentSubmit').attr('disabled','');
});
}
});
}else{
var username= jQuery.trim($("#Username").val());
var useremailid= jQuery.trim($("#Useremail").val());
var comment_parentid=jQuery.trim($("#comment_parentid").val());
var userpassword=jQuery.trim($("#Password").val());
var content_id=jQuery.trim($("#content_id").val());
var whihcflag =jQuery.trim($("#whichcontype").val());
var flag = 0;
if($('#UsernameSelector').attr('checked') == true){
var screenName = 'Anonymous';
}
else{
var screenName = $("#Username").val();
}
if(comment_text==""){
errmsg = "Please Enter Your Comment";
$("#comment_text").val('')
$('#comment_text').focus();
flag=1;
}else if(username=="" || useremailid==""){
errmsg = "Please login to comment.";
flag=1;
}else if (userpassword == "" || userpassword == "Password"){
errmsg = "Please Enter Password";
$('#Password').focus();
flag=1;
}
if(flag==0){ //alert("asda");
$('#commentSubmit').attr('disabled','disabled');
$.post("http://luxpresso.com/2db/comment2db.php",{'login_type':'normaluser','EmailId':useremailid,'whihcflag':whihcflag,'Username':username,"userpassword":userpassword,"content_id":content_id,"comment_parentid":comment_parentid,'comment_text':comment_text,'screenName':screenName},function(data){ //alert(trim(data));
if(jQuery.trim(data)=='error'){
$("#showerrorComment").html('User and password did not match.');
$("#showerrorComment").show();
}else if(jQuery.trim(data)=='BadWord'){
//alert("dsf")
$("#comment_text").focus();
$("#commentBoxRes").html('
Whoa... STOP right there! Pls feed us love, not spam, links or abusive words :) Help us keep luxpresso a happy place!
'); document.getElementById('commentBoxRes').style.display="block"; }else{ $("#commentBoxRes").show(); $.post("http://luxpresso.com/tpl/tplGetcommentadded.php",{"content_id":content_id,"pageval":"1"},function(data){ //alert(data); $("#showcommentcontent").html(data); $("#commentBoxRes").html('Thanks for posting the comment.'); document.getElementById('commentBoxRes').style.display="block"; // $("#Username").val(''); //$("#Useremail").val(''); $("#comment_text").val(''); var nocomments = $('#nocomments_'+17865).val(); //console.debug(nocomments); if( nocomments > 0){ $('#comment_'+17865).html(''); $('#comment_'+17865).html(''+nocomments +' Comments ' ); } }); } $('#commentSubmit').attr('disabled',''); del_cook('keepComment'); }); }else{ $("#showerrorComment").html(errmsg); document.getElementById('showerrorComment').style.display="block"; } } } function clearText(field){ if (field.defaultValue == field.value) field.value = ''; else if (field.value == '') field.value = field.defaultValue; } function trim(str, chars) { return ltrim(rtrim(str, chars), chars); } function ltrim(str, chars) { chars = chars || "\\s"; return str.replace(new RegExp("^[" + chars + "]+", "g"), ""); } function rtrim(str, chars) { chars = chars || "\\s"; return str.replace(new RegExp("[" + chars + "]+$", "g"), ""); } function edittoAnonymous( val ){ if($('#'+val).val() == 'Anonymous' || $('#UsernameSelector').attr('checked') == false){ $('#'+val).val(readCookie("USERSCREENNAME") ); //$('#emailuser').show(); }else{ $('#'+val).val('Anonymous'); //$('#emailuser').hide(); } } function edittotext(val){ //console.debug($(val).attr("readonly")); $('#UsernameSelector').attr('checked',false); //$(val).attr("readonly",false); } window.setTimeout(function() { // This will execute 0.5s after the page loads // and it will execute only once if(readCookie('focus_comment')) { $(window).bind('load', function() { $('html, body').animate({ scrollTop: $('#landcomment').offset().top }, 'fast'); $("#comment_text").focus(); Set_Cookie("focus_comment",'1', "-1"); }); } }, 500);
POST A COMMENT
Thanks for posting the comment.
Source: http://luxpresso.com/news-gadgets/your-most-expensive-buy-could-be-the-uunique-london-lotus-iphone-5/17865
wwe royal rumble trisomy leon panetta luck sag awards 2012 nominees sag awards pro bowl 2012 roster