JavaScript to force UPPERCASE

I'm trying to force uppercase in a form textfield by using
JavaScript, and it either won't support one method:
javascript:this.toUpperCase();
or if I write my own procedure it fails with an object expected
error.
anybody get this to work?
thanks!

Stick this script of the field JavaScript Event
Handlers (onChange)
this.value = this.value.toUpperCase()
Al Cameron

Similar Messages

  • Need Javascript to force reading mode on document open...

    Need Javascript to force reading mode on document open... Does anyone know how to do this? Acrobat 8 does not come with a custom action for opening a page in reading mode...
    Would also like the remove the page scroll bar from the document window. Can this also be applied using Javascript?

    This code will embed a script that will open the doc in Reading Mode:
    this.addScript("OpenInReadingMode","app.execMenuItem('ReadingMode');");
    You can't remove the toolbar from the document window, only in full screen mode it's invisible.

  • Force Uppercase

    I'm new to HTML DB, how can I force individual item entries to be uppercase.

    Hi 405670,
    (By the way you can set account so your name is visible in the forum. Go to "Forum Settings" and put YES to "Name visible to others:")
    Ok, about the Uppercase. Try to put this:
    onBlur="javascript:{this.value = this.value.toUpperCase(); }"
    in "HTML Form Element Attributes" of your item. That way, when the control "leave" the item, whatever is in it will be in uppercase.
    I hope this will help.
    Christian

  • Can I use JavaScript to force objects to overlap a Web Object in Captivate 7?

    Hi, so I have all of these great ideas for using Web Objects to enhance my courses, but am discouraged by the fact that I can't seem to get anything to overlap a Web Object. The only thing I can seem to get to overlap a Web Object is another Web Object. I have found that buttons seem to still work under the Web Object (which is good) but I really would like to know of a way to allow things on the Captivate timeline to be viewed on top of them. Things like text fields and images.
    I've seen posts about how to use JavaScript to have the menu show above Web Objects, but that code doesn't seem to work for regular objects. I read that Web Objects sit in an "<iframe>" tag and that that forces it to appear above everything else. I'm left wondering if it is possible to get around this by somehow putting Captivate objects in an <iframe> of their own with JavaScript? Or is there some other way? Does anybody know any JavaScript I can apply to Captivate objects to get them to appear above a Web Object?
    Thanks,
    Dan

    So I have come to learn that the "<iframe>" tag for a Web Object is simply a window that sits on top of the course. Now I'm wondering if anyone has an effective method for importing flash quality animation (in whatever form) that can sit underneath of Captivate objects and still be HTML5 compliant?
    Thanks,
    Dan

  • ADF Question: call javascript function from backing bean?

    Hi all,
    I am running JDeveloper 10.1.3.3 with ADF BC.
    Heres my situation:
    I have a table, and after inserting a new row, then committing, I want to call a javascript function. I tried using the onkeyup javascript to force a click of the save button, and then call my function after that. However, I really only want the second function to be called AFTER the commit has occurred.
    I have tried putting a setTimeout on the second function, but this never executes then. Is there some way that I can call the second javascript function from the backing bean? Is there a better workaround for this? Here is some code:
            function submitCreate(e) {
                var _event = (window.event) ? event : e;
                var KeyID = _event.keyCode;
                switch (KeyID)
                    case 13:
                        document.getElementById("form1:tvoTable:commitButton").onclick();
                        doAjax();
                        break;
            function doAjax() {
                var item = document.getElementById("form1:inputText3").innerHTML;
                getAjax(item, "FULL");
            }Thanks,
    Heather

    Maybe try adding an af:script block in your jsp as a partial target in your backing bean when you commit to the database? We are doing something similar when we get a tab DisclosureEvent but the principle should be the same.
    In our jsp we have:
    <af:script id="scriptID" text="alert('javascript here');"/>
    In the backing bean we have:
    method(DisclosureEvent de) {
    // get a component somehow or the component, we get it from the disclosure event
    // but you could use a binding also. if you don't have the exact script element you need
    // to find it like we do below.
    UIComponent c = de.getComponent();
    // Find our real script component
    UIComponent target = c.findComponent(":scriptID");
    // get the adf context
    AdfFacesContext adfContext = AdfFacesContext.getCurrentInstance();
    // add the script as a partial target.
    if(target != null) {
    adfContext.addPartialTarget(target);
    This relies on PPR though, which you may not be doing. If you are navigating to a new page you could set an indication in a backing bean and then access that in an <af:script> block in the new page or even generate the Javascript you want depending on your logic and access all of it via an EL binding on the af:script tag:
    <af:script id="scriptID" text="#{bbean.generatedScript}"/>
    Hope this helps!
    Steve

  • Forcing a Commit() to LMS

    We're experiencing issues with our captivate coureses in Oracle LMS.  I'm trying to used execute a javascript to force the course to send a commit to the LMS more often.
    I've tried doing this through a button that would execute g_objAPI.LMSCommit(''); and also go to the next slide.  It doesn't seem like this worked as we don't see any additional commits on the LMS side.
    I've tried executing the script to happen upon entering a slide. Again  there was no increase on the LMS side.
    Does anyone know how to force a commit to happen through javascript within the course or by modifying the HTML file?  I'm currently working in captivate 6 thought I have 7 as well.

    Normally the bookmarking works fine for us, but about 10% of the students
    run into the following problem.
    We have the student go through about 12 slides in our course (slides 3
    through 12 are slides which contain videos and last about 6 minutes each),
    which takes them about an hour to go through.  Then for certain people
    they get a communication error and have to close out the course.  Then
    when these students try to resume the course, they always have to start
    over at slide 3 again and are forced to watch the same hours worth of
    video again.
    I am using Adobe Captivate to create this course.  The last course we ran
    was using Scorm 1.2.  This time we will be using Scorm 2004 version 4.
    I just want to make sure that if someone gets a communication error (which
    apparently no one has any idea what is causing it) that the student will
    be able to actually resume where they left off.
    I have heard that when using Scorm 2004, the suspend data and location
    only get updated when a commit takes place, and since these students
    always get sent back to slide number 3 (the first video slide), then slide
    3 must be the only slide doing a commit (behind the scenes).
    Therefore, I am trying to figure out what the correct sequence and syntax
    for making sure that we are updating our suspend data and location as well
    as doing the commit on each of these 6 minute video slides.
    Any help would be greatly appreciated.
    Randy

  • Disabling Javascript in Mail.app

    Does anyone know if it's possible to disable embedded javascript in mail messages? There seems to be a good amount of spam getting through lately that uses javascript to force images to load automatically, and I'm a bit uneasy about that!

    I think you want to disable HTML...check that your Mail preferences are set to protect your computer by not displaying remote images.
    MAIL/Preferences/Viewing...uncheck Display Remote Images...

  • Adobe Acrobat 9 Pro 9.4.3 - Freezing and crashing system

    Updated to Adobe Acrobat 9 Pro 9.4.3 - intermittantly freezing up when opening files. 9.4.2 was crashing system completely. no mention of these problems under support. Why doesn't Adobe have a place where you can just write in your problem? If there is one, where is it?

    To force uppercase, enter the following in the change event as JavaScript (make sure JavaScipt is selected in the language dropdown list at the top right):
    xfa.event.change = xfa.event.change.toUpperCase();
    As you can see in the picture, there are many palettes available on the right side to edit fields. Hope this helps.

  • Adobe LiveCycle Designer ES and Adobe Acrobat 9 Pro

    I recently purchased Adobe Acrobat 9 Pro, it came with Adobe LiveCycle Designer ES.  When I create a new document with Acrobat 9, it takes me right into LiveCycle for the design, which I do not mind.  However, the properties for each field are very limited in comparaison with Acrobat 9.  So, the file I create with LiveCycle I want to be able to open again with Acrobat 9 and reach the field properties with Acrobat 9, but the system does not allow me to do that.  What am I doing wrong?
    Anne-Marie

    To force uppercase, enter the following in the change event as JavaScript (make sure JavaScipt is selected in the language dropdown list at the top right):
    xfa.event.change = xfa.event.change.toUpperCase();
    As you can see in the picture, there are many palettes available on the right side to edit fields. Hope this helps.

  • Java web start unable to auto download java 1.6.0_14

    Hi,
    My application runs on java 1.6.0_14 and i want clients to use either 1.6.0_14 or higher while running the application. In the JNLP file i have mentioned j2se version as 1.6.0_14+
    If the client machine has a java version lesser than 1.6.0_14, Java web start is not automatically downloading the given version from sun auto download site.
    Isn' t this version supported by Sun for auto download? If yes, how to get around this problem?

    Thanks..
    We do have a web page from which we access the jnlp and that web page has javascript to force download of a specific version of JRE. Once it downloads the application on client machine, it creates an icon on the desktop.
    If the application and jnlp is changed on the server, we want clients to go through the icon on desktop and still get the version of jre mentioned in the updated jnlp rather than having them go through the web page again do download the new JRE required...

  • How can I get a Flash Slideshow to show in a browser?

    Running Mac Leopard, CS3. Created a simple Flash slideshow using the Modern Photo Slideshow Template. Placed into DW page as dynamic Flash element. Slideshow is 2 photos, and uses manual buttons only. When viewed in DW preview only the first frame shows and buttons don't work (when viewed in Flash preview, it works as expected). When viewed in browser, nothing shows (although the space is visible), unless I turn off Javascript in the browser; then the first frame shows but nothing else works.
    I've tried this with 4 different browsers and DW, and all work the same way. What am I missing? Any help appreciated.
    <script type="text/javascript">
    AC_FL_RunContent( 'codebase','<?php echo $row_rsDispatches2['Image']; ?>','width','450','height','350','src','photos/<?php echo $row_rsDispatches2['Image']; ?>','loop','false','quality','high','pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','play ','false','movie','photos/<?php echo $row_rsDispatches2['Image']; ?>' ); //end AC code
    </script><noscript>
    <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="<?php echo $row_rsDispatches2['Image']; ?>" width="450" height="350">
      <param name="movie" value="photos/<?php echo $row_rsDispatches2['Image']; ?>" />
      <param name="quality" value="high" /><param name="PLAY" value="false" /><param name="LOOP" value="false" />
      <embed src="photos/<?php echo $row_rsDispatches2['Image']; ?>" width="450" height="350" loop="false" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" play="false"></embed>
    </object>

    If turning off the javascript makes the file at least appear, then that part of the problem likely means the AC_RunActiveContent.js file is not where it needs to be (if it is not coded directly into the html page).  In the head of your html page should be some indication of where that file needs to be (if it is not coded into the head section directly).  Turning off javascript is forcing the <noscript> section to load the file.
    As for nothing working anyways when you view it in a web page, it may be because of the location of the file.  Your code indicates that the swf is located in a folder named photos.  If that swf loads the images dynamically from that same folder, then the problem arises when you load the swf into a file in a different folder.  Once the swf is planted into a file in a different folder, that folder becomes its frame of reference for loading content dynamically.  So if the swf originally loaded files using targets like...image1.jpg, image2.jpg, etc.... when it is placed into parent folder's file, it needs to target them as if it actually lives in that folder using... photos/image1.jpeg, photos/image2.jpg, etc...

  • Java script not working in JSP.

    Hi everyone
    I've got a problem with a java scipt that's not doing what I want it to do.
    I have a jsp which gets data from a database to display.
    On the jsp there is a "add" button which on click will open another jsp to add a contact, when I add the contact the jsp calls a web servlet which adds the contact to the database.
    After the contact is added the servlet directs the page back to the contacts page, and it must display the newly added contact in the jsp.
    I've configured a script that checks if there is a attribute called "addContact", if it has a value of "added" it must reload the page on load, which in turn will display the newly added contact, it refreshes but it doesn't display the newly added contact, it worked but after awhile it stopped working.
    Beneath is my code for the contact list jsp and the servlet.
    ContactList.jsp
    <?xml version="1.0"?>
    <%@ page import="contacts.Contacts"%>
    <%@ page import="java.util.*"%>
    <jsp:useBean id = "contactsData" scope = "page" class ="contacts.ContactsData"/>
    <html>
         <head>
              <title>Contact List</title>
              <script language=JavaScript>
              <!--
                   function clicked(clickedValue)
                        if(clickedValue == "add")
                             window.location = "AddContact.jsp";
              -->
              </script>
         </head>
              <%
              String refreshSession = (String)session.getAttribute("addContact");
              if(refreshSession != null && refreshSession.equals("added"))
              %>
              <body onload="window.location.reload(true);">
              <%
              session.removeAttribute("addContact");
              else
              %>
              <body>
              <%
              %>
              <h1>Contacts</h1>
              <form>
                   <table cellpadding="5">
                        <%
                             ArrayList contactList = contactsData.getContacts();
                             Iterator contactsIterator = contactList.iterator();
                             Contacts contacts;
                             while(contactsIterator.hasNext())
                                  contacts = (Contacts) contactsIterator.next();
                                  String contactName = contacts.getContactName();
                        %>
                                  <tr>
                                       <td><input type="radio" name="deleteContact" value=<%=contactName%>></td>
                                       <td><a href = "UpdateContact.jsp?paramName=<%=contactName%>"><%=contactName%></a></td>
                                       <td><%=contacts.getCompany()%></td>
                                       <td><%=contacts.getWorkNumber()%></td>
                                       <td><a href = "mailto:<%=contacts.getEmail() %>"><%=contacts.getEmail() %></a>
                                  </tr>
                        <%
                        %>
                   </table>
                        <br>
                        <input type="button" value="Add" onClick="clicked('add')"/>
              </form>
         </body>
    </html>NewContactServlet.java
    package contacts;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.io.*;
    import contacts.*;
    public class NewContactServlet extends HttpServlet
         public void doPost(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException
              res.setHeader("Expires", "Tues, 01 Jan 1980 00:00:00 GMT"); //no cache allowed
              HttpSession session = req.getSession(true); //get current session
              String contactssession = (String)session.getAttribute("contactsSession");
              if(contactssession.equals("add"))
                   Contacts contacts = new Contacts();
                   ContactsData contactsData = new ContactsData();
                   contacts.setContactName(req.getParameter("contactName"));
                   contacts.setCompany(req.getParameter("companyName"));
                   contacts.setWorkNumber(req.getParameter("workNum"));
                   contacts.setCellNumber(req.getParameter("cellNum"));
                   contacts.setFaxNumber(req.getParameter("faxNum"));
                   contacts.setEmail(req.getParameter("email"));
                   contacts.setCountry(req.getParameter("country"));
                   contactsData.addContact(contacts);
              else if(contactssession.equals("add"))
              session.setAttribute("addContact","added");
              res.sendRedirect("ContactList.jsp");
    }

    Ren2407 wrote:
    Hi stevejluke
    Thanks for the reply.
    ContactsData stores the Contacts into a database, Access to be precise.
    The store of the Contacts works fine and it gets redirected to the ContactsList.jsp page, but I need to click refresh on the browser to see the new
    contact. I've tried to make it load automatically when the browser opens but it wouldn't, it worked before.
    I'm using Apache to host the webpage.I don't see any errors.So lemme get this straight:
    You have the contactsList.jsp which when Add is clicked you go to addContact.jsp in the same window. Then when addContact is submitted it goes to the neContact servlet which adds the contact to the database and then sends a redirect back to the contactsList.jsp.
    When contactsList.jsp is re-shown it doesn't display the new data so you are using javascript to force-refresh the page, which used to work, but doesn't anymore.
    My guess is that your browser or some proxy between your browser and server is caching the page. You have to tell all clients not to cache that page using META tags:
    <?xml version="1.0"?>
    <%@ page import="contacts.Contacts"%>
    <%@ page import="java.util.*"%>
    <jsp:useBean id = "contactsData" scope = "page" class ="contacts.ContactsData"/>
    <html>
         <head>
              <title>Contact List</title>
                    <meta HTTP-EQUIV="expires" CONTENT="0" />
                    <meta HTTP-EQUIV="Pragma" CONTENT="no-cache" />
                    <meta HTTP-EQUIV="Cache-Control" CONTENT="no-cache" /> You could then get rid of your javascript refresh code altogether.
    p.s. I am a big fan of using JSTL. Try to get rid of all your scriptlets and replace it with JSTL. It would look something like this:
              <h1>Contacts</h1>
              <form>
                   <table cellpadding="5">
                        <c:forEach var="contact" items="${contactsData.contacts}">
                                  <tr>
                                       <td><input type="radio" name="deleteContact" value="${contact.name}"></td>
                                       <td><a href = "UpdateContact.jsp?paramName=${contact.name}">${contact.name}</a></td>
                                       <td>${contact.company}</td>
                                       <td>${contact.workNumber}</td>
                                       <td><a href = "mailto:${contact.email}">${contact.email}</a>
                                  </tr>
                        </c:forEach>
                   </table>
                        <br>
                        <input type="button" value="Add" onClick="clicked('add')"/>
              </form>

  • Issues viewing PDF's in safari with frames

    I am a college student and I have a lot of PDF's to look at while in class. The university's website for class info is called blackboard.
    In safari, when I open a link to a pdf file, the pdf opens in the main frame of the website, but only the first page or so of the pdf is displayed. Basically the pdf stops at the same point on the webpage as the other frames do. So if your PDF is bigger than this website size, then you are out of luck to view the other pages.
    This is quite annoying as this is one of the main reasons I bought the touch. I noticed the problem when I was trying it out at the local apple store. When I asked the salesperson about it, he said that there is a bug fix coming out soon for that.(I think he may have just said that to get the sale)
    Here is what I have tried:
    Someone created a piece of javascript that forces all links on a page to open in a new page. It works by navigating to the desired page, then open a "link" that contains the java code as the address. Unfortunately it did not work.
    Someone with an iPhone told me to rotate the touch to landscape orientation and try refreshing the page, however that did not work.
    Any help would be greatly appreciated!
    Message was edited by: Jeffg1

    Elliot,
    Your post actually linked to an article which explained the terminal command. I posted moments after you posted, and your post was not displayed, nor did it have any influence on my post. I am a slow typist.
    It appears to me as if one is an "off" command and one is an "on" command
    defaults write com.apple.Safari WebKitOmitPDFSupport -bool NO
    defaults write com.apple.Safari WebKitOmitPDFSupport -bool YES

  • Adf input text related

    I have a "input text with list of values" field.
    Is there a way to to ignore case in this field please? (currently if I enter a value as "test" it says it is not valid even though there is a value "TEST" available.)
    Is there a property setting?
    Thanks

    i am not sure if this is supported fro af:inputTextlistofValues.. but you can try
    1) having a content style as "text-transform: uppercase" which will transform the text entered in Uppercase.. and forces uppercase all the time
    2) removing any validation that is applied to this component.. by removing the validator tag.. if its available.. as suggested above

  • Unresponsive script warning

    I keep getting a warning about an unresponsive script. And do I want to continue or stop the script. What does this mean? I know it slows down my laptop and I have to reboot it. What can I do to stop this unresponsive script?

    The script in question is part of a Web page provided by a Web site you are currently accessing.  the problem is sloppy programming by the author of a web page. There is no need to re-boot your Macintosh.
    The effect is limited to that page running in that Browser. Telling it to terminate the script, Closing that Web Browser window, disabling javascript, or force-quitting Safari will all terminate the problem.

Maybe you are looking for