20,316 Topics
hey all i have 3 drop down boxes: one for the day, month and then the year. however i'd like to have it so that the person choosing the date can't choose a past date. In other words if they try choose for instance the 14th Oct when it's now …
Hi All, I need to create a dropdown box for a user to select a row from a table and populate the fields in a form for the user to update that row. What will be the best way to do this? Thank you in advance Max
Hi guyz... I am newbie to the forum.. I finished my BE degree in Computer science in 2009. i joined a canada based software company and had been working as a developer in J2ee/Flex for on year. Now i am thinking of adding a few adv. to my career. So …
Hi! My append code works for Firefox and Internet Explorer but not for Opera and Google Chrome. [URL="http://3rlend.com/pjatt/append.html"]Here[/URL] is the test page. In Opera I get this error in Dragonfly: [CODE]Uncaught exception: [object DOMException] Error thrown at line 3, column 16 in append(id, text) in http://3rlend.com/pjatt/append.html: var je = document.createElement('<span>'); …
Hi! [URL="http://3rlend.com/pjatt/JStest.html"]Here[/URL] is the test page. It works fine in Firefox and Google Chrome but not in Opera and Internet Explorer. If you don't have Firefox or Google Chrome, I can tell you how it should be: when you click an element, if should be lighter green, rolling out of …
Hello, I need to rotate images in a website based on the time of day. Please help out with this code. regards, michael
Anyone can to help me solve my java problem? I want 2 shapes to move at the same time when mouse dragged occurs. For example 2 objects name hat and face are created then when I mouseDragged face both face and hat will move together, but when I dragged hat …
Hi, I working on OnlineTraveling project, here issue is whenever I choose source city from dropdownlist at that event only related cities would be comes in dropdownlist of Destination city. It should not need to goes to server, it would be happen on same page. I have done this by …
I'm hoping someone can help me I'm trying to create a custom transition using a jQuery called "cycle" so far I can only mix the two transitions but I have no idea on how to take these two transitions and create a new transition from it. [CODE] <script type="text/javascript"> $(function() …
hi dear,,, i use this code facebox : [url]http://chriswanstrath.com/facebox/[/url] now i have first_page.html [CODE] example id: <?php $id = 1; //// 1 for michal jakson ?> <a href=\"page/play.php?id=$id\" rel=\"facebox\">Play music <a> [/CODE] now in play.php [CODE] <?php $song = "mj.mp3"; /// all my songs is mp3 ?> <center> <table border="0" …
I was wondering if anyone could help me with a current page selection for my navigation bar. I am a noob to javascript and jquery and I would like to use jquery for this. I don't know how to implement it. I have a drop down menu. I have found …
Hello, I manipulate XML with jQuery with no problem in all browseres but not in Internet Explorer. I serched bug-fix and I found "metadata.js" but still not working in my Internet Explorer 7 :sad: . Does anyone now a fix for this problem? It's just too nice to manipulate XML …
Hi I'm creating a popup to display a loading message, inside this popup i placed an animated gif... the problem is that the gif is not being animated (it is an animated gif...) , its is being shown but without the animation... This is the code: [CODE]oPopupLoading = window.createPopup(); var …
Hi there, I'm using this script for collapsible divs... [url]http://www.harrymaugans.com/2007/03/06/how-to-create-an-animated-sliding-collapsible-div-with-javascript-and-css/[/url] Everything's working fine but I need to add an image for show/hide state. When the div is showing the header displays an "open" arrow...when closed it displays a "closed" arrow. Any help is really appreciated!! Thanks :) Here's the JS... …
Hi, I could use some help with my code. I am validating a form before processing the PHP to SQL and would like it to let the user know if they have done something wrong before the form can process. This code below changes the bad fields to yellow (BRIEFLY), …
Hi, I am trying to get a random image as a background to a cell, and have tried many ideas but none work, in desperate need for help can anybody please. I have this in the header [code] <script language="javascript" type="text/javascript"> var img_rnd = new Array (); img_rnd[0] = "hp-1.jpg"; …
Hi Everyone, I have got a DIV that I need to refresh, its content consists of an image that will change on the insertion of a row to the SQL Database, however, when I use a refresh on my div it does refresh but does not change the image... My …
I have been playing around with this code for far too long. The code worked fine at first, but when I tried to validate under strict I got a "name" attribute in the form element not valid, so I took it out. Now its keeps saying that document.quiz is not …
Hello Everyone, I have triple drop down menu. I want to display the contents of the table based on the third menu selection. The code is in the link [url]http://php.pastebin.com/hgazULxi[/url] I know I need to include a onchange function to <select name="genus"> but as you can see I have a …
Hey, So I made a regular expression to check for valid URLs In Javascript I'm using the code [code=javascript] var valid_url = /^(https?:\/\/)?((([a-z\d]([a-z\d-]*[a-z\d])*)\.)+[a-z]{2,}|((\d{1,3}\.){3}\d{1,3}))(\:\d+)?(\/[-a-z\d%_.~+]*)*(\?[;&a-z\d%_.~+=-]*)?(\#[-a-z!//\d_]*)?$/i; var valid_protocol = /^http\:\/\/|https\:\/\//i; if ( !valid_url.test(url) || url.length == 0 ) { $('#url_return').html('Invalid URL!'); return false; } if ( !valid_protocol.test(url) ) { $('#input_url').val('http://'+url); url = $('#input_url').val(); …
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 …
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"> </div><div class="pp_top"><div class="pp_left"></div><div …
Hello people i'm new to the forum and my experience with PHP is very small in fact I only know how to echo some text. So I'm as new as they get. However I want to create a little program for my website and just need to know firstly. Can …
Hi all, a few quick questions. (Theory related) 1. Can you put javascript in a PHP file? 2. If the answer to that is no ... how can a website have user sign ins / security and also be using ajax to dynamically update a pure xhtml web page? 3. …
Lets see where to begin: My Name is Alan I like to Network computers together (very fun for me)(I mainly stick to Hardware) I rather enjoy learning new languages for computers (new to me) Ranging from web programming to software programming (Not very good yet at software) C++ (so limited …
what should I do if I want to open [url]http://www.google.com[/url] on click of a form button.... thanks in advance
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" …
Hi Guys, I want to read html file and parse it and then assign the extracted info to the dataobjects. How can i do this .Thanks
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> …
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 …
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 …
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 …
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) …
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 …
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]
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 …
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?
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 …
I've posted this problem on several forums and no one has come up with the correct answer, but anyway here it goes: I've tried stringifying and querystring'ing the parameter but the Response error continues to be {"Message":"Object reference not set to an instance of an object.","StackTrace":" at ProvaReportLocale._Default.GetColumns() in \\ProvaReportLocale\\Default.aspx.cs:line …
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 …
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.
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).
How to move cursor position in Web Application by using javascript on image click. I want to move the cursor position on particular coordinate on image click. With javascript how to do that? Thanks in advance, Regards, ANKUR
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 …
Hi Friends, <%@ Page Language="C#" AutoEventWireup="true" CodeFile="simpletest.aspx.cs" Inherits="simpletest" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <script language="javascript" type="text/javascript"> function checkListItem(pEvent) { document.getElementById("dvDdlValue").style.display = 'block'; var title = document.getElementById("ddlCheckItem").value; document.getElementById("dvDdlValue").innerHTML = title; var dom = (document.getElementById) ? true : false; var ns5 = (!document.all && dom || window.opera) …
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?
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 …
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() …
Good afternoon, I need to display part of a url so that testers know which development site they are looking at. At the moment I am using: [icode]<script language="javascript">document.writeln(document.location);</script>[/icode] but this displays the whole url such as example: [url]http://development/B1888FG65789exampleexample376522003_7767389991122334453466737278685685847437[/url] and would love it to be: [url]http://development/[/url] Any ideas?
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 …
The End.