2 of the columns in my JTable hold monetary values ( double).
If the value in cell A changes, then value B should be updated with the result of a calculation performed using the new value in A and the old value in B.
Sort of like a spreadsheet.
I can't seem to set the new value of A or B...
In a JS dynamically generated table, if I do this:
var currentRow = document.createElement('tr');
currentRow.setAttribute('onclick', 'nukeNode(this.id);');
I get no response. When i replace the function nukeNode() with an alert for testing purposes, the event handler is fired not when i...
Ok dokie!
I make selections from one large select list, then add them to one smaller select list. No problem.
Problem is that only the last item selected is posted.
Now I know if I name the select as : name[] it declares an array and all the selcted options are posted, however, JS doesn't...
In this case I'm restricing the user to IE anyway, ( it's an intranet ).
The select lists are dynamically generated by PHP so the number on any given call to the page varies, and the form is defined like so:
<form name="frmTest">
<select name="frmTest[selIngredient[<?php echo $i...
Thanks for your answers:
Point of clarification: Tek-tips faq 216-335 (6b on the FAQ for JS ) gives an example of what I'm trying to do, and the author uses an add() method to add the new Option, and in fact this does work in my code.
As to your second point, my thought in naming my select...
Thanks for your posts guys. i've made a test html page which shows what I'm getting. if you care to cut and paste you'll see.
I've narrowed my problem down to the innermost block of code in the function,> I'm having trouble synchronizing the calling function select box with it paired...
OK...here's my latest incarnation of my script. Essentially this adds an
option to another select list after checking against a lookup array .
My problem now is that the script only works peoperly on the first select
list in the list. It "appears" to work with the others, however...
The below code should add an option to a select box for each element in ana array.
I get one item added then an invalid argument error.
Any ideas?
function addToSelect(arr)
{
var oOption = document.createElement("OPTION");
for(var i = 0; i < arr.length; i++ )...
I use 2 pages for authorization, one is straight HTML holding the login form, the second is an intermediate page which processes the data posted by the form...depending on the validity of the data it then redirects accordingly...
the login page
----------------
<form...
I'd like to print the same form 3 times per page, like chekcs on a page...in this case it's for gift certificates.
For example: frmSample.PrintForm prints once per page.
Can anyone point me in the right direction?
Thanks,
PAS
Can someone give me an example of using regular expressions in Delphi?
I well aquainted with regular expression syntax, jut implementing it in Delhi has me stumped.
Thanks,
phpPete
I found this on SitePoint.com
---
magic_quotes, addslashes(), and stripslashes()
magic_quotes_gpc, when on, automatically adds slashes to all GET/POST/COOKIE data so that you don't need to use addslashes() before using GET/POST/COOKIE data in MySQL queries, etc. (e.g. with magic_quotes_gpc OR...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.