Posts Tagged ‘script language’

Custom linkedin button for share and auth <script src=”http://platform.linkedin.com/in.js”> api_key: //onLoad: onLinkedInLoad scope: r_basicprofile r_emailaddress r_fullprofile authorize:true </script> <script> function onLinkedInAuth() { IN.API.Profile(“me”) .fields(“firstName”, “lastName”, “industry”, “location:(name)”, “picture-url”, “headline”, “summary”, “num-connections”, “public-profile-url”, “distance”, “positions”, “email-address”, “educations”, “date-of-birth”) .result(displayProfiles); IN.UI.Share().params({ url: “http://www.example.com” }).place() } function displayProfiles(profiles) { console.log(profiles); member = profiles.values[0]; } jQuery(document).ready(function(){ jQuery(“#linkdinlog”).click(function(){ IN.UI.Authorize().place(); IN.Event.on(IN, […]

Jquery for ajex or jquery for redirecting page function change_service(obj) { jQuery.ajax({ type: “GET”, url: “index.php?option=com_vmcheck&view=default”, data: “&id=”+obj, success: function(html){ jQuery(“#circles”).html(html); } }); } <select tabindex=”50″ name=”s_provider” id=”s_provider” onchange=”change_service(this.value);”> <option>Select Service Provider</option> <option value=”3″>Airtel </option> <option value=”Vodafone”>Vodafone</option> <option value=”Trump”>Trump-MTNL-Mumbai</option> <option value=”1″>Reliance (CDMA)</option> </select>

javascript for detect browser <script language=”javascript” type=”text/javascript”> var nVer = navigator.appVersion; var nAgt = navigator.userAgent; var browserName = navigator.appName; var fullVersion = ”+parseFloat(navigator.appVersion); var majorVersion = parseInt(navigator.appVersion,10); var nameOffset,verOffset,ix; // In Opera, the true version is after “Opera” or after “Version” if ((verOffset=nAgt.indexOf(“Opera”))!=-1) { browserName = “Opera”; fullVersion = nAgt.substring(verOffset+6); if ((verOffset=nAgt.indexOf(“Version”))!=-1) fullVersion = nAgt.substring(verOffset+8); […]