Skip to main content

Posts

input[type=range] slow on Microsoft Edge / Internet Explorer

Using a range input in MS Edge/IE browser appears to run slow when dragging the input thumb. All other browsers behave well. Is it a common MS Edge/IE problem, or is something wrong with my HTML/CSS? HTML:
Recent posts

Changing value from EditText on a Fragment in BackStack

Im trying to change the Text from a EditText in a Fragment that is present in the BackStack. I navigate through 4 Fragments, and when im in the last, i want to call a method present in the first fragment of the backstack to write something in a EditTextBox in that same fragment i have a button in the last fragment that when i press i do this: ((FragmentABC) getFragmentManager().findFragmentByTag("package.FragmentABC")).resetPurchaseValue(); getFragmentManager().popBackStack(getFragmentManager().getBackStackEntryAt(0).getName(), FragmentManager.POP_BACK_STACK_INCLUSIVE); and the in FragmentABC i have a method like so: public void resetPurchaseValue(){ if(etValue!=null) etValue.setText("0.00"); } Using breakpoints i can see that this method is called, but when the fragment appears in screen the EditText doesn't have the value "0.00", but the original value written before the navigation through the fragments.

Connect MySQL distant to codename one

i saw in the forum and on the web it's possible to connect mysql with webserver, but i like to juste connect codename one juste with standard MySQL connector, it's possible ? MySQL it's on distant server and my provider can't make to me a connector webservice Thank you very mush for your help Solved There is some information here: https://www.codenameone.com/blog/connecting-to-a-mysql-database.html . You will be using the cn1lib CN1Xataface. There is no standard MySql connector for Codename One that I'm aware of.

react-native drag and drop multiple items

Im trying to make two circles that can drag and drop with react-native. I could have created one circle that can drag and drop, but dont know how with two circles individually. here is the code for one circle that can drag and drop, constructor(props){ super(props); this.state = { pan : new Animated.ValueXY() //Step 1 }; this.panResponder = PanResponder.create({ //Step 2 onStartShouldSetPanResponder : () => true, onPanResponderMove : Animated.event([null,{ //Step 3 dx : this.state.pan.x, dy : this.state.pan.y }]), onPanResponderRelease : (e, gesture) => {} //Step 4 }); } and this is for image renderDraggable(){ return ( Drag me! ); } Solved import React, { Component } from 'react'; import { StyleSheet, Text, View, Image, // we want to use an image PanResponder, // we want to bring in the PanResponder system Animated ...