Football Fans: Download the 2012 Schedule App from Google Play!


Go Back   Android Forums > Android Development > Application Development

Application Development Dev Lounge for the Coder Folks



Reply
 
LinkBack Thread Tools
Old January 12th, 2012, 03:36 AM   #1 (permalink)
New Member
 
Join Date: Jan 2012
Posts: 2
 
Device(s):
Thanks: 0
Thanked 0 Times in 0 Posts
Post jquery modal not getting displayed in android emulator

I have a html page which shows modal in the web browser. I'm integrating that html in Android app using WebView. In emulator the modal is not getting displayed.
Please let me know if I'm doing anything wrong here or if any config is needed?
The below are the code snippets:


<div style="width: 1300px; left: 0px;" class="belt" id=purchase-modal >
<ul>

</ul>
</div>

<div id="purchase-modal-content">
<article id="innerMainbox" >

</article>

</div>

function entitlementResponse(status, response) {
if (response.status) {
var res = response.message.length;
tempEntitlementResp = response.message;
$("#purchase-modal ul").empty();
for ( var i = 0; i < response.message.length; i++) {
var assetData = response.message[i];
var myStringAr = [];
myStringAr.push('<li class="panel" style="float: none; position:absolute; left:');
myStringAr.push(i*120);
myStringAr.push('px;"><a class="purchase newIn" href="javascript:;" onClick="launchVideo('+ i + ')" >');
myStringAr.push('<img class="ImgSize" src="');
myStringAr.push(assetData.image_url);
myStringAr.push(' "</a><br></li>');
$("#purchase-modal ul").append(myStringAr.join(""));
}

}
}


jQuery(function ($) {
// Load dialog on page load
//$('#basic-modal-content').modal();
// Load dialog on click
$('#purchase-modal .purchase').click(function (e) {

$('#purchase-modal-content').modal();
setTimeout( function() {
$("#gallerya li").mouseover(function() {
$("div",$(this)).show();
$("img",$(this)).css("background", "#000");
}).mouseout(function(){
$("div",$(this)).hide();
$("img",$(this)).css("background", "");
}).each(function() { $("div",$(this)).hide()});
} , 200);

return false;
});
});

ygardas is offline  
Reply With Quote
Sponsors
Reply

Bookmarks

Tags
android 3.1, jquery


Go Back   Android Forums > Android Development > Application Development User CP
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -5. The time now is 12:07 PM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
Custom vBulletin Skins by: Relivo