Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Simple java question

Posted on 2000-03-09
6
Medium Priority
?
216 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
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
LVL 33

Accepted Solution

by:
knightEknight earned 200 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
When crafting your “Why Us” page, there are a plethora of pitfalls to avoid. Follow these five tips, and you’ll be well on your way to creating an effective page.
In this tutorial viewers will learn how to embed Flash content in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <object> tag to embed Flash content.: To specify that the object is Flash content, d…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

963 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