Jump to content

najubudeen

Members
  • Posts

    2
  • Joined

  • Last visited

najubudeen's Achievements

Newbie

Newbie (1/7)

0

Reputation

  1. hi, i have a #e48f8f hex color value. I want to remove hash symbol from the hex color value. how do i do that in php?
  2. hi, i have a pop up window i have written my whole codes below. i have dynamic div tags structure. if i clicked any an char tag link in a parent window, it opens a child window.it has two form fields like text box and button. if a user add text into text box of child window and click button, the value should be added into parent window textbox value near to already clicked an char link. how do i do that. this is my JavaScript in parent window parent.html function opn_wind_par_fing(clicked_id){ window.open("child3-find.html","Open new window","width=550,height=170,left=150,top=200,toolbar=1,status=1,"); window.buttonid = clicked_id;} this is my HTML in parent window parent.html <form method=post action='' ><div id="main"><a href="javascript:void(0);" id="my_id-0" name="sho-name" onclick="opn_wind_par_fing(this.id);">click</a><div><input type="textbox" id="my-input-0" class="input-class" value=""/></div></div><div id="main"><a href="javascript:void(0);" id="my_id-1" onclick="opn_wind_par_fing(this.id);">click</a><div><input type="textbox" id="my-input-1" class="input-class"value="" /></div></div><div id="main"><a href="javascript:void(0);" id="my_id-2" onclick="opn_wind_par_fing(this.id);">click</a><div><input type="textbox" id="my-input-2" class="input-class" value=""/></div></div></form> it is my JavaScript in child window child3-find.html $(document).ready(function(){ $('#my_btn').click(function(e){ e.preventDefault(); var input_value = $("#txt_field").val(); var clicked_elem_id = window.opener.buttonid; $('#'+clicked_elem_id).next().$(window.opener.document).find('.input-class').input_value; window.close(); });}); my HTML in child window child3-find.html <form method="post" action="">Your name<input type="text" id="txt_field" size=12 value="test"><input type="button" id="my_btn" value="Send"></form>
×
×
  • Create New...