15,688 Topics
![]() | |
I'm trying to make a game (I'm new at this), what I want is to catch an object and then use that object as a bullet to shoot an enemy, but I don't know how to do that, here's a bit of the code I'm using: Any tips?? //FLORES, this … | |
I have the strangest problem. I am using colorbox a jquery plugin to open a modal window. [Click Here](https://plugins.jquery.com/colorbox/) The plugin will work only when i put this on my code `<div id="webcam"></div>`. Bellow you will find the javascript code i use to call the id='webcam' i use it so … | |
I tried playing with AJAX a bit. This is just the chunk of JavaScript I got. // FIRST TIME REQUIREMENT var interAction = new XMLHttpRequest(); var responseAJAX; interAction.onreadystatechange = function() { if (interAction.readyState == 4 && interAction.status == 200) { alert(interAction.responseText); responseAJAX = interAction.responseText; } } alert("inside"); interAction.open("GET", "ss-controller.php?req=freshStart", true); … | |
Do you know if it's possible to retrieve data from a dropdown list using bootbox? I'm at home so I don't have my code to post. Thanks. | |
I want to validate an email validation of type 'abc@xyz.com.com' Should show an error message if they enter invalid domain name. Would be very grateful for your help. | |
how to set countdown of time in jquery... in my database i have one field which content time in int format.. | |
hello friends, i so sorry to post this simple question but it is 2 week i'm trying to use jquery on my website but still it is not working, i have used query in past and it was working pretty fine, and now i'm developing i simple website, i followed … | |
Can I do ajax on 'Leave page' button? Below is my code: window.onbeforeunload = function (event) { var message = ''; if (typeof event == 'undefined') { event = window.event; } if (event) { event.returnValue = message; } return message; } | |
This is not my code/script all hardwork came from Codelair Full script located [here](http://doheth.co.uk/codelair/php-mysql/scoreboard) I really hope i posted this in the correct section because im unsure which code will work best for this. As the name for the script gives this away it is a scoreboard. allows admin to … | |
Hi all, I've searched in the ASP.Net and AJAX forums but I can't see any matches to this issue. The reason I'm posting in the ASP.NET forum is that the Error is being caused by my ASP.NET designer page. Myself and another developer are both working on different parts of … | |
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...... |
The End.