Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
M

malvik

@malvik
About
Posts
7
Topics
2
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Funny code again
    M malvik

    "Fishing" through UI code:

    if($bad===FALSE)//Good
    $HTML.=$this->data[$this->curr][3];
    else//Bad
    $HTML.="NOTICE: You would not specify width, height, or position in the div header, if you knew what was best for you.";

    The Lounge delphi com tutorial

  • Good tutorial on writing APIs (internal and external) in PHP
    M malvik

    Hi All, I just spent an overwhelming morning trying to read up on how to write a good API to a website's service(s). For example, I want to write an API for my site's search feature that can be used within my site itself and can also be integrated with search functionality on my second website on another domain. I understand it is a restful api and am trying to find a tutorial other than gen x design that will show me how to write a good internal API that can be extended to be external too. Anyone faced this before or anticipates to face it in the future? Please help. --MM

    Web Development tutorial php design json help

  • Dynamically Added form controls using Javascript do not get recognized as form elements?
    M malvik

    I use the Web Developer Toolbar extensively and also Firebug. Both confirm that the DOM placement of my textboxes is correct and in fact within the form. I just migrated the files to my localhost and it works on that perfect so I think it is an environment thing.

    Web Development help javascript php html sysadmin

  • Dynamically Added form controls using Javascript do not get recognized as form elements?
    M malvik

    Thanks for trying John. I have succesfully implemented this on different environments and never came across this problem so it looks like a server quirk. Such moody bugs are best handled with "work arounds" as I did. Should just leave it be I guess.

    Web Development help javascript php html sysadmin

  • Dynamically Added form controls using Javascript do not get recognized as form elements?
    M malvik

    Sure here's my story: Here is the JS function that adds a row to a table inside a form that contains the textbox in question. function ppl_add_admin_asst(id, resultsArray){ if(resultsArray.length > 0){ var name = resultsArray[..][..]; var id = resultsArray[..][..]; var str = "<tr id='asst_"+id+"_row'><td>"; var str1 = "<input type='text' readonly='readonly' name='admin_asst["+id+"][name]' id='admin_asst_"+id+"_name' value='"+name+"' />"; str1 += " <span class='form_elements_edit' style='font-weight:bold'><a href='#' onclick=\"removeRow('admin_asst_"+id+"_row');\"><img border='0' src='images/buttons/edit.gif' > Remove</a></span>"; str += str1+"</td></tr>"; //appending it to the table which is already a part of the form should include this new textbox to be part of the form $("#assts_table").append(str); //However, I need to explicitly add it to the form as well for it to work correctly $("#edit_form").append(str1); cancelFindProfile(id); } }

    Web Development help javascript php html sysadmin

  • Dynamically Added form controls using Javascript do not get recognized as form elements?
    M malvik

    Thanks John, It is a client side command that adds a textbox to a container within the form. Why does the client not send these new form controls to the server? What is the solution to this? I had to explicitly add the form element to its container (for display to the user) and also add it as a child to the form itself. I'm sure there is a more elegant solution to this.

    Web Development help javascript php html sysadmin

  • Dynamically Added form controls using Javascript do not get recognized as form elements?
    M malvik

    Hi all, This is the first time I faced this problem when trying to achieve this simple task. I have a form, with an add button which when clicked, allows the user to search and select data which gets dynamically added to my form as a textbox. When I submit this form, this dynamically added textbox, along with anymore added with this feature are not recognized as part of the form and do not get sent to the server side script. I verified this using an iterator through all form elements. I had to explicitly add the textbox (its HTML) to the container as well as a child to the form. Only then did it get sent to my PHP script. Has anyone in this weird world ever faced this problem? I checked problems with "disabled, readonly, etc" and also made sure theres no ID conflicts or name conflicts with the rest of the form. Though my app works just fine with this work around, I am baffled as to why this has never happened to me in all the times I've implemented such a feature before but now. Any help would be appreciated.

    Web Development help javascript php html sysadmin
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups