Posts

html - Using jQuery to display multiple maps in an iframe -

i trying create contact page on bootstrap framework have row split 2 columns. on left hand side have column containing iframe loads google map. on right hand side have column containing 4 offices addresses. default iframe loads map of head office default. i want able click on 1 of offices , iframe content change display relevant mapping information. the html on page follows :- <section id="contact-info"> <div class="center"> <h2>how reach us?</h2> <p class="lead">lorem ipsum dolor sit amet, consectetur adipisicing elit</p> </div> <div class="gmap-area"> <div class="container"> <div class="row"> <div class="col-sm-5 text-center"> <div class="gmap"> <iframe id="gmaps" frameborder="0...

android - NavigationDrawer activity doesn't keep keyboard's state on orientation change -

i created sample project using android studio: create new project -> navigation drawer activity. in testing purposes, content fragment contains single edittext widget. in androidmanifest have line main activity: android:windowsoftinputmode="stateunchanged|adjustresize" odd behavior: if launch app in portrait mode, open soft keyboard (by tapping on edittext ) , rotate device landscape mode... keyboard disappears reason. if create same project no navigationdrawer (just activity + fragment) keyboard remains visible (as expected stateunchanged property). did know reason of such behavior? want keep keyboard expanded after switching landscape mode (if opened in portrait). can track keyboard state , via special flag restore visibility when needed programmatically, know. wonder why native tools don't work navigationdrawer .

jquery - an unwanted page refresh when executing simple query code -

this question has answer here: prevent link reload page 5 answers i want learn jquery can't figure out why page keeps refreshing right after on-click event done. the goal code change background of divresult. works split seconds before page refreshed. tried on different browsers , different computers think it's code. this jquery code: $(document).ready(function(){ $('#button').on('click',function(){ var kleur = "#" +$('#text').val(); $('#divresult').css({'background-color': kleur}); }); }); and html file: <!doctype html> <html> <head lang="en"> <meta charset="utf-8"> <script src="jquery_javascript_library_v1.11.3.js"></script> <script src="script.js"></script> <link href=...

Does Visual Studio 2015 RC work in parallel with Visual Studio 2013 -

i'm having question since month , i'm not able test it, want ask here if have met situation. since there no official release of new visual studio 2015 , it's on rc ,i'm interested in know if vs 2015 , vs 2013 work together? code "infected" if both sides commit together? in advance! in theory yes, in practice no (or @ least results may vary). vs designed side side installations. consultants common have multiple versions of vs installed match environment of client. that being said, rc pre release software , bugs expected. nobody can guarantee won't have problems. vs huge , complex codebase. throw in number of permutations of possible plugins , extensions environment conditions , there chance of breaking. because didn't blow on else's system doesn't mean won't have problems. when installed vs 2015 ctp6 few months ago broke install of vs 2013 on same machine. vs 2015 ctp6 installed without error trying "login...

templates - Liferay structure. Image not uploaded in IE 8-10 -

have simple structure template web content display: <dynamic-element datatype="image" fieldnamespace="wcm" indextype="keyword" name="image_1" readonly="false" repeatable="false" required="false" showlabel="true" type="wcm-image" width=""> <meta-data locale="en_us"> <entry name="label"> <![cdata[image 1]]> </entry> <entry name="predefinedvalue"> <![cdata[]]> </entry> <entry name="tip"> <![cdata[]]> </entry> </meta-data> </dynamic-element> and template: <#if image_1.getdata()?has_content > <div><img alt="image 1" src="${image_1.getdata()}" /></div> try upload image, ie freezes without error. works in other browsers. idea? ...

Sort list from a specific index value in python -

i want sort python list specific index. here want achieve. consider list al = [1,2,4,3] want is, start last index, go , swap number smaller last index, i.e 2 @ index 1. list [1,3,4,2] but, after swapping want sort sub-list after swapped index. instead of [1,3,4,2] want [1,3,2,4] there way in python sort sub-list? right if use sort method particular index example: al[2:].sort() creates new list instead of changing same. you use sorted() on slice , assign result slice: al[2:] = sorted(al[2:])

php - Send Notification when new post is published in wordpress -

right now, sending notification android application users when new post created in wordpress. issue that, sends notification when draft created , post updated. condition should put send notification when new post published ? here code, located in wp-admin/includes/post.php function _wp_translate_postdata( $update = false, $post_data = null ) { if ( $update) $post_data['id'] = (int) $post_data['post_id']; $post_id = $post_data['id']; global $wpdb; $sel2 = mysql_query("select * gcm_users"); while($data1 = mysql_fetch_assoc($sel2)) { $key = $data1['gcm_regid']; include_once '../blogdroid/config.php'; include_once '../blogdroid/gcm.php'; $gcm = new gcm(); $sel = mysql_query("select * ".$wpdb->prefix."posts id='$post_id'"); $data = mysql_fetch_assoc($sel); ...