In article <11**********************@g49g2000cwa.googlegroups .com>, el*************@yahoo.com says...
Any tips on how to get this to work?
var myvar = 'sometextfield'; document.cost.myvar.value = 2;
It keeps saying myvar is null or not an object even though 'sometextfield' has a value.
Do you have a form called "cost" and a field element called "myvar"?
Looks to me like you've got it arse about face, going on the code you've
given. To set a form field's value, just do
document.FormName.FieldName.value = jsVariable;
You could also use getElementById, but start with the easy way.
<el*************@yahoo.com> wrote in message
news:11**********************@g49g2000cwa.googlegr oups.com...
Any tips on how to get this to work?
var myvar = 'sometextfield';
--------------------------------------
Maybe the above line should be:
var myvar = document.formName.sometextfield.value;
Or
var myvar = document.forms[0].sometextfield.value;
(assuming the first form contains your sometextfield)
I hope you can help as this is driving me crazy!
I have an asp which has 3 frames on it as follows:
<FRAMESET rows="50%,*,10%">
<FRAME src="rundetailstop.asp" name="rundetailstop"...
Hi there
I'm hoping that someone can help me with a question I have about
javascript syntax.
I got an html page that uploads an image and some text field to a
database.
What I'd like to do...
Below is some of the code I'm using.
I have a PHP page generating a list of items. I've made it so that
each one has a radiobutton with a unique value. You can click on the
radiobutton and it will...
Hello,
I really, really, need some help here - I've spent hours trying to find a
solution.
In a nutshell, I'm trying to have a user input a value in form's
textfield. The value should then be...
I have created a asp.net date picker control using Javascript. I wanted
to do this to avoid doing post back when the calendar window is
launched. It works like charm.
But the challenge is - the...
Hi all.
I am new member of this group.
I have a problem with currency formatter function I made. On onkeyup's
method of a textfield I add function below:
<snip>
function formatCurrency(elm)...
Hi !
i am a newbie and dont know javascript much. what i really need is a simple javascript code that can insert number in the value section of the different forms from the one form.
FORM 1:...
I was trying to create an applet with a TextField that would only accept an integer, and ignore any other keystrokes. Eg, if a user typed in an 'f' into the field, the TextField should ignore it, and...
I want to store a value that I enter in a textfield in a session variable to use on another page without submitting the value to a data table.
I tried:
<% Session(“firstname”)=...
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,...
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...
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,...
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new...
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...
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...