15,121 Topics
| |
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? | |
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++; … | |
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 … | |
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" })); }); | |
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"> … | |
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 … | |
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 … |
The End.