15,120 Topics

Member Avatar for
Member Avatar for Pelle_3

I am quite new to web development, so I naturally came to a point where I needed some help. I am making a web site where the user has to log in, and if authentication is successful, the user's data will be fetched from server and displayed on page (and …

Member Avatar for Pelle_3
0
264
Member Avatar for piers

Hi Everyone, I am trying to store the state of a show/hide button so that when the browser is refreshed it will show the previous stored state. I have a working solution for this on a JS fiddle https://jsfiddle.net/knetdk82/7/ However the issue I have is I cannot apply it in …

Member Avatar for piers
0
151
Member Avatar for ramsiva

I am passing one variable successfully any body help me to pass two variables to ajax page $.ajax({ type: "POST", url: "fetch_st_name.php", data: "sid=" + sid, cache: false, beforeSend: function() { $('#display1').html('<img src="loader.gif" alt="" width="24" height="24">'); }, success: function(html) { $("#display1").html(html); } }); I am passing one variable. data: "sid=" …

Member Avatar for phoenix254
0
10K
Member Avatar for j.zamani

I am following the example from [Click Here](http://bl.ocks.org/mbostock/7607535) The circles drawn in the example increase in size when zoomed-in by click event. Is there any way to create zoomable arc with the same effect.Here is my source code. please let me know how can I do this : var w …

0
69
Member Avatar for Lonestar Jack

When my event driven functions are called many repeat themselves. Looking at debug I can see the functions being run more than once. For instance the code below will produce: First time: one original and one duplicate record added. Second time: one original and two duplicate records added. Third time: …

Member Avatar for Lonestar Jack
0
235
Member Avatar for mbarandao

I would like to create a series dropdown boxes, each containing the same listing content. However, when one option is selected from the preceeding dropdownbox, that element is removed from the remaining boxes. I would like this process to continue until all selection have been selected. 1 <select name="box1"> <option>value …

Member Avatar for mbarandao
0
160
Member Avatar for phoenix254

I have a share button in my web page which is for sharing the post on facebook. Now the popup opens up and when I click on post it does not close the pop-up. I have implemented this as mentioned in How do I close the popup after I post …

0
107
Member Avatar for phoenix254

Hi everyone, why my 2nd,3rd,4th line arent working in js source ? $(document).ready(function(){ $('.cls').click(function(){ $('.mwindow').hide(); }); $('.frnd').on('click', function(){ var name=$(this).attr("id"); var div_mwindiow = document.createElement('div'); var div_hwindiow = document.createElement('div'); var span_hwindiow = document.createElement('span'); div_mwindiow.className ="mwindow"; div_hwindiow.className ="hwindow"; span_hwindiow.className ="cls"; var x = document.createTextNode('x'); span_hwindiow.appendChild(x); div_hwindiow.appendChild(span_hwindiow); var t = document.createTextNode(name); div_hwindiow.appendChild(t); div_mwindiow.appendChild(div_hwindiow); …

Member Avatar for Vivek_13
0
263
Member Avatar for Siberian

Modernizer makes a JS object, I've been researching as to where I can find this object to review ?

Member Avatar for Siberian
0
172
Member Avatar for momoh

so my problem is that I want to find a way of using canvas tags that are created at runtime. I went about this by trying to change the id of the tag, ONLY to find out that javascript did not like the fact that I was using numbers, even …

Member Avatar for Z3tbrVZSvmnh
0
6K
Member Avatar for phoenix254

Hi everyone, Here i upload my live [code](http://codepen.io/anon/pen/BNzBmK) HTMl source: `<span class="Maxi" id="frnd">Maxi</span> <span class="John" id="frnd">John</span> <span class="Henry" id="frnd">Henry</span> <span class="Max" id="frnd">Max</span> <span class="Simon" id="frnd">Simon</span> <div id="warp"> <div id="chatwindow"> <div id="chathead"> <span id="uname"></span> <div id ="close">&times;</div> </div> <div id="msgbody"> <textarea id="textar" ></textarea> </div> </div> </div> ` Js source $(document).ready(function(){ $('span').on('click', …

Member Avatar for phoenix254
0
232
Member Avatar for mbarandao

Hello All, I was wondering if anyone knows how I can get an estimated birthdate (dd/mm/yyyy) if I input in a textbox an age number. More specifically, suppose I had another known variable, the person is enrolling into an age specific program and want to start next month (supposedly next …

Member Avatar for hericles
0
171
Member Avatar for kavithakesav

Hey all, i want in my website visitor counter list showing. Plz, can any one tell me script for that and what i have to do. Cheersssssssss......

Member Avatar for john58975
0
607
Member Avatar for Thevenin

Hi all, I have a problem, I need to automatically get the user latitude and longitude, on page load (no user interaction), is there a way? In my PHP script, I want to populate automatically $lat and $long, everything on page load, so no user intereaction, but I do not …

Member Avatar for chrishea
0
137
Member Avatar for phoenix254

Hi someone can tell me why 4th line isn't working ? $('span').on('click', function(){ var name=$(this).attr("class"); $(name).click(function(){ $("#chatwindow").toggle("#hide"); });

Member Avatar for stbuchok
0
155
Member Avatar for chineerat

I have a large MYSQL / PHP in a while loop report being run and in many cases the report times out due to the large amount of data being calculated. Is there a way to make have a div displaying "Processing" when the while loops is calculating and if …

Member Avatar for bugz313
0
378
Member Avatar for J._1

/** * Part 4 * * write a function the returns a FizzBuzz string for some number N (counting up from 1). * - for every number that isn't a multiple of 3 or 5, return a period "." * - for every number that is a multiple of 3 …

Member Avatar for hericles
0
118
Member Avatar for amln_ndh

I'm new to this so I have a question regarding dependent drop down menu. I have two drop down menu first, Leave Type and the second Available Balance. Below shows the js and form. <script type="text/javascript" src="js/jquery.js"></script> <script type="text/javascript"> $(document).ready(function() { $("#parent_cat").change(function() { $(this).after('<div id="loader"><img src="img/loading.gif" alt="loading subcategory" /></div>'); $.get('loadsubcat.php?parent_cat=' …

Member Avatar for lps
0
203
Member Avatar for phoenix254

Hi var div = document.createElement('div'); div.id = 'window'; var div2 = document.createElement('div'); div2.id = 'windowhead'; var span1 = document.createElement('span'); span1.id = 'name'; div2.appendChild(span1); var div3 = document.createElement('div'); div3.id = ('close'); div2.appendChild('div3'); div.appendChild(div2); document.body.appendChild(div); Can someone tell me why chorme console is giving me this error : Uncaught TypeError: Failed to …

Member Avatar for phoenix254
0
900
Member Avatar for phoenix254

Hello everyone, I am trying to create html like this **html code** <div id="windwo"> <div id="windowhead"> </div> </div> And this is my try **Js cose ** var div = document.createElement('div'); div.id = 'window'; var div = document.createElement('div'); div.id = 'windowhead'; document.body.appendChild(div); document.body.appendChild(div);

Member Avatar for stbuchok
0
185
Member Avatar for phoenix254

Hi everyone, my code is here [Click Here](http://codepen.io/anon/pen/XbdBLm) How i can get value of php variable in javascript, i have an div id=windowhead where i want to show username which i clicked <a class='users' href='#' >test</span></a> <a class='users' href='#' >test2</span></a> <a class='users' href='#' >Max</span></a> <a class='users' href='#' >John</span></a> <div id="warp"> …

Member Avatar for Aeonix
0
250
Member Avatar for yankeefan24

Im using this function to disable check boxes after selection $( "input[type='checkbox']" ).prop({ disabled: true}); the problem is that when the form is submited the data of the checkboxes select is not showing in the email sent. It work if checkboxes are enabled.

Member Avatar for yankeefan24
0
279
Member Avatar for design_primo

I have made a project in Html5 canvas and this is responsive for all devices. The mouseClick, Drag and Rotate events in canvas are working fine on desktop pc and Laptop. But touch is not working in mobile and tablet devices. What should I do?

Member Avatar for stbuchok
0
179
Member Avatar for ramsiva

I am getting response as standard id in my project & i need to pass this value to php variable any body help me. My PHP page <div class="checkbox check-success"> <?php $b=mysql_query("select * from standard_names ")or die(mysql_error()); $count = mysql_num_rows($b); $i = 0; $breakafter=5; ?><?php while($row = mysql_fetch_array($b)) { $i++; …

Member Avatar for diafol
0
9K
Member Avatar for Mitchell_1

I have this gallery any help on how to enter text under each image that is moused over, i want the text to be written under the big centred image? I have the whole website attached Thanks in advance <DOCTYPE html> <html> <head> <title>Gallery</title> <link rel="stylesheet" type="text/css" href="../css/style.css"/> <style> img …

Member Avatar for Mitchell_1
0
283
Member Avatar for phoenix254

Hi I need help here, please tellme why it snt working correctly Urgent ; THankss very much $('#windowhead').click(function(){ /*$("#fullwindow").css({ "height":20+"px" });*/ $("#fullwindow").slideToggle('css'({ "height":20+"px" })); });

Member Avatar for phoenix254
0
134
Member Avatar for semo5

hi all, i was doing this coding and i get an error but i dont know what my error is could you please help me thanks in advance <html> <head> <title> Student Final Results </title> <style> Inline Code Example Here`Inline Code Example Here` background: #f3f3f3 url('22.gif'); } </style> <script type="text/javascript"> …

Member Avatar for lps
0
317
Member Avatar for faie

Hi i am a beginner in PHP Ajax. i found this code but i want to know how to start to display the table after i select the value from dropdown list. I am also a bit slow in this. All example i have found are only show how to …

Member Avatar for faie
0
814
Member Avatar for Niloofar24

Hello. There is a button in the page when i click it, a div will appear or disappear by toggling to the left and right. I want when the page loaded, user can only see the button and have to click to appear the dive. But the problem is that …

Member Avatar for lps
0
496
Member Avatar for gcardonav

I found this [jQuery Plugin](http://jsfiddle.net/ZdCPs/4/) online. The plugin is exactly what I need and I want to add it to my page but my table is created by obtaining the elements from a db. I tried adding it to the page as the jsFiddle sample but pagination just does not …

Member Avatar for diafol
0
582

The End.