15,120 Topics

Member Avatar for
Member Avatar for Shodow

how to add the sum of them all <script type="text/javascript"> function AddGuestCALC(){ newValue = (parseInt(document.formcheck.Price.value) * parseInt(document.formcheck.Guest.value)); document.formcheck.AddGuestTOTAL.value = newValue; } function MenuChange(){ newValue = parseInt(document.formcheck.Menu.value.asInt); document.formcheck.Price.value = newValue; } function LechonCALC(){ newValue = parseInt(document.formcheck.Lechon.value) * 6500; document.formcheck.LechonTOTAL.value = newValue; } function AmmenitiesCALC(){ newValue = parseInt(document.formcheck.Total.value) + 10000; document.formcheck.Total.value = …

Member Avatar for Shodow
0
185
Member Avatar for Samyx

Hello Everyone, I am having issues trying to display a grid on my page. I am not sure what I am doing wrong. I know the code is not very clean and efficient, I am just learning php and dojo. I want to display 2 graphs on a page and …

Member Avatar for Samyx
0
217
Member Avatar for asif49

I have a regex which matches a string of length between 10 - 15, lower case alphabetic characters like so... str.replace(/[a-z]{10,15}/g,"replacement word")); ^^ The next step is I'd like to ignore any whitespace whilst matching. I've tried str.replace(/[a-z]{10,15}\s*/g,"replacement word")); and str.replace(/[a-z]{10,15}\s?/g,"replacement word")); But it still doesn't ignore whitespace when matching. …

Member Avatar for JJenZz
0
548
Member Avatar for confstu

Hi every body, i'm a newbie in javascript, so i need all your help i have a javascript like this: <script type="text/javascript"> function validate(target, e){ var id = e.dataTransfer.getData('div'); var clone = document.getElementById(id).cloneNode(true); var allValues = []; for (i=0; i<clone.length; i++) { if (clone[i].value != "") { allValues[i] = clone[i].value.toLowerCase(); …

Member Avatar for charles nitro
0
161
Member Avatar for MasterHacker110

I am learning javascript. I get them to work when I use them within HTML code. But I would like to make programs that i can run on my desktop with javascript without using HTML or IE. Is that posible becuase I always get an error when trying to run …

Member Avatar for AffineMesh
0
103
Member Avatar for suavedesign

How do I delay an animation in jquery? I have a <p> in to the page as soon as the page loads. I have another <p> that I want to slide in only after the first <p> finishes coming in, and then I want an image to move when that …

Member Avatar for pixelsoul
0
112
Member Avatar for cokerz_written

Hy every body, i am a new people in here, so i am need all of your help, please.. i have the script ajax like this, <script type="text/javascript"> jQ(document).ready(function() { jQ().ajaxStart(function() { jQ('#loading').show(); jQ('#result').hide(); }).ajaxStop(function() { jQ('#loading').hide(); jQ('#result').fadeIn('slow'); }); jQ('#frm').submit(function() { var formData = new FormData($(this)[0]); jQ.ajax({ type: 'POST', url: …

Member Avatar for pixelsoul
0
267
Member Avatar for jonsan32

With the checklist script below, how do I make the letters dim to gray while making the strikethrough a bright red? I know it has something to do with placing one class that holds the text within another that holds the strikethrough and the text, but I just can't get …

Member Avatar for jonsan32
0
450
Member Avatar for Shodow

whenever i click on a radio button the value that comes out is NaN how to make it an integer function MenuChange(){ newValue = parseInt(document.formcheck.Menu.value.asInt); document.formcheck.Price.value = newValue; } <tr> <th>Menu </th><td>270/Head <input type="radio" name="Menu" onChange="MenuChange()" value='270'></td> <td> </td> <td>300/Head <input type="radio" name="Menu" onChange="MenuChange()" value='300'></td><td> </td> </tr>

Member Avatar for Shodow
0
2K
Member Avatar for techyworld

Anyone can tell me why am having this error? Uncaught TypeError: Object #<DedicatedWorkerContext> has no method 'terminate' on line 14 below this.addEventListener("message",function(e){ importScripts('test.js'); var object=e.data; object=JSON.parse(object); myArray=object.array; var tst1=new test(); for (var i=0;i<20;i++ ) { for (var j=0;j<10;j++) { word="" + myArray[i][j]+ myArray[i][j+1] + myArray[i][j+2] + myArray[i][j+3] + myArray[i][j+4]; var …

Member Avatar for techyworld
0
101
Member Avatar for ziyaddinsadigov

Hi, I want to add element after an element with loop. For example, I have 10 paragraph elements and I want to add div element after each paragraph element. How can I do it?

Member Avatar for ziyaddinsadigov
0
309
Member Avatar for techyworld

Hi guys, am having a problem with web worker. it tells me this error : Uncaught ReferenceError: importScripts is not defined i wrote it like this : importScripts('test.js'); i dont knw why it dont acept it. can someone help?

Member Avatar for LastMitch
0
74
Member Avatar for shazzy99

Hi, I've the following html/javascript/css code that I'm trying to execute. But it doesn't work. What I'm trying to do is similar to this: http://jsfiddle.net/FsPSZ/16/ (i've even tried this and the problem is the same) ` <!DOCTYPE html> <html> <head> <title>test</title> <style> #preview{ position:absolute; border:1px solid #ccc; background:#333; padding:5px; display:none; …

Member Avatar for McLaren
0
290
Member Avatar for Albert Pinto

Hi People, Got some jquery issue. I'm validating a Contact form. All fields are working fine except <textarea> I mean I wanna make all fields mandatory including textarea... --------------------------------------------------------- HTML CODE --------------------------------------------------------- <div class="formbox"> <form id="contact_form" action="#" method="post"> <span class="error" id="name_error">Please Enter Name !</span> <span class="error" id="email_error">Please Enter Email address …

Member Avatar for pixelsoul
0
10K
Member Avatar for afidah

Hi.. I want call data from table in mysql database using javascript How to do it? [EDIT: Moved from Java to JavaScript]

Member Avatar for afidah
0
92
Member Avatar for ckjaseem

Hai all , I am trying to make a google+ siginin button for my site. I went through this link https://developers.google.com/+/web/signin/#button_attributes and tried to make it working but now my styling is all messed up. I am not able to mess around with the [class='g-sinin'] in CSS. This is my …

Member Avatar for LastMitch
0
566
Member Avatar for spherecraft

hello forums. i have small problem im creating a simple page (no php ) just javascript and html. i have order.html which has a list of items. and then when you click the drop down menu it will automatically display the price of the item depending on the quantity on …

Member Avatar for IIM
0
410
Member Avatar for otengkwaku

I want to do and internet radio and i need someone to point me in the right direction that is, what technologies to use and also useful links and book. thank you

Member Avatar for alex007
0
205
Member Avatar for RamNandan

hey guys i have a table which has a textbox in each of the rows. Each of these textboxes hold value as its row id. This value in the textbox is changeable and i want to move that particular row to a new row mentioned by the user in the …

Member Avatar for RamNandan
0
153
Member Avatar for srinidelite

*Hello I was designing a form to take some value in the given fileds and return the whole as a "DRAFT" once the user fills the form clicks copy to clipboard the whole draft has to be copied ,if he/she clicks clear button the all fields has to be cleared …

Member Avatar for LastMitch
0
1K
Member Avatar for venu.gopal

Hi, I am very new to PHP, and i need small help. i need to fetch data on selection box onchange event and then apply pagination to the results. i have done etching data with ajax and when i tried applying pagination i am unable to load parent page of …

Member Avatar for pixelsoul
0
468
Member Avatar for arctushar

Hi I want to develop page. Where there will be three mp3 files as audio. 1.mp3 , 2.mp3 & 3.mp3 files. and there will be three button. button 1 , 2 and 3. Initially button1 will be enabled and other two will be disable. then when user click on button …

Member Avatar for LastMitch
0
101
Member Avatar for developer707

Hi, I have some time that I am trying to build a page with some menus and to include joberbase into one menu but I am having a problem to include it on the page. I am using iframes to show it, but when I click on Post New Job …

Member Avatar for LastMitch
0
208
Member Avatar for javalover

For my site I am interested in using google and facebook login api using javscript. I have to do reauthorization also, once they logged in, for accessing some pages they have to reauthorize(re-enter password). Implementing this in facebook login api is much easier and in google, they mentioned we have …

Member Avatar for LastMitch
0
197
Member Avatar for JeanPhilippe

Hi, I have kind of a weird problem and I can't figure what is wrong. This is my Ajax php page : <?php // Configure connection settings include('dbconnect.php'); include('functions.php'); // Fetch the data $timestamp=$_GET['t']; $dimanche='2013-03-03'; $samedi='2013-03-09'; $queryEvents=mysql_query("SELECT * FROM `events` WHERE `start_date`=`end_date` AND `start_date`>='$dimanche' AND `start_date`<='$samedi'"); while($resultEvents=mysql_fetch_array($queryEvents)) { echo"<div id='drag-div-".$resultEvents['id']."' …

Member Avatar for JeanPhilippe
0
215
Member Avatar for ipster

#Web app state management# The current state of the user interface determines which application actions are enabled and thus which html elements are enabled for the user to invoke them. Classes are used in the html to indicate elements that need to be managed. Then jQuery is used to configure …

Member Avatar for LastMitch
2
355
Member Avatar for Tinnin

Hi all, I'm trying to change the border style of some buttons (but nothing is happening) with the following code: <script type="text/javascript" src="JavaScript/WS_Button.js"></script> which is in the <head> section. and: <td id="register_button_area"><input type="submit" name="register" value="register" id="register_button" /></td> <td id="login_button_area"><input type="submit" name="login" value="login" id="login_button" /></td> which is in the <form>. and …

Member Avatar for Tinnin
0
368
Member Avatar for techyworld

Hi, i have a 2D array animal and i want to copy it to another 2D array myArray. can somehelp? the code below is not working. I am havine this error : Uncaught TypeError: Cannot set property '0' of undefined on line 7 var test=""; var myArray=new Array(animal.length); for (y=0;y<animal.length;y++){ …

Member Avatar for pritaeas
0
317
Member Avatar for suavedesign

Hi, I am using jquery to make some text scroll in to my web page. I want to know how to make it appear slowly. This is the script I am using: $(document).ready(function() { $('p').animate({"left":"300px", },"500"); }); I tried this, to make it go slower: $(document).ready(function() { $('p').animate({"left":"300px", },"500","slow"; }); …

Member Avatar for pritaeas
0
179
Member Avatar for vizz

I need help to create **Full Screen Filterable portfolio using jQuery** with thumbnails? 1. thumbnails will be Filterable 2. option to choose position of filter and thumbnail(right, left, top, bottom) 3. after click on thumbnail background image should change 4. slide in/out filter with small icon (**$('#filtertext').animate();**) 5. thumbnails should …

Member Avatar for vizz
0
297

The End.