Problem with validation of css page
Hi all
why can't I validate this page with w3c, here is the page
/* CSS Document */
@charset "iso-8859-1";
@media all {
body {
font-family: "Times New Roman", Times, serif;
color: #FFFFFF;
font-style: italic;
background-color: #0000CC;
text-align: center;
font-size: 18px;
h1 {
text-align:center;
color: #FFFFFF;
font-family: "Bookman Old Style";
visibility: visible;
font-size: 36px;
font-style: italic;
h2{
color: #FFFFFF;
text-align: center;
font-size: 18px;
address{
font-size:0.8em;
float:left;
margin-right:5em;
.souhait {
font-family: "Times New Roman", Times, serif;
font-size: 18px;
font-style: italic;
line-height: normal;
font-weight: normal;
font-variant: normal;
color: #FFFFFF;
text-decoration: none;
text-align: center;
a:link{
color:#FFFFFF;
Thanks
a:link{
color:#FFFFFF;
Are the two closing braces a typo?
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com
- Template Triage!
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
http://www.macromedia.com/support/search/
- Macromedia (MM) Technotes
==================
"Sebweb12345" <[email protected]> wrote in
message
news:ekt0an$712$[email protected]..
> Hi all
>
> why can't I validate this page with w3c, here is the
page
>
> /* CSS Document */
> @charset "iso-8859-1";
> @media all {
> body {
> font-family: "Times New Roman", Times, serif;
> color: #FFFFFF;
> font-style: italic;
> background-color: #0000CC;
> text-align: center;
> font-size: 18px;
> }
> h1 {
> text-align:center;
> color: #FFFFFF;
> font-family: "Bookman Old Style";
> visibility: visible;
> font-size: 36px;
> font-style: italic;
> }
> h2{
> color: #FFFFFF;
> text-align: center;
> font-size: 18px;
> }
> address{
> font-size:0.8em;
> float:left;
> margin-right:5em;
> }
>
> .souhait {
> font-family: "Times New Roman", Times, serif;
> font-size: 18px;
> font-style: italic;
> line-height: normal;
> font-weight: normal;
> font-variant: normal;
> color: #FFFFFF;
> text-decoration: none;
> text-align: center;
> }
> a:link{
> color:#FFFFFF;
> }
> }
>
> Thanks
>
Similar Messages
-
Problem with redundancy in CSS 11051
I have a problem with redundancy in CSS 11051. I use firewall load balancing and server load balancing. Load balancers which only load balance over 3 firewall switch from primary to master with no problems.
problem is with load balancers which load balance over firewalls and over servers two. whene the master is shutdown, backup keeps master function, all services on backup LB are alive, but it is not possible to display web page on address 10.10.7.16. Even if I try from the network 10.10.7.0/24, so before firewalls. below my config. any help appreciate.
===primary LB=====
!Generated on 10/30/2002 10:42:53
!Active version: ap0500002
configure
!*************************** GLOBAL ***************************
ip redundancy master
no console authentication
restrict ftp
app
app session 10.10.60.13
ip firewall 1 10.10.7.1 10.10.8.1 10.10.8.10
ip firewall 2 10.10.7.2 10.10.8.2 10.10.8.10
ip firewall 3 10.10.7.3 10.10.8.3 10.10.8.10
ip route 0.0.0.0 0.0.0.0 firewall 1 1
ip route 0.0.0.0 0.0.0.0 firewall 2 1
ip route 0.0.0.0 0.0.0.0 firewall 3 1
ip route 10.10.1.0 255.255.255.0 10.10.3.1 1
ip route 10.10.2.0 255.255.255.0 10.10.3.1 1
ip route 10.10.12.0 255.255.255.0 10.10.3.1 1
ip route 10.10.14.0 255.255.255.0 10.10.3.1 1
ip route 10.10.22.0 255.255.255.0 10.10.3.1 1
!************************* INTERFACE *************************
interface e1
phy 100Mbits-FD
bridge vlan 62
interface e2
phy 100Mbits-FD
bridge vlan 7
interface e3
bridge vlan 3
interface e4
phy 100Mbits-FD
bridge vlan 7
interface e5
phy 100Mbits-FD
interface e6
phy 100Mbits-FD
bridge vlan 6
interface e7
phy 100Mbits-FD
interface e8
phy 100Mbits-FD
bridge vlan 6
!************************** CIRCUIT **************************
circuit VLAN62
ip address 10.10.60.14 255.255.255.252
redundancy-protocol
circuit VLAN7
redundancy
ip address 10.10.7.10 255.255.255.0
circuit VLAN3
redundancy
ip address 10.10.3.10 255.255.255.0
no redirects
circuit VLAN6
redundancy
ip address 10.10.6.10 255.255.255.0
!************************** SERVICE **************************
service cc1
ip address 10.10.3.129
keepalive type tcp
keepalive port 443
service cc2
ip address 10.10.3.130
keepalive type tcp
keepalive port 443
active
service ssl1
ip address 10.10.6.131
keepalive port 443
keepalive type tcp
active
service ssl3
ip address 10.10.6.133
keepalive port 443
keepalive type tcp
active
service ssl4
ip address 10.10.6.141
keepalive type tcp
keepalive port 443
active
service ssl6
ip address 10.10.6.143
keepalive port 443
keepalive type tcp
active
service www1
ip address 10.10.6.101
keepalive type tcp
keepalive port 443
weight 2
active
service www3
ip address 10.10.6.103
keepalive type tcp
keepalive port 443
active
service www4
ip address 10.10.6.121
keepalive port 443
keepalive type tcp
active
service www6
ip address 10.10.6.123
keepalive type tcp
keepalive port 443
active
!*************************** OWNER ***************************
owner L5_Owner
content L5_Rule
vip address 10.10.7.6
application ssl
protocol tcp
port 443
url "/*"
add service www1
add service www3
add service www4
advanced-balance sticky-srcip
add service www6
balance weightedrr
active
content L5_Rule_CC
vip address 10.10.3.120
advanced-balance sticky-srcip
add service cc1
add service cc2
active
content L5_Rule_SSL
vip address 10.10.7.16
application ssl
protocol tcp
port 443
url "/*"
add service ssl1
add service ssl3
add service ssl4
advanced-balance sticky-srcip
add service ssl6
active
!*************************** GROUP ***************************
group CC
vip address 10.10.3.120
add destination service cc1
add destination service cc2
active
======
===backup LB=====
!Generated on 10/29/2002 20:47:30
!Active version: ap0503015
configure
!*************************** GLOBAL ***************************
ip redundancy
console authentication primary none
restrict ftp
app
app session 10.10.60.14
ip firewall 1 10.10.7.1 10.10.8.1 10.10.8.10
ip firewall 2 10.10.7.2 10.10.8.2 10.10.8.10
ip firewall 3 10.10.7.3 10.10.8.3 10.10.8.10
ip route 0.0.0.0 0.0.0.0 firewall 1 1
ip route 0.0.0.0 0.0.0.0 firewall 2 1
ip route 0.0.0.0 0.0.0.0 firewall 3 1
ip route 10.10.1.0 255.255.255.0 10.10.3.1 1
ip route 10.10.2.0 255.255.255.0 10.10.3.1 1
ip route 10.10.12.0 255.255.255.0 10.10.3.1 1
ip route 10.10.14.0 255.255.255.0 10.10.3.1 1
!************************* INTERFACE *************************
interface e1
phy 100Mbits-FD
bridge vlan 62
interface e2
phy 100Mbits-FD
bridge vlan 7
interface e3
phy 100Mbits-FD
bridge vlan 3
interface e4
phy 100Mbits-FD
bridge vlan 7
interface e5
phy 100Mbits-FD
interface e6
phy 100Mbits-FD
bridge vlan 6
interface e7
phy 100Mbits-FD
interface e8
phy 100Mbits-FD
bridge vlan 6
!************************** CIRCUIT **************************
circuit VLAN62
ip address 10.10.60.13 255.255.255.252
redundancy-protocol
circuit VLAN7
redundancy
ip address 10.10.7.10 255.255.255.0
circuit VLAN3
redundancy
ip address 10.10.3.10 255.255.255.0
no redirects
circuit VLAN6
redundancy
ip address 10.10.6.10 255.255.255.0
!************************** SERVICE **************************
service cc1
ip address 10.10.3.129
active
service cc2
ip address 10.10.3.130
active
service ssl1
ip address 10.10.6.131
keepalive port 443
keepalive type tcp
active
service ssl3
ip address 10.10.6.133
keepalive port 443
keepalive type tcp
active
service ssl4
ip address 10.10.6.141
keepalive type tcp
keepalive port 443
active
service ssl6
ip address 10.10.6.143
keepalive port 443
keepalive type tcp
active
service www1
ip address 10.10.6.101
keepalive type tcp
keepalive port 443
weight 2
active
service www3
ip address 10.10.6.103
keepalive type tcp
keepalive port 443
active
service www4
ip address 10.10.6.121
keepalive port 443
keepalive type tcp
active
service www6
ip address 10.10.6.123
keepalive type tcp
keepalive port 443
active
!*************************** OWNER ***************************
owner L5_Owner
content L5_Rule
vip address 10.10.7.6
protocol tcp
port 443
url "/*"
add service www1
add service www3
add service www4
advanced-balance sticky-srcip
add service www6
balance weightedrr
active
content L5_Rule_CC
vip address 10.10.3.120
advanced-balance sticky-srcip
add service cc1
add service cc2
active
content L5_Rule_SSL
vip address 10.10.7.16
protocol tcp
port 443
url "/*"
add service ssl1
add service ssl3
add service ssl4
advanced-balance sticky-srcip
add service ssl6
active
!*************************** GROUP ***************************
group CC
vip address 10.10.3.120
add destination service cc1
add destination service cc2
active
=======Please visit the folloiwing page where you can find many configuration examples on configuring CSS for Load Balancing.
http://www.cisco.com/en/US/products/hw/contnetw/ps789/prod_configuration_examples_list.html
Hope it helps. -
Problem with direction in a page(??????)
Hi every body,
I have a problem with direction in some page when i change the language to Arabic(right to left language).
in some page like welcome page its completely true ,but in some page that i buile with my self (and add some portlet to it like :advanced search portlet)its directon does not appear properly,the label is appear in left, and text box appear in right(its not true).
what can i do??????????????????
please answer me :(This is not the right forum for your question. Try to post it in the Oracle Application Server Portal forum, or contact Oracle Support.
Peter -
One year ago i installed Elements 12 on my PC with a serial number and it was OK.
Today i have installed Elements 12 also on my laptop.
But,...there is a problem with validation of the serial number on my laptop. Is there a need to validate Elements or will this program real disapeare in 7 days?
HansHi,
Since you already have one copy activated the serial number must be logged in your account details - I would first check that the one logged and the one you are attempting to enter are the same.
You can check your account details by going to www.adobe.com and clicking on Manage Account. You need to sign in with your Adobe Id and then click on View All under Plans & Products. Next click on View your products and after a while it should produce your list.
If there is a problem with the serial number, only Adobe can help you there (we are just users). Please see the response in this thread
First of all, I would have to say that getting in touch with you is a nightmare and I am not at all happy that I can't just email or live chat with someone who can help! I am not a technical person, I just want to be able to use Photoshop Elements and ge
Brian -
Hi, I'm having problems with viewing a web page created with Adobe Muse CC latest release, I followed the various guides provided by Adobe, but the problem persists. The problem especially concerns the distorted display (the contents do not fit on the page, so it suits size automatically) to a mobile web page to be displayed not on a normal browser, but in a WebView.
Hi, I'm having problems with viewing a web page created with Adobe Muse CC latest release, I followed the various guides provided by Adobe, but the problem persists. The problem especially concerns the distorted display (the contents do not fit on the page, so it suits size automatically) to a mobile web page to be displayed not on a normal browser, but in a WebView.
-
Really having problems with organising documents in pages. For example, deleting pages deletes the whole section and I cannot insert a section break as its greyed out & sending an object to background deletes several pages and trying to insert a text box autmatically creates new pages- what the **** is going on??? Is this programme really this badly thought out? I thought everything apple was supposed to be intuitive!?!?!? Help.
You can not insert a section break into a textbox.
You appear to have a lot of objects with wrap set, that once you take them out of the flow of text (by sending them to the background) causes the text to reflow and contract into fewer pages. Pages is almost unique in the way it forms up pages in Word Processing mode only so long as there is text on them.
I suspect you probably have hammered away at returns, spaces and tabs as well to position things, which only works to add to the mess.
Download the Pages09_UserGuide.pdf available under the Help menu and swot up a bit on how it works.
You may find this a usueful resource as well:
http://www.freeforum101.com/iworktipsntrick/
Peter
PS There is quite a lot of programming in OSX that is far from "intuitive". Pages is easy at one level, when using the templates, otherwise it can be quite frustrating. -
Problem with Validation in Struts
Dear All,
I am facing a proble with validation in struts.
I have got this code in my action class
//Initial Code...
ArrayList branches=new ArrayList();
branches.add("B01", "Main Branch");
branches.add("B02", "Second Branch");
branches.add("B03", "Third Branch");
DynaValidatorForm memberForm=(DynaValidatorForm)form;
memberForm.set(branches);
//Finalizing code.....This form is getting validated in validation.xml.
This action is being forwarded to folllowing JSP.
//Initial Code...
<tr>
<td align="right"><strong>Branch Name </strong></td>
<td> </td>
<td align="left">
<html:select property="branid">
<html:optionsCollection name="memberForm" property="branches" value="key" label="value"/>
</html:select>
</td>
</tr>
//Later code...I have action mapping as..
<action path="/member/save" input="member.page" name="memberForm" validate="true"
scope="request" type="com.mlm.action.MemberAction" parameter="action">
<forward name="success" path="/show.do?action=member" redirect="true"/>
</action>Now, the problem is that when the form doesn't pass the validation then it gives an exception that..
Can't find collection 'branches' in beansauanu wrote:
Ok, now I am giving full code of my module...
Form-bean
<form-beans>
<form-bean name="memberForm" type="org.apache.struts.validator.DynaValidatorForm">
<form-property name="id" type="java.lang.String"/>
<form-property name="membname" type="java.lang.String"/>
<form-property name="address" type="java.lang.String"/>
<form-property name="branid" type="java.lang.String"/>
<form-property name="branches" type="java.util.ArrayList"/>
</form-bean>
</form-beans>Validation is being done for all fileds except "branches". Validation type is "requried"
My Jsp....
<html:form action="/member/save?action=save">
<html:hidden property="id"/>
<tr>
<td align="right"><strong>Member Name </strong></td>
<td> </td>
<td align="left">
<html:text property="membname"/>
</td>
</tr>
<tr>
<td align="right"><strong>Address</strong></td>
<td> </td>
<td align="left">
<html:text property="address"/>
</td>
</tr>
<tr>
<td align="right"><strong>Branch Name </strong></td>
<td> </td>
<td align="left">
<html:select property="branid">
<html:optionsCollection name="memberForm" property="branches" />
</html:select>
</td>
</tr>
<tr>
<td align="right">
<html:submit/>
</td>
<b><td> </td></b>
<td>
<html:button value="Cancel" onclick="javascript:history.go(-1)" property="cancel"/>
</td>
</tr>
</html:form>This is the code..
I tried to find out the problem and I found that.. when the form does not pass the validation its input page gets displayed..
Now, when the input is getting displayed.. "branches" field of the form contains null???Why?
Edited by: sauanu on ?? ??????, ???? ??:?? ?????????Forget,about Validations.
Who is forwarding the control to this JSP page or view ??
Is it Action method code which metioned earlier doing it ??
Or some other Action is involved if it is some other action please intialize Values of branches component in the respective action.
Also,
Also,
ArrayList branches=new ArrayList();
branches.add("B01", "Main Branch");
branches.add("B02", "Second Branch");
branches.add("B03", "Third Branch"); I believe you need to get a good understanding of Java Collection classes aswell.
You can add things as entities in the above case lets create a simple java bean named Option.
public class Option implements Serializable{
private String label;
private String value;
public void setValue(String value){this.value = value;};
public String getValue(){return this.value;}
public void setLabel(String label){this.label = label;}
public String getLabel(){return this.label;}
} and inside the action which is forwarding to the respective view
ArrayList branches=new ArrayList();
Option option = new Option();
option.setValue("B01");
option.setLabel("Main Branch");
branches.add(option);
option = new Option();
option.setValue("B02");
option.setLabel("Second Branch");
branches.add(option);
option = new Option();
option.setValue("B03");
option.setLabel("Third Branch");
branches.add(option);
<html:select property="branid">
<html:options name="memberForm" collection="branches" value="value" label="label" />
</html:select>and one more thing is is that after the validation if it is not validated it'd be sent back to input page which destorys the request therefore try making scope of "memberForm" to session in your action mappings and check.
Hope this might help :)
REGARDS,
RaHuL -
Problem with JavaScript code in Page Attributes, modal popup...
Hello all!
I'm encountering a problem with a modal popup I wrote in JavaScript.
h3.
The situation*
A user sees an interactive report with rows that are clickable, so these rows are links. Upon clicking the name of something in a row, some items get a certain value and a modal popup shows on the screen. In this modal popup, there are details regarding that particular row the user has clicked, but the problem_ here is...
The modal popup closes itself only seconds after it has been opened.
This must be because I've probably made a mistake somewhere in my code, but I just can't figure out where... It also appears that when I click on a row link, the popup shows, but the progress bar of my toolbar seems to show a loading bar (as if I refreshed the page).
h3.
My code*
This code is located in the _"Function and Global Variable Declaration"_ part, under the _"JavaScript"_ tab. Code is in the _"Page Attributes"_ of my page 24.
function showhide(x){
$x('REGION1').style.display = ( x == 'REGION1') ? 'block' : 'none';
$x('REGION2').style.display = ( x == 'REGION2') ? 'block' : 'none';
$x('REGION3').style.display = ( x == 'REGION3') ? 'block' : 'none';
$( function(){
$('#ModalForm').dialog(
modal: true,
autoOpen: false,
width: 500,
height: 350,
buttons:{ Close: function(){closeForm();}
function openForm()
$('#ModalForm').dialog('open');
function closeForm()
$('#ModalForm').dialog('close');
$(document).ready(function() {
$('a.temppop').click(function() {
openForm();
});This code is located in the _"Header Text"_ part, under the _"Header"_ tab. Code is in the _"Page Attributes"_ of my page 24.
<link rel="stylesheet" href = "http://ajax.googleapis.com/ajax/libs/jqueryui/1.7.2/themes/base/jquery-ui.css" type="text/css" />
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.js"> </script>
<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.7.2/jquery-ui.js"> </script>This code is located in the _"Column Link"_ part, you get there by going to the _"Report Attributes"_ of the region called _"Template overview"_ on page 24. This region is an interactive report.
Link Text: #FOODTEMPLATENAME#
Link Attributes: class="temppop"
Target: Page in this Application
Page: 24
Item 1, name: P24_MEALID; item 1, value: #MEALTYPEID#
Item 2, name: P24_TEMPLATEID; item 2, value: #FOODTEMPLATEID#So basically I call the function to open the modal popup by the class name. When a link with that class name in it is clicked, it opens the popup.
To remind you of the problem, the modal popup closes seconds after it has been opened. How do I fix this?
Thanks in advance.
(APEX version 4.1.1.00.23)Come on guys... I really need to know this. :(
-
Example:
http://scaled.com/projects/whiteknighttwo_spaceshiptwo_test_summaries
User: firefox 40b7/32 on fedora core 11 x86_64
Linux 2.6.30.8-64.fc11.x86_64 #1 SMP
Symptom: printout truncates at end of first page instead of printing several pages of information
I've seen this behavior on many websites, this is an example
I can fix it by copying the page and hacking the css to remove all cases of "overflow:hidden". But really firefox needs to handle this - I just discovered from googling that something like this has been a known problem for 10 years.I just thought I should post this comment, to say my long running problem has finally....FINALLY been sorted out!
It was actually really fixed at the end of September, but I have waited till now, until I received my first proper bill to feel confident enough to say it is finally sorted out.....but what a long winded process!...it took over a month to sort this out, with endless hours on the phone, and endless promises not kept.
The problem with BT's customer service is the fact that going through normal channels, no one person can sort a problem out. You get passed from pillar to post, with every department saying that it is someone else's area of responsibility and then it takes hours on the phone with various deparments in different countries, to get a commitment to sort it out, and then nothing happens!
It was only after posting my final desperate plea on this forum, for all the world to see, that I finally got one of the Moderators to take up my case, and sort the problem out, although it took him over a month to get through all the treacle of BT's admin before a solution was found.
I am very greatful to the Mods for dealing with my problem, which was not of my making, but was due to something going wrong with BT's system.
There is however something fundamentally wrong with BT's Customer Service set up, where no one person seems to take responsibilty for a CXXk-up on their part, and seems unable to have the authority to sort it out.
Once again, Thank you Mods for your help. -
PostCode - problem with validation
Hello,
I have problem with codes in Netbeans.I Have two code.
The first is to mask formatter and i put in on Post int code
try
MaskFormatter PostCode = new MaskFormatter("##-###");
PostCode.setValidCharacters("0123456789");
RegisterPostCode = new JFormattedTextField(PostCode);
catch (ParseException e) {
}The Second check, the RegisterPostCode is not null
class Steps implements ActionListener{
int step = 0;
public void actionPerformed(ActionEvent e) {
if (step == 0){
String NotEmptyPostCode = RegisterPostCode.getText();
if(NotEmptyPostCode == null || NotEmptyPostCode.length() == 0) {
jLabel4.setText("This Field is empty");
return;
step++;
}Problem is the second code doesnt work and I dont now how to create code to check the JFormatterField is compatible with the first code
Please help.Hi! I have an HTML region and on my "before header process" I fetch only one record (the data is got from a package I've created on the DB).
This region has a few items and when I press the save button (I created on the screen) the value of all the items are cleared if the validation ocurrs, I don't know why, is this because the page doesn;t perfom again my "before header process"?
Thanks! -
Problem with validation - can this be fixed?
Hello I used an online tutorial to create an "express CSS
menu" the menu looks really good but it does not validate and in
IE7-Vista every page you try to access prompts an error that says
"Problems with this webpage may prevent it from displaying
properly.... error object expected..."
Is there anyway for me to fix this and keep this menu??
here is the link:
http://122.252.5.31/~lisa927/index.html
I did validate the menu example I used before I began but did
not realize the example used doctype html 4.01 and I am using xhtml
1.0, if I try to change my doctype to html 4.01 I get all sorts of
errors so my question is can i make this menu validate in xhtml
1.0???
shontelle> <script type="text/javascript"
src="p7exp/p7exp.js"></script>
>
That would be correct assuming the file is IN THE TEMPLATES
FOLDER. It
should not be.
All links in the TEMPLATE file *should* be one of three kinds
1. Relative to the template file, e.g.,
<a href="../ (meaning that you must go up one level from
the template folder
to reach the root of the site, hence all other files, since
none of them
should be in the templates folder)
2. Relative to the site root, e.g.,
<a href="/ (meaning that one would begin looking for the
linked file at the
root of the site and follow the pathing from that point)
3. Absolute, e.g.,
<a href="
http:// (meaning that the link is to a page
external to the site).
If you are seeing any other kind of link, then it hasn't been
made properly.
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
==================
"shonts" <[email protected]> wrote in
message
news:g16sce$a2k$[email protected]..
> HI something very strange going on.
>
> the code in my template reads : <link
href="../truestyles.css"
> rel="stylesheet" type="text/css" media="screen" />
> <script type="text/javascript"
src="p7exp/p7exp.js"></script>
>
> but when all the child pages created from the template
the code appears
> <link href="truestyles.css" rel="stylesheet"
type="text/css"
> media="screen" />
> <script type="text/javascript"
src="Templates/p7exp/p7exp.js"></script>
> <!--[if lte IE 7]>
> <style>
>
> The file "templates" is added there is nothing in my
templates folder but
> templates.
>
> if you access
http://122.252.5.31/~lisa927/p7exp/p7exp.js
where the
> template
> tells you to you will see the file has been uploaded.
>
> any ideas why the "template" is being added to the code
on child pages??
> -
Problem with Applets in same page
Hai to all,
I am having a problem with GUI in applets
My first class extends a JPanel named A_a
import javax.swing .*;
import java.awt.*;
import java.awt.event.*;
public class A_a extends JPanel
JButton jb;
JTextArea text;
public A_a()
setLayout(new FlowLayout());
jb=new JButton("Click me");
//add(jb);
text=new JTextArea(5,20);
add(text);
public void text_appendText(String aa)
System.out.println("I AM IN A_a");
text.append(aa);
text.revalidate();
revalidate();
/*public static void main(String ags[])
A_a a = new A_a();
JFrame frame=new JFrame();
frame.getContentPane().add(a);
frame.pack();
frame.addWindowListener(new WindowAdapter() {
public void windowClosing(WindowEvent e) { System.exit(0); }
frame.setSize(200,200);
frame.show();
and then I am using other class B_b which is an applet carries a exitsing panel (A_a) inside it .
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
public class B_b extends JApplet
public A_a a;
public void init()
a=new A_a();
getContentPane().add(a);
public void text_appendText(String aa)
final String aaa =aa;
new Thread(new Runnable()
public void run()
a=new A_a();
a.setBackground(new java.awt.Color(255,200,200));
System.out.println("I AM IN B_b");
a.text.append(aaa);
a.text.revalidate();
getContentPane().remove(a);
resize(500,500);
}).start();
and the I am using the second applet C_c in which by performing a button action the old panel A_a should get removed and replace the new panel D_a (which is not here )in the applet B_b with all other components(namely button , text fields etc)
import javax.swing .*;
import java.awt.*;
import java.awt.event.*;
import java.applet.*;
import java.util.*;
public class C_c extends JApplet implements ActionListener
JButton jbt;
JTextArea jta;
public void init()
getContentPane().setLayout(new FlowLayout());
jbt=new JButton("Click me");
jbt.addActionListener(this);
getContentPane().add(jbt);
jta=new JTextArea(5,20);
getContentPane().add(jta);
public void actionPerformed(ActionEvent ae)
Enumeration e = getAppletContext().getApplets();
Applet applets = null;
while(e.hasMoreElements())
applets=(Applet)e.nextElement();
if ( applets instanceof B_b)
System.out.println("I AM CLASS C_c");
((B_b)applets).text_appendText(jta.getText());
((B_b)applets).remove());
((B_b)applets).getContentPane().add(D_d);
both the applets C_c and B_b are in same browser page
How can i achive that pls help .please help me its urgent for my project
-
Problem with forwarding to new page in jsf
Hi
I am facing a problem. I have a checkbox in my jsp page and 3 submit button. The two button works w r t check box and its woking fine. I am getting problem with the 3rd button. I want to fwd to next page once the button is clicked.
For the check box i am using the method
public String handleCheckbox2ValueChange(ValueChangeEvent valueChangedEvent)
Can anyone help me in this regard. I need to fwd to the next page.
Regards
RupeshThis sounds like a simple JSF navigation that has nothing to do with the checkbox. Read the documentation and tutorials on navigation.
-
After starting Firefox the Firefox homepage comes up with the google search, but if i enter anything in the search bar, nothing happens it just says done. Also my homepage is Google, imported from Internet Explorer, but doesn't come up when i start Firefox, And Also at the top on the tab it just says untitled. Now with that being said if i enter in yahoo or yahoo.com in the search tab or even enter in the actual web address, it still doesn't open it just says done at the bottom of the page and nothing happens, But if i go to the Bookmarks also imported from Internet Explorer it will open or display most all of the web pages it just seems to be having problems with search engines such as Google, and Yahoo. Now if i enter Ask.com in the web address search tab it will open that page but if i enter Google.com or Yahoo.com nothing. Also like i said most all bookmarks will open but yahoo or my yahoo that is saved in Bookmarks will not. and nothing happens with any entry made into the Google search displayed on the the Firefox Start Page.
Hi,
The Reset Firefox feature can fix many issues by restoring Firefox to its factory default state while saving your essential information.
Note: ''This will cause you to lose any Extensions, Open websites, and some Preferences.''
To Reset Firefox do the following:
#Go to Firefox > Help > Troubleshooting Information.
#Click the "Reset Firefox" button.
#Firefox will close and reset. After Firefox is done, it will show a window with the information that is imported. Click Finish.
#Firefox will open with all factory defaults applied.
Further information can be found in the [[Reset Firefox – easily fix most problems]] article.
Did this fix your problems? Please report back to us! -
Problems with word files in pages
I have been able to open word documents in Pages on my MacBook Pro since I got iWork '09 last year. However, I have just purchased an 27in iMac, and I can no longer open word documents using Pages. Anybody have a similar experience, and if so, what's the solution?
Welcome to Apple Discussions
Two things that may not have been done. It is amazing the number of problems these two steps can fix.
First, use the Mac OS 10.6.3 combo updater. This fixes a problem with the Hoefler Text font that is not fixed using the delta update (10.6.1 > 10.6.2).
Second, make sure your iWork applications are updated. For iWork '09 it's Pages 4.0.3 & Numbers 2.0.3. If you're not running the latest versions & Software Update says your software is up to date, make sure the applications are where the installer initially put them. The updaters are very picky. If the location is not where the updater is programmed to look or if the folder doesn't have the name the updater looks for, it will not work. The applications cannot be renamed or moved. They must be in the iWork '09 folder in Applications. That iWork folder must be named iWork '09. If it doesn't have the '09 Software Update won't find them & the updaters won't work.
Maybe you are looking for
-
How to Create payment term for -Net Due 1st Day of Second Month Following
Hi, We need to add a payment term for "Net Due 1st Day of Second Month Following Delivery". We need this to be in the system as soon as possible as we just were told of a change in terms for our client effective May 1st. Kindly advice me how to selec
-
HT4352 transfers from apple TV to mac
Hi I am having trouble trying to transfer my purchased movies from apple tv to my computer and therefore onto my ipad etc. Please help. thanks
-
Problems downloading Dreamweaver
I have been attempting to download the trial version of Dreamweaver CS4. After finding the version and OS, and selecting DOWNLOAD, a pop-up appears that tells me I need to install the ADOBE DOWNLOAD MANAGER first. Problem is, there are MANY MANY MANY
-
hello! i am new to Macbook pro, i have recently transferred my data from my Pc to Mac, i can not open .exe file. Please give me any suggestion regarding this! I have using Mac OS 10.9.2
-
Response to your 'read this' message
I'm sure you have a lot of requests that belong to other forums. Mine too. I spent an hour trying to find a page with the "new message" on the bottom like it says in the HELP screen but couldn't find a place to post until I got here. Maybe that