My phone jus refused to turn on any advice as to what the problem could be?

When i woke up this morning my phone was fine..I was messaging, using watsapp..etc. Then all of a sudden i realized my phone was switched off and it just refused to turn on..please help me determine what may be the cause of this.

Dead battery?
Did you also try holding down Home and Sleep buttons for about 10 seconds to see if it comes back to life?

Similar Messages

  • TS1424 I am unable to open the Apps store. Any suggestions as to what the problem might be?

    I am unable to open the Apps store. Any suggestions as to what the problem might be?

    Hi Helen5012,
    When troubleshooting iTunes Store connection issues, the following articles provides the best information:
    First, try signing out of your account in Settings > iTunes & App Store. Once signed out, go ahead and sign back in.
    iOS: Changing the signed-in iTunes Store Apple ID account
    http://support.apple.com/kb/HT1311
    If the above did not resolve your issue, refer to the following:
    Can't connect to the iTunes Store
    http://support.apple.com/kb/TS1368
    If you haven't been able to connect to the iTunes Store:
    - Make sure that your iOS software is up to date by connecting your iOS device to iTunes and clicking on Check for Update in your device's Summary page in iTunes.
    - Check and verify that you are in range of a Wi-Fi router or base station. If you are on a 3G capable device, make sure that cellular data is turned on from Settings > General > Cellular.
    - Check to make sure you have an active internet connection. You can check the User Guide for your device for help with connecting to the internet.
    - Check to make sure other devices (portable computers, for example) are able to connect to the Wi-Fi network and access the internet.
    - Try resetting (turning off and then on again) your Wi-Fi router
    - If the issue still persists see, iOS: Troubleshooting Wi-Fi networks and connectionsoriOS: Troubleshooting Wi-Fi networks and connections.
    Thanks,
    Matt M.

  • On my Mac Mini, I keep getting this error message: "iCloud encountered an error while trying to connect to the server".  I don't have any problems with iCloud on my laptop / PC.  It works fine... Does anyone know what the problem could be?

    On my Mac Mini, I keep getting this error message: "iCloud encountered an error while trying to connect to the server".  I don't have any problems with iCloud on my laptop / PC.  It works fine... Does anyone know what the problem could be?

    Your Mac must be on Lion (10.7) to run iCloud. Apple had to change the operating system to fully support it. Nevertheless, it is possible to get emails from iCloud without having Lion. Please tell me if this interests you.
    Anyways, here is the link to buy Lion (30 dollars, totally worth the upgrade ): http://itunes.apple.com/be/app/os-x-lion/id444303913?mt=12
    Franklin

  • HT3529 i just created my apple id and i tried to sign in on iMessage but it keeps saying that its already in use,however this is the first time that i'm using my apple id to sign in on any device,what the problem could be?

    I just created my apple id and i tried to sign in on imessage but it keeps saying that it is already in use however this is the first time that i'm using my apple id to sign in on any device,what the problem could be?

    You must create the account using an Apple device, a Mac (Lion or greater) or an IOS device (IOS5 or greater). Having done that you will be able to sign in from your Windows machine.
    FYI, iCal is an application that can display calendars from iCloud (and others) it is not a calendar itself, merely a calendar client. In Windows Outlook is the calendar client.

  • I recently purchased season 5 of Downton Abbey.  I have downloaded episode 1.  It will play on my iPad but won't play on Apple TV.  Other movies I have purchased work fine on Apple TV.  Any suggestions as to what the problem may be?

    I Purchased season 5 of Downton Abbey and have downloaded episode 1.   It will play on my iPad but will not play on Apple TV.   Other movies and videos work fine.  Any suggestions as to what the problem might be?

    OOur internet service is not always fast enough to stream directly on Apple TV which is why we want to use AirPlay from the iPad to Apple TV.   When we try to play a movie it starts for one second and then crashes out.   This does not happen with every TV show - we watched 8 episodes of Season 4 with no problem, but it would not play episode 9 or episode 1 of season 5.

  • Updated iphone 3gs to os5, now it says sim card not installed, any one know what the problem could be please

    updated iphone 3gs to os5, now it says sim card not installed, any one know what the problem could be please

    well... actually you are right dahveed, i had a dodgy copy of galaxy on fire 2 (boring game), that's what was giving me the issue. i followed your posts about the MAS etc., and discovered this was the problem. Corrected. You're a knowledgable man, thank you

  • Mac Mini fan on high, UI frozen. Had to shut it off. Any way to tell what the problem was when I boot it back up?

    I leave my Mac Mini on constantly as a HTPC. I came home after being at work all day to find the fan on high and the lock screen incredibly sluggish. I have no idea how long it was like that, it's never done anything like it before. I couldn't login because it was too slow, I had to force it to shut off. Is there any way to see what it could've been when I boot it up, such as log files or something like that? I was hoping to get in to see top or the activity monitor but as I said earlier, I wasn't able to log in.

    I had TeamViewer 9 installed. The Preferences window that contained the Uninstall button would not open so I just moved the .app to the trash. Last night I:
    Installed TeamViewer 10 as it was the latest version, I figured I had that one previously
    Uninstalled it using the preferences pane
    Realized from the /private/var/db/receipts (I think) entries that I had TV9 installed previously, not 10
    Installed TeamViewer 9
    Tried to uninstall TV9, found the broken preferences pane and remembered why I just deleted it in the first place
    Upgraded it to TV10
    Uninstalled it using the preferences pane
    I'll check on it tonight, but I think it's okay. I want to do a grep -r -i "teamviewer" / when I get back to see if anything is left behind.

  • I'm having problems uploading files (to YouTube & SendSpace) with Firefox. Both work fine using IE. Any idea what the problem could be?

    When I try to upload to YouTube, things appear to be working, but every time it either ends up telling me the upload has been interrupted or it shows that the upload finished & then the file is nowhere to be found in my account. When I switched to IE, the upload worked fine the first time. When I tried to upload to SendSpace, I "browsed" for a file to upload, selected the file, & then nothing happened at all. Again, when I switched to IE, the upload worked just fine. I imagine there is some setting in Firefox that I need to change, but I have no idea what it is & can't figure it out by looking through the menus I see. I need some help!

    Jean, Thanks for your answer, I've tried checking the invoke node that calls the "Run VI" method but it doesnt return an error any of the times its called even that the Vi that it called is still running. I also tried your solution of changing the object's "Run" method to a template but that doesnt work either. I can't seem to post the sample progam that demonstrates the problem, is it possible to send it to you by email, contact me at [email protected]
    Attachments:
    Sample_program.zip ‏926 KB

  • My iPad and iPod touch won't play the music I choose. Has anyone any idea what the problem could be?

    Hi,
    Since the IOS 5.0 update my iPad 2 and iPod touch (3e generation) won't play the music I choose. I choose a song from Michael Jackson for example and it's going to play something completely different. The images has changed aswel, so it is a bit strange.
    I treind to sincronise them again, but this doesn't change a thing. Has anyone any idea what could be the problem and how to solve it?
    Kind Regards,
    Ward

    So just in case anyone else ever runs into this...
    I solved the issue and it was that between the plug of the new earbuds being slightly thicker than the Apple earpods, and the width of the case that I was using for my iPod, there wasn't a connection being made to activate the remote function.
    I took off the case and now the earbuds work exactly as they should!

  • HT1766 I have been trying to back up my iphone it says I have 3.5 GB to 5 GB but I thought my phone had 8 GB. I got a message that it would take 8 hours and then I got a message it couldn't back up. Any one have an idea of what the problem could be?

    I have been trying to back up my phone and got a message that it would take 8 hours. I let it go over night and when I looked at it in the morning I got a message my data couldn't be backed up. I though my phone had 8 GB. If I have too much data what items should I delete in order to have my data backed up? I have deleted most of my pictures so I didn't think I had that much data to back up. If any one has experienced this please advise. I think my battery is about to die and I want my data back up ASAP.

    What computer do you have?
    What operating system is it running?
    Allan

  • My iPad 2 screen has gone blank. I don't know whether the iPad is on however when the screen went blank there was 97% battery. Does anyone have any ideas as to what the problem maybe. ?

    The screen on my iPad 2 has gone blank.i can't tell whether my iPad is on or not. When the screen went blank there was 97% battery. Could anyone possible give me an idea as to what May have happened and if it can be fixed.
    Thank you, Nicky .

    Frozen or unresponsive iPad
    Resolve these most common issues:
        •    Display remains black or blank
        •    Touch screen not responding
        •    Application unexpectedly closes or freezes
    http://www.apple.com/support/ipad/assistant/ipad/
    iPad Frozen, not responding, how to fix
    http://appletoolbox.com/2012/07/ipad-frozen-not-responding-how-to-fix/
    iPad Frozen? How to Force Quit an App, Reset or Restart Your iPad
    http://ipadacademy.com/2010/11/ipad-frozen-how-to-force-quit-an-app-reset-or-res tart-your-ipad
    Black or Blank Screen on iPad or iPhone
    http://appletoolbox.com/2012/10/black-or-blank-screen-on-ipad-or-iphone/
    What to Do When Your iPad Won't Turn On
    http://ipad.about.com/od/iPad_Troubleshooting/ss/What-To-Do-When-Your-Ipad-Wo-No t-Turn-On.htm
    iOS: Not responding or does not turn on
    http://support.apple.com/kb/TS3281
    iPad: Basic troubleshooting
    http://support.apple.com/kb/TS3274
     Cheers, Tom

  • My ipad has completley frozen, I restored it, but still nothing, any idea what the problem could be ?

    My ipad has completley frozen, I've restored it, but still nothing, any ideas ?

    I think that maybe Gail is thinking about using a computer since there is no mouse to use with an iPad
    What you describe is pretty typical of system sounds being muted, with the exception of the fact that you still have sound in FB videos, but take a look at this anyway. System sounds and screen lock use the same pair of settings. When one uses the side switch, the other is controlled with a software switch.
    Settings>General>Use Side Switch to: Mute System sounds. If this option is selected, the switch on the side of the iPad above the volume rocker will mute system sounds.
    If you choose Lock Screen Rotation, then the switch locks the screen. If the screen is locked, you will see a lock icon in the upper right corner next to the battery indicator gauge.
    If you have the side switch set to lock screen rotation then the system sound control is in the control center if you are running iOS 7. Swipe up from the bottom of the screen to get to control center . Tap on the bell icon and system sounds will return.
    If you are running iOS 5 or iOS 6, the system sound control is in the task bar at the bottom. Double tap the home button and swipe all the way to the right in the task bar to get to the speaker icon on the left side. Tap on that and the sounds will return.
    If you have the side switch set to mute system sounds, then the screen lock can be accessed in the same manner as described above.
    This support article from Apple explains how the side switch works.
    http://support.apple.com/kb/HT4085

  • I've added a bday to a contact and it will still not show up on my calendar. Any ideas on what the problem could be?

    Any ideas?

    Open Calendar app and tap "Calendars" at the bottom of the screen. Tap to check the "Birthdays" Calendar.

  • Can any one tell me whats the problem with controller

    package com.uk.nhs.training.controller;
    import java.beans.PropertyEditorSupport;
    import java.text.ParseException;
    import java.text.SimpleDateFormat;
    import java.util.ArrayList;
    import java.util.Date;
    import java.util.List;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    import javax.swing.text.html.HTMLDocument;
    import org.apache.commons.logging.Log;
    import org.apache.commons.logging.LogFactory;
    import org.springframework.util.StringUtils;
    import org.springframework.validation.BindException;
    import org.springframework.validation.Errors;
    import org.springframework.validation.ValidationUtils;
    import org.springframework.web.bind.ServletRequestDataBinder;
    import org.springframework.web.servlet.ModelAndView;
    import org.springframework.web.servlet.mvc.AbstractWizardFormController;
    import org.springframework.web.servlet.view.RedirectView;
    import com.uk.nhs.training.contractUtility.ContractHtmlReader;
    import com.uk.nhs.training.data.Booking;
    import com.uk.nhs.training.data.BookingDetails;
    import com.uk.nhs.training.data.Client;
    import com.uk.nhs.training.data.Course;
    import com.uk.nhs.training.data.Trainer;
    import com.uk.nhs.training.data.Venue;
    import com.uk.nhs.training.service.BookingService;
    import com.uk.nhs.training.service.ClientService;
    import com.uk.nhs.training.service.CourseService;
    import com.uk.nhs.training.service.TrainersService;
    import com.uk.nhs.training.service.VenueService;
    public class BookingController extends AbstractWizardFormController {
         protected final Log logger = LogFactory.getLog(getClass());
         private BookingService bookingFacade;
         private CourseService courseFacade;
         private VenueService venueFacade;
         private ClientService clientFacade;
         private TrainersService trainersFacade;
         public static final String STAFF = "Staff";
         public static final String CLIENT_BASED = "Client-Based";
         private SimpleDateFormat dateFormat = new SimpleDateFormat("dd MMMMMMMM yyyy");
         public BookingController() {
              setPages(new String[] { "booking", "book1", "book2", "book3", "book4",
                        "book5", "book6", "book7" });
              setCommandName("booking");
              setAllowDirtyForward(true);
         protected Object formBackingObject(HttpServletRequest request)
                   throws Exception {
              Booking booking = new Booking();
              return booking;
         protected ModelAndView processFinish(HttpServletRequest request,
                   HttpServletResponse response, Object command, BindException errors) {
              try {
                   Booking booking = (Booking) command;
                   setBookingFinalDetails(booking);
                   logger.info("Boooking Form data sent successfully");
              } catch (Exception e) {
                   e.getClass();
                   e.printStackTrace();
              return new ModelAndView("bookSuccess");
         @Override
         protected void initBinder(HttpServletRequest request, ServletRequestDataBinder binder) throws Exception {
              dateFormat.setLenient(false);
              binder.registerCustomEditor(java.sql.Date.class, null, new SqlDateEditor(true));
         private void setBookingFinalDetails(Booking booking) throws Exception {
              booking.setCreateDate(new java.sql.Date(System.currentTimeMillis()));
              booking.setStatus("In Progress");
              bookingFacade.saveBooking(booking);
         protected ModelAndView handleInvalidSubmit(HttpServletRequest request,
                   HttpServletResponse response) throws Exception {
              return new ModelAndView("bookInvalidSubmit");
         @Override
         protected ModelAndView processCancel(HttpServletRequest request,
                   HttpServletResponse response, Object command, BindException errors)
                   throws Exception {
              return new ModelAndView(new RedirectView("welcome.htm"));
         @Override
         protected void onBindAndValidate(HttpServletRequest request,
                   Object command, BindException errors, int page) throws Exception {
              Booking booking = (Booking) command;
              System.out.println(" PAGE : " + page);
              try {
                   switch (page) {
                   case 0:
                        if (request.getParameter("_target1") != null) {
                             ValidationUtils.rejectIfEmptyOrWhitespace(errors,
                                       "bookingType", "required.bookingType",
                                       "Booking type is required");
                             String bookingType = request.getParameter("bookingType");
                             booking.setBookingType(bookingType);
                             setInitialBookingDetails(booking, errors);
                        break;
                   case 1:
                        if (request.getParameter("_target2") != null) {
                             if (booking.getBookingType().equals(STAFF)) {
                                  booking.setClient(null);
                             if (booking.getBookingType().equals(CLIENT_BASED)) {
                                  validateClient(booking, errors);
                                  if (errors.getErrorCount() == 0) {
                                       Client c = (Client) clientFacade
                                                 .loadClientById(booking.getClient()
                                                           .getClientId());
                                       booking.setClient(c);
                             int theBookingDetailsLength = Integer.parseInt(request
                                       .getParameter("qtyBox"));
                             String courseId = request.getParameter("bookingDetails");
                             if (courseId != null && courseId.trim().length() > 0) {
                                  List<BookingDetails> bookDetails = new ArrayList<BookingDetails>();
                                  for (int i = 0; i < theBookingDetailsLength; i++) {
                                       BookingDetails bk = new BookingDetails();
                                       bk.getCourse().setCourseId(courseId);
                                       Course c = (Course) courseFacade
                                                 .getCourseById(courseId);
                                       bk.setCourse(c);
                                       // Add empty trainer..
                                       bk.setTrainer(new Trainer());
                                       bookDetails.add(bk);
                                       booking.setBookingDetails(bookDetails);
                             } else {
                                  validateCourse(booking, errors);
                        break;
                   case 2:
                        if (request.getParameter("_target1") != null) {
                             setInitialBookingDetails(booking, errors);
                        if (request.getParameter("_target3") != null) {
                             int i=0;
                             for (BookingDetails bd : booking.getBookingDetails()) {
                                  if (bd != null && bd.getTrainer() != null) {
                                       String trainerId = bd.getTrainer().getTrainerId();
                                       Trainer trainer = trainersFacade
                                                 .loadTrainersById(trainerId);
                                       if (trainer != null ) {
                                            bd.setTrainer(trainer);
                                            // add empty venue;
                                            bd.setVenue(new Venue());
                                       } else {
                                            validateTrainer(booking, errors);
                                  i++;
                        break;
                   case 3:
                        if (request.getParameter("_target4") != null) {
                             for (BookingDetails bd : booking.getBookingDetails()) {
                                  if (bd != null && bd.getVenue() != null) {
                                       ValidationUtils.rejectIfEmptyOrWhitespace(errors,
                                                 "bookingDetails[0].venue.venueId",
                                                 "required.venue.venueId",
                                                 "Venue Details required.");
                                       String venueId = bd.getVenue().getVenueId();
                                       List<Venue> vList = venueFacade
                                                 .loadVenuesByKeyword(venueId);
                                       if (vList != null && vList.size() > 0) {
                                            bd.setVenue(vList.get(0));
                                  } else {
                                       errors.rejectValue(
                                                 "bookingDetails[0].venue.venueName",
                                                 "required.venue.venueName",
                                                 "Valid Venue Details required.");
                        break;
                   case 4:
                        break;
                   case 5:
                        if (request.getParameter("_target7") != null) {
                             setBookingFinalDetails(booking);
                             ContractHtmlReader reader = new ContractHtmlReader(booking);
                             HTMLDocument doc = reader.getHTMLDoc();
                             reader.writeHTMLCode(doc);
                        break;
                   default:
              } catch (Exception e) {
                   System.err.println("Exception :" + e.getMessage());
              super.onBindAndValidate(request, command, errors, page);
         * Create an empty Booking details for client and course...
         * @param booking
         private void setInitialBookingDetails(Booking booking, BindException errors) {
              if (booking.getBookingType().equals("Client-Based")) {
                   if (booking.getClient() == null
                             || booking.getClient().getClientId() == null) {
                        booking.setClient(new Client());
              } else if (booking.getBookingType().equals("Staff")) {
                   booking.setClient(null);
              if (booking.getBookingDetails() == null) {
                   List<BookingDetails> bkDetailsList = new ArrayList<BookingDetails>();
                   BookingDetails bkDetails = new BookingDetails();
                   bkDetails.setCourse(new Course());
                   bkDetailsList.add(bkDetails);
                   booking.setBookingDetails(bkDetailsList);
              } else {
                   List bkDetList = booking.getBookingDetails();
                   if (bkDetList.size() < 1
                             || (bkDetList.size() > 0 && !((bkDetList.get(0)) instanceof BookingDetails))) {
                        BookingDetails bkDetails = new BookingDetails();
                        bkDetails.setCourse(new Course());
                        bkDetList.add(0, bkDetails);
                        booking.setBookingDetails(bkDetList);
                   } else if (((BookingDetails) bkDetList.get(0)).getCourse() == null
                             || ((BookingDetails) bkDetList.get(0)).getCourse()
                                       .getCourseId() == null) {
                        ((BookingDetails) bkDetList.get(0)).setCourse(new Course());
         @Override
         protected void validatePage(Object command, Errors errors, int page,
                   boolean finish) {
              Booking booking = (Booking) command;
              if (finish) {
                   for (BookingDetails bd : booking.getBookingDetails()) {
                        if (bd != null && bd.getRate() != null) {
                             try {
                                  float rate = bd.getRate();
                             } catch (NumberFormatException e) {
                                  errors.reject("invalid.bookingDetails.rate",
                                            "(try \"250.00\")!");
                             } catch (Exception e) {
                                  errors.rejectValue("bookingDetails.rate",
                                            "error.bookingDetails.rate",
                                            "Enter valid Rate.");
                   booking
                             .setCreateDate(new java.sql.Date(System.currentTimeMillis()));
              super.validatePage(command, errors, page);
         * Validate client
         * @param booking
         * @param err
         private void validateClient(final Booking booking, Errors err) {
              ValidationUtils.rejectIfEmptyOrWhitespace(err, "client.clientId",
                        "required.client.clientId", "Valid client details required.");
         * Validate Course
         * @param booking
         * @param err
         private void validateCourse(final Booking booking, Errors err) {
              if (booking.getBookingDetails() == null
                        || booking.getBookingDetails().size() < 1) {
                   err.rejectValue("bookingDetails", "error.bookingDetails",
                             "Course Booking Details required.");
              } else {
                   List bdList = booking.getBookingDetails();
                   for (int i = 0; i < bdList.size(); i++) {
                        if (!(bdList.get(i) instanceof BookingDetails)) {
                             err.rejectValue("bookingDetails", "error.bookingDetails",
                                       "Valid Course Booking Details required.");
                        } else {
                             BookingDetails bd = (BookingDetails) (bdList.get(i));
                             if (bd.getCourse() == null
                                       || bd.getCourse().getCourseId() == null)
                                  err.rejectValue("bookingDetails",
                                            "error.bookingDetails.course.courseId",
                                            "Valid Course Details required.");
         * Validate Trainer
         * @param booking
         * @param e
         private void validateTrainer(final Booking booking, Errors e) {
              ValidationUtils.rejectIfEmptyOrWhitespace(e,
                        "bookingDetails[0].startDate",
                        "required.bookingDetails[0].startDate",
                        "Valid Booking Details startDate required.");
              ValidationUtils.rejectIfEmptyOrWhitespace(e,
                        "bookingDetails[0].trainer.trainerId",
                        "required.bookingDetails[0].trainer.trainerId",
                        "Valid Booking Details Trainer required.");
              if (e.getErrorCount() < 1)
                   for (BookingDetails bd : booking.getBookingDetails()) {
                        if (bd.getStartDate() == null) {
                             e.rejectValue("startDate", "required.bbb0",
                                       "Valid Booking details Start Date is required");
                        try {
                             if (bd.getStartDate() != null && bd.getEndDate() != null
                                       && (bd.getEndDate().before(bd.getStartDate())))
                                  e.rejectValue("endDate", "required.bbb0",
                                            "End Date Should be after starting date.");
                        } catch (Exception ex) {
                             e.rejectValue("bookingDetails[0].startDate",
                                       "before.bookingDetails[0].startDate",
                                       "Improper dates, please provide valid dates.");
                        if (bd.getTrainer() != null) {
                             e.rejectValue("trianerId", "required.trianerId",
                                       "Valid Trainer details required.");
         public BookingService getBookingFacade() {
              return bookingFacade;
         public void setBookingFacade(BookingService bookingFacade) {
              this.bookingFacade = bookingFacade;
         public CourseService getCourseFacade() {
              return courseFacade;
         public void setCourseFacade(CourseService courseFacade) {
              this.courseFacade = courseFacade;
         public VenueService getVenueFacade() {
              return venueFacade;
         public void setVenueFacade(VenueService venueFacade) {
              this.venueFacade = venueFacade;
         public ClientService getClientFacade() {
              return clientFacade;
         public void setClientFacade(ClientService clientFacade) {
              this.clientFacade = clientFacade;
         public TrainersService getTrainersFacade() {
              return trainersFacade;
         public void setTrainersFacade(TrainersService trainersFacade) {
              this.trainersFacade = trainersFacade;
         class SqlDateEditor extends PropertyEditorSupport
              private boolean isRequired = false;
              SqlDateEditor(boolean isRequired) {
                   this.isRequired = isRequired;
              public void setAsText(String text) throws IllegalArgumentException {
                   java.util.Date d = null;
                   if (!this.isRequired && !StringUtils.hasText(text)) {
                        setValue(null);
                   else
                        try {
                             d = dateFormat.parse(text);
                             setValue(new java.sql.Date(d.getTime()));
                        } catch (ParseException ex) {
                             throw new IllegalArgumentException("Could not parse date: " + ex.getMessage());
              public String getAsText() {
                   Date value = (java.sql.Date)getValue();
                   if (value != null) {
                        java.util.Date d = new java.util.Date(value.getTime());
                        return dateFormat.format(d);
                   else {
                        return "";
    }

    <!-- Content -->
    <%@ taglib prefix="c" uri="http://java.sun.com/jstl/core"%>
    <%@ taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt"%>
    <%@ taglib uri="http://www.springframework.org/tags" prefix="spring"%>
    <%@ page isELIgnored="false"%>
    <SCRIPT language="JavaScript" type="text/javascript">
         function checkClientKeycode(kCode){
              if (kCode==27){
                   hideSelectClient();
              else if (kCode==13){
                   setClient();
         function changeClientFocus(){
              if (document.getElementById("clientSelect").style.visibility=="visible"){
                   document.getElementById("clientSelect").style.height=100;
                   document.getElementById("clientSelect").focus();
         function hideSelectClient(){ 
              var clSelect = document.getElementById("clientSelect");
              clSelect.options.length=0;
         clSelect.style.visibility="hidden";
         clSelect.style.height=10;
    function setClient(){
              var clSelect = document.getElementById("clientSelect");
         document.getElementById("clientId").value=clSelect.value;
         document.getElementById("clientname").value=clSelect.options[clSelect.selectedIndex].text;
              clSelect.options.length=0;
         clSelect.style.visibility="hidden";
         clSelect.style.height=10;
    function checkCourseKeycode(kCode){
              if (kCode==27){
                   hideSelectCourse();
              else if (kCode==13){
                   setCourse();
         function changeCourseFocus(){
              if (document.getElementById("courseSelect").style.visibility=="visible"){     
                   document.getElementById("courseSelect").style.height=100;
                   document.getElementById("courseSelect").focus();
         function hideSelectCourse(){ 
              var coSelect=document.getElementById("courseSelect")
              coSelect.options.length=0;
         coSelect.style.visibility="hidden";
         coSelect.style.height=10;
    function setCourse(){
         var coSelect=document.getElementById("courseSelect")
         document.getElementById("bookingDetails").value=coSelect.value;
         document.getElementById("coursename").value=coSelect.options[coSelect.selectedIndex].text;
         coSelect.options.length=0;
         coSelect.style.visibility="hidden";
              coSelect.style.height=10;
         function addClient()
              window.open("<%=request.getContextPath()%>/secure/clientpopup.htm","clientwindow","location=0,status=1,scrollbars=1,resizable=1 left=200 width=700,height=600");
         function addCourse()
              window.open("<%=request.getContextPath()%>/secure/coursepopup.htm","coursewindow","location=0,status=1,scrollbars=1,resizable=1 left=200 width=450,height=400");
         function addTrainer()
              window.open("<%=request.getContextPath()%>/secure/trainerpopup.htm","trainerwindow","location=0,status=1,scrollbars=1,resizable=1 left=400 width=600,height=400");
         //------------------------------------------Course AJAX List Start-----------------------------------------------------//
         function getCourses()
              flag="wait";
         var theKeyword=document.getElementById("coursename").value;
         url="ajaxList.htm?actionType=courses&keyword="+theKeyword;
         what = "setCourses(req.responseXML)";
         //row_id=rowid;
         doCallback(null);
         function setCourses(theXmlResponse)
              //start filling the Venues Select boxes now
              if(theXmlResponse != null)
                   var coursesBox=document.getElementById("courseSelect");
                   coursesBox.options.length=0;
                   var coursesElementsLength=theXmlResponse.getElementsByTagName('course').length;
                   var y;
                   if (coursesElementsLength<20) {
                        y=coursesElementsLength;
                   else {
                        y=20;
                   coursesBox.size=y;
                   if (y==1) {
                        coursesBox.size=2;
                   var coursesElementsArray=theXmlResponse.getElementsByTagName('course');
                   for(x = 0; x < y; x++) {
                        coursesBox.options[coursesBox.options.length] = new Option(coursesElementsArray[x].firstChild.text, coursesElementsArray[x].lastChild.text);
                   if (y>0) {
                        coursesBox.style.visibility="visible";
                        coursesBox.style.height=100;
              flag="release";
    //------------------------------------------ Course AJAX List End-----------------------------------------------------//
    //------------------------------------------ Client AJAX List Start-----------------------------------------------------//
         function getClients()
              flag="wait";
              var theKeyword=document.getElementById("clientname").value;
         url="ajaxList.htm?actionType=clients&keyword="+theKeyword;
         what = "setClients(req.responseXML)";
         //row_id=rowid;
         doCallback(null);
         function setClients(theXmlResponse)
              if(theXmlResponse != null) {
                   var clientsBox=document.getElementById("clientSelect");
                   clientsBox.options.length=0;
                   var clientsElementsLength=theXmlResponse.getElementsByTagName('client').length;
                   var y;
                   if (clientsElementsLength<20) {
                        y=clientsElementsLength;
                   else {
                        y=20;
                   clientsBox.size=y;
                   if (y==1) {
                        clientsBox.size=2;
                   var clientsElementsArray=theXmlResponse.getElementsByTagName('client');
                   for(x = 0; x < y; x++) {
                        clientsBox.options[clientsBox.options.length] = new Option();
                   if (y>0) {
                        clientsBox.style.visibility="visible";
                        clientsBox.style.height=100;                    
              flag="release";
    //------------------------------------------Client AJAX List End-----------------------------------------------------//
    </script>
    <div id="content"><!-- Top story -->
    <div id="topstory" class="box">
    <div id="topstory-img"></div>
    <!-- /topstory-img -->
    <div id="topstory-desc">
    <div id="topstory-title"><strong>BOOK COURSE (CONT.)</strong></div>
    <!-- /topstory-title -->
    <div id="topstory-desc-in"></div>
    <!-- /topstory-desc-in --></div>
    <!-- /topstory-desc --></div>
    <!-- /topstory -->
    <div id="bodycontent"><c:choose>
         <c:when test='${booking.bookingType eq "Staff"}'>
              <table align="left" width="50%" border=0>
                   <tr>
                        <td colspan="4" align="center"><strong>Choose Course</strong>
                        <form name="BookType1"
                             action="<c:url value="/secure/bookCourse.htm"/>" method="post">
                        </td>
                   </tr>
                   </c:when>
                   <c:when test='${booking.bookingType eq "Client-Based"}'>
                        <table align="left" width="50%" border=0>
                             <tr>
                                  <td colspan="4" align="center"><strong>Choose Client and Course</strong>
                                  </p>
                                  </td>
                             </tr>
                             <form name="BookType1"
                                  action="<c:url value="/secure/bookCourse.htm"/>" method="post">
                             <tr>
                                  <td colspan="4" align="left">Please pick client from the list:</td>
                             </tr>
                             <tr>
                                  <td colspan="4" align="left">
                                  <c:if test='${empty booking.client || empty booking.client.clientId}'>
                                  <spring:bind path="booking.client.clientId">
                                       <input name="<c:out value='${status.expression}'/>" type="hidden" id="clientId" value=""/>
                                  </spring:bind>
                                  <input size="20" type="text" id="clientname" value=""
                                  onkeyup="javascript:getClients();changeClientFocus();"
                                  ondblclick="javascript:getClients();changeClientFocus();" />
                                  </c:if>
                                  <c:if test='${not empty booking.client.clientId}'>
                                  <spring:bind path="booking.client.clientId">
                                       <input name="<c:out value='${status.expression}'/>" type="hidden" id="clientId" value="<c:out value='${status.value}'/>"/>
                                  </spring:bind>
                                  <input size="20" type="text" id="clientname" name="clientname"
                                  value="<c:out value='${booking.client.orgName}'/> - <c:out value='${booking.client.type}'/>"
                                  onkeyup="javascript:getClients();changeClientFocus();"
                                  ondblclick="javascript:getClients();changeClientFocus();" />
                                  </c:if>
                                  <div><select id="clientSelect"
                                       style="width:266px;visibility:hidden"
                                       onclick="javascript:setClient();"
                                       onkeyup="javascript:checkClientKeycode(event.keyCode);">
                                  </select></div>
                                  </td>
                             </tr>
                             </c:when>
                             <c:otherwise>
                                  <table align="left" width="50%" border=0>
                                       <tr>
                                            <td colspan="4" align="center"><strong>Choose Course</strong>
                                            <form name="BookType1"
                                                 action="<c:url value="/secure/bookCourse.htm"/>" method="post">
                                            </td>
                                       </tr>
                                       </c:otherwise>
                                       </c:choose>
                                       <tr>
                                            <td colspan="4" align="left">Pick Course from list:</td>
                                       </tr>
                                       <tr>
                                            <td colspan="4" align="left">
                                            <input type="hidden" name="clientAndCourse" value="yes" />
                                            <input name="bookingDetails" type="hidden"
                                                 <c:if test="${(not empty booking.bookingDetails[0])}"> value="<c:out
                                                 value="${booking.bookingDetails[0].course.courseId}"/>"</c:if> />
                                            <spring:bind path="booking.bookingDetails[0].course.courseId">
                                            <input size="20" type="text" id="coursename" name="coursename"
                                            <c:if test="${(not empty booking.bookingDetails[0])}"> value="<c:out
                                                 value="${booking.bookingDetails[0].course.courseTitle}"/>"</c:if>
                                                 onkeyup="javascript:getCourses();changeCourseFocus();"
                                                 ondblclick="javascript:getCourses();changeCourseFocus();" />
                                            </spring:bind>
                                            <div><select id="courseSelect"
                                                 style="width:266px;visibility:hidden"
                                                 onclick="javascript:setCourse();"
                                                 onkeyup="javascript:checkCourseKeycode(event.keyCode);"></select></div>
                                            </td>
                                       </tr>
                                       <tr>
                                            <td colspan="4" align="left">Quantity:   <select
                                                 name="qtyBox" size="1">
                                                 <c:forEach var="x" begin="1" end="10">
                                                      <option value='<c:out value="${x}"/>'><c:out value="${x}" /></option>
                                                 </c:forEach>
                                            </select></td>
                                       </tr>
                                       <tr>
                                            <td colspan="4" align="left"></td>
                                       </tr>
                                       <tr>
                                            <td>
                                            <p><!-- input type="submit" name="_finish" value="Save"/ -->  
                                            <input type="submit" name="_target0" value="Previous" />  
                                            <input type="submit" name="_target2" value="Next" />  
                                            <input type="submit" name="_cancel" value="Cancel" />
                                            </td>
                                            <td><input type="button" value="Add Client"
                                                 onclick="javascript:addClient();" /></td>
                                            <td><input type="button" value="Add Course"
                                                 onclick="javascript:addCourse();" /></td>
                                            <td><input type="button" value="Add Trainer"
                                                 onclick="javascript:addTrainer();" /></td>
                                       </tr>
                                  </table>
                                  </form>
                                  </div>
                                  <hr class="noscreen" />
                                  <div class="content-padding"></div>
                                  <!-- /content-padding -->
                                  </div>
                                  <!-- /content -->

  • HT2638 Hi, My Iphoto (on Mavericks) shows me a thumbnail but actually it is another photo whan you open it up...any idea what the problem could be? big thanks!

    This has happened since my snow leopard update to be fair. I continuously mess up all of my "events" with photoes that shoul now be there due to this mistake.
    Anyone know something about it?
    Big thanks in advance

    given the time this problem has existed hard to say what the results will be but Back up your iPhoto library, Depress and hold the option (alt) and command keys and launch iPhoto - rebuild your thumbnails - this may take several tries
    LN

Maybe you are looking for

  • BPM studio doesn't start on snow leopard

    I've installed BPM studion 10.3.1 on my mac running snow leopard. When I start the application the icon bounces for a few times in the dock and then quits without a message. If I start eclipse by hand from the eclipse folder it starts. I can select a

  • Error 150:30 at start after miragtion from old to new macbook

    My elements 8.0 did not longer start. Is terminates with error 150:30 . The adobe support could not me in this case. Hope somebody could help me. Thanks Berni

  • Way to find Missing table Index in SAP ?

    Hi All, Is there any way to check missing tables index in SAP? and also DB size ? and reorganize the index and tables? Cheers Usman

  • Cs6 to cc not automatic

    My workplace have been cs6 subscribers for several months now but as of yesterday they are still on cs6 and not been upgraded to cc. The update facility also shows no new updates available. Any ideas?

  • Why not showing proper remaing HD space?

    I was using my mac and I checked the HD space and it said 28GB remaining and then 5min later without me adding any other files it told me 22GB was remaining. Why did it show inaccurate display space remaining? Thanks. Dorian