15,127 Topics

Member Avatar for
Member Avatar for nouth

I am using variables for my numbers. I require the smallest number and so I use `min()` to achieve that but if I have multiple values it will only take them in chronological order. var a = 98 ; var b = 82 ; var c = 61 ; var …

Member Avatar for nouth
0
136
Member Avatar for nadiam

hey guys, so im trying to auto calculate two textfields. like for example i have textfield A and textfield B and also a <span> tag. the span tag is default zero. when user inputs A as 5 the <span> tag becomes 5. then when user inputs B as 2, A …

Member Avatar for nadiam
0
12K
Member Avatar for swagato.datta

i want to create a comment box like this website for my forum can any one help me to solv tis code thnx..

Member Avatar for JorgeM
0
154
Member Avatar for Amoryethel

I'm trying to use sessionStorage to pass information from a merchandise page to shopping cart page, which displays what items were purchased, how many items were purchased, cost of item, cost of subtotal, cost of total before taxes, the tax amount and after taxes. It displays the monetary value of …

Member Avatar for ryantroop
0
256
Member Avatar for FranaticCode

Hi, I would like to know if there is a way to insert the content of an external .txt files into the <body> without coding long scripts etc. and which will also update automatically if the file has been changed.

Member Avatar for stbuchok
0
31
Member Avatar for bullet_1

I am very new to javascript I am creating a quiz form in which each question has four options. Ex: 1. What is your favourite sport ? A. Cricket B. Football C. Hockey D. Baseball When mouse over on options A, B, C, D bg color has to be appeared …

0
80
Member Avatar for old_apache

for example: current url : localhost/website becoming : localhost/website/product without refreshing. Thanks in advance

Member Avatar for harsh9
0
333
Member Avatar for anuran

i want to slide a div inside another div as shown here [Click Here](http://jsfiddle.net/cGZxv/61/) but my divs are float type. how can i reproduce the same demo here [Click Here](http://jsfiddle.net/anuran/8dM7z/2/) with the white box with "apple" text to slide inside the black div.

0
137
Member Avatar for turpentyne

I have a bit of script for a footer section that is to expand up, when the user rolls over it - and go back down, when they are not over it. Everything works fine, it seems. But not quite in Internet Explorer. The content inside of the three "ie-curves"-classed …

Member Avatar for turpentyne
0
388
Member Avatar for evangelion89

Hi, I want to access a web service and get the response in json using javascript. The web services can respond in json and gives me a table of records with a specific campus. I input the campus code in the text box and create the url. Now, I want …

Member Avatar for spatlola0422
0
1K
Member Avatar for monkeytherat

This (http://jsfiddle.net/dPrXM/) is supposed to make two more fields appear when you click the more button, but it is unfortunately not working. I cannot for the life of me figure out why, but I am convinced that it's something very simple and probably pretty stupid.

Member Avatar for designershiv
0
339
Member Avatar for mario90

Hello i'm using javascript code to redirect visitor to random link like the example below but sometimes i get error 404 response :( var pageArr = ["http://google.com", "http://yahoo.com", "http://bing.com", "http://youtube.com", "http://facebook.com"]; document.location.href = pageArr[Math.ceil(Math.random()*5)]; ps:the code does exist in external js file what the problem here ? i'm not coder …

Member Avatar for mario90
0
251
Member Avatar for cobalt555

I was wondering if anyone could show me how to take a string that is entered and then find that string and use it as my unit of measure . I also have to find a number that is part of a string. for example: How many feet in an …

Member Avatar for DavidB
0
118
Member Avatar for NoUserNameHere

How do you pass a value of an input field from angular to node? For HTML and PHP you would do something like $username = $_POST['field_name'];, is there something similar with angular and node?

0
66
Member Avatar for anuran

iam trying to create a smotth transition between 3 images inside a div using jquery. i have managed to get the needed opacity transition on moving mouse to any side of the div.Now i want to have some change in position also like this [Click Here](http://www.adhamdannaway.com/) But iam changing the …

Member Avatar for anuran
0
427
Member Avatar for nadiam

var tabLinks = new Array(); var contentDivs = new Array(); function init() { // Grab the tab links and content divs from the page var tabListItems = document.getElementById('tabs').childNodes; for ( var i = 0; i < tabListItems.length; i++ ) { if ( tabListItems[i].nodeName == "LI" ) { var tabLink = …

Member Avatar for noelthefish
0
3K
Member Avatar for DTSCode

im writing a firefox addon to append signatures to posts in cplusplus.com, but im having a little trouble, as it has been a long time since i wrote in javascript. right now i just want it to verify that i am in fact on the c++ forums and if it …

Member Avatar for DTSCode
0
315
Member Avatar for Drugsxxx

I looking for some tutorial that will show me how to send data to .json file and save it one after another like: data1,data2,data3 data1,data2,data3 ...and so on Also i would like to know do i need jQuery and is it hard to use??

Member Avatar for Drugsxxx
0
190
Member Avatar for AARTI SHRIVAS

when i click on add to cart button page is not reload cart shows empty and when i refresh page throught f5 it show data in cart and give error TypeError: jQuery(...).fancybox is not a function "transitionOut" : "elastic" in admin side i disable fancybox jquery so i got this …

Member Avatar for AARTI SHRIVAS
0
205
Member Avatar for ogok2010

Hi, so I'm creating a hangman game with only basic skills in java&html. I'm having a great trouble as to how to make it work. What I'm trying to do is very simple: When I type a word, a box will pop up and say, "----" (if it's 4 words) …

Member Avatar for Airshow
0
147
Member Avatar for mushahidh

I am using this script for exporting data from HTML table to Excel. <script> var tableToExcel = (function() { var uri = 'data:application/vnd.ms-excel;base64,' , template = '<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns="http://www.w3.org/TR/REC-html40"><head><!--[if gte mso 9]><xml><x:ExcelWorkbook><x:ExcelWorksheets><x:ExcelWorksheet><x:Name>{worksheet}</x:Name><x:WorksheetOptions><x:DisplayGridlines/></x:WorksheetOptions></x:ExcelWorksheet></x:ExcelWorksheets></x:ExcelWorkbook></xml><![endif]--></head><body><table>{table}</table></body></html>' , base64 = function(s) { return window.btoa(unescape(encodeURIComponent(s))) } , format = function(s, c) { return s.replace(/{(\w+)}/g, function(m, …

Member Avatar for pixelsoul
0
4K
Member Avatar for sugumarclick

Basically I'm having three text input. First is autocomplete (book name). Second is book price and third is book author. Please help me in changing the 2nd and third input text box values according to the selection of autocomplete input box. Fiddle setup is at http://jsfiddle.net/premgowda/UC74L/6/ Json code below from …

Member Avatar for noelthefish
0
564
Member Avatar for Tcll

so basically, what I've got is a handful of BBC text like such: [tree]title0 [node]title1 title2 [node]title3 title4 title5[/node][/node] title6 title7[/tree] using JS, how could I parse this to get this into this?? [ title0, [ title1, title2, [ title3, title4, title5 ] ], title6, title7 ] what I intend …

Member Avatar for Tcll
0
140
Member Avatar for chozokennedy

Hello, how does the getElementbyTagname and the length of that works ? Suppose my codes is : <!DOCTYPE html> <html> <body> <p id="demo">This is demo</p> <div id="original">This is original</div> <button onclick="myFunction()">Try it</button> <script> function myFunction() { var elements = document.getElementsByTagName("*"); alert(elements.length); }; </script> </body> </html> Output is 7. Why ? …

Member Avatar for AARTI SHRIVAS
0
120
Member Avatar for Indians

here i am trying to do calculation for javascript dynamic rows. i have done auto multiplication in few rows using this function . but i want to calculate the tax percentage. how can i do that? help.. <script src="http://code.jquery.com/jquery-1.6.4.min.js"></script> <script> var $k = jQuery.noConflict(); $k.fn.sum = function() { var sum …

Member Avatar for Indians
0
1K
Member Avatar for Master Mascus
Member Avatar for stbuchok
0
239
Member Avatar for hlamster

I have a function that returns a value that I would like to set as the value in and <input> statement. So essentially I have a javascript function deCols() that returns a value and I would like to do something like <input type='hidden' id='devCols' name='devCols' value=devCols() /> which of course …

Member Avatar for hlamster
0
303
Member Avatar for SaroGFX

Hi guys, The code works perfect on fiddle (check link below) but doesnt work properly when i [upload the same code online](http://saroverhees.be/testing/flickering2.html). What have I done wrong? http://jsfiddle.net/LRvVm/5/

Member Avatar for SaroGFX
0
172
Member Avatar for Violet_82

Hi guys, I was wondering if you can help me at all. I've just built a small html page which is meant to keep track of overtime. The data is entered through input fields. Then with jquery I extract the data from the input fields, create and populate a table. …

Member Avatar for diafol
0
210
Member Avatar for adishardis

I need to create an dynamic array which will be sent via `$("#ratings").load("ratingscalculator.php?Myarray="+myarray)` and then used in a select query $result = $database->connection->prepare("SELECT *, (SELECT COUNT(*)+1 FROM TABLE WHERE kampanj > t.kampanj and (kampanjnamn = 'Kampanjnamn_1' or kampanjnamn = 'Kampanjnamn_7' or kampanjnamn = 'Kampanjnamn_3' or kampanjnamn = 'Kampanjnamn_4' )) as …

Member Avatar for adishardis
0
160

The End.