14,054 Topics

Member Avatar for
Member Avatar for turpentyne

I've got two huge scripts that are basically duplicates with only minor differences. They run the same exact animations and commands, but one function applies to a set of images. the second to the text navigation. I've been trying to figure out how to combine these into one, and they …

Member Avatar for turpentyne
0
118
Member Avatar for turpentyne

I'm trying to call a function in two different event handlers. The function runs, but doesn't seem to recognize the passed variable ( or maybe the variable isn't getting passed). It just triggers the alert "nothing". I'm not understanding how to use console.log() or where exactly to look and see …

Member Avatar for McLaren
0
132
Member Avatar for Tko_1

All i would like to do is insert an image next to the question. Im sure this is a very easy thing to do. I just cant seem to do it. any help would be great, thank you '<input type="hidden" name="questions[' + n + '][number]" value="' + n + '" …

Member Avatar for Tko_1
0
161
Member Avatar for ChrisXL

Hey everyone. Got a problem that I really need help solving. I have a page where a user is able to search a database for certain criteria (species/location/dates etc). What I have so far is when the form is submitted, the values are posted to a PHP script, which performs …

Member Avatar for pritaeas
0
313
Member Avatar for turpentyne

I'm trying to get this code to toggle between innerhtml - turn off embedded music. But it doesn't seem to be firing? The html in question: <span id="music"> <embed src="http://thewalshgroup.ca/dev/the-nest/music/12_full_prom-night_0132.mp3"autostart="true" loop="true" width="2" height="0" id="player"> <noembed> <bgsound src="http://thewalshgroup.ca/dev/the-nest/music/12_full_prom-night_0132.mp3"> </noembed> </embed> </span> and the jquery function: $(document).ready(function() { var playing = true; …

Member Avatar for turpentyne
0
394
Member Avatar for chandub

hi every one. I have form and in that that form some of fields values are taken from request object . and am validating fields values using struts validate() method. once i submit form if any error in fields validate method will throws error but the request object content is …

Member Avatar for radhakrishna.p
0
130
Member Avatar for turpentyne

I'm a bit new with javascript/jquery. I've taken over a page design with images and links that animate on rollovers. I've almost got things working, but there's one last glitch. The mouseover effects of an image growing/shrinking work fine when the page is first loaded. But if the user clicks …

Member Avatar for turpentyne
0
347
Member Avatar for turpentyne

I have several rollover images that resize, then return to original when moused over. When an image animates, its movements are sequential, not synchronous. It gets taller, then wider. I want these to happen at the same time. Any thoughts? Here's a snippet of my current animation: $(".square.one,#link_nest").mouseenter(function(){ if ($(".the-nest")[0]){ …

Member Avatar for turpentyne
0
82
Member Avatar for asif49

I'm writing a jquery script that is to be run in a large number of websites all written in different ways. My intention is to place certain html tags around bits of text within the code - sounds simple? But it isn't. One approach which I've tried is to use …

Member Avatar for asif49
0
88
Member Avatar for RaptorMarketing

What would it take and cost to create something like this below? Where they can select different options and see the changes to the glove. http://www.akademapro.com/glove-builder/ I see the website is built in wordpress, is this a plugin? Any help would be apreciated.

Member Avatar for AleMonteiro
0
64
Member Avatar for JorgeM

Here is my first attempt at creating a simple slideshow. Contributions to making this more efficient are welcomed! #jsFiddle --> [Demo](http://jsfiddle.net/wGnEm/1/)

Member Avatar for JorgeM
5
263
Member Avatar for klemme

I have an ajax call, and am wondering how I can fade in the response. The short code is this, I believe that is what you need to be able to tell what extra code should be added to achieve the fade in effect. PS: It is not made in …

Member Avatar for theHop
0
132
Member Avatar for asif49

I am writing some jquery script that will run across a large amount of completely different web pages (different domains too) and it will surround certain words on the page with html tags to style them up - make them more noticeable etc. Here's some sample code I've written... $('body').ready(function() …

Member Avatar for JJenZz
0
203
Member Avatar for alltech

Flash game is ok in IE but in Google Chrome or Firefox the game opens up in a specified window size but the game itself which is flash, is a small image at top left within the window size. for example like placing a postage stamp on top left hand …

Member Avatar for pixelsoul
0
177
Member Avatar for korathualex

set focus to textbox on blur validation...I am doing character strength validation on the blur event of textbox..How to set focus to it...

Member Avatar for BMXDad
0
144
Member Avatar for Shodow

how to make this "if the checkbox is checked add total + 10000 if uncheck none" because in this situation everytime i check or uncheck the checkbox it adds 10000 function AmmenitiesCALC(value){ newValue = parseInt(value); document.formcheck.Total.value = newValue; Total+=newValue; document.formcheck.Total.value = Total; } <tr> <th>AMMENITIES INCLUDED </th><td><input type="checkbox" name="Ammenities" value='10000' …

Member Avatar for DavidB
0
145
Member Avatar for asif49

Hi, My objective is to replace all pattern words that match a particular regex with that word surrounded in some html tags like so. Example html: <p>This is some text where the word text will get surrounded by something else.</p> After regex: <p>This is some <span class='mydiv'>text</span> where the word …

Member Avatar for JJenZz
0
244
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
183
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
514
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
111
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
265
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
307
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
288

The End.