I have a insert query which is fired when the form is submitted sometimes users enters illegal characters or for some reason query is not executed properly
how to find if the query has run successfully or not
User Profile
Collapse
Profile Sidebar
Collapse
Leena P
Last Activity: Apr 22 '10, 03:57 AM
Joined: Mar 10 '07
Location:
-
how to find if the query was successful
-
[QUOTE=Leena P]i want to basically take some information for the product and let the user
enter the the material required to make this product -
Thanks
my onchange event function works in select option
but then it gives me error in mozilla
Error: uncaught exception: [Exception... "Node cannot be inserted at the specified point in the hierarchy" code: "3" nsresult: "0x80530003 (NS_ERROR_DOM_H IERARCHY_REQUES T_ERR)"
this is in the add_rows function
when i try to append
[CODE=javascript]...Leave a comment:
-
but i'm assigning values to select box in the main program test.php from the database to the javascript array variable
and creating the select boxes in the test.js
so is it because of that it is creating problem?Leave a comment:
-
i writing a code to create select box
[CODE=javascript]function getSelectBoxDOM (options,nm) {
selectBox =document.creat eElement('selec t');
for (x=0; x < options.length; x++) {
optionItem =document.creat eElement('optio n');
optionItem.appe ndChild(documen t.createTextNod e(options[x]));
selectBox.appen dChild(optionIt em);
...Leave a comment:
-
same problem i changes it to this.value
i'm setting the options in the getselectbox function
and then actual database values are passed in test.php program
can't understand what is wrong with my code
thanksLeave a comment:
-
[CODE=javascript]selectBox.oncha nge = function() {
showmcode(selec tBox.value);
}[/CODE]
i did this but now it add a record but once i select value from dynamically added select box the value of m_name is not shown in corresponding text box there and my static rows um and m_name disappears which i had selected and where onchange event it had executed ajax script to display m_name and um
...Leave a comment:
-
i tried that but then my add rows button does not create new row some error
but if comment that part then it works
how to give onchage event when the select box is created
[CODE=javascript]function getSelectBoxDOM (options,nm) {
selectBox =document.creat eElement('selec t');
for (x=0; x < options.length; x++) {
optionItem =document.creat eElement('optio n');...Leave a comment:
-
i tried that but then my add rows button does not create new row some error
but if comment that part then it works
how to give onchage event when the select box is created
[CODE=javascript]function getSelectBoxDOM (options,nm) {
selectBox =document.creat eElement('selec t');
for (x=0; x < options.length; x++) {
optionItem =document.creat eElement('optio n');...Leave a comment:
-
[code=javascript]j=1;
function add_rows(obj){
tabCols = new init_table();
trObj = document.create Element("tr")
col_names = new Array("chk","m_ cde","m_name"," um","qty","over ages");
for(i=0;i<tabCo ls.length;i++){
tdObj = document.create Element("td");
/* if(create_o...Leave a comment:
-
php and ajax dynamically created select box onchange event
i want to basically take some information for the product and let the user
enter the the material required to make this product
1.first page test.php
which takes product code and displays prodcut anme have used
ajax to avoid refreshing of page this works fine
2.now i have created one row with
checkbox|select box|text|text|t ext|text|
where in the select box values are fetched from table here...
No activity results to display
Show More
Leave a comment: