15,127 Topics

Member Avatar for
Member Avatar for rse

Hello, I need to show the date picker in an input field that is inside a form. I have index.php which has the code for the date picker, I just need to link it to the input field. I have the form in another file as follows: [icode] <form id="inputArea" …

Member Avatar for rse
0
213
Member Avatar for masada

Hi folks, I've been charged with coming up with a image-grid menu like what one sees here: [URL="http://www.theispot.com/dfullarton"]http://www.theispot.com/dfullarton[/URL] If you click on an image in the grid, the space just below the row opens and a div show a bio and additional images. What I'm confused about is that each …

0
50
Member Avatar for minghags

i need to sum anything that is input in input form numbers. And this has to be in order like 5,4,3 and then it has to sum like 5+4+3 = 12. Can anyone help? I came as far as the code shows above. this is the example of how it …

Member Avatar for minghags
0
377
Member Avatar for malcolm p

I included a jQuery handler for my dropdown menus so that when something is selected in the first dropdown menu, it will manipulate the options in the second dropdown menu. Now what the user does is pick the option type in the first dropdown (`OptionDropId`) menu and then in the …

0
78
Member Avatar for deshazer.jad

It makes since that, when working with javascript, document.getElementById() can't find the Id of an object that hasn't yet been added to the DOM, however when I nest document.getElementById() in a function and call it after the object has been created, document.getElementById() still can't find the object. is there a …

Member Avatar for deshazer.jad
0
163
Member Avatar for vectro

I have a block of JavaScript code that is designed to be embedded into any web page. It displays a list of items from a database. In the .js file is actually a lot of PHP code within JavaScript. The problem: The cut-n-paste widget does not actually show up. It's …

Member Avatar for vectro
0
222
Member Avatar for cheech74

I am looking for help creating a grid/table that is editable online. I have browsed online for solutions, but I am short of time & I seem to getting more confused the more I search. Basically I am trying to create a staff rota that the admin staff can edit …

Member Avatar for stbuchok
0
26
Member Avatar for d1lu5ion

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 …

Member Avatar for stbuchok
0
69
Member Avatar for lsvife

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 …

Member Avatar for stbuchok
0
141
Member Avatar for jeddsal

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 …

0
64
Member Avatar for carlbrooks

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 …

0
65
Member Avatar for emongs

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

Member Avatar for minghags
0
69
Member Avatar for minghags

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 …

Member Avatar for hiddepolen
0
275
Member Avatar for buzzykerbox

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 …

0
82
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
216
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
146
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
217
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
284
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
775
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

The End.