...
Javascript, using jQuery:
Code Block | ||
---|---|---|
| ||
var link = jQuery("#LoggedInAs").attr("href"); var id = new RegExp('[\\?&]id=([^&#]*)').exec(link)[1]; |
...
Javascript, using jQuery:
Code Block | ||
---|---|---|
| ||
var loggedInUserName = jQuery("#LoggedInAs").text(); |
...
Javascript, using jQuery:
Code Block | ||
---|---|---|
| ||
var currentBanadedOwnerName = jQuery("#OwnerTree").text().replace('[','').replace(']','').split('>').last(); |
...
Javascript, using jQuery and it’s only possible on the overview page
Code Block | ||
---|---|---|
| ||
var currentUserRoleName = jQuery("#DetailsRole").text(); |
...
Here is an example how to add the nVelocity logic in your page extension. If current owner is top owner run a javascript code:
Code Block | ||
---|---|---|
| ||
#if($controller.IsOwnerParentTopLevel()) alert("I'm top level owner parent!!!"); #end |
...