Ethanous
(Fresh Scripter)
2008-09-04 07:04 PM
KIX GUI logon script

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?

LonkeroAdministrator
(KiX Master Guru)
2008-09-04 08:55 PM
Re: KIX GUI logon script

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.


Ethanous
(Fresh Scripter)
2008-09-05 06:00 PM
Re: KIX GUI logon script

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.

ShawnAdministrator
(KiX Supporter)
2008-09-05 06:25 PM
Re: KIX GUI logon script

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 ?

Ethanous
(Fresh Scripter)
2008-09-05 10:07 PM
Re: KIX GUI logon script

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>


Ethanous
(Fresh Scripter)
2008-09-05 10:08 PM
Re: KIX GUI logon script

sorry, guess it converted it to actual html. not sure how to turn that off so you can see.

AllenAdministrator
(KiX Supporter)
2008-09-05 10:15 PM
Re: KIX GUI logon script

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 \:\( }


Ethanous
(Fresh Scripter)
2008-09-05 10:48 PM
Re: KIX GUI logon script

sorry, didn't expect it to actually create the html docuemnt. i thought it would just put the html code in.

LonkeroAdministrator
(KiX Master Guru)
2008-09-06 05:44 PM
Re: KIX GUI logon script

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>


LonkeroAdministrator
(KiX Master Guru)
2008-09-06 06:00 PM
Re: KIX GUI logon script

hmm...
I changed the width settings of the code-blocks.
works nicely here but, wonder how bad it looks on not long lined posts.


LonkeroAdministrator
(KiX Master Guru)
2008-09-06 06:37 PM
Re: KIX GUI logon script

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.


Gargoyle
(MM club member)
2008-09-06 06:54 PM
Re: KIX GUI logon script

Did not work with IE 8, no change in FF

LonkeroAdministrator
(KiX Master Guru)
2008-09-06 09:26 PM
Re: KIX GUI logon script

which style you have?

Gargoyle
(MM club member)
2008-09-07 02:34 AM
Re: KIX GUI logon script

If you are asking about what stylesheet I am using -

GooG V2


Ethanous
(Fresh Scripter)
2008-09-07 04:04 AM
Re: KIX GUI logon script

thank you allen for making this easier to read.

LonkeroAdministrator
(KiX Master Guru)
2008-09-07 12:02 PM
Re: KIX GUI logon script

gargoyle, I haven't fixed that one yet.

LonkeroAdministrator
(KiX Master Guru)
2008-09-07 12:10 PM
Re: KIX GUI logon script

ok, how about now?

Gargoyle
(MM club member)
2008-09-07 05:44 PM
Re: KIX GUI logon script

Nope both still have the long lines. (IE 8 and FF that is)

LonkeroAdministrator
(KiX Master Guru)
2008-09-07 08:23 PM
Re: KIX GUI logon script

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?



Gargoyle
(MM club member)
2008-09-07 09:25 PM
Re: KIX GUI logon script

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.


LonkeroAdministrator
(KiX Master Guru)
2008-09-08 08:38 AM
Re: KIX GUI logon script

tried on the server too (IE 7) and there it works great as well.
I guess your system is screwed up \:D


Gargoyle
(MM club member)
2008-09-08 02:31 PM
Re: KIX GUI logon script

What it is a MS OS, nothing could ever go wrong there.

I will take a look at it when get into work where it is still IE7, IE8 does some funny things to pages.


Gargoyle
(MM club member)
2008-09-08 04:59 PM
Re: KIX GUI logon script

Ok, IE7 works just fine, and if I set my IE8 to "comptability mode" it works as expected. Leave it to MS to change all the rules yet again.

LonkeroAdministrator
(KiX Master Guru)
2008-09-08 09:44 PM
Re: KIX GUI logon script

so, IE7 works right for you too and FF works just as before?

if so, then it's done and I can rest \:\)


Gargoyle
(MM club member)
2008-09-09 12:46 AM
Re: KIX GUI logon script

No Rest, golf.... \:\)

Ethanous
(Fresh Scripter)
2008-09-09 05:51 PM
Re: KIX GUI logon script

so just trying to clarify, this appears to be a local issue here, none of the rest of you are having any issues with this in Vista?

LonkeroAdministrator
(KiX Master Guru)
2008-09-09 10:45 PM
Re: KIX GUI logon script

not so many vista users alive.

anyhow, if you open up the document in IE manually, does it shop up as coming from local or trusted zone? if not, that most likely is the problem.
also, does the script run fine?
you could debug how long the busy() state is on.
and if you show the statusbar, does it show the page has properly loaded? (heard about scripting with vista ie problem with that)


Ethanous
(Fresh Scripter)
2008-09-12 06:31 PM
Re: KIX GUI logon script

It was showing up from a trusted zone. However, it appears the problem stems from Vistas UAC function. Once that is disabled, the GUI works perfectly. So now the question is what in UAC is stoping this from functioning or do i just have to disable UAC all together.

UAC (User Account Control, the anoying "Are you sure you want to do this?" for anyone that is un-familular.)


LonkeroAdministrator
(KiX Master Guru)
2008-09-12 11:17 PM
Re: KIX GUI logon script

hmm...
I tried vista on my workstation just before the official launch and it totally stopped the logonscript functions. I didn't even get my group shares connected.

and that's when I decided format /c being the right cause of action.
I don't remember as [censored] OS since win98