15,699 Topics
![]() | |
[code=html]<html> <head> <script type="text/javascript"> function validate_required(field,alerttxt) { with (field) { if (value==null||value=="") {alert(alerttxt);return false;} else {return true} } }function validate_form(thisform) { with (thisform) { if (validate_required(email,"Email must be filled out!")==false) { email.focus(); return false; if (validate_required(city,"city fill it")==false) { city.focus(); return false; } } } } </script> </head><body> <form action="9.php" … | |
I have the code to show predictive text when a user enters a value, However I am struggling to change its behaviour. Currently it shows the suggestions seperately, I would like to alter it so its shows the value in the search box and then the user can select a … | |
Hi everyone, I have written some code in which i am taking some input like this date from and date to field. But this calender is open into IE and i am unable to open it in Firefox. I am using code like this------------- [code=html]<tr id="companyname"> <td style="display: none;"></td> <td … | |
Hello, I'm having a bit of trouble here. I want to have two input boxes for entering numbers, a select box, and a button - "Compute". The select box contains options for "add", "subtract", "multiply" and "divide". When the "Compute" button is pressed, I want it to compute the arithmetic … | |
Hi i had a big image in my web page. I need to do a preload in that image. Actually I am new to javascript. I tried many scripts but didnt work.. Please guide me ... Thanks Rajeesh | |
time is of the essance, and i've been searching all day for a way to make a roll over button drop down menu. i'm using a table (for now), as my hunt for decent roll over button codes kept coming up with software marketing sites, or complicated script. i came … | |
[B]Hi! I'm a complete newbie and I need some help. I have this piece of code which is opening link in new window: [CODE]<script type="text/javascript">//<![CDATA[ document.write('<a href="javascript:void window.open('<?php echo $product_flypage ?>');">'); document.write( '<?php echo ps_product::image_tag( $product_thumb_image, 'class="browseProductImage" target="_self" border="0" title="'.$product_name.'" alt="'.$product_name .'"' ) ?></a>' ); //]]> </script>[/CODE] How to change … | |
I am working on a java project and I need to add cookie in the browser to register a record of points of the person and turns it into a variable "a". I have everything working ... just missing it! the project is a play test of reflex and just … | |
Hi, I am trying to validate RadioButtonList (ASP.NET) using the following js function but for some reason it does not working properly. I can't get the ID of the control as I would be.. Can you help please? [CODE] <asp:RadioButtonList ID="T_selector" runat="server"> <asp:ListItem Value="1">Team1</asp:ListItem> <asp:ListItem Value="2">Team2</asp:ListItem> </asp:RadioButtonList> [/CODE] [CODE] <script … | |
Sorry for the weird title, not sure how to describe it in one sentence. What I am trying to do is build a script that will read through an array of words and compare another word to the list to find where it would be placed alphabetically; between which two … | |
Hi Folks, i have created one list of years and months .. inserting that into the database...if i want to edit ...it is selecting the check box but problem is i have to scroll down forwhere it is selected...wherei want to autoscroll for that. please find the attachment... thanks in … | |
I am working on a web application and I would like to combine java script and php. I am using the window.confirm() function which gives a user an option to choose either yes or no. I am actually using this feature to end a users session so if user clicks … ![]() | |
Hi! Would it be possible to have a JavaScript graphic in a web browser react to sounds from the users computer microphone? Thanks! Tom Tolleson | |
Looking at [url]http://yellowspringsfarm.com/events-schedule.html[/url], in IE 7, if you run your cursor over the nav panel to open and close links, the text line height in the main content does a little dance. This does not happen if FireFox. I have no idea what I screwed up or where to look … | |
Hello everyone, I want to use two radio button on a html page (buy.html) . I want that when we click on first radio button then it will show one form which have two or three text box on that page (buy.html) . When we click on second radio button … | |
Hello all, If I use a "typical" href - No problems I see the session value being passed to the page (populating a form field). Using the pop up link not surprisingly nothing gets passed. My lack of experience is letting me down here. Any solutions or an alternative ? … | |
I was wondering if someone could tell me if it is possible to take the navbar I made for the website, [URL="http://www.rcamodels.com"]Website[/URL] which was created using Dreamweaver and Fireworks, and convert it to CSS. What I am trying to do is convert the site to mainly CSS. I'm not looking … | |
I need to use ajax to make this whole process smoother. Here is a demo: http://www.theflickzone.com/dev/ If anyone can do this for me I will pay a few $ via paypal to say thanks :) Contents of index.html <form action="return.php" method="POST"> <p>IMDB URL: <input type="text" name="imdb" autocomplete="off"></p> <p>Links(line by line): … | |
guys i really need your help. im not sure how to even explain this so here goes. i want to create a page where u enter a text and then u click a 'convert' button and the text is inserted to a larger text for example lets say u enter … | |
Hi everyone, I want to use two radio button on a php page when we click on first radio button page will show different form below the radio button and when we will click or select second radio button then i want to show another form on the same php … ![]() | |
Hi, Is it possible to use GetElementsByTagName for grandchild elements? I have a div with a bunch of lis nested inside of the div, and a hidden input field inside of each li. The lis are draggable, and I want to write a script that adds up the values inside … | |
i have an "product customization form", made with javascript wich sends the user selected values through email. [CODE] <select name="material" id="material" onchange="selection_material()"> <option >Select...</option> <option value="1">Paper 115g</option> <option value="2">Paper 135g</option> <option value="3">Paper 150g</option> <option value="4">Paper 170g</option> <option value="5">Cardboard 200g</option> <option value="6">Cardboard 250g</option> <option value="7">Cardboard 120g striat</option> </select> [/CODE] [CODE] function … | |
Hi, Is there any way to end a line of text with three dot if this one is too long for the content box/site layout? Someting like wrap text but without going to the next line. Thanks for your help | |
I am using Javascript to highlight/dim active/inactive tabs respectivly. Tab 1 is active by default, and when the other tab gets clicked, tab1 should remove "active" class from itself, and the clicked tab should add "active" class to itself... It seems like the class is not being removed properly, because … | |
[code=html] <form action="search.php?q=VALUE" type="post" /> <input type="text" id="textbox" name="poster" size="25" /> <input type="submit" class="button" value="Go" /> </form> [/code] I have this form....What I want is for where it says VALUE to change in the forms action to be the same as what is in the textbox. I cant find anything … | |
I am building an Ajax-application that functions as a 'formserver'. A php-script is generating HTML-code for a form that is packed in XML that is sent to the browser via an XHTML-request. There a Javascript-script makes the HTML-code part of the document tree. I have problems with inputs of the … | |
Hi I am running an online examination system on intranet where a number of students appear for a test simultaneously. The paper contains only subjective questions and studens are provide a text area to fill in their answers. with each text area there is a "save answer" button which the … | |
Hi, I have these two files...index.html and handle.php Index.html has a form on it which is sent to handle.php. This file takes the data sent from index.html then processes it and returns some text. What I want to do is 'Ajaxify' this whole process, so to speak. How can I … | |
Hi, I have a web application in development that takes input from an HTML form and uses servlet technology to process and output another page. Currently, the HTML form is just standard form components (drop down menus, radio buttons...). What I want to implement is an image, where the users … | |
Hello, I am a JSP newbie. I am trying to encode a password on a login form, before it is sent to the server. I created a test button to display the hashed password, but errors out with the message 'digestPswd not defined' Here are the code snippits that I … | |
Hello! Im new to PHP and have a need for what I have found out is called AJAX. I prefer to code in PHP for my DB access. I need to create a dropdown list using AJAX that updates it self depending on what is slected in the parent dropdown … | |
How do I animate an image to fade in when I roll my mouse over a <div> and fade out when I move my mouse away. So far this is what I have. It doesn't seem to work well. Please help me, thanks. Javascript [CODE]<script type="text/javascript"> var homebutton = document.homebtn.style.opacity; … | |
I'm having an issue getting IE 7 to respond to the setAttribute("src", "...") command in javascript. The code does the following: 1) There exists an img id called mainImage in my html. 2) On load the body calls getimagesource 3) The javascript reads a configuration file (test3.txt), that has each … | |
Hi, I'm currently [URL="http://www.daniweb.com/code/snippet794.html"]using this fantastic script[/URL] by Fungus1487 (thanks!) but am having a bit of trouble getting it to detect Saturdays. For example, when I enter a start date as a Thursday, then enter an end date that's a Friday it'll return 1, fine. If I enter a date … | |
Is there a way to change the color of Student Name to red. [code] <script language="JavaScript"> <!-- function delStudent#StudentID#() { if(confirm("Do you really want to delete Student Name?")) {location="index.cfm?act2=5&id=#StudentID#&sec=#sec#";} } // --> </script> [/code] | |
hi there pals. i am writing some codes for a scaffolding application. consider i want to implement : [IMG]http://ce.sharif.edu/~zamanian/untitled.JPG[/IMG] when user click in Delete Link, DB delete that row and make it disappear from the page with Ajax. i put the whole table on one DIV , and i want … | |
the code is given below <script type="text/jscript"> // Check the length of the textbox //for new function Length_Phone1TextField_Validator() { if ((aspnetForm.ctl00_ProfilePlaceHolder_txtPhone1.value.length > 2)) { aspnetForm.ctl00_ProfilePlaceHolder_txtPhone2.focus(); return (false); } return (true); } <script> and in cs file its code like this `this.txtPhone1.Attributes.Add("onKeyup", "return Length_Phone1TextField_Validator()");` Its not working in firefox but in … | |
I want to get to the parent location each time I'm adding a record. the problem is that i have a nested iframes, and each time the number of those is incremented: eg. at first adding record i have the location like this: parent.location second: parent.parent.location third: parent.parent.parent.location how could … | |
Hi, I have used AJAX in my code. On select of 1 dropdown javascript function is called which will led to display of other dropdown. Similarly, 3-4 dropdowns may appear. All will be based on values selected in dropdown. 2nd dropdown appears fine. But after its select javascript func onAccountDivisionsChange() … | |
Hi, I'm using this function to set "cart behavior" on my drag and drop control: [CODE] $create( Dflying.ShoppingCartBehavior, {"name": "myShoppingCartBehavior"}, null, null, $get( "Box" ) ); [/CODE] The problem is that I want to be able to remove that behavior from my cart, but I simply can't find any information … | |
Hi dears, I am working on an script for testing students. I have problem in javascript code. I want to open a new window using javascript. the code works fine in Firefox but it gives error in IE. The interesting thing is that it gives error where there is a … | |
The script belwo works in IE, how do i get it to work in FireFox? [code=JavaScript]<script type="text/javascript" language="JavaScript"> <!-- JavaScript --> <!-- Begin mesg = "Welcome to WhiteCityCavaliers.com New Litter has just arrived....Ready for you after weaning!....More Love than you could expect from a puppy, Cavaliers love to please you...."; … | |
hi, Am developing a web app in php, mysql but using lots of javascript and ajax and css. okay. straight to the code. I am adding dynamic textfields to the document. There are 4 textfields in total. One of them has 'Quantity', the other has "Item Decsription", the next has … | |
Dev't Tool: Visual C# 2003 and Javascript System Type: Web Application One requirement of the system is to dynamically create a table on client-side (Javascripting using createElement method.) The table has textboxes inside each cell. a few sample code: [code] for (i = 0; i < 4; i ++) // … | |
i have one text box date of birth and submit button ..if i click that submit button the calender should open ...if we selevt any one of the date on that calender the date should display in dataof birth text box.. can anyone tell me the javascript code for this … | |
I am trying to build or recreate the MattBerseth.WebControls.AJAX ModalPopupAnimationExtender and I keep getting this javascript error "AjaxControlToolkit.Animation.GenericAnimationBehavior is null or is not a object" I have tried searching on google but I really can't find anything that fixes the probelm. Does anyone have any suggestions? | |
I want to create a user feedback form something like this: When a user clicks on a link like: Send Feedback The box size 200 X 200 would open right under it where users can provide feedback and in that box when one clicks submit the same box displays like … | |
Please somebody help me! I`m a beginner and want to learn web designing. I want to khow taht is there any diffrences between Java & JavaScript if yes which one of them is better for me I have learned just C programming language. | |
I have a modal popup extender which works fine but I was trying to put an animation to it for my site. I found this animaiton extender that works thru this one site but I tried to rebuild it in my site but I can't get it to work. First … | |
hello guys, is there any one good enough to tell me how to show random pics in a frame each time my home page is loaded. i would appreciate if you tell me how to do it either in javascript or php. thanks a million times |
The End.