15,700 Topics
![]() | |
i have a form.. i validated it.. if the form has an empty field, instead of popping up an alert box, i need to display a message that goes off say after 5 seconds.. any idea of how to do it? | |
Could someone show me how to add line numbers to a sorted list? If you need the code it is under the last thread I started. I started using document.write() but every time I did this the page would erase. | |
I'm looking for a snippet of code that would let me generate testimonials, quotes or any string value randomly on a webpage. I would like for it be standards compliant, XML based(meaning I would store the testimonials in an xml file), and the less obtrusive it is, the better. Where … | |
Hi to al :)l, Hope all will be fine. I want to include a link in the alert method.I tried this [code=JavaScript] alert("Please enable your java to experience this enhanced page." + '<a href="http://www.java.com/en/download/index.jsp" target="_blank">Free Download Java</a>'); [/code] But this will not made a link it shows all as it … | |
Hello, This is Gokul Rangarajan. I need a suggestion or code in JavaScript which reads the MS Word document page settings and number of pages. I know how to open and read a MS Word document, but i couldn't able to get page properties. Some one please help me with … | |
Hello guys, is there a way to detect whether JS is enabled or not, using PHP codes? Thanks in advance. =) | |
Hi all.Am new to this forum so cut me some slack if I don't articulate my problem with utmost clarity.My problem is that I have a javascript function such as: function modReg(x,y) { <!-- var answer = confirm ("Do you really want to deregister user" +x+"?") if (answer) { document.leo["id"].value=x; … | |
Hi to all, Hope you all are fine.I have a javascript to check whether java is installed or not on your system.The code is [code=JavaScript] <body> <script language="Javascript" type="text/javascript"> if(!navigator.javaEnabled()){ alert('Enable your java to expeirience this java enhanced page or\n try install it...'); location.replace('http://java.sun.com'); window.open('instructionsforintallingjava.html'); } else{ document.write('<applet watever></applet>'); } … | |
New to JavaScripting and copying information out of a book. I understand the concept of the code but I do not know why it is not working. I can type info in both boxes but the information does not add. Tried it in three browser FF, IE, and Chrome. [CODE]<html> … | |
Ho, I am building a large registration form. In this form, a sponsor/educator must register himself or herself and then may add up to 6 more " delegates" in pairs. The first two pairs registration info on the form is shown by default. I need to hide the other two … | |
When I looked at Get started tutorial at Jquery.com I thought that it took more code in the Get started tutorial then it would just writing it myself. I really did not see any pros so I am asking this question. What are some advantages Jquery has? I just want … | |
I have this script: [url]http://snipplr.com/view/19692/g-or-y-search-hilite/[/url] but it won't search for chars like ')' . How should I adapt it? Thanks. | |
Im having a problem trying to combine a datepicker with a form that is displayed with a lightbox. With out the lightbox effect, the form works with the datepicker. when the lightobx effect is implemented, the datepicker will not work. below is the code for the form with the date … | |
Hi all , I have to sort a table where few columns are dynamically generated .I searched the net and came out with sorttable.js included in my jsp file . then called this function in <body>onload event as initTables('id_of the table"); It was working out for me.. But with some … | |
hello all, i am new to ajax.. unfortunately, i was given an assignment before i complete ajax.. i need help, someone pls direct me where i can learn to solve the following thing!! Consider a web page has 3 frames, the top has the header, the left has the actions … | |
Hi this function is to add a Note to the database. Now I want to remove the Note when there is no text available in the Note. I am unable to delete the row from the database and so the next time when the page loads the Note reappears. Kindly … | |
Hi there, Can some one help me with the following problem. I need to pass the date to 2000-02-02 date format so that mysql will accept it. The following code is as follows; [CODE]function checkdate() { var begDate = new Date(document.demoform.now.value); var endDate = new Date(document.demoform.later.value); var difDate = endDate.getTime() … | |
Hi, iam a Bebo application developer, and iam posing a security issue with Firebug on my bebo application (an online game) online. The users are using firebug to cheat the game, and its driving me nuts. I see that Bebo uses SNJS as its javascript, and a normal javascript will … | |
Hi and I have been looking around and found that google has a few search api's but haven't yet found one that returns the results as a javascript/ajax array. Is it possible to at least get the google api to send the results to my website as a variable/array in … | |
using ajax/javascrtipt, how to browse for a folder and get *.xml files in the given folder path.?? :?: | |
how to parse an xml file using ajax and javascript? i know this is basics.. but couldn't get it the right way. could someone help me out.. | |
I need to rotate text by 90, 180 and 270 degrees. How can i achieve this in firefox2. In brief, what i am doing is, there is one main container div whose background is set by 600x400 image. There are 4 inner divs each having some text. Now i have … | |
Ok so I have two separate AJAX function that I want to combine but have no idea how. The first 2 files are to call up a table with cells in the form of text-boxes, and the last 2 files are linked dropboxes. What I want to do is to … | |
Back even a few years ago, it was popular to use log files to ascertain web analytics. Now, most companies use a javascript tag that the web analytic tool picks up. Hence, do you still rely on logfiles? Or do you forget it even exists? | |
is it possible to run a command in javascript when someone paste text into a textarea? What i am trying to do is make a remove format command in the text editor run when they paste. And if it is possible make it run the command on the text without … | |
im busy with a school project to create a photo viewer type site with java script. the whole thing i being created from java script and im giving all the img's an ID tag how do i go about getting the id of the img that i have just clicked. … | |
hi i don't know it is wright place for it or not. i am new in javascript programming. i am try to implement find and replace functionality. in it i want to search keyword in particular div only. not other part of the page. i have implement following code function … | |
[QUOTE]I'm currently using prototype framework to validate whether or not a field is has data. When the field is empty and the user hits the form submit button the intended alert message box comes up, but after you hit OK on the message box it submits the form anyway, which … | |
Hi guys, I have a coding problem here that I can't quite figure out. For a clothing website I need to display stock information for each product related to colours and sizes available. I'm using a mysql database to store information on what sizes and colours are available. The structure … | |
Hello, please help me with following jQuery code. I'm javascript user only and I don´t understand it :( I use jQuery validate from [URL="http://bassistance.de/jquery-plugins/jquery-plugin-validation/"]http://bassistance.de/jquery-plugins/jquery-plugin-validation/[/URL] Following part of code is modified for array form. It works great for array in format: example[] . But I need use array: example[$i][quantity]. [CODE] //modified … | |
some body help me.I want to know how to put the dropdown list from database at my textbox cursor. full problem definition is like this. I want to create a Hint system for SQL which will give the structure of of Query. for example if user enters trigger he will … | |
my comments table <div id="1"><p>the comment</p> <a class="edit" id="1">edit</a> </div> i want when click on edit the textarea appear and save and calcel boton appear too and edit it | |
Hi All. I'm Developing on One project that Contains Just One Page(home.aspx) ! Home.aspx Contains ScriptManager , UpdatePanel ( A Div , Some LinkButtons that Load related UserControl ) in UpdatePanel. Other pages are UserControls(UC) that Load in a div placed in Home.aspx . Some user controls Contains javascript Codes … | |
I have the following PHP code, which uses server-side validation, which works fine. It the user leaves the text field empty it stores an error in a session array which is outputted on the page where the $_GET['id'] variable came from. I also implemented a snippet of javascript code that … | |
Hello I'm using this code I got from an example: [ICODE] <head> <TITLE>Creating a link</TITLE> <SCRIPT LANGUAGE="JavaScript"> <!-- function createLink() { var szURL = prompt("Enter a URL:", "http://"); if ((szURL != null) && (szURL != "")) { document.execCommand("CreateLink",false,szURL); } } // --> </SCRIPT> </HEAD> <BODY> <H1>Creating a link</H1> Here's some … | |
I want to know how the integrated chat service on orkut pops up automatically. Is Orkut using javascript to call that service. The html source of the chat service and the page on which it appears is different. Then how is it possible to have two pages with diff. source … | |
Hi I am using the css image gallery I got from: [url]http://www.dynamicdrive.com/style/csslibrary/item/css-image-gallery/[/url] I want to change the behaviour, currently an image is enlarged when a user hovers over the link/thumbail. I would like to change it so that the main image is instead shown onclick of the thumbnail, and remains … | |
hello friends, i am searching a ajax captcha from some time which have following properties, - intimate user for wrong verification code without refresing ... 2ndly - if the user enters the right code, it process the form normally. unfortunately i could not find reqired script. please help me any … | |
![]() | Hi, I was wondering if there's a framework that can help me with the following: I currently have regex checks on html input fields that work 100%, I would like to also have a check to the database for duplicate records so that if the user enters an ID that … |
Javascripts that I find on the net sometimes have pop up messages as part of the app / game, Id like to change the colors used in these pop ups, also Id like to get rid of the blue top bar we have in the pop up. See this image … | |
Hi, I am using PHP & mySql to grab the title and description that I have stored in a table in the DB. I am trying to dynamically change the <head> <title></title>, as well as <meta name="Description" content="" /> . I used document.title to change the title. I see the … | |
Help me to show the jquery confirm box. If I move the tags out of content panel it works well. http://www.clientsideasp.net/2009/06/16/showing-beautiful-message-boxes-in-aspnet-web-forms-using-jquery-impromptu/ By using the above site I wrote the code. But I use Ajax. Protected Sub babubabu_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles babubabu.Click 'If IsValid Then 'The … | |
I am aware that JavaScript arithmetic does not handle either really large numbers or decimals well. This is why I have made this library of functions. I am posting it here rather than under "code snippets" because I would like to learn from your comments. Along with the library is … | |
Folks....can u tell me how to pass an argument to the Javascript function written in source thru Code behind...?? here is my code: [Code] <head runat="server"> <title>Untitled Page</title> <script type="text/javascript"> function message(name) { alert("Hello" + name) } </script> </head> [/Code] In my code behind file : [CODE] btnok.Attributes.Add("Onclick", "message();"); // … | |
Hey guys, im having the weirdest problem with my ajax!! below is the function that is called when ever a if statement evaluates to true. Anyway the problem im having is that this if statement [code] if(xmlHttp.readyState == 4) [/code] with in the ajax functions runs when readyState is equal … | |
I am trying to code a webpage that does the following: Listens for user key presses in an input box and dynamically writes them below the input box in a textarea. Any help? | |
I had problem with mouse out in div. i tried for one long day in vain. can any one do it. it was an urgent issue.Thank you in advance. the code is <!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> <title>The test</title> </head> <script type="text/javascript"> function changeStyle(div) … | |
[url]http://www.swell.com/Guys-Shoes[/url] At this site (address) when the onmouseover event is fired it zooms in automatically to a closeup of the shoe. What technology is this? It's also used when you click on the shoe, i.e. [url]http://www.swell.com/Guys-Shoes/ZOOM-CUSH-WAKE-SHOE?cs=BR[/url] and the user clicks on the image of the shoe and it is displayed … | |
The minimal AJAX script below works in Firefox, but not in IE, Opera, or Chrome. I could use some suggestions or referrals to resources that will help me get the script working in other browsers. Before there are six characters entered in the CAPTCHA code field, the 'Send' button is … | |
The script works just fine in IE, problems occur in FF. [code=javascript] <script language="JavaScript" type="text/javascript"> var counter = 0; window.onload = ajaxFunction; function ajaxFunction(nr){ var ajaxRequest; try{ // Opera 8.0+, Firefox, Safari ajaxRequest = new XMLHttpRequest(); } catch (e){ // Internet Explorer Browsers try{ ajaxRequest = new ActiveXObject("Msxml2.XMLHTTP"); } catch … |
The End.