Skip to main content

Featured

Dhadi Game - An Indian War game

Hi Friends, Today i will introduce an indian traditional board game to android user I am very interested in playing dhadi game with my friends. Now that interest  becomes as an android game Here these are the playing instructions to the dhadi game Dhadi is a traditional indian game with two players.It runs with mind power between 2 players.You can play against your friends Features: Auto Move Suggestions Interesting Graphic View to game Time taken by two players will be shown individually Total movements shows Intresting background sounds and music music and sound on/off feature No permissions are needed to this app. Download the best Dhadi for Android now! https://play.google.com/store/apps/details?id=in.mjtech.daddy

onclick anchor tag open url in bootstrap model

for example let us thisnk your anchor tag is
[source language="html"]
<a href="https://google.co.in/">Google</a>
[/source]
Now you need to open that link in bootstrap model,for this just follow this procedure

write your anchor tag as
make sure you already included jquery js file and bootstrap css file in this page

HTML COde:
[source language="html"]
<span name='https://google.co.in/' class='mapview_link'>Google</span>

<div class="modal fade in" id="RtPopupModal" role="dialog">
<div class="modal-dialog" id="RtPopupType">

<!-- Modal content-->
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal">&times;</button>
<h4 class="modal-title" id="rtpopuptitle"></h4>
</div>
<div class="modal-body" id="viewrtdata">
<i class="fa fa-spinner fa-pulse fa-3x fa-fw"></i>
</div>

<div class="modal-footer">
<!--<button type="button" class="btn btn-default" onClick="saveRCA()" >Save</button>
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>-->
</div>

</div>

</div>
</div>
[/source]
Javascript:
[source language="javascript"]
$(document).ready(function(){
$(".mapview_link").click(function(){
var url= $(this).attr("name");
$("#rtpopuptitle").html("Map view");
$('#RtPopupModal').modal('toggle');
$("#viewrtdata").addClass('no-padding');
$("#viewrtdata").css('height','75vh');
$('#RtPopupType').addClass('modal-lg');
$("#viewrtdata").html('<iframe src="'+url+'" scrolling="no" frameBorder="0" width="100%" height="100%">/iframe>');
});
});
[/source]
css:
[source language="css"]
.mapview_link{
cursor: pointer;
color: blue;
}
[/source]

Comments

Post a Comment

Popular Posts