JavaScript Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingJavaScript Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old December 11th, 2007, 12:17 PM
vinsim24 vinsim24 is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Dec 2007
Posts: 1 vinsim24 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 6 m 15 sec
Reputation Power: 0
Other - Document.formname.submit() not working sometimes....

Hi All,
I have a problem while submitting using
Code:
document.formname.submit().


Well i will first go through the problem.
My Application is in JSP(Java in Html) front end and Java servlets as controller and deployed in weblogic 8.1 application sever.
I have one jsp file called "TopFrame.jsp " which in turn has with it called "ChildFrame.jsp".
TopFrame.jsp is top frame or parent frame for the ChildFrame.jsp.

In chilframe onClick of one button a javascript function called as logff() is called.
The contents of this function is as follows..
Code:
<script>
function logoff(){
top.close();
}
</script>

The above function is in Childframe.jsp

So this function tries to close the parent frame i.e., in this case Topframe.jsp... In this jsp in the body unload method is a follows
Code:
<body onUnload="logOffAll()">
<form name="mainform" action="Loggingout.jsp">
...
</form>
</body>

The code for function log off is as follows:
Code:
<sciript>
function logOffAll(){
document.mainform.action="/LogoutServlet";
document.mainform.submit();
}
</script>

I need to have a different action in the logOffAll() method, ie., different from the one in form action.

The problem here is sometimes the document through the submit action gets submitted but some it doesnt get submitted.. Wat would be source of the problem ...

Hoping for reply ASAP...

Reply With Quote
  #2  
Old December 22nd, 2007, 05:21 PM
Rohan Shenoy Rohan Shenoy is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Dec 2007
Posts: 5 Rohan Shenoy User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 17 m 21 sec
Reputation Power: 0
If the form values are submitted atleast once, it means the error probably does not lie in the form.

Are you sure the mouse click buttons are working well? I had a similar problem which was due to mouse buttons not being clicked properly.

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingJavaScript Development > Other - Document.formname.submit() not working sometimes....


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway