Posts

jquery - Cross-fade div on mouse hover -

i want background image change when mouse hovers on each menu item. code works but, when images fadeout , fadein , there white flash in between. remove it, want images cross-fade instead of fading out , in. how can achieve this? $(document).ready(function() { $(".home-menu-list li a").mouseenter(function() { var bannerclass = '#home-banner-' + $(this).attr('id'); $('.active-banner').not(bannerclass).stop().fadeout().removeclass('active-banner'); $(bannerclass).stop().fadein().addclass('active-banner'); }); }); .main-banner-wrapper img { height: 50px; width: 100%; object-fit: cover; } <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script> <div class="container-fluid "> <div id="home-banner-1" class="active-banner"> <div class="main-banner-wrapper"> <img...

Handling PHP POST variable from other php file and managing $_SERVER["PHP_SELF"] -

i stucked @ problem can't figure out why isn't working. i handling post variable php file: $temp_variable = $_post['activity']; after code process $temp_variable, try make button (still in same php file handled $_post['activity']) echo '<form action="'.htmlspecialchars($_server["php_self"]).'" method="post">'; echo '<input type="submit" value="ok" name="process_more"/>'; echo '</form>'; then try catch ok button press, start activity: if ($_server["request_method"] == "post") { $query = "delete table1 id = 5"; mysqli_query($conn,$query) } my problem "delete from" part of code executes immediately, before user press "ok" button. what can problem ? check more specific form. if(isset($_post['process_more'])){ if ($_post['process_more'] == 'ok') {...

javascript - How do I return the response from an asynchronous call? -

i have function foo makes ajax request. how can return response foo ? i tried return value success callback assigning response local variable inside function , return one, none of ways return response. function foo() { var result; $.ajax({ url: '...', success: function(response) { result = response; // return response; // <- tried 1 } }); return result; } var result = foo(); // ends being `undefined`. -> more general explanation of async behavior different examples, please see why variable unaltered after modify inside of function? - asynchronous code reference -> if understand problem, skip possible solutions below. the problem the a in ajax stands asynchronous . means sending request (or rather receiving response) taken out of normal execution flow. in example, $.ajax returns , next statement, return result; , executed before function passed success callback ca...

VSTO, Outlook add-ins, and Visual Studio 2015 -

starting visual studio rc, visual studio 2015 appears no longer support office add-in project types visual studio tools office (vsto). lots of googlin' , questions pms in ms blogs have revealed no useful information; perhaps other in community know more. opening vsto project yield "(incompatible)". so: what status of vsto , visual studio 2015 is there workaround open old project types in vs 2015 i don't have 2013 anymore because wiped machine... do have community edition of vs installed? try install https://aka.ms/getlatestofficedevtools .

c# - Check if a DayOfWeek is within two specified DayOfWeek's -

i have dayofweek , need check see if day between 2 other dayofweek variables. for example: dayofweek monday = dayofweek.monday; dayofweek friday= dayofweek.friday; dayofweek today = datetime.today.dayofweek; if (today between monday , friday) { ... } note: these days inclusive. in case, if day monday , tuesday, wednesday, thursday, , friday , it's valid. the thing can think of doing massive if statement in different method, perhaps extension method , isn't elegant. edit here example of requirements: public enum recurringmodes { minutes, hours } public recurringmodes recurringmode { get; set; } public int recurringvalue { get; set; } ... public ienumerable<datetime> allduedatestoday() { //get current date (starting @ 00:00) datetime current = datetime.today; //get today , tomorrow's day of week. dayofweek today = current.dayofweek; dayofweek tomorrow = ...

java - Can't set value on object's variable -

what trying patient id,name,age,disease window 4 text field , search patient details using patient using id.i completed whole task value couldn't save on object's variable though not getting errors.please guys me error.thanks in advance here code: /* * change license header, choose license headers in project properties. * change template file, choose tools | templates * , open template in editor. */ package hospital.management; import java.awt.*; import java.awt.event.*; import javax.swing.*; import sun.security.pkcs11.wrapper.constants; public class hospitalmanagement { public static void main(string[] args) { new run().setvisible(true); } } class patient{ private string name,disease ; int p_id,p_age; public void get_name(string n){ name=n; } void get_id(int id){ p_id=id; } ...

c# - Integrating articulate storyline in asp.net web site -

i new e-learning domain , may using incorrect terminology. our coaching team has been using articulate storyline create interactive tutorials. want integrate these tutorials our asp.net web site. this not lms. mean integration is should able play tutorial, should able track progress , should able capture user response. think need implement scorm player in asp.net web site. can point me online resources me in capturing user response? when publish project , opt lms , use scorm-2004 option, generates package , can see there js files (lms.js , lmsapi.js) generated. need write code in js files capture data? i can think of following options: use third party library scorm cloud read scorm specification guide, learn protocol , implement own scorm player user dotnetscorm open source project baseline , work there if can guide me or point me right direction/resources helpful. scorm javascript-based, need intercept javascript calls, use own backend code (ajax/xmlhtt...