Coldfusion with javascript alert problem with apostrophe

Hi
I have alert ("thanks for sing up #fname# - #lname# ")
but fname='Charles's
lanme ='Charles's'
so javascript is not interpret with apostrophe . how can i
resolve it thanks

JSStringFormat()
http://livedocs.adobe.com/coldfusion/7/htmldocs/wwhelp/wwhimpl/common/html/wwhelp.htm?cont ext=ColdFusion_Documentation&file=00000543.htm

Similar Messages

  • JSF with JavaScript ! Problem with OnLoad()

    Hello,
    I have a .js (javascript) file which has one function. I want to call this function in my jsf-jsp page form.
    The javascript run successfully without onload. But when i use onlod it is giving me error like "
    com.sun.rave.web.ui.appbase.ApplicationException: org.apache.jasper.JasperException: /Webcam.jsp(11,109) Attribute onload invalid for tag body according to TLD
    1. How can i use the onload event with forms or body with jsf ?
    After this, i want to use some if else code with my jsp page. Normally we do this using scriptlets in jsp. So how can i do this on the jsf-jsp. Should i use backing bean to write the same code ?
    Actually i want to invoke different applications based on coditions on the return of my javascrit function.
    Can anybody has tips, solution on this ?
    -Sachin
    EpiComm Technologies Ltd.

    BalusC,
    If we want to set focus to a particular element, then
    this won't work.
    If runScript() function is referring to any form
    element we get an error stating that
    "document..forms.formname.elements is null.
    any ideas how to set focus when the form loads?Then put the script in the bottom of the JSF code, straight before the end body tag. At this place all JSF components are finished with generating.
    <html>
        <head>
        </head>
        <body>
            <f:verbatim>
                <script>
                    setFocus('</f:verbatim><h:outputText value="#{myBean.focusId}" /><f:verbatim>');
                </script>
            </f:verbatim>
        </body>
    </html>

  • Problem with javascript:alert(document.lastModified)

    After I upgraded to Firefox 6.0.1 and now today to 6.0.2, I'm unable to get any response to my using javascript:alert(document.lastModified)
    in order to get a web page date.

    A lot of websites are generated dynamically by a script (e.g. PHP or other server side script) that runs on the server and in that case you will always see the current date.

  • ALERT PROBLEM WITH QUERY OUTPUT

    I have a few queries that were originally created using the B1 Query Wizard, that I then attached to Alerts.  Unfortunately when the Alert runs, the query output is different either in layout or records returned (usually less) when compared to running the query directly.  Is this a glitch in B1 as some folks have told me or is there a problem with queries created by the Query Wizard?

    Hi Frank,
    This is a limitation.
    The note 874145 is written about it. It also offers some workarounds.
    I would think that you can also create a 'Select count(*)' query that would also run as an alert that would tell the user how many records are affected. I did not test this, just an idea.
    Hope it helps,
    Jesper

  • Javascript alert problem - select state

    I am trying to validate my form with javascript. I'm having
    trouble with my state field. If the user selects a state javascript
    alerts the following message: "SELECT ONE is not a valid choice.
    Please choose your state." I want the alert message to pop up if
    select one is selected as a state. How do I fix this problem?

    pqer wrote:
    > I am trying to validate my form with javascript. I'm
    having trouble with my
    > state field. If the user selects a state javascript
    alerts the following
    > message: "SELECT ONE is not a valid choice. Please
    choose your state." I want
    > the alert message to pop up if select one is selected as
    a state. How do I fix
    > this problem?
    >
    >
    >
    > <script language="javascript"
    type="text/javascript">
    >
    > // check to see if the form is blank
    > function validForm(contactUs) {
    >
    >
    > if(contactUs.state.value != "SELECT ONE") {
    > alert("SELECT ONE is not a valid choice. Please choose
    your state.")
    > contactUs.state.focus()
    > return false
    > }
    if(!contactUs.state.selectedIndex) {
    alert("SELECT ONE is not a valid choice. Please choose your
    state.");
    contactUs.state.focus();
    return false;
    Mick
    >
    > </script>
    >

  • Export to excel with javascript/vbscript or with plsql(html table)

    i have searched for a way to export data from OracleXe to excel without losing formatting .
    So far i have found 2 possible relatively easy ways that i am still researching
    (i do not include the ask tom sylk format way of exporting )
    1 to export the query to a html table, while using stylesheets for formatting
    (using microsoft specific styles)
    2. use of javascript/vbscript to fill an array and write this array to excel with use
    of visual basic for applications in excel.This also provides charting capabilities.
    I am still researching this two ways, and have
    encountered a few obstacles (help would be appreciated)
    1 the first way:
    a. create a button " export to excel"
    b. create the following pl/sql procedure:
    owa_util.mime_header('application/vnd.ms-excel');
    owa_util.http_header_close;
      HTP.PRINT('<html>');
      HTP.PRINT('<head>');
      HTP.PRINT('<meta http-equiv="Content-Type" content="text/html">');
      HTP.PRINT('<title>Title of the HTML File</title>');
      HTP.PRINT('</head>');
      HTP.PRINT('<body TEXT="#000000" BGCOLOR="#FFFFFF">');
      HTP.PRINT('<h1>Heading in the HTML File</h1>');
      HTP.PRINT('<p>Some text in the HTML file.');
      HTP.PRINT('</body>');
      HTP.PRINT('</html>');
    htmldb_application.g_page_text_generated := true;
    htmldb_application.g_unrecoverable_error := true;
    c: run the procedure conditionally based on the button  "export to excel"
    the problem with this way is that using htmldb_application.g_unrecoverable_error := true; is not the ideal way, because it
    stops further processing, but if i leave it out, the export doesn't happen.
    To export to excel while retaining data formatting  you have to use microsoft excel
    specific styles(Seedocumentation on the microsoft site)
    2.The second way:
    a create a pl/sql procedure or sql query.
    b use this query to fill a vbscript/javascript array with values
    c write these values to excel with use of vba in excel :
    the obstacle i encountered here was that i dont know how to export the result of a
    query to a visual basic script or javascript array.

    Using approach 1) works fine for me.
    the problem with this way is that using htmldb_application.g_unrecoverable_error := true;
    is not the ideal way, because it
    stops further processing, but if i leave it out, the export doesn't happen. Why is this a problem?
    I created the button to export the excel file on page 1 and created your pl/sql procedure on page 2 using an onload process.
    Works fine.
    Other approaches for exporting to excel are:
    http://www.oracle.com/technology/pub/articles/saternos_broadcast.html
    http://htmldb.oracle.com/pls/otn/f?p=18326:54:5685133631021176591::::P54_ID:1962
    ~Dietmar.

  • Ipad 2 with IOS 6 problems with apps and battery

    Ok, I had updated my iPad the day of or day after the IOS 6 came out and at first I had no problems with it. Except now, for some reason I am starting to have problems with different apps and with the battery life.  First off within 15 minutes, it went down to almost 90% charge with it being a full charge and me hardly using any apps and closing the ones I wasn't using (which was just safari and Facebook open). But the problem I have been having is that I cannot chat with my friends on the Facebook app now because it will show its loading the chat box and then freeze up.  With pages and numbers, they seem to take longer than usual to load up which is around 10 seconds or so before I can do anything.  I had uninstalled and reinstalled the apps with no effect and tried restarting my iPad. It also seems like my iPad is taking longer to shut down and turn on than usual even though i make sure all the apps are closed before turning it off.  (the location services, bluetooth, notifications, FaceTime, messages, and limit ad tracking is all turned off to help with battery life and i don't use them.)Is there any suggestions on what I can do to fix this problem? 

    The quickest way (and really the only way) to charge your iPad is with the included 10W USB Power Adapter. iPad will also charge, although more slowly, when attached to a computer with a high-power USB port (many recent Mac computers) or with an iPhone Power Adapter (5W). When attached to a computer via a standard USB port (most PCs or older Mac computers) iPad will charge very slowly (but iPad indicates not charging). Make sure your computer is on while charging iPad via USB. If iPad is connected to a computer that’s turned off or is in sleep or standby mode, the iPad battery will continue to drain.
    Apple recommends that once a month you let the iPad fully discharge & then recharge to 100%.
    How to Calibrate Your Mac, iPhone, or iPad Battery
    http://www.macblend.com/how-to-calibrate-your-mac-iphone-or-ipad-battery/
    At this link http://www.tomshardware.com/reviews/galaxy-tab-android-tablet,3014-11.html , tests show that the iPad 2 battery (25 watt-hours) will charge to 90% in 3 hours 1 minute. It will charge to 100% in 4 hours 2 minutes. The new iPad has a larger capacity battery (42 watt-hours), so using the 10W charger will obviously take longer. If you are using your iPad while charging, it will take even longer. It's best to turn your new iPad OFF and charge over night. Also look at The iPad's charging challenge explained http://www.macworld.com/article/1150356/ipadcharging.html
    Also, if you have a 3rd generation iPad, look at
    Apple: iPad Battery Nothing to Get Charged Up About
    http://allthingsd.com/20120327/apple-ipad-battery-nothing-to-get-charged-up-abou t/
    Apple Explains New iPad's Continued Charging Beyond 100% Battery Level
    http://www.macrumors.com/2012/03/27/apple-explains-new-ipads-continued-charging- beyond-100-battery-level/
    New iPad Takes Much Longer to Charge Than iPad 2
    http://www.iphonehacks.com/2012/03/new-ipad-takes-much-longer-to-charge-than-ipa d-2.html
    Apple Batteries - iPad http://www.apple.com/batteries/ipad.html
    Extend iPad Battery Life (Look at pjl123 comment)
    https://discussions.apple.com/thread/3921324?tstart=30
    New iPad Slow to Recharge, Barely Charges During Use
    http://www.pcworld.com/article/252326/new_ipad_slow_to_recharge_barely_charges_d uring_use.html
    Tips About Charging for New iPad 3
    http://goodscool-electronics.blogspot.com/2012/04/tips-about-charging-for-new-ip ad-3.html
    Prolong battery lifespan for iPad / iPad 2 / iPad 3: charging tips
    http://thehowto.wikidot.com/prolong-battery-lifespan-for-ipad
    iPhone, iPod, Using the iPad Charger
    http://support.apple.com/kb/HT4327
    Install and use Battery Doctor HD
    http://itunes.apple.com/tw/app/battery-doctor-hd/id459702901?mt=8
    In rare instances when using the Camera Connection Kit, you may notice that iPad does not charge after using the Camera Connection Kit. Disconnecting and reconnecting the iPad from the charger will resolve this issue.
     Cheers, Tom

  • Windows 7 Home Premium with 802.1x problems with the Authentication

    We have problems with  OS Windows 7 Home Premium 802.1x, the message in ACS:
    EAP-TLS or PEAP authentication failed during SSL handshake
    ACS v4.1
    We have OS Windows 7 Professional and doesn´t have problems with the authentication.
    I hope that you can help me
    Regards

    We were investigated with specialist people of OS Windows and the conclusion was that the Home Premium Version has restrictions about authentication and domain (Active Directory). So we need change the version of OS (Proffessional for example).
    If you had another tip, please tell me and I try it for resolve this issue, if not we have to change the OS.
    Regards

  • Problems with purchased items, Problems with purchased items

    I have problems with my purchased itens displayed in iPhone.
    When I access "iTunes > Purchased" (on iPhone) it does not show one of the albums that I purchased. When i acess "Purchased items" in iTunes (MacBook) this album is showed.
    because of this I purchased two times the same album.
    How to solve this?

    I just called the 1-800-My-Apple and the said there is really nothing they can do about it. They said I had an outstanding payment of $8.54 (or something like that), I said I know b/c of the problem I am having with my bank, but NO previous completed purchases should have anything to do with this outstanding payment . It should not keep me from being able to update or download previously completely paid apps, TV Shows, or movies - they are mine, and I paid for them. I submitted a complaint.. that just isn't right!

  • People with vista having problems with adobe flash player 9

    this seems to be a very big problem that this many people are
    having problems with the adobe flash player 9. I can't get it to
    install at all and many can't get it to work..how many have vista I
    wonder? Please help us fix this frustating problem.

    I am using vista and having the same issue...

  • WS2012 Standard R2 with Essentials sudden problem with Server Manager, Essential Dashboard and other services

    Hi all,
    I have a problem with my Windows Server 2012 R2 with Essential installed. When I try to run Server Manager the server manager window doesn't appear and the same thing applies for starting the essentials dashboard. This leads to that some of the features doesn't
    work properly like remote web access, client backup and so on. When I check the Services a lot of services haven't even started. Trying to manually start for example Windows Server Essentials Management Services gives me following error message: 
    "Windows could not start the Windows Server Essentials Management Services on Local Computer. Error 1068: The dependency service or group failed to start"
    What can be wrong here? I haven't done anything to the server that could start these problems. This started all of a sudden. 
    Thank you all in advance for any help.
    EDIT:
    I rebooted my server in safe mode and I tried to run SFC /Scannow which stops at 84% and gives me following message:
    "Windows Resource Protection could not perform the requested operation."
    I also tried to run "DISM.exe /Online /Cleanup-Image /RestoreHealth". This did not help either. It completes the operation but nothing changes. The problem is still there.
    I thought that my server backups were OK and that this problem would be gone by restoring the C: drive with backup image. The problem is that all my good backups was rewritten with new backups that could not take backup of the C: drive for some reason. Now
    I need to solve this problem without reinstalling the whole operating system.
    EDIT:
    I have also completed the chkdsk C: /r command and now the SFC /Scannow command can be completed, with notification that some files could not be fixed. I have attached the sfcdetail.txt file which points out that
    "tsgclean.exe" cannot be repaired. What has that file to do with my WS2012 problems...
    2015-01-04 03:12:54, Info                  CSI    00000477 [SR] Cannot repair member file [l:24{12}]"tsgclean.exe" of Microsoft-Windows-TSProxy-EdgeAdapter,
    Version = 6.3.9600.16384, pA = PROCESSOR_ARCHITECTURE_AMD64 (9), Culture neutral, VersionScope = 1 nonSxS, PublicKeyToken = {l:8 b:31bf3856ad364e35}, Type neutral, TypeName neutral, PublicKey neutral in the store, hash mismatch

    Hi,
    Did you remember any operation which you had done before this issue occurred? For examples, install any update,
    install any third-party application or any other? Just a confirmation, thanks for your understanding.
    For those problematic services, please open services’ Properties and navigate to
    Dependencies tab, then check if all system components which this service depends on run as normal.
    In addition, please open Event Viewer and check if find relevant events. Meanwhile, please follow the path:
    %programdata%\Microsoft\Windows Server\Logs and check Dashboard log file if find more clues.
    By the way, when you run
    sfc /scannow command completely, did you open Server Manager or Dashboard again? Any difference?
    If any update, please feel free to let me know.
    Hope this helps.
    Best regards,
    Justin Gu
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Support, contact [email protected].
    Hello Justin,
    Regarding the third-party applications:
    I have not installed any third-party application that could cause this problem. All my third-party applications that are installed on the WS2012 R2 are confirmed working well with the operative system and are installed at the time when I hadn't these problems.
    I cannot say anything about windows update because that is something that I update once in a week after checking that no user is reporting any issues. I have learned my leason with windows update when I had Surface Pro 2, that was a dissaster.
    Regarding the Windows Updates:
    Anyway, I tried to remove all the windows updates before as well (not the security updates) down to 5th December which is the time when I know that my server worked well. Only two updates could not be removed (KB3012199 and KB2989647). I don't
    know if these two updates can cause any problem?
    Regarding the problematic services:
    For example: Checking the properties for "Windows Server Essentials Management Service" -> It is dependable on
    "1. Active Directory Domain Services" and "2. Windows Server Essentials Provider Registry Service".
    No 1 is running but not no 2. If I try to start no 2 service it will give me the same message as before:
    "Windows could not start the Windows Server Essentials Management Services on Local Computer. Error 1068: The dependency service or group failed to start"
    Regarding the Logs:
    I have uploaded Dashboard log files which are created after 5th December to my dropbox account: Link
    Regarding the SFC command:
    Of course, when the SFC command was completed but with error that it could not repair
    tsgclean.exe I tried to start the essentials dashboard and WS2012 server manager with no luck.
    What about the error message? I looked up that file in the explorer and it is located in folder "C:\Windows\WinSxS\amd64_microsoft-windows-tsproxy-edgeadapter_31bf3856ad364e35_6.3.9600.16384_none_2ec8d374a0ac5606"
    Why can't it be repaired and what kind of file is that?
    Best regards

  • DW CS4 with Windows 7 - problems with Extension Manager

    Hi
    I am new to this forum and have searched to see if anybody else has had this issue but can't find it.
    I have recently installed CS4 on a Windows 7 laptop. I had originally downloaded and installed it on an XP laptop where it was all fine.
    I had some problems with installation with the unlocking of the serial number on the new laptop - this was resolved by Adobe support.
    However now I am trying to install extensions and get the message that the Extension Manager is unavailable and I have to re-install.
    I have tried to contact Adobe using the Support portal but my post has been there for 4 days and I have had no response. I have just tried to call and after 12 minutes of being on hold - when the wait time was supposed to be 1 minute - I gave up.
    Can anyone help with this. Does this mean an uninstall then re-install again? In which case I will have the same serial number issue that I had before. Or is there any other way I can install the Extension Manager?
    Would really appreciate any help.

    I had a somewhat similar experience with the 4.2.1 upgrade with my computer. With my Q6600 running at 3.2 GHz, Vista x64 and with PPro CS4/4.1 update, I ran the PPBM4 benchmark and scored an 83.8. I then installed Win 7 x64, clean install etc… and re-ran the PPBM4 benchmark, with the same 4.1 update and with all system configurations the same as before, my score improved to 68.8, fantastic! I was very impressed with Win 7 x64.
    This was short-lived because I updated PPro from 4.1 to 4.2.1, re-ran the PPBM4 benchmark and my score fell to 83.1 seconds, not impressed with the 4.2.1 update as far as this benchmark was concerned. I replaced the Q6600 with a Q9450, also over clocked to 3.2 GHz and with Win 7 x64, ran the PPBM4 benchmark and scored a 68.1; I got back everything I had lost in system speed from the 4.2.1 update plus some.
    The Q6600 does not have the SSE4 instruction set while the Q9450 does. Perhaps the 4.2.1 update benefited CPU’s with SSE4 while those CPU’s without it, took a performance hit, just a guess.

  • Early watch alert - problem with generating word document

    Hello experts,
    since last week I am not able to generate word documents of early watch reports. I have access to 4 different solution manager installations (of customers) where the generation was working without problems but stops since last week.
    SAP gui starts word and the standard word sheet is loaded (SAP early watch start page) but without putting data into the sheet. At the same time I get an error message in the sap gui saying:
    Error during download; read details in long text
    Long text:
    Message no. DSVAS824
    Diagnosis
    The application was unable to write a file to a local directory.
    Procedure
    Often the maximum length of 128 characters for the entire file name, which is defined internally, is exceeded. To avoid this problem, you can change the setting.
    To do this, open Microsoft® Word.
    For English interfaces, choose Tools->Options->File Locations->User templates.
    For German interfaces, choose Extras->Optionen->Speicherort für Dateien->Benutzervorlagen.
    Recommendation: Use directory names with a maximum of 60 characters (For example  C:Program FilesMicrosoft OfficeTemplates)
    I have already maintained the path in word options (we use Word 2007). My colleagues have the same problems.
    Any ideas or hints? Thank you in advance.
    BR, Basti

    Hi all,
    SAP is aware of this problem and is working on a fix.
    For a ***temporary workaround**
    run se38
    RAGS_DSWP_SERV_CONTENT_RESET
    (De-Activate content until  26.05.2011 07:28:06
    Execute
    This will allow you to open the report on a temporary basis.

  • Bug Alert: Problems with font color in CS5

    I'm noticing a problem that occurs when I try to change the color of some point type on my artboard. I type in some text, it's selected and I use the eyedropper or click on a swatch to select a new color for the text, and the font stays black. The active color on the color panel and the tool panel for the fill has changed to the new color I selected, but the font displays in black.
    I can even select something else, then go back and select the problem type and see that the color panel "thinks" it's blue, but the text displays as black. The only remedy seems to be re-typing the word, essentially starting over. I've rebooted to no avail. This seems like a bug, because it pops up about every other or every third time I try to work with type.
    At first I ignored it because it was occurring with a new font, and I thought the problem was the font - but now it's happening with all my tried-and-true fonts.
    Is anyone else having this problem?

    The only way I know this to happen is if there is a new fill which has been added via the appearance panel and the fill has been drag to the bottom of the characters in the panel.
    Or you have the type tool active and the cursor is active but the tex is not actually selected. Like such

  • "ALERT" Problem with my mail server or network

    I get this alert every time i open my e-mail
    How can i fix it
    Steve
    file://localhost/Users/stevenmitchell/Desktop/Screen%20Shot%202012-10-10%20at%20 4.37.13%20AM.png

    You link didn't work. You need to use the insert image tool in the advanced editor mode.

Maybe you are looking for

  • Blackberry Desktop Software for Mac won't open

    I've downloaded the Blackberry Desktop Software for Mac to begin synching my new Torch but when I try to launch the software, I get the following message. "The document "BlackBerry Desktop Software.mpkg" could not be opened. TextEdit cannot open file

  • How are you backing up data? (Movies, Photos, Music, etc.)

    Wondering how people are backing up their photos, home movies, and music. I personally am starting to run out of hard drive space on my external HD and wondering is just buying hard drives the best way to archive? Currently I have Media Files (photos

  • My 16:9 video is displayed as 4:3!

    Alright.. i'm extremely new at this as today is the first time i ever opened DVD Studio Pro, but i learn quick.. So pretty much i had a 2 minute clip that i edited in Final Cut Pro (a hdv 1080i) that i want to burn to SD DVD.. the footage is in wides

  • BI Project Plan

    Great Gurus I need BI project Plan. i have maintained the Business Card. Regards\Adnan

  • Aperture 2.1.4 issue with Image preview (Browser Only)

    Hi, I'm using Aperture from some time, from past few days I'm facing issue with my aperture image browser only. i have few projects created. In some projects I'm unable to see the images in view browser only mode. If I select some other view option i