Second Bootstap Modal ajax result to show in first modal
Vote count: -2 I want to display form 2 data (which is a bootstrap modal) to show in form 1 (which is also a bootstrap modal) When i save form 2 data it save in db but reload page but i want to display with in form 1. First question is, am i trying something impossible? form 1 and + sign to open sen...
Scrapping data which loaded when you select something
Vote count: 0 I need to scrape car makes and model. Now I can scrape car makes select option list but can't scrape car models select option list because it is loaded when you select car make. Maybe you have any ideas how I could get car models select options list which is loaded when you select car ...
Can't run CUDA + OpenGL program on Mac OS X El Capitan
Vote count: 0 i am writing a program that includes OpenGL and CUDA codes at the university and i can run it with Ubuntu Linux. The program has got many dependencies so i use a makefile and when i'm at the university with Linux i have no problems. Yesterday i tried ru ing it on my MacBook at home and...
inheritance from int and increase in python
Vote count: 0 I try to inherit from int and write the increase() function for it. import math class Counter(int): def increase(self): self += 1 # it should be less then 2**32 maximum = math.pow(2, 32) if self > maximum: self -= maximum counter = Counter(10) print counter counter.increase() print cou...
Camera moves incorrectly
Vote count: 0 I try to a camera pa ed by touch on the Android devices. It works but the camera moves differently. On one touch movement it follows too quickly, on another touch movement - too slowly.Where I took a bug. How to fix it?It's my code for sensor screen: private void updatePDA() { if(Input...
React - Is there a better way to use conditionals inside jsx?
Vote count: 0 I've been lea ing how react for the past few weeks and one thing that I don't like is that I have to use te ary operator for if else inside the render function. Something like : function render() { retu ( {x==="Let's go" ? <Go /> : <Hold on />} ) } Is there a way I can use traditional ...
Need a vertical mega menu like http://www.lynda.com/
Vote count: 0 I have a WPLMS site at http://edudelight.in/ I need to have a vertical mega menu under the "All Courses" menu similar to http://www.lynda.com/ > "Library" menu. At first I tried with Max Megamenu plugin, but there a mega menu can only be created at the top level. As I said, I need the ...
PHP MySQL SSL certificate
Vote count: 0 I have a vb.net software and I shall use php code on my website to make a user for the customer. I have tried many codes but I always get the same error: Wa ing: mysqli_ssl_set() expects parameter 1 to be mysqli, null given in xxxxxxxxxxx/makeuser/insert.php on line 12 Wa ing: mysqli::...
Refresh page when script is triggered
Vote count: 0 I use URL to remove products outside a cart. For this I use the following HTML: <button type="button" class="btn btn-link btn-xs btn-remove-from-cart" onclick="removeItem('p','{$num}')"><i class="fa fa-times"></i></button> When clicking on the button, the following script is triggered:...
Windows forms editor keeps recreating an event method
Vote count: 0 I have a C# application with a custom control. The custom control class looks like this: public partial class DetNumericUpDown : UpDownBase { public event EventHandler ValueChanged; /* some public methods */ public DetNumericUpDown() { /* ... */ } } Then I have several instances of Det...
sum of columns no fetching from database
Vote count: 0 Here i want to get the sum of balance of selected customer_id.for example here the customer_id of 19 is having an sum of 120 but the result is not fetching. here is my controler public function make_payment() { $data['active_mn']=''; $data['active_mn']=''; $data['result']=$this->Accoun...
Why does mysqli_fetch_assoc generate an error
Vote count: 0 This question has already been asked, and I've followed the answers but I'm still getting the error 'mysqli_fetch_assoc() expects parameter 1 to be mysqli_result' My code $host = "localhost"; $user = "my_user"; $user_pass = "my_password"; $dbase = "my_database"; $co = mysqli_co ect($ho...
Storing pairs in Multiset ,following a specific condition
Vote count: 0 I want to store co-ordinates of points in a multiset.I know that multiset stores them in sorted order but I want to specifically store them as (x1,x2 are x co-ordinates of 2 points) if x1>x2 then x2 should go before x1 and if they are equal then store them based on y co-ordinate. How c...