This file contains 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
<body> | |
<div id="wrapper"> | |
<div id="header"></div> | |
<div id="content"></div> | |
<div id="footer"></div> | |
</div> | |
</body> | |
<!----and the CSS------> |
This file contains 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
//load example | |
p = { | |
username: username, | |
ext: ext | |
}; | |
$('#defUsernameVal').load("<?= site_url('ams/checkUsername') ?>",p); | |
//post example | |
$.post("ajax.php", { api: "Report", f: "exportToCsv"}, |
This file contains 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
<!--HTML Portion--> | |
<ul id="nav"> | |
<li class="current"><a href="#">Home</a></li> | |
<li><a href="#">Sub Menu</a> | |
<ul> | |
<li><a href="#">Submenu Item</a> | |
<ul> | |
<li><a href="#">Level 3 menu</a></li> | |
<li><a href="#">Level 3 menu</a></li> | |
</ul> |
This file contains 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
<select name="garden" multiple="multiple"> | |
<option>Flowers</option> | |
<option selected="selected">Shrubs</option> | |
<option>Trees</option> | |
<option selected="selected">Bushes</option> | |
<option>Grass</option> | |
<option>Dirt</option> | |
</select> |
This file contains 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
//version specific | |
<script type='text/javascript' src='https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js'></script> | |
//always up to date | |
<script type='text/javascript' src='http://code.jquery.com/jquery-latest.js'></script> | |
//jquery ui | |
<script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.18/jquery-ui.min.js"></script> |
This file contains 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
//type this in the url field after page load | |
javascript:alert(document.documentElement.innerHTML); |
This file contains 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
(function($) { | |
// $ Works! You can test it with next line if you like | |
// console.log($); | |
})( jQuery ); |
This file contains 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
$("#id_of_textbox").keyup(function(event){ | |
if(event.keyCode == 13){ | |
$("#id_of_button").click(); | |
} | |
}); |
This file contains 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
//HTML part | |
<div class="select-wrapper"> | |
<select id="search_filter"> | |
<option value='username'>Username (recommended)</option> | |
<option value='lastname'>Lastname</option> | |
</select> | |
</div> | |
This file contains 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
//setup a UISlider programmatically | |
mySlider = [[[UISlider alloc] initWithFrame:CGRectMake(174, 12, 120, 23)] autorelease]; | |
mySlider.maximumValue = 100; | |
mySlider.minimumValue = 30; | |
mySlider.value = 100; | |
[mySlider addTarget:self action:@selector(dimScreen:) forControlEvents:UIControlEventValueChanged]; | |
//adding the slider to a table cell | |
cell.textLabel.text = @"My Slider"; | |
cell.accessoryView = mySlider; |
OlderNewer