Solved

Simple java question

Posted on 2000-03-09
6
183 Views
Last Modified: 2010-04-09
My pageis in  a frame and has a subbmit button, how can I automatically
get this button pushed once the page has loaded?
The idea is I have a frame loaded with hiddens, I want these hiddens to appear in another frame that is really a button area for submitting the hidden data.
regards
0
Comment
Question by:rickyr
  • 3
  • 2
6 Comments
 
LVL 8

Expert Comment

by:xabi
ID: 2600846
Why to click a button? Why don't you make this:

If your button is something like:
<input type="button" value="my button" onclick="do_domething()">
Delete this button and add this to the body tag:
<body .... onload="do_something()">

If this is not what you was looking for just explain your question better.

xabi
0
 
LVL 33

Expert Comment

by:knightEknight
ID: 2600848
<BODY onLoad='document.nameofmyform.submit();'>
0
 
LVL 33

Expert Comment

by:knightEknight
ID: 2600850
DOH!  xabi, you are too fast!
0
Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 
LVL 33

Accepted Solution

by:
knightEknight earned 50 total points
ID: 2600857
I agree, but if clicking the button is really what you want to do:

<BODY onLoad='document.nameofmyform.nameofmysubmitbutton.click();'>

<FORM name='nameofmyform'  ... >
<INPUT type='submit' name='nameofmysubmitbutton'>
0
 
LVL 8

Expert Comment

by:xabi
ID: 2600995
That's right knightEknight

:)

           xabi
.... as fas as you can see ...
         hehehehe
0
 
LVL 3

Author Comment

by:rickyr
ID: 2601773
Thats what I wanted.
Don't know what I was supposed to do with....
do_something()
Was there supposed to be a function written to hadle this?
Knight's answer was more complete, thanks anyway.
Best Regards
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Building a website can seem like a daunting task to the uninitiated but it really only requires knowledge of two basic languages: HTML and CSS.
Find out what you should include to make the best professional email signature for your organization.
In this Micro Tutorial viewers will learn how to create navigation buttons that change on rollover, using CSS (Continuation of the CSS Image Sprite tutorial) Create a parent ID for all the list items       - Specify position: absolute and display: block…
In this tutorial viewers will learn how to style transparent/translucent elements using alpha transparency in CSS Start with a normal styled element, such as a div.: Define its "background-color" property as "rgba (255, 255, 255, .5): The numbers in…

808 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question