15,127 Topics

Member Avatar for
Member Avatar for MDanz

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 …

Member Avatar for Graphix
0
107
Member Avatar for mangel.murti

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 …

Member Avatar for mangel.murti
0
3K
Member Avatar for shadiadiph

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 …

Member Avatar for shadiadiph
0
117
Member Avatar for shadiadiph

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 …

Member Avatar for shadiadiph
0
110
Member Avatar for SONAVENKAT

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> …

Member Avatar for jt86442
0
151
Member Avatar for Ruko

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 // …

Member Avatar for fxm
0
169
Member Avatar for hongchai

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 + " " …

Member Avatar for umandajayo
0
228
Member Avatar for jt86442

[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 …

Member Avatar for jt86442
0
80
Member Avatar for nsrivi

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

Member Avatar for madz015
0
170
Member Avatar for brinegart

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 …

Member Avatar for Lusiphur
0
132
Member Avatar for dalip_007

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.

Member Avatar for dalip_007
0
76
Member Avatar for Simonwhite80

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 …

Member Avatar for fxm
0
989
Member Avatar for prakashsd

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. …

Member Avatar for fxm
0
136
Member Avatar for amjones

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 …

Member Avatar for fxm
0
249
Member Avatar for rukshilag

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 …

Member Avatar for NGOBOLA
0
106
Member Avatar for kidanr

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 …

Member Avatar for kidanr
0
179
Member Avatar for Towlie

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 …

Member Avatar for Taywin
0
244
Member Avatar for gurpreet_ka

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 …

Member Avatar for fxm
0
177
Member Avatar for dinkado

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

Member Avatar for fxm
0
255
Member Avatar for misia2010

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 …

Member Avatar for scrappedcola
0
107
Member Avatar for gazzy1

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: …

Member Avatar for rajarajan2017
-1
216
Member Avatar for whiteyoh

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"> …

Member Avatar for rajarajan2017
0
109
Member Avatar for k2k

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> …

Member Avatar for Graphix
0
461
Member Avatar for upstream

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 …

Member Avatar for upstream
0
114
Member Avatar for jlhwebgal

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 …

Member Avatar for fxm
0
139
Member Avatar for akbar36

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 ?

Member Avatar for kvprajapati
-1
65
Member Avatar for MDanz

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 …

Member Avatar for fxm
0
107
Member Avatar for shadiadiph

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

Member Avatar for fxm
0
135
Member Avatar for mikeandike22

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 …

Member Avatar for fxm
0
112
Member Avatar for jb00786

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 …

Member Avatar for jb00786
0
189

The End.