[Webinar] Streamline your web hosting managementRegister Today

x
?
Solved

Executing a form

Posted on 1999-11-01
7
Medium Priority
?
149 Views
Last Modified: 2010-04-09
Hi I need to execute (submit) a form a soon as a page has finished loading. Does anyone now how?
0
Comment
Question by:bickel
  • 4
  • 3
7 Comments
 
LVL 4

Accepted Solution

by:
jbrugman earned 60 total points
ID: 2174144
<BODY onLoad="document.form.submit();")
0
 

Author Comment

by:bickel
ID: 2174178
I get the following error when I try this.

JavaScript Error: document.reloadForm.submit is not a
function

0
 
LVL 4

Expert Comment

by:jbrugman
ID: 2176277
try:
document.forms[0].submit();
or
document.forms[1].submit();
etc.
depending on whitch form it is.
0
The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

 

Author Comment

by:bickel
ID: 2176390
I give up with forms:-( It just won't work that way.

I found another way to aacomplish what i want much easier but I need help. What I now want to do is reload another frame with:

<body onLoad="parent.frames['navigation'].location.reload();">

This almost does what i need. Theres just one little bug waiting for a fix. The frame I reload is the result of a <form> and i should now repost the form data in the reload.
0
 
LVL 4

Expert Comment

by:jbrugman
ID: 2176633
What do you exactly want to do then?
Please explain, so you might get another solution then.
0
 

Author Comment

by:bickel
ID: 2176651
I wanted to reload a frame and repost the form data or execute a link or execute a query. But I now found a working solution.

<script language="javascript">
 function updateTree()
     {  
     parent.frames[1].location.href=document.links[0];
     parent.frames[2].location.href=document.links[1];
     parent.frames[3].location.href=document.links[2];
      }
</script>

<a href="worldnavigation.asp"></a>
<a href="dimension.asp"></a>
<a href="dimensionSaveDone.asp"></a>


Thanks for your help, I'm giving you the points anyway
0
 
LVL 4

Expert Comment

by:jbrugman
ID: 2176724
thanks:)
0

Featured Post

Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

Question has a verified solution.

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

This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
Find out what you should include to make the best professional email signature for your organization.
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 receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…

590 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