17,029 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for gentlemedia

I have the following which works fine for text inputs, textareas and selects with the class 'stored'. $(function() { $.each($('.stored'), function() { if(localStorage[$(this).attr('name')]) { $(this).val(localStorage[$(this).attr('name')]); } }); $('.stored').on('change', function() { localStorage[$(this).attr('name')] = $(this).val(), $(this).find('option:selected').val(); }); }); To store radio buttons or checkboxes with the class 'stored' in localStorage I've tried …

Web Development javascript-jquery storage
Member Avatar for gentlemedia
0
1K
Member Avatar for Amaina

My question is related to an [answered question](https://www.daniweb.com/programming/web-development/threads/506078/parsing-xml-to-extract-attributes) that was asked here on the ever reliable forum - Daniweb. I have been trying to insert the parsed data as a string into mysql table in vain. This is what i am trying to do..... From the solution in the link …

Web Development mysql php xml
Member Avatar for Amaina
0
624
Member Avatar for Sylvia_3

I have this code and need to have it on a table but the table is not creating. What am I doing wrong? <!DOCTYPE html> <html> <body> <script> var investment = 2000; var interest_rate = .12; var deposit_amount = 100; var start_age = 44; var end_age = 65; var beg_balance …

Web Development javascript
Member Avatar for Sylvia_3
0
276
Member Avatar for Joe_10

currently I have a survey with 10 questions on a html/ php form. I use post data and then have a long insert statment. My code looks something like this. <php? $surveyid = $_POST['surveyid']; $q1 = $_POST['q1']; $q1comments = $_POST['q1comments']; $q2 = $_POST['q2']; $q2comments = $_POST['q2comments']; $q3 = $_POST['q3']; $q3comments …

Web Development mssql php sql
Member Avatar for ryantroop
0
538
Member Avatar for Amaina

I have an xml file that looks like this <?xml version="1.0" encoding="UTF-8" ?> <dates> <date> <Item Name="History" Type="List"> <Item Name="received" Type="Date">2015/12/18 00:00</Item> <Item Name="accepted" Type="Date">2016/03/31 00:00</Item> <Item Name="aheadofprint" Type="Date">2016/04/14 00:00</Item> <Item Name="entrez" Type="Date">2016/04/15 06:00</Item> <Item Name="pubmed" Type="Date">2016/04/15 06:00</Item> <Item Name="medline" Type="Date">2016/04/15 06:00</Item> </Item> </date> <date> <Item Name="History" Type="List"> <Item Name="epublish" …

Web Development php xml
Member Avatar for Amaina
0
868
Member Avatar for SimonIoa

Hello i want to return data using jquery like this function countries() { var html=''; var j=''; var encodedata=JSON.stringify({}); var url=apiBaseUrl+'api/countries'; ajaxPost(url,encodedata, function(data) { if(data.countries.length) { $.each(data.countries, function(i,data) { html= '<div class="panel panel-default">'+ '<div class="panel-heading">'+'<a href="'+data.country_id+'" class="feed-author" target="_blank">'+data.name+'</a>'+'</div>'+'</div>'; }); } }); } and this is php function countries() { try …

Member Avatar for diafol
0
244
Member Avatar for Joe_10

I am trying to follow the steps in an example on fpdfmakes webiste. However I am using sql server instead of mysql. Could someone give me some pointers so I can get this to work correctly? thanks <?php require('fpdf.php'); //Connect to your database $serverName = "myserver"; $connectionOptions = array("Database"=>"mydb"); $conn …

Web Development pdf php sql
Member Avatar for diafol
0
2K
Member Avatar for Link_1

I am using visual basic, javascript, and html. I am trying to use google hierarchy chart api. I works fine on localhost but when I try to move the same code to the server than I get the following error: Error: Object doesn't support this action <%@ Page Language="VB" AutoEventWireup="false" …

Web Development asp asp.net javascript
Member Avatar for Link_1
0
3K
Member Avatar for <HHH>

Hello, I'm trying to use md5 in python3 using the attached code from hashlib import md5 password = 'pa$$w0rd' h = hashlib.md5() print(h.hexdigest()) put it gives me this error (cannot import name 'md5') and when i try to import hashlib only it gives this error (module 'hashlib' has no attribute …

Web Development python
Member Avatar for <HHH>
0
2K
Member Avatar for AssertNull

I am a member of another forum and forgot my password, so I clicked the "Forgot password" link and was told "fill this form out and we'll send you your lost password" or words to that effect. It occurred to me that I had never seen language like this and …

Web Development cybersecurity
Member Avatar for AssertNull
0
280
Member Avatar for RudyM

Hi all, I have a web application written in ASP.NET. All is working ok, except that I would like to compress the data being returned. The data is basically a List of custom models. Currently I do something like: `HttpResponseMessage json = Request.CreateResponse(HttpStatusCode.OK, my_models_list);` and return this from the method. …

Web Development asp.net json
0
137
Member Avatar for anirban1087

Hi, All Presently I am working on a MLM (Multi Level Marketing) Software using PHP & MySQL. But I am not being able to display the Down line Tree of any particular member. I am using Pre order Tree. But my product should support Spill Over Binary Tree. Please Help …

Web Development mysql php
Member Avatar for Rishos
0
5K
Member Avatar for Stefce

Hello, i want to make a categories menu which each will have its own sub-categories and that category will have own sub-categories im trying to make with arrays but i'm not really good at it.. im trying right now with bunch if statements but is there any other method of …

Web Development iphone php
Member Avatar for diafol
0
2K
Member Avatar for wad

[CODE]<?php header('Content-type: image/JPG'); $username = "root"; $password = ""; $host = "localhost"; $database = "image"; @mysql_connect($host, $username, $password) or die("Can not connect to database: ".mysql_error()); @mysql_select_db($database) or die("Can not select the database: ".mysql_error()); $query = mysql_query("SELECT * FROM img"); while($row = mysql_fetch_array($query)){ echo $row['image']; } ?> [/CODE] that code display …

Web Development display image mysql php
Member Avatar for pritaeas
0
13K
Member Avatar for Amaina

I have been trying to get my PHP script return two different pages namely: get2015 and get2016. The aim is to have these two pages have pagination links below them. To achieve this i have written two scripts in two different files that look like this: file 1 = functions.php …

Web Development mysql php
Member Avatar for Amaina
0
498
Member Avatar for sreein1986

Hi, everybody, How to change the images after every 5 seconds in html?????? The images should display in the same places for every 5 seconds????? can anybody send me code please.... i posted this thread in HTML forum somebody told me that post here so please help anybody And Advanced …

Web Development html-css javascript
Member Avatar for diafol
0
7K
Member Avatar for ZeroEddy

Hello there I am currently just making a sample website to try and get back into the swing of things but I am encountering a problem with one of my divs. The div giving trouble is the leftContent div. I want to set the height of it to fit the …

Web Development html-css java-swing
Member Avatar for ZeroEddy
0
465
Member Avatar for showman13

I've been using an .htacccess file to define a rewrite rule for extracting the username from the end of a url for years. The username has always been a combination of letters and numbers following a forward / and that is all, and it has been working just fine. Here …

Web Development php session
Member Avatar for showman13
0
541
Member Avatar for <HHH>

Hello, Im trying to install pymongo package to be able to connect to MongoDB using pip pip install pymongo but it produce the below error Could not find a version that satisfies the requirement pymongo (from versions: ) No matching distribution found for pymongo

Web Development mongodb python
Member Avatar for ~s.o.s~
0
2K
Member Avatar for Steven_10

I am trying to understand JavaScript timers so I'm attempting to use JavaScript to keep time and then display text at the correct time and then change the text at another time. setInterval() will not work because I need the timer to be variable. To accomplish this requirement I want …

Web Development javascript javascript-jquery
Member Avatar for Steven_10
0
309
Member Avatar for anand01

hi all , Am doing event management project. In jsp page am using javascript date picker. Then i passed that to servlet page by the following code. DateFormat formatter ; formatter = new SimpleDateFormat("dd-MM-yyyy"); Date date=formatter.parse(request.getParameter("date")); now I want to insert date in mysql database , How can I achieve …

Web Development java-jsp mysql
Member Avatar for Sushmitha_1
0
9K
Member Avatar for SimonIoa

Hello i am trying to put a value into a field on a table in my database. The value changes accordingly so the type of the column is ENUM ('P','A','T') but everything i do the value tha is been inserted is 'P'. this is the html `<input type="hidden" id="type" name="type" …

Web Development api javascript json mysql
Member Avatar for SimonIoa
0
348
Member Avatar for SimonIoa

I get this error when ever i try to upload a file. Automatically populating $HTTP_RAW_POST_DATA is deprecated and will be removed in a future version. To avoid this warning set 'always_populate_raw_post_data' to '-1' in php.ini and use the php://input stream instead. in Unknown on line 0 Does anybody knows what …

Web Development file-stream php
Member Avatar for SimonIoa
0
3K
Member Avatar for newbee_jv

Hello everyone, I have 2 Tomcat app servers (Tomcat1, Tomcat2) on 2 different hosts. Tomcat1 is my main J2EE web application that has a commercial certificate, and the application works correctly. Tomcat2 is a dependent component that has a self signed certificate. both tomcats are behind a load balancer. When …

Web Development asp web-browser
Member Avatar for newbee_jv
0
2K
Member Avatar for CreatorZeus

My Error info isnt being clear enough for me to understand the problemIs there anything worng here so i can continue on lookng for the probelm: $sql = "INSERT INTO boards ( title, genre, creator, tagline, intro, remessage, visability, recruitment, reqsheet, reqdice, reqgroup, ppweek) VALUES ( $title, $genre, $creator, ". …

Web Development mysql php sql
Member Avatar for diafol
0
428
Member Avatar for <HHH>

Hello I have created two classes one for the user and the other for address every thing is ok and the tables of the two classes created in my database but when i try to initiate a new object from user class i get the below error "sqlalchemy.exc.InvalidRequestError: Mapper 'Mapper|user|user' …

Web Development python session sqlite
Member Avatar for <HHH>
0
10K
Member Avatar for SimonIoa

hello i want to upload an audio file. i specified the location but the file doesnt go there. it stores the path in the row in the table on database but it doesnt store the file on the folder. i define the upload path on my config file define("UPLOAD_PATH_AUDIO", "uploads_audio/"); …

Web Development audio php
Member Avatar for diafol
0
949
Member Avatar for lewashby

I've tinkered with php in the past but I'v also enjoyed playing around with python. I have been wanting to give python a try as a possible alternative to php but I haven't had much luck. All of the videos I find on the subject are about setting up Django …

Web Development apache python python-django
Member Avatar for lewashby
0
1K
Member Avatar for Jon_7

I have a chart for my fundraising goal, but I'd like to make it more minimal by removing the percentage number and placing the 4 items immediately below the table into the table itself. I'd still like for the % to be able to be manually set (perhaps a data …

Web Development html-css javascript
Member Avatar for Jon_7
0
319
Member Avatar for showman13

I am simply trying to compare a value entered into a form, to ensure it begins with a ? mark. I have tried suggestions I could find online but can't seem to get it to see when the ? is missing Any suggestions or direction would be greatly appreciated. if(!preg_match("/[\s]*(?)/i", …

Web Development php
Member Avatar for showman13
0
146
Member Avatar for SimonIoa

Hello i am not familiar with returning HTML in Javascript code. I have this code. I want to return an audio player but nothing returns. var uploadImageHTMLTitle='<audio controls preload="metadata" id="'+data.msg_id+'">'; var uploadImageHTMLFooter='</audio>'; var uploadImageHTML=''; var C=''; if(data.uploadPaths.length) { if(data.uploadPaths.length > 1) { uploadImageHTML+=uploadImageHTMLTitle; for(var i=0; i<data.uploadPaths.length; i++) { C='<source src="'+data.uploadPaths[i]+'" …

Web Development audio html-css javascript
Member Avatar for SimonIoa
0
310
Member Avatar for <HHH>

Hello, I'm trying to write my first cookie on python but when i import cookie or even http.cookie it gives me the below error import cookie c = cookie.SimpleCookie() c["value"] = "first" print (c) ImportError: No module named 'cookie' [Finished in 0.3s with exit code 1] [shell_cmd: python -u "C:\Users\hohait\Desktop\test.py"] …

Web Development ide microsoft-access oracle python
Member Avatar for <HHH>
0
5K
Member Avatar for rpv_sen

Hi can any one please help me with some sample for multiple textbox value in php search. all the fields in the search are in one table. I have attached screen for the reference. ![a4ec5f0f3cab021bb2e13c6b18d4c008](/attachments/small/3/a4ec5f0f3cab021bb2e13c6b18d4c008.JPG "align-left")

Web Development php sql ui-ux
Member Avatar for Kon Hu
0
520
Member Avatar for Latrell_vie

Hi ! I'm including the following jquery slider plugin into my website. Unfortunatly I still don't know how to change certain parameters like displayList, adaptive Height etc. The author says you can add these options during the slider initialization to customize it. I'm furthering my jquery knowledge but for now …

Web Development api javascript javascript-jquery
Member Avatar for Community_1
0
1K
Member Avatar for xuexue

Hi Guys! This code is working fine before I removed other programs from my computer since it is already getting slow. Now, i don't know which program I've deleted that I needed to restore again. Error Code Says: `The 'Microsoft.ACE.OLEDB.12.0' provider is not registered on the local machine.` I am …

Web Development asp.net visual-studio
Member Avatar for xuexue
0
135
Member Avatar for Jon_7

I have a list of 4 upcoming events with a fair amount of detail for each. I'd like for the upcoming event to be first one the list no matter the time of year. I'm not very good at code, but I follow instruction well. Here's what I was thinking: …

Web Development
Member Avatar for Jon_7
0
492
Member Avatar for Faisal_13

Dear devolepers, I have problem with my sql database, I want acces my sql database in my <LI> list plaese help to resolve this problem Here is my html sql database : my_db table : info_list Table columns : id,name,job,town,mobile1,mobile2,phone,adress i want to display town list in this <li> list …

Web Development listview mysql php
Member Avatar for cereal
0
2K
Member Avatar for Nareshp_123

Hi all, I want to have a button in a page like 'open File'. on which if user clicks, it should open open file dialog box to select a file and as soon as he clicks on the open button it should open the file (in same window or different …

Member Avatar for Ankur_6
0
4K
Member Avatar for uselessninja

hi...i've research fusion chart... and i find it nice .. I would like to retrieve from my database(SQL) and graph it using php is there anybody here experience working with fusion chart and php?...

Web Development php
Member Avatar for Ankita_11
0
908
Member Avatar for RudyM

Hi all, This is a very elementary question, but I'm a couple of days into this. Which web.config file should one store keys in? Keys to use within a Model/Controller? I see four different ones: Project > Views > Web.config Project > Web.config Project > Web.config > Web.Debug.config Project > …

Web Development asp asp.net
Member Avatar for RudyM
0
303
Member Avatar for Goddy_1

Customers pick When finished If on the book, such as the selection of Van Dyke VT01 from 1/07/59 - 2/07/59-day period, you will not be able to book your car again. It is based on the availability of the vehicle. I made a separate table Storage booking Van table separately …

Web Development mysql php storage
Member Avatar for cereal
0
176
Member Avatar for Abhi_6

I have an Array containing arrays with 8 values, I want to group **date** element having same **teacher_name**, **school_name** and **month_year**. Below is my array: Array ( [0] => Array ( [teacher_name] => CF [school_name] => School 1 [month_year] => Jun 16 [starttime] => 04:04 PM [endtime] => 05:04 PM …

Web Development php
Member Avatar for diafol
0
296
Member Avatar for gahhon

In JS i tried something like this, window.onbeforeunload = function() { window.open('http://www.msn.com','_self'); return 'close?'; } but it doesn't redirect the page, but the return statement is displayed. how can i do to archieve redirect a specify page without any alert?

Web Development asp.net
Member Avatar for sunil_17
0
2K
Member Avatar for SimonIoa

Hello this is going to be a long post so thanks in advance for just reading it. I think it will help many users. I want to store additional data and to add new rows to a table. I know about mysql and php but i am not familiar with …

Web Development javascript json php
Member Avatar for SimonIoa
0
382
Member Avatar for showman13

I have been all over the internet trying to figure out how to plan an embedded youtube video in full screen automatically and have failed at every turn. Any ideas here? <iframe src="//www.youtube.com/embed/9ptECXgpIwk?rel=0&autoplay=1" frameborder="0" allowfullscreen></iframe> several links on the web say that the rel=0 is what makes it happen, but …

Web Development php video
Member Avatar for showman13
0
3K
Member Avatar for Stefce

$sql = "INSERT INTO kladilnica (Username, Uplata, Dobivka, Date, regTime, Odds, isActive, ticket_id, isShared, is_wined, Location) VALUES ('".$user."', '".$bet."', '".$gain."', '".$date."', '".$regTime."' '".$odds."', 1, $randomTicketID, 0, 0, '".$userLocation."')"; $result = $conn->query($sql); trigger_error('Wrong SQL: ' . $sql . ' Error: ' . $conn->error, E_USER_ERROR); I searched on google and found that …

Web Development php sql
Member Avatar for Stefce
0
982
Member Avatar for A_6

The code is: `echo " AS " . $index - 10 . " - " . $index . " SA ";` `$index` is an integer. The output is: `-10 - 0 SA` The expected output is: `AS -10 - 0 SA` What am I missing?

Web Development php
Member Avatar for cereal
0
259
Member Avatar for donz365

Hi, I am gone crosseyed from trying to figure this out. I dont ususally post on this site I am half scared of getting told off for being out of my league!!! I am creating a website for a training company and I need to get the course info from …

Web Development php
Member Avatar for cereal
0
11K
Member Avatar for bprosic

hello, I have four arrays. Three arrays are in one group and fourth is in the second group. And I need to use array_diff somehow between theese two groups. First group has one array which contains unique numbers (like barcode number), second array with a product name and third array …

Web Development php
Member Avatar for bprosic
0
356
Member Avatar for beanboy

hi, The jsp page has multiple check boxes (retrieved from DB),.... [CODE] <input type="checkbox" name="selecttype" value="<%=rs2.getString("description") %>"/> [/CODE] I've read these values in to servlet page using [CODE] String[] selecttype=request.getParameterValues("selecttype"); [/CODE] the 'selecttype' now contains only selected checkbox values. but i want to retrieve values of unchecked checkboxes. Pls help …

Web Development java-jsp
Member Avatar for vk
0
4K

The End.