473,372 Members | 849 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,372 software developers and data experts.

Form Submittal In Multiple Windows?

Hello,

I have several links on my page that run reports. Each link submits a
seperate form. The onclick event of the link opens a new named window
where I control the "chrome". The form's target is set to that new
window.

This works as expected, but is not exactly what we need. We'd like to
open a new window with no features for each click of the link (So the
user can see the previous report, since it may have been run using
different paramters). Currently each click of the link displays the
report in the same window that was previously opened. Is this
possible?
Jul 20 '05 #1
1 1622
John Floria wrote:
I have several links on my page that run reports. Each link submits a
seperate form. The onclick event of the link opens a new named window
where I control the "chrome". The form's target is set to that new
window.

This works as expected, but is not exactly what we need. We'd like to
open a new window with no features for each click of the link (So the
user can see the previous report, since it may have been run using
different paramters). Currently each click of the link displays the
report in the same window that was previously opened. Is this
possible?


You could try changing the target attribute of the report form as each
report is opened, along the lines of:

----

var featureString="height=400,width=600";
var windowCount=0;
var windowName="myReportWindow";
function tryIt( oForm)
{
var nextWindowName=windowName + (windowCount++);
oForm.target = nextWindowName;
window.open("", nextWindowName, featureString);
return true;
}

....
and in HTML
....

<form name="report0" action="report0.php" onsubmit="tryIt(this)">
...
<input type="submit"
value="trial report0 with these values (opens new window)">
</form>

------

Technially seems to checkout in Mozilla 1.4, IE6.0 and Opera 7.2 (with
preferences set to allow unrequested popups of course).

HTH

Dom


Jul 20 '05 #2

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

Similar topics

2
by: Logical | last post by:
I have a form which houses basic inputs, as well as a few multiple select forms. I need to parse all the 'values' which are in this multiple select form (it gets manipulated dynamically client...
2
by: e | last post by:
IE6. I have a form that can take a while to process once the user submits it. So upon submittal of the form, the onclick event for the submit button changes some text on the screen to say 'please...
2
by: Mike N. | last post by:
I am looking to use an HTML checkbox feature as a trigger to shade/unshade a multiple select field in an HTML form. For instance: there are four options in the multiple select field and one outside...
3
by: jeff29_b | last post by:
I am having a strange problem on a web form. I have an image button with an OnClick event handler. When I click the image the event isn't being called in the code behind when browsing in firefox....
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: 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:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.