Hi Hussein
Thanks for the example. When I use it in a menu command, a dialog box pops
up asking for my user name and password for my corporate proxy server. At
this point XMLMind freezes and the only thing I can do is force quit.
Using the F2 key, I get the dialog box where I can enter my name etc and
the programme carries on as you would expect. I assume the username and
password are then cached because I can then use the menu command.
Cheers
Steve
<menu label="Test">
<insert />
<item command="urltest" label="urltest" />
</menu>
>
> <command name="urltest">
> <macro>
> <choice>
> <sequence>
> <test xmlns:url="java:java.net.URL"
> xmlns:uu="java:com.xmlmind.xmledit.util.URLUtil"
>
> expression="uu:exists(url:new('http://www.xmlmind.com/xmleditor/index.html'))"
> />
> <command name="alert" parameter="Found"/>
> </sequence>
> <command name="alert" parameter="Doesn't exist"/>
> </choice>
> </macro>
> </command>
>
> <binding>
> <keyPressed code="F2" />
> <command name="urltest" />
> </binding>
>