Questions tagged as 'javascript'

2
answers

"onclick" method does not work on files added with "? php require?

Well my problem is this, I have a website of a real estate company. It has a Sidebar on the right with buttons to enter the different sections, the "main" part which is the one on the left and occupies 70% of the screen is where a display of all...
asked by 22.01.2017 / 19:17
1
answer

RequestContext runs twice

I want to send a function of Js from a Jsf bean with RequestContext, but for some strange reason the function is executed twice. This is the code of my xhtml: <h:form > <p:commandButton class="btn" value="Llamar js Fun...
asked by 23.01.2017 / 17:54
1
answer

$ .each on request with ajax from php driver

Hi, I'm starting to work with ajax and php I have a problem I'm making an ajax request, a php controller post and I'm returning the json format from the controller .. the data I need is perfect and I've made the test . in my condition if there i...
asked by 22.01.2017 / 19:53
1
answer

disable list of options chosen Jquery

Good morning I have a chosen field and would like to enable / disable the list of options based on some variables, I used the following code and it does not work, to see if someone can guide me. JS: $(".chosen").chosen({max_selected_opti...
asked by 20.02.2017 / 12:26
2
answers

Go through an object and take out a selected variable and in another, the others it contains

I am trying to go through an object that contains information, and if I remove one of the elements, I do not know how I have to do to remove the others that I have not selected. This is the code: var finalActTabs = { fTab1: '#a1, #a2,...
asked by 20.02.2017 / 09:54
1
answer

search in a for in angularjs

How about, I have this array: which corresponds to the total purchase according to the order, in this case by a for how can I get to that value: for (var i = 0; i < total.length; i++) { var totaldesayuno = total[i].total...
asked by 20.01.2017 / 22:18
1
answer

Go through Array of Array json with jquery

I have a cakephp function that returns data in json format in the following way $response = array($query_license,$query_estate,$result_license); if ($this->request->is('ajax')) { echo json_encode($response); die();...
asked by 20.01.2017 / 13:58
1
answer

Delete duplicate data

I have the following code created in javascript, which generates a url in the browser, but the problem is that each filter duplicates the data, that is, it reloads the previously selected filters, causing the url to fill with garbage, someone wh...
asked by 20.01.2017 / 21:45
2
answers

Href in javascript

Let's see if I explain ... I have a view in which I have a href that is given by a javascript function that I have in a .js file. The fact is that the link is perfectly generated, simply the javascript function has a window.location....
asked by 20.01.2017 / 16:05
0
answers

Open different browser with innapbrowser

know if there is a way to open in another browser that redirects the url I put in the app ?, I use the plugin cordova-plugin-inappbrowser , in android if you open the browser that has default, for example chrome , but in iO...
asked by 11.01.2017 / 21:30