Hi all,
	
	
	
	
	
	
	
		
			
			
			
			
			
		
	
	
	
		
	
	
		
	
I think everybody knows about executehtml2 function. Fuction details are given above.
i use this function to view sql table data in html table format with help of webview and its working fine for me. and also through this iam calling an asp page at click of each cell. and this is also works fine for me.
Now i dont want to call that data from web via asp page.
I needs to know is it possible to start another activity with a webview by clicking any cell's Data or html table data of present webview?
i mean to say that at present it is :
activity with webview >>>>>> to>>>>>>cell data with html page link
now i need:
Clicking Cell Data >>>>>>> to >>>>>> activity with webview link
need help ..............!!!!! pls
Thanks & regards
Manoj Kumar
			
			
			
				B4X:
			
		
		
		Sub ExecuteHtml2(SQL As SQL, Query As String, StringArgs() As String, Limit As Int, Clickable As Boolean, TextSize As Int) As String
    Dim Table As List
    Dim cur As Cursor
    Dim HtmlCSS2 As String
    HtmlCSS2 = "table {width: 100%;border: 1px solid #cef;text-align: left;counter-reset: serial-number; }" _
    & "td:first-child:before {counter-increment: serial-number;content: counter(serial-number); font-size:" & TextSize & "px; }" _
    & " th { font-size:" & TextSize & "px; font-weight: bold;    background-color: #acf;    border-bottom: 1px solid #cef; }" _
    & "td,th {    padding: 4px 5px; }" _
    & ".odd {background-color: #def; } .odd td {border-bottom: 1px solid #cef; }" _
    & "a { font-size:" & TextSize & "px; text-decoration:none; color: #000;}"
    If StringArgs <> Null Then
        cur = SQL.ExecQuery2(Query, StringArgs)
    Else
        cur = SQL.ExecQuery(Query)
    End If
    If Limit > 0 Then Limit = Min(Limit, cur.RowCount) Else Limit = cur.RowCount
    Dim sb As StringBuilder
    Log("ExecuteHtml: " & Query)
    sb.Initialize
    sb.Append("<html><body>").Append(CRLF)
    sb.Append("<style type='text/css'>").Append(HtmlCSS2).Append("</style>").Append(CRLF)
    sb.Append("<table><tr>").Append(CRLF)
    sb.Append("<th>SL</th>")
    For i = 0 To cur.ColumnCount - 1
        sb.Append("<th>").Append(cur.GetColumnName(i)).Append("</th>")
    Next
    sb.Append("</tr>").Append(CRLF)
    For row = 0 To Limit - 1
        cur.Position = row
        If row Mod 2 = 0 Then
            sb.Append("<tr>")
        Else
            sb.Append("<tr class='odd'>")
        End If
        sb.Append("<td></td>")
        For i = 0 To cur.ColumnCount - 1
            sb.Append("<td>")
                sb.Append("<a href='http://www.manwin.in/dr.asp")
                sb.Append("'>").Append(cur.GetString2(i)).Append("</a>")
                    
            sb.Append("</td>")
        Next
        sb.Append("</tr>").Append(CRLF)
    Next
    cur.Close
    sb.Append("</table></body></html>")
    Return sb.ToString
End SubI think everybody knows about executehtml2 function. Fuction details are given above.
i use this function to view sql table data in html table format with help of webview and its working fine for me. and also through this iam calling an asp page at click of each cell. and this is also works fine for me.
Now i dont want to call that data from web via asp page.
I needs to know is it possible to start another activity with a webview by clicking any cell's Data or html table data of present webview?
i mean to say that at present it is :
activity with webview >>>>>> to>>>>>>cell data with html page link
now i need:
Clicking Cell Data >>>>>>> to >>>>>> activity with webview link
need help ..............!!!!! pls
Thanks & regards
Manoj Kumar
			
				Last edited: 
			
		
	
								
								
									
	
								
							
							 
				 
 
		 
 
		 
 
		 
 
		 
 
		