15,121 Topics

Member Avatar for
Member Avatar for shabbir04

Hello everyone.. this is my php code <div class="content-1 col-sm-12 nopadding"> <div class="list-header col-sm-1">Date</div> <div class="list-header col-sm-2">Product</div> <div class="list-header col-sm-2">Username</div> <div class="list-header col-sm-1">Quantity</div> <div class="list-header col-sm-1">Rate</div> <div class="list-header col-sm-1">Sale Amount</div> <div class="list-header col-sm-1">Payment</div> <div class="list-header col-sm-1">Balance</div> <div class="list-header col-sm-1">Remarks</div> </div> <?php $sql = "SELECT * FROM sale_history order by date …

Member Avatar for diafol
0
246
Member Avatar for shany0786

I am have debugging some javascript code in firebug,then i have seen some strange POST thing in firebug this is worrying me? I have registration form when i reload page i see in firebug following "POST http://api.adsrun.net/post" Response Header Cache-Control no-store, no-cache, must-revalidate, post-check=0, pre-check=0 Connection keep-alive Content-Type application/json Date …

0
194
Member Avatar for zelrick

Hello Web Developer, This is working <form class="frm" action=""> <select onChange="window.location.href=this.value"> <option value=""> </option> <option value="../wxmaps/glob/glob_rrpf.html" href target="wxmdisp">Precip + MSLP</option> <option value="../wxmaps/glob/glob_rrwf.html" href target="wxmdisp">[Parameter2]</option> </select> </form> the problem is when I click one item on the drop down list it appear to the same window. I have a frame name …

Member Avatar for zelrick
0
269
Member Avatar for kouty

The console says arr1 is not a function! function union(arr1, arr2, arr3) {//1 arr1 = arr1.concat(arr2).concat(arr3); console.log("concatenation of arr1", arr1, '\n'); arr1 = arr1.sort(); console.log("arr1 good ordered", arr1, '\n'); for(i = arr1.length - 1; i > 0; i --) {//2 for(j = i -1; j > 0; j --) {//3 …

Member Avatar for kouty
0
294
Member Avatar for shany0786

i am stuck at one problem where i have two radio buttons "yes" and "no" by default yes is checked and below these radio buttons there are 3 drop downs for country,state,cities and two text fields.no what i want is when user select "no" radio button all these 3 dropdowns …

Member Avatar for gentlemedia
0
340
Member Avatar for kouty

Hello I try to learn the String.charCodeAt(index) method Here is a snippet that demonstrate that the first index is allways 48 independentely of the character. How work's it (I was expecting that each letter has her unicode-number equivalent. function unicoding(str) { for (i = 0; i < str.length; i ++) …

Member Avatar for Traevel
0
386
Member Avatar for fazal004

I have a form on footer that display on all pages. I want the form not display when I click on contact us button in menu and there should be no form on footer at that page, any help from web developers. Regards

Member Avatar for diafol
0
175
Member Avatar for AntonyRayan

Hi, here I included my code to find no of working days between two years. But in leap year I do not know how to find the working days. Can anyone help me? function calculate($month,$year) { $Start_Date="1/".$month."/".$year.""; $myTime = strtotime($Start_Date); // Use whatever date format you want $daysInMonth = cal_days_in_month(CAL_GREGORIAN, …

Member Avatar for diafol
0
354
Member Avatar for kavinsac

Hi, I'm Kavin, I guess I've always been a bit geeky. I'm currently working on my first website and learning HTML and CSS. I'm also quite keen on photoshop. I also want to learn PHP, MySQL and video editing at some point, but for now I'm still quite busy with …

Member Avatar for diafol
0
565
Member Avatar for AntonyRayan

Hi, I am new to this concept. Can anyone give me an example and ideas for google map plotting? In a google map, I want to show all the trucks based on latitude and longitude of the trucks. After showing all the trucks,I want to see a particular truck`s report …

Member Avatar for Bill_14
0
266
Member Avatar for SravanthiSuresh

Hi, I am looking for angular material service which supports communication between two windows with two controllers for each window. I open a new window from my angular form using $window.open("MyNewWindow.") , i want the selection from this window updated to my parent window. How can i achieve this?

0
76
Member Avatar for Latrell_vie

Im working on a menu for my website.The idea is that on click on a menuselection the menucard scrolls to said portion of the menu. I tried different approaches,sofar only $(function MyFunction() is working,but i need sth more general where i can include a parameter into the function like function …

Member Avatar for Chris_33
0
266
Member Avatar for Aeonix

**Full error:** *xengine.js:2 Uncaught SyntaxError: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode* I have **no framework**. This is pure flat HTML, CSS and JavaScript. HTML goes on like this (up to relevant moment): http://pastebin.com/s8s2KLmt And the JavaScript (starting from line 1, no additional files, entire …

Member Avatar for minitauros
0
422
Member Avatar for AntonyRayan

I know how to find number of working days for an academic year. But I want to know working days of each and every month from june to april of next year,seperately. How to do?

Member Avatar for Taywin
0
98
Member Avatar for gogs85

Hi I have problem to get data when insert with ajax. I have ajax.js file and here is this code: $('#text-content').keypress(function(e){ if(e.which == 13) { if($('input#enter-click').prop('checked', true)) { $('#live-send').click(); e.preventDefault(); } } }); $('#live-send').click(function(){ var message = $.trim( $('#text-content').val() ); if($('#text-content').val()!="") { $.ajax({ type: 'POST', dataType: "json", url: './includes/conversation.php', data: …

Member Avatar for pritaeas
0
294
Member Avatar for UK-1991

Hello, I tried to integrate api of aylien which is used for article extraction I installed the sk succesffuly but when I tried to run my code it gives me an error Trying to get property of non-object in C:\wamp\www\aylien\index.php on line 15 Notice: Trying to get property of non-object …

Member Avatar for UK-1991
0
253
Member Avatar for wooshman

Hi All, hopefully you can help. I have: <table> <tr> <td width="120" height="120" bgcolor="#8fd656" align="center" onClick="if (this.bgColor=='#8fd656'){this.bgColor='#DDDDDD'} else {this.bgColor='#8fd656'};"> Check Box <input type="checkbox" name="checkbox[]" id="checkbox[]" value="Checked"> </td> </tr> </table> Now this works with changing the background color when I either click the cell itself or check / uncheck the box, …

Member Avatar for wooshman
0
5K
Member Avatar for gogs85

Hi I have problem to get data when insert with ajax. I have ajax.js file and here is this code: $('#text-content').keypress(function(e){ if(e.which == 13) { if($('input#enter-click').prop('checked', true)) { $('#live-send').click(); e.preventDefault(); } } }); $('#live-send').click(function(){ var message = $.trim( $('#text-content').val() ); if($('#text-content').val()!="") { $.ajax({ type: 'POST', dataType: "json", url: './includes/conversation.php', data: …

Member Avatar for diafol
0
437
Member Avatar for Trevor_4

i am having a problem with java script and need to know how i can convert a integer inputted by the user to asterisks. stipulations i have to use a window prompt dialog box and print the asterisks on the page in a paragraph.. i just need help changing the …

Member Avatar for diafol
0
270
Member Avatar for Eti_1

Hi, I want to distinguish whether the tab closed by clicking X or by another action (clicking a link, or a button which close the current tab). In Firefox - I followed the stack and saw that the function closing the tab (not by X) is called: onxblDOMWindowClose. BUT in …

Member Avatar for diafol
0
360
Member Avatar for prafful_panwar

I want to use the instance of ckeditor. when user click on add more button it will create the instance of ckeditor, but that instance of ckeditor is not editable. I mean user is not able to enter anything there. Need help...Thanks in advance :) fiddle : http://jsfiddle.net/pkz7auLy/

Member Avatar for diafol
0
1K
Member Avatar for SimonIoa

Hello i want to calculate three parameters. one X two X three = Y The one is the value of a <input type="number"> the second is default the value '1' and the third is the count of this $sql = "SELECT uid, username, name, profile_pic FROM users"; $result = mysqli_query($db,$sql) …

Member Avatar for SimonIoa
0
716
Member Avatar for nosfa

Why does one enter keypress runs (inside) through this code twice? I've tried keypress, keydown and also event.preventdefault() to no avail. $(document).keydown(function (e) { if (e.which == 13) { alert("0") var focado = document.getElementById(document.activeElement.id), fim = focado.id.substring(1), inicio = focado.id.substring(0, 1), fimseg = fim, anterior = inicio + (fim - …

Member Avatar for Taywin
0
168
Member Avatar for shashigowda

if once i click on the Accept button it should change its state to Accepted and that button should be disabled for the future.it should stay in disabled state even after refreshing a page,help me as soon as possible...Urgent

Member Avatar for Taywin
0
121
Member Avatar for Violet_82

HI guys, I've just run into an issue. Basically I'm working t a wordpress site, and there are some conflicts with the usage of the "$" sign so I used this in the document ready to allow me to use "$" in place of jQuery: jQuery(document).ready(function($){ ... }); It works …

Member Avatar for Violet_82
0
250
Member Avatar for UK-1991

Hello, I have created a form using ajax and php but when I click on submit the values in the textarea remains as it not disappears so I found a way to make form reset once I click on submit here is my code and please let me know how …

Member Avatar for UK-1991
0
246
Member Avatar for zelrick

Hello Web Developers; I'm having a hard time figure out why I can't do a simple table. I have an lines that contain ul and li, If i put them inside the table tr and th the bullet comes out which is I set it none. Please help me with …

Member Avatar for diafol
0
370
Member Avatar for kouty

Hello. My question is very basic but I can not find/understand the answer anywhere. How check if the name-value "name": value in an object. I know that with Object.keys() method we can checking the names of the properties. I know too that with Object.name or Object["name"] we can see the …

Member Avatar for kouty
0
327
Member Avatar for Tierra

We have homework due tomorrow, and it's a three person group. I don't understand the slightest bit about arrays, but I've been trying - now the code just looks messy. Just with the things that say ------------------Tierra------------------, can you all help me? The book is useless and I'm just frustrated …

Member Avatar for Tierra
0
298
Member Avatar for Gopi_2

The End.