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
<?xml version="1.0" encoding="UTF-8" standalone="no"?> | |
<!-- Created with Inkscape (http://www.inkscape.org/) --> | |
<svg | |
xmlns:dc="http://purl.org/dc/elements/1.1/" | |
xmlns:cc="http://creativecommons.org/ns#" | |
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" | |
xmlns:svg="http://www.w3.org/2000/svg" | |
xmlns="http://www.w3.org/2000/svg" | |
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" |
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
HTML | |
<a href=”http://google.com” > | |
<svg class=”myCSSClass”> | |
xmlns="http://www.w3.org/2000/svg" | |
xmlns:xlink="http://www.w3.org/1999/xlink"> | |
<rect x="10" y="10" height="100" width="100" style="stroke:#ff0000; fill:#0000ff"/> | |
</svg> | |
</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
<img src="circle.svg"> | |
OR | |
<svg class=”myCSSClass”> | |
xmlns="http://www.w3.org/2000/svg" | |
xmlns:xlink="http://www.w3.org/1999/xlink"> | |
<rect x="10" y="10" height="100" width="100" style="stroke:#ff0000; fill:#0000ff"/> | |
</svg> |
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
<svg | |
xmlns="http://www.w3.org/2000/svg" | |
xmlns:xlink="http://www.w3.org/1999/xlink"> | |
<rect x="10" y="10" height="100" width="100" | |
style="stroke:#ff0000; fill: #0000ff"/> | |
</svg> |
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
RewriteEngine on | |
RewriteCond %{HTTP_HOST} ^my-domain$ [NC,OR] | |
RewriteCond %{HTTP_HOST} ^www.my-domain/$ | |
RewriteRule (.*) /my-directory/$1 [L] |
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
$('#search').keyup(function () { | |
var searchField = $('#search').val(); | |
if (searchField.length) | |
{ | |
var myExp = new RegExp(searchField, "i"); | |
var found = 0; | |
$.getJSON('data.json', function (data) { | |
var output = '<ul class="searchresults">'; |
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
[ | |
{ | |
"title": "Yahoo", | |
"website" : "http://yahoo.com" | |
}, | |
{ | |
"title" : "Google", | |
"website" : "http://google.com" | |
}, | |
{ |
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> | |
<html> | |
<head> | |
<title>AJAX Live Search</title> | |
<meta charset="utf-8" /> | |
<script src="jquery.js"></script> | |
<style> | |
.update-hidden { | |
display: none !important; | |
} |
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
//create the basic XMLHttpRequest object | |
var request; | |
//compatibilty check for older browsers | |
//check to see if an XMLHttpRequest exists. If not, it is an older Microsoft browser. | |
if (window.XMLHttpRequest) { | |
request = new XMLHttpRequest(); | |
} else { | |
request = new ActiveXObject('Microsoft.XMLHTTP'); | |
} |
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
//create the basic XMLHttpRequest object | |
var request = new XMLHttpRequest(); | |
//The HTTP requests of the XMLHttpRequest object must be initialized through the open method. | |
//open( Method, URL, Asynchronous, UserName, Password ) | |
//Method - GET or POST | |
//URL - File name with path relative to the location of the sript file | |
//Asynchronous - boolean true or false | |
//UserName - optional | |
//Password - optional |