15,694 Topics
![]() | |
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 + '" … | |
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 … | |
Hey I have a program in retrieving data from a HTML page with Javascript using Java. Lets say I have the structure of C:/index.html C:/js/script.js index.html contains: [code] <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <script type="text/javascript" src="js/script.js"></script> </head> <body> <a href="javascript:void(0);" id="add"><img src="images/menunew.png" alt="plus" border="0" /></a> … | |
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; … | |
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 … | |
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 … | |
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]){ … | |
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 … | |
So i got a color selector from http://www.eyecon.ro/colorpicker/ How do i save the selected color code in a php var so i can insert it in a MySQL db ? | |
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. | |
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/) | |
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 … | |
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() … | |
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 … | |
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... | |
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' … | |
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 … | |
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 = … | |
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 … | |
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. … | |
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(); … | |
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 … | |
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 … | |
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: … | |
I am using this [application example][1] and try to model it to fit my needs. I am modelling your index.html.erb to fit my needs. I want to get rid of "start" button in order to prevent single-file upload (I dont want it), but it seems that "start upload"(multiple upload)-button is … ![]() | |
Hi, Doing a bit of research at the moment on how to structure my web App. So far I've decided on using PhoneGap with jQueryMobile client-side, which will request and update information in a database hosted on a remote server running php and mysql. From the tutorials I've seen online, … ![]() | |
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 … | |
I want to implement simple file upload with progress I like the services provides by [jQuery-File-Upload](https://github.com/blueimp/jQuery-File-Upload) I tested the example provided with script <!DOCTYPE HTML> <html> <head> <meta charset="utf-8"> <title>jQuery File Upload Example</title> <style> .bar { height: 18px; background-image: url('img/progressbar.gif'); } </style> </head> <body> <input type="text" name="textfield" /> title <input … | |
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> | |
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 … |
The End.