Web Developers

Room to discuss javascript and jquery, php and mysql issues. before asking to any one please try to search your issue in google and then read this http://sscce.org/ . Are you expecting someone to complete your task or project? Then, please Hire someone to do that for you. This isn't a place where people do your job for you for free.
2404d ago – Mehulkumar
545

export all events for this room

Starred posts

1 2 3 4
Dec 15, 2014 5:41 AM
$ruel=null;
if($rule===null)
{
$rule=[
$username=>'unique:login'
];
}

$validation=Validator::make(array($username),$rule);

if($validation->passes())
{
return 'User is registerd';
}

it always get passes weather I pass anything to $username varaible
4
Dec 11, 2014 11:07 AM
Hello I am using jQuery UI Autocomplete pluging with geonames.

I would like to place Maker on search how can i do it

here is my code
jQuery(document).ready(function($){

$("#pwGeoAddressTxt").autocomplete({

source: function (request, response) {
//alert(selectregionuser);

var textvalue = $("#pwGeoAddressTxt").val();
if (textvalue != '') {


$.ajax({

url: "http://api.geonames.org/searchJSON?featureClass=P&lang=local&style=full&maxRows=12&name_startsWith="+textvalue+"&username=shakti",

dataType: "json",
3
May 27, 2014 5:17 AM
posted on May 27, 2014 by noreply

     In some situation we need at least one user input in check box to submit form. In that case, we should check if at least one check box is checked. So, we can simply check that condition in .click event listener of check box.      Here we are going to enable Submit Form button at least any one of check box is checked. $("input[type='checkbox']").cli

3
Apr 18, 2014 11:02 AM
posted on April 18, 2014 by noreply

We can Reverse DOM elements. All we need is to use .reverse() the DOM elements. Here I used Parent Child structure in HTML. You can use ul li to create parent - child structure. See In the above code, the div contain .parent class is the parent div. Those divs contain .child class are child divs. We used .reverse() to reverse the child div order and append it to parent div. Here is the wor

3
Apr 3, 2014 10:23 AM
posted on April 03, 2014 by noreply

In this post, We are going to learn how to get only numbers from string using Javascript. To do this we are going to use one of the power full weapon Regular Expression. In this bellow example we are getting value from text box and get only numbers using javascript's .replace() method. Here we are going to use non-digit character equivalent ( \D ). Just find the non-digit character and replac

3
Apr 3, 2014 10:17 AM
posted on April 03, 2014 by noreply

Some times I feel lazy to use document.getElementById('selector_id') when I'm working with plain Javascript. I can hear You also feel the same. Lets we can create our own shorthand for getElementById(). All we need is to just write a function for that. var $ = function (id) { return document.getElementById(id); }; Here after We can call our get our element by ID like this, $('btn') I thi

3
Dec 12, 2014 5:29 AM
1
Q: How to bring the text inline to the label in modal dialog of Bootstrap 3.3.0? Also how to increase the height of Bootstrap modal a liitle?

PHPLoverI'm a newbie to Bootstrap framework. I've following Bootstrap modal dialog HTML : <div class="modal fade" id="rebateModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true"> <div class="modal-dialog"> <div class="modal-content"> <div class="modal-header">...

2
Nov 14, 2014 11:45 AM
example regex101.com/r/uI3cL7/11 @CJRamki
2
Nov 4, 2014 11:09 AM
posted on November 04, 2014 by CJ Ramki

Here is the code for Live digital clock. Just we are going write a function to get the current time and display it in span. We are calling that function for each 1000 milli seconds. so, live clock is working. var int=self.setInterval("clock()",1000); function clock(){ var now=new Date(); var time=now.toLocaleTimeString(); document.getElementById("clock").textContent=time; }; Here is the

2
Oct 11, 2014 3:52 AM
@AnOriginalAlias www.freelancer.com www.elance.com www.odesk.com
2
Oct 1, 2014 12:23 PM
PHP Assist is really nice to develop php projects in online
2
Aug 9, 2014 8:04 AM
posted on August 09, 2014 by CJ Ramki

$_GET and $_POST Both GET and POST create an array.e.g. array(key=>value, key2=>value2, key3=>value3, ...).This array holds key/value pairs, where keys are the names of the form controls and values are the input data from the user.Both GET and POST are treated as $_GET and $_POST. These are superglobals, which means that they are always acc

2
Aug 1, 2014 5:53 AM
use the following:

290mb ram
19 vm heap
Internal storage 1024
external 1024
Target: android 2.2 - API level 8
2
Jul 18, 2014 2:19 AM
posted on July 18, 2014 by CJ Ramki

This sounds "Language supporting file is missing". * One get the error message typically if one don't included required language file grid.locale-xx.js (for example grid.locale-en.js). * You can Include it before jquery.jqGrid.min.js or jquery.jqGrid.src.js. See the example of the usage of jqGrid in Documentation * If you don't have that file, Click Here to down

2
Jul 17, 2014 3:21 AM
posted on July 17, 2014 by CJ Ramki

When you get the data from CSV file, It will return return array of each row. If we want this array in JSON as header row as key and cell value as value, We can use PHP's array_combine function. So, We can use this following function to achieve this task. FUNCTION DEFENITION function getJsonFromCsv($file,$delimiter) { if (($handle = fopen($file, 'r')) === false) { die('Error open

2
Jun 26, 2014 6:38 AM
Jun 12, 2014 2:36 AM
posted on June 12, 2014 by CJ Ramki

In this post we are going to see how to compare two array elements? and do something, when the element is matched. This below prototype method will do that trick. Array.prototype.diff = function(arr2) { this.sort(); arr2.sort(); for(var i = 0; i < this.length; i += 1) { if(arr2.indexOf( this[i] ) > -1){ arr2.splice(arr2.indexOf( this[i] ), 1); }

2
Jun 5, 2014 6:41 AM
posted on June 05, 2014 by CJ Ramki

Problem  This issue is arise with only RSS feed not in ATOM feed.  Example I'm going to show my blogger blog feed as an example in this post. RSS Feed This below URL is my blog post feed URL which will return my RSS feed data of posts. http://cj-ramki.blogspot.in/feeds/posts/default?alt=rssIt creates the JSON data empty blog author name and [email protected](author name). I jus

2
Jun 4, 2014 2:29 AM
posted on June 04, 2014 by CJ Ramki

To get referrer url, we are going to use $_SERVER variable called HTTP_REFERER. In some cases we need to check, this page redirected from where? To fill up that "where" we should use  $_SERVER[HTTP_REFERER]. NOTE: If users use a bookmark or directly visit your site by manually typing in the URL, HTTP_REFERER will be empty.If the users are posting to your pag

2
Jun 3, 2014 1:20 PM
posted on June 03, 2014 by CJ Ramki

To get current full url in php, we can use php's $_SERVER variables. We are going to use $_SERVER[REQUEST_SCHEME]  - It will print which type scheme (ex.http)$_SERVER[HTTP_HOST]       -  Server host name $_SERVER[REQUEST_URI]      - current URI So, We can combine those three like below, $URL = $_SERVER[REQUEST_SCHEME].'://'.$_SE

2
Jun 3, 2014 5:07 AM
posted on June 03, 2014 by CJ Ramki

தோற்காமல் இருக்க வேண்டுமே என்பதற்காக நீங்கள் ஜெயிக்க பார்த்தல், தோல்விதான் உங்களுக்கு மிஞ்சும். வெற்றியை  மட்டும் மனதில் வைத்துக் கொண்டு ஓடுங்கள்... அதிவேகம ஓடுங்கள். தோல்வி உங்களைத் துரத்தட்டும்... பரவாயில்லை. அனால் தோல்வியை துரத்திக் கொண்டு நீங்கள் ஓடாதீர்கள்...                      

2
Jun 2, 2014 9:30 AM
posted on June 02, 2014 by CJ Ramki

சந்தோஷம் எதில் தான் இருக்கிறது? ரொம்ப சுலபம். சந்தோஷமாக இருக்க வேண்டும் என்ற உங்கள் எண்ணத்தில்தான் அது இருக்கிறது.                          - கோபிநாத் (ப்ளீஸ் இந்த புத்தகத்த வாங்கதீங்க.)

2
May 29, 2014 5:15 AM
posted on May 29, 2014 by CJ Ramki

@ has been around since the days of @import in CSS1, although it's arguably becoming increasingly common in the recent @media (CSS2, CSS3) and @font-face (CSS3) constructs. The @ syntax itself, though, is not new. These are all known in CSS as at-rules (@). They're special instructions for the browser, not directly related to styling of (X)HTML/XML elements in Web documents using rules

2
May 28, 2014 2:59 AM
posted on May 28, 2014 by CJ Ramki

Syntax   Math.floor(x) , Math.round(x) Definition Math.floor(x) and Math.round(x)  expects floating number as parameter.Math.floor(x) The floor() method rounds a number DOWNWARDS to the nearest integer, and returns the result.If the passed argument is an integer, the value will not be rounded. Math.round(x) The round() method ro

2
ASR
May 14, 2014 5:31 AM
ASR
Apr 26, 2014 6:31 AM
usefull link cssplay.co.uk/menus
2
Apr 22, 2014 7:10 AM
posted on April 22, 2014 by noreply

Are you a sound lover...? Do you want more sound in your phone...? Are you using Android in your phone...? You may love this App... :D SOUND BOOSTER This app will let you to increase the volume in both Loud speaker and earpiece. You can route the audio to Earpiece as well! Features: 1. Hide LED when Device turned on. 2. Do not boost volume more than 70%. To increase more go to settings th

2
Apr 11, 2014 11:07 AM
var decrease = setInterval(function () {
var point = chart.series[0].points[0];
if(threshold >= 1 && threshold <= 100)
{
threshold -= 0.8;
}
if(threshold >= 100)
{
clearInterval(decrease);
}
point.update(threshold);

}, 500);
2
Mar 27, 2014 11:44 AM
Mar 20, 2014 10:32 AM
posted on March 20, 2014 by noreply

We can achieve using javascript's setInterval() and setTimeout() method. setInterval(function() { $("#myDiv").hide(); setTimeout(function() { $("#myDiv").show(); },1000);//hide timing },3000); //show timing Here is the DEMO

2
Feb 14, 2014 8:16 AM
Feb 5, 2014 11:23 AM
examples skypoet.net
2
Jan 30, 2014 1:33 PM
Jan 28, 2014 11:22 AM
CSS table generator csstablegenerator.com
2
Jan 28, 2014 6:25 AM
simply configurable fixed table header and footer fixedheadertable.com
2
DD.
Jan 20, 2014 11:23 AM
javatpoint.com/android-tutorial this is one of the gud tutorial for beginners @CJRamki @sudheerkumar
2
Jan 17, 2014 10:00 AM
nice one...purecss.io/buttons
2
Jan 9, 2014 10:02 AM
Internet explorer in Google Chrome makeuseof.com/tag/internet-explorer-google-chrome-tab
2
Jan 9, 2014 7:43 AM
@sudheerkumar check this link border-radius.com
2
Jan 8, 2014 10:55 AM
jQuery Corner patterns jquery.malsup.com/corner
2
Jan 6, 2014 9:37 AM
jquery image rotator with css designm.ag/tutorials/image-rotator-css-jquery
2
Jan 3, 2014 7:16 AM
6 Cool Image Captions with CSS3 hongkiat.com/blog/css3-image-captions
2
Dec 31, 2013 6:46 AM
Dec 19, 2013 10:21 AM
play game using html, javascript and css... jsfiddle.net/GCKNY
2
Dec 19, 2013 10:19 AM
same id to multiple divs jsfiddle.net/Tyriar/pqK7H/1
2
Oct 10, 2017 6:57 AM
@user3663 Great
Dec 12, 2016 12:07 PM
Jul 11, 2016 11:54 AM
Hello All,
I'm working with Moodle 2.9, and trying to add some new task to cron.
Inside my theme/portal folder I added a `portal_cron()` function to `lib.php` file, then I run cron manually from command line but it's not working ?!
So any help please about how can I add new task to cron job ??
Mar 26, 2016 11:18 AM
Nice article about jqgrid responsive
http://www.sweet-web-design.com/wordpress/jqgrid-how-to-make-it-responsive-with-twitter-bootstrap/2519/
Jul 9, 2015 7:16 AM
function betweenDate($startDt, $endDt) {
	$currentDate = strtotime($startDt);
	$end = strtotime($endDt);
	while ($currentDate <= $end) {
		$between[] = date("Y-m-d", $currentDate);
		$currentDate = strtotime("+1 day", $currentDate);
	}
	return $between;
}

function dateAfterDays($date, $days){
	return date('Y-m-d', strtotime("+".($days-1)." day", strtotime($date)));
}

$start_date = "2015-07-09";
$total_days = 3;
$end_date = dateAfterDays($start_date,$total_days);
$betweenDates = betweenDate($start_date, $end_date);
1 2 3 4