15,113 Topics

Member Avatar for
Member Avatar for carlbrooks

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 …

0
68
Member Avatar for carlbrooks

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

Member Avatar for Airshow
0
210
Member Avatar for aa26i

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 …

Member Avatar for aa26i
0
215
Member Avatar for cacolukia

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

Member Avatar for McLaren
0
64
Member Avatar for tinker

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

Member Avatar for McLaren
0
127
Member Avatar for manugm_1987

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), …

Member Avatar for manugm_1987
0
1K
Member Avatar for dan420

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 …

Member Avatar for dan420
0
143
Member Avatar for chrislim2888

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 …

0
98
Member Avatar for FALL3N

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

Member Avatar for niranga
0
190
Member Avatar for anand01

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 …

Member Avatar for anand01
0
125
Member Avatar for solomon_13000

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; } } …

Member Avatar for stbuchok
0
182
Member Avatar for Virangya

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 …

Member Avatar for Airshow
0
265
Member Avatar for Mbot

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 …

Member Avatar for Airshow
0
2K
Member Avatar for shubh2488

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 …

Member Avatar for skraps
0
774
Member Avatar for harsha.netpem

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 …

Member Avatar for stbuchok
0
4K
Member Avatar for jaylb

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 …

Member Avatar for niranga
0
158
Member Avatar for raheel_88

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 …

0
110
Member Avatar for vikassoni1033

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

0
48
Member Avatar for arnoldporche

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 …

Member Avatar for niranga
0
38
Member Avatar for BenNoush

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 …

Member Avatar for niranga
0
192
Member Avatar for himmat.m4

Hi, anybody tell me how to display alert message which is in utf-8 format. Thank's in advance.

0
44
Member Avatar for himmat.m4

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

Member Avatar for himmat.m4
0
64
Member Avatar for Danny159

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 …

Member Avatar for Danny159
0
214
Member Avatar for rakwel10

[IMG]http://i1235.photobucket.com/albums/ff429/rakwel10/pix.jpg[/IMG] The picture above may not be that clear but this is my website created in Wordpress. As you can see, the slideshow is messed up. When the first slide will show up, the next slide is showing too under the first slide. When I try to zoom out the …

0
95
Member Avatar for thomas6188

was trying the drag and drop feature in html5. I have three blocks(boxA,B,C). Items are moved from box A to B or C. The problem is [B]when i move items from A to B, Box A doesnt retain the object [/B](instead of copying, it just moves the object). I have …

0
95
Member Avatar for manjushreekaran

hello all, after tried so much now posting here. i have two programs sql.php and form.jsp. i want to do insert values into mssql database from user input form. sql.php is able to insert the values into database. i have connected database using ODBC.form.jsp is able to give user input …

Member Avatar for peter_budo
0
298
Member Avatar for riahc3

Hey Ive been given a JavaScript program (with embedded in a HTML) with several (from what Ive seen) free libraries. For example: excanvas.js jquery-1.6.4.min.js prototype.js colorpicker.js This JavaScript program (using those and other free libraries) to draw something like this: [img]http://img339.imageshack.us/img339/3997/dibujoajyu.jpg[/img] As you see the dots, beside having a X …

Member Avatar for riahc3
0
163
Member Avatar for keithxm23

Hi.. I'm new to AJAX and I'm attempting to use this webservice ( [url]www.webservicex.net/CurrencyConvertor.asmx?op=ConversionRate[/url] ) in my html page. Now I've managed to make a form and stuff to correctly call the webservice, but then, I do not want the answer to be displayed as just the output xml data. …

0
55
Member Avatar for n3xtgen

I have a simple web login application that requires a user to login to view the next page. The login page is HTML and when you click "Login" is goes to a PHP page to check the SQL Database. If it succeeds it goes to another HTML page. I want …

0
88
Member Avatar for raf.fredi

Following is my code and I'm not able to write insert query and upload file. [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=iso-8859-1" /> <title>Untitled Document</title> <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.0/jquery.js"> </script> <script src="http://cdn.jquerytools.org/1.2.6/full/jquery.tools.min.js"></script> <!-- This JavaScript snippet activates those tabs --> <script type="text/javascript"> …

Member Avatar for diafol
0
179

The End.