15,127 Topics
| |
i want onchange of an option in the dropdown list to change the value of the textarea. I tried but it's not working. [code] <script type='text/javascript'> function ChgBox(number) { var thecontent = document.getElementById(number).innerHTML; document.getElementById(content).value = thecontent; } </script> [/code] [code] echo "<div style='display:none;' id='2'>Type Image Url</div>"; $thenum ="2"; <select> <option … | |
hi all, if i have to print some text over a image in particular location of image can i do it with javascript actually i have a check(image) but i want to print name , amount over that image but i want it be in write place of check image … | |
I thought this would be simple I am trying tochange the opacity using style. but keeps throwing an error [code] document.getElementById('overlay').style.background='#000'; document.getElementById('overlay').style.opacity='40'; document.getElementById('overlay').style.filter='alpha(opacity=40)'; [/code] keeps thowing the error in parsing value for 'filter' declaration dropped in my css i have [code] #overlay{ width: 100%; height: 100%; background: transparent; /* for … | |
Sorry another silly issue with javascript but I am getting there. Can someone please explain how I should write this thankd. I tried stoping and restarting the string 'hello' +var 'more text'; maybe I am just too tired. The variables are already defined. [code] document.getElementById('welcomeone').innerHTML='+firstnameval you have successfully created your … | |
I need to GetThe Dynamic Values of Row1 Row2 Row3 Etc. My Code enter code here <script type="text/javascript"> $("document").ready(function(){ $(".addComment").btnAddRow({rowNumColumn:"rowNumber"}); $(".delRow").btnDelRow(); }); </script> <table border="1" class="autoTable"> <tr><td>Your Name</td> <td>Your Age</td><td> </td> </tr> <tr><td> <input type="text" id="wonder" size="25"/> </td> <td><input type="text" id="good" size="25"/> </td> <td><input type="button" value="Delete" class="delRow"/> </td> </tr> <tr> … | |
Hello, im making a fact system, and I need a refresh script, For example when someone clicks on the "next fact" button, the "div" part (where the fact is displayed) refreshes. ONLY the div part. and the javascript below is externally loaded... [CODE]/ ============================================== // Copyright 2004 by CodeLifter.com // … | |
hi everybody, i encounter a problem regarding PHP when i am doing my internship. i have a javascript which looks like this. <Script Language = "JavaScript"> function sent() { var text1, fTxt,dT; text1 = document.form1.EPTextField.value; dT = new Date(); fTxt =("You entered" + ": " + text1 + " " … | |
[B] Hi, I have a problem in the below requirement. Marital Status (Select-one) SpouseName ( Textbox ) (Single) (Married) Whenever i choose an option [U]married[/U] only then spouseName is activated( Mouse Cursor is enabled) other wise in rest of the cases it should be in [U]read-only[/U] property. Please help me … | |
Hi, I have a task to convert HTML files to PDF files and i have no clue how to start. Can anyone advice as to how to go about doing this conversion from HTML to PDF? Thanks in advance, Regards, nsrivi | |
I want to focus back on the main page from an iFrame that is loaded as an element on the page. I am trying to make a toggle focus using CTRL to go between the two. I am using javascript to navigate the iFrame to different pages. Once the iFrame … | |
hey guys i have seen in twitter that, tweets appears without the refresh of page, i want same kind if script or functionality. any idea or related tutorial? Thanks in advance. | |
Hi All hope you can help its been driving me crazy .. i have a website where i change the content of a div using jquery, however i also want to change the background image at the same time but cant seem to get both to work together, not sure … | |
Hi there, I have put together an accordion menu using css, html (ul, li tags) and javascript. I'd like the arrows on the collapsible menus should change state depending on if they're open or not. The triangle turner should point right when the content is closed and can be opened. … | |
We are offering a coupon for a free soft drink to everyone who fills out our survey. When the user hits the Submit button at the end of the survey, a page appears with the coupon and a Print button. Currently, the whole page prints, including headings and links. I … | |
Hi so i have a search box of a student database. and when searched the results are displayed in a tabular form. i first used window.print to just print out the search results div if the users want some sort of a report. but when using window.print the css is … | |
Hi, I have an issue that I think you could help me with. I would like to make so that when I select something in my select box (my main category) a sub category for that will appear based on my selection in the main category. I assume you would … | |
Hi guys, Any help with the following will be greatly appreciated. I get this error :"document.getElementById("buttons" + questionNum) is null" with the following code: [code=javascript] <!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 runat="server"> <title>Untitled Page</title> <script type="text/javascript"> var questionNum = 1; function addQuestion() { var … | |
Hi all, i have a link that opens .doc files, .docx files, csv files or .xls or .xlsx files. i want silent printing of these files. Only one file opens at a time. If silent printing is not possible then atleast print dialog box should open up along with the … | |
The code works perfect in IE but I can't get it to work in Firefox. Is there a work around for firefox? Your time and help are greatly appreciated. dinkado | |
Do you guys know of any way to create a presentation on a website WITHOUT showing load bars? Background info: it is about photography website where someone after seeing full size picture could click to view it in a room setting. Right now my developer created a presentation where full … | |
The task is very simple; you have to work on two functions Encrypt and Decrypt. The encrypt function will encrypt the user input string with the help of encryption key. The decrypt function will decrypt the user input string with the help of encryption key. The output will Hints: Encoding: … | |
Evening all, Please could somebody take a look at the following form. Im calling [code]<?php if (isset($_POST['submit])){echo "clicked";}[/code] but its not registering. The only difference is that this is the first time ive used the "image" type. any help would be appreciated [code] <form method="POST"> <table width="468" border="0" cellspacing="0" cellpadding="0"> … | |
trying to call an external ajax function to exec the php script to update a table. it is somehow not working.. it is my first time programming in ajax, please point it out if there is anything obviously wrong. thanks. [code] <html> <head> <script>myAjaxFunctions.js</script> </head> <body> <button type="button" onclick="clearT1();">Clear TableOne</button> … | |
Hey guys, I was working on embedding image using the object tag with quicktime. i was succesfully embed it [COLOR="Red"]but it seems like i cannot display the playback controls (like "play","pause","stop" etc)[/COLOR]. Here's my code: [CODE] <object classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" codebase="http://www.apple.com/qtactivex/qtplugin.cab" width="478" height="383"> <param name="src" value="movie.mov" /> <param name="autoplay" value="false" /> <param … | |
Hello, I am using this script to rotate background images and it is working great HOWEVER we would like to control the order of the rotation and I am just not sure how to modify this code to do that? I have looked and tried several options but I am … | |
how to call get set properties present in class.cs file to javascript ? how to call a class which is in App_code through javascript ? | |
I am passing data from a textarea to a div with javascript. The problem is the div is ignoring line breaks. [code] document.getElementById('layer1').innerHTML = document.getElementById('reply').value.replace("\n", "<br /><br />"); [/code] e.g... i entered this in the textarea test1 test5 test6 the result was in the div test1 test5 test6 the div … | |
Still trying to get my head around some simple javascript issues the following works in php but not in javascript can someone point me in the right direction obviously my code is wrong. [code] if((dobyear==false) && (dobmonth==false) && (dobday==true)) { return 'noyearmonth'; } [/code] thanks | |
Hello I am writing a script that will replace the src of an image when the user hovers over it. I am using jquery and regex to accomplish this and have tested it on my local server but the src of the images on the live server is different and … | |
The JS starts with: <script> var tblId = 'TBGenericRecs0'; var nTable = ""; then later: function mapTable(){ nTable = document.getElementById(tblId); nRows = nTable.rows.length; Firefox says nTable is not a function and the code does not work. IE sees it as a variable and it works. What's up? Is there a … |
The End.