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

On Load Submit is not working in FF ?

Soniad
66
Hi,

I have ASP page,Say "page1.asp" .
Ater filling proper information,when "page1.asp" is submitted ;it goes to "page2.asp".
On This "page2.asp",only VBScript Coding is done (DB Related).
Now,On "Page2.asp" after VBScript coding is done ,I have taken a message into hidden field (that needs to be displayed on "Page1.asp") And written script at the End of the page to submit that page back to "Page1.asp".
Now the problem is,This works in IE .In IE,the page is submitted back to "Page1.asp", But Doesn't work in FireFox.
In FireFox, The VBScript Code is getting Executed;But Stops there only after exceution is done.
If I write only 'response.Redirect("Page1.asp")' OR 'window.location.href="Page1.asp"'.This works in BOTH.
But I want to show that message in "Page1.asp",Hence I am posting back that "Page2.asp".

I dont want to send that message as QueryString.


Page2.asp Sample :

Expand|Select|Wrap|Line Numbers
  1. <% Dim StrDispMsg
  2.  
  3.  'CODE
  4.  
  5.  StrDispMsg = "Test Message"
  6. %>
  7. <form name="FrmPage2" method="post"><input type="hidden" name="HidMessage" value="<%=StrDispMsg%>" />
  8. <script type="text/javascript">
  9. FrmPage2.action = "Page1.asp";
  10. FrmPage2.method = "post";
  11. FrmPage2.submit();
  12. </script>
  13. </form>
  14.  
Any Suggesstion.

Regards,

"D"
Mar 28 '11 #1
1 1690
Soniad
66
Hi,

Finally after a long try, this issue has been solved.
Instead of using Hidden field ,If I put that message in input filed of type "Text" it works. Both in IE And FF.
Instead Of This line :
Expand|Select|Wrap|Line Numbers
  1. <input type="hidden" name="HidMessage" value="<%=StrDispMsg%>" />
  2.  
I Wrote This Line:
Expand|Select|Wrap|Line Numbers
  1. <input type="Text" name="HidMessage" value="<%=StrDispMsg%>" style="display:none;"/>
  2.  
Final Code :
Expand|Select|Wrap|Line Numbers
  1. <% Dim StrDispMsg 
  2.  
  3.  'CODE 
  4.  
  5.  StrDispMsg = "Test Message" 
  6. %> 
  7. <form name="FrmPage2" method="post">
  8. <input type="Text" name="HidMessage" value="<%=StrDispMsg%>" style="display:none;"/> 
  9. <script type="text/javascript"> 
  10. FrmPage2.action = "Page1.asp"; 
  11. FrmPage2.method = "post"; 
  12. FrmPage2.submit(); 
  13. </script> 
  14. </form> 
  15.  
Regards,
"D"
Apr 6 '11 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Cezar | last post by:
Hi! Firstly I have to tell that my english isn't perfect, so forgive me for that. Second: I have little problem with this code: <a href="javascript:;" title="Edit"...
4
by: sp1d3rx | last post by:
I have the following code for controlling access: ---------------------- #check login credentials... def cklogin(ipaddy, user, authcoded): try: print "Opening file:", user f = file(user,'r+')...
2
by: Tom wilson | last post by:
This is a huge problem. I'm going insane. I've tried to solve this elsewhere and no one can suggest how to make this work. To me, this should be a very basic thing to do. I have an asp.net...
3
by: Tom wilson | last post by:
This is a huge problem. I'm going insane. I've tried to solve this elsewhere and no one can suggest how to make this work. To me, this should be a very basic thing to do. I have an asp.net...
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...
1
by: =?Utf-8?B?cHJhYmh1XzI3Xzg0?= | last post by:
hi i am creating many radio RadioButtonList dynamically in page load.its working find.now i want to select a text in radio button(Autopostback is true for radio buttonlist) and find that text in...
2
by: ricardo.sobral.santos | last post by:
Hello, I am trying to get the value of the radiobuttonlist. The problem is that I need it to be unselected at every page load. The radiobuttonlist is set to autopostback (true). My idea is...
1
by: globalrev | last post by:
import pygame pygame.mixer.music.load(example1.mp3) pygame.mixer.music.play(loops=1, start=0.0) Traceback (most recent call last): File "C:\Python25\myPrograms\pygameProgs\musicexp.py",...
2
scubak1w1
by: scubak1w1 | last post by:
Hello, I am building a form that collects some data about a file and throws it into a PosgreSQL database and also allows the user to upload and process the file using PHP's $_FILES... i.e.,...
3
by: chazzy69 | last post by:
Before you read below i only added that so you may understand my problem more fully, basically all i am trying to achieve is an onpage load sumbit form function. Also i have previously tried this...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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...
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,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.