SetPref doesn't work

  • Thread starter Thread starter Adnan
  • Start date Start date
A

Adnan

Hi Folks!

I use Office XP and have a custom home page for a public folder. I get
"Unspecified error" message when calling SetPref

Window.external.SetPref "SomeStringValue", "MyVal"

or

Window.external.SetPref("SomeRegString") = "1"

GetPref works ok.

Help!
 
First example works and the second one (onclick event) doesn't

<script type="vbscript">

Sub test()
Window.external.SetPref "SomeStringValue", "MyVal"
End Sub

' works!
test

</script>

<!-- this doesn't work -->
<div onlick="test">Test case</div>
 
Ok sorry for spaming you folks! This test case is not good. The problem
is that the onclick code was in the initially hidden absolute layer. I
don't know why it doesn't work
 
Back
Top