Tag Archives: ie

Start IE in lock down mode

When we publish a website URL via Citrix, we always to lockdown the website user can access.
The easiest way is to use IE lock down mode. To enable lock down mode is simple, you only need to add “-p” parameter.
For example,

iexplorer -k http://wwww.google.com

Then when user start the application, they will get a full screen IE with no addressbar, no bottons.
But please be aware that, in lock down mode there is no exit botton, so User need to press ALT+F4 to close IE.

Is there any better option?
Yes, you can use below script:

Set objArgs = WScript.Arguments
If objArgs.Count = 0 Then
WScript.Echo "No URL provided, please supply a URL to open" & VbCrLf & VbCrLf & "e.g. CScript OpenURL.vbs http://www.google.com"
wscript.quit
End If
 
Set objIE = CreateObject("InternetExplorer.Application")
 
With CreateObject("internetexplorer.application")
   .navigate "about:blank"
   With .document.parentWindow.screen
     iHeight = .height
     iWidth = .width
   End With
End With
 
objIE.StatusBar = False
objIE.Visible = True
objIE.AddressBar = False
objIE.MenuBar = False
objIE.ToolBar = False
objIE.Top = 0
objIE.Left = 0 + 8 'Move to the side just a bit to show the desktop
objIE.Width = iWidth - 16 'Shrink to let a bit of the desktop show on the sides
objIE.Height = iHeight - 28 'Shrink a bit to see the taskbar
objIE.Navigate (objArgs(0))

Then publish “IE.vba www.google.com”

创建自己的IE工具条

突发奇想,创建一个类似于google toobar的IE工具条,以便可以自己订制内容。
本来打算自己写,然后上网搜索一下"IE工具条"。结果发现已经有nnn多网站提供了自定义IE工具条。
 
这个网站提供IE工具条的简单的订制。就是你可以在网站上简单的填一些信息,就可以在线生成自己的工具条。不过似乎生成的工具条都是windows install 方式安装。体积较大。而且免费版的带了IE秀的广告。
并且订制功能似乎不太高
 
 

2006-03-23_09-11-22.jpg

Continue reading

IE与firefox的编码问题

几天前我在页面中嵌入了一个包含google的iframe。
ie浏览的情况下,部分页面会出现frame的内容不正常,也就是表现为乱码。但frame的src的地址如果用ie打开,却可以正常显示。
而在firefox等浏览器下,确是一切正常,不会出现乱码。
我专门写了一个页面,内容非常简单,如下
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</head>
<body>
<h3 class="entry-header">Google:</h3><br /><br />
<iframe name="GSearch" style="border: 1px solid #369;" width="600" height="300" src="http://www.google.com/search?q=分手后淫乱" scrolling="no" frameborder="0"></iframe>
</body>
</html>

这个页面在IE和firefox下浏览的情况就如下面2张图片显示的,

2006-01-02_18-59-36.jpg 2006-01-02_18-59-43.jpg
 
 
找了下原因。应该是ie对于iframe的src属性进行编码解析不正常引起的。
如果我将
src="http://www.google.com/search?q=分手后淫乱"
修改为
那么,在firefox和ie下,都将显示不正常。主要表现是
ie会把src后面的参数当成了scr的值的一部分来处理,同时又忽略中文
而firefox下则是中文部分无法显示。
 
所以,最根本的方法是对汉字进行unicode编码,然后传递给google,这样就不会出现问题了。而用html对汉字进行编码的方式,似乎还没有。
痛苦。。