473,466 Members | 1,382 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

createElement in Value

3 New Member
Hi, I know little english.

my page in create textbox:


var hedefKods = document.createElement("INPUT");
hedefKods.type= "text";
hedefKods.name = "hedefKod";
hedefKods.ID = "hedefKod";
hedefKods.size = "6";
urlEditCell.appendChild(hedefKods);
.....

and open a popup.

how is in popup textbox value to carry my page?
Oct 27 '06 #1
3 2088
nickneyime
3 New Member
I try in popup code:

opener.document.all.hedefKod.value= 'deneme';

but I can't
Oct 27 '06 #2
nickneyime
3 New Member
help me please
Oct 27 '06 #3
Thevercad
26 New Member
hi,

is this what you are looking for?

you have an html screen. and in it, you have a textbox with a value in it.
you open a popup window from that screen, and in that popup window you want to access that textbox's value. If this is your problem, then use the following code.

The code inside the html screen.

Expand|Select|Wrap|Line Numbers
  1. <html>
  2.     <head>
  3.         <script language="javascript">
  4.             function appendObj(){
  5.                 var txtInput = document.createElement("INPUT");
  6.                 txtInput.type="text";
  7.                 txtInput.id="txtInput"
  8.                 txtInput.value="The text has this value";
  9.                 DivAppend.appendChild(txtInput);
  10.             }
  11.         </script>
  12.     </head>
  13.     <body onLoad="appendObj();">
  14.         <div id="DivAppend">
  15.         </div>
  16.         <a href="#" onClick="window.open('Trial2.html?TextValue=' + document.getElementById('txtInput').value,'title','250,250')">Go to PopUp</a>
  17.     </body>
  18. </html>
Code for the popup screen, named as Trial2.html, is the following.

Expand|Select|Wrap|Line Numbers
  1. <html>
  2.     <head>
  3.         <script language="javascript">
  4.             function displayTextValue(){
  5.                 var request = location.href;
  6.                 var getit = new Array();
  7.                 getit=request.split('TextValue=');
  8.                 var result =  getit[1];
  9.                 document.getElementById('Text1').value = result;
  10.             }
  11.         </script>
  12.     </head>
  13.     <body>
  14.         <a href="#" onClick="">Put Value in textBox</a>
  15.         <input type="text" id="Text1" value="" />
  16.     </body>
  17. </html>
I dont know if this is exactly what you want. But i hope, it helps in some way.
Oct 31 '06 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

25
by: kie | last post by:
hello, i have a table that creates and deletes rows dynamically using createElement, appendChild, removeChild. when i have added the required amount of rows and input my data, i would like to...
2
by: kie | last post by:
hello, when i create elements and want to assign events to them, i have realised that if the function assigned to that element has no parameters, then the parent node values can be attained. ...
3
by: acecraig100 | last post by:
I am fairly new to Javascript. I have a form that users fill out to enter an animal to exhibit at a fair. Because we have no way of knowing, how many animals a user may enter, I created a table...
7
by: Tarik Monem | last post by:
Why am I having so much trouble with using DOM in IE & Opera to create, then remove an Object & Embedded element? Here's the code that works in Firefox (Mac/Win/Linux) and Safari, but not on IE or...
7
by: r_ahimsa_m | last post by:
Hello, I am learning JavaScript. I have a table on HTML page:                 <table id="announcement_fields" border="0">                 <tbody>                 <tr>...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.