I am trying show a pop up dialog with an image inside from a webview when clicked. my problem is that the pop up dialog is not being pop up but it open full screen inside the webview or it open in a browser. is it possible to make pop up inside webview ? i used the following websettings but it proved fruitless.
WebSettings settings = wvcontent.getSettings();
settings.setSupportMultipleWindows(true);
settings.setPluginsEnabled(true);
settings.setAllowFileAccess(true);
settings.setJavaScriptEnabled(true);
this is my html content.
html_content =
"<strong>"+title+"</strong>"
+ " <br><br><img src='"+single_image+" width='300' height='211'>"
+ "<br> "
+ ""+ content + "<br>"
+ str
+ "<div id='popup' style='display:none'>"
+ "<a id='popup-close' href='' class='button'>"
+ "Fermer"
+ "</a><p><img id='image-placeholder' width='300px';height='250px' src=''>"
+ "<script src='http://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.js'></script>"
+ "<script type='text/javascript'>
$(document).ready( function() {
$('.popup-open').click( function(e)"
+ "{$('#popup:visible').hide();
e.preventDefault();
$('#image-placeholder').attr('src', $(this).attr('href'));"
+ "$('#popup').fadeIn('fast');});
$('#popup-close').click( function(e) {e.preventDefault(); $('#popup').fadeOut('fast');});});"
+"</script>";
can someone provides a hint please ?