Solved

Simple java question

Posted on 2000-03-09
6
154 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
Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

 
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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

This is a PowerShell web interface I use to manage some task as a network administrator. Clicking an action button on the left frame will display a form in the middle frame to input some data in textboxes, process this data in PowerShell and display…
This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
In this tutorial viewers will learn how add a full-size background image to a webpage using CSS3. Create a new HTML document with an internal stylesheet.: In CSS, define the html element to have a background image. Use a high resolution image.: In t…
In this tutorial viewers will learn how to position items using CSS's three positioning types Create a new HTML document with an internal stylesheet.: Create another div in CSS and name it Absolute : Type "position:absolute;" and "top:10px; left:50p…

747 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now