15,127 Topics

Member Avatar for
Member Avatar for killingmonk

I have this .js file called by my page. The function I'm caling with my onclick is working before the button is clicked. window.onload = function() { document.getElementById('clickMe').onclick = testOne(); } function testOne() { var para = document.getElementsByTagName('p'); var length = para.length; for(i=0; i<length; i++) { document.writeln("+"); //document.getElementById(para[i]).style.font = "Arial"; …

Member Avatar for Matt_17
0
200
Member Avatar for Trabelsi

Hi, first, sorry for my english i am not good at all, I am trying to create a form that contains two drop-down lists , the first is related to the second list , I noticed that the first list of data ( joursemaine ) appears as a question mark …

Member Avatar for Trabelsi
0
253
Member Avatar for phoenix254

I am new in programming languages.I was trying to learn web socket with javascript to this [site](http://socket.io/get-started/chat/), but i am not understanding something that why i need to use **Package.json**. I tried to google a lot, but can not find something useful. One more thing if i create Package.json then …

Member Avatar for cereal
0
183
Member Avatar for Rhuntsman21

I have a datepicker which is set up to select a whole week. I have two buttons which are supposed to move the selected dates forward and backward a week. The forward button works all the time, but the backward button only works if the month changes. If the month …

Member Avatar for bnmng
0
442
Member Avatar for fielding

I am trying to get the text (not value) of a selected item in a select box <option> and display it elsewhere on the page. I have to admit im totally new to this so im going to need an explanation on plugging in a JQuery file... Thanks!

Member Avatar for ololol
0
3K
Member Avatar for madmax9922

I would like to know how to create a custom link on any of my website page to launch directly this modal contact form. thanks in advance. [Click Here](http://www.elated.com/articles/slick-ajax-contact-form-jquery-php/)

Member Avatar for chriswelborn
0
255
Member Avatar for gentlemedia

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! …

Member Avatar for gentlemedia
0
4K
Member Avatar for Norbert_2

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 : '', …

Member Avatar for Norbert_2
0
194
Member Avatar for nevek

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" …

Member Avatar for nevek
0
382
Member Avatar for Bensirpent07

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: // …

Member Avatar for pixelsoul
0
381
Member Avatar for jmann22

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/)

Member Avatar for jmann22
0
257
Member Avatar for bradly.spicer

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 …

0
148
Member Avatar for jmann22

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, …

Member Avatar for pixelsoul
0
264
Member Avatar for phoenix254

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 …

Member Avatar for ryantroop
0
2K
Member Avatar for grakovski

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 …

Member Avatar for Gideon_1
1
681
Member Avatar for vizz

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> …

Member Avatar for ryantroop
0
1K
Member Avatar for jonsan32

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 …

Member Avatar for jonsan32
0
595
Member Avatar for JasonPS

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 …

Member Avatar for JasonPS
0
273
Member Avatar for Aeonix

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() { …

Member Avatar for Aeonix
0
225
Member Avatar for harinagarjuna

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 …

Member Avatar for lps
0
202
Member Avatar for oioiya

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 …

0
91
Member Avatar for SimonIoa

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 …

Member Avatar for SimonIoa
0
197
Member Avatar for Aeonix

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); …

Member Avatar for pritaeas
0
263
Member Avatar for jamesrobb

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.

0
94
Member Avatar for sowmya.murthy

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.

Member Avatar for ankti
0
482
Member Avatar for Vivek_13

how to set countdown of time in jquery... in my database i have one field which content time in int format..

Member Avatar for Aeonix
0
115
Member Avatar for chrisschristou

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 …

Member Avatar for chrisschristou
0
248
Member Avatar for tNicknames

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; }

Member Avatar for pixelsoul
0
389
Member Avatar for Tko_1

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 …

0
181
Member Avatar for G_Waddell

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 …

Member Avatar for G_Waddell
0
306

The End.