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


ADVERTISEMENT

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

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

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 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

JQuery :: Buttons As Links - Working In Firefox And Safari - But In IE Links Do Not Work

Apr 30, 2010

I am new to jquery, and love it so far, but I am more of a designer, not a developer. I am learning jquery to enhance my sites, and I am having a problem figuring out buttons.

I have them working in firefox and safari, but in IE links do not work.

Here is the script I have, and the button code.

View 1 Replies View Related

JQuery :: Menu Navigation - Submenu Links Have A Rounded Box Appear Under Them Instead Of Being Underlined Links

Aug 26, 2009

My menu navigation(Home, Hosting Solution, etc..)

1. The submenu links need to be centered in the middle of the div instead of aligned to the left.

2. Can the submenu links have a rounded box appear under them, instead of being underlined links. Like these at the top: [url]

3: The top tab needs to stay gray/active/on when the mouse is moved down to the submenu or when it is the active button.

Here is the link of the site [url]

View 2 Replies View Related

Jquery :: Create Some Links With Window.open Method - When I Alert What Is Being Built, The Links Don't Work?

Mar 10, 2010

I'm using jquery/ajax to create some links with window.open method. Here's the relevant code:

$("#content").empty();
$.ajax({
type: "GET",[code]..........

Basically, when you click a link a function is called with a parameter based on the particular link you run. Then the code runs through an xml file, and if the parent of the nodes I've cyling through has a value equal to the parameter past to the function, that node is used to create a new link with window.open function attached to it.It all works, or seems to, and when I alert what is being built, it looks right to me, yet the links don't work.I've attached a copy of one of the alerts of one of the links as it's built.

View 5 Replies View Related

JQuery :: Text Links Trapped - But Not Image Links

Nov 28, 2010

I have an image wrapped inside a link tag.<a href="somepage.html"><img id="content" src="img/some.gif" /></a>

I want this .click target to be the link: $('a').click(function(e){

Instead, the target returned is the image [HTMLImageElement].

I have tried using closest()and currentTarget:

But they all still return the image, not the link.

View 2 Replies View Related

URL Links From XML?

May 3, 2011

I,m using js to parse an XML file. the values from each node are written into an HTML table. this all works fine. however when I try to read a web address from the XML and use it as the href in my <a> tag the page jumps straight to the URL specified. how can I prevent this happening?

View 1 Replies View Related

How Do I Tell Links Apart In JavaScript (the DOM)

Jul 23, 2005

If I'm looping through the links collection in the DOM in JavaScript how
can I tell the difference between an Image type link and a text url?

I've been looking at document.links[i].href and document.links[i],hostname

are there other properties to look at or am I going to have to parse the
link?

View 2 Replies View Related

Multiple Links

Dec 22, 2006

I have an idea but don't know if it's possible, from a technical point
of view.
Imagine to have some text.

Example
"John and Mary go to the cinema."

I'd like to have this kind of links.
By selecting "John" I can go to:
Link 1 (eg. page 1)
Link 2 (eg. page 2)
Link ...

By selecting "John and Mery" I can go to:
Link 4 (eg. page 4)
Link 5 (eg. page 5)
Link ...

So, the word John can be included in two links.
The links are multidirected.
Do you know if there is a package useful for this purpose?
On the contrary, do you have some suggestion useful to achieve this goal?
I really don't know how to start.

It could be nice to have this possibility.

Example
"John and Mary go to the cinema."

I could choose:

"[John] and Mary go to the cinema."
and then go to select among the possible "John" links.

or:

"[John and Mary] go to the cinema."
and then go to select among the possible "John and Mary" links.

View 2 Replies View Related

Links To Frame

Jul 20, 2005

I have a javascript menu vertical in a left frame of a website and I want to
have url-links in that menu to show a html-site in the right frame when I
press a sublink All in javascript.....

View 1 Replies View Related

No Links Opening In New Tab

May 1, 2009

I found a script for drop down menus on the web. I use it on my homepage (www.k66t6-mf.com). The script works fine. However when you click on the links the pages open in a new tab or window. I do not want this. Does anyone know how I can prevent this from happening? (I know there is a lot of code, and I'm sorry about that).

[Code]...

View 2 Replies View Related

Get Links From A Page?

Sep 8, 2009

Im trying to run javascript on a page, that has a regular frame, and get all the links from the frame. However im not very good at javascript which makes this much harder :cool:This is the script im trying to use:

javascript: for(var i=0; i<window.frames.length; i++){for (i=0; i < document.links.length; i++) { alert(document.links[i].href); }};

View 4 Replies View Related

Get All The Links In Website?

Oct 6, 2010

way to get all the links in a web page using javascript?

View 1 Replies View Related

Javascript Links

Nov 16, 2006

some websites have a list of javascript links, eg:

javascript:Link(8);
javascript:Link(9);
etc

is there a way to get the list of the real links?

View 2 Replies View Related

Javascript And Links

Jul 14, 2006

I'm using the lightbox gallery (http://www.dynamicdrive.com/dynamicindex4/lightbox2/index.htm) script from dynamic drive to sample images for sale on my website.
I need to be able to add a "Click to buy" link in the actual popup image which will divert them to my order system. It has to be done this way so I know which image they have ordered.

I'd like to add the image in the bottom left section where you can put an image description.

View 7 Replies View Related

Posting To Links

Nov 12, 2001

How can i repeatedly post to a url in javascript

is it just using the post and get in html but will it send to the url

View 2 Replies View Related

Frames And #top Links

Jan 28, 2003

<META HTTP-EQUIV="refresh" content="1;URL=#top">

What is the correct way to format the URL of this script so that it refreshes a page in a different frame to the #top.

i.e. not the frame that has this script in it.

ESSENTIALLY what I want here is a hyperlink that refreshes a DIFFERENT Frame to the #top. -- possible?

View 7 Replies View Related

Add Links To Array ?

Jul 23, 2010

I have used this daily changing image script, it works well but I would like to add html links to each image. But I don't know how to do it.

So instead of the array '1_side.jpg' '2_side.jpg' I would like somethinlike this:

Here is the code:

View 12 Replies View Related

Links Under <div> Hidden CSS Still Think The <div>?

Apr 9, 2010

I believe this to be a JS quesiton, but perhaps there is something here of CSS too? I have an "ecard" which is: - a <div id="outer_ecard"> wrapping an <iframe>... - is hidden by default (via a JS function that fires onload of the parent doc),.. - that gets its display and visibility turned on when the user clicks a link in the parent doc, ... - and then gets its display and visibility turned off again via a call to that same JS function in the parent doc that hid it in the first place by default. here is just the relevant snip of the hiding JS function

[Code]....

View 3 Replies View Related







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