|
|
|||||||
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? |
||||||||
|
|
|||||||
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. |
||||||||
|
|
|||||||
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. |
||||||||
|
|
|||||||
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 ? |
||||||||
|
|
|||||||
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"> </span></td> </tr> <tr> <td>WorkStation Name: <SPAN ID = "WKSTA"> </SPAN></td> </tr> <tr> <td>Operating System: <SPAN ID = "ProductType"> </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> |
||||||||
|
|
|||||||
sorry, guess it converted it to actual html. not sure how to turn that off so you can see. |
||||||||
|
|
|||||||
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 } |
||||||||
|
|
|||||||
sorry, didn't expect it to actually create the html docuemnt. i thought it would just put the html code in. |
||||||||
|
|
|||||||
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> |
||||||||
|
|
|||||||
hmm... I changed the width settings of the code-blocks. works nicely here but, wonder how bad it looks on not long lined posts. |
||||||||
|
|
|||||||
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. |
||||||||
|
|
|||||||
Did not work with IE 8, no change in FF |
||||||||
|
|
|||||||
which style you have? |
||||||||
|
|
|||||||
If you are asking about what stylesheet I am using - GooG V2 |
||||||||
|
|
|||||||
thank you allen for making this easier to read. |
||||||||
|
|
|||||||
gargoyle, I haven't fixed that one yet. |
||||||||
|
|
|||||||
ok, how about now? |
||||||||
|
|
|||||||
Nope both still have the long lines. (IE 8 and FF that is) |
||||||||
|
|
|||||||
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? |
||||||||
|
|
|||||||
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. |
||||||||
|
|
|||||||
tried on the server too (IE 7) and there it works great as well. I guess your system is screwed up |
||||||||
|
|
|||||||
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. |
||||||||
|
|
|||||||
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. |
||||||||
|
|
|||||||
so, IE7 works right for you too and FF works just as before? if so, then it's done and I can rest |
||||||||
|
|
|||||||
No Rest, golf.... |
||||||||
|
|
|||||||
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? |
||||||||
|
|
|||||||
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) |
||||||||
|
|
|||||||
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.) |
||||||||
|
|
|||||||
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 |