15,120 Topics
| |
I'm working on a form and I'm wondering if its possible to have multiple enable / disable functions? I'm looking to have a drop down menu, file upload box (with button), and 2 buttons by themselves disabled when the page loads.. I then want a check box to be clicked … | |
Good day... I am new to javascript... I created a simple validation using javascript alone.but my problem is when I press enter the browser aumatically refresh.. this is my code js code.. [CODE]var validid=false; var validname=false; var validaddress=false; var validzip=false; var validemail=false; function idiit() { var uid = document.form1.userid; var … | |
i have a data entry form in which i need to look-up to another page hence the pop-up page which contains a table from the database with a column named checkno. now from the main form i will clicked a button then it will display the popup page(i have already … | |
This is hopefully my last jquery question. I have a slight issue with my buttons and dropdown menu. What happens is lets say user chooses option type "ABCDE" in first dropdown menu and then second dropdown menu chooses the value "4" for the number of answers and then clicks on … | |
any idea on how to make table in javascripts? its like the system will ask the user how many rows and columns he wants and it will input in to multiplication table | |
Hello i just want to ask you guys if you can help me with this problem: I need to write an javascript that writes out chess board like table, and that table must include onclick function that changes background color of that cell that is clicked on. I would really … | |
Hello, I'm creating a blackjack game,and would like the function cardToString to return the file name of a card e.g "AceDiamonds.gif" and fill an array called deck,its only returning one card and not filling the array thank you in advance [CODE]<script> var dealer_hand = new Array(); var player_hand = new … | |
I have a two dropdown menus, the second drop down menu appears depending on what is selected in the first dropdown menu. Problem is that in some browsers, if something is selected in the first dropdown menu, then if I click on the second dropdown menu then a dropdown does … | |
I have two dropdown menus. 1st -> Drop Down Menu (name="optionDrop") has 5 values which are "ABC", "ABCD", "ABCDE", "True or False" and "Yes or No". 2nd -> Drop Down Menu (name="numberDrop") has 5 values which are "","1", "2", "3" and "4". Now this is what I want to achieve: … | |
I will try to explain as simple as i can [B]head section[/B] <script type="text/javascript"> function randomnumber() { document.forms[0].randomnumber.value=(… } onload=randomnumber </script> [B]body section[/B] <div class="ss-item ss-text"><div class="ss-form-entry"><label class="ss-q-title" for="entry_13">Booking ID </label> <label class="ss-q-help" for="entry_13">To trace ur record</label> <input type="text" name="entry.13.single" [COLOR="Green"][B]value=""[/B][/COLOR] class="ss-q-short" id="entry_13"></div></div></div> the normal way to see my random … | |
I need to use Jquery $.ajax() function in order to represent JSON objects in HTML page. JSONs are on a url: [url]http://aaa.aaa.aaa.aaa/demo/example.php[/url]. That is a string of json objects. Please if you have any solution it would be more than helpful. THANKS!! | |
[CODE] function isValidURL($url){ return preg_match("^([\d\w-.]+?\.(a[cdefgilmnoqrstuwz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvxyz]|d[ejkmnoz]|e[ceghrst]|f[ ijkmnor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrst uvy]|m[acdghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eouw]|s[abcdeghij klmnortuvyz]|t[cdfghjkmnoprtvwz]|u[augkmsyz]|v[aceginu]|w[fs]|y[etu]|z[amw]|aero|arpa|biz |com|coop|edu|info|int|gov|mil|museum|name|net|org|pro)(\b|\W(?<!&|=)(?!\.\s|\.{3}).*?))(\s|$)^", $url); } [/CODE] Hi! Anyone knows what's the exact equivalent JAVASCRIPT code for the above PHP code? THANKS! | |
Hello everyone, I am very new to asp.net and asp.net mvc as well. I am stuck with the following problem please help. I have the following javascript [CODE]<script type="text/javascript"> var allMarks = []; google.load("maps", "2"); var geocoder; var lat; function initialize() { var map = new google.maps.Map2(document.getElementById("map")); map.setCenter(new google.maps.LatLng(37.4419, -122.1419), … | |
Hello, I am new to javascript. I am trying to get the cell values of a html table in the following way, but I am not able to increase the variable dynamically! Does any one see where is my problem Sorry for my english!! [CODE] function validateRow(frm) { var oTBL … | |
Hi Expert, I'm currently using the javascript as follow to display a greeting message based on visitor's location, as follow: [CODE] <script language="Javascript" src="http://www.ip2phrase.com/ip2phrase.asp?template=<CITY>, <COUNTRY><FLAG> - Welcome to my site!"></script> [/CODE] from [URL="http://www.ip2phrase.com"]http://www.ip2phrase.com[/URL] It works, but now i would like to have the auto translation for the phrase "Welcome to … | |
I'm sure this has an easy answer, but I don't know it. so I have a widget that will let you get alerts texted to a phone. I am trying to store the info, but I can't get the user's input into my javascript function shown below: [CODE]onClick="collect('info', 'nname=' + … | |
Hi all, I am completely new to Ajax, I need to create Telephone directory. Telephone numbers and phone are in database, I designed UI like two text boxes for search by name search by number. I have one div which displays the search results. It is a J2ee application, I … | |
The JavaScript logics below doesn't display the value from the demo_get.txt in ajax.html. Did I do something wrong? [U]ajax.html[/U] [CODE] <HTML> <HEAD> <script type="text/javascript"> function ajaxRequest(){ var xmlhttp; if(window.XMLHttpRequest){ xmlhttp = new XMLHttpRequest(); xmlhttp.open("GET","demo_get.txt",false); xmlhttp.send(); document.getElementById("panel").innerHtml = xmlhttp.responseText; }else{ xmlhttp = new ActiveXObject("Microsoft.XMLHTTP"); xmlhttp.open("GET","demo_get.txt",false); xmlhttp.send(); document.getElementById("panel").innerHtml = xmlhttp.responseText; } } … | |
suppose i have div which has a class called "suf-text", and there could be other class names like "suf-gang", "suf-hub" .. so on.. i want to trigger an onclick even on these divs. i actually don't know how to do it.. would following do? $('body').find() but does find() need an … | |
Hi, Im having difficulty getting my form contents to send to my php page using ajax, jquery and json. The results just doesnt want to show. My javascript, where I create the JSON object and try to send it through to the php page: [CODE] var JSONobj; var JSONstr; function … | |
In this code i want to pass all the three red color code textbox value to a javascript function and print there. <?php $userid="123456789123456789"; $con = mysql_connect('localhost', 'root', ''); //Update hostname mysql_select_db("video_upload", $con); //Update database name //echo "--------".$viewall = $_GET['viewall']; //Display image $rs=mysql_query("select * from video "); while($row=mysql_fetch_array($rs)) { echo … | |
Hello, Check the code is given below:- [CODE]<ol style="font-family: Arial; font-size: 12px; text-align: justify; width: 486px; line-height: 20px;"> <li><a href="#A" onclick="javascript:document.getElementById('A').style.display='block'">A</a> </li> <div id="A" style="overflow: auto; height: 100px; width: 500px; display: none; background-color: #e0eeee;"> <p style="font-family: Arial; font-size: 14px; text-align: justify; line-height: 20px; color: #700000; text-decoration: none;"><a name="A">A details</a></p> <ol … | |
Hi, I have javascript which counts seperately every time 2 seperate buttons are clicked, this then outputs the amount on the same page. This works, however I am now trying to add a third value to output on the page which is the total of the clicks which i would … | |
I would like to place a footer at the bottom of my DHTML web page. The simple footer tag doesn't do what I want because the text in the footer is simply placed underneath the current text on the web page. What I want s for the footer to stay … | |
Here is one code of php 2 dropdown and one button i down want button, and use ajax in dropdown..... how can i do it? <?php require_once("includes/ReadAllXML.php"); $to_plaza_poi = array(); $from_plaza_poi = array(); $hasMessage = false; $row1 = ""; $row2 = "0.00"; $row3 = "0.00"; $fromPost = ""; $toPost = … | |
How can I execute this: From the dropdown list build up from mysql database (say a list of fruits). I select "Add New Fruit". This triggers it to either have a modal form to add new fruit or a table form. Once submitted, Select dropdown list RELOADS including the newly … | |
Hello I am developing a website using ajax, php,javascript and html for a grocery. Product code is entered in a textbox 'txt_code' and upon clicking on 'Retrieve' button, the product details, quantiy and price is dispalyed(this is an ajax code). The product price, product code and product descripion are retrieved … | |
Hi, anybody tell me how to display alert message which is in utf-8 format. Thank's in advance. | |
Hi, I want to call java function in javascript. In which we pass one parameter to function and its returns String value which I want to display in alert message. So please help me..... Thanks in advance | |
Hey, I have the following code: I am trying to make it so when you tick the box it changed the result to what you clicked, then if you untick it it changes the result back... There will be multipal tick boxes on a page... Here is my code... [CODE]<script … |
The End.