Enyo JavaScript Framework Supported Platforms iPhones, iPads, iPod Touches, Android phones and tablets, webOS phones and TouchPad, Windows Phone devices, AND on the web in Chrome, Firefox, Safari, and IE![]()
![]()
Showing posts with label Jquery. Show all posts
Showing posts with label Jquery. Show all posts
Tuesday, October 9, 2012
Enyo JavaScript Supported Platforms
by Unknown
Enyo JavaScript Tutorial Sample 1
by Unknown
<!DOCTYPE html> <html> <head>I wrote some javascript using enyo js. Output Of this Sample code isEnyo Js Sample 1 </body> </html> Output Html Code: <html class=" enyo-document-fit"> <head>Enyo Js Sample 1 Hello, World!
</body> </html>Hello, World!
on webpage using enyo js.
Tuesday, August 7, 2012
Url Parsing In Jquery
by Unknown
Get Url(domain) parameter using jquery function.
In below code, I wrote one function called getUrlVars().
Using this function you can get requesting parameter value.
If parameter not found., It will return undefined response
It was working for me good.
var ID= getUrlVars()["id"];
if(ID==undefined){
ID='';
}
function getUrlVars() {
var vars = {};
var parts = window.location.href.replace(/[?&]+([^=&]+)=([^&]*)/gi,
function(m,key,value) {
vars[key] = value;
});
return vars;
}
Url:http://mydomain.com/index.php?id=1
In js: var ID= getUrlVars()["id"];
Output:
ID=1
In js: var ID= getUrlVars()["name"];
Output:
ID=undefined

