15,127 Topics

Member Avatar for
Member Avatar for Pro2000

Hello everyone. I have a button and a textarea. I want this button to add tags around the selected words in that textarea. For example the button is to add the <b> tag before the selected words and the </b> tag after the selected words. Just like these buttons, in …

Member Avatar for Pro2000
0
87
Member Avatar for jhaque

Hello everyone, i am new to ajax and i am trying to get some data from database using php and ajax. I am facing a problem and i can't find any solution. When i trigger the ajax function, it not showing what i wanted. please check the code bellow and …

Member Avatar for jhaque
0
91
Member Avatar for sam8

Hi, Having problems with getting the enter key to act as a tab key. It works fine in internet explorer with this code: [CODE]<body onkeydown="javascript:if(event.keyCode == 13) event.keyCode = 9;">[/CODE] However, if I try to it for the other browsers by using event.which it picks up that keycode 13(enter key) …

Member Avatar for twiss
0
116
Member Avatar for klemme

I have one select list, which is populated from the DB like this: [CODE] <select name="position" id="position" onChange='itemdisplay(this.value)'> <option value="<?php echo $til_subject; ?>"><?php echo $current_subject; ?></option> <?php while($row=mysqli_fetch_array($result)){ echo '<option value=' . $row['id'] . '>' . $row['linknavn'] . '</option>'; } echo "</select>"; ?> // Next to this list i have …

Member Avatar for twiss
0
1K
Member Avatar for ghosh22

Hi I am trying to find the answer of the following. Suppose, I am trying to build a web page to conduct a fictious online Poll and people vote their favourite candidate. Now each voter is allowed to vote only one candidate from any one party. I have made the …

Member Avatar for ghosh22
0
211
Member Avatar for MrCapuchino

I'm trying to use a plugin for paging from jquery, the thing is that the demo is not very clear, at least for me that I'm not very familiar with jquery and httphandlers. Here is the javascript code. [CODE] $(function () { var a = 10; var b = 10; …

Member Avatar for MrCapuchino
0
236
Member Avatar for klemme

[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] …

Member Avatar for klemme
0
1K
Member Avatar for web3

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 …

Member Avatar for Troy III
0
182
Member Avatar for siabenie

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 …

0
76
Member Avatar for marietta_kan

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???

Member Avatar for marietta_kan
0
83
Member Avatar for momonq1990

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 …

Member Avatar for momonq1990
0
256
Member Avatar for jamojo

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 …

Member Avatar for stbuchok
0
147
Member Avatar for 7kemZmani

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() + ":" …

Member Avatar for 7kemZmani
0
834
Member Avatar for rico001

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 …

Member Avatar for balajim1980
0
128
Member Avatar for ivanCeras

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... …

Member Avatar for phpdude
0
203
Member Avatar for tinker

[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 …

Member Avatar for Airshow
0
293
Member Avatar for public-image

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 …

Member Avatar for public-image
0
152
Member Avatar for mcwebalizer

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"> …

Member Avatar for mcwebalizer
0
1K
Member Avatar for Reliable

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] …

Member Avatar for stbuchok
0
124
Member Avatar for Shizuo

[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 …

Member Avatar for stbuchok
0
60
Member Avatar for uselessninja

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 …

Member Avatar for urtrivedi
0
307
Member Avatar for astnrocker

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 …

Member Avatar for Airshow
0
184
Member Avatar for jacob21

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 += …

Member Avatar for pritaeas
0
650
Member Avatar for Lius

[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> &nbsp;<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 = …

Member Avatar for Lius
0
211
Member Avatar for dineshswamy

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 …

Member Avatar for aerofly5
0
130
Member Avatar for jacob21

[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) { …

Member Avatar for stbuchok
0
94
Member Avatar for f_atencia

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?

Member Avatar for Troy III
0
416
Member Avatar for mcwebalizer

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 = [ …

Member Avatar for Airshow
0
129
Member Avatar for geekme

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

0
77
Member Avatar for MrCapuchino

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 …

Member Avatar for MrCapuchino
0
1K

The End.