back soft

مطالب مرتبط با «side» در back soft | نویسنده: استخدام کار

how to put fragments with different size inside TabLayout inside a fragment

Vote count: 0 hello I'm having difficulties in putting two scrollable fragments in tablayout and using viewpager , inside a main fragment, each fragment in tab layout has different height , but viewpager wont let me use wrap-content and i should set an specific height. SO I WANT TO KNOW HOW TO SCROLL MY FRAGMENTS INSIDE TABLAYOUT INSIDE A MAIN FRAGMENT. here is my screen shotsenter link description here asked 8 secs agopersian Let's block ads! بخوانید...

ادامه مطلب

Is the Activity onCreate called with each NewInstance of a fragment inside it?

Vote count: 0 I want to generate a new Fragment with the next object in a LinkedList. When a user clicks next I want to reassign a global reference to the next one in the LinkedList and create a fragment with it. Problem Each time the user clicks next, the object will only be reassigned to the 2nd object in the LinkedList even if there is 5 objects in the LinkedList ie. .get(1) Possible cause I am thinking Because I get the first object in my LinkedList in the Activity onCreate parentFlow.getChildElements().get(0) When the user clicks Next, the global reference is set to .get(1) in the Linkedlist, but when .newInstance() method gets called, the parent activity onCreatecalled again? (reassign...

ادامه مطلب

How to handle variable inside javascript

Vote count: 0 I am trying to amateurishly create an autocomplete input field with jquery. My first step is to get some results displayed below the input field by calling a php script on keyup with the load function of jquery. I dont know how silly this attempt is, but i think i am almost there. However, I am stuck during passing the keyup variable to the script. Actually I can passa a variable but i need to use the keyup variable to pass. For clarity on the question please see the code; function getres(){ $('document').ready(function(){ var x = document.getElementById("cit"); $('#resdiv').load('results.php?cit=x.value'); }); } PHP file being called results.php I m able to get the results in ...

ادامه مطلب

Handle not found from API call on server-side Redux

Vote count: 0 I am using Node React/Redux for API development. My application doesn't show me the changes that I created for new routes. I think there is cache problem but not sure why my changes show me Not Found. I found an action that is already there and ruing fine, so i copied it and renamed and ran it but it didn't. Please suggest is there any cache issue in application. Please help me out how can i remove my application cache or how can I reinit my app? asked 32 secs agoAdeel Mushtaq This entry passed through the Full-Text RSS service - if this is your content and you're reading it on someone else's site, please read the FAQ at fivefilters.org/content-only/faq.php#publishers.Recommend...

ادامه مطلب

Focus event firing after a focus inside of a function

Vote count: 0 I'm using a hidden input to keybind my app with it but without triggering events when i write on other input-fields -clicks on element { -hide element -creates an input text-field(to edit the element) -focus the input - on blur or submit changes the element and remove the input } but if you add this new event : - click anywhere in the container { -focus the hidden calculator input (so it can use keybinding) } when user clicks on the element it ends firing the blur event without letting the user edit it first because its activating the second block event. so it's either skipping the focus part of the first block or the focus of the second block is activating after the focus on t...

ادامه مطلب

Angular 2 Pipe - can't return value inside a promise

Vote count: 0 I'm trying to do a really simple translate pipe for angular2. But I might be wrong how to promise work. The idea is to get the language parameter from a async service which call a doc in PouchDB. Fyi, the data are organised like this: { title: { fr: "text in french", en : "text in english", ... } The retu inside the promise doesn't work. The html template is empty. I don't get why. @Pipe({name: 'translate'}) export class Translate { lang:any; constructor(private interfaceService: Interface){} transform(obj) { this.interfaceService.getParams().then((data) => { retu obj[data.language] }).catch((error) => { console.log(error); }); } } If I put the retu outside of the promise, it w...

ادامه مطلب

Selenium and Java trying to find a tag inside a table cell

Vote count: 0 I'm using all the standard ways to parse a table. WebElement table = driver.findElement(By.name("TableName")); List tableRows = table.findElements(By.xpath("tbody/tr")); List td_collection = trElement.findElements(By.tagName("td")); WebElement dropDownElement = null; for(WebElement tdElement : td_collection) There is a select tag within the columns: name 1 name 2 some name I tried: dropDownElement = (WebElement) tdElement.findElements(By.tagName("select")); dropDownElement = tdElement thank you for the support. asked 25 secs agoGringo Golf This entry passed through the Full-Text RSS service - if this is your content and you're reading it on someone else's site, please read the ...

ادامه مطلب

Error when accessing members of a Node* inside of a queue

Vote count: -1 I'm implementing an algorithm that involves a variation of BFS using Visual C++. The queue contains objects of type Node* which I am trying to access the members (left and right subtrees) of. For some reason, simply ruing the following code retus an error: queue aQueue; aQueue.push(root); cout left;// Error: left of '->data' must point tclass/struct/union/generic type If I'm trying to implement BFS with a queue in C++ and I need to access the members of the Node pointer at the front of the queue, what is the proper way to do it? asked 2 mins agoloremIpsum1771 This entry passed through the Full-Text RSS service - if this is your content and you're reading it on someone else's s...

ادامه مطلب

Socket using mysql message queue is considered realtime?

Vote count: 0 Im using PHP and ratchet, im dealing with how i can create an event from the serverside and push it to the clients. I know i can use ZeroMQ, but this will also create an overhead, each time an event has to be notify, a new socket coection is made. So i was wondering, wouldnt it better to have thread which is always selecting from a mysql table named "SocketQueue" using memory as engine? Does this architecture makes the app lose the atribute of "Realtime" ? asked 1 min agogabriel mellace This entry passed through the Full-Text RSS service - if this is your content and you're reading it on someone else's site, please read the FAQ at fivefilters.org/content-only/faq.php#publishers...

ادامه مطلب

Phoenix Channel sending messages from a client outside the project

Vote count: 0 I wanted to send a message to my user chael of my Phoenix Application. I have joined a user_token with the chael as users:user_token in the user_chael.ex . I was successful doing it from another controller called the toy_controller by calling a broadcast method. The broadcast method is in the user chael. And I have written a jQuery file to handle the events. I was looking for something which can send messages to the same chael from outside of the project, because I wanted to do some IoT stuff. I have tried a python module called occamy.socket and the JS client of Phoenix that it uses inteally. Then, I found a discoection always. I can't figure out the exact address of the webso...

ادامه مطلب

Android - How to access Radio Button outside onCreateView?

Vote count: 0 I need access to Radio Button outside onCreateView() public void loadArray(String arrayName, Context mContext) { SharedPreferences prefs = mContext.getSharedPreferences("preferencename", 0); int size = prefs.getInt(arrayName + "_size", 0); int array[] = new int[size]; for(int i=0;i...

ادامه مطلب

Aligning text link beside image link

Vote count: 0 I want to change from------------| IMAGE |------------TEXT To ------------| IMAGE | TEXT------------ is there any way i can align the text in [a] beside the image? my codes are as follow: < a href="link.html" >< img src="image.png"> text< /a > can anyone enlighten me on this? asked 5 secs agoJayden Let's block ads! بخوانید...

ادامه مطلب

Add CSS Style to Wordpress Sidebar on Article Page

Vote count: 0 I need to add a unique CSS style to the articles and single pages sidebar on my site to diferenciate from the home page. The sidebar already has a style called ".sidebar" and it works when I change it, but it affects all the site sidebars. I've been looking at the sidebars.php file and see there are "if" lines for home or single pages, but don't know what to change. Keep in mind I'm not a programmer. The code I think should be modified is (sidebar.php): Thanks in advance for any help solving this. asked...

ادامه مطلب

Ember.js this.set() not working from inside action

Vote count: 0 Folks, I'm having some begier problem and would love some assistance. This is in ember 2.6 if it makes any difference. Basically, I'm trying to change some text on the screen when the button is pressed inside a component. Here's the handlebars and component js code: Stupid Button FIRE! {{someTextThatShouldChange}} And the component's js code: export default Ember.Component.extend({ someTextThatShouldChange: 'Initial Value', actions: { triggerTheAction: (email, password) => { alert('alerts just fine'); this.set('someTextThatShouldChange', 'New value for text!'); } } }); The error I get in console: TypeError: _this.set is not a function Really appreciate the help. I have a feelin...

ادامه مطلب

Invalid argument supplied for foreach() inside if else PHP

Vote count: 1 I'm trying to create a chart using highcart.js. Please, take a look at my script : public function index() { extract(populateform()); if(isset($monthly)){ $data['var'] = "Monthly"; $data['tgl'] = $this->modelmodel->showdata("select MONTH(tanggal) Tanggal from transaksi where outlet = '".$this->session->userdata('useame')."' group by MONTH(tanggal)"); $data['angka'] = $this->modelmodel->showdata("select Outlet, month(tanggal), sum(cash + cc + dc + flash + piutang + reject + disc50) total from transaksi where outlet = '".$this->session->userdata('useame')."' group by Outlet, month(tanggal)"); }else{ $data['tgl'] = $this->modelmodel->showdata("SELECT TOP 12 Tanggal From transaksi ...

ادامه مطلب

Why is for loop variable visible outside the loop in JavaScript?

Vote count: -2 for(var i=0; i...

ادامه مطلب

Google map infowindow position on right side

Vote count: 0 How I can show InfoWindow with arrow on the left side like on screen? infowindow asked 1 min agoMisha Kav Let's block ads! بخوانید...

ادامه مطلب

Access dom-repeat inside a dom-if from javascript

Vote count: 0 Is it possible to access a dom-repeat that is present inside a dom-if from javascript. Now i can access the dom-if using this.$.id but how can i access the dom-repeat. asked 41 secs agoa1626 Let's block ads! بخوانید...

ادامه مطلب

why $(window).scroll() need inside deviceready event handler?

Vote count: 0 I'm writing Cordova project with jQuery Mobile.I have the code to detect user scroll to the bottom.It's work but I don't know why the code need to be placed inside deviceready event handler? Waiting for something get ready? function onDeviceReady() { $(window).scroll(function () { if ($(window).scrollTop() + $(window).height() == $(document).height()) { alert("bottom!"); } }); } asked 39 secs agoAlbert Hung Let's block ads! بخوانید...

ادامه مطلب

fetching blob using xmlhttprequest and saving on client side

Vote count: 0 I am using xhr to make a call to server and it retus a blob. have set the respnoseType='blob' and it all works fine in chrome and firefox even in ie10+ but doesn't work in safari. if (navigator.appVersion.toString().indexOf('.NET') > 0) { window.navigator.msSaveBlob(blob, fileName); } else { var downloadUrl = URL.createObjectURL(blob); var a = document.createElement("a"); a.href = downloadUrl; a.download = fileName; document.body.appendChild(a); a.click();} what is the right way to do this, as this looks like a hack!. asked 33 secs agouser1861140 Let's block ads! بخوانید...

ادامه مطلب