15,688 Topics
![]() | |
Hi there, Script to show on the web page that how many times user loaded it or refresh it. the counter restarted from 0 on closing the browser and open it again. any help here will be appreciated. Thanx ![]() | |
why isn't this working? [CODE] $('body').find(".overcolor").click(function(){ alert("hi"); }); [/CODE] ![]() | |
I had a given a assignment of java script as to form a script that changes the background image of the document after equal interval of time.as i am a beginner to programming I had formed a script that should change background and a loop stated for image name to … | |
hey i'm trying to make a traffic light that when the mouse rolls over a certain light the colour will show. then if the light is clicked the colour will either turn on or off... this is what i have so long. [CODE]<html> <head> <style type="text/css"> #trafficLight { border:1px solid … | |
Hi All, Hope your all well Im really new to the world of JSP & AJAX, my question is, I need to retrive names from a database and present them to a user on a JSP form, but I shouldnt show any database interaction on the client end, So as … | |
I have a spinner where user enters in their value or uses the buttons to increase or decrease the value. When the user is happy with the value in the spinner the user submits the value. The value would then appears in another table inside a textbox. What my question … | |
how to find elements which has text and a "-" using find() ? | |
i wrote this code but noting happens.. can't find the error. even firebug is empty :( please help soon! [CODE]$(document).ready(function(){ $.ajax({ type: "GET", url: "tinymce.xml", dataType: "xml", success: function(xml) { $(xml).find('userdata').each(function(){ $(this).find('dataset').each(function(){ var title = $(this).find('redo').text(); var id = $(this).find('redo').attr('id'); //var url = $(this).find('url').text(); alert(id); //$('<div class="items"></div>').html('<a>'+title+'</a>').appendTo('#system'); }); }); } … | |
Hey Guys, I have an issue with my checkbox and the values that are posted to the next page. The issue is that each time the checkbox is clicked it just adds another value. example - if i check it and uncheck it and check it again i will get … | |
I have a switch function with four cases: each case executes a sequence of six css changes. How to stop it, if the viewer wants to abort, by choose another menu option? I've done a trawl, and the closest I've come to finding something which could be adapted is from … | |
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" … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … ![]() | |
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), … |
The End.