How to enable html:text on some condition

HI,
I am trying to enable and disable a text field on clicking radio buttons. I am able to disble the form, but I am not able to enable it back.
<TD>
<INPUT type="radio" name="radPreYesNo" value="Y"
onClick='javascript:document.Page3Form.txtYesNo2.value="Y",
document.Page3Form.agr_num.disabled= "false"'>Y
<INPUT type="radio" name="radPreYesNo" value="N"
onClick='javascript:document.Page3Form.txtYesNo2.value="N",
document.Page3Form.agr_num.disabled= "true"'>N
</TD>
This is the text field that I want to make editable..
<TD width="20%" align="right">Agreement Number</TD>
<TD width="20%"><html:text property="agr_num" maxlength="20"
style="width:100px;border:none" />
</TD>
Thanks for any help in advance..
Johnson

HI ,
I found what was wrong ;o) The problem was the quotes ( " " ) for false.
When I say
'document.Page3Form.agr_num.disabled= "true"'>
When the value for disabled is anything other than false, the text field is disabled. When I gave
'document.Page3Form.agr_num.disabled= true'>
it worked.
:o)

Similar Messages

  • How to enable HTML formatted emails in nokia e72?

    Can anybody tell me that how to enable HTML formatted emails in nokia e72? I Owned a E71 & it has such a feature that I can activate HTML formatted email & Non-HTML formated emails. But I don't find any feature in Nokia E72. I receive all the mails as text messages. I use Other Emails Thanks in advace!

    No supporting stuff here, amigo. This e-mail procedure is a safety precaution. Html might contain malicious code. Try Profimail for a while.
    http://www.lonelycatgames.com/?app=profimail
    ‡Thank you for hitting the Blue/Green Star button‡
    N8-00 RM 596 V:111.030.0609; E71-1(05) RM 346 V: 500.21.009

  • Sorry about first try : how to avoid html-text tag converting & to & amp;

    subject
    how to avoid html:text tag converting "&" to "& amp;"?
    body
    hi,
    i have some values on DB like "& #351;" and when i use html:text to
    show binding's value, html:text converts "&" to "& amp;". in generated
    html, it looks like "& amp;#351;".
    how to avoid this conversion?
    thanks...
    Ayhan G�ng�r
    note: i use white-space among special characters because browser renders them. ex : (& amp; to &)

    hi, i use property attribute of html:text.
    property is declared in UIModel xml file.
    i mean, i don't use something like
    <html:text value="data"/>i use just like
    <html:text property="bindingName"/>and value is shown in generated html input tag as value.
    html:text has no attribute like filter.
    i think i should override html:text tag, and create a new tag that checks if value includes "& #351;" this type data. If there is, don't convert "&" to "& amp;"?
    any suggestions?
    thanks...
    Ayhan

  • How to Enable Full text search in UCM with Oracle 10g

    Hi,
    Can you please guide me on how to enable full text search in UCM after I have installed it. My database is Oracle 10g. It would be great if you could guide me through the steps since I am very new to this product.
    Regards
    Ashish

    Hi
    Are you sure that your indexer is finishing without any errors? Check activeindex.hda under \search directory to see what is the variable set for activeindex variable? If Oracle Text is the indexer search enabled then the variable activeindex should either OTS1 or OTS2. If anything else then you have indexer problems that is not indexing documents.
    Check the CS log file to see if indexer errors are shown there. If yes, then put it over here so that we can analyse it.
    Hope it helps
    Thanks
    Srinath

  • So I've changed my hard drive for an ssd and now I've been told to enable trim now I've got the apple cover will they show me how to enable it with out some program of the internet ?

    so I've changed my hard drive for an ssd and now I've been told to enable trim  ?  now I've got the apple cover will they show me how to enable it with out some program of the internet ?

    Use an app called chameleon ssd optimizer.
    I enabled trim with it after almost a year of having installed a Samsung 840 pro SSD and my read/write speeds almost quadrupled.
    I would definite;y advise using it even though Samsung SSD's come with there own garbage disposal.
    Hope that helps.

  • How to Display Html Text with Image

    HI Frens,
    I am getting some html text from a source, Later i want to
    display that data, but it may happened that it has some images in
    it. Currently I am using text area to display it.
    Now My question is if there is any image will it show, as we
    can see it in our mails? if Not, Which component I should use for
    this?
    I also want that I need to select some file from, How can i
    get open dialog box here?
    Thks in Advance for replies frens:
    Ashish Mishra

    Hi Ashish,
    If I have understood your requirement properly, u want to
    display html text on a flex application.
    I think there its better if you use the html component to
    display the text. I have a sample code which will give you a
    direction to think on.
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application
    xmlns:mx="
    http://www.adobe.com/2006/mxml"
    layout="vertical"
    creationComplete="initApp( )">
    <mx:Script>
    <![CDATA[
    public function initApp( ):void
    var initHtml:String = "<html><head> \
    <title='Page Example'/> \
    <body bgcolor='#ccddee'><h1>Page
    Example</h1> \
    <p>This is a complete <b>HTML</b> \
    page as a
    <em>string</em>.</p></html></body>";
    this.html.htmlText = initHtml;
    ]]>
    </mx:Script>
    <mx:HTML id="html" width="100%" height="100%" />
    </mx:Application>
    Also do you want a file open dialog box??

  • How to disable view buttons on some condition-webdynpro abap

    Hi ALL,
    i have a two buttons in my view ......initially one button must be enable,depending on some condition i want to disable one button on the same view .........in which i am displaying my alv data ........(in the same view).

    check the properties with property name Visible.
    Take one attribute with name as visibile and Type ( WDUI_VISIBILITY-Data Type for "visible" Properties)
    then bind this attribute with property visible.
    then in run time according to the condition pass value '01'-for no visibility and '02' for visible.
    Hope this helps you.
    Regards,
    sarath

  • How to print html text created with HTML Editor Standard?

    I would like to print the text I added with the HTML Editor Standard, using advanced printing. I have made up a Word document with a Report Query and a Report Layout, but the text pops up as html text. Also when I use HTML as output the text shows as "p strong hallo /strong /p" (but then with < and >) instead of hallo . I understand what goes wrong, but I am unable to solve it. Is there a way to work around this?
    Thanks a lot, Frits
    Edited by: user3829016 on 10-nov-2009 5:51
    Edited by: user3829016 on 10-nov-2009 5:52
    Edited by: user3829016 on 10-nov-2009 5:53

    Thanks Lilly a lot!
    I forgot about this tag. It helps in my situation.
    P.S. I tried to solve problem with help of tag <pre> in such way:
    some_word<pre>     </pre>some_wordBut it didn`t helped.
    Thank you again

  • Don't know how to enable html in my school disscussion posts - was enabled some months ago, but then disabled.

    Don't know how I disabled this function over the summer, but it was working fine in the spring. How do I enable it again so that I can use html in my discussion posts?

    "Clear the Cache": Tools > Options > Advanced > Network > Offline Storage (Cache): "Clear Now"
    "Remove the Cookies" from sites that cause problems: Tools > Options > Privacy > Cookies: "Show Cookies"
    Start Firefox in [[Safe Mode]] to check if one of your add-ons is causing your problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    See [[Troubleshooting extensions and themes]] and [[Troubleshooting plugins]
    Your above posted system details show outdated plugin(s) with known security and stability risks.
    *Shockwave Flash 10.0 r12
    Update the [[Managing the Flash plugin|Flash]] plugin to the latest version.
    *http://www.adobe.com/software/flash/about/

  • How to conver HTML text to plain text?

    If I am lucky, I hope to get some real good answers. Basically, I have an HTML file saved on my hard drive, and I want to convert that HTML file to a plain text file.
    I tried implementing something myself. My algorithm was to simply match "<" and ">" and get rid of anything in between. It's working fine, but it's not fully cooked. It doesn't get rid of some weird characters like &XXXX, which is supposed to be some sort of a code for HTML. Also, it doesn't remove JavaScript codes or anything that's not contained in <BODY>...</BODY>. I sure can improve my program, but I am also hoping to see a faster and more efficient way to deal with that.
    I browsed thru some old topics, but nothing was satisfactory. Someone suggested the use of JEditorPane:
    int len = pane.getDocument().getLength();
    try {
    String text = pane.getDocument().getText(0,len);
    System.out.println(text);
    } catch (Exception e) {
    System.exit(0);
    But the problem with that is how a JEditorPane object should be instantiated. I could do something like this JEditorPane pane = new JeditorPane (URL url) or JEditorPane pane = new JeditorPane (String url). Either way, the program takes time to download the HTML page from the corresponding url. If one tries to detect �int len�, one can see that �int len� is likely to be zero, because the HTML page cannot be fully loaded in time. I guess I could try to deal with that problem by creating threads and stuffs. But I hope that there are some better solutions to end this misery once and for all.

    Here is a link to an article on the "Swing HTML Parser":
    http://java.sun.com/products/jfc/tsc/articles/bookmarks/index.html
    This is an example of how you might use the parser callback to solve your problem:
    import java.io.FileReader;
    import java.io.IOException;
    import java.io.Reader;
    import javax.swing.text.MutableAttributeSet;
    import javax.swing.text.html.HTML;
    import javax.swing.text.html.HTMLEditorKit;
    import javax.swing.text.html.parser.ParserDelegator;
    public class TestParser extends HTMLEditorKit.ParserCallback
         boolean ignoreText;
         public static void main(String[] args)
         throws IOException
              TestParser parser = new TestParser();
              // args[0] is the file to parse
              Reader reader = new FileReader(args[0]);
              try
                   new ParserDelegator().parse(reader, parser, false);
              catch (IOException e)
                   System.out.println(e);
         public void handleComment(char[] data, int pos)
    //          System.out.println(data);
         public void handleEndOfLineString(String eol)
         public void handleEndTag(HTML.Tag tag, int pos)
    //          System.out.println("/" + tag);
              if (tag.equals(HTML.Tag.STYLE)
              ||  tag.equals(HTML.Tag.SCRIPT) )
                   ignoreText = false;
         public void handleError(String errorMsg, int pos)
    //          System.out.println(pos + ":" + errorMsg);
         public void handleMutableTag(HTML.Tag tag, MutableAttributeSet a, int pos)
    //          System.out.println("mutable:" + tag + ": " + pos + ": " + a);
         public void handleSimpleTag(HTML.Tag tag, MutableAttributeSet a, int pos)
    //          System.out.println( tag + ":" + a );
         public void handleStartTag(HTML.Tag tag, MutableAttributeSet a, int pos)
    //          System.out.println( tag + ":" + a );
              if (tag.equals(HTML.Tag.STYLE)
              ||  tag.equals(HTML.Tag.SCRIPT) )
                   ignoreText = true;
         public void handleText(char[] data, int pos)
              if (! ignoreText)
                   System.out.println( data );
    }

  • How to set html text in JTextArea ? Need to resolve urgent...

    Hi,
    I need to display text in html format in JTextArea. But i did not find any property related to it.
    Is it possible to do with JTextArea. if not then how to acheive this.
    Thank you

    Hi camickr,
    I am not so good with applets, In this case I tried to find related properties of JTextArea and i did not get any one related to setting text format to html. I did googling for that and got thing which were some what complex.So i asked it in forum with simple words and an urgent label. I use urgent with only those topics, which i could not resolve within a time frame.
    Sorry I would avoid such thing further.
    Your suggestion are always helpfull, so I will follow this one aswell.
    Thank you.

  • How to enable Full text search feature in Azure SQL DB - Web Edition

    I have created an instance of Azure SQL DB web edition (basic), using the BizSpark a/c, for one of my global search feature, I need to enable/install full-text search , I don't find this option in Azure SQL DB web edition that I installed , would
    appreciate any help on this.

    Unfortunately full text search is not supported in Azure SQL DB.  
    Cotega - Azure SQL DB Monitoring, Notification and Scheduling service

  • How to convert HTML text to image

    Hi all!
    I&acute;m having this problem: I have a html code (dynamic generated) and I need to convert it to a image, any idea how to do that?
    Thanks, J.

    Im no Java2D expert but if you want the actual code as an image couldnt you just use 'drawString("<br>", x, y)' to display it and then allow it to be saved as an image, I know theres built in capability in Java to import/export common image formats. Or do you mean you want what the html actually produces as an image?
    Ken

  • Help -- How to display Html text in a JEditorPane

    I'm trying to display html in a JEditorPane (html is obtained by transforming Xml and Xsl). So after i do the transformation i have a string which is the html source to be displayed. But when i use editorpane.setText(htmlString) method it is displaying the html source in the editorpane. I also tried using the HTMLEditorKit's read method. Even then its displaying the html source. But when i store the html source as a html file and give the editorpane, the url of the html file, it displays properly.
         I would be so grateful if u can help in displaying the html (which i have as a string) instead of the source...
    Thank you so much...

    Hi, after struggling with problem, the solution seems to be to ditch the content type meta tag, JEditorPane seems to barf (silently!) on this...
    So, to turn this off...
    transformer.setOutputProperty(OutputKeys.ENCODING,"");
    Cheers
    Greg

  • How to enable Arabic text in Photoshop cs3?

    Greetings everyone,
    I want my Photoshop cs3 to support Arabic text. I have searched the internet to find any clue but couldn't.
    Please help.

    Hello,
    You can find this on devianart.com
    http://designersguide.deviantart.com/art/arabic-font-tutorial-105236862
    Thank you.
    Regards,
    Chintan Kotadia.

Maybe you are looking for

  • Can't import movies to iTunes after setting up iTunes Match

    Hi.  I setup iTunes Match a couple of weeks ago (love it, btw), but for some reason since I set it up I can no longer import .m4v files into the Movies library. There is no error, they just never copy over. iTunes 10.6.1(7) 64-bit on MacPro running O

  • T520 - Win7 Ent - UEFI - GPO Enabled to allow Bitlocker enhanced pin, but windows refuses it

    Before I start -- I'm not sure if this is a windows issue or a lenovo issue, but had to start somewhere. I have installed our standard image of Windows 7 enterprise using Microsoft Deployment Toolkit on a new T520.  The drive is configured for and OS

  • Duplicate rows in meterilized views

    we have a materialized view refresh jobs which run using dbms_scheduler every morning . DBMS_MVIEW.REFRESH( LIST => 'SUBSCRIBER', METHOD => 'C', atomic_refresh => FALSE ); strangely today morning we noted duplicate rows in the Mview , i ran this mvie

  • Two time capsules for one Mac

    I have 3 TB data on my Mac. The biggest Time Capsule is 2 TB. At the moment I do only backups from one of my hard disks with 1 TB. I manage the additional backup of 2TB with Chronosync, but I really would like to do it with Time Machine. Is there any

  • Error in archive purchase order

    Hi! I am trying to archieve a purchase order; I have an error in the final step: maintain retention period. Could anyone please tell me form where can I set retention period for purchase order? Thanks!