Posts
 
Reputation
Joined
Last Seen
Ranked #386
Strength to Increase Rep
+8
Strength to Decrease Rep
-2
72% Quality Score
Upvotes Received
24
Posts with Upvotes
21
Upvoting Members
21
Downvotes Received
13
Posts with Downvotes
12
Downvoting Members
4
15 Commented Posts
~182.03K People Reached
About Me

I have extreme interest in learning new Technologies.

Currently working in IPTV Domain. Its cool!

Interests
Coding, Movies, Chess, Learning new Technologies.
PC Specs
Intel i3 2.66 GHz, 6GB Ram, 500 GB Hard Disk.
Favorite Tags

293 Posted Topics

Member Avatar for Luckychap

A simple graphical year calendar. Compiler: Turbo C In main current year is set manually, for more generic way use date function to get current year.

Member Avatar for santlaha
0
384
Member Avatar for MissMolly

http://www.w3schools.com/jsref/met_table_insertrow.asp This is simplest explaination one need to insert row/cell to a table. Can you put your code so that we can find what is wrong in your try?

Member Avatar for Luckychap
0
175
Member Avatar for Luckychap

This is a program for Encryption and Decryption This program uses the Simple Data Encryption Standard (SDES) Algorithm. This Algo takes 8-bits of plaintext at a time and produces 8-bits of ciphertext. It uses 10-bits of key for Encryption and Decryption.

Member Avatar for overwraith
1
13K
Member Avatar for Nybuler

You can give an unique id to your text area. [code=html] <textarea id="mytext"></textarea> [/code] You can easily get in javascript [code=javascript] var myText = document.getElementById("myText"); var s = myText.value; // This will now contain text of textarea [/code]

Member Avatar for ahmadmomi
0
7K
Member Avatar for mbarandao

function getGroups(yourRawArray) { var group1 = []; var group2 = []; for(var i = 0; i < yourRawArray.length; i++) { var obj = yourRawArray[i]; if(obj['2'] == '0') group1.push(obj); if(obj['2'] == '1') group2.push(obj); } return {'group1': group1, 'group2': group2}; } function getGreatest(groupArray) { // To get Greatest you just need to …

Member Avatar for mbarandao
0
369
Member Avatar for Luckychap

Hi All, How can we enable HTML code compression in .Net? Is there anything we need to do in web.config or external tool is needed? Thanks!

Member Avatar for vsmash
0
164
Member Avatar for jelly46

$(".second-form").clone().prependTo("#frmMain"); $("#frmMain").remove(); Use jQuery to make your life easy! First clone the inner form and add it above the outer form. Them remove the outer form. Thanks!

Member Avatar for Troy III
0
175
Member Avatar for Ricky_2
Member Avatar for diafol
0
242
Member Avatar for lifeonholiday

function getParam(paramName) { var url = window.location; var params = url.substring(url.indexOf("?") + 1 , url.length).split("&"); for(var i = 0; i < params.length; i++) { var param = params[i].split("="); if(param[0] == paramName) return param[1]; } return null; } var userName = getParam("name"); $("#welcome").html("Hey " + userName); Hope this will work :) …

Member Avatar for stbuchok
0
166
Member Avatar for Evil_genius82

var beeped = false; function checkResponseStatus(){ $.getJSON("requestrespond.php", function(data) { ... ... ... if (respond_status == 1) { //request has been made document.getElementById("responseStatus").disabled = false; document.getElementById("responseStatus").innerHTML = "Request Sent on "+ respond_date + " <br /> Time: " + respond_time + "<br /> " + "Click Here To Respond"; if(!beeped) { …

Member Avatar for Luckychap
0
187
Member Avatar for RikTelner

height of an relative positoned element in % is caclulated on the basis of its parents. You need to set height of parent. In case parent is body you can add following css to make your dive work:- html,body{height: 100%;} Thanks!

Member Avatar for Luckychap
0
167
Member Avatar for centenond

This is solved but here is the more clean method to pass argument(s) you should know:- function abc(msg, msg1){ alert(msg + " | " + msg1); } setTimeout(abc, 500, "Hello", " World") Thanks!

Member Avatar for Luckychap
0
337
Member Avatar for Luckychap

Here is simple Digital Clock coded in C++ and compiler used is TurboC. A class DIGIT is designed to draw digits. Follwoing are the details for this class: Consructor: DIDGT(); for default settings DIGITE(int s,int c,int st); for user define settings s -> is size of the digit c -> …

Member Avatar for irum.nageen.3
-2
15K
Member Avatar for Luckychap

Hi All, I am in search for some good "Responsive web Designing" CSS frameworks. Kindly Suggest few. I have gone through:- Bootstrap, Foundation and Amazium. All seems same to me.

Member Avatar for madelinekim
0
202
Member Avatar for Monstette

Your are incrementing 'row_no' in addRow() but not decrementing it in deleteRow() [code='javascript'] //Delete Function function deleteRow(r) { var i=r.parentNode.parentNode.rowIndex; document.getElementById('TableMain').deleteRow(i); // Decrementing row_no row_no--; } [/code]

Member Avatar for kanna443
0
986
Member Avatar for Luckychap
Member Avatar for roachae

Its scope problem. Once line 123 get executed it lost the function 'checkSessionTime'. To overcome this pass a copy of that function to setInterval: [code=javascript] checkSessionTimeEvent = setInterval(function({checkSessionTime();},60*1000); [/code]

Member Avatar for Taywin
0
368
Member Avatar for tqmd1

Line 6 have typo, it should be:- [code=javascript] $('input[name="button1"]').click(function(){ [/code]

Member Avatar for AleMonteiro
0
106
Member Avatar for tapandesai007

Just before sending ajax request, use your modalpopup to show the loading gif image. Something like this:- [code=javascript] modalPopUp.html("<img src='loading.gif'/>"); ajax.send(onSuccess); function onSuccess(ajaxResponse) { // Data recieved from ajax, update popup modalPopUp.html(data); } [/code] Hope this will give you some idea.

Member Avatar for Luckychap
0
102
Member Avatar for prashanth18

This is exact code u want. Its simple. try this. [code="html"] <html> <head> <title>test</title> <script type="text/javascript"> var counter = 0; function addNew() { // Get the main Div in which all the other divs will be added var mainContainer = document.getElementById('mainContainer'); // Create a new div for holding text and …

Member Avatar for kunalkrishneel
0
6K
Member Avatar for allena

Javascript is client-side scripting language which is used to intract with the client at front ent ie Brower. Where as JSP is server-side scripting which enables us to write code in java and use java classes to perform various operation such as database intraction etc. and to generate HTML on …

Member Avatar for umorenpaul
0
948
Member Avatar for anupama385

0. Create a container html element like <div id="content"></div> 1. Get the form element. There are many ways, please refer 2. With form element get input elements 3. With input elements get there values and show them on some container element Hope I have help you

Member Avatar for anupama385
0
96
Member Avatar for Emiliya
Member Avatar for scorpionz

[code=JavaScript]var divEls = document.getElementsByTagName("div"); var i = 0; for(i=0;i<divEls.length;i++) alert(divEls[i].id);[/code]

Member Avatar for maniac23
1
738
Member Avatar for azegurb

In javascript code line 7, you are always sending search string as 'searchString'. Probably you should try this:- [code=javascript] var data = {'search' : searchString , 'category' : category}; [/code]

Member Avatar for azegurb
0
194
Member Avatar for KPheasey

There was an error while checking on Chrome as on FireFox its messe up, The error was at index.php:139 [COLOR="Red"]Uncaught TypeError: Cannot read property 'value' of null[/COLOR] Resolve this.

Member Avatar for stbuchok
0
448
Member Avatar for ALLNO

Try using FireFox's firebug to find the error. Well I noticed on thing at line 134, where you are creating window html, you have added 'style' attributes like :- document.write('<div id="'+n+'_wnd'+'" class="WINDOW" [COLOR="Red"][B]style="top:'+(y-22)+';left:'+x+';width:'+w+';height:'+h+';"[/B][/COLOR]></div>'); you have not added [COLOR="red"]'px'[/COLOR] for 'top', 'left' etc properties. The right way is:- [code=html] <div style="left: …

Member Avatar for Luckychap
0
113
Member Avatar for Mona Ali
Member Avatar for newbie14

There is a dirty way by using cookies. In pop-up window write user choice in cookies before closing it and then read back the cookies in first page. This is not a clean method. You have to use Ajax to bring the content of popup window on the same page …

Member Avatar for almostbob
0
169
Member Avatar for Luckychap

I have seen many beautiful clocks using images and and canvas and flash. So I thought of developing one with pure HTML,CSS3 and javascript, no images at all. This clock can be completely design using CSS. A brief description of Javascript used:- 'AnalogClock' is the name of the class which …

Member Avatar for Luckychap
0
478
Member Avatar for devinodaniel

Try this:- [code=html] <html> <head> <script> function doInsert(inp) { var v = inp.value; var l = v.length; var maxLen = 17 // Length of mac string including ':' if(l >= 2 && l < maxLen) { var v1; v1 = v; /* Removing all ':' to calculate get actaul text …

Member Avatar for Airshow
0
5K
Member Avatar for thedalek

Use structure to copy at one go without looping. Something like this: [code=c++] struct Phrase { char phrase[50]; }; Phrase codePhrase, inputPhrase; cout << "Please input your code without spaces: "; cin >> inputPhrase.phrase; // Now copy it to your codePhrase codePhrase = inputPhrase; [/code]

Member Avatar for thedalek
0
201
Member Avatar for Luckychap

[CODE=c++] #include <QtGui> class MaskedLabel : public QLabel { protected: void resizeEvent(QResizeEvent* event) { QLabel::resizeEvent(event); QPixmap pixmap(size()); pixmap.fill(Qt::transparent); QPainter::setRedirected(this, &pixmap); QPaintEvent pe(rect()); paintEvent(&pe); QPainter::restoreRedirected(this); setMask(pixmap.mask()); } }; int main(int argc, char* argv[]) { QApplication a(argc, argv); QLabel* label = new MaskedLabel(); label->setText("Qt Centre!"); QFont font = label->font(); font.setPointSize(72); label->setFont(font); label->show(); …

0
100
Member Avatar for Luckychap

This is my first step towards HTML5. This is currently tested on Chrome browser where it is awesome. It will not work on FF and definitely not on IE. I am working on it. Just copy-paste the code in blank html file and run on chrome. 'Scroller' is simple menu …

Member Avatar for Luckychap
0
1K
Member Avatar for phalaris_trip

I think the node structure should be like this: [CODE] struct node { void *data; int type; struct node *next; struct node *prev; }LINK; [/CODE] where: [B]type[/B] is used for type. For example type=1 indicates int, type=2 indicates float, type=3 indicates userdefine and so on... and Insert function will look …

Member Avatar for MonsieurPointer
0
4K
Member Avatar for Nimerion

[code=javascript] var clickCount = 0; document.onclick = function() {clickCount++}; doucment.onunload = function(){alert("No. of clicks = " + clickCount);}; [/code]

Member Avatar for Luckychap
0
71
Member Avatar for untio
Member Avatar for emulman

I can see one problem. The script to open dialog by clicking '#a1' is defined before the [B]<a id="a1"></a>[/B]. So it might be the case that $("#a1") was not getting captured. Solution: Put your <script></script> code after <a id="a1"></a> tag. OR Best will be to add script code in document …

Member Avatar for emulman
0
103
Member Avatar for ibn_sumal

[CODE=javascript]<img src="austria.jpg" name="im1" height="300" width="300" onclick="window.open('http://google.com')"/><br/> <button onclick="document.images.im1.src='austria.jpg'; document.images.im1.onclick='window.open('http://google.com')'">Austria</button> <button onclick="document.images.im1.src='korea.jpg'; document.images.im1.onclick='window.open('http://yahoo.com')'">Korea</button> <button onclick="document.images.im1.src='brazil.jpg'; document.images.im1.onclick='window.open('http://chapo.co.cc')'">Brazil</button>[/CODE]

Member Avatar for Luckychap
0
1K
Member Avatar for ya.basha

Here is simple javascript fucntion to draw circle. There no efficient algo used here. But you can implement good and efficient algos. [code='html'] <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8" /> <title>TV</title> <style> .pixel { position: absolute; width: 1px; height: 1px; background: red; } </style> <script> function circle(x, y, r, …

Member Avatar for ya.basha
0
1K
Member Avatar for seblake

Hi seblake, There are simple 2 things about a function:- 1. Defining the function 2. Calling the function When you 'Define' a function (as you did in above), it does nothing. Defining means you are just writing logic of the problem to solve in the function. In your case you …

Member Avatar for Airshow
0
121
Member Avatar for HelenLF
Member Avatar for anandhikrishnan
Member Avatar for anandhikrishnan
0
96
Member Avatar for 080346

If its not alerting anything then clearly there are 2 reasons:- 1. There is an error before if(tableHtml=='true') is executed. 2. Worst case ajaxHandler() not called at all. To debug try this:- [code=javascript] function ajaxhandler() { alert("function called : " + response); tableHtml=response.Text if(tableHtml=='true') alert("Valid Move"); else alert("invalid move") } …

Member Avatar for Luckychap
0
72
Member Avatar for anilashanbhag

Nice job. It would be better if there is indication of current cursor position on the canvas. Something different from background color.

Member Avatar for anilashanbhag
1
661
Member Avatar for programmer12

Steps:- 1. Get Total number of records in table. (Say: totalRecs = 100) 2. Create a small PHP(say: check.php). Which will compare old total with new total and will echo 'true'/'false' 3. Create a function in javascript(say: getUpdate() ). This method will send an Ajax request with 'totalRecs' as one …

Member Avatar for programmer12
0
129
Member Avatar for christ_gal12

Try this: [code=html] <HEAD> <style> .bigcell { background-color:#aa9966; border:4px solid #aa9966; text-align:center; } .cell { width:40px; height:40px; font-family:Verdana, Arial; font-size:10pt; font-weight:bold; background-color:#996633; color:#ffff33; border-top:2px solid #aa9966; border-left:2px solid #aa9966; border-right:2px solid #663300; border-bottom:2px solid #663300; text-align:center; } .hole { width:40px; height:40px; background-color:#aa9966; text-align:center; } body,h1,h2,h3,.msg,capt1,capt2 {font-family:Verdana,Comic Sans MS,Arial;} body {margin:0px;} …

Member Avatar for christ_gal12
0
117
Member Avatar for RunTimeError

Line 1 and 2 in your code is what is needed to change the content on span. BUT you need to put this code after your span tag in the html. HTML is render from top to bottom and so is the embedded javascript. If you put your javascript code …

Member Avatar for Luckychap
0
360
Member Avatar for Luckychap

This is Jquery plugin which can be used to change the content a its place. Features: 1. Easy to use 2. Maintain changeability of Jquery Know Issue: 1. Can take html string also as input For example: html: [code=html] <div id="editable">I can be changed right here</div> [/code] javascript: [code=javascritp] $.('#editable').editAtPlace(function(newtext, …

0
361
Member Avatar for dschuett

Pass current Input Element in ajaxFunction(): ajaxFunction(this); [code=php] <?php $conn = mysql_connect('xxx','hoovdash','xxx'); $db = mysql_select_db('hoov_dashboard',$conn); $sql = "SELECT * FROM invoices WHERE on_hold='1' ORDER BY create_date"; $result = mysql_query($sql,$conn); while($row = mysql_fetch_assoc($result)) { $id = $row['id']; $equip_num = $row['equip_num']; $invoice_num = $row['invoice_num']; $notes = $row['notes']; $row_class = ($row_count % 2) …

Member Avatar for Akash Saikia
0
1K

The End.