14,054 Topics
| |
<!DOCTYPE html> <html> <body> <script type="text/javascript"> var images = ["strawberry.jpg", "apple.jpg", "cherry.jpg", "orange.jpg", "pear.jpg"]; var length = images.length; var randImg1 = Math.round(Math.random() * (length - 1)); document.write('<img src="' + images[randImg1] + '" >'); var randImg2 = Math.round(Math.random() * (length - 1)); document.write('<img src="' + images[randImg2] + '" >'); var randImg3 … | |
Hello ,I want to ask how can I succeed an analogous from mongodb to postgresql. app.post('/myjob', function(req, res) { var collection = db.collection('theDB'); collection.insert({ "my_id" : myID, .... }, function (err, mes) { if (err) { res.send("There was an error"); } else { console.log("Ok with ID "+myID); res.send({ "Done!", ID … | |
I am looking for someone who has used jQuery in the capacity of assigning a value to a text area when the user clicks a radio button. Here is the example code I have worked on so far that does not work. [code] <div id="donationForm"> <form id="formDonate" method ='request' onsubmit='return … | |
My loader is not working while form submits, how to solve that? | |
I have two differents select tag, but my script change both at the same time!!!! I need each image change with yours respective Select How can I do that? Please HELP from Brazil. Sorry for my bad english. My Code <html> <head> <script type="text/javascript"> /* URL of folder with images … | |
I'm making a series of webpages, and need to control top level navigation through an external JS file. I can't even think of how to begin to code this. Does each page need to be assigned an array index? Then how do I hide the link to the current page? | |
I am working on developing a simple site, optimizing for mobile. I am using jQuery at this time to render basic, rollover buttons using image-swapping. The issue I am having involves using **multiple**, different buttons; for example, 3 buttons, different images for each (one "on" image, one "off" image for … | |
Hi, I have a raspberry pi in which I use kweb in kiosk mode. To display a webpage. What I am trying to do is to be able to navigate through the webpage using my phone. What I am struggling with is how can I make this kind of connection … | |
Hi iam working on one scenario.. employe A send a Requesting mail to Project manager B, project manager B approves a request from employee and send the mail to project manager C for further process,after approving from project manager C it will go to department head like this... so here … | |
Hi, i am in need of urgent help. I have created a web template using bootstrap. I have created a "collapseble" nav bar and used "parallax, jquery single page nav" to scroll on the same page smoothly.This worked fine. There is no problem in it. After that according to the … | |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html> <head> <title>Membership</title> <meta name="GENERATOR" content="PHP"> <script> function validateEntries(form){ if(document.myForm.firstname.value == "" ) { alert( "Please provide your name!" ); myForm.firstname.focus() ; return false; } if( document.myForm.lastname.value == "" ) { alert( "Please provide your last name!" ); document.myForm.lastname.focus() ; return false; } … | |
I am trying to create a dtd that emulates a car dealership. It sells trucks, sedans and hatchbacks, as can be seen in my dtd. The dealership would keep track of how many doors and wheels each vehicle has as well as the model and year in addition to how … | |
I am trying to make a page that displays an image, and then utilizes a group of radio buttons and an apply button to perform effects on the image in the `<div>`tag . It is using the show(), hide(), Toggle(), Fade In(), Fade Out(), Fade To(), Slide Down(), Slide Up(), … | |
Hello guys i want to make inputbox which will autocomplete the started word so you know what i mean like google, facebook who have autocomplete but i have a little problem i have searched and found some plugins and tutorials but actually none of them work i dont know why, … | |
I was wondering how you would make a grid in a javascript canvas, a 10 pixel by 10 pixel grid for a game I am making thank you for your response. | |
`l(x)` is my shortcut to `console.log(x)`. `item.php` has text "EYES!!", just that. var session = $.get("item.php", function(data) { session = data; }) l(session); // *all XHR flags in an object, responseText ("EYES!!"), status (200) etc. $.get("item.php", function(data) { session = data; }) l(session); // undefined $.get("item.php", function(data) { l(data) }) … | |
Hello , I am new to javascript and I have the following code in c : #include <stdio.h> #include <stdlib.h> int main() { int height = 8, width = 8; for ( int i = 0; i < height; i++ ) { for ( int j = 0; j < … | |
Hi, I cant check combo value below. Where is the mistake? Thanks [code] <script Language="JavaScript"> function validateR(){ var selectedCombobox=(form2.selectCombo.value); if (selectedCombobox=='All') { alert("Please select something"); return false; } return true; } </script> [/code] [code] <select name="selectCombo"> <option value="All">All</option> <option value="Other">Other</option> </select> [/code] | |
Hi Everyone I hope I find you well this beutiful day. I have two dialog modal popups that I want the webpage to refresh on when the dialogs are closed. The code I am using looks something like this: <div data-role="dialog" id="dialog1" class="padding20" data-close-button="true" data-overlay="true" data-overlay-color="op-dark" width="1000px" height="400px"> <h2>Heading</h2> <div … | |
I am new to coding and im having trouble with arrays in javascript. I want to be able to compare stuff inside an array but only if the three values match up to one of the sets of three values in the array var array = [[1,2,3][4,5,6][3,6,7]] if(array.indexOf([1,2,3]) === 1){ … | |
Hello Friends I am having issue with sizes option on my page this is the form of sizes <!-- Sizes And Quantity [Onclick Modal]--> <div class="form-group col-md-3"> <label>Sizes & Quntity<span class="required">*</span>:</label> <button class="btn btn-default form-control btn-info" onclick="jQuery('#sizesModal').modal('toggle'); return false;">Sizes & Quantity</button> </div> <!-- Sizes & Quantity Preview --> <div class="form-group … | |
Hi guys, I am a computer science major and I have been asked to complete a task for someone working in the school of public health at my university. Basically I have to go to this website: ///////////////////////////////////////////////////////////////////////////// [Click Here](https://www.healthcare.gov/find-premium-estimates/#results/&aud=indv&type=med&state=PA&county=Allegheny&age0=35&employerCoverage=no&householdSize=1&income=100000) ///////////////////////////////////////////////////////////////////////////// and gather all the information which displays after the … | |
$(document.getElementById("item1"), document.getElementById("item2")).click(function () { $(this).fadeOut(); }); <span id="item1">This is item 1</span><br /> <span id="item2">This is item 2</span> span#item1 { color: red; } span#item2 { color: green; } `span#item1` is affected. `span#item2` not, that means I made mistake in syntax. Is there a way to get it to work. I know … | |
Hi Experts, I want to export html table to .csv file, my code is working but i want to export it with border or background color on its header. how will i do that? Please help me. Thanks in advance. :) Here's my code: HTML Table: <div id="feedback_div" style="display: none;"> … | |
I have wierd problem the navigation is working good everywhere but on `home.php` file it doesnt work when i press the MORE button to open the dropdown here is my code, what can cause this problem ? sidebar.css body,html{ height: 100%; } /* remove outer padding */ .main .row{ padding: … | |
I am supposed to use a jquery plugin to fill in some text fields. My professor is almost completely unresponsive about it when I ask him for help. Using the pickadate Jquery plugin, add a date picker and time picker to two <input> fields. <!doctype html> <html> <head> <title>Exercise 11A</title> … | |
I have this function which get me only unique values in array: function sort_unique(arr) { var obj = {}; for (var i = 0; i < arr.length; i++) { obj[arr[i]] = true; } arr = []; for (var key in obj) { arr.push(key); } return arr; } I need this … | |
Write a program that accepts five input values and stores them into an array. The program should then display the average of the five numbers. Finally, the program should display all the numbers in the array that are larger than the average of the five numbers. So I did the … | |
Hello guys i wrote an public function to create a project, but i need to call it in my javascript file. How can i do this. this is the public function i want to use. the public funtion is in data.php public function create($projectid,$projectnaam,$startdatum,$einddatum,$omschrijving) { try { $stmt = $this->db->prepare("INSERT … |
The End.