Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 24 results for
spanid
- Page 1
Pressing the enter key receive extra invalid data
Programming
Web Development
13 Years Ago
by albertkao
…the checked attribute --> <c:set var="
spanid
" value="span${alert[0]}" /> …var="format_start" value="<span id='${
spanid
}' class='fg-green'>" /> &…[6]} onClick="postCheckbox(${alert[0]}, '${boxid}', '${
spanid
}');"> <spring:message code="alert.ack…
Calculating Price in JavaScript
Programming
Web Development
14 Years Ago
by Rblalock
…; />'+sections[2] } imageclock.display=function(){ var clockinstance=this this.
spanid
="clockspan"+(imageclock.instances++) document.write('<span id….digits[11] : imageclock.digits[10])+'" />' document.getElementById(this.
spanid
).innerHTML=currenttimeHTML } </script> <script type="text…
Modifying calcPrice() function in JavaScript
Programming
Web Development
14 Years Ago
by Rblalock
…; />'+sections[2] } imageclock.display=function(){ var clockinstance=this this.
spanid
="clockspan"+(imageclock.instances++) document.write('<span id….digits[11] : imageclock.digits[10])+'" />' document.getElementById(this.
spanid
).innerHTML=currenttimeHTML } </script> <script type="text…
Re: Modifying calcPrice() function in JavaScript
Programming
Web Development
14 Years Ago
by Airshow
… />' + sections[2]; } imageclock.display = function(){ var clockinstance = this; this.
spanid
= "clockspan" + (imageclock.instances++); document.write('<span id….digits[11] : imageclock.digits[10])+'" />'; document.getElementById(this.
spanid
).innerHTML = currenttimeHTML; } </script> <script type="…
datagrid, innertext, javascript, database update
Programming
Web Development
16 Years Ago
by vsr
…checkbox = chk var lstIndx = chkId.lastIndexOf('chkComplete') var
spanId
= chkId.substr(0,lstIndx) + 'lblDate'; var spanText …= document.getElementById(
spanId
); if (checkbox.checked == true) { var currentDate =…
Re: datagrid, innertext, javascript, database update
Programming
Web Development
16 Years Ago
by vsr
…, chkId) { var checkbox = chk var lstIndx = chkId.lastIndexOf('chkComplete') var
spanId
= chkId.substr(0,lstIndx) + 'lblDate'; var spanText = document.getElementById…(
spanId
); if (checkbox.checked == true) { var currentDate = new Date() var crDT = …
Re: datagrid, innertext, javascript, database update
Programming
Web Development
16 Years Ago
by vsr
… var checkbox = chk var lstIndx = chkId.lastIndexOf('chkComplete') var
spanId
= chkId.substr(0,lstIndx) + 'lblDate'; var spanText = document.…getElementById(
spanId
); //chk.parentNode.childNodes(2).value=chk.parentNode.parentNode.childNodes…
Re: HTML/JavaScript shopping cart help
Digital Media
UI / UX Design
14 Years Ago
by Rblalock
…sections[2] } imageclock.display=function(){ var clockinstance=this this.
spanid
="clockspan"+(imageclock.instances++) document.write('<span id…[11] : imageclock.digits[10])+'" />' document.getElementById(this.
spanid
).innerHTML=currenttimeHTML } function checkForm1() { if (document.form1.prod.selectedIndex …
Re: Calculating Price in JavaScript
Programming
Web Development
14 Years Ago
by network18
you need to call it onFocus of the each input element for the cost. For example, user inserts quantity for first product then tabs to the next element or puts cursor inside the next element i.e. cost's box, the function should get executed with the element id passed to it and will assign the calculated cost to it. It will be for each cost element. …
Re: Calculating Price in JavaScript
Programming
Web Development
14 Years Ago
by Rblalock
How would I need to modify the calcPrice() function to accept it as the element id? I know this may be a noob question...as I am indeed a noob at JavaScript
Re: Calculating Price in JavaScript
Programming
Web Development
14 Years Ago
by Rblalock
All I need to know now is how to modify the calcPrice() function which is as follows [CODE]function calcPrice() { product = document.form1.prod; pindex = product.selectedIndex; product_price = product.options[pindex].value; quantity = document.form1.qty; qindex = quantity.selectedIndex; quantity_ordered = quantity.options[qindex].value; …
Re: Modifying calcPrice() function in JavaScript
Programming
Web Development
14 Years Ago
by Airshow
Rblalock, In my experience, the best approach for form calculations of this type is to have a single (or supervisor) function which performs all calcs throughout the whole form (spreadsheet-fashion), and to call this function from a variety of event handlers (including window.onload). The calc function would look something like this: [CODE=…
Re: Modifying calcPrice() function in JavaScript
Programming
Web Development
14 Years Ago
by Rblalock
[QUOTE=Airshow;1046724]Rblalock, In my experience, the best approach for form calculations of this type is to have a single (or supervisor) function which performs all calcs throughout the whole form (spreadsheet-fashion), and to call this function from a variety of event handlers (including window.onload). The calc function would look …
Re: Modifying calcPrice() function in JavaScript
Programming
Web Development
14 Years Ago
by Airshow
Rblalock, OK, a fully worked up version of your page is attached, complete with my calc() function and several events to stimulate it. You will find exactly the same approach used [URL="http://homepage.ntlworld.com/ajfurn/time_calc/"]here[/URL] though the html is largely invisible (added dynamically by JavaScript DOM methods). [B…
Re: Modifying calcPrice() function in JavaScript
Programming
Web Development
14 Years Ago
by Rblalock
Won't let me open up the zip file. Says that it is invalid or corrupted.
Re: Modifying calcPrice() function in JavaScript
Programming
Web Development
14 Years Ago
by Airshow
It was made with winrar and I changed the extension from .rar to .zip, which is normally OK. Try changing your local copy back to .rar and see if it that's any better. If not then I'll post the contents in direct in the thread. [B]Airshow[/B]
Re: Modifying calcPrice() function in JavaScript
Programming
Web Development
14 Years Ago
by Rblalock
It's still not opening for me which sucks. I do appreciate you being so generous by helping a noob like me. Thank you lots.
Re: Modifying calcPrice() function in JavaScript
Programming
Web Development
14 Years Ago
by Rblalock
Airshow, Thank you so much for helping me with this confusing aspect of web design/development. I appreciate the entirety of your help and I am not sure how I can repay you. I cannot express enough thanks to you for helping me with this. Thank you!!!
Re: datagrid, innertext, javascript, database update
Programming
Web Development
16 Years Ago
by SheSaidImaPregy
Have you tried entering in your own values as well? Try entering in your own date value and see if it is posting correctly. Then get back to us. Oh, and get rid of the space between onclick and = onclic[COLOR="Green"]k =[/COLOR]"getCurrentDateTime(this,this.id)"
Re: datagrid, innertext, javascript, database update
Programming
Web Development
16 Years Ago
by SheSaidImaPregy
What is also might be, cause I had the same problem when looping through checkboxes to check if they were checked, is the postback variable. On mine, I had to have "if Not Page.IsPostBack then" on my databinder or it did not work. Make sure that when binding your information for checking your checkboxes, that your data is bound on every …
Re: datagrid, innertext, javascript, database update
Programming
Web Development
16 Years Ago
by SheSaidImaPregy
Can you please post your update code, cause it doesn't seem to have a flaw on what you have posted so far.
Re: datagrid, innertext, javascript, database update
Programming
Web Development
16 Years Ago
by vsr
I solved my problem. After finding the control `((TextBox)dgItem.FindControl("txtDate");)` I am getting the client Id and replacing the "_" with "$" to get the name of the control. I got it from the viewsource page. I used Request.Form to get the value to update the database. CODE BEHIND: private void Save…
Re: datagrid, innertext, javascript, database update
Programming
Web Development
16 Years Ago
by SheSaidImaPregy
oh I thought you solved this already! I would have helped otherwise :)
Re: datagrid, innertext, javascript, database update
Programming
Web Development
16 Years Ago
by vsr
Hi SheSaidImaPregy Thanks, I am sure I will need help again some time.
Search
Search
Forum Categories
Hardware/Software
Programming
Digital Media
Community Center
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
Meet People
Forums
Top Members
Community Functions
DaniWeb Premium
Newsletter Archive
Markdown Syntax
Community Rules
Developer APIs
Connect API
Forum API Docs
Tools
SEO Backlink Checker
Legal
Terms of Service
Privacy Policy
FAQ
About Us
Advertise
Contact Us
© 2024 DaniWeb® LLC