473,396 Members | 1,724 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Welcome to all .Printing a hidden Data Field from the bowser using Javascript

Welcome to all who r helping and sharing their ideas with others.i am a new to this forum.Can any one say an immediate soln on my questions:
Qn1: How can i print a hidden data in the hidden data field in a form from the browser using javascript?
Qn2: Is it possible with Javascript? or any other solutions(other languages needed for it) ?
Qn3:Can i use the javascript to fetch the data from the database and sent to the hidden field found in a html form and i need to print that data?
Plz help me.i am in critical position
.i need this information immediately.

Thanks & Regards
Web pearl
Jan 12 '07 #1
1 1702
acoder
16,027 Expert Mod 8TB
Welcome to all who r helping and sharing their ideas with others.i am a new to this forum.Can any one say an immediate soln on my questions:
Qn1: How can i print a hidden data in the hidden data field in a form from the browser using javascript?
Qn2: Is it possible with Javascript? or any other solutions(other languages needed for it) ?
Qn3:Can i use the javascript to fetch the data from the database and sent to the hidden field found in a html form and i need to print that data?
Plz help me.i am in critical position
.i need this information immediately.

Thanks & Regards
Web pearl
1. To print the hidden data using javascript you can use
Expand|Select|Wrap|Line Numbers
  1. document.write(document.formname.hiddenfield.value);
Replace formname and hiddenfield with the name of your form and the hidden field name.
2. Yes it is possible with javascript, but it depends on what you require. If you're writing the page yourself, why do you need the hidden file value? Maybe you need to describe the problem in more detail.
3. No you cannot connect to the database with javascript. It is client-side. You need a server-side language for that, e.g. PHP, ASP, Coldfusion, etc.

Hope that helps.
Jan 12 '07 #2

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

Similar topics

10
by: Randell D. | last post by:
Folks, Perhaps someone can figure this out - this is 'the process of my script' I have a form whereby I can add multiple contacts to a single address. There is only one...
7
by: bass-man | last post by:
I am trying to include a dynamically changeable file in my website with PHP and Javascript so I am using a hidden field to hold the name of the file I want to include, and I am using the$_GET...
3
by: Greg Brewer | last post by:
I have a form. The form has input fields. The user enters information onto the form presses submit, the information goes to a database. All is good. Now, I want to change the form so that the...
2
by: Rodusa | last post by:
I have a hidden field inside one datagrid which I can't get to make it keep its state after a postback event. Look field: <input type="hidden" id="TxtHiddenItem_id" name="TxtHiddenItem_id"...
4
by: Magnus Blomberg | last post by:
Hello! I have a problem when using a hidden field to send a value to the server. Below you can see my code in simplyfied versions. What I'm trying to do is: 1. The user browses for a picture...
2
by: xenophon | last post by:
I added a Hidden Form Field to a form in the code behind. The value is being set in JavaScript client-side, but it is not persisting to the server in the PostBack. I know the value is being set...
2
by: Bill Steele | last post by:
I want to have a window pop up with a form. When the form is submitted, it needs to pass along the URL of the original window. If find on th web eight gazillion descriptions of how to pass data...
1
by: Andrew Burton | last post by:
I'm poking at a small "single page application" (SPA), ala TiddlyWiki, to act as kind of a local, single-user version of Twitter (no real application, except to familiarize myself with JavaScript)....
14
Frinavale
by: Frinavale | last post by:
I've been trying to test my web application using Internet Explorer 8 (release candidate 1) and have been experiencing some major problems. I'm hoping you can help me with this one. I have a...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
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,...

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.