Display Username In Company's Intranet Header

Jul 23, 2005

I've been going bonkers trying to find the answer to this question...
I'm hoping somebody out there can help me. Our network environment is
Active Directory and our web server is Windows 2003 IIS 6.

I've got an ASP page that we include into each of our pages to act as
our companywide header. We force users to authenticate into our
Intranet site, and we are able to display the following information
about them on each page:

Welcome (username)
Today is (whatever)

Can Javascript or Dhtml or something else get me this information? We
have thousands and thousands of webpages and I don't want to have to
use the .asp extension on every single one if I don't have to... but I
can't find a way to display the username in the header without it =|
Somebody mentioned using File System Objects, but I haven't yet
experimented in that arena. Code:

View 2 Replies


ADVERTISEMENT

Pulling Data To Textbox - Display (WinNetwork.userName) NT LOGIN Into The Textbox

Jun 16, 2010

HTML Code:
<html>
<body>
<script type="text/javascript">
var WinNetwork = new ActiveXObject("WScript.Network");
document.write(WinNetwork.userName);
</script>
[Code]...

I have two questions. First i want to display (WinNetwork.userName) NT LOGIN into the textbox. Is there any where i can link both Javascript and textbox. Secondly, when i open the html have i first get warning the internet explorer page im trying to open have activeX. Is there any where i can stop that popup aleart from being displayed.

View 3 Replies View Related

Intranet Links

Jul 20, 2005

I want to place a piece of JavaScript at the top of my page/s that wil
tell all links on that page to open in certain target windows dependin
on the hostname.

Suppose the intranet address is http://intranet
so this means that the hostname is "intranet" right?
If I want all intranet page links to open in the same window but al
other links (ie external internet links) to open in a new windo
(_blank) then would I use something like below? Please correct an
place I've gone wrong:

if(document.links.hostname == "intranet") {
this.target = "_top";
} return true;

But somewhere in there I would also need an "else" statement to tell i
to open all other links in "_blank" target. Can someone please tell m
where that should be added in. I'm fairly new to javascript and am no
exactly sure what order some of this stuff should go in.

View 1 Replies View Related

Web Analytics For Intranet

Sep 7, 2010

My company is in the search process for using web analytics on our company intranet application. Anyone have any recommendations for some 3rd party software to accomplish this?

We use Google analytics for the public site, but according to the documentation, we have to use a fully qualified domain name for the intranet it order for it to work with google.

View 3 Replies View Related

Random Header Link - Adjust The Code So That The Header Also Serves As A Clickable Link

Jun 13, 2010

I am working on a website that uses a random header. I have been trying to figure out how to adjust the code so that the header also serves as a clickable link.

Here is the code that I have:

What do I need to add in order for the header to also serve as a link? I am completely new to JavaScript and I don't understand it very well.

View 1 Replies View Related

Distinguish Intranet From Internet Requests

Nov 2, 2006

I've noticed that IE have different security approach when loading a
page from an inner intranet or when loading a page from the web.

Is there a way in Javascript to know when your page is running by an
outsider and when by an insider? How the browser knows?

View 1 Replies View Related

Adding Network Printer From Intranet

Oct 13, 2011

Looking over other threads on this site I was able to use another members script to build my own for adding a network printer via JavaScript on our Intranet. With that, the script works perfectly fine when testing it on the local machine I built it on, but not on other machines in the office. Currently I'm remoted into the branch office I reside in from the corporate office where I'm currently at so the machines being tested are on different subnets, but the script is simple calling the UNC path for the printer. When tested on any other computer, and the link is clicked on the page, the user is taken back to the folder in windows explorer the HTML file is saved in, rather than executing the add printer portion of the script.

This is my full code as of now, I was trying to get the function correct before formatting the actual website (obviously)
Code:
<html><head>
<meta http-equiv="Content-Language" content="en-gb">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>Printer Mapping</title>
</head>
<script>
function addPrinter25(){
var x=confirm("You are about to add printer GPSACC01. Would you like to make this your default printer?")
if (x==true){
WshNetwork = new ActiveXObject("WScript.Network");
var PrinterPath = "\\gpsprnt02\gpsacc01";
WshNetwork.AddWindowsPrinterConnection(PrinterPath);
WshNetwork.SetDefaultPrinter(PrinterPath);
alert("Printer GPSACC01 has been added successfully and set as default")
}else{
WshNetwork = new ActiveXObject("WScript.Network");
var PrinterPath = "\\gpsprnt02\gpsacc01";
WshNetwork.AddWindowsPrinterConnection(PrinterPath);
alert("Printer GPSACC01 has been added successfully")
}}
</script>
<font color="#0000FF" face="Arial">
<a href="" onclick="addPrinter25(); return false;">GPSACC01</a></font>
</body></html>

View 1 Replies View Related

Search Multiple Intranet Pages With One Form?

Jun 24, 2011

There are multiple intranet pages with a list of names on them that are updated regularly.At the moment, there is no easy way to check if a name is on the pages without going in to each one at a time and searching them individually.

Is there a javascript script I could use to search all of the pages at the same time, and if a match is found, open the relevant page and highlight the result?

View 4 Replies View Related

Script To Open A DOS Command Window And Run Exe On Client (INTRANET)

Jul 20, 2005

I have an asp.net app running on an Intranet. From one of my aspx
pages I would like to run a javascript that will run the following
command OUTSIDE of the IIS/asp.net environment on the CLIENT machine
(remember, a controlled Intranet!). Is this possible? This windows
program needs to be opened and data entered periodically while using
the asp.net app as well.

The exe runs in a dos command window, tied to a Citrix ica file.

C:Program FilesCitrixICA Clientwfica32.exe ciq.ica

View 11 Replies View Related

JQuery :: IE6 - Replacing All Of My Standard Js In A Massive Intranet PHP Application

Feb 5, 2010

I have been using jQuery for only a few weeks now, replacing all of my standard js in a massive Intranet PHP application with lovely and space-saving jQuery. However, I've been using FF to write and test code while the company standard is IE6. Nothing works in IE6 - nada, zip, zilch. It bugs out on the very first call to the js file and wants me to begin debugging. Am I correct in assuming that I'm going to have to go back to regular js? I'd love to get the company to upgrade to IE7 - I've not seen ANY complaints about IE7 and jQuery.

View 5 Replies View Related

Layout Of Intranet Website Was Change When Access It On Different Computers

Oct 27, 2010

Since the client user has no totally installed flash player in their computer, so that No need to detect if they have installed flash player. I try to create an alert and I found out that it�s impossible to put a link in the alert. Now I remove the flash installer in my computer, so that the flash in my webpage become a box. I want to happen when they open my webpage that contains a flash; an alert or message on the top was appearing saying that �You do not have flash installed in your computer. Follow this link to get the installer. I try it using alert but the link is impossible to appear.

View 2 Replies View Related

Get USERNAME

Jul 20, 2005

I want to get the user logged in windows to send to a php page and valid
this user. Are there any way to do this with javascript or other languaje??

View 1 Replies View Related

Username And Password

Oct 16, 2006

I need a javascript that will accept the username "frederic" and the
password "ozanam" on my page "member,html" that will allow those who
input this data to access my page "member2.html".

I had a script that did this but when I updated the page on which it
resided I did not keep a copy of the javascript. Code:

View 8 Replies View Related

How To Email Username & IP

May 20, 2010

My code:

<!DOCTYPE html PUBLIC "-W3CDTD XHTML 1.0 TransitionalEN" "http:www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http:www.w3.org/1999/xhtml">

[code]....

View 1 Replies View Related

Store UserName To Php?

Nov 30, 2011

<script>
var userName = document.getElementById('userName');
var greetingText = document.createTextNode('Greetings');

[Code].....

If I want to store the userName variable from javascript to php. How to go about doing it?

View 5 Replies View Related

How To Set Username In Cookie

Mar 19, 2009

I am really not a javascript developer (far more ASP.NET) but I need to set the username of a user in a cookie using javascript. So just before the form is submitted I use
document.cookie="Username=" + document.form.ID.toString();
Where ID is the name of the text box where the Username is input
All this returns is [object].

View 2 Replies View Related

Regular Expressions For Username

May 24, 2007

I am trying to construct a reg exp for a field which can accept username as
(username) or (username@domain.com/net/org etc).

username should allowed alphanumeric values also it should accept -,_,.
it should not allowed @ twice

View 2 Replies View Related

Textbox Value Will Be The Username In Div Value On Click

Sep 24, 2010

I have Ten div and one textbox in a page. Every div contain single username. Now I want that after clicking on one div, the textbox value will be the username in that div value contain. How can I do that.

View 1 Replies View Related

Save Username And Password?

Apr 14, 2005

i have this site: www.streets-of-la.com and my player keep complaining about having to login each time... they told me to make a save passwrod option... but i dont know anything about javascript... how can i make so if they save the password, they will be auto-loged in each time they come to the site for 24h?

View 2 Replies View Related

Target URL As Username Or Password?

Jul 7, 2011

I am trying to work out if there is a way that I can use a target url as a simple password (or even username) at a log in screen.

Essentially I want to be able to send people to a different URL depending on their login details but without having to do anything too complicated or secure.

View 6 Replies View Related

JQuery :: Check If Username Exists In Db?

Mar 15, 2010

I have a jquery dialog with a registration form in it. My problem is: I want to check if the username (input) already exists in the database, if so I want to return a error.

I know I have to use AJAX... but how?

Explanation of my form:

(this is a dialog)
My form:
Username: testuser ERROR: username already exists
Password:
Name:

[Code]....

View 1 Replies View Related

JQuery :: Extend Or Merge - Username / Mod

Sep 14, 2011

Currently I'm trying to do the following:
{
config : {
user : "name",
mod : true
}}

That is JSON nr 1, now I got the following
{
config : {
mod : false
}}

What I need as a result is:
{
config : {
user : "name",
mod : false
}}

If I do a $.extend(json1, json2) then I will lose my user name.
If I do a $.merge(json1, json2) I will keep my username, but my mod will not be overwritten.

View 2 Replies View Related

JQuery :: Using To Check Username Availability?

Apr 25, 2011

So I posted a question on here and I'm pretty new to jQuery... I can't figure out exactly how to do this. I'm trying to, when a field blurs, run a query to see if the username is in the database, and echo whether the username is available or not if it's in the database. I have a little snipet of my page and I just don't see how to specify how to tell the script which input field, when it gets blured, to run the query...

[Code]...

View 1 Replies View Related

Remove Spaces From The 'username' Field?

Oct 15, 2010

I am trying to remove spaces from the 'username' field but leave the spaces in the first and last name fields.

The below code removes *one* space from the string but no more.

<html>
<head>
<title> </title>
<script language="javascript">

[Code]....

But I am not sure how to define username still contains space

View 4 Replies View Related

Show Submit Button When Username Is Available

Mar 23, 2011

One more thing, how would I do it so it enables the submit button once the message is Avaliable username.I have this code:

<script type="text/javascript">
//function to create ajax object
function pullAjax(){

[code]....

I set it as display none as a default and then when the box is green for the box to show as a block.Its not showing up tho after the box becomes green

View 1 Replies View Related

Pass Username Along To Other Pages In JS With Cookies?

Dec 8, 2010

I am trying to set up a page that will allow a user to enter their name into a text field and click a submit button. When the button is clicked, the name that the user entered is passed into a cookie, and displayed on the page at the same time.

However, I am having issues getting the name (i.e. the value of the cookie) to be passed along to other pages within the site as well.

I am using jquery to code the JS with. I have the first page all set up and it works beautifully, but when I try to use the getter for the cookie on the second page I get nothing. I am using a cookie plugin for jquery that I found here.

View 3 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved