Client Side Things
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsOther TechnologiesClient Side Things

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
  #1  
Old July 10th, 2003, 10:36 AM
zuzupus zuzupus is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 82 zuzupus User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
submit problem

hi,

i created 3 forms namely
parent form is test.html second one is save_index.html and third one is save.html

when user clicks on SAVE in test. html ,then save_index.html is opening in this page it shows alert when click on ok,i want something like when user click on alert ok save.html will submit on test.html not in save_index.html

when i use window.location.href="save.html" in onclick
<INPUT type="button" value="OK" onClick="MM_popupMsg('Are you sure to save.');window.location.href='save.html' ">
then save.html is submitting on save_index.html ,i want this page to be submit on test.html(parent form)

3 forms
***********************************************
//test.html(main window)

<html>
<script>
function FSave() {
mywindow =
window.open("save_index.html", "SENDENr", " menubar=no,left=450,top=450,width=200,height=100,t
oolbars=no,scrollbars=no");
}
</script>

<A href="javascript:FSave();" target="_top"><B>SAVE</B></A>
</html>
**************************************************

//save_index.html
<html>
<script>
function MM_popupMsg(msg) { //v1.0
alert(msg);
redirectFunction();
self.close();
}
function redirectFunction(){

}
</script>
<INPUT type="button" value="OK" onClick="MM_popupMsg('Are you sure to save.');">

</html>
*************************************************
//save.html

<html>
<INPUT type="submit" name="Button" value="ok">
</html>
***********************************************

thanks


Reply With Quote
  #2  
Old July 10th, 2003, 10:43 AM
tkarkkainen's Avatar
tkarkkainen tkarkkainen is offline
Moderator
Click here for more information
 
Join Date: Apr 2007
Location: Finland
Posts: 2,326 tkarkkainen User rank is Lance Corporal (50 - 100 Reputation Level)tkarkkainen User rank is Lance Corporal (50 - 100 Reputation Level)tkarkkainen User rank is Lance Corporal (50 - 100 Reputation Level)  Folding Points: 19449 Folding Title: Novice Folder
Time spent in forums: 6 Days 10 h 53 sec
Reputation Power: 4
RE: submit problem

I suggest you forget save_index.html and make test.html show the alert box and after that post the form to save.html

Reply With Quote
  #3  
Old July 10th, 2003, 12:03 PM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
RE: submit problem

if i dont forget save_index.html its not possible to redirect

actually i tried this one,i think its not a nice way to set time in test.html as i used
redirTime = "6000";
redirURL = "save.html";
function redirTimer(){
self.setTimeout("self.location.href = redirURL;",redirTime);
}
the problem as 6 secs over it will redirect to this page no matter whether u clcik on SAVE or not

whats ur advice for this one

Reply With Quote
Reply

Viewing: Codewalkers ForumsOther TechnologiesClient Side Things > submit problem


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 2 hosted by Hostway
Stay green...Green IT