Hi,
Is it possible to use a method from a webservice in a javascript?
I'm using a script that makes my picture sliding over my page. I call the picture in a method in a webservice.
1 <WebMethod()> _
2 Public Shared Function GetImages(ByVal map As String, ByVal title As String) As String()
3 Dim myImages() As String = Nothing
4 Try
5 Dim mySlides() As String = Directory.GetFiles(HttpContext.Current.Server.MapPath("~\Documents\Images\" & map & "\"))
6 myImages = New String(mySlides.Length - 1) {}
7 For i As Integer = 0 To mySlides.Length - 1
8 myImages(i) = "<img src='~\Documents\Images\" & map & "\" & Path.GetFileName(mySlides(i)) & "' border=1>"""
9 Next
10
11 Catch ex As Exception
12 DataAccessExceptionHandler.HandleException(ex.Message)
13 End Try
14 Return myImages
15 End Function
Can somebody help me?
Greetz