User Profile

Collapse

Profile Sidebar

Collapse
Leena P
Leena P
Last Activity: Apr 22 '10, 03:57 AM
Joined: Mar 10 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Leena P
    started a topic how to find if the query was successful
    in PHP

    how to find if the query was successful

    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
    See more | Go to post

  • [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
    See more | Go to post

    Leave a comment:


  • 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]...
    See more | Go to post
    Last edited by gits; Sep 9 '07, 10:20 AM. Reason: fix code tags

    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?
    See more | Go to post

    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);
    ...
    See more | Go to post

    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



    thanks
    See more | Go to post

    Leave 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


    ...
    See more | Go to post

    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');...
    See more | Go to post
    Last edited by acoder; Sep 5 '07, 11:23 AM. Reason: Added code tags

    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');...
    See more | Go to post
    Last edited by acoder; Sep 5 '07, 09:48 AM. Reason: Added code tags

    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...
    See more | Go to post
    Last edited by acoder; Sep 5 '07, 09:27 AM. Reason: Added opening code tag

    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...
    See more | Go to post
    Last edited by acoder; Sep 5 '07, 07:29 AM. Reason: Added languages to code tags
No activity results to display
Show More
Working...