473,503 Members | 2,059 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

how to call a from inside js

ddtpmyra
333 Contributor
I have this script and I know im not doing this right. Anybody who can show me how to execute to call a form?

thanks!
Expand|Select|Wrap|Line Numbers
  1. personObj=new Object();
  2. if (document.getElementById('TotalEntity').value > 100 ) 
  3.     {
  4.     personObj.Total=document.getElementById('TotalEntity').value ; 
  5.     alert((personObj.Total));
  6.     }
  7. else
  8.     {
  9.     <form method="post" name="recapform" action="tblevent_entry_recap_handler.php?id=<?php echo $_GET['id'];?> ">
  10.       <td><input type="submit" value="SAVE" /></td></form>
  11.     }    
  12. }    
  13. </script>
Oct 9 '09 #1
7 1569
Dormilich
8,658 Recognized Expert Moderator Expert
what is this code supposed to do?
Oct 9 '09 #2
ddtpmyra
333 Contributor
if the conditions falls to ELSE statement i wanted to call this php script

action ="tblevent_entry_recap_handler.php?id=<?php echo $_GET['id']";?>
Oct 9 '09 #3
Dormilich
8,658 Recognized Expert Moderator Expert
@ddtpmyra
and what shall it do in the IF case?
Oct 10 '09 #4
ddtpmyra
333 Contributor
inside ELSE statement i wanted to call another php document
Oct 12 '09 #5
acoder
16,027 Recognized Expert Moderator MVP
It seems as though you're trying to submit a form. Use the form submit() method.
Oct 13 '09 #6
ddtpmyra
333 Contributor
@acoder
Great! that's the one im trying to do this time :)

Now is there a javascript that will do page refresh everytime I hit my BACK button? or anything i can add on this line below?

Expand|Select|Wrap|Line Numbers
  1.  <form method="post" name="recapform" action="javascript:history.back()"> 
  2.     <td><input type="submit" value="BACK" /></td>
Oct 13 '09 #7
acoder
16,027 Recognized Expert Moderator MVP
Are you sure that's a good idea? It would be highly annoying if you managed it. Why are you trying to prevent the user from going back?
Oct 14 '09 #8

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

Similar topics

2
2145
by: GrelEns | last post by:
hello, i would like if this behaviour can be obtained from python : trap an attributeError from inside a subclassing dict class... (here is a silly examples to explain my question) class...
5
2012
by: Bob | last post by:
I want to find a way to detect the existance of the private member of a particular type in the derived class from inside the base class itself and call its Dispose() method. Reflection GetFields()...
1
4924
by: Steve | last post by:
I am trying to call a file delete function from inside Session_End in Global.asax.cs. However, everytime I step into my delete function from Session_End it jumps to the catch statement and I get...
1
7216
by: ARTMIC | last post by:
Hello, could someone please help me out, i'm trying to call a Delphi 6.0 custom DLL from inside of a C# windows project. what am i doing wrong? i use the following declaration: public class...
3
5920
by: bb | last post by:
I have a windows network device driver written in c++ and a user interface im porting to c#, my problem is i dont seem to be getting notified of the event calls from the driver to the c# app im...
14
3863
by: James Thiele | last post by:
I'd like to access the name of a function from inside the function. My first idea didn't work. >>> def foo(): .... print func_name .... >>> foo() Traceback (most recent call last): File...
18
43515
by: Chris Ianson | last post by:
Hi geniuses (or is that genii, or genies) The challenge is as above really. I have a page with an iframe in it, and need to call a JS function in the *parent* page, *from* inside the iframe. ...
3
1818
by: leonardodiserpierodavinci | last post by:
Hi. Sorry for what is perhaps a neophyte question: is it possible to pass a variable to a PHP script from inside another PHP piece of code? For instance, the file test.php (which of course...
7
2281
by: Andy B | last post by:
I have a class I am creating for data access. I need to access controls from inside the class that are on a particular page. How do I do this? or is creating an instance of the page class and using...
1
964
by: Jonathan Mark | last post by:
I am inside a Pdb-like Plone debugging tool and I get the following error at the prompt. I was wondering how to find out from inside the debugger which namespace the collective.dancing.channel...
0
7282
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
7342
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...
1
6998
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7464
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5586
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5018
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3171
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3162
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
391
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.