15,121 Topics

Member Avatar for
Member Avatar for sabir khan
Member Avatar for ChrisJ

This html web page code, when viewed via mobile device, captures video from the mobile device. By tapping the page, the mobile video full screen appears, ready to begin recording. I'd like to find a way to reduce the dimensions of that full screen, if possible. I'm guessing it might …

Member Avatar for Dani
0
61
Member Avatar for Facundo_3

First I would like to say that I do not speak English so sorry if I express myself badly. Hi, I need to know how I can solve this game. "Archers in the Forest". The game consists of a forest represented by a grid, 5x5, 7x7, 9x9 (The user will …

Member Avatar for rproffitt
0
82
Member Avatar for Richard Dickson
Member Avatar for Richard Dickson
Member Avatar for ChrisJ

Is it possible to add scrolling text across the page/video-camera-screen? On an html page, it uses this code: accept="video/*" in this context: <input type="file" name="fileToUpload" id="fileToUpload" accept="video/*" capture="user" onchange="submitForm();"> and when you view the page via mobile, and tap the page, your video camera screen appears. I'm looking to see …

Member Avatar for rproffitt
0
197
Member Avatar for anneseo08

I am currently creating a simple invoice page. But I am also having a hard time retrieving and displaying the price and description of items selected by the userfrom my dropdown (dropdown is populate from database). My knowledge of jquery and php were not that deep yet. I hope someone …

Member Avatar for k99rs
0
52
Member Avatar for Mustikamoos17
Member Avatar for r4ds

Hello. It is something very simple for someone who knows javascript. How to capture the text content of the pressed element? Important is that the page is built with PHP. <li><a onclick='cat();' href='#'>Text 1</a></li> <li><a onclick='cat();' href='#'>Text 2</a></li> <!-- Above PHP, important: text content element is dinamic--> <script> function cat() …

Member Avatar for r4ds
0
175
Member Avatar for SylveeAshley

I am writing a program that calculates the volume of a cylinder when you input the diameter and height, using the formula 1/4*height*3.14*diameter^2 However the issue is, whenever I do that, the volume always comes out to be 0 when I run the program. #include<iostream> using namespace std; int main() …

Member Avatar for Husoski
1
195
Member Avatar for jonsan32

I'm using the code below to get a random number of items from an array, but I'd like to just get 3-5 random numbers from the provide range to display. Right now, it either shows 1, all, or any amount in between. I'm also good with completely changing up my …

Member Avatar for Dani
0
80
Member Avatar for Charlotte_4

Hey i'm trying to change the image without the id. We can't change html so i can't use an id. I have this: <figure> <img src="images/start.png" alt="start"> <figcaption>Nog geen thema gekozen</figcaption> </figure> And in my script: document.querySelector('src') = "images/mode.png"; I don't know how to select it and change it.

Member Avatar for Dani
0
414
Member Avatar for BWBama85

Hi, I have a small script that I wrote in jQuery and I would like to convert it to vanilla javascript so I can ditch jQuery for pages that use this script. jQuery(document).ready(function($) { $(document).on('click', '.wpstp_button_follow', function(e) { e.preventDefault(); $.ajax({ type: 'POST', url: ajaxurl+"?action=wpstp_follow", data: $('#wpstp_form').serialize(), dataType: "text", success: function(response) …

Member Avatar for Dani
0
1K
Member Avatar for bprosic

Hi, I have a form in React with few select/input components. Form doesnt get populated when user enters value in them. Thats the case when I want for input "Username" -> when user starts writing here some username, then React - in Reducer -> filters array of whole users in …

0
49
Member Avatar for nanakumi75

I hope someone can understand my question and offer some help. I am creating a Flight Booking application with Amadeus APIs. I have a flight search form on the index page with hbs template engine. The form submits to /auth/flights for processing. I then want to display all error in …

0
26
Member Avatar for Maulana_1

#include<stdio.h> main() { int A[9]={6,3,1,5,7,4,2,8,9}; int Temp, I, J, K; printf("sebelum \n"); for(I=0; I<=9-1; I++) { printf(" %d ", A[I]); } for(K=0; K <= 9; K++) { J = K; for (I=K+1; I<=9-1; I++) { if (A[I] < A[J]) J = I; } Temp = A[J]; A[J] = A[K]; A[K] …

Member Avatar for rproffitt
0
90
Member Avatar for هات

I have a site that I follow frequently The problem is that it refreshes the page every five minutes And I never want this. Here, an addition to the Firefox browser named "stop auto reload" When you put the name of this site, it prevents it from updating every five …

Member Avatar for rproffitt
0
85
Member Avatar for manay

Hi! May I seek for your help on how to calculate the number of days between two dates excluding weekends and public holidays using javascript. Also, how to calculate the end date (start date and duration given) excluding weekends and public holidays. Thank you.

Member Avatar for AlbertinaGeller
0
387
Member Avatar for helloworld2021

Hi everythings, I have a question regarding on disabling today date on datepicker, i got this code from internet and it seem like working , but then i realised its starting disable today date from 08:00 am onward and not disable from 12:00 am, seems like its has problem with …

Member Avatar for rproffitt
0
43
Member Avatar for Fungus1487

I browsed google and found nothing so thought i would put my efforts up here. hope this all helps. this function will allow you to return the number of days between two dates minus saturdays and sundays. (including the start date)

Member Avatar for pritaeas
0
3K
Member Avatar for Mr.M

Hi DW. Anyone knows how I can get the device name the browser is running on? I mean something like on the attached image with Javascript? ![FireFox_SendTo.PNG](https://static.daniweb.com/attachments/4/6cbee440f2043da722eba44bed14568b.PNG)

Member Avatar for rproffitt
0
2K
Member Avatar for Sufyan_6
Member Avatar for Hamsterking

Hello i'm working on a small project that i have to retrieve movies data from a json API, then save the result into a csv. i'm able to display data with php eco but when i'm trying to write csv file i get the following Warning: array_keys() expects parameter 1 …

Member Avatar for pritaeas
0
359
Member Avatar for matei_

Hello, As the title says, my question is: how I can get the values for specific ID? For example, my plugin creates a PDF that automatically fills in with information that I get using API from my CRM platform. So, what I am trying to do now, is that in …

0
132
Member Avatar for rutu9392
Member Avatar for Shiva_20

## I am deleting item from cart through Jquery ajax,but it is not removing. It is returning "System.String[]". ## [WebMethod(EnableSession = true)] public string ClearItem(string Img) { try { if (Session["Items"] != null) { string[] session_item_arr = Session["Items"].ToString().Split('|'); for (int i = 0; i < session_item_arr.Length; i++) { string[] key_arr …

Member Avatar for lps
1
235
Member Avatar for Rabana_1

def Count_Total_Words(str1): total = 1 for i in range(len(str1)): if(str1[i] == ' ' or str1 == '\n' or str1 == '\t'): total = total + 1 return total string = input("Please Enter your Own String : ") leng = Count_Total_Words(string) print("Total Number of Words in this String = ", leng)

Member Avatar for rproffitt
0
130
Member Avatar for chandkrishneel

Im trying to display/show the Total Average in the heading (beside it) and not in the dataset table. I tried different methods but it wont show. (The last method I tried to work with is what in including in the codes. <!DOCTYPE html> <html xmlns='http://www.w3.org/1999/xhtml' xml:lang='en' lang='en'> <head> <meta charset='UTF-8' …

0
61
Member Avatar for jonsan32

I'm not good with math functions at all, but I've searched for a while and couldn't find anyone even touching on this subject. I'd like to have the price of $900 slowly approach $1500 between the dates of April 1st and August 1st. That's about $5 per day, and the …

Member Avatar for Mr.M
0
44
Member Avatar for mollyrock705

![Inked235345364566556546_LI.jpg](https://static.daniweb.com/attachments/4/b5bf788aff340f6e41ee2b6d28f1f5c9.jpg) Sample output: Enter number of guests: 40 40 guests have been invited. Enjoy the party!

Member Avatar for loveboat
0
452

The End.