15,127 Topics

Member Avatar for
Member Avatar for jonsan32

Trying to insert both of these arrays of random quotes on the same page so that both show at the same time. I realize I have to rename some of the elements within, but apparently I have no clue which. I've tried giving each rannum, ShowText, and RndText a number …

Member Avatar for RobertDecousta
0
327
Member Avatar for castajiz_2

Hi there, I' ve got some data in my database and I' m using PHP to fetch it and would like to transport it to client side via JSON. The problem that I'm facing is the folowing: I have a timeline which was built in html and css and I …

Member Avatar for TexWiller
0
312
Member Avatar for ravi142

Hello, I am build up POPUP Box for the warrning, reference link [Click Here](http://www.pcattention.com/) That can be supported for all the browser Safari, Chrome, IE, Mozila. I have RND for that but not given exactly solution. Can suggest me something for that. Thanks.

Member Avatar for ravi142
0
169
Member Avatar for mehnihma

Hi I found this code: <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script> <script> function enterAsTab() { var keyPressed = event.keyCode; // get the Key that is pressed if (keyPressed == 13) { //case the KeyPressed is the [Enter] var inputs = $('input'); // storage a array of Inputs var a = inputs.index(document.activeElement); //get the Index …

0
105
Member Avatar for KrishnaWeb

Hi, everybody, How to create a hide calender. when i click show the calender and when i click anywhere on the webpage again calender will be hide ..... can anybody send me code please.... Thankyou so much in advance

Member Avatar for KrishnaWeb
0
103
Member Avatar for phoenix254

HI I am getting this error: **Uncaught SyntaxError: Unexpected token function** in line setInterval(function(){ (line 5) Someone can tell me what i wrong done ? $.ajax({ type:"POST", url:'getmessage.php', data:{user_id:id}, setInterval(function(){ success: function(data){ $('.umsg'+id).append(data); }, }, 2000), });

Member Avatar for Vivek_13
0
239
Member Avatar for methuselah90

Twitter Typeahead only seems works with elements called when the page loads (and not the dynamically created stuff made by methods like addWaypoint). How would I resolve this? Please find my code below: $(document).ready(function () { // Add waypoints $('#add-waypoint-button').click(function () { var n = $('#waypoints input').length; addWaypoint(n); }); // …

Member Avatar for diafol
0
1K
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
265
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
71
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
238
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
161
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
174
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
173
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
620
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
156
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
379
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
903
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
284
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

The End.