Posts

javascript - rich text with non editable content, angularjs -

i use directive textangular format email notification text , stuck while task when need add non editable html inside rich text. added custom directive on textangular directive. custom directive replace special characters in string html span tags param contenteditable='false' , param doesn't work , content still editable. in case have 2 questions: how can setup non-editable html inside content textangular directive? how can concat variable string desire place (currently concats end of string) i appreciate help. plunker problem my custom directive: app.directive('removemarkers', function () { return { require: "ngmodel", link: function (scope, element, attrs, ngmodel) { element.bind('click', function (e) { var target = e.target; var parent = target.parentelement; if (parent.classlist.contains('label-danger')){ parent.remove() ...

css - HTML: making iframe height fixed -

i have page included inside iframe on domain. issue iframe loaded vertical scrollbar. checked markup , here how include iframe: <iframe class="plugin-frame js-plugin-frame" frameborder="0" marginheight="0" marginwidth="0" width="100%" height="auto" sandbox="allow-scripts allow-forms allow-same-origin allow-popups allow-top-navigation" src="https://mydomain/mypage.html"></iframe> if change above to: <iframe class="plugin-frame js-plugin-frame" frameborder="0" marginheight="0" marginwidth="0" width="100%" min-height="600px" sandbox="allow-scripts allow-forms allow-same-origin allow-popups allow-top-navigation" src="https://mydomain/mypage.html"></iframe> it works. is there can on page make work. need rid of vertical scrollbar , have no control on third party markup. there needed in markup of i...

javascript - Angular 4 show popup onclick by other component -

i'm struggling problem , can't figure out. need show popup div situated in page clicking menu entry in navbar.component. i added property "show" in popup prints "show" class on div using ngclass (with if) directive. can working if action button inside popup component cannot print show class clicking on component. property in object updated class not printed. i'm using angular 4 ng-bootstrap. tried both services , parent/child emit event. this is situation: app.component.html <app-nav-bar></app-nav-bar> <app-login></app-login> <router-outlet></router-outlet> <app-footer></app-footer> navbar.component.html ... <button class="dropdown-item" (click)="showpopup()">login</button> ... navbar.component.ts import {component, eventemitter, input, oninit, output} '@angular/core'; @component({ moduleid: module.id, selector: 'app-nav-bar', ...

vba - Retrieving weights from scales to excel -

Image
i have connected weighing scale pc via rs-232 usb converter cable. goal create command button in excel 2007 place weight scale selected cell. got work using following code in userform. private sub xmcommcrc1_oncomm() static sinput string dim sterminator string dim buffer variant ' branch according commevent property select case xmcommcrc1.commevent case xmcomm_ev_receive buffer = xmcommcrc1.inputdata ' use input property mscomm sinput = sinput & buffer if worksheets("settings").range("terminator") = "cr/lf" sterminator = vbcrlf else sterminator = vbcr end if if right$(sinput, len(sterminator)) = sterminator xmcommcrc1.portopen = false sinput = left$(sinput, len(sinput) - len(sterminator)) select case left$(sinput, 2) case "st", "s " activecell.value = cdbl(mid$(sin...

Protractor + Appium hide android keyboard in chrome -

macos sierra 10.12.4 node - v6.9.5 appium - 1.6.0 protractor - 5.1.2 i new using appium , got basic setup working android emulator running google chrome browser. problem i'm running soft keyboard believe in way simple action logging in doesn't work off bat b/c when types in credentials keyboard in way doesn't click sign in button. workaround found clicking text field after sending keys rid of soft keyboard. hoping there easy way disable keyboard automated testing. other option hope don't have overloading sendkeys function check if it's on mobile , click textfield after sending keys. or suggestions on how solve issue appreciated. possible solution i have found extendedwebdriver info protractor api reference page i'm having difficulty finding examples of implementing use function hidesoftkeyboard alright couldn't work using protractors implementation of extendedwebdriver. said can use wd-bridge // configuring wd in onprepare // wdbri...

php - Database Design for students marks per paper -

earlier i've asked question attendance system . in same system, i'm having separate table store students marks. now, before question show i've done far: in every semester there 2 papers. there 6 semesters complete course. in first paper student can have maximum marks of 75 , second paper marks of 25. now, i've build simple table students_marks follows: name | type ------------|------- marks_id | int s_id | int sem_id | int sessionyear | varchar(11) paper_one | decimal(11,0) paper_two | decimal(11,0) now, marks_id primary key , while s_id , sem_id foreign keys 2 other tables student_info , semester . to output marks obtained this: select * `student_marks` join `student_info` on student_marks.s_id = student_info.s_id student_info.deleted = ? , `sem_id` = ? , `sessionyear` = ? order `class_roll` what didn't realize on 5th , 6th semester there 4 papers each paper maximum marks of 50. if add 2 more column above table re...

iphone - iOS - Wireless Ad-hoc distribution -

i used ad-hoc provision profile export ipa manifest file testers download web server. uploaded .ipa, .plist, images , index.html server location, like this: /var/www/html/apps/demopad.ipa /var/www/html/apps/manifest.plist /var/www/html/apps/image.png /var/www/html/apps/image-full.jpg /var/www/html/apps/index.html i send url testers ( https://www.example.com/apps/index.html ) but when open in iphone browser (safari) download, prompts message "cannot connect www.example.com" here plist contents <?xml version="1.0" encoding="utf-8"?> <!doctype plist public "-//apple//dtd plist 1.0//en" "http://www.apple.com/dtds/propertylist-1.0.dtd"> <plist version="1.0"> <dict> <key>items</key> <array> <dict> <key>assets</key> <array> <dict> <key>kin...