8,328 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for peter_budo

After spending some time on JSP section of this forum as many before me, I come to the conclusion that we are in need of "proper" tutorial on this topic. This tutorial is not intended to teach you everything from top to bottom, it is just a starting point to …

16
8K
Member Avatar for Iron_Cross
Member Avatar for [NOPE]FOREVER

I have an enquiry form where once the user click the submit button the form mailhandler.php and sends the email to myself. I have tried doing this through php but its not fully working as I do not recieve any emails. Here is my mail handler.php <?php if(isset($_POST['buttonSubmit'])){ $to = …

Member Avatar for imti321
7
506
Member Avatar for [NOPE]FOREVER

I have a php/mysql project and I am currently trying to display a table into an html table through PHP how ever Only the headers are getting returned not the actual table data, here is my query plus html table <?php $result = mysql_query("SELECT * FROM store"); echo"<table border = …

Member Avatar for [NOPE]FOREVER
7
192
Member Avatar for Troy III

This code enables you to publish a CSS only with mouse click and keyboard tab image swap. Attached is a Demo example of how it would look on IE6. To ensure the greatest possible cross-browser compatibility/support this code uses CSS level 1 capabilities only. One of extra benefits is that …

Member Avatar for pol.bala
7
2K
Member Avatar for mattster

## Introduction ## Ever since the dawn of programming, we have had the luxury of variables, OOP, functions and other lovely tools within our languages. CSS is arguably the easiest language to ever pick up, with everyone having to learn it’s basics. However, it lacks any power, as we have …

Member Avatar for mattster
6
867
Member Avatar for Sarah_27

I am stuck in between Adobe Analytics and Google Analytics.. Help me out.... Should I go with the traditional style or use any other Analytics??

Member Avatar for AccuWeb Hosting
5
6K
Member Avatar for JorgeM

I have seen several posts through the years with questions about navigation menus. Menus can be built using different approaches. This example is easy to build and simple to integrate with your site. The menu is built only using HTML and CSS so you don't have to have a lot …

5
449
Member Avatar for vegaseat
Member Avatar for pallavi2501

I’m looking for practical advice and best practices that can help improve a site's speed, considering factors like image optimization, code minification, and server response times. How do you balance performance improvements with maintaining a rich user experience? What tools or techniques have you found most useful in diagnosing and …

Member Avatar for adwinafram
4
252
Member Avatar for tekagami

**Introduction** Lets say you have a website with a mobile version and a desktop version. Pictures can be resized proportinally using css on either version. But not all html tags resize proportionally, for instance: iframes. **Javascript Function** includes: the *id* of the iframe, the *original width* and *original height* See …

Member Avatar for Hicaro_1
4
861
Member Avatar for PsychicTide

Hello all! I have been away from this forum for far too long and would like to help with my experience/knowledge. This place helped me get through college and early professional work as a web developer. Is there a section to post random code snippets for tasks that may help …

Member Avatar for PsychicTide
3
75
Member Avatar for Reverend Jim

As part of a project to manage my collection of photos, I wanted to add the capability of displaying a series of files as thumbnails. This posed me with three problems: 1. how to preserve the aspect ratio of the original images 1. how to generate the thumbnails without tying …

Member Avatar for mariopepper
3
3K
Member Avatar for Dani

I'm trying to use CSS as so: <link rel="stylesheet" media="screen and (max-width: 991.98px)" href="/files/mobile_css/daniweb.css" type="text/css"> <link rel="stylesheet" media="screen and (min-width: 992px)" href="/files/css/daniweb.css" type="text/css"> I want to load one CSS file for our mobile layout and a different one for our desktop layout. The problem is the web browser always downloads …

Member Avatar for Dani
3
2K
Member Avatar for ushajase
Member Avatar for Imam_5
3
43K
Member Avatar for Violet_82

Hi guys I wonder if you can help me with this as it's driving me absolutely crazy. So, I have a div, in the first screenshot which looks pretty much like a scale and can be rotated right up to 45 degrees and left up to -45 degrees ![arm_0.jpg](/attachments/large/2/7fbaf6a4b6f6140020d69bcf00526f0c.jpg "align-center") …

Member Avatar for Geoff_3
3
311
Member Avatar for canonzone

his is an example of creating a semi-dynamic pie chart without the use of server-side imaging libraries [url]http://www.surfare.net/~toolman/temp/diagram.html[/url] CSS Diagrams Things to Do With CSS When You’re Bored at Work [url]http://komodomedia.com/blog/index.php/2005/08/24/creating-a-star-rater-using-css/[/url] Star Rater Creating a Star Rater using CSS [url]http://komodomedia.com/blog/index.php/2006/01/09/css-star-rating-part-deux/[/url] CSS Star Rating CSS Star Rating Part Deux [url]http://www.jluvip.com/works/css/starvote/index2-1.html[/url] Star …

Member Avatar for christian_8
3
2K
Member Avatar for Reverend Jim

Sometimes there are functions you want your program to perform in the background while you are busy doing other things. For example, if you are building a picture viewer application you may not want to wait until thumbnails are generated before getting on with the business of viewing the pictures. …

Member Avatar for Reverend Jim
3
4K
Member Avatar for veedeoo

This is a continuation of our basic tutorial on MVC Framework. In this section, we will be creating the template files for both the TBS and the Smarty template engines. **The recap** In [part one](http://www.daniweb.com/web-development/php/tutorials/476695/part-one-php-mvc-framework-understanding-the-basics), we have created application controllers, models, and the one and only lone View class. Once …

Member Avatar for Geetha_1
3
8K
Member Avatar for rubberman

PHP is an object-oriented language, based (loosly) upon C++. It has classes, methods, member variables, and all that other good stuff. It runs on your web server, not in the client, but the HTML, JavaScript, and other stuff such as CSS blocks that it emits with its output commands are …

Member Avatar for TexWiller
3
2K
Member Avatar for veedeoo

The purpose of this class is to be able to create an html form with ease. This is inspired by the form helper in CodeIgniter. This can easily adapt to bootstrap or any css and jquery where id is required. To use this class, we need to include the class …

Member Avatar for veedeoo
3
764
Member Avatar for Violet_82

Hello guys, A few days ago I was looking on the net for a good jquery tabbed navigation – I needed it for a project – and I have to say that what I found wasn’t really what I was hoping for. An awful lot of people seem to be …

Member Avatar for Violet_82
3
182
Member Avatar for ddanbe

A modal dialog is a window that you must respond to. The MessageBox for example is such a window. It is a handy tool for displaying a warning or other kind of message to the user. But, you can configure it only in a limited way. Xcelled194 did a good …

Member Avatar for ddanbe
3
974
Member Avatar for jeffcogswell

Netbeans is a free, open source IDE for developing software in Java. It's been around for almost 15 years, having gotten its start around the time Java began. Version 7.0 is about to be released, and I got my hands on the Beta release of this new version. In the …

Member Avatar for cyvre
3
390
Member Avatar for Reverend Jim

First I want to say that my only interest in the technical details of web development are from an end user perspective. I usually go to [this site](https://www.theweathernetwork.com/ca) to get my weather forecasts. Their current display format is to present the forecasts horizontally but it will likely be changing soon …

Member Avatar for quackyfist
2
234
Member Avatar for Read a Book

Hello everyone i want to disable the automatic swipe effect on my product page on this site https://kupisi.mk the lib is called lightgallery i am not able to find the line of code to turn it off for 2 days i need fresh pair of eyes !! :S i made …

Member Avatar for Dani
2
364
Member Avatar for abu taher

In HTMl from I have a Input field type month. When I select a month and click on search button then total days of selected month show in HTMl table with backend data. This table contain salary. I want the salary is calculate with Total days. I write a script. …

Member Avatar for Jane_11
2
238
Member Avatar for borobhaisab

Hiya, I need to know something. First I thought Sitemap Xml files will list all .html and .hml and .shtm and .shtml files. All pages of the website. But now I see, Sitemap xml files also list other xml files. Check this one out for what I mean: https://www.rocktherankings.com/sitemap_index.xml So …

Member Avatar for Dani
2
917
Member Avatar for Dani

A little while ago, I wrote a [tutorial](https://www.daniweb.com/programming/web-development/tutorials/537376/sanitize-php-user-input-strings) about how important it is to sanitize PHP user input strings. Not only is it important to sanitize user input being fed into a database query, but it's also important to sanitize user input being displayed to the end-user to generate valid …

2
280
Member Avatar for dimitrilc

## Introduction ## This tutorial teaches you how to implement the Type-safe Builder pattern using Kotlin. This pattern allows developers to create declarative and concise DSLs. Our implementation will be a Burger Builder that enables our users to create Burger objects expressively. ## Goals ## At the end of the …

2
436
Member Avatar for angelamotley

I want to know about the exact difference between the XM Sitemap & HTML Sitemap. I already take the help of Google but not satisfied. Expecting a better reply from your side. Thanks

Member Avatar for 6Maxi
2
864
Member Avatar for darkbox

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 …

Member Avatar for Biiim
2
377
Member Avatar for Jen Larosa
Member Avatar for Varnisha Kalra

Now as the automated cms are coming in power for eg. wordpress. Is it leading to ending of web development career.?

Member Avatar for Biiim
2
2K
Member Avatar for patk570

Hey everyone, I got bored one day and created this little jem. There are no issues with it, but it may help somone out later on down the road if they have a simple project that needs to be completed. Everything is on one pages and includes elements …

Member Avatar for patk570
2
3K
Member Avatar for BustACode

I needed a random color selector. I found one [here](http://peepspower.com/python-script-to-generate-random-css-colors). I rewrote it to make it more general purpose. "f_GenRandomColor" is the picker. The output is in list form, which should make it suitable for most general applications. "f_HTMLRandomColorChart" is just a way to create an HTML table to test …

Member Avatar for snippsat
2
524
Member Avatar for JorgeM

A while back, I was working on some web pages that required a tabbed menu at the top of the content. In addition, the requirement was that the page should not perform a post back when the user clicked on the individual tabs. It was very important to have a …

2
282
Member Avatar for mattster

I was looking for something similar myself a few days ago, and found the odd example of a CSS based monopoly-type game board. To be honest, they were all shabby examples made with code that left my eyes bleeding. I decided to make my own board and get it right …

Member Avatar for pritaeas
2
1K
Member Avatar for <M/>

I learned how to make a storm, and this is how you do it: HTML: `<div class="stormy"></div>` CSS: /* STORMY */ .stormy { animation: stormy 5s ease-in-out infinite; background: #222222; border-radius: 50%; box-shadow: #222222 65px -15px 0 -5px, #222222 25px -25px, #222222 30px 10px, #222222 60px 15px 0 -10px, #222222 …

Member Avatar for <M/>
2
219
Member Avatar for Dani

Our up/down voting buttons don't do anything on iOS devices (iPhone, iPad). Confirmation that they work fine on Blackberry and other mobile devices. Additionally, they work fine on all desktop browsers, including Safari. HTML code looks like this: <div class="vote-arrow downvote" data-vote="-1">&nbsp;</div> <div class="vote" title="Vote on posts with a comment …

Member Avatar for JorgeM
2
359
Member Avatar for Dani

I am often asked how to create a tableless two column CSS layout so I thought I would just post it here for once and for all.

Member Avatar for MidiMagic
2
528
Member Avatar for PCBrown

[ATTACH=RIGHT]16395[/ATTACH]HTML5 is a young programming language, with a lot of promise. It has been lauded as the Flash replacement that will revolutionize the web and more importantly, the mobile web. But with so much speculation and excitement, it's hard to recognize the forest for the trees. Where did HTML5 come …

Member Avatar for <M/>
2
442
Member Avatar for Troy III

# This is a simple HTML String Sanitizing tool. # ## It allows a highly rich,- but safe - html content input to be published on your pages. ## **The script code is very light and to some degree customizable.** * This function takes care of blacklisted tags, which are …

Member Avatar for Troy III
2
274
Member Avatar for LastMitch

I'm new to this forum but I do read posts as a non-member and I learn a lot from reading other posts from other member. I'm having problem understand how to write the code correctly. I can't seen to figure out the international shipping cost but for domestic it works. …

Member Avatar for LastMitch
2
200
Member Avatar for peter_budo

Sometimes one line of tool tip is not enough. You may want to try and play around with JToolTip, but if you in hurry this "little hack" can be handy. With little of HTML plus CSS code you can work out various formats (font, colour, alignment, size etc.).

Member Avatar for peter_budo
2
508
Member Avatar for jeffcogswell

I've been using jQuery for a few years now, and the more I use it, the more I like and appreciate it. It seems like I'm always finding new ways to use it, and usually those new techniques result in me writing less code and ultimately being more productive. On …

Member Avatar for twiss
2
584
Member Avatar for RoyalElite96

Hello everyone, I want to create a completely round <div> using only HTML / CSS, but without border-radius. I don't want use background images, because I'll have probles resizing them and that's not cool. Is there a better solution? Thanks in advance!

Member Avatar for brynFlew
2
150
Member Avatar for happygeek

Internet Explorer used to reign over the web browser client kingdom with a seemingly vice-like grip, but the latest statistics suggest that the Microsoft market share crown is slipping significantly. Although Chrome only has a 7.98 percent share according to one recent report, it has carved that out in a …

Member Avatar for sagemore48
2
955
Member Avatar for bunnyboy

Hello guys! At school we were given a homework to read some info from web page and display it. While surfing over net for some infos how to approach to this a came across at HTML Agility Pack. I decided to use it. But I have some problems with parsing …

Member Avatar for bunnyboy
2
184
Member Avatar for roryt

Although forms are one of the most boring elements of any website, styling them can be a dangerous business. All too often it is forgotten that the way a form looks will impact greatly upon what the user uses it for. Change the style too drastically and the user might …

Member Avatar for almostbob
2
2K

The End.