20,316 Topics
I'm learning javascript. My first idea has led to a problem. I'm trying to set up strings to load at random intervals on different parts of the page, but I don't know the right function to use with setTimeout(). I hear "don't use document.write" and "probably don't use innerHTML", but …
I'm getting some javascript that's causing slowdowns. It's stuck in an infinite loop or something. This is on Konqueror. Never happened before.
Hi buddies, Can any1 put my wheels on the right track. What i wana do is... Create a form with which is shown below.. 1 textBox (To get the URL like;[url]www.yahoo.com[/url]) 1 button (which when presss the input website will open automatically) help me Thnakx in advance.. Some what like …
im trying to make it so when someone hits submit and a feild is empty or blank i message pops up and says "must fill in required feilds" near the bottom of the form rather than having a new page open up and say it.
I have searched many sites looking for this solution and have been unsuccessful. In dynamic drive, there is a new collapsible content box (Switch Content Script II) that almost does what I need. To wit: Switch Content Script II adds contact/expand functionality to any content using icons such as an …
Hi, My question is on weather it is possible to move the mouse on a page after it has touched something. For example: Lets say some one moused over an image, after which the mouse would move down across a certain part of the page. If it is possible how …
Please can someone help, I would be most grateful for any help as I am new to this and I am really stuck.:( I used Javascript that I copied and pasted from the 'Google AdSense' on to my Freewebs.com page, now I cant edit my page. When I view my …
[B][COLOR=royalblue]Dear All,[/COLOR][/B] [B][COLOR=royalblue][/COLOR][/B] [B][COLOR=royalblue]i write this html to get date in this format 4/1/2007 00:00:00[/COLOR][/B] [B][COLOR=royalblue]but output is [COLOR=red]Sun Apr 1 00:00:00 UTC+0200 2007[/COLOR].[/COLOR][/B] [B][COLOR=royalblue]please help me to convert it to this format 4/1/2007 00:00:00 to use it in select from al DB .:lol: [/COLOR][/B] [B]<html> <head> <SCRIPT type="text/javascript"> function …
hello, I am building a mysql/php/javascript based online timesheet system which allows users to assign themselves predefined projects and then select one of the projects assigned to them and add hours for a particular date to the database - i can get the add to work fine, but i need …
Hi: I am designing this Dinner menu using Javascript, but when I up-load it, it only opens, the first pharase in green color that says dinner menu and it does not run which is suppose to show the menu for everyday's food.here is the codes, your help is apprecaited. <HTML><HEAD><TITLE>SAM'S …
I have an Intel Pentium 166MHz w/MMX Computer and use Windows 98. A web site I was trying to access had this error message: "ERROR! JavaScript is required to use this site!" I then downloaded and installed JRE (Java Runtime Environment), Version 6, Update 1. I even customized my Security …
Hello, I built a simple contact form on my web site that simply sends the contents from a form to a php script via a xmlhttprequest. When I originally built this about a month ago, it worked fine. Yesterday, I know the form was filled out twice, as it emails …
I am unable to debug the following code. I can't find any errors here. I am getting the button but after clicking on it, only [b]Time Remaining: 10000 msecs[/b] is being displayed. In Firefox 2.0.0.3: I checked the error console, it shows [b]timedCount is not defined[/b] on line [b]t = …
hi all, I have a special type of gallery on my website ([URL]http://www.grafax.co.uk/newtest/gallery[/URL]) which uses a javascript file to make a div tag hover over the gallery with the image inside of it. however, the page shows before the javascript file is loaded, and so displays the image in the …
Hi: I want to get some movement into some words. The only things I want to change are the layervisibility and the layerposition. This code below works fine in IE and Opera, but doesn't do anything in Netscape 8 (except when watching in IE view). How come: thx :) [CODE] …
I wish to do the asterisk and reverse the order of the word. so below is my code.... and it not working... pls help..... thx a lot <wml> <card id="card1"title="INPUT"> <onevent type="onenterforward"> <go href="reverse.wmls#reverse()"/> <refresh> <setvar word="words" value=""/> </refresh> </p> </card> <card id="card2" title="OUTPUT"> <p> input the word:$result1 </p> <p> …
Is there a javascript function that will reload a dom element if given the element id? I am using javascript to update a divs innerHTML with the location of an image. Cut of the javascript code below. [code] var images = new Array(32); images[0] = "<img src=\"images/album/1.jpg\" />"; images[1] = …
[B]Dear all[/B], [COLOR=blue][B]I want to convert this date[/B][/COLOR] [B][I]from[/I][/B] [COLOR=red][B]Sun Apr 1 00:00:00 UTC+0200 2007[/B][/COLOR] [B][I]to[/I][/B] [B][COLOR=red]4/1/2007 00:00:00 [/COLOR][/B] :rolleyes:
Well i am doing a very simple program that is to calculate the number of occurrance of a character in a string Hello World The character H appears 1 times The character E appaers 2 times The character L appears 3 times The character L appears 3 times The character …
I have come across a slideshow I want to use on my site. I am using coldfusion to write the site, but know very little javascript. I cannot figure out how to get the text to show up and change with each slide. I am posting all of my code. …
hi.. is anyone know..i have all the information about how a question should be displayed from database so that customer may review their survey question? for examples: [B][COLOR=Red]Table 1: Question - [/COLOR][/B] QuestionID, QuestionNum, Question, QuestionStyle [B][COLOR=Red]Table 2: Answer - [/COLOR][/B] AnswerID, QuestionID, QuestionNum, AnswerList eg: QuestionID=from 1 to 10 …
Hi. I got a problem and want to find a solution backwards :cheesy: How to tell browser not to offer saving password in "password" form? I know it is possible (p.e. internet banks using it), but dont know even where to search? Reason why im searching: I got it in …
I am trying to divide the code to four function Second. The Smallest does not work Third when any of 10 Grade is not between 0 and 100 the alert box say that Grade (Number of Grade) is not a number between 0 and 100 Please correct! for example Grade …
<html> <head> <title>student details</title> <script language="JavaScript"> function sum() { window.document.form1.total.value=parseInt(s1.value)+ parseInt(s2.value)+ parseInt(s3.value)+ parseInt(s4.value)+ parseInt(s5.value); } function grd() { var s1,s2,s3,s4,s5,avg; s1=parseInt(window.document.form.s1.value); s2=parseInt(window.document.form.s2.value); s3=parseInt(window.document.form.s3.value); s4=parseInt(window.document.form.s4.value); s5=parseInt(window.document.form.s5.value); avg=(s1+s2+s3+s4+s5)/5; if((s1>=40)&&(s2>=40)&&(s3>=40)&&(s4>=40)&&(s5>=40)) { if(avg>=70) window.document.grade.value="distinction"; if(avg>=60) window.document.grade.value="a grade"; if(avg>=50) window.document.grade.value="b grade"; if(avg>=40) window.document.grade.value="c grade"; else window.document.form1.grade.value="fail"; alert("sorry u need to improve"); } alert("congratulations"); } function …
Hello. I have an ASP page that require printing. The page is about showing some data from database. I use the simple javascript printing : [B]javascript:window.print() [/B]The page design use some css templates. Well it does print. But it only prints the images and the texts. The print out seems …
Ive been searching for lots of time, but yet with my goal unaccomplished. Can somebody tell me a -free -javascript tool -fast -syntax highlighting -program please?
Guy's I hope you can help. I am getting a screen whentrying to search on Internet explorer which says the following: Javascript document referrel It will not let me use my search engine at all, I am re-directed to this page every time. I have tried various spyware/adware anti virus …
hi i m making a website in which the user has to enter data on current or next days not of previous days. but if the user changes the date of their system,they r able to enter data of previous day also. is there any way in which i can …
Hello, I am a newbie coder and I am trying to create a [URL="http://www.daniweb.com/techtalkforums/thread73193.html#"]php[/URL] mailing list. I would like the users to enter their email address into the text box and click submit and have the email addresses seperated by ;'s and imported into my list.txt file. Here is the …
Hello everyone, I have built a DHTML & Javascript menu using the Deluxe Menu ([url]www.deluxe-menu.com[/url]) software package. The problem is that in IE7 the menu works fine, yet in Firefox it is displayed behind everything. If you look here using IE and Firefox you can see the difference when you …
Hello friends, I am looking for the javascript for sqldatabinding with Select dropdownlist in ASP.NET. I want to populate HTML Select dropdown with my sql query. How can i do this? Thanks in advance. Snehal
Hi, I am working on implementing a navigation tree which lists the configured network objects dynamically. Has somebody worked on a similar kind of project? It would be of great help if somebody can provide information on this as I am a beginner in terms of JavaScript programming. Thanks -Swapna
I need an example of a tree done in javascript and that can make things when you click the tree folders ... Any page or example in javascript please. Thanks...
Hi all, I have a simple problem but a major 1 for me now... i need to pass the selected value of radio button from 1 jsp to another jsp i.e when user selects a radio button option and then clicks on the submit button then the selected value should …
I really like the functionality that google uses to show their newest news. If you click the link below and look at the right side, I like the manual movement of content using the up and down arrows... I'm not sure if this is a scroller? [URL]http://finance.google.com/finance?q=SBUX[/URL] Anyone know? Anyone …
Hey everyone. I'm trying to create a webpage where everything you click, it reloads in the main content div with the new page. Heres an example of what im talking about. This is my main content. [code] <?php switch ($Content) { case register: echo "<a href=\register.php</a>"; break; default: echo "Welcome …
I'm having a bit of a problem getting my javascript to run in Firefox (version 2.0). It works fine in IE6. Here's the HTML: [code="HTML"] <td> Black Eyed Susan </td> <td align="center"> <input type="text" name="blackeyedsusan" value="" size="3" maxlength="3" onChange="javascript:calculatecharges();"/> </td> [/code] And the script: [code="JavaScript"] function calculatecharges() { var totalPackets …
hi i have an idea of taking a foarm and like making a simple calculator with javascript and im wondering if i have to send the input to one of thoughes programs that retrives the data or could i just do this in the coding of the webpage?
I'm currently working on my online quiz application. It is based on ASP. I want to add the countdown timer in every quiz that run. But the problem is the javascript will go freeze in my ASP, it only run each time i refreshed the page. Some suggest me to …
can any body help me out in my situation ,i want to retrieve some results from database , when i choose a value from the selection box. thanx in advnce tc
Hi all. I need to know how to restore or roll back to built-in function after overriding like following example. String.prototype.substr= function() { return "";} Now I want to use the one already built-in. I shall be very thankful if some one could help me. Sultan Wadood
I am using the coding below to open my file from pc to the frame call "myRTF". its can be function in vs.net browser but cannot function when i debug it and using Internet Exporer to run it. the function cannot retrieve content of the file into "myRTF". Actually this …
ok dokey, i have this web site and on the front page i have alogin box underneath a picture but i want the name enterd to the login box to be displayed above the picture can any one see where im going wrong <html> <head> <title>GRIP IT N RIP IT</title> …
Can anybody help me in how to load the labels in the html page using javascript or php FROM XML IN linux OS.
Hi all. I need to know how to disable javascript through javascript in firefox. thanks in advance if some one could help me. Sultan Wadood.
Hi everyone, here's my problem. I have 3 web forms. WebForm1 contains a tab control "UltraWebTab1" with just 2 tabs. First tab displays Target URL WebForm2. Second tab displays Target URL WebForm3. WebForm2 contains a label lblSourceLabel with a text value of '123'. WebForm3 contains a label lblTargetLabel with a …
Ok here it is in this forum, I am looking for how to do Info Tags - NOT a popup as I do not want to use the javascript Window.Open- I want something like the smart tags, but like the nice info windows that appear here in the DaniWeb Forums.. …
I am trying to create a quotation form where clients can choose a product series number from a drop down menu ie 2000 series, 4000 series ect then a product number from that series from another drop down menu ie 2450, 2570. Once they have selected a product number i …
Hello everybody, greetings from Lima, Peru. I have been using computers since early 80s when my father give me an Atari 800XL with 64Kb of RAM :p , basically i used it as a videogame console but i do some basic stuff in one of various versions of Basic, after …
i've been doing some research on fs command, but i haven't found a true answer to my problem. What i would like to do is load an image into a flash file using the loadMovie("image.jpg") command. I want to do this so i could use the same flash container on …
The End.