473,425 Members | 1,889 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,425 software developers and data experts.

form action problem with Firefox

Hi
I'm having the following js problem:
A webapplication has a page with a button event that pops up a file upload
dialog.
this dialog is a form with a locally absolute URL to a webapp '/FileUpload'
as action
The problem is, as long as I'm using IE the form action is fired. When I'm
using Firefox it doesn't work. It only works when I'm using the full
quallified URL 'http://localhost:8080/FileUpload'. OK this is a workarround,
but I can not use it because the whole webapp will be installed on multiple
domains and therefore the hostname must not be static.

Here's the stripped down Javascript source:

<script type="text/javascript">

function popup(OutFilePath,filter){

popupSrc= "<html>"
+"<form name='popupForm' method='post' action='/FileUpload?action=help'
ENCTYPE='multipart/form-data'>"
+"<center><input type='SUBMIT' value='Upload' name='Upload Selected
Files' /></center>"
+"</form></html>";

popupWin=window.open("javascript:opener.popupSrc",
"pop",
"width=300,height=200,resizable");
}

Has anyone a idea how I get it to work?

Thanks Dirk
Jul 23 '05 #1
2 5430
Lee
Dirk Grosskopf said:

Hi
I'm having the following js problem:
A webapplication has a page with a button event that pops up a file upload
dialog.
this dialog is a form with a locally absolute URL to a webapp '/FileUpload'
as action
The problem is, as long as I'm using IE the form action is fired. When I'm
using Firefox it doesn't work. It only works when I'm using the full
quallified URL 'http://localhost:8080/FileUpload'. OK this is a workarround,
but I can not use it because the whole webapp will be installed on multiple
domains and therefore the hostname must not be static.


+"<form name='popupForm' method='post' action='"
+"http://" + location.host + "/FileUpload?action=help' "
+"ENCTYPE='multipart/form-data'>"

Jul 23 '05 #2

"Lee" <RE**************@cox.net> schrieb im Newsbeitrag
news:d0*********@drn.newsguy.com...
Dirk Grosskopf said:

Hi
I'm having the following js problem:
A webapplication has a page with a button event that pops up a file upload
dialog.
this dialog is a form with a locally absolute URL to a webapp
'/FileUpload'
as action
The problem is, as long as I'm using IE the form action is fired. When I'm
using Firefox it doesn't work. It only works when I'm using the full
quallified URL 'http://localhost:8080/FileUpload'. OK this is a
workarround,
but I can not use it because the whole webapp will be installed on
multiple
domains and therefore the hostname must not be static.


+"<form name='popupForm' method='post' action='"
+"http://" + location.host + "/FileUpload?action=help' "
+"ENCTYPE='multipart/form-data'>"

Manny thanks!!!
You saved my a...
Dirk
Jul 23 '05 #3

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

Similar topics

3
by: Pavils Jurjans | last post by:
Hello, I have bumped upon this problem: I do some client-side form processing with JavaScript, and for this I loop over all the forms in the document. In order to identify them, I read their...
4
by: Stuart Perryman | last post by:
Hi, I have the following code which works just fine in IE6 but not in Firefox. It is an extract of several table rows each with an individual form. It is generated by php. <form...
35
by: Aaron Gray | last post by:
Hi, I have some code I just cannot seem to get to work properly on FireFox. It is probably something simple. On FireFox the following code does not seem to terminate in the browser, but it...
10
by: Steve Last | last post by:
Hi all, I’m using IIS6 for our college Intranet and I’m having trouble using Request.Form. Here is my code: <% If Request.QueryString("action") = "show" Then Response.Write "title: " &...
4
by: Angel | last post by:
I have an html form with checkboxes in different rows. The functionality is that of changing the position of the checkboxes through DOM. When I try to save the form after the changes, firefox...
4
by: Tim Mackey | last post by:
hi, asp.net 2. can anyone explain why this code does not work in firefox (2.0.0.1), but does work in IE 7. if you hit enter after typing something into the textbox, it should fire the Submit...
12
by: Daniel Klein | last post by:
I'm pretty new at php and web stuff so please be gentle with me. I'm trying to get a form to submit when the user presses the Enter key. I do not want to use javascript. I've googled this to...
3
by: ccyarm | last post by:
Hello, I need to modify the following code to make it work with Firefox. It works perfectly well with IE. It seems to me that with Firefox all the form values are lost when the onUnload fires up. ...
4
by: ajr121 | last post by:
The following cgi generated html page has the following Javascript in the Body section:- <script language="JavaScript" type="text/javascript"> <!-- Begin function eHistorical() {...
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...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.