Web Development
Member Avatar

js file :

function countdown(endT,callback) {

        var days,hours,minutes,sec,timer;

        end = new Date(endT);

        end = end.getTime(); //Get initial Date in Milliseconds,

        if (isNaN(end)) {

           alert('@ countdown.js @  "Invalid Date", valid format- …
Topic by Tko_1

Sorry for the late response... but to keep the data on page reload you'd have to use cookies to store it.

Information Security
Member Avatar

Tell me the best antivirus that protect my PC from malware issues and keep secure all the data that i have in my computer.

Topic by jerry12

Just to update my previous answer... I don't use Windows as my main OS anymore and I feel much safer. I just run lynis and chkrootkit once a while and …

Web Development
Member Avatar

I'm trying to get the text value from a select dropdown menu that is populated by a database using the following function:

<?php
function searchintspokenlang()
{
require ('../../../connect_db.php');
    $queryintspoken="SELECT Language …
Topic by Rishi_3

Change $_POST['s'] to $_GET['s'] or to $_REQUEST['s']

Web Development
Member Avatar

I'm trying to get the text value from a select dropdown menu that is populated by a database using the following function:

<?php
function searchintspokenlang()
{
require ('../../../connect_db.php');
    $queryintspoken="SELECT Language …
Web Development
Member Avatar

js file :

function countdown(endT,callback) {

        var days,hours,minutes,sec,timer;

        end = new Date(endT);

        end = end.getTime(); //Get initial Date in Milliseconds,

        if (isNaN(end)) {

           alert('@ countdown.js @  "Invalid Date", valid format- …
Topic by Tko_1

Hello Tko,

when you call countdown('08/26/2016 09:07:13 PM', callback);, 'callback' is not defined.

I made an fiddle if an example based on your code, except the css.

I think it's …

Web Development
Member Avatar

js file :

function countdown(endT,callback) {

        var days,hours,minutes,sec,timer;

        end = new Date(endT);

        end = end.getTime(); //Get initial Date in Milliseconds,

        if (isNaN(end)) {

           alert('@ countdown.js @  "Invalid Date", valid format- …
Community Center
Member Avatar

Once harm has been done, even a fool understands it.
-- Homer

Topic by vegaseat

What if voters decided intelligence and nuanced thinking were more important qualities in a presidential candidate than with whom they’d most like to have a beer? What if the Uhmerican …

Community Center
Member Avatar

Once harm has been done, even a fool understands it.
-- Homer

Topic by vegaseat

What if voters decided intelligence and nuanced thinking were more important qualities in a presidential candidate than with whom they’d most like to have a beer? What if the Uhmerican …

Community Center
Member Avatar

Hey fellas,

Do you think it's possible to live in a organized society that doesn't have a government? And why?

I can't remeber when I lost faith in our current …

Topic by AleMonteiro

@hericles, thanks for the input, but I disagree in some points...

> Humans are incapable of functioning in sufficiently large groups with leadership/authority in place.

You meant "without leardership", right? …

Community Center
Member Avatar

Hey fellas,

Do you think it's possible to live in a organized society that doesn't have a government? And why?

I can't remeber when I lost faith in our current …

Community Center
Member Avatar

Hey fellas,

Do you think it's possible to live in a organized society that doesn't have a government? And why?

I can't remeber when I lost faith in our current …

Community Center
Member Avatar

Hey fellas,

Do you think it's possible to live in a organized society that doesn't have a government? And why?

I can't remeber when I lost faith in our current …

Community Center
Member Avatar

Hey fellas,

Do you think it's possible to live in a organized society that doesn't have a government? And why?

I can't remeber when I lost faith in our current …

Community Center
Member Avatar

Once harm has been done, even a fool understands it.
-- Homer

Community Center
Member Avatar

Once harm has been done, even a fool understands it.
-- Homer

Topic by vegaseat

My country is the world and my religion is to do good.

  • Thomas Plaine
Web Development
Member Avatar

So I want to remove space between tags. The tags are seperated by comma. But I don't want to remove space between words just right after the commas.
So this: …

Web Development
Member Avatar

So I want to remove space between tags. The tags are seperated by comma. But I don't want to remove space between words just right after the commas.
So this: …

Topic by FarrisFahad

A simple replace should do it:

// removes duple spaces
$result = str_replace("  ", " ", $tags);
// removes space after comma
$result = str_replace(", ", ",", $result);

but yes, …

Web Development
Member Avatar

here i am having a form like this .i am having multiple checkboxes that are coming from database and i have given a field with every checkbox...now suppose 10 checkboxes …

Topic by 555ppp

But you're not checking for any text, you're just checking the checkbox value that will always be the same.

I'd go with something like this:

var checkedCount = 0,
    errMessage …
Web Development
Member Avatar

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 …

Web Development
Member Avatar

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 …

Topic by TObannion

What do you mean? Are you going to change the navigation menu after the page is loaded?

Or do you just want to know what page was loaded to do …

Web Development
Member Avatar

here i am having a form like this .i am having multiple checkboxes that are coming from database and i have given a field with every checkbox...now suppose 10 checkboxes …

Web Development
Member Avatar

here i am having a form like this .i am having multiple checkboxes that are coming from database and i have given a field with every checkbox...now suppose 10 checkboxes …

Topic by 555ppp

Checkboxes values are only submited if they're checked, and text values are always submited even if blank.
So if you check only 5 boxes, the length of $_POST['checkbox1'] will be …

Web Development
Member Avatar

Hi guys,

I'm working on a project and wanted to know if there is a good / trusted way to break a string apart into words. I want to get …

Web Development
Member Avatar

Hi guys,

I'm working on a project and wanted to know if there is a good / trusted way to break a string apart into words. I want to get …

Topic by LRNPHP

You could just make an replace for any special char into an space and then split it with explode, but if you want something a little more elegant, you probably …

Web Development
Member Avatar

Hello,

I would like to create image gallery with jquery which could show an image and if I place a cusor on top of it a shadow with a caption …

Web Development
Member Avatar

Hello,

I would like to create image gallery with jquery which could show an image and if I place a cusor on top of it a shadow with a caption …

Topic by davy_yg

There's hundreds of jquery gallery plugins out there, just google "jquery image gallery".

I don't remeber any one that does exactly what you want, but there's probably a few.

Here's …

Web Development
Member Avatar

I have searched Google and Youtube for Facebook log in toturials but couldn't find something useful. Do you know any good articles or website or even a Youtube toturial that …

Topic by FarrisFahad

The only way I'd say it's by doing it!

What do you mean only basic stuff? All methods, params and possible results are listed there.

And what else do you …

Web Development
Member Avatar

Hi,

I tried to change the form action based on selection option and hoping that my javascript validation function working properly too... I found out one solution and hoping this …

Web Development
Member Avatar

Hi,

I tried to change the form action based on selection option and hoping that my javascript validation function working properly too... I found out one solution and hoping this …

Topic by slowlearner2010

It's a silly thing... you're reaching for the form with document.getElementById('myForm'), but your form doesn't have id="myForm".

Just add the id to your form or use document.forms['myForm'] to get it …

UI / UX Design
Member Avatar

What should happen is when i click the log in button, the container for the log in form should become hidden and the sidebar, search bar, tiles and log out …