jquery x 2,329

20,316 Topics

Member Avatar for
Member Avatar for lps

I am using a acript to control the input field of my page where it can enters numbers only in telephone field. Can anyone help me on how to modify the code to allow a symbol '+' ? [CODE] <script> function zz(txt) { var txt1 = txt.value.replace(/[A-z]/g, ""); document.getElementById('aa').value = …

Member Avatar for urtrivedi
0
128
Member Avatar for uselessninja

hello everyone .... i have a submit form (number to word converter) .... my problem is when i clicked a my submit button it will not work ... "but" when i duplicate my form it WORK.. i wonder why...btw this is my code: (dont mind my coding hehe )... <html> …

Member Avatar for uselessninja
0
208
Member Avatar for Shizuo

heres my script [CODE]function count_chars(tarea) { if ( document.getElementById("checkchars").checked ) { x=document.myform.tarea.value; document.myform.charcount.value=x.length; } else { var x ; x = document.myform.tarea.value.replace(/\n/g,''); var y = x.split(' '); document.myform.charcount.value = x.length - ( y.length - 1) ; } } function count_words(tarea) { var y=tarea.value; var r = 0; a=y.replace(/\s/g,' '); a=a.split(' …

Member Avatar for urtrivedi
0
102
Member Avatar for Member #593255

hello, I have a DB table with records that have connection to one another. sort of like object a comes before b, and object c comes after c. table1- [U]Id, pre, post[/U] I have all the connections in the DB, what I'm trying to do is to make some sort …

Member Avatar for urtrivedi
0
139
Member Avatar for come_again

Hello everyone, I am trying to write a simple web application where I have a mySQL table. I am using drop down menus to select options on how to filer the table.... i.e. select the subject, filter the table for just that subject and continue on. Anyways I'm trying to …

Member Avatar for come_again
0
207
Member Avatar for san-biegwenja

Hi all I m facing a proble with a proble, can any one please tell me code to show hostname? thanks

Member Avatar for Airshow
0
43
Member Avatar for Nollyvenon

I designed an invoice system that add rows automatically and computes the results, print it in another file that can be downloaded by other users.can i get help on how to multiply the price and quantity to get amount? this is my code: <SCRIPT LANGUAGE="JavaScript"> function showamt() { //var unitprice …

Member Avatar for utpal23
0
4K
Member Avatar for woolm110

I've created a toolbar in html that displays a series of icons that act as link to perform a variety of different functions. (the links aren't fully live yet but they will be!). I need to take this html and turn it into a bookmarklet so upon clicking the bookmark …

0
159
Member Avatar for MrCapuchino

Hello, I have a dropdownlist populated with a datasource control, but I want to add an option to the dropdownlist client side that appears on top of all the databinded options. Right now I can do it but it appears at the bottom, how can I tell the new option …

0
86
Member Avatar for sid78669

I have the following code I am using to writing and reading cookies: [code=Javascript] //Get Villages from cookie function getVillageFromCookie(villageCount) { var currentVillage = -1; var villagesCookie = getCookie("tw_ratio_villageCount"); if (villagesCookie!=null && villagesCookie!="") { currentVillage = villagesCookie; } else { storeCookie("tw_ratio_villageCount", villageCount, 1); currentVillage = 1; } return currentVillage; } …

Member Avatar for Member #905211
0
199
Member Avatar for Shizuo

a javascript that count the number of words,lines,letters, spaces,special characters, vowels,consonants, sentence in a textarea I'm really noob in javascript but I do have an idea for counting words and letters

Member Avatar for urtrivedi
0
80
Member Avatar for tnjiric

Hi, I'm currently a student of the Senior Year at RIT Information Technology. I'm working alongside my studies as a TA on my college for classes: Programming in Java I, II, II, Computer System Fundamentals, Intro To Networking and Programming in Perl. During the summer I work as a PHP, …

Member Avatar for tnjiric
0
195
Member Avatar for Mona Ali

Hi i have made a web page in html in which i want as user enters his data and press a button load then computers MAC id,CPU id and Motherboard id is automatically inserted in the check boxes.if u have any idea how to do it then tell me This …

Member Avatar for urtrivedi
0
603
Member Avatar for sid78669

I have the following HTML in a webpage that I want to mine for data: [code=HTML] <td id="topdisplay" class="menu-item"> <div class="bg"> <a href="/game.php?village=55303&screen=ranking">Ranking</a> <div class="rank"> (4<span class="grey">.</span>120.|2<span class="grey">.</span>124 P) </div> <table class="menu_column" cellspacing="0"> </div> </td> [/code] I want to get the data inside the rank class and get the numbers, …

Member Avatar for sid78669
0
136
Member Avatar for Lius

[CODE]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> <html> <body> <?php include ("db.php"); $now=date("Y-m-d",time()); ?> <? if($_REQUEST['action']=="del") { mysql_query("DELETE FROM temp WHERE t_no={$_REQUEST['id']};"); } ?> <table border="0"> <tr> <td>No.Faktur</td> <td><? echo "$no";?></td> <td></td> <td>Tanggal Order</td> <td><? echo "$now";?></td> …

0
155
Member Avatar for charvie

I don't know what's the problem with this code. I've tried it on chrome and it worked. but in IE it isn't Jquery code [CODE]$().ready(function() { $("#loc").autocomplete("database.php", { width: 260, selectFirst: false }); });[/CODE] HTML code [CODE]<label>Location</label> <input type="text" id="loc" /> <h3>Result:</h3> <ol id="result" style="border:1px solid red;"></ol>[/CODE] PHP code [CODE]$term …

0
67
Member Avatar for 080346

i have a website at localhost yet :) where user upload swf file and it is shown to him. i want to extract all the jpg and png images from that swf file .... Any suggestions or solution please.... Much obliged

0
63
Member Avatar for apanimesh061

[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> <title></title> <script type="text/javascript"> i = 0; function changeimage() { images = new Array("1.png", "2.png", "3.png", "4.png"); if (i<images.length) { document.getElementById('myimage').src = images[i]; } else { i = 0; document.getElementById('myimage').src = images[i]; } i++; } </script> </head> <body> <script …

0
83
Member Avatar for newbie14

Dear All, I have a page here [url]http://183.78.169.53/tm/addAssign.php[/url]. You can select a value from the dropdown list and you will get a list of configurations with the word "Select". If you click on the "Select" word you will get a pop-up value with a list of checkboxes. So what I …

Member Avatar for almostbob
0
179
Member Avatar for sean6219

Hello,I tried to make a blog and I inserted a horizontal drop down menu into my blog.However,when I do so,the content slider sort of splitting out and it dropped into my post section.I was told by the people from here that this problem is caused by some javascript problem.Can you …

Member Avatar for sean6219
0
160
Member Avatar for extemer

how i will change datepicker format to mm-dd-yy i have change it but while i post it post 00-00-00 here is my code please some one help me.... [CODE] <script> $(document).ready(function() { $("#admission").datepicker({dateFormat: 'mm-dd-yy'}); // String date = dateFormat.toString('dd-mm-yy') }); </script> [/CODE]

Member Avatar for almostbob
0
61
Member Avatar for devinodaniel

Hey folks. Out of necessity (and against web standards, I know) I must have two div with the same ID on one page. I'm trying to dynamically update a database with Ajax and update this div with that info. But when i go to update the second divd (with the …

Member Avatar for Airshow
0
246
Member Avatar for Luckychap

I have seen many beautiful clocks using images and and canvas and flash. So I thought of developing one with pure HTML,CSS3 and javascript, no images at all. This clock can be completely design using CSS. A brief description of Javascript used:- 'AnalogClock' is the name of the class which …

Member Avatar for Luckychap
0
499
Member Avatar for vizz

Here is my code for simple modal box I want to use [COLOR="Red"]'easeOutBounce'[/COLOR] easing effect of [COLOR="red"]jquery.easing.1.3.js[/COLOR]. How to bounce modal window while opening and closing? Please help For jQuery Easing Effects [URL="http://ralphwhitbeck.com/demos/jqueryui/effects/easing/"]http://ralphwhitbeck.com/demos/jqueryui/effects/easing/[/URL] [CODE] <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <title>Modal …

Member Avatar for vizz
0
214
Member Avatar for MrCapuchino

Hi, I have an asp.net page which loads through ajax results from a query to a database, when te page loads it actually does this through jquery, so basically the page loads and then through jquery I go to the database get some results and fill a div with them. …

Member Avatar for MrCapuchino
0
315
Member Avatar for neocyb

I'm using mootools-core-1.3.2.js to hide/show a div tag. Now what I want to do is : * slide the div tag away (done and works); * get the value from the "horizontal_status" and put in in PHP var to toggle something else Here's the javascript code: [CODE] <script type="text/javascript"> window.addEvent('domready', …

Member Avatar for neocyb
0
281
Member Avatar for devinodaniel

I have an INPUT box that the user will put their Mac Address into. I'd like to have the INPUT box automatically insert the :'s every two characters. So they would be able to type in the box "001ff3bdf27c" and upon clicking out of the box (or moving on to …

Member Avatar for Airshow
0
5K
Member Avatar for AngelicOne

I'm having a hard time validating a checkbox. How to do it? This is my checkboxes input [CODE] <input type="checkbox" name="topic[]" value="HTML"/>HTML<br/> <input type="checkbox" name="topic[]" value="XHTML"/>XHTML<br/> <input type="checkbox" name="topic[]" value="CSS"/>CSS<br/> <input type="checkbox" name="topic[]" value="JavaScript"/>JavaScript<br/> <input type="checkbox" name="topic[]" value="XML"/>XML<br/> <input type="checkbox" name="topic[]" value="PHP"/>PHP<br/> [/CODE] I would like to check whether the …

Member Avatar for AngelicOne
0
122
Member Avatar for lloydsbackyard

in my address bar...i have this... [url]http://localhost/studentaccount/subject_infos/edit.php?subj_id=CS106[/url] the next step is to click update button...for update of records... how do i change it to, [url]http://localhost/studentaccount/subject_infos/edit.php?update=true[/url] or simple remove the subj_id=CS106 to come up with [url]http://localhost/studentaccount/subject_infos/edit.php?[/url] my part of my code is: if (isset($_POST['update'])) { echo "successfully updated!"; //code for removing …

Member Avatar for lloydsbackyard
0
138
Member Avatar for MrCapuchino

Hello, I cannot find the problem with my code to be able to populate a dropdownlist based upon a previous dropdownlist selection. Here is all the necessary code HTML [CODE] <div class="control"> <asp:DropDownList ID="ddlEstado" CssClass="ui-state-default ui-corner-all filterDropDown" runat="server" DataSourceID="sdsEstadoDDL" DataTextField="nombre" DataValueField="nombre"> </asp:DropDownList> <asp:SqlDataSource ID="sdsEstadoDDL" runat="server" ConnectionString="<%$ ConnectionStrings:QMPConnectionString %>" SelectCommand="EXEC Catalogs.sp_ObtenerEstado"></asp:SqlDataSource> …

Member Avatar for MrCapuchino
0
165
Member Avatar for Punny

Can I use JavaScript on MYSQL? If so, do I keep using the old JS or move on to wxJavaScript? What is wxJS? I read it somewhere on-line and never fully understand any of it. Is studying PHP worth it after I finish doing JS? My goal is to make …

0
82
Member Avatar for Punny

Its my first time using JavaScript I'm trying to make the utctime and localtime to appear, but its not showing what did I do wrong here? [url]http://i53.tinypic.com/358a22w.png[/url] My work [CODE]<HTML> <head><title>Displaying Times and Dates</title></head> <body> <h1>Current Date and Time</h1> <p> <script language="JavaScript" type="text/javascript"> now = new Date(); localtime = now.toString(); …

Member Avatar for Punny
0
213
Member Avatar for zizuno

I am planning on writing a website that retrieves information from websites that require logins. Originally my intention was to AJAX most of it so I could provide the information in nearly realtime but the problem lies in browsers not allowing cross domain requests. So I considered YQL but then …

0
59
Member Avatar for oggiemc

Hello all..Im trying to integrate CKEditor into my drupal site..The problem is i cant seem to get the form plugin on the toolbar..Can someone tell me how to enable it? I thought it would be enabled by default? Thanks

0
65
Member Avatar for altarek

Hi I have dropdown menu have folders name like this <select id = "menu1"> <option>aaa</option> <option>bbb</option> <option>ccc</option> </select> and each folder has subfolders I want when change (menu1)has subfolders of each folder at another dropdown I don't know how to open the folder and have subfolders already I get the …

Member Avatar for Member #905211
0
62
Member Avatar for ghosh22

Hi..I am a newbie in JavaScript.I have two forms (in two different webpages) all with radio buttons. A user cannot select more than one option from each form. My plan is to pass the user input from both the forms to a perl script which would then query a MySQL …

Member Avatar for Arkinder
0
102
Member Avatar for mwenyenia07

i am new to javascript and jquery. i want a code that can load images from file, then display them one by one repetitively and randomly and possibly a text alongside each signifying something-what you call flash animation

Member Avatar for Arkinder
0
86
Member Avatar for geekme

How to link two html pages? If we use <a> then what do wr give value to href?

Member Avatar for urtrivedi
0
155
Member Avatar for muppet

I'm running a webpage dashboard on a TV on the production floor of our factory so workers can see their live uptime, scrap etc. I need the page to refresh when new data is available. I want to load a page in a hidden iframe every x seconds, if the …

Member Avatar for muppet
0
185
Member Avatar for sagive

Hey, i have created a drop down menu that give me hell and refuses to work in internet explorer.. Can anyone find the error? (its a wordpress website) [B]Here is the menu itself (as i say.. wordpress):[/B] [CODE] <div class="topmenu"> <ul id="nav"> <li id="home" <?php if(is_page('home')){echo "class=current_page_item";} ?>><a href="/index.php">דף הבית</a></li> …

Member Avatar for Member #905211
0
189
Member Avatar for Hani1991

Hello Whats the use of var in classes? is it a function to define variables? I tried using a variable in class without write (var) before it and it works what is it???

Member Avatar for Member #905211
0
70
Member Avatar for Pro2000

Hello everybody.. Does anybody know what's the use of the execCommand() function?? Also, is it used to add tags in textboxes?? Thanks beforehand.

Member Avatar for Member #905211
0
144
Member Avatar for vgkarthi

how to get DWR readyState as in AJAX. I am using Springs. Problem for me is sometimes the Flow continues even before Ajax values being returned and hence ends up in some error. If I can get the readyState, then i can check whether it is 4, so that I …

Member Avatar for Member #905211
0
119
Member Avatar for Nollyvenon

I designed an invoice system that add rows automatically and computes the results, print it in another file that can be downloaded by other users.can i get help on how to multiply the price and quantity to get amount? this is my code: <SCRIPT LANGUAGE="JavaScript"> function showamt() { //var unitprice …

0
194
Member Avatar for abhi10kumar

I want to wait current page with a certain period of time and then redirect onto another. Example: wait for 15 seconds and then redirect [url]www.google.com[/url]

0
94
Member Avatar for astnrocker

I am trying to get the total of the checkboxes selected when the user clicks the "calculate total" button. It isn't working though. What am I doing wrong? [CODE]<html> <head> <script type="text/javascript"> function calculate(f) { var nums = f.num; var ntext = f.numtext; var nitem = f.numitem; var result = …

Member Avatar for astnrocker
0
134
Member Avatar for bhagawatshinde

Hi, I am trouble to sort out the error when i am opening a website [url]www.lsoft.co[/url] in a webbrowser it shows me script error like script error ! an error has occured in the script on this page line: 86 char: 3 error: object expected code: 0 url: [url]http://lsoft.co/[/url] do …

Member Avatar for bhagawatshinde
0
184
Member Avatar for z.cristiano

Hello, i have create e form with ajax for upload file with XMLHttpRequest page.php <script> function upload() { var file_upload = document.form1.file_upload.files; /* if(xmlhttp5.readyState == 1) { alert("Attendere!"); } else */ // code for IE7+, Firefox, Chrome, Opera, Safari if(window.XMLHttpRequest) { xmlhttp5 = new XMLHttpRequest(); } else { // code …

Member Avatar for Member #905211
0
134
Member Avatar for Moss ali

i am working in a form where i have used some javascript alert Popups before using <asp:updatepanel /> the java script was working fine but when i applied the updatepanel the java script popups are not working plz help me out.

Member Avatar for hericles
0
103
Member Avatar for palsoft

Hi, I have PHP script which is calculating some Google Maps API functions in Javascript and then sending output back to PHP. My biggest problem is, that i need it to run at intervals, but AFAIK cron can't handle javascript I've tried a little workaround - setting cron which sends …

Member Avatar for palsoft
0
2K

The End.