473,657 Members | 2,680 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 1575
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_entr y_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
2150
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 Test(dict): """subclassing a dict and each key will permit access to a tuple of fized size""" def __init__(self):
5
2036
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() only returns public members and I would like to avoid using reflection due to its performance impact. Not sure if using an enumerator would help. The code below illustrates what I want to do. If this is doable, the benefit would be that there...
1
4953
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 the "Object reference not set to an instance of an object." I don't understand why it is happening. I would appreciate any help, thanks. Global.asax.cs using TheFile = Namespace.TheFile; private TheFile sessionEnd = new TheFile();
1
7248
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 WindowDesignerForm : System.Windows.Forms.Form { static extern double CalcWindow(long OrderNum, long WinNum); etc...
3
5929
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 using the following code in c# in the UI to create an event public static IntPtr OpenGrantedPacketEvent() { IntPtr objDriver = Driver.OpenDriver(); IntPtr objEvent = Win32.CreateEvent(IntPtr.Zero, false, false,
14
3881
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 "<stdin>", line 1, in ? File "<stdin>", line 2, in foo
18
43539
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. (It's for Google Maps, but I won't bore you with the complexities of that, as it doesn't affect the question). Mochas kudos to anyone able to solve this widdle.
3
1834
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 resides on a webserver that supports PHP) is as such: <?php echo("<i>the variable abc contains " . $_GET . "</i>"); ?>
7
2289
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 FindControl the only way to do it?
1
970
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 object is located in. : collective.dancing.channel.tool_added(DelegateNichols.portal_newsletters, None) collective.dancing.channel.tool_added(DelegateNichols.portal_newsletters, None) 002
0
8407
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8319
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8612
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7347
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6175
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4171
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2739
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1969
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1732
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.