15,121 Topics
| |
Hi all, I am setting up a registration form for a website im building. When the user enters his/her information i would like to validate that the Username/Email aren't already in use. At this point in time ive got my mind set on a function that runs 2 seconds after … | |
Not mine but has been usefull so thought i would share. <script type="text/javascript"> function toggleMe(a){ var e=document.getElementById(a); if(!e)return true; if(e.style.display=="none"){ e.style.display="block" } else{ e.style.display="none" } return true; } </script> <input type="button" onclick="return toggleMe('para1')" value="Toggle"> <div id="para1" style="display:none"> blah blah blah blah blah blah blah blah blah blah blah blah blah … | |
IE9 is on the horizon, and there has been plenty said about it. But what about its web development aspects? In this article I look at its web developer tools, and decide whether I'll start using it in my own web development. Like most web developers, I abandoned IE several … | |
My team and I are tasked with making an interactive animation, that teaches college students about DNS cache poisoning, and host it on a website designed in HTML5. The interactive animation needs to be viewable with all web browsers and without requiring any plug-ins or downloads (e.g. Flash cannot be … | |
Hi I am using some code to validate uk postcode. I was wondering how I could make this work with AJAX so that the check is carried out on entry. Here is what I have so far: <form name="postcodeform" method="post"> <input type="postcode" /> Postcode<br /> </form> function IsPostcode($postcode) { $postcode … | |
Hi, I have the following HTML: <ul> <li> <div>Something</div> <ul> <li> <div>Something</div> <ul> <li> <div>Something</div> //more lists can come </li> <li> <div>Something</div> </li> </ul> </li> <li> <div>Something</div> </li> </ul> </li> <li> <div>Something</div> </li> </ul> The list can continue endlessly and the count of sublist is unknown (user defined). Is there … | |
Hi guys i have a problem here i have and input type file which will be containing an image file <input type="file" onchange="validate(this)"/> now my code below work in its extension detection but if it is invalid the input file still have i value i want it that if the … | |
Hi Guys , i started experimenting a little bit with javascript . I want a javascript dialog that ask user to delete a file.Buttons should be yes or no.The javascript should load as soon as page load **No button is used**. Can you please post a sample code for it … | |
I'm using HTML <embed> to play music in the background on a site, and I have a list of songs I'd like it to play. Is there some way to detect the end of the song and start the next? document.body.removeChild(soundEmbed) soundEmbed = document.createElement("embed") soundEmbed.setAttribute("src", "Music/"+Song) soundEmbed.setAttribute("hidden", true) soundEmbed.setAttribute("autostart", true) … | |
Hi, I am new to javascript. Syntactically, this code seems correct, but for some strange reason, it refuses to execute. I know it's bad practice to include the script within the same document, but I just want this to work. Thank you in advance. <!DOCTYPE html> <html> <head> <title> Test … | |
i m developing website everthing is ok but their is one error due which my list of category is not showing the error is below given. SCRIPT438: Object doesn't support this property or method eval code (1), line 1 character 12458 this error come in jquery file waiting for your … | |
I can't get this jQuery to work in Fire Fox. I have been told it works in Oprea and IE9. I also know it works in Chrome & Safari. // JavaScript Document $ (function () { $('#filterBox1').change(function() { // when value of filterBox1 changes var selection = $(this).val(); // get … | |
Hi, I have a desktop app in Swing. Now i want a javascript function like mailto when I click a JButton. Please help or provide any suggestion on my approach. Thanks in Advance. :) | |
I have a basic idead of jQuery and can do some basic stuff, but I can't figure out how to do the following: I need jQuery to do the following function when you SELECT an option from a form Dropdown selection... When a person selects PS3 in drop down it … | |
Hello people! I have a strange problem in the code below. It runs fine with the new value being use/displayed but on all the following executions it will onbly use the values from the first run whatever you type in. Any ideas? Thanks <script type="text/javascript"> function showEthnicityDialog(eth_desc, eth_code, id) { … | |
Hello I am learing Jquery I want to display the Text from select box using the Jquery code. When will I click option from hotel1 then only selected text from hotel1 shall be printed and when I will select any option from hotel2 then only select option from hotel2 shall … | |
I've been working on a CMS built using AJAX and PHP. Pretty much it saves everything to XML files. Everything is working perfectly except getting the root node's attributes to save. These are never brought in to edit, I don't want these visible in the CMS. So what happens when … | |
Hi all I am stuck trying to figure out the best way to get data as at the moment I have tried a few different ways to achieve this with no luck. What I am trying to do is update a block of php code that is in my sidebar … | |
I can't seems to open/run my jquery file for 3 days now and keeps me wondering what sort of my problem is. Just last week i can hover, slidetoggle, and other effects with the page i created. I presumed i'm correct with the code that i had: <script type="text/javascript" src="jquery/jquery.js"></script> … | |
I'm quite new to Javascript but thought that I should challenge myself to use it to solve an old problem of mine. I'm trying to set the height of a div to the same as the width of it. Example: The width is set to 50% and the screen is … | |
Problem: Ajax Return false is not returning false, the codes values are being put witin the address bar, and the page is being refreshed. Question: Did I put the return false in the wrong area? How can I fix this problem? AJAX $(".status_reply").click(function() { var status_id = $("input[name=status_id]").val(); var user_id … | |
<html> <head> <script> var count = 6; var time = setInterval(countdown, 1000); function countdown() { count = count - 1; var cx = document.getElementById("cdown"); if (count < 0) { count = 5 } cx.innerHTML = count; } </script> <body> <p id="cdown">5</p> </body> </html> This is a script for a count … | |
User check minimum one check box maximum four checkox javascript validation How ? | |
hey guys, I don't seem to understand why this code is throwing a type error at me. It is saying the variable is undefined. The error I'm getting is this **TypeError: datasplits is undefined datasplit2s = datasplits.split(":");** var urlphp = 'ajaxgamesperday.php?&start_date=' + startDate + '&end_date=' + endDate; $.ajax({ url: urlphp, … | |
Hello, I am trying to call an audio file using the onload event. I am able to do it using the media player plugin but I need to be able to call it without the use of a plugin and have play directly in the browser. I think the <audio> … | |
*i Have written 2 php codes and one js thata are shown above. The first code selects the categories of the table and by selecting the category i want to let me select one of the product for example of the selected category. The result of these codes is by … | |
I have to live with a javascript gizmo on my pages. I've edited it's background color to better suit my html / css, but I'd really like to make the background transparent. I'm revising my html to use far fewer images, and more css, so I have to update the … | |
hi, how to include a java script file or how to create a java script file in eclipse thanks for your time | |
I'm creating a web page that will have software information on: basic description, operating system, free/commercial, etc. All the content will be placed (or generated) on one page. Dropdown filters at the top of the content will allow someone to select a "filter" (i.e. Windows) and it will auto remove … | |
Hello friends, I have a background image in body. What i want to achive is that 1)- calculate the visitor screen resolution. 2)- based on that resolution i want to resize my background image. Can anyone help? Looking for quick response. Thanks and regards navi |
The End.