473,326 Members | 2,128 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,326 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 5426
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() {...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
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...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

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.