Questions tagged as 'javascript'

2
answers

JS parameter for PHP file

Hello .. I have a problem in which I am encountering difficulties, perhaps due to my lack of knowledge in JS. I have a JavaScript function that calls a PHP file: <script type='text/javascript'> ... events: "events.php" </script&g...
asked by 23.05.2016 / 05:46
1
answer

Detect AdBlock on user's browser and show message

Is there any way, can it be via JS, that detects that the user is using AdBlock and send some message to it?     
asked by 19.07.2015 / 05:01
2
answers

Transition effects in a slider

How can I apply transition effects to a slider? Taking the following code as an example: function simpleSlider(type){ var sliderActive = $("#slider .sliderActive"); if(type == 'prev') { var sliderPrev =...
asked by 15.05.2015 / 16:31
1
answer

What is the best practice for restricting access to the site administration system?

I wanted to create an administration system for the site, I made it so that users have a level field associated with it and if it is a given value they can access the admin control, otherwise if they try they are directed to the index, I do not...
asked by 14.05.2015 / 23:43
1
answer

Identify onmouseover element

I want to pass on an element, identify what kind of element it is. I'm doing the following example: window.onmouseover = function(){ mouseOver(e)}; function mouseOver(e) { if (e.nodeName === "DIV"){ alert("it's a div"); } } exam...
asked by 22.05.2015 / 16:53
1
answer

Best method to discover the state

I need to find out the status that the user is accessing the page, for the select already marked, and some functions enabled. I was seeing that discovering the state from IP is well flawed. I've seen how to use Geolocation in HTML5, but it on...
asked by 29.12.2015 / 18:52
1
answer

Execute function only the first time you open the page

I'm developing an app using Phonegap , it uses the front end to create apps, so I'd like to do the following: run a specific function (such as an alert) the first time the application is opened? And it will no longer be shown unless the app...
asked by 05.01.2016 / 14:16
1
answer

How to change the status of a field with Javascript

I'm developing an application that manages Courses , I'm a beginner in ASP.NET MVC. In my application I have a screen that the Student makes your Enrollment in a course, I also have a field Number of Jobs and another field Status that s...
asked by 02.07.2015 / 04:11
2
answers

Select chained using only HTML and jQuery

Hello, Community! I have two selects in HTML one with the regions of Brazil and another with states. How do I chain them without using a template (PHP, Java, C # etc), only with HTML (the selects) and jQuery? //select regiao/estado en...
asked by 01.01.2016 / 23:51
2
answers

I can not check if an array is empty or null

I need to display a message whenever my array is empty or null, but I can not. I call the JS function in PHP by passing an array with json_encode. It works perfectly, but it does not check if the array is empty. php file:      $nGals = $con...
asked by 27.06.2015 / 21:15