15,127 Topics
| |
[CODE]var s = document.getElementById('field[12]'); var cust_cc_exp_month = s.options[s.selectedIndex].value; // This displays the correct Value -- which is "0" for item #0 = "Please select..." alert("Month: " + cust_cc_exp_month.toString()); if (cust_cc_exp_month == "0") { // This code never executes! } Here is the HTML portion: <select id="field[12]" name="field[12]"> <option value="0">MONTH</option> <option … | |
ok i have a iframe and i want it so that when someone clicks a link inside it it opens in the same window. not a new window. i was thinkingof using onclick but it would be too much work. | |
Hi I am looking for a scrolling solution for a site - I want to have images scrolling on the screen from when the page downloads and then offer the ability to show an enlarged pic by mousing over a thumb nail. I am being told this is not possible … | |
hi, i m having a problem on on uploading this site it is giving unexpected object error plz help me </head> <body onload="afterload()"> <img src="images/ICB Blue_top arc.gif" id="toparc"/> <div class="content"> <img id="logoimg" src="images/ICB Blue_logo.gif"/> <div id="registerDiv"> <FORM name="drop_list" action="mobisyregister_.php" method="POST" onSubmit="return ValidateSelect(this)"> <table cellspacing="0" cellpadding="5" border="0" width="100%"> <tr> <td valign … | |
Hi i have a form which holds several Inputs of type text, now when im clicking on a check box it run a js script which gets each Input text element and colors its background with a color something like this [code=javascript] var filed=document.getElementById("one"); filed.style.backgroundColor='red'; filed=document.getElementById("two"); filed.style.backgroundColor='red'; ... .. . … | |
I'm facing a problem with Firefox. I've got a page with a input text box element within a form . On the Click of Submit , I would like to open a new window with width =1200 and height=900 . I've used the following code [code] <form name='form' action="login_check.php" method="POST" … | |
Please, anyone, tell me how can this be: [CODE] var cust_state = document.forms.info.dropdown_a.value; // Displays "TX" or whatever state was selected. I tried removing this line; it doesn't help. alert("State: " + cust_state); if (cust_state == "XX") { eval('document.forms.info.dropdown_a.style.backgroundColor = "#FFCCCC";'); eval('document.forms.info.dropdown_a.focus();'); alert("Please select a State from the drop-down box."); … | |
Hi everyone, I was wondering if someone could help me do something i would like to do. I want to create draggable boxes with content in them like standard html, etc. These boxes can be dragged around closed and there content hidden. The type of boxes i am trying to … | |
I am looking for a way to pass a variable from one form to another form in a new page. Bassically when a person clicks 'register' for a specific class, I would like it to open up my registration form and automatically fill in the class name and perhaps other … | |
Hi! I wonder if there is very simple way to convert SVG format images to gif format. For example: <img src="ImageConverter.js"> ImageConverter.js gets the SVG-image from somewhere and returns image in gif format. | |
I've posted a new article on my site, dealing with how to integrate JavaScript and ASP.NET. It's a "beginner level" article. [url]http://www.tgreer.com/aspnet_html_03.html[/url] | |
Hi all, I'm a n00b at Python and am working on outputting html using pyhtmloo - I've checked the [URL="http://sourceforge.net/docman/index.php?group_id=89844"]pyhtmloo site[/URL] for guidance but no joy there. Hopefully I'll find guidance here... The python code below outputs an html page and what I'd like to do is set the refresh … | |
I am having trouble with a piece of javascript code that expands blocks of text. For example, when you click the title, the text under it will expand. I am fairly new to javascript but it looks like the code bassically re-writes the link in the html so that when … | |
Hi everyone. I have sort of a simple question: I have need to replace one object (an image) with another object (a textfield/form object). I want the switch to occur when the user clicks on the image, and have the textfield appear in the same location. Is this possible? Thanks! … | |
Hello! I got a Web Site ([url]www.papikos.com[/url]) which shows well in MOZILLA (check it out). In IE is shows bad, on the left, right side too much space and the header is also not good (please check it too). Can somebody help with the according SCRIPT to make it look … | |
plz help me how to do select/dropdown iam new to ajax i followed the example select/dropdown from sourceforge net but its not possible how to do it using [B]jsp[/B] plzzzzzzzzzzzz help me in this, send me the code how to do it in jsp | |
hi im new to this javascript business and have a problem with the following code [ICODE]<HTML> <HEAD> <TITLE> SOFASPEND - IN THE BEST POSSIBLE TASTE </TITLE> <SCRIPT LANGUAGE = "JavaScript"> /* Program to prompt for a number and then display message according to the response but allowed 2 maximum tries … | |
Selcet/Deselcet All checkbox in Datagrid using Javascript | |
Hi i want to need javascript using datagrid, for example i have a datagrid and in datagrid above two check boxes 1)checked and 2) unchecked .In datagrid also 5 checkboxes is there ,if i clicked checked all checkboxes will select and if i'll clicked unchecked all unselect checkboxes will select … | |
Hey guys, so i'm not great with JavaScript since i mostly do HTML and C++... ok, so i have a site with a "contact" box that sends me the users message. i want the text to clear when the user clicks on it, but for some reason, i can't get … | |
I need to use a Web conferencing system that does not require a download. I tried using one that uses Java but several of my clients had problems because their JVM was not compatible or they did not have a JVM installed. Is there a Web conferencing system with no … | |
hai guys i have generated a captcha image and i want the image to change every time the user reaches the page.......... the code seem to work well with IE but in firefox the image does not get changed .......i tried "onload" command but the image goes on for an … | |
Yes it's should be simple.Can anyone tell me why this won't right a string in the flippin body? Thanks [code] <!-- Document : computer_object Created on : Feb 23, 2008, 11:47:50 PM Author : James Howerton --> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>computer_object</title> <meta http-equiv="Content-Type" content="text/html; … | |
Hello, I am hoping one of you guru's can help me out. I am new to Javascript and a bit of a hack at HTML. The following works correctly in IE7 but doesn't work in Firefox. Any idea? Also, is there any way to get IE to quit waring people … | |
Hi everyone, I currently have this script on my page that allows users to add and remove rows in the page. I have a another script that calculates a value on the dynamically generated elements and static ones too. my problem is, I cant figure out a way to pass … | |
Is any way to fill an ASP variable at clientside with javascript. I like to use that value to send as a string with a textlink like described below. <SELECT ONCHANGE="location = this.options[this.selectedIndex].value;"> <option value="">Choose something</option> <option value="0">------------------</option> <option value="1">option 1</option> <option value="2">option 2</option> <option value="3">option 3</option> <option value="4">option 4</option> … | |
I have some music in the background of my website (Let it snow.mp3) - using the following code: <script language="JavaScript"><!-- if(navigator.appName=="Netscape"){ document.write('<embed src="let it snow.mp3" autostart="true" loop="true" controls="SmallConsole" width=50 height=15></embed>');} else if(navigator.appName=="Microsoft Internet Explorer"){ document.write('<embed src="let it snow.mp3" autostart="true" loop="true" width=70 height=25></embed>');} else{ document.write('<embed src="let it snow.mp3" autostart="true" loop="true"></embed>');} //--> … | |
Hi I built a website in dreamweaver, (on a mac). The pictures are aligned great, in Firefox and Safari. When I open Explorer, the picture at the homepage is smaller and doesn't cover all the cell. it's in the middle and there is a lot of black around it. How … | |
Is there a JavaScript api to look at methods? I googled and I didn't find anything familiar. I am used to the java api. | |
What can I do not get this to work in Firefox? [code]document.getElementById("type_" + x).checked[/code] When I used [code]alert(document.getElementById("type_" + x).checked);[/code] to check the value it comes up fine in IE, but I get a "has no properties" error in FireFox. |
The End.