Questions tagged as 'javascript'

1
answer

How to return PHP code with Javascript?

Fully edited topic My file Follow_Button.php : <?php require_once '.././app/autoload.php'; $TwitterUsers = new TwitterUsers; require_once '.././app/TwitterOAuthHelper.php'; $helper = new TwitterOAuthHelper; $row = $TwitterUs...
asked by 08.06.2017 / 16:01
4
answers

Check if file input is in file or not

I need to do a validation in the file field, if it does not have an attachment, show me a message on the screen, forcing it to attach, I tried some alternatives and I could not. <div class="form-group" id="inputOculto"> <input n...
asked by 06.04.2018 / 16:37
3
answers

Hide and reveal text using JavaScript [duplicate]

I have a div that has a news, I need to hide a part of the text when the file is read by the browser, in addition the user can see the full text if you want by clicking "View More" which is a <a> and then make it reduced. I...
asked by 14.04.2018 / 04:12
1
answer

Doubts about routes JS angular x ASP.NET MVC

I would like to remedy some doubts about Angular JS vs. ASP.NET MVC. I created an empty ASP.NET MVC application that will work with WEB API, configured all my routes with AngularJS, created an html page and its controllers, all with angularJS...
asked by 23.11.2017 / 12:26
1
answer

Print in A3 and A4 format

I need to develop something that can print in A3 and A4 formats, exactly the same as that site: link Note that by clicking on the print icon it first resizes to the correct format and then when you click Print, it shows the preview exact...
asked by 22.11.2017 / 00:40
1
answer

Send values in onclick

I'm trying to send two values in onclick of HTML , however, the second value becomes "undefined", how can I send these two values to the function? p> echo "<h3 id='$input' onclick='transfertoinput(this.id, $resp)'>$resp</h3><br...
asked by 26.11.2017 / 05:03
1
answer

OnClick function does not work properly

I have a very simple application where I want to change the color of the text when I click the button. Being that I want to handle the onClick event directly in the .js file, not in HTML. Could anyone point out what is wrong in my code? NOTE: Al...
asked by 05.12.2017 / 16:09
3
answers

How to call a function in javascript through a text box?

I wanted to know how I can call a function through a text box. example: <input type="text" value="load()"/> But it's not exactly the load function, I wanted the digitizer to call any function itself.     
asked by 07.02.2014 / 21:10
2
answers

How to write HTML within the Ajax success

I have a project in ASP.NET MVC 4 and in it I have a Ajax request where it calls the controller sending only one parameter. The request does everything correctly, it brings me a list of the data I need. What I want to kno...
asked by 19.03.2014 / 19:56
1
answer

When it is mandatory to use dot-comma Javascript [duplicate]

I wanted to know when it is mandatory to use a semicolon in Javascript.     
asked by 10.02.2014 / 22:12