User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the JavaScript / DHTML / AJAX section within the Web Development category of DaniWeb, a massive community of 373,458 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,942 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our JavaScript / DHTML / AJAX advertiser: Lunarpages Web Hosting

Form without action "imitate" of other Form (which do have action) ???

Join Date: Feb 2008
Posts: 36
Reputation: vedmack is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 0
vedmack vedmack is offline Offline
Light Poster

Forms without action "imitate" of other Form (which do have action) ???

  #1  
Mar 5th, 2008
I have a very weired problem (which is not easy to describe.. but I'll do my best):
I have a html page with several forms , only one of the got the action="ComputeAndReturn" and the other forms got only name="" tag...

the problem is that after i submit the form with the action , and than after a computatioon it returns to the original page, now... if i will submit any of the forms without the action=...

they will act as if they were defined action="ComputeAndReturn" (altho they are not!)

Now... if they were defined from the first time with action="anything", and than i would submit the form with action="ComputeAndReturn" this problem would not appear (the other forms will keep their action="anything" and would not "imitate" the action="ComputeAndReturn" to them selfs...

any ideas how can i keep my forms without action="" , cause all i need them to do is be submitted to pass the submitted value to other form inside that page....

it looks something like this...

  1. function go()
  2. {
  3. document.one.submit();
  4. }
  5.  
  6. function gogo()
  7. {
  8. document.two.submit();
  9. }
  10.  
  11. function gogogo()
  12. {
  13. document.three.submit();
  14. }
  15.  
  16. <form name="one" >
  17. <select name="oneone" id="oneone" onchange="go()">
  18. </select>
  19. </form>
  20.  
  21. <form name="two" >
  22. <select name="twotwo" id="twotwo" onchange="gogo()">
  23. </select>
  24. </form>
  25.  
  26. <form name="three" >
  27. <select name="threethree" id="threethree" onchange="gogogo()">
  28. </select>
  29. </form>
  30.  
  31.  
  32. <form name="four" action="ComputeAndReturn" >
  33. <input type="submit" value="Add" name="Add" />
  34. </form>
  35.  

thanks ahead...

Daniel
Last edited by vedmack : Mar 5th, 2008 at 5:38 am. Reason: Added more details....
AddThis Social Bookmark Button
Reply With Quote  
All times are GMT -4. The time now is 5:05 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC