15,121 Topics

Member Avatar for
Member Avatar for djcrab

I'm taking a "self-paced" class trying to learn a little javascript. I'm doing the old Dino Quiz trying to add pop up alerts after a click on a radio button of any question. I only added the javascript functions "scoreQuestion" at the top. The rest was already typed for me …

Member Avatar for djcrab
0
163
Member Avatar for programmer12

Hi, I have a piece of Javascript that I need help revising it to fit my needs... My NEEDS: I need this script to work with Megavideos as well, Right now it works with just Youtube videos, and Vimeo Vids. Here is the Script: [CODE] (function($){$.prettyPhoto={version:'3.0'};$.fn.prettyPhoto=function(pp_settings){pp_settings=jQuery.extend({animation_speed:'fast',slideshow:false,autoplay_slideshow:false,opacity:0.80,show_title:true,allow_resize:true,default_width:500,default_height:344,counter_separator_label:'/',theme:'facebook',hideflash:false,wmode:'opaque',autoplay:true,modal:false,overlay_gallery:true,keyboard_shortcuts:true,changepicturecallback:function(){},callback:function(){},markup:'<div class="pp_pic_holder"><div class="ppt">&nbsp;</div><div class="pp_top"><div class="pp_left"></div><div …

Member Avatar for programmer12
0
216
Member Avatar for funlove201

what should I do if I want to open [url]http://www.google.com[/url] on click of a form button.... thanks in advance

Member Avatar for aquilax
0
70
Member Avatar for fobos

Hello all, well i have a problem, but it sorta works. Here is my code. [CODE=JAVASCRIPT] var toggleState = 0 function toggleMe() { if(toggleState == 0) { alert("Checked"); toggleState = 1; } else { alert("Unchecked"); toggleState = 0; } } [/CODE] HTML [CODE=HTML] <input type="checkbox" onclick="toggleMe()" />Toggle me <input type="checkbox" …

Member Avatar for fobos
0
93
Member Avatar for mayuri_desh

need to write the below javascript function in php..please help [CODE]myStartDate = new Date('April 1, '+curYear+' 1:59:59');[/CODE]

Member Avatar for P0lT10n
0
82
Member Avatar for dantheman50_98

Hi There, - I've got a list similar to the following: <ul> <li><a href="item1.php">item1</a></li> <li><a href="item2.php">item2</a> <ul> <li><a href="item2-5.php">item2-5</a></li> </ul</li> <li><a href="item3.php">item3</a></li> </li> - Item 2 needs to have a class added to the li using jquery. I've tried the following but it isn't working: <script> jQuery(function(){ $(this).parent('li').addClass('current'); }); </script> …

Member Avatar for dantheman50_98
0
162
Member Avatar for shuka79

Hi guys, I have developed a menu structure that has several sub-menus which are hidden until you click on the menu item. Once this happens I have got a onclick event which will display the sub menu below, changes the font colour of the menu item you have just click …

Member Avatar for AleMonteiro
0
182
Member Avatar for maxelcat

Hi I am doing some simple jQuery work and I have a little problem. There are some image panels. If you roll over them a little div animates in. This new div sits on top of the image, and is about 1/4 of the size of the triggering image. Its …

0
67
Member Avatar for eefh01

Hi, I am just trying to have a login form on a page using div tags. After successful login without refreshing the page, the textboxes on the form should be replaced by Welcome message or displaying username and Logout button. Can somebody throw a little light to show me the …

Member Avatar for Airshow
0
94
Member Avatar for mushget

Hi , I need to do javascript money validation for a field. the condtions are 1) depending on the Locale (not sure if this can be done in JS like US,Germany..) 2) verify if it has $,pound symbol, yen symbol.. 3) group the digits either like 00,00,000 or 000,000,000 4) …

Member Avatar for Airshow
0
124
Member Avatar for akvlko

Hi Friend, I have a Jquery Validation code in which I have written [CODE]element.focus();[/CODE] When I view that page into other browser I able to modify that previous Field if I was left next field blank or wrong input. but in chrome i wont able to do so..! Can you …

Member Avatar for akvlko
0
111
Member Avatar for cancer10

Do u know of any free javascript script that will popup as a bubble with some information on it when I click on any form element in a page? I can show you an example of what I want: [URL=http://www.imagebam.com/image/0c790e4092858][IMG]http://thumbnails5.imagebam.com/410/0c790e4092858.gif[/IMG][/URL]

Member Avatar for maxvergelli
0
183
Member Avatar for Nathaniel10

I would like to place a caret (^) above certain characters in my text. The text decoration options I find are underline, overline, and strike-through. I also find ASCII characters with carets but theses are only vowels, and I would like any character to have a caret. Is it possible …

Member Avatar for aquilax
0
85
Member Avatar for lgriess

How can I create a double click event on a Web Form TreeView .net object that has no defined double click event on the leaf node?

0
59
Member Avatar for Clarkeez

Hello I've looked around and looks as if this can be done with Jquery, but the guides and full of so much bullshit its insane. Anyone done this and have a good way to do this. Most of the other ones have form validation and crap which 1) doesnt relate …

Member Avatar for diafol
0
75
Member Avatar for MDGM

Hi all, I want to know if it is possible and how to intercept an existing javascript keybind and block it. For example, a website has some javascript that, when the user hits the letter "H" on the keyboard, the website automatically runs a function, e.g. redirecting to another web …

Member Avatar for Airshow
0
290
Member Avatar for manu_gupta

Hi All, I have a problem with Internet explorer as in my applications second page within few minutes I am getting - The web page cannot be displayed. The first page is working fine but in the second page it expires soon - Please help.

0
29
Member Avatar for ivan3510

Hi! Sorry for my bad english. Darkening page in ie doesn't work well. On the left side there is part of the site that isn't covered with dark! In firefox this is well, whole page is covered, but in ie not. Thanks. (There is an attachment).

Member Avatar for ivan3510
0
109
Member Avatar for pietpiraat

Hello, I have a jQuery datpicker setup like this: [CODE] <script type="text/javascript"> $(function() { $('input').filter('#startPicker').datepick({ minDate: new Date(2010, 11, 20), maxDate: new Date(2010, 11, 27), multiSelect: 999, altField: '#date' }); }); </script> [/CODE] is it possible to show the number of dates the user clicks on in the altfield, or …

0
121
Member Avatar for aizel

i don't know if this converter is created in javascript [url]http://www.oanda.com/currency/converter/[/url] i want to make like that but first i want to start on the combobox.. how to put a image in a option value in a combobox?

Member Avatar for aizel
0
134
Member Avatar for Cool&Awesome

Hi everybody! I am calling the functions below from html anchor tags, for the purpose of opening/closing a popup window. Now, when i refresh or change the page, i can't close the window anymore (except manually). I understood there is some reference to the popup that gets lost when you …

0
67
Member Avatar for lgriess

I'm having a problem with the following code: I have the following jquery call: the problem is that I have several `<select name="^DDLColumns1..2..3..4`. etc.. controls on my page, however this is only populating the first one: `<select name="^DDLColumns1"` anybody know why the select would do this? <script type="text/javascript" language="javascript"> $().ready(function() …

Member Avatar for Airshow
0
170
Member Avatar for meghab

Hi All, I am creating an application in which I want to keep refreshing a jsp file and in that jsp file i need to keep calling another url of type [url]www.daniweb.com/receive.jsp?a=xxx&b=xxx[/url] and save this url in database. Here the url keeps changing in every second ie. values of a …

Member Avatar for Airshow
0
96
Member Avatar for newprog50

I need help with an assignment. Don't need the answer, just what is wrong with my code. I need to create a init() function. Create a variable named allSelect that references elements in my document. For each item in the allSelect object collection, add an onchange event handler that runs …

Member Avatar for hielo
0
138
Member Avatar for nikita.chandra

Hi all i am creating an application in which i m using jsp,servlet and javascript. on jsp page there are text boxes named ID and Passwprd and a submit button. When we submit jsp page first javascript will be executed if we left any of the text boxes blank, that …

Member Avatar for nikita.chandra
0
213
Member Avatar for reaphux

Hi. I'm setting up an alcohol website which requires age verifying. My knowledge in javascript is very limited. I already have this age verify javascript which i've downloaded off net. The problem is, i want a different image to show up at the bottom, when visitor selects their year. Eg. …

Member Avatar for reaphux
0
100
Member Avatar for mikecronauer

Does AJAX(javascript) have user session functionality? I want to use AJAX PHP and MYSQL to dynamically update my static HTML page. I have got an example to work where I push and pull data out of an HTML page using AJAX, but now I want to break it up and …

0
63
Member Avatar for pearll

Please sombody tell me .. i hv an input box like this [CODE]<td > <input type="text" name="emailid" id="emailid" onBlur="checkMail(this)" value="emailId" onFocus="this.value=''"> @domain.com</td>[/CODE] And the checkmail function is like this [CODE]//function to check email address format function checkMail(emailid) { var mail = emailid.value; var reg = new RegExp('^[a-z0-9]+([_|\.|-]{1}[a-z0-9]+)*@[a-z0-9]+([_|\.|-] {1}[a-z0-9]+)*[\.]{1}(com|ca|net|org|fr|in|us|gov|qc.ca|gouv.qc.ca)$', 'i'); if(!reg.test(mail) …

Member Avatar for paulrajj
0
168
Member Avatar for Flightfanatic1

Hello, I am trying to get a value of a div. I have an html page with a div's class called "findme". I have tried innerHTML but it keeps saying undefined. function innertest() { var a = document.getElementsByClassName("findme").innerHTML; alert(a); } <div class="findme"><b>This is a test</b></div> Is there a way that …

Member Avatar for Airshow
0
291
Member Avatar for filch

Hello, I have the following code, which shows a number of form text input fields, depending on a number entered into another field: [CODE]<script type="text/javascript"> $(function() { var input = $('<input type="text" name="delegate" id="delegate" />'); var newFields = $(''); var input2 = $('<input type="text" name="non_delegate" id="non_delegate" />'); var newFields2 = …

Member Avatar for filch
0
144

The End.