javascript - Send User Name in URL from google sites to internal IIS page -


how send name of user logged on page google sites (intranet) page located on iis server.

example: matheus logged on intranet (google sites). upon entering home page, run script take user name created in google sites. example variable "webspace.user.username" or other location. , create tag following feature:

how send name of user logged on page google sites (intranet) page located on iis server.

example: matheus logged on intranet (google sites). upon entering home page, run script take user name created in google sites. example variable "webspace.user.username" or other location. , create tag following feature:<a href="ip servidor?variable="+nomeuser> access </a>

build method of recovering in iis page url variable:

querystring function (parameter) {               var loc = location.search.substring (1 location.search.length);               param_value var = false;               var params = loc.split ( "&");               (i = 0; <params.length; ++) {                   param_name = params [i] .substring (0, params [i] .indexof ( '='));                   if (param_name == parameter) {                       param_value = params [i] .substring (params [i] .indexof ( '=') + 1)                   }               }               if (param_value) {                   param_value return;               }               else {                   return false;               }         }  var variable = querystring ( "variable"); 

now build stu link difficulties due software used google sites.

code create <a href=""></a>

<script> var name = document.webspace.user.username; var url= "ip server?variavel="+name; $(linkdiv).innerhtml.(url); </script> <div id="linkdiv"> </div> 

anyone have idea how can this?


Comments

Popular posts from this blog

matlab - error with cyclic autocorrelation function -

django - (fields.E300) Field defines a relation with model 'AbstractEmailUser' which is either not installed, or is abstract -

c# - What is a good .Net RefEdit control to use with ExcelDna? -