How can I use javascript in a Text Area with HTML editor??

My question is... how can I use javascript in Text Area with HTML editor??
I can use javascript functions that change the content of Text Areas but i can´t if i try in text area with html editor....
I need to limit number of characters in a text area with html editor and i can´t.
could anybody help me please?

I have been experiencing similar problems with the HTML Editor and have managed to find an answer that should start to answer some of my questions. The Apex HTML Editor Standard is actually an HTML editor called FCKeditor. The FCKeditor has a Javascript API that can be found at http://docs.fckeditor.net/FCKeditor_2.x/Developers_Guide/JavaScript_API. Unfortuately this doesn't seem to give the whole answer and I found more at http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:49607.
I needed to get the text entered within my html editor standard (e.g. P1_MYTEXT) and use it within my javascript function. I did this by using the following script
<script language="JavaScript" type="text/javascript">
function showtext(){
var oEditor = FCKeditorAPI.GetInstance('P1_MYTEXT');
var editortext = escape(oEditor.GetXHTML(oEditor.FormatOutput));
alert(editortext);
</script>
Hope this helps.
Matthew

Similar Messages

  • Text area with html editor based on sql query

    Hi all,
    I am trying to create a text area with its contents loaded from a sql query returning a blob field.
    I gave the query
    select blob_field from file_subjects where id=41; in the item source valueI am getting an error in the display page like
    ORA-00932: inconsistent datatypes: expected NUMBER got BLOB
         Error      ERR-1019 Error computing item default value: page=5 name=CONTENTS.
    where am i goig wrong..?
    should i go for a pl/sql instead?

    Venket,
    See my previous thread on this (Well I used CLOB rather than BLOB). You will find code examples too. Should be just what you need.
    How to "Bypass" HTMLDB
    -Joe

  • How can i use javascript in weblogic jsp

    Hai,
              I know that we can use the jsvascript to validate the html parameters.
              Is the wblogic jsp support the javascript ?. I tried in weblogic
              5.1.0.,the javascript is not working.
              anybody can help me how to validate html input and how can i use
              javascript in jsp.
              Thanks
              Srinivas
              

              Do you know how JSP can use a variable defined in Javascrip ?
              Thx,
              Lin
              "Cameron Purdy" <[email protected]> wrote:
              >Write your JSP as you would any HTML file, including JavaScript. Then
              >rename the .html file to .jsp. Add your custom tags and Java code as
              >desired. Done.
              >
              >There was a complaint in the 5.0 beta about the JSP parser choking on
              >JavaScript, so I would make sure you at least try on the latest 5.1 service
              >pack, just in case.
              >
              >Cameron Purdy
              >
              >"SRINIVAS" <[email protected]> wrote in message
              >news:[email protected]..
              >> Hai,
              >> I know that we can use the jsvascript to validate the html parameters.
              >>
              >> Is the wblogic jsp support the javascript ?. I tried in weblogic
              >> 5.1.0.,the javascript is not working.
              >> anybody can help me how to validate html input and how can i use
              >> javascript in jsp.
              >>
              >> Thanks
              >> Srinivas
              >>
              >
              >
              

  • How can I use my Dell photo 924 printer with my iMac

    How can I use my Dell photo 924 printer with my iMac, I have tons of ink and don't want to buy a new printer right now.

    People who need to SCAN & PRINT without a compatible driver from their manufacturer can use Apple's very basic "PRINT & SCAN" utility in System Preferences:
    Click the Apple menu ( ), and then click System Preferences .
    Click Print & Scan ( ).
    Click Scan , and then click Open Scanner .
    Click Show Details . The details of the scan display, including options to modify scan settings such as output type.Figure 2: Example of the Show Details scanning screen
    Change any settings as necessary, and then click Scan .
    Hope this helps

  • How can I use a vector image to stretch with the backgrounds in Muse master pages?

    How can I use a vector image to stretch with the backgrounds in Muse master pages?

    Maybe there's a bug.  I think it's only showing it when it wants to because look:

  • How can I use my Ipod as an alarm with wake up to an internet radio?

    How can I use my Ipod as an alarm with wake up to an internet radio?

    You need to find an app that does bot since one app can effect another app (an alarm app can tell an internet radio app to start playing).  There is Trance Radio with Alarm and Radio with Alarm Clock

  • ... how can i use 'enter' in java (text) -.-

    Hi all,
    first the simple version;
    How can i use 'enter' in java. Like turn HELLO into
    H
    E
    L
    L
    O
    The not so simpler version IF needed;
    I have the following piece of code;'
    if (line.startsWith("Monday")) {
         String subjectsMonday = " math and philosophy";
         Calendar c = Calendar.getInstance();
              System.out.format("School begins at" +" 08:10", c, c, c);
              System.out.format(" school ends at " +" 15:55", c, c, c);
         System.out.println("We have the following subjects;" + subjectsMonday);the thing is ... i want the text "we have the following subject; math and philosophy" to start at a new line.
    HOW am i supposed to do that.

    %n may work for you:
            String subjectsMonday = " math and philosophy";
            Calendar c = Calendar.getInstance();
            System.out.format("School begins at" + " 08:10%n", c, c, c);
            System.out.format(" school ends at " + " 15:55", c, c, c);
            System.out.println("We have the following subjects;" + subjectsMonday);

  • How can i use JavaScript in Struts

    Any one can please tell me how can i use simple java script in Struts framework
    like
    <script language="javascript">
    function call()
    alert("You Are In call()")
    </script>
    </head>
    <body>
    <form ..... >
    <input type="button" value="CHECK" onclick="return call()" >
    </form >........
    ok this i can use in normal jsp
    but how can i use same in Struts framework
    Thanks in advance

    This forum is for JSF, not Struts. Your best bet to get your question answered, is to post to the struts user mailing list.

  • How can I use same account in 2 iphone with diff contact list?

    how can I use same account number but other all totally diff such as contact list, application, everything ..... I found that it's bad on IOS5.
    when I used IOS4 .. old verison, I can keep my phone in diff data. Afte upgrade IOS 5, it's bad. Even take photo, it can not focus zoom in and out.

    how can I use same account number but other all totally diff such as contact list, application, everything ..... I found that it's bad on IOS5.
    when I used IOS4 .. old verison, I can keep my phone in diff data. Afte upgrade IOS 5, it's bad. Even take photo, it can not focus zoom in and out.

  • How can I use the built-in Isight camera with an external camera (usb/firewire) at the same time?

    How can I use the built-in Isight camera and an external video camera at the same time?
    I'm wanting to stream over Oovoo/Skype/etc. using 2 cameras.
    Thanks

    Simple question with a not so simple answer.
    (a) If you mean that you want to run multiple apps simultaneously using a different camera with each app, you may encounter computing power limitations.  Digital video is processor intensive.  The only way to know if your Mac can do this it to try it.  If the video does not work together but each app works when it it the only app running, you are likely overloading your Mac's ability to process and/or move all the required data in your data bus.  You can get a better indication of whether this is the case by watching your Activity Monitor utility while running the apps you want to use.
    (b) If you mean that you want to have more than one compatible camera connected to your Mac simultaneously for ease of changing between video sources, some, but not necessarily all, apps you are using to operate your camera(s) allow you to select between your cameras.
    How you select among connected cameras depends on which application you are using. Here is how camera selection works in a few examples:
    (1) For iChat, you can choose which iSight you use in the "Camera:" choices bar in iChat > Preferences... > Audio/Video that appears when more than one compatible camera is connected. Although your camera choices will be different, the choices bar will look something similar to the Preferences settings shown here:
    If you cannot see the "Camera" choices bar, your Mac is recognizing only one (or none) of your cameras. In that case, consider the suggestions fromhttp://support.apple.com/kb/HT2090 for iSight problems or refer to your other camera's documentation for help.
    This particular choices bar solution applies ONLY to iChat. Most other applications also have settings that allow you to choose which camera to use. However, they do not all work the same way.
    (2) For instance, iMovie HD's camera choice is NOT set via Preferences. When you have more than one compatible camera connected, iMovie6 HD uses a drop-down menu choice something like this (depending on which version of iMovie you use):
    Note: Because I had no built-in iSight connected when I made this example, and because my external iSight was not connected, the drop-down menu showed only "Time Lapse." Because your Mac has a built-in iSight, your built-in iSight would show in the drop-down menu even when no other camera is connected. Connecting an additional Mac compatible webcam should allow you to choose either camera.
    Other iMovie versions work slightly differently.
    iMovie 9 (from iLife '11) uses a different camera choice button shown in this article:
      http://docs.info.apple.com/article.html?path=iMovie/9.0/en/mov39f84285.html
    iMovie 8 (from iLife '09) is slightly different as explained in this article:
      http://docs.info.apple.com/article.html?path=iMovie/8.0/en/10172.html
    In general, you can use your Mac's help for the application in use to find out how to select among more than one connected camera.
    (3) Photo Booth in Snow Leopard 10.6.x and later uses the Photo Booth > Camera menu command to select which camera to use.
    Note for readers with older Mac OS X: The previous version of Photo Booth that came with Tiger (10.4.x) is such a simple, basic app that it offers no menu selectable choice. Unless your built-in iSight is already occupied as the camera being used by some open application before you launch Photo Booth, Photo Booth will use ONLY your built-in iSight.
    However, you can use the trick from ¶ 4 of http://docs.info.apple.com/article.html?artnum=302781 to let Photo Booth use an external camera.
    (If you have an external Firewire camera connected, it may be used in preference to any USB webcam. If that is a problem for you, merely disconnect the problem Firewire device.)
    (4) For FaceTime, launch the app and click the Video menu item.
    If your Mac recognizes more than one connected compatible camera, a "Camera" section listing the cameras from which you can choose will appear there. Clicking on the desired camera name will let you select the one you want as shown in this image from my Mac Pro and LED Cinema Display:
    If your Mac recognizes only one compatible camera, the "Camera" section will not appear in the Video menu, but FaceTime will automatically use the connected camera that is recognized by OS X.
    (5) I do not use Skype oir Oovoo.  For those or other apps, see Help for each app for info on how to select your desired camera.
    Message was edited by: EZ Jim

  • How can I use any website on the internet with my apple tv?

    How Can I use internet or the web on my apple tv?

    Welcome to the Apple Community.
    You can't unless you mirror it from your iPhone or iPad.

  • How can I use a iteration control to compare with array?

    Dear All
    I have done a program and I need to test me program...but I seem to have to problem...I don't know how to use a iteration ( a for loop ) to test my program...
    My test code is written like this...
    public class ClockWatchDemo
    public static void main(String[]args)
    TimePiece[] tpList = new TimePiece[3];
    tpList[0] = new Watch(200, "Vintage", "Men");
    tpList[1] = new Clock(400, "Classic", 70);
    tpList[2] = new Clock(300, "Futuristic", 45);
    for(int i=0; i<3; i++)
    if( i == tpList[0] ) // how can I do to compare my temp integer with the array number?
    System.out.println(tpList[0].toString() + "\n");
    else
    return "";
    Please advise

    Thank you for your help but how can i compare my temp int i to the tpList array?
    I wanted to do something like this
    if( i == tpList)
    System.out.println(tpList[i].toString() + "\n");
    but I will get prompt to inform me that
    if( i == tpList[i])
    incomparable types : int and TimePiece
    Please advise.
    Thank you

  • No ISA slot available in PC. How can I use PCI-85 Modbus Plus card with Lookout?

    My application is to communicate with two Modicon PLCs using Modicon's ModBus Plus (PCI based PCI-85) network card inside my PC, and using Lookout as an SCADA software. Since there is no ISA slot available in new PCs, I can not use Modicon's ISA-85 Modbus Plus networc card. But Lookout does not support PCI based PCI-85 card, how can I use PCI-85 card then, with Lookout? Why doesn't Lookout support it? I asked the following question from from the Modicon's representative about it:
    If I purchase Modbus Plus Driver Suite CD (SWMXDS001, 05, or 10 etc),will I be able to use Lookout SCADA software (by the way, it supports standard MB+ prtocol) for my application? If yes, can I use any version of an
    y of the ISA, PCI, or PCMCIA based MB+ card?
    His answer was:
    The Modbus Plus Driver Suite will talk to any version of card, PCMCIA, ISA, and PCI. The question now is will the SCADA package you are
    planning on using be able to talk to the Modbus Plus Driver Suite? You must contact National Instruments and ask them if they support Modbus Plus, and if
    they used the MB+ system developement kit to develop their product. Or if they wrote their own MB+ drivers, do they work with Modicon hardware?

    Hi,
    currently Lookout does not support the PCI-85 card. The only card supported for Modbus Plus is SA-85. Please see for further information:
    Where can I Find Drivers for Communicating to PLCs, RTUs, and Other Industrial Hardware?
    How to configure the SA-85 card for Modbus Plus
    Hope this helps
    Roland

  • I have a i phone 4,4.3.5 bought from uk i used this in uk but now i am in india how can i use this phone in other networka with out jailbreak such ntype of softwares

    i have a iphone 4,4.3.5 bought from uk i used this phone in uk,now i am in india how can i use this in another networks without jailbreak such type of softwares

    Where did the phone come from as most of the UK carriers unlock phones, but the fact that you are now abroad may be a problem.

  • [EWS][Java] How can I use the Search Filter only mails with attachments?

    Hey,
    I'm trying to search a folder ( doesn't matter  which ) for ONLY mails with attachments.
    How can I use the search filter for that purpose? 
    Thanks!

    You can drag the attachment collumn from settings and sort on that collumn
    In the main Outlook window, on the View menu, point to
    Current View, and then click Customize Current View.
    Click Fields. In the Available fields list, click the field that you want to add, and then click
    Add.
    Come back and mark replies as answer if they help, and help others with the same problem. If this post is helpful please vote it as Helpful on the left side.

Maybe you are looking for

  • How can I limit the number of simultaneous downloads on my Mac?

    Hi Everyone, I'm using an old Powerbook G4 runnnig 10.4.11. Whenever I'm downloading a large number of files simultaneously, my OS insists on downloading them all at the same time. When I've got 50+ files coming in, it gets kind of messy and makes it

  • Windows 2003 SP2 = 2008 R2 SP1 Upgrade 62% Rollback

    Hello, we have to upgrade our Windows Server 2003 SP2 x64 (DC), to Windows 2008 R2 SP1. Unfortunately, a clean install is not an option. The server is a virtual machine. Therefore, first we make a clone, for a test upgrade, of the server. Adprep and

  • 3gs v 2.1 buletooth

    I just got a new 3gs iphone (v2.1 bluetooth) and am trying to use it in my '09 Nissan Murano with factory Nav/Bluetooth/etc., however, the car does will not recognize the phone ("No phone avaulable" message)-- The car does still recognizes my 3g ipho

  • How do I get 16x9 aspect ration on an external monitor?

    I'm connected to a huge monitor but can only choose resolutions that are 4x3 - and the monitor is 16x9. Is my VGA connection restricting it? Will the option become available if I use HDMI? I just haven't bought the connections yet, but would definite

  • Problem saving in Photoshop Elements 12 on a mac

    Hello, can anyone help me please?  I am trying to save an image that I have photoshopped but I am getting a message that says 'write access is denied'.  It appears that all of my images are read only and I have no idea why.  I am new to Mac so maybe