15,127 Topics
| |
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 … | |
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 … | |
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. | |
| 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 … |
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 | |
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), }); | |
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); }); // … | |
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 … | |
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 … | |
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=" … | |
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 … | |
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: … | |
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 … | |
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 … | |
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); … | |
Modernizer makes a JS object, I've been researching as to where I can find this object to review ? | |
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 … | |
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">×</div> </div> <div id="msgbody"> <textarea id="textar" ></textarea> </div> </div> </div> ` Js source $(document).ready(function(){ $('span').on('click', … | |
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 … | |
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...... | |
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 … | |
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"); }); | |
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 … | |
/** * 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 … | |
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=' … | |
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 … | |
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); | |
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"> … | |
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. | |
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? |
The End.