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...
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'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
Am I on the right track here?
The jist of this is that ultimately I want to set up a select box that's
pre-selected with data already in the DB.
The reason for the 2 queries is this:
i only want to allow my user to choose what's available in the DB
obviously, but also, a new election will...
Here's the scenario:
2 tables:
table1 ( a lookup table ) 1:N
id
ingredient
gross_cost
------------------------
table2 ( one record per item )
id
rec_ingredient
rec_unit ( a number )
rec_portion ( a unit of measurement )
rec_code ( unique identifier )
Now, using various queries I...
I can't seem to get the data I want from my tables.
Desired result is: recipe_ingredient (from recipe_ingredient ) paired with its corresponding prep instruction from instructions ( from prep )
I've tried any number of combinations of JOINS, the closest I get to what I want is using this...
Sorry for the lengthy post.
This script works in all respects, except that $recName is not being inserted into the DB. Hopedully some fresher eyes can help me out.
I've attempted: $GLOBALS["recName"],
global $recName, and also making $recName a session variable, still no luck.
As...
OK, this one has me a bit bonkers. I have a dynamically generated form, using PHP. I want to use JS to move a value into a field upon selection.
Each row is 5 fields long, the number of rows vary depending upon the query, but the same five fields are gernerated each row.
The value I want...
I read here the other day about not naming Submit buttons submit. At the time it didn't occur to me why, but I ran into the problem this morning. I carelessly left all the submit buttons named as Submit on a page calling $PHP_SELF with multiple forms. Took about an hour of figuring out why...
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.