15,122 Topics
| |
Hi I have some code here that fills a dropdown box from an array depending on what is selected in another dropdown box. One of them is disabled, and i would like to stop that once an option has been selected. This is the Javascript: [code=javascript] function fillStates(opt){ s=document.f.states.options s.length=stateNames[opt].length … | |
It works in firefox and displays 30 seconds, but when I try it in IE7, the countdown starts at 9 seconds no matter what. [CODE] <script language="JavaScript" type="text/javascript"> var x = 31 var y = 1 function startClock(){ if(x!=='Done'){ x = x-y document.frm.clock.value = x setTimeout("startClock()", 1000) } if(x==0){ x='Done' … | |
[code] <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html > <head> <title>Untitled Page</title> </head> <script language ="javascript"> function chkRadio() { column =document.list_photo.hidCounter.value; var total = 0; var file =0; for(var i=1; i<=column; i++) { var objId = "chkBuy" + i; var obj = eval("document.list_photo." + objId); document.list_photo.totalcredit.value = obj.length; … | |
I was helping a fellow daniweb user with validation for restricting output to only numerics. Then another user said even it validates a user could copy and paste into the cell. Now that has been annoying me and I have been trying to figure out a way to prevent this. … | |
i have downloaded your coding few hours ago. but somehow i have some problem there which is the calender just won't come out. i had follwed the steps and put the coding at the right place but it wont come out. i need to put a calender in a system … | |
Here is html <asp:datagrid id="mrpDataGrid" style="Z-INDEX: 289; LEFT: 576px; POSITION: absolute; TOP: 512px" runat="server" Width="160px" Height="90px" autogeneratecolumns="False"> <AlternatingItemStyle BackColor="LightGray"></AlternatingItemStyle> <Columns> <asp:BoundColumn DataField="SCHEDULE_DT" HeaderText="Scheduled Date" DataFormatString="{0:d}"></asp:BoundColumn> <asp:BoundColumn DataField="SCHEDULE_QTs" HeaderText="Summed Quantity"></asp:BoundColumn> </Columns> </asp:datagrid> I need to get values of both bound columns to use in calculations. TIA javascript newbie | |
hi all, following code is working fine in mozila but not working in IE. Can anybody suggest compatible code for both the browsers. function UpdateSelect() { select_value = document.form1.selection_1.value; var id = 'hide_this_row'; var obj = ''; obj = document.getElementById(id); alert("object is 1"+obj); if( parseInt(select_value) < 1) { obj.style.display = … | |
How to toggle between a Single window ..: Which is, In one page, I have the video and ppt in it.. If i wanna switch, the windows by a button. Eg: when u click a button, v must be able to see only the ppt and when you click a … | |
Hi everyone, I'm having problem with the sequence of execution for xml.onload. It works fine if your not passing parameters to onload event but my code needs to pass parameter to its function. I'm able to research ablut passing parameters for onload event. However my problem is it only executes … | |
I've come across a bit of a conundrum. Firefox handles DOM manipulation based on the standard which (would'a'thunk-it?) works. However, Internet Explorer does not. So here's the situation. I've got a select box and a remove button which, in Firefox, works as advertised, ie., removes the selected element from the … | |
hello. I have added a command "copy email address" to my IE context menu however I cannot get the script to work. Please help me. | |
Hi, all! Here's another one that's starting to boggle my mind. I have a form that, with a button, adds a bunch of text-fields in a tablerow. For every press of the button another row is added. This works in both IE and FF. No probs. When pressing another button, … | |
hi odd problem with IE and Javascript? when I open my pages using ip (and not host name) thier javascript functions and events dont fire. can any one help? | |
Am using the following code to remove a text box from my site. So when the user clicks on remove_btn.gif a text box row gets removed. [CODE]<html:image onclick="document.getElementById('wishlistForm').action='/wishlist/send.do?method=remove&removeIndex=${status.index}';" styleId="remove" src="${siteImages.imagePath}local/localbuttons/remove_btn.gif" border="0" altKey="btn.altTxt.remove" />[/CODE] Now i want to replace the remove_btn.gif with a normal hyperlink text something like this [URL="http://remove"]Remove[/URL]. So … | |
Hi Can any body help me how to display command prompt results into explorer. | |
Hey all, some of you know me from some of my earlier questions with my css stuff. I recently interviewed for a position for a company who uses ajax. All their AJAX stuff is already built, so, they aren't going to require me to mess with it much at first, … | |
Hi, I would like to make a blok of text appear when the user clicks a hyperlink. Therefor I created a test file in html: [CODE=HTML] <html> <head> <title>InnerHTML - Test</title> <meta http-equiv="content-type" content="text/html;charset=UTF-8" /> <script type="text/javascript"> function writeEvent(txt){ document.getElementById("infoOut").innerHTML = makeEvent(txt); } function makeEvent(text){ var output return "<table style='border:solid … | |
i want to view image as tooltip of small image on mouseover on that so what is the code for that?using javascript how it can be done? | |
I want a form static box on the page that will link and chg to my poetry links on the side of the page, so that the page wont chg just the box and the choice of the users poem they want to read.... I was googling, but dont really … | |
I have a group of input type="submit" buttons inside a fieldset. I am using javascript to alter the appearance of these input type="submit" buttons when I 'onMouseOver' and 'onMouseOut'. When this happens this changes the size of the fieldset border and expands and shrinks depending on the mouse over/out event. … | |
Hi, i did uploading a file with using <input type=file> but is it possible to upload file without using<input type=file> i am using PHP as server side language Thanks, swapna | |
Hello! I want to open ms-word document on web-site with firefox browser. Is there any pluging or javascript object? I know object for IE -- [code]ActiveXObject("Word.Document");[/code] But i don't know Object for firefox. | |
When you define a variable name same as an IFRAME name, I.E won't be able to get back the iframe. See following example: [code=html] <html> <body> <iframe id='ifLoan' name='ifLoan'> </iframe> </body> </html> <script> var ifLoan=frames['ifLoan']; alert(ifLoan); </script> [/code] In IE, it will display undefined. In firefox, it's fine. So you … | |
I know this is pretty simple but I can't find the answer for it.. say you have an link that you want to connect to.. [url]http://example.com/example1/example2/final.com[/url] and you don't want it hard coded cause you have many other links that will use that path.. say.. [url]http://example.com/example1/example2/final1.com[/url] [url]http://example.com/example1/example2/final2.com[/url] how can i … | |
how can i write a Java Script similar to igoogle style window drag & drop in diferent sections of a web page? | |
Hello! I am using CSS class to apply design properties to a DIV in my markup. This image is a repeating image. The background-image syntax goes like this: [code]background-image:url(http://www.mysite.com/images/image.jpg);[/code] I am performing a JavaScript image replacement (it has to be done in JavaScript per client specs) and to replace this … | |
hi i dont know how it works in JS but in PHP is var codeofheight = "<?php echo $codeofheight; ?>"; but i need it in JS... the opossite of this code thnx | |
hi all, as we all know javascript is doing great these days,and compatible with all langauges is best feature.we can see the effects using javascript libraries are really good like scriptalous,jquery and prototype.if you have some resources u can share it with all community members to make world go around … | |
Hello everyone, I'm a newbie in AJAX. I have found a code in the web that uses AJAX and PHP (withjavascripts). It works well but i want to have a multiselectable dropdown. How can i retrieve the value of the multiselctable dropdown thruogh its javascript??? Here's the code that retrieve … | |
This is a script for showing time but it only shows in IE but not in firefox.Whats the problem? <script language="javascript" type="text/javascript"> file://start display day/date code DaysofWeek = new Array() DaysofWeek[0]="Sunday" DaysofWeek[1]="Monday" DaysofWeek[2]="Tuesday" DaysofWeek[3]="Wednesday" DaysofWeek[4]="Thursday" DaysofWeek[5]="Friday" DaysofWeek[6]="Saturday" Months = new Array() Months[0]="January" Months[1]="February" Months[2]="March" Months[3]="April" Months[4]="May" Months[5]="June" Months[6]="July" Months[7]="August" Months[8]="September" … |
The End.