15,121 Topics
| |
I'm trying by clicking on a `button` to toggle a class on a parent element which is 5 levels higher, so I though that this would do the trick: $('.btn-list').click(function() { $(this).parents('.mix-serie').toggleClass('animate') }); But unfortunately it didn't, but if I just add a class, $('.btn-list').click(function() { $(this).parents('.mix-serie').addClass('animate') }); it does! … | |
I found this https://github.com/inorganik/CountUp.js As my knowledge of javascript is very weak, i am asking for your help to store the counter result local, then display it on the user`s browser... var options = { useEasing : true, useGrouping : true, separator : ',', decimal : '.', prefix : '', … | |
Hi, I am trying to load a page which has a ng-table in a page with jquery my function to load the subpage in the main page is like this: function loadSubPage(id){ var random = Math.random()*1000000; $("#aanvullingGegevens").load("gui/aanvragen/gekende_patient.php?patientID="+id+"&random="+random); } and this is my sub-page <script type="text/javascript" src="scripts/angular/angular.js" ></script> <script type="text/javascript" src="scripts/angular/ng-table.js" … | |
I'm using this code right now: // JavaScript Document $(document).scroll(function(){ if($(document).scrollTop() >= 470) { $('div.slide-in-section1').effect('slide'); } }); And of course I did realize that whenever you scroll just a little more it will keep re-running this bit of code. But I figured I had a fix, which was this: // … | |
How would i make a request to the etsy api? I want the grid_cell div to show the results for something typed into the search bar. The grid_cell div should display an image for whatever the user searches for. [Click Here](http://jsfiddle.net/jmann1622/wbL1t04t/) | |
Hi all, Been trying to do this for a while, I have a .js script which utilises node.js and socket.io. I'm trying to make it so that when I have the page localhost:3000 open and I type !follow in an IRC chat it will change the web page. **Index.html:** <!doctype … | |
How would i make a request to the etsy api? I want the grid_cell div to show the results for something typed into the search bar. The grid_cell div should display an image for whatever the user searches for. Jsfiddle. [Click Here](http://jsfiddle.net/jmann1622/wbL1t04t/) <!DOCTYPE html> <html> <head> <title></title> <meta name="viewport" content="width=device-width, … | |
I am new in programming language. I was trying to create an websocket connection, this is my all line of js var url="ws://localhost:8080/WebsocketTests/"; w= new webSocket(url); and i got this error: **C:\xampp\htdocs\WebsocketTests>node test1.js C:\xampp\htdocs\WebsocketTests\test1.js:3 w= new webSocket(url); ^ ReferenceError: webSocket is not defined at Object.<anonymous> (C:\xampp\htdocs\WebsocketTests\test1.js:3:8) at Module._compile (module.js:460:26) at … | |
Hello, I search wysiwyg editor with fully support of HTML and PHP. I dont want extra <p> and <b> tags after <?php and before ?>. I prefer to work with PHP to get the content with $_POST. I dont want ajax methods. I test some editors all morning and cannot … | |
I have **NaN** error with following code. I have timer of 10 seconds to reload page. When Page reloads first jquery knob gives NaN value and then starts countdown of 10 seconds. There is problem when seconds are 60. It shows NaN, 0 and then counts from 59. <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script> … | |
Not sure if this is possible, but I'd like to transition between 4 words on my site. The words are pr0digies, 50 All-stars, 100% Max, and EV0LVED. In between those words, I'm trying to have the number 0 in pr0digies count up (0, 1, 2, 3, etc...) to 50 while … | |
Hi all, I hope someone can help. I've downloaded the raptor WYSIWYG editor. I've got it working the way I want - i.e. I can ad more fonts and heading styles, it edits the screen and I can get it talk to Php and MySql. However, I have aproblem, I … | |
I have been cuddling with OOP programming. JavaScript seemed like a good start. I went to w3schools.com. function person(first, last, age, eye) { this.firstName = first; this.lastName = last; this.age = age; this.eyeColor = eye; this.name = function() { return this.firstName + " " + this.lastName this.capitalize = function() { … | |
I have been trying to do this code from past two days. The problem is i have a select box which i have 4 options. And i have to create select boxes with 3 options each for all the options of main select box dynamically using javascript. But the problem … | |
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), }); |
The End.