473,544 Members | 2,322 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Javascript Forum

JavaScript web scripting language - Ask questions about JavaScript development, jQuery, Vue, React, the DOM, cross-browser scripting, event handling, OOP, cookies, client-side form validation, built-in objects like Date, String, Array and Object, performance and more.
1
1,403
thread by: samvb | last post Aug 7 '15 by: Dormilich
For my application, i am allowing requests to come from anywhere (at development stage). It just sends ajax requests to php files on the server and it works great. It is based upon allowing access to all request headers sent to apache, which is obviously not a good idea. What's the work around to make only my applications request be...
1
1,474
thread by: kinjalkhamar | last post Aug 10 '15 by: Dormilich
I needed to validate textbox value from database using ajax call. i have inluded below in jsp file <script src="//ajax.googleapis.com/ajax/libs/jquery/1.4.3/jquery.min.js"></script> i have below code in .js file function validateOtherDiagCodeFromSP_WOTHERICD(num){ alert("kinjal "+num); var otherDiagCode =...
1
1,244
thread by: atepsey | last post Aug 12 '15 by: Dormilich
Hi please help me fix this code. it is not bahaving as it should. what have I missed? This loop will make sure each character of my name gets pushed to the final array. var text= "jospaht jospaht jospaht \ jospaht jospaht jospaht jospaht jospaht\ jospaht jospaht jospaht"; var myName = "jospaht"; var hits= ; for( var...
0
1,384
thread by: samvb | last post Aug 18 '15 by: samvb
am using framwork7 and it is one hell of a library but bad at animation. It works in some OS version, it is sluggish in some...now i just want to disable the animations alltogether for the function is all i am after. During ini, i have the following: var myApp = new Framework7({ modalTitle: 'MeLife', // Enable Material theme ...
2
1,198
thread by: Kaster | last post Aug 24 '15 by: Kaster
Hi. I need to make a link on various pages with 2 functions. One that just act like browser-goback if vistor entered from a list-page. And an ordinay linkfunction (where visitor will enter at the top) when reference page is any other than the list-page. Have tried with this script function mylist() { if(document.referrer ===...
1
1,360
thread by: tonymotala | last post Aug 25 '15 by: Dormilich
My input text field accepts date in the format yyyymm, i want to validate the date by checking that it is not beyond today's date and it is not more than five years ago
3
1,755
Sieira
thread by: Sieira | last post Aug 26 '15 by: Sieira
I'm performing some encryption in my server (express routing in node) through a post request: app.post('/encrypt', encrypt); Encrypt is doing: function encrypt(req,res) { if(req.body.key && req.body.message) { var encryptedMessage = Encrypter.encrypt(req.body.key,req.body.message);
1
1,340
thread by: DinHal12 | last post Aug 29 '15 by: Luuk
I need to know if its possible to show a window.open pop-up while navigating away from the current page; currently based on event.returnvalue for any change in data we IE shows a confirm popup "Are you sure you want to navigate away?". On clicking 'OK' to the above question, i need to know if i can show another pop-up and make user stay on the...
2
2,609
thread by: KushShukla | last post Aug 19 '17 by: james88
I wrote a chrome extension using javascript, which receives user inputs and using AJAX connect to PHP residing in the server to write them to specified folder in server. I want to remove this PHP(server side) layer. Is there any way I can directly write a JSON file to server, without the need of any server side language? This will make my...
10
1,319
thread by: swap894 | last post Sep 16 '15 by: Rabbit
var cellclass = function (row, columnfield, value) { //alert("row==>"+row+"column==>"+columnfield+"value===>"+value); var oldValue=""; //alert(valueOfPrevious); ...
2
1,268
thread by: Trenoweth | last post Sep 25 '15 by: Trenoweth
I run a site that has a photo on the front page that changes each month, repeating after a year. Is there a way I can set the file name of the photo using getMonth(); so that the correct photo for each month is shown? E.g. every January photo0, every February photo1, every March photo2 and so on will show automatically without the need to...
2
1,475
thread by: tdrsam | last post Sep 25 '15 by: tdrsam
I'm trying node.js for the first time and I'm liking it so far. I've made a simple little header for a web app. On the header there's a login button that has a dropdown with with two links; one for login and the other for sign up. I'm using a very basic Angular data initialization instead of a controller. There's also a repeat to fill the list...
0
1,238
thread by: rento | last post Sep 27 '15 by: rento
I need help with tooltipster plugin i do not see need result :( The next script work, but error do not with tooltipster. <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js" type="text/javascript"></script> <script src="http://jqueryvalidation.org/files/dist/jquery.validate.min.js"></script> <style> ...
1
1,195
thread by: izawad | last post Oct 3 '15 by: Dormilich
how can i make a simple program if user out put is any number like(1 ,2,300 or 1000...)what will be day before 1000 days? it is possible in javaScript.
0
1,021
KeredDrahcir
thread by: KeredDrahcir | last post Oct 1 '15 by: KeredDrahcir
I have got a container 800 pixels wide with the overflow set to hidden. Inside I've got the content set to be in columns of a fixed height and 400 pixels wide so that two are shown at a time. I've got an onclick event to adjust the margins to the columns to move through the content two columns at a time. Since I know the width and height of...
0
1,096
thread by: neilsy | last post Oct 8 '15 by: neilsy
So I'm a nube when it comes to JQuery and JavaScript as I mostly write PHP. My Jquery connection via google is working as I've tested it. However I'm not sure whats the problem is. The code is designed to count new messages and display the number of new messages. Code as follows: <script> $(document).ready(function() { var refreshId =...
1
1,939
thread by: tdrsam | last post Oct 19 '15 by: tdrsam
I'm trying to set a list of two items that open separate modal dialogs in a node.js app. I'm using Jade. Here's the Jade: button.login-button(type='button' ng-app='ng-modal') Login ul li(open-dialog='modal-to-open') Login // JUST WORKING ON SIGN UP FOR NOW li Sign Up
2
1,035
thread by: Abul | last post Oct 25 '15 by: madankarmukta
<script>function calculate() { var myBox1 = document.getElementById('box1').value; var myBox2 = document.getElementById('box2').value; var result = document.getElementById('result'); var myResult = myBox1 * myBox2; result.value = myResult; } </script>
2
1,765
thread by: harman30 | last post Oct 27 '15 by: harman30
Here in my code below I display posts in table that has 3 columns i am limiting posts so initially only two rows are visible now I want to add load more button which shows few more posts and then few more untill all posts are viewed I tried many ajax and javascript codes but couldn't find a way. This is my full code with two files here problem...
0
916
thread by: withravis | last post Oct 28 '15 by: withravis
I need to implement the scattered graph / chart using Chart.js ... By default I am not able to implement it as there is no function defined for the chart type of "Scattered" ... Can anyone help me with implementing the scattered graph using chart.js ?
11
1,578
thread by: izawad | last post Nov 4 '15 by: Dormilich
I make a app about school data use angular, node , express and mongo db. how can i convert this app into mobile app?
0
1,010
thread by: harman30 | last post Oct 29 '15 by: harman30
In this code I am displaying errors with javascript and in case javascript is disabled php will work, error messages are displayed by div at the bottom so whether error occurs or not, div will always be there, though message is displayed only when there is error. I want that the div should be called only when error occurs because it is causing...
1
1,253
thread by: harman30 | last post Oct 29 '15 by: Dormilich
Below is the javascript part and load more button which I am using to load more posts from database it works fine I want to show a 'no more posts' message when all posts have been loaded but do not know how to do that exactly. Hope you guys can help. <script type="text/javascript"> $(document).ready(function(){ ...
3
1,423
thread by: harman30 | last post Oct 30 '15 by: harman30
Here are two samples of main page where posts are shown, first page is simple code where 3 posts are shown and below them is a load more button which loads next three posts. Second code is bit complex it displays three posts in table, means three posts in single row with load more button at their bottom now problem here is when I click show...
1
2,992
thread by: java9 | last post Nov 5 '15 by: chaarmann
I want to delete a row which is checked but my program is deleting all the rows with input type: checkbox. iam using javscript in jsp function deleteSelectedRows() { $('#dataTable tr').each(function() { $(this).find('input:checked').each(function() { $('#delDependNames').attr("value", $('#delDependNames').attr('value') +...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.