Hi
I have a WPF WebBrowser which loads a HTML page with vbScript functions on it from intranet I want to execute one of these functions and retrieve the return value.
Unfortunately I have no ability to change the the intranet page
The function returns a boolean value and is as follows
Function IsAltered(strMode)
' This procedure checks to see if Changes have been made without saving.
Dim objItem, blnIsAltered
IsAltered = False
blnIsAltered = False
For Each objItem In window.document.all
If (objItem.tagName = "INPUT" And objItem.className <> "Lbl" And objItem.className <> "NAF" And objItem.className <> "PreDispNoChange") Or _
objItem.tagname = "SELECT" Or objItem.tagname = "TEXTAREA" Then
If Left(objItem.Id, 3) <> "hid" And objItem.Type <> "hidden" And objItem.Style.Visibility <> "hidden" Then
If HasValueChanged(ObjItem.Id, Trim(objItem.Value)) Then
blnIsAltered = True
Exit For
End if
End If
End If
Next
IsAltered = blnIsAltered End Function
Can somebody suggest a way of implementing this
Thanks
Regards
Col