This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<%@ Master Language="C#" AutoEventWireup="true" CodeFile="MasterPage.master.cs" Inherits="MasterPage" %><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml" > | |
<head runat="server"> | |
<title>Untitled Page</title> | |
</head> | |
<body> | |
<form id="form1" runat="server"> | |
<div> | |
<asp:contentplaceholder id="CPH" runat="server"></asp:contentplaceholder> | |
</div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//take an array to store the object that we will get from the ajax response | |
var records = []; | |
//create extjs store with empty data | |
var store = Ext.create('Ext.data.Store',{ | |
fields : ['id','name'], | |
data: records, | |
paging : false | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var object = { | |
name: 'Sohel', | |
value: function(){ | |
//anonymous self executing function | |
//split the websites | |
var websites = "http://www.lewishamilton.com http://www.twitter.com/lewishamilton http://instagram.com/lewishamilton www.youtube.com/lewishamilton https://plus.google.com/+LewisHamilton/posts"; | |
var websiteArray = []; | |
$.each(websites, function(index, w) { | |
// format the web url as link | |
w = '<a target="_blank" href="' + w + '">' + w + '</a>'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var users = []; | |
var data1 = { | |
name: 'sohel' | |
age: 30 | |
editor: 'phpstorm' | |
}; | |
var data2 = { | |
name: 'Riad' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var list=Array(); | |
list.push({id:1,name:'sohel'}); | |
list.push({id:2,name:'kahled'}); | |
list.push({id:3,name:'Rayan'}); | |
list.push({id:4,name:'John'}); | |
var exist=$.grep(list, function(obj) { | |
return obj.name === 'sohel'; | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var userEmail=encodeURIComponent($('#emailinput').val()); | |
$.ajax({ | |
url: 'ajax/sendEmail.php', | |
data: { email: userEmail }, | |
success: function(data) { | |
alert('Email has been sent successfully!!!'); | |
} | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var userEmail=$('#emailinput').val(); | |
$.ajax({ | |
url: 'ajax/sendEmail.php', | |
data: { email: userEmail }, | |
success: function(data) { | |
alert('Email has been sent successfully!!!'); | |
} | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml"> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | |
<title>Untitled Document</title> | |
<link rel="stylesheet" type="text/css" href="ext/resources/css/ext-all.css" /> | |
<link rel="stylesheet" type="text/css" href="ext/ux/css/CheckHeader.css" /> | |
<script type="text/javascript" src="ext/ext.js"></script> |
NewerOlder