15,121 Topics
| |
[B]I need to update one select box, depending on what has been chosen in an other select box. [/B] I know I need to use AJAX, but I havent used AJAX ever before, so I am a little lost on how to implement it. [B]This is the first select box:[/B] … | |
Variables vvi and hhi should be with for loop turned into vv1...vv30 and hh1, hh2...hh30. Now I can't get variables tv, lv, bv and rv to return the variable(vv1 or hh1...) value instead if I put vv into quotes it turns the variable into a string (with value: vv1 or … | |
Hi all, I would like to ask if anyone could help me about AJAX validation error message with CAPTCHA (secureimage) - At the moment the error message display at processForm.php, IF user entered a wrong code. But what I would like do to is; the error message will POP UP … | |
I am pretty new in jquery and done some research on the internet but i couldn't much of a help...I want to create to drawers that will slide down on mouseover..i don't think the content is rellevant...any ideas??? | |
my calculator work perfect in IE but not in mozilla? what i need to do.. i think its all about to my function i need help to onClick event. pls. here's code: <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <link href="../css/calculatorCss.css" rel="stylesheet" type="text/css" /> <title>tile calculator</title> <script type="text/javascript"> <!--variable … | |
Hello Everyone, Can you please give me some advise on how to validate input or select based on the class used? For example: <input id="name" type="text" class="alphanumeric" value=""> Then for the validation: if input class = "alphanumeric" if !isAlphaNumeric(input.value) alert(Enter valid value);input.focus Before, I used onblur on the input to … | |
This is jquery script for insert new row in a table and each new row containing 3 td text input, current time and current date [CODE] <script type="text/javascript"> $(document).ready(function(){ var $prototypeRow = $("#prototype").find("tr").eq(0); $(".addRow").click(function(){ var tds = $prototypeRow.clone(true).insertAfter($(this).closest("tr")).find("td"), dt = new Date(); tds.eq(1).find("input").val("textInputGoesHere"); tds.eq(2).html(dt.getHours() + ":" + dt.getMinutes() + ":" … | |
I have what appears to be a javascript or other type of code in htpdocs of a newer Joomla site, there is a index.htm that I think is causing a 2-3 second delay for the homepages to load up? and I would like to remove this... goto myurl for the … | |
Hi everyone, Does anybody knows how to position the scroll bar of the code generated by the css div{overfolw:scroll}?.. The default position of the scroll bar is on the top.. now, what i want is to position the scroll bar at the bottom of the <div> overflow:scroll... I need help... … | |
[CODE] $(function(){ $('.table_pay').dblclick(function(){ if($('div', this).is('.value')){ var v = $('.value', this).html(); $('.value', this).remove(); $(this).append("<input type='text' name='val' class='field'>"); $('.field', this).attr('value', v); $('.field', this).focus(); $('.field', this).focusout(function(){ var val = $(this).attr("value"); $(this).remove(); $(this).append("<div class='value'>"+val+"</div>"); }); } }); }); [/CODE] What to do on the 13th line that the reference object which is on the … | |
Hi there! I have tooltips on my site that appear when you hover over text/image but i would like different background for different hovers. the code at the moment accepts all variables passed in but doesnt initalise and apply the styles. I have attached my code and would be thankful … | |
Of course, Yesterday I ask for help for my google map route creator. And of coure, I made my google maps route creator source. [code] <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Google Maps</title> <script type="text/javascript" src="jquery.js"></script> <script src="http://maps.googleapis.com/maps/api/js?sensor=false"></script> <script type="text/javascript"> … | |
Hey Everyone, Thanks for taking the time to read this and help me with my problem. I grabbed [URL="http://dynamicdrive.com/dynamicindex2/crosstick.htm"]this [/URL]code from Dynamic Drive. I'm trying to style it better. I've had some success, but some thing are giving me a run for my money since i don't know JS. [LIST=1] … | |
[CODE]<html> <head> <script> function zoomToggle(iNewW,iNewH,Image,mouse) { if(mouse==1) { Image.style.width=iNewW;Image.style.height=iNewH; } else { Image.style.width=iNewW;Image.style.height=iNewH; } } </script> </head> <body> <table width="100%", height="100%" > <tr align ="center"> <td> <img src="pics/Penguins.jpg" width="50" height="50" onmouseover="zoomToggle('500px','500px',this,1);" onmouseout="zoomToggle('50px','50px',this,2);"> <img src="pics/Jellyfish.jpg" width="50" height="50" onmouseover="zoomToggle('500px','500px',this,1);" onmouseout="zoomToggle('50px','50px',this,2);"> </td> </tr> </table> </body> </html>[/CODE] here's my problem, after zooming in the … | |
hi ... im searching on google and i cant find it.... how to display the texts form my main html form to another html form?....since i didnt know how to hide the textboxes and select list for printing the html form... my plan is that im gonna pass all the … | |
I need for the form to do the following: when age is greater than or equal to 65 enter "yes" in the hidden field when age is less than 65 enter "no" in the hidden filed return true Create a page processAge.htm that Writes the message on the page Hi … | |
I am trying to use phone validation of 10 digit & check the filled data is numeric or not.. Need suggestion. Below the function i am using [CODE]validate: function () { contact.message = ''; if (!$('#contact-container #contact-name').val()) { contact.message += 'Name required. '; } if (!$('#contact-container #contact-phone').val()) { contact.message += … | |
[CODE]<script type="text/javascript"> function populateHarga() { var x=document.getElementById("barang").value; document.getElementById("harga").value=x; var y=document.getElementById('barang')[document.getElementById('barang').selectedIndex].innerHTML; document.getElementById('nama_brg').value=y; } function populateTotal() { var y=document.getElementById("jumlah").value; var x=document.getElementById("harga").value; document.getElementById("totalnya").value=x*y; } </script> <body> <p> <?php mysql_connect("localhost","root",""); mysql_select_db("stageco"); ?> <table border="1" cellpadding="0" cellspacing="0"> <?php $nama_b=$_GET['nama_brg']; $harga_b=$_GET['harga']; $jumlah_b=$_GET['jumlah']; $total_b=$_GET['totalnya']; if($nama_b!="") { mysql_query("INSERT INTO temp('t_nama','t_harga','t_jumlah','t_total') VALUES('$nama_b','$harga_b','$jumlah_b','$total_b')"); } $result=mysql_query("SELECT * FROM temp"); $i = … | |
i have an web project asssigned in my college . it is just to create a website to host events , such as quiz , puzzles , basically a website that has a functionality like topcoder.com. Im totally confused what tool to be used . i know php better. but … | |
[CODE]validate: function () { contact.message = ''; if (!$('#contact-container #contact-name').val()) { contact.message += 'Name required. '; } if (!$('#contact-container #contact-phone').val()) { contact.message += 'Phone required. '; } [B]if (!$('#contact-container #contact-phone').length()<>10) { contact.message += 'Phone no should be of 10 digit. '; }[/B] var email = $('#contact-container #contact-email').val(); if (!email) { … | |
Say I have the following code: [CODE] poNode = poEvent.target ? poEvent.target : poEvent.srcElement; [/CODE] Is there a way I can force Internet Explorer to use the poEvent.target object? | |
Of course, I make code for marker add and move, but how do I can make deletion option for marker? And how do I can make automatic route creator from marked point A to marked point B? Anyone know? [CODE] var riga = new google.maps.LatLng(56.878999, 24.455566); var neighborhoods = [ … | |
Hello, I work on ubuntu and have installed javascript plugin in eclipse IDE for java EE.How should I us it now? As in will just saving a file with extension .js would make it a javascript file?And also how do I run it on the browser.please help. Regards | |
Hi, I'm not able to toggle a ui class in my page. Basically here is my code: in the jquery document.ready I subscribe to the event $("#bBuscar").hover(changeButtonBackColor, normalizeButtonBackColor); then the other two funtions are like this: function changeButtonBackColor(evt) { $("#bBuscar").toggleClass("ui-state-hover ui-corner-all"); } function normalizeButtonBackColor(evt) { $("#bBuscar").toggleClass("ui-state-hover ui-corner-all"); } the button … | |
I'm trying to write a function that counts characters in a <textarea>. My current problem is to trigger an alert in my function so I can know I'm on the right track. What do I need to add to my JS to get the alert to work?[CODE]<!doctype html> <html> <head> … | |
The code in the first Code Block is the source code. After the source code is running. The code will be changed (See the 2nd Code Block). I want the class(i.e. 'even' and 'odd') of <tr> tag is only displayed in the 'table1'. However, currently a nest table (i.e. 'table2') … | |
Hi friends , How to post a picture with url link in the forums . please help me . if we click that picture means it will goes to my target url . how to create this link ? . pls help me | |
Hi experts., I need your kind help on about how to handle Naviswork ActiveX control integrated with HTML, PHP and Javascript. I need to display a Naviswork viewer in my website. For that, I created a Browse button to select Naviswork file. After selecting the file, the file path has … | |
Hi, I'm not getting any response for the following ajax request. I'm getting the following error when i try to run request_get_xml.html im mozilla firefox: XML Parsing Error: not well-formed Location: moz-nullprincipal:{d4e6a0fb-93c0-4ef4-82cf-7ccbd5c1e02e} Line Number 4, Column 2: -<CATALOG> -^ does anyone know on where i'm making a mistake. thank you. … | |
Hello, I'm using php code to retrieving an array from database and place the result into checkboxes but after the last checkbox input there is text input (hidden by default) and the last check box name is 'other'. I want to make the text in visible if 'other' is checked … |
The End.