I write my html pages as .jsp files (java server pages).
The final result when the page is rendered in the browser, and I do a view
source, is nothing less the normal HTML codes.
The problem is I have a .jsp file A called main.jsp which contains one form
an serveral buttons. Main.jsp include a another .jsp file B called
Internal.jsp which has its own form and several buttons.
I have made a javascript that disables all buttons on A and B when someone
onclick on a button in A (Main.jsp)
So far so good, and everthing works fine.
Now when i want the same thing to happend when i onclick on a button on B
(Internal.jsp which is included in A) nothing happens. No buttons get
disabled even not the buttons in Internal.jsp.
Any solution to this? The view source looks like normal html tags, and both
A and B html is there, and all the buttons and forms works the way they
should. But i can not make the buttons in Internal.jsp disable anything. And
YES i want to include the Internal.jsp, not write all the code in the same
file.
Just to give u some code to make it easier to understand the include
consept.
****** This is the Main.jsp A*********
<jsp:include page="Internal. jsp" flush="true"></jsp:include> ***B****
*************** ***************
Thanx in advance 1 8186
I figured it out.
The disabled function works when i use it on onsubmit for the form and not
onclick on the buttons.
"KS" <no****@hotmail .com> skrev i melding
news:MX******** ***********@new s4.e.nsc.no... I write my html pages as .jsp files (java server pages). The final result when the page is rendered in the browser, and I do a view source, is nothing less the normal HTML codes. The problem is I have a .jsp file A called main.jsp which contains one
form an serveral buttons. Main.jsp include a another .jsp file B called Internal.jsp which has its own form and several buttons. I have made a javascript that disables all buttons on A and B when someone onclick on a button in A (Main.jsp) So far so good, and everthing works fine. Now when i want the same thing to happend when i onclick on a button on B (Internal.jsp which is included in A) nothing happens. No buttons get disabled even not the buttons in Internal.jsp. Any solution to this? The view source looks like normal html tags, and
both A and B html is there, and all the buttons and forms works the way they should. But i can not make the buttons in Internal.jsp disable anything.
And YES i want to include the Internal.jsp, not write all the code in the same file. Just to give u some code to make it easier to understand the include consept.
****** This is the Main.jsp A*********
<jsp:include page="Internal. jsp" flush="true"></jsp:include> ***B****
*************** ***************
Thanx in advance
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: KS |
last post by:
Is it possible to write a javascript that makes a popup window when someone
click on buttons/href on my page and close itself when the new page is about
to get loaded? I want to prevent the user from clicking anything else on my
page while the request is getting a new page. The popup window must lock the
focus.
I use frames i can not just disable all the buttons an href in different
frames.
|
by: Zalek Bloom |
last post by:
Hello,
Here is my problem:
I am displaying to a user a row of buttons. Depending on which button
user presses, I want to go to a different URL and to give a different
value to a hidden variable.
My code is:
<FORM NAME=FORM1 ACTION="">
<input type="button" name="B1" onclick="ModC('1')">
|
by: Gerard van Wilgen |
last post by:
I noticed that the following line of code works in IE 6 but not in Netscape
7.1:
<INPUT TYPE="radio" NAME="selComb" VALUE="0"
ONCLICK="alert(selComb.value)">
Nothing happens when I click on the radio button. There is not even an error
message.
This is a simplified version of the actual code, which is used to pass among
|
by: @sh |
last post by:
Can anyone help out here please, we have a button that when pressed will
alert the user, should they cancel no action is taken, however should they
confirm, the script will disable the button and then submit the form...
Could someone correct this lump of code for us pleaseeeeeeee ;o)
<input name="Submit" type="button" class="EmployerPostJobForm" value="
Verify Job " id="mFormSubmit" onClick="if(confirm('You are about to verify
this...
|
by: techfuzz |
last post by:
I scoured this group and others looking for the best way to disable a
button after the first click to prevent multiple submissions, but
never did find anything that worked like they said it would. I went
ahead and wrote my own bit of code so I'm sharing it here for
everyone. Even though it doesn't really disable the button by greying
it out, it prevents the multiple submissions which it what I was
attempting to prevent all along. ...
| |
by: Dmitry Korolyov [MVP] |
last post by:
When we use
btnSubmit.Attributes = "javascript: this.disabled=true;"
to make the button disabled and prevent users from clicking it again while
form data still posting, there is no longer postback. I.e. the button does
go disabled, but the form does not invoke submit() method. Of course, it
does work fine without this property.
Clues?
|
by: Marc |
last post by:
Okay, here's the problem - I have 3 radio buttons, and 11 check boxes
(which are disabled by default). I have the javascript below which when
the last radio button is clicked, enables the checkboxes.
<script type="text/javascript">
//<!]>
</script>
I used the JavaScript on 2 pages, on almost identical forms, and for
some reason it doesn't work on the 2nd one - they just stay disabled,
|
by: bay_dar |
last post by:
Hi, I have an internal ASP.NET application that I'm are using to send
e-mails out based on a single milepost or milepost range entered.
I'm trying to do two things when a user clicks on the submit button
to submit a form that contains one or two Mileposts:
1) If a Milepost range larger than 5 miles is entered, I would
like to
pop up a confirmation box to confirm the range.
|
by: sourcie |
last post by:
I am changing an existing quiz found on "JavaScriptKit.com Multiple Choice Quiz"
I have an image. Instead of using the radio buttons with the normal true/false question, I want to place two hotspots on the image. One being correct(a) and the other incorrect(b). When the user clicks on the correct hotspot or place on the image, it should score and retain that value until the end of the quiz. At the end of the quiz, there is a submit button...
|
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...
|
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,...
| |
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
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...
|
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...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
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
| |
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...
| |