I have a small application written using javascript (NodeJS). How can I run it as an executable file?

Member Avatar
Member Avatar
+0 forum 4

The challenge I need to resolve is getting a sub-string from strings such as those below. Each line is of an array so I am iterating and working on one line at a time in a JavaScript loop. All of the strings have the names at the start of the line: Joe Smith will run... Jane Jones will follow... Bridget Burns and Jack Jones will be away... Jack Jones, Gracie Burns and George Burns have three days in... The sub-string I need is the name(s) at the start of each string. My JavaScript is handling an example of the first …

Member Avatar
Member Avatar
+0 forum 7

I have jquery for my mobile website, but the problem is with iPhones. The touch event, or `onclick` event does not work on iPhones. It works on Android. Have anyone encountered the same problem? How can I fix this? Are there any work arounds? Also I am a bit confused about jQuery Mobile. What is the purpose of this framework other than the swipe events? Should I add both jQuery and jQuery Mobile for my mobile site?

Member Avatar
Member Avatar
+0 forum 6

Hi, In my application two fields are the user id and user name,i want to show the user name and user id along with other details in a html table. user id is a numeric dropdown menu and user name is text only.How can i show the specfic record in that table for that user which i have selected in both of the fields ,how i can fetch data from backend User table?am using html,css and javascript, Any suggestion would be grateful!Thanks..

Member Avatar
Member Avatar
+0 forum 1

I’ve created animated `rect` shape with **greensock**. It's not working on jsfiddle so created on [codepen](https://codepen.io/anon/pen/PdezOj) I’ve three shapes. I need help with following, 1. make it 100% height & width of viewport 2. it stops for a while before repeating, move `rect` without any gaps 3. they bacomes one rect while ending keep fixed distance between all 3 rect <svg x="0px" y="0px" width="100%" height="100%"> <rect x="0" y="0" fill="none" stroke="#88CE02" stroke-width="4" stroke-miterlimit="30" width="100%" height="100%" id="rect1" /> <rect x="0" y="0" fill="none" stroke="#ce4201" stroke-width="4" stroke-miterlimit="30" width="100%" height="100%" id="rect2" /> <rect x="0" y="0" fill="none" stroke="#8601ce" stroke-width="4" stroke-miterlimit="30" width="100%" height="100%" id="rect3" /> </svg> <script …

Member Avatar
Member Avatar
+0 forum 1

Borders are animating one after one. Need help to animate all borders at same time Here is running example [jsfiddle](https://jsfiddle.net/npLsm0j2/) **CSS** * { padding: 0; margin: 0; outline: none !important; } body { background: #E0D4D4; overflow: hidden; } .borders { height: 100vh; width: 100vw; position: absolute; display: inline-block; z-index: 1; } .border-t { position: absolute; z-index: 1; height: 1px; top: 60px; left: 60px; width: calc(100% - 60px * 2); } .border-t-l-wrap, .border-t-r-wrap { position: absolute; top: 0; height: 100%; overflow: hidden; } .border-t-l-wrap { left: 0; width: 50%; } .border-t-r-wrap { right: 60px; width: calc(50% - 60px); } .border-t-l { …

Member Avatar
Member Avatar
+0 forum 9

I need some help to add few audio effects to website. I found some examples like following, audioOn: true audio.muted = false setAudioOn true ref: "audio", attrs: { "id": "projects-audio" } }, [_c('source', { attrs: { "src": "/audio/click.mp3" } playAudio: function playAudio() { this.$parent.$refs.clickAudio.volume = 0.8; this.$parent.$refs.clickAudio.play(); }, I need help to play audio using **play() **, control volume using **volume = 1** What is **workClick: ?** I found it used with sound properties. So, basic needs are play various sounds - on click, background music, control volume of background music, play sound on overlay appears

Member Avatar
Member Avatar
+0 forum 12

Hello, I have been searching around the net looking for solutions to my problem, but none have worked. My issue is that when i redirect using: <meta http-equiv="Refresh" content="0; url=<?php echo $URL; ?>"> The hash tag part of URL gets removed by IE. So example.com/sample#foo will just load as example.com/sample. This happens in all version of IE and appears to be a bug, but the question is how do I get around this issue? Here is the redirect page template for wordpress that I am using: <?php /* Template Name: Redirect */ ?> <?php if (have_posts()) : the_post(); ?> <?php …

Member Avatar
Member Avatar
+0 forum 5

Hello, I am looking for a new IDE. I am currently using netbeans to develop a website in php/mysql. I like a lot of things about netbeans, but I don't like that it doesn't come with built in compilers/debuggers. You have to manually go and add/link them on a language-by-language basis. This isn't too bad in theory, but sometimes it doesn't work like it should, which can cause a huge headache. I had a hell of a time getting a debugger to work for php. I am now adding javascript/jquery to the website, and discovered that the debugger I already …

Member Avatar
Member Avatar
+0 forum 3

Hi Guys. I'm having a serious problem that is holding me back. I have a file which is a user dashboard and this file gets data from another php script file which is called by a user login screen when a user clicks login. The file verify the credentials then if correct that its start to pull some data from the database. The problem is that now there are some users who don't complete their registration process which some stop where they need to make their payments so their accounts are kept with a status of pending which indicate that …

Member Avatar
Member Avatar
+0 forum 5

Hello, I am trying to create a bar chart with angular. I am following the following guidance: https://www.fusioncharts.com/angularjs-charts/ I wonder why it does not works. I only see a blank screen when running bar_chart.html bar_chart.html <html> <head> <script src="barchart_data.js"></script> <script src="angular-fusioncharts.min.js"></script> <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.6.4/angular.min.js"></script> </head> <body> <div ng-app="myApp">...</div> <div ng-controller="MyController"> <div fusioncharts width="600" height="400" type="column2d" datasource="{{myDataSource}}"> </div> </div> <script> angular.module("myApp", ["ng-fusioncharts"]) </script> </body> </html> barchart_data.js app.controller('MyController', function ($scope) { $scope.myDataSource = { chart: { caption: "Harry's SuperMart", subCaption: "Top 5 stores in last month by revenue", numberPrefix: "$", theme: "ocean" }, data:[{ label: "Bakersfield Central", value: "880000" }, { label: "Garden …

Member Avatar
+0 forum 0

program1.php <html> <header> <script> function myFunction(p1, p2) { return p1 * p2; } document.getElementById("demo").innerHTML = myFunction(4, 3); </script> </header> <body> <div id="demo"></div> </body> </html> I don't understand why the above code does not show any value? and why this one does? program2.php <html> <body> <div id="demo"></div> <script> function myFunction(p1, p2) { return p1 * p2; } document.getElementById("demo").innerHTML = myFunction(4, 3); </script> </body> </html> Why I cannot stated the js first then calling it? Why calling it first then stated the js?

Member Avatar
Member Avatar
+0 forum 2

Hi DW. I'm trying to post data without refreshing the page using the ajax, and its works fine the problem is that on the response I also get the array data that I posted to my php file then at the end of response is the returned data which is echoed from my php file. I post 3 data which are from my form but the problem is that on my response this data is also shown when I do `alert(response);` please check attached image and you will see that on the alert response firstly the array of what I …

Member Avatar
Member Avatar
+0 forum 1

I know this question is a lot easier than it seems, but I can't seem to get around it. This is my current code and I cannot get it to properly check if the SSN number is in a proper format or not. It just says all is false. This is my current code: <script type="text/javascript"> function checkDgt(){ var validSSN=/\d{3}-\d{2}-\d{4}/; if(validSSN.test(document.getElementById("social").value)) alert("Social is invalid."); else alert("Invalid."); } </script> <form> <input type= "text" name="social" id="social"> <input type= "button" value="Validate" onclick="checkDgt();"> </form> What exactly am I doing wrong?

Member Avatar
Member Avatar
+0 forum 5

I have a yearly curriculum for my basketball workouts that I'd like to display online. I've created 53 unique workouts for each day of the week that include the main focus for the day, 6 drills, a quote, and a motivational story. I know I'd need a [datepicker](https://jqueryui.com/datepicker/) to accomplish this and the logic must employ both a [week number script](https://weeknumber.net/how-to/javascript) and a [getDay script](https://docs.microsoft.com/en-us/scripting/javascript/reference/getday-method-date-javascript), but I have absolutley no idea on how to get started from there. As the page loads, it should show today's workout. eg If it's the 17th Monday of the year, it would show that …

Member Avatar
Member Avatar
+0 forum 10

i have been trying to upload image files in to my database but i failed in many ways, the form saves everything except the image files. i am not sure if its the php or the java or the html page, honestly i lost my path. i have included all my pages, any help would mean a lot, thanks!!! <html> <head> <meta charset="utf-8"> <title>PYB Register Bike</title> <link href="bootstrap-3.3.7/dist/css/bootstrap-theme.min.css" rel="stylesheet"> <!--styling css link --> <link href="bootstrap-3.3.7/dist/css/bootstrap.min.css" rel="stylesheet"> <!-- styling css link --> <link href="font-awesome-4.7.0/css/font-awesome.min.css" rel="stylesheet"> <!-- styling css link --> <link rel="stylesheet" href="../ProtectYourBike.css"> <!-- CSS Reference --> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7/jquery.js"></script> <script src="http://malsup.github.com/jquery.form.js"></script> …

Member Avatar
Member Avatar
+0 forum 1

Hey guys, I have the following code... And what I want it to do but cant get it to do is add up all the price fields and change the sum every time a number is changed or a new line is added... but its not working? Can anyone see my problem? And can help me fix this? <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <script type="text/javascript" src="./jquery-1.7.min.js"></script> <script type="text/javascript"> function calculateSum() { var sum = 0; $("#price").each(function() { //add only if the value is number if(!isNaN(this.value) && this.value.length!=0) { sum …

Member Avatar
Member Avatar
+0 forum 4

Hi guys, I am trying to implement my first carousel on my website. I have 5 images with the same dimensions with the following HTML markup: <div id="myCarousel" class="carousel slide"> <ol class="carousel-indicators"> <li data-target="#myCarousel" data-slide-to="0" class="active"></li> <li data-target="#myCarousel" data-slide-to="1"></li> <li data-target="#myCarousel" data-slide-to="2"></li> <li data-target="#myCarousel" data-slide-to="3"></li> <li data-target="#myCarousel" data-slide-to="4"></li> <li data-target="#myCarousel" data-slide-to="5"></li> </ol> <div class="carousel-inner"> <div class="item active"> <img src="/pictures/home1.jpg" alt="CASHS" > </div> <div class="item"> <img src="/pictures/home4.jpg" alt="SWAROVSKI"> </div> <div class="item"> <img src="/pictures/home2.jpg" alt="MARQUIS" > </div> <div class="item"> <img src="/pictures/home3.jpg" alt="ORREFORS" > </div> <div class="item"> <img src="/pictures/home5.jpg" alt="WATERFORD" > </div> </div> <a class="left carousel-control" href="#myCarousel" data-slide="prev"> <span class="glypicon glypicon-cheveron-left"></span> </a> <a …

Member Avatar
Member Avatar
+0 forum 6

Hi All, I have a PHP code which do some changes to the POST variables it receives and redirect the page to some other page. This PHP code was initially designed to work without Ajax. So there wasn't any problem with the redirect function and it perfectly handles the POSt variables and redirect the user to another page. So now I want to use the same PHP code with Ajax... :) I tried it and and it did not gave me the results I was expecting. Problem is with the redirect function. Other PHP lines execute perfectly fine( it stores …

Member Avatar
Member Avatar
+0 forum 8

I have a code that pulls a JSON response, and I need to compare times from now() and a previous when the timestamp was created. I am able to pull the info and have it display. However, when i try and get the comparison to work it just sits there and doesnt display anything. Here is my code "use strict"; var endDate = new Date(); endDate.setHours(endDate.getHours()); var startDate = new Date(); startDate.setHours(- 12); api.call("Get", { "typeName": "DutyStatusLog", "search": { "fromDate" : startDate, "ToDate" : endDate, "statuses" :['ON'] } }, function(results){ console.log(results); for(var i=0; i<results.length; i++){ var stTime = results[i].dateTime; var …

Member Avatar
Member Avatar
+0 forum 1

This may sound confusing but I have a textbox which is a cell number textbox and I want when the max length of 10 has been reached then fire the php code which is inside the same html page as form and this php code will then get the value or data which has been keyed in to this text box. I've tried Javascript and the problem I'm having with javasacript is to now display this data so that why I've deiced to change to php because I know how to display the php session data within the textbox with …

Member Avatar
Member Avatar
+0 forum 20

[B]The following problem comes from an old JavaScript Textbook, JavaScript – First Edition, by Patrick Carey and Frank Canovatchel. This problem is not used in the Second Edition, making the question I shall ask a fair question. The problem is Case Problem 2, Chapter 9, pages 519-20. Here are the files:[/B] [COLOR="Red"]merchant.htm:[/COLOR] [code] <html> <head> <script type="text/javascript" src="merchant.js"></script> <title>Merchants Market</title> </head> <body onload="checkAcct()"> <h2>Account Processing Page</h2> <div id="registration_form"> <form name="market" action="merchant_acct.htm" onsubmit="return handleAll()" method="post"> <table> <tr> <td align="right">First Name:</td> <td><input name="first" size="25" /></td> </tr> <tr> <td align="right">Last Name:</td> <td><input name="last" size="25" /></td> </tr> <tr> <td align="right">Mailing Address:</td> <td><input name="add" size="30" …

Member Avatar
Member Avatar
+0 forum 12

6 ●4 I have a code that displays an array from GeoTab SDK, I am able to get the array to display in the console.log, and it populates the results like normal, However, When I try to populate the data in the table, nothing shows but the headings. Here is my code, and I will generate an object array and paste the code as well. I know the data that is generated is valid data, function generateDutyStatusLogSearch1(){ api.call("Get", { "typeName": "DutyStatusLog", "search": { "statuses": ["D", "OFF", "SB", "ON"], }, }, function(dutyStatusLogs) { var uniqueDrivers = {}; var multicall = []; …

Member Avatar
+0 forum 0

I tried to run an Ionic 3 project from existing files using not C++ but Apache/Cordova and i am getting these errors. Idid a Typescript project works fine. But Cordova won't run with Javascript? Severity Code Description Project File Line Suppression State Error TS2304 Build:Cannot find name 'object'. ionic2 C:\Users\Simon\AppData\Local\Microsoft\Windows\INetCookies\Desktop\Various Scripts\ionic2\node_modules\@angular\compiler\src\compile_metadata.d.ts 168 Warning No compiler log specified, 'Clean' won't work. ionic2 C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\Microsoft\VisualStudio\v15.0\ApacheCordovaTools\vs-mda-targets\Microsoft.MDA.FileMirroring.targets 320 Error TS1139 Build:Type parameter declaration expected. ionic2 C:\Users\Simon\AppData\Local\Microsoft\Windows\INetCookies\Desktop\Various Scripts\ionic2\node_modules\@angular\platform-browser\src\browser\transfer_state.d.ts 34 Error TS1109 Build:Expression expected. ionic2 C:\Users\Simon\AppData\Local\Microsoft\Windows\INetCookies\Desktop\Various Scripts\ionic2\node_modules\@angular\platform-browser\src\browser\transfer_state.d.ts 34 Error TS1128 Build:Declaration or statement expected. ionic2 C:\Users\Simon\AppData\Local\Microsoft\Windows\INetCookies\Desktop\Various Scripts\ionic2\node_modules\@angular\platform-browser\src\browser\transfer_state.d.ts 34 Error TS2304 Build:Cannot find name …

Member Avatar
Member Avatar
+0 forum 6

hello, i'm having trouble with jquery navigator i don't think the problem is my code <script> $(document).ready(function(){ alert( "welcome"); alert("twice alert"); }); </script> in chrome i have this error: Uncaught SyntaxError: Unexpected token < in firefox i have this error : SyntaxError: expected expression, got '<' i looked on astackoverflow and many researches on google but couldn't find solution !

Member Avatar
Member Avatar
+0 forum 4

I'm attempting to simplify my fundraising page, and would like to show exactly how much each donation would help us out. I've listed the options below, but I would like for the first two dropdown boxes to change the third one depending on the combination chosen. Fruthermore, I'd like for the third dropdown box to adjust the first two if that one is selected. IFFTT, basically. No action needed beyond that, as it's mostly meant for informative purposes. Is this possible? Thanks for any help whatsoever. Examples: 1 donation of $50 = 1 hour of gym time. 10 donations of …

Member Avatar
Member Avatar
+0 forum 3

Hello, I am new to Javascript and I am having trouble with my assignment. I was told to create a simple "Grade Calculator" using prompt boxes It was fairly easy to make this "Grade Calculator" but there is only one problem that i cannot figure out. I was told to create this "Grade Calculator" in a manner that if someone fails in a subject they fail in all subjects(No Grade) and if someone scores passing marks on all subjects they should be able to see their grade. I hope explained it correctly. Thanks P.S: I can only use prompt boxes …

Member Avatar
+0 forum 0

Hi DW. I have built a website using Mobirise and now what I want to do is to enable the site to accept comments from people and also display them on the page on the section COMMENTS, now the problem is that I want the comments to use the themes format but the problem with that is that the javascript produce and error if I take the entire DIV section that produce this comment style so that it will be applied to each and every comment. Please check the [site](http://mlungisi.0fees.us) and click on the Piracy Impact and check the comment …

Member Avatar
Member Avatar
+0 forum 3

i know how to do the link thing that if u click it it closes the window. but im wondering if theres a way to automatically close a window after the php code is done running. cause i have an inbox and theres a link to delete the message if you click on it it will open up a new windows and run the php script to delete the message then it will say message deleted. im wondering how instead if just saying msg deleted it can close itself(the window) as well? does anyone know how? can i do it …

Member Avatar
Member Avatar
+0 forum 14

Hello, I'm trying to get a javascript to work, unfortunately i'm not that good with javascript. What i'm trying to make is the following: I have 3 input fields: Total amount of dossiers: Total amount of cleared dossiers: Total amount of filed dossiers: The first one is the total amount of dossiers, for example 200 The second one is the amount i already cleared, for example 50 The third one is the amount i logged, for example 20. I would like the webpage to display the following 2 calculations: First one should give me the percentage of cleared dossiers: in …

Member Avatar
Member Avatar
+0 forum 2

The End.