Page 1 of 2 12>
Topic Options
#189440 - 2008-09-04 07:04 PM KIX GUI logon script
Ethanous Offline
Fresh Scripter

Registered: 2008-09-04
Posts: 8
I have a logon script that brings up an IE page that uese Document.getElementByID and InnterHTML to update the content of the IE page as users log in. (Basicaly its a progress page so users know what is going on with the logon script.) It is working perfectly on XP, but in Vista, the IE page pops up, but the information never changes. I can post a sample of the code here if it helps, but does anyone else have this issue?
Top
#189443 - 2008-09-04 08:55 PM Re: KIX GUI logon script [Re: Ethanous]
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
hmm...
I don't have any vista machines any more (all of them got downgraded), but...
you could check that the page is in trusted or local net zones.
I mean, if it's just unkwown/internet vista might block the refresh.
_________________________
!

download KiXnet

Top
#189483 - 2008-09-05 06:00 PM Re: KIX GUI logon script [Re: Lonkero]
Ethanous Offline
Fresh Scripter

Registered: 2008-09-04
Posts: 8
The script doesn't actually call a web server. It does however call a html webpage vis \\servername\logon.htm then tries to update the text in the div areas. The form its self comes up, but the text never changes.
Top
#189484 - 2008-09-05 06:25 PM Re: KIX GUI logon script [Re: Ethanous]
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
Yeah, I would've like to have a lookie at this script too ... but no Vista either ... hmmmm, can you post a little stripped-down version of your script that still demonstrates the issue ?
Top
#189487 - 2008-09-05 10:07 PM Re: KIX GUI logon script [Re: Shawn]
Ethanous Offline
Fresh Scripter

Registered: 2008-09-04
Posts: 8
below is the text for the .kix file
 Code:

;---------------------------
;************************************************************************
;*****					Safety Tip of the Week						*****
;***** 	If this is set the the ON option, in the place of the		*****
;***** 	username, workstation name, and operating system, a box		*****
;***** 	with the message you specify below will appear. Message is 	*****
;***** 						in HTML format.							*****
;************************************************************************
$SafetyTipStatus = ""			;Set to either ON or nothing (Case sensitive).
$TipOWeekText = "<center>Safety Tip of the Week:</center>When hiking, know the terrain, water sources, expected weather, and animals in the area. Wear proper hiking boots or shoes, use insect repellant, carry extra food and water, stay hydrated and carry a phone or radio. Don't go alone. Make sure someone knows where you plan to go."
$TipOWeekColor = "#FF6600"


;************************************************************************
;***** 				Function for GUI Interface		 				*****
;************************************************************************
Function DrawForms()
$SCRIPTPATH = "\\servername\somepath"
; Form
	$IE = CreateObject("internetexplorer.application")

If $SafetyTipStatus = "ON"
	$IE.Navigate("$SCRIPTPATH\GUI-form\logon2.htm")
	$IE.Height     	= "590"
Else
	$IE.Navigate("$SCRIPTPATH\GUI-form\logon.htm")
	$IE.Height     	= "550"
EndIf

      	WHILE $IE.Busy LOOP
	$IE.Document.Title = "Security Scanner"
	$IE.Width     	= "610"
    ;$IE.Left 		= ($IE.Document.parentWindow.screen.availWidth / 2) - ($IE.Width / 2)			;Doesn't work with Vista
    ;$IE.Top			= ($IE.Document.parentWindow.screen.availHeight / 2) - ($IE.Height / 2)		;Doesn't work with Vista
	$IE.ToolBar    	= $False
	$IE.AddressBar 	= $False
	$IE.MenuBar    	= $False
	$IE.StatusBar  	= $False
	$IE.Resizable  	= $False

	$IE.Visible    	= $True
			
    $IE.Document.parentWindow.focus();
	
    $FullName   	 	= $IE.Document.getElementByID("FullName")
    $WKSTA       	 	= $IE.Document.getElementByID("WKSTA")
    $ProductType 	 	= $IE.Document.getElementByID("ProductType")
	$TipOWeek			= $IE.Document.getElementByID("TipOWeek")
	
	$INFOFPCON			= $IE.Document.getElementByID("INFOFPCON")
	$TCNO				= $IE.Document.getElementByID("TCNO")
    $ProgressText		= $IE.Document.getElementByID("ProgressText")
	$Progress		    = $IE.Document.getElementByID("Progress")

	
EndFunction

;************************************************************************
;*****					 Begin printing info to GUI					*****
;************************************************************************
;Default Settings
$progressstep=2
$sleeptime = 0
$numerrors = 0
$TRUE = 1
$FALSE = 0

; Draw Form
DrawForms()

;$FPCONString = Replace($FPCONPRINT, CHR(13), "<br>")
;$INFOCONString = Replace($INFOCONPRINT, CHR(13), "<br>")

;$INFOFPCON.InnerHTML = "$FPCONString <br> $INFOCONString"

$FullName.InnerTEXT = "@FULLNAME"
$WKSTA.InnerTEXT = "@WKSTA"
$ProductType.InnerTEXT = "@ProductType"
$TipOWeek.InnerHTML = '<div id=blinky>$TipOWeekText</div>'
;$ie.document.getElementById("TipOWeek").value = $TipOWeek

$INFOFPCON.InnerTEXT = "Test Information1"
$ProgressText.InnerTEXT = "Test Information1"


;------------------------------------------------
below is the .htm file
;------------------------------------------------
 Code:

<HTML>
<HEAD>
<STYLE type="text/css">

    SPAN { overflow: hidden;
           height: 1.2em;
    }    

  body {
	background-image: url();
	background-color: #CCCCCC;
}
.style1 {font-size: 14px;
			}
</STYLE>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</HEAD>
<BODY style="margin: 0px; overflow:hidden;">
<table width="600" border="0" bgcolor="#CCCCCC" class="style1">
  <tr>
    <td>Logged In As: <span ID="FullName">&nbsp;</span></td>
  </tr>
  <tr>
    <td>WorkStation Name: <SPAN ID = "WKSTA">&nbsp;</SPAN></td>
  </tr>
  <tr>
    <td>Operating System: <SPAN ID = "ProductType">&nbsp;</SPAN></td>
  </tr>
  <tr>
    <td><DIV ID="TCNO" style="height: 7.2em; width:inherit; overflow-y: scroll; border: 1 solid black;">Scanning for Applicable TCNOs: <SPAN ID="Progress">0</SPAN>% <SPAN ID="ProgressText"></SPAN></DIV></td>
  </tr>
  <tr>
    <td><DIV ID="INFOFPCON" style="height: 24.5em; overflow-y: scroll; border: 1 solid black;">FPCON/INFOCON</DIV></td>
  </tr>
</table>
</BODY>
</HTML>


Edited by Allen (2008-09-05 10:59 PM)
Edit Reason: Added code tags

Top
#189488 - 2008-09-05 10:08 PM Re: KIX GUI logon script [Re: Ethanous]
Ethanous Offline
Fresh Scripter

Registered: 2008-09-04
Posts: 8
sorry, guess it converted it to actual html. not sure how to turn that off so you can see.
Top
#189489 - 2008-09-05 10:15 PM Re: KIX GUI logon script [Re: Ethanous]
Allen Administrator Online   shocked
KiX Supporter
*****

Registered: 2003-04-19
Posts: 4545
Loc: USA
Man, this posts really screws with Firefox. I don't even get a scroll bar without using IE.

{edit: Added code tags and FF works, but now long lines \:\( }


Edited by Allen (2008-09-05 11:02 PM)

Top
#189492 - 2008-09-05 10:48 PM Re: KIX GUI logon script [Re: Allen]
Ethanous Offline
Fresh Scripter

Registered: 2008-09-04
Posts: 8
sorry, didn't expect it to actually create the html docuemnt. i thought it would just put the html code in.
Top
#189502 - 2008-09-06 05:44 PM Re: KIX GUI logon script [Re: Ethanous]
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
well, the post type would be wrong then...
hmm... let's do a small test:
 Quote:

HTML>
<HEAD>
<STYLE type="text/css">

SPAN { overflow: hidden;
height: 1.2em;
}

body {
background-image: url();
background-color: #CCCCCC;
}
.style1 {font-size: 14px;
}
</STYLE>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</HEAD>
<BODY style="margin: 0px; overflow:hidden;">
</body>
</html>
_________________________
!

download KiXnet

Top
#189503 - 2008-09-06 06:00 PM Re: KIX GUI logon script [Re: Lonkero]
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
hmm...
I changed the width settings of the code-blocks.
works nicely here but, wonder how bad it looks on not long lined posts.
_________________________
!

download KiXnet

Top
#189505 - 2008-09-06 06:37 PM Re: KIX GUI logon script [Re: Lonkero]
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
and now modified it a little further.
if browser = IE, width is fixed to something.
else width is set to float until that same maximum is reached.

persons with FF can let me know if it works.
_________________________
!

download KiXnet

Top
#189508 - 2008-09-06 06:54 PM Re: KIX GUI logon script [Re: Lonkero]
Gargoyle Offline
MM club member
*****

Registered: 2004-03-09
Posts: 1597
Loc: Valley of the Sun (Arizona, US...
Did not work with IE 8, no change in FF
_________________________
Today is the tomorrow you worried about yesterday.

Top
#189509 - 2008-09-06 09:26 PM Re: KIX GUI logon script [Re: Gargoyle]
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
which style you have?
_________________________
!

download KiXnet

Top
#189510 - 2008-09-07 02:34 AM Re: KIX GUI logon script [Re: Lonkero]
Gargoyle Offline
MM club member
*****

Registered: 2004-03-09
Posts: 1597
Loc: Valley of the Sun (Arizona, US...
If you are asking about what stylesheet I am using -

GooG V2
_________________________
Today is the tomorrow you worried about yesterday.

Top
#189511 - 2008-09-07 04:04 AM Re: KIX GUI logon script [Re: Gargoyle]
Ethanous Offline
Fresh Scripter

Registered: 2008-09-04
Posts: 8
thank you allen for making this easier to read.
Top
#189512 - 2008-09-07 12:02 PM Re: KIX GUI logon script [Re: Ethanous]
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
gargoyle, I haven't fixed that one yet.
_________________________
!

download KiXnet

Top
#189513 - 2008-09-07 12:10 PM Re: KIX GUI logon script [Re: Lonkero]
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
ok, how about now?
_________________________
!

download KiXnet

Top
#189518 - 2008-09-07 05:44 PM Re: KIX GUI logon script [Re: Lonkero]
Gargoyle Offline
MM club member
*****

Registered: 2004-03-09
Posts: 1597
Loc: Valley of the Sun (Arizona, US...
Nope both still have the long lines. (IE 8 and FF that is)
_________________________
Today is the tomorrow you worried about yesterday.

Top
#189519 - 2008-09-07 08:23 PM Re: KIX GUI logon script [Re: Gargoyle]
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
yes, the long lines are there, but does the post go out of window boundaries?
on my machine (IE 7) the post box is properly scrollable and the whole stuff fits without window scrolling.
that's what we have always longed for and what I already did in some 6.xx version of the old ubb

but now the css takes care of that, instead of postprep.

oh, and I tested with your goog-version 2.
this is darn bright. doesn't it hurt your eyes at all?



Edited by Lonkero (2008-09-07 08:24 PM)
_________________________
!

download KiXnet

Top
#189520 - 2008-09-07 09:25 PM Re: KIX GUI logon script [Re: Lonkero]
Gargoyle Offline
MM club member
*****

Registered: 2004-03-09
Posts: 1597
Loc: Valley of the Sun (Arizona, US...
I tend to work in the dark so the bright is nice.

I get the scroll boxes for up / down, but the left to right boundry's are still off the screen and I have to scroll the parent window to see the whole thing.
_________________________
Today is the tomorrow you worried about yesterday.

Top
Page 1 of 2 12>


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
1 registered (Allen) and 466 anonymous users online.
Newest Members
gespanntleuchten, DaveatAdvanced, Paulo_Alves, UsTaaa, xxJJxx
17864 Registered Users

Generated in 0.078 seconds in which 0.026 seconds were spent on a total of 14 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org