15,127 Topics
| |
| |
## 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 … | |
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) | |
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' … | |
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 … | |
![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! | |
This is an api signing key maker.I want to convert this into php code as this is not able to integrate into my php project. public static String signingkey(String apiAccessKey, String hmacSecretKey, String apiMethod, String clientip, String jsonInput) { String retval = ""; final String HMAC_SHA_512_ALGORITHM = "HmacSHA512"; final String … | |
There is a PHP login code but I don't know how to show the error message when the user types wrong datas into the input fields. I used to have a `echo"Wrong username or password!";` But I want to display a DOM element. I don't know how to make it. … | |
I have a page that list all of the users from mysql database. I put a **delete** button in it so you can delete the profile instantly. But I didn't want to delete the user instantly so I put a code that create a modal box when you click onto … | |
Hi...i am sam...newbie developer who knows a thing or two so far. | |
Hello Fam Am a newbie am trying to get each input box seperately with js pls i need help <!doctype html> <html> <head> <title> test </title> </head> <body> <!-- <input type="number" value="1" id="demo"> --> <?php for ($i=0; $i <= 5 ; $i++) { ?> Number <?php echo $i;?>: <input type="number" … | |
My working code is below, but it chokes when I add more than 5 queries. Can anyone offer some guidance? var dataA = ""; var dataB = ""; function initialize() { var opts = {sendMethod: 'auto'}; var queryString = encodeURIComponent('SELECT J, K, C, E, F WHERE I=1'); var queryA = … | |
/** * @param args the command line arguments */ public double averagegrades(double total, double average) { average = total/5; return average; } public static void main(String[] args) { Scanner input = new Scanner(System.in); double[] grades = new double[5]; double total = 0; double average = 0; for(int i=0; i<5; i++){ … | |
Hello everyone. Thanks for taking Time to read muy question AND, hopely, giving retribution. Im from Argentina, currently studying a sort-of full stack node.js carreer. I want to build an online portfolio so I can boost up my possibilities of landing a job when I finish it. So I want … | |
Hi there, I am trying to get images onto an HTML5 canvas. The images are on the same page in a sidebar panel getting loaded in through php. If you click on an image on the sidebar, I want it to appear on the canvas. I am learning jquery, but … | |
public static void main(String[] args) { int agrades = 0; int fgrades=0; int count=0; Scanner input = new Scanner(System.in); System.out.println("Enter Grades: "); int grades = input.nextInt(); while (grades>=0 && grades<=0){ if (grades>=90 && grades<=100) agrades++; if (grades>=0 && grades<=60) fgrades++; count++; grades = input.nextInt(); } System.out.println("Amount of Grade: " + … | |
After page loading , when I click on the ellipsis , horizontal tabs transform from bottom of the product image . After opening of the tabs menu bar , first tab should open by default.I tried multiple solutions but none of them worked out. | |
Can anyone suggest me which one is a better platform for e commerce website development? | |
hi i have to create a desktop application for "Timetabel Management System" . for that i'm gonna use Java language and i'm really confusing about what platform i have to use it? bcaz my group members suggest me eclips and some suggest me Netbeans? can u help me out with … | |
Hello. I noob programing. I need extracting "ALGARROBO" and put in variable in JS. <select> <option value="0560200101">ALGARROBO</option> <option value="0760200601">CALIFORNIA</option> "" "" "" +70 options </select> Someone would be so kind to give me the js code? It is not possible to change the "value", since that information goes to api … | |
Hi all, Used Asp.net Menu Control have designed a navigation bar .Using touchscreen Desktop in Internet Explorer(IE11), single tap not appear but double tap submenus appears but in Microsoft Edge/Google Chrome browser not appear submenus by single tap/double tap . Touch is working in Edge/Chrome by single tap in other … | |
This is a simple tictactoe game. When I launch my code, the alert to enter 1,2, or 3 for the row only shows up after I press enter. How do I make it show up first each time I put a new entry? <!DOCTYPE html> <html lang="en" dir="ltr"> <head> <title>TikTakToe … | |
I am new for PHP. I tried to display text box value based on drop down selection. it seems code working. no error display here. But when i change the drop down, text box value shows empty. Even print the data it will display only null. HTML:- <select name="cat" id="cat"> … | |
how to extract and save images from csv file in python | |
Hi! I have been trying to figure out how to generate 10 random numbers in a row with this : The code should include: var text = " "; var number ; for (var i = 1; i <= 100; i++) text = text + number if (i % 10 … | |
Hi, I am new to web development so I am still kind of unsure to how everything works so sorry if it is something obvious. To create the scenario, I need to create a music player using html5, javascript and css. I very much got stuck on how to shuffle … | |
I created an html page with days of the week Mon Tue Wed Thu Fri Sat Sun The corresponding page is linked to each day I would need that when the page opens, the day is automatically highlighted based on the day of the week and that there is a … | |
I want to do code array with topic bmi.....can you give one example? | |
hi, i made a game in java but i don't know how i can place it on the web ? Can anybody help ? | |
Write a program that prompts the user to input (word/statement), Accepts only letters. The program then: 1.Remove all the vowels from the (word /statement) then output the (word /statement) without vowels. 2. Outputs the number of vowels. 3. Convert the lowercase vowels letters to uppercase and vice versa. Conditions: 1. … |
The End.