473,385 Members | 1,396 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

a question about auto submit to a frame

Hi,
There are two frames in an asp page.When a frame loads,I submit a form
to the other frame in onload event.Sometimes the code works fine,but
sometimes it will submit to a new window.
Why does it happen? how to resolve it?

Thanks in advance!

jack
Jul 19 '05 #1
1 1496
simply means that the other framewasn't loaded yet, so it didn't really
'exist'

make sure that 'the other frame' is loaded before you try posting to it...

do something like
if (window.FRAMENAME) {
do_submit_function()
} else {
setTimeout("this_function()", 2000)
}

so if 'the other frame' isn't loaded yet, it'll wait 2 secs and try again...

careful tho, coz it'll keep trying so make sure that 'the other frame' WILL
be there.

cheers and good luck

"jack.lee" <le***@21cn.com> wrote in message
news:O5**************@TK2MSFTNGP09.phx.gbl...
Hi,
There are two frames in an asp page.When a frame loads,I submit a form
to the other frame in onload event.Sometimes the code works fine,but
sometimes it will submit to a new window.
Why does it happen? how to resolve it?

Thanks in advance!

jack

Jul 19 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Scott Castillo | last post by:
Does anybody know how to auto-submit a form in PHP without Javascript? For instance, submit form variables to self, validate the data in PHP on same page, then, if no errors, auto-submit the data...
0
by: Stephen Witter | last post by:
I have two asp pages. Both have similar purposes. I am trying to get the inline frame in both pages to update (submit) when a user clicks on a drop-down box (I would prefer the change or after...
2
by: Halldór Ísak Gylfason | last post by:
In my application I have an iframe that is empty (and not visible) initially, however when a user presses a button a form is programmatically submitted and the target is set to the IFrame. I...
2
by: Colin McKinnon | last post by:
Hi all, I've got two frames, one with a form ('main') and one with some clickable images ('tp'). The clickable images call a function in 'main' (code below) which in turn calls the .submit() or...
0
by: tony wong | last post by:
i have a page with top frame (html) and bottom frame (asp) the top frame come with choices and then submit value to bottom asp page by submit button how can i do it if i wish the bottom asp to...
5
by: Scott | last post by:
How can I tell a form to submit itself in the code-behind in vs.net? In other words, in javascript I can do blah.submit() - how do I do this in vs.net code-behind?
3
by: Robin | last post by:
Hi, I have a question: If I have a frameset, frame1 and frame2. On frame2 I have a datagrid, on which I can add/update/delete rows. If I submit that page, I catch these changes in events and...
3
by: Larry | last post by:
I have a page that uses 2 frames. In the upper frame are buttons that add text things to the form text boxes in the lower frame using javascript. The form is then submitted to another page. Is...
4
by: malambing57 | last post by:
How do I submit using framet set. I want the top frame to submit the form on my bottom frame when time is up. On my top frame, I have the following code; if((min == 1) && ((sec >= 8) && (sec ...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.