Posts

html - Video thumbnail that links to other page for playing -

i have small thumbnail video file. user can hover on thumbnail , lights up. when user clicks thumbnail video, should lead him category page video can played may user choose so. now code lets video played directly in thumbnail upon clicking, thats not want. is possible have user click video thumbnail "video player look" , video not play, instead user directed page can play video in full screen?? got link working, problem have video should not play in thumbnail user can see "video player controls" knows video can view in category page. html: <div class="videofile"> <video controls=""> <source src="https://commons.wikimedia.org/wiki/file%3aanimaci%c3%b3n_de_escanciar.ogv" type="video/ogv"</video> </div> css: .videofile:hover { opacity:.3 } fiddle: fiddle a video control never used sure overkill - add play button watermark abo...

authentication - LDAP: error code 49 - 80090308: LdapErr: DSID-0C0903A9, comment: AcceptSecurityContext error, data 52e, v1db1 -

ldap: error code 49 - 80090308: ldaperr: dsid-0c0903a9, comment: acceptsecuritycontext error, data 52e, v1db1 i know "52e" code when username valid, password invalid. using same user name , password in apache studio, able establish connection succesfully ldap. here java code string username = "*******"; string password = "********"; string base ="dc=psltestdomain,dc=local"; string dn = "cn=" + username + "," + base; hashtable env = new hashtable(); env.put(context.initial_context_factory,"com.sun.jndi.ldap.ldapctxfactory"); env.put(context.provider_url, "ldap://******"); env.put(context.security_authentication, "simple"); env.put(context.security_principal, dn); env.put(context.security_credentials, password); ldapauthenticationservice ldap = new ldapauthenticationservice(); // ldapcontext ctx; dircontext ctx = null; try { ...

javascript - How to avoid repeating http requests angularJS -

is there way in angular avoid repeating http requests? can see in code above i'm making call retrieve detailed info of product. fact call associated button... avoid repetitive calls. if have clicked on detailed-product-button don't need make call again service....the proper way load info once , show , hided; don't know how manage on angular. (also don't want load detail product scrach product, want loaded on user's clic demand, once) $scope.seeinfo= function(id){ $http.get('/shop/getdetailinfo/'+id). success(function(data, status) { $scope.info = data.detailinfo; if (data.detailinfo>0) $scope.showdetails=true; else $scope.showdetails=false; }); }; you can store every item user request in factory , check if content in factory before ajax call. $scope.seeinfo= function(id){ var detailinfo = somefactory.get(id); //get item data factory if exist if (angular.isundefi...

html - font-size with display:inline-block fails -

i have problem css font-size cannot figure out. problem: simple website footer. footer consists of 2 columns, each column links. columns based on display:inline-block. the font-size set in rem , works fine on desktop. on mobile, ie android chrome, font-size not scale: text gets unreadable tiny, other text ie in p-tags readable expected. if remove display:inline-block footer-nav-column text scales expected loss of column-layout. i tried float columns too, text scales tiny hieroglyphs. what's wrong here? plz ;-) html: <footer class="footer-nav"> <div class="layout-center"> <ul class="footer-nav-column"> <li><a href="/contact">contact</a></li> </ul> <ul class="footer-nav-column"> <li><a href="/legal">legal</a></li> <li><a href="/privacy">privacy</a></li> ...

c# - cannot send email through button asp.net -

im planning send email image attached receiver. when click on button, nothing happens. error or success note not visible. can me out on this? thank you. here codes: aspx <%@ page title="" language="c#" masterpagefile="~/admin/site1.master" autoeventwireup="true" codebehind="submitpurchaseorder.aspx.cs" inherits="islandgas.admin.submitpurchaseorder" %> <asp:content id="content1" contentplaceholderid="title" runat="server"> </asp:content> <asp:content id="content2" contentplaceholderid="content" runat="server"> <form id="form1" runat="server"> <div> <table style=" border:1px solid" align="center"> <tr> <td colspan="2" align="center"> <b>purchase order supplier</b> </td> </tr> <tr> <td> gmail username: </td> ...

jquery - Show link only in JSON -

i have following json string - { "fruits":[ { "name":"apples", "id":"1" }, { "name":"bananas", "id":"2" }, { "name":"oranges", "id":"3" }, { "name":"pears", "id":"4" }, { "name":"grapes", "id":"5" }, { "name":"strawberries", "id":"6" } ], "links":[ { "source":"1", "target":"2" }, { "source":"1", "target":"3" }, { "source":"1", "ta...

java - mousePressed method won't respond -

i'm trying basic: write program draw line on frame between 2 points: point mouse pressed on , point mouse released on. i have these classes: import java.awt.graphics; public class line implements drawable{ private int x1,x2,y1,y2; public line( int x1,int x2,int y1,int y2){ this.x1=x1; this.x2=x2; this.y1=y1; this.y2=y2; } public void draw(graphics g){ g.drawline(x1, y1, x2, y2); } } import java.awt.graphics; public interface drawable { public void draw(graphics g); } import java.awt.graphics; import java.awt.point; import java.awt.event.mouseadapter; import java.awt.event.mouseevent; import java.util.arraylist; import javax.swing.jpanel; @suppresswarnings("serial") public class linepanel extends jpanel { arraylist<line> lines = new arraylist<line>(); public linepanel() { addmouselistener(new mouseadapter() { point p1, p2; @override ...