Problem with the selector switch in IE 8

Hi all

I have two datepickers in my page, second one is dependent on the first.

Its working fine in firefox, but when I open the same page in IE 8, datepicker does not work properly (years are coming not nor I can navigate to two months).

Please click here.

http://Apex.Oracle.com/pls/Apex/f?p=66906:14:10571195197042:

name of user/password: demo/demo

Please help me on this.

Kind regards
Tauceef
var s;
s = $("#P19_TEST_DATE").val();
var dd = s.substring(0,2);
var mm = s.substring(3,6);
var y = s.substring(7,11);
console.log('dd: '+dd+' mm: '+mm+' y: '+y);

var strMonth;
switch(mm)
        {
            case "Jan":
                strMonth = "01"
                break;
            case "Feb":
                strMonth = "02"
                break;
            case "Mar":
                strMonth = "03"
                break;
            case "Apr":
                strMonth = "04"
                break;
            case "May":
                strMonth = "05"
                break;
            case "Jun":
                strMonth = "06"
                break;
            case "Jul":
                strMonth = "07"
                break;
            case "Aug":
                strMonth = "08"
                break;
            case "Sep":
                strMonth = "09"
                break;
            case "Oct":
                strMonth = "10"
                break;
            case "Nov":
                strMonth = "11"
                break;
            case "Dec":
                strMonth = "12"
                break;
        };

console.log('strMonth: '+strMonth);
var dt2 = dd + '/'+ mm + '/'+ y;
console.log('dt2: '+dt2);

var dt1 = new Date(dt2);
console.log('dt1: '+dt1);

dt1.setDate(dt1.getDate() + 1)
console.log('dt1: '+dt1);

$("#P19_TEST_DATE2").datepicker("option","minDate",dt1);

DD: mm 08: y: Nov 12
strMonth: 11
T2D: 8 November 12
T1d: Invalid Date
T1d: Invalid Date

Caution with the datestrings. They require a very specific format and behave differently for javascript in PLSQL.

var dt3 = new Date('06/Nov/12');
console.log(dt3);

Date {invalid Date}

Evil. Probably the source of your pain, because when I use the code above, I will indeed get a datepicker half empty as a second.

var dt3 = new Date('06/11/12');
console.log(dt3);

Date {Tuesday June 11, 1912 00:00:00 GMT + 0200 (DST Romance)}

Evil. Day, month and year.

var dt3 = new Date('06/11/2012');
console.log(dt3);

Date {Monday June 11, 2012 00:00:00 GMT + 0200 (DST Romance)}

Evil. Day, month.

var dt3 = new Date('11/06/2012');
console.log(dt3);

Date {Tuesday November 6, 2012 00:00:00 GMT + 0100 (Romance Standard Time)}

Fix!

However, datestrings hand, there is no need for you to analyze the value. Datepickers are implementations of jQueryUI, and you can call methods and options very well. No need to parse the string to a date, because you can just get the date.

var gdTestdate = $( "#P19_TEST_DATE" ).datepicker( "getDate" );
console.log(gdTestdate);
gdTestdate.setDate(gdTestdate.getDate()+1);
console.log(gdTestdate);
$("#P19_TEST_DATE2").datepicker("option","minDate",gdTestdate);

It will work just beautifully. (http://stackoverflow.com/questions/563406/add-days-to-datetime-using-javascript)

Published by: Tom on November 6, 2012 14:20: error C + P

Tags: Database

Similar Questions

  • Anyone else had problems with the connection switched to the internet automatically? More details

    I had this problem since the first part of January 2011. I use a dial-up connection, I have windows vista home Premium 32 bit. I can click on the internet icon on my desktop what the little box that has a checkbox to automatically connect to the internet, the diallog which is supposed to have the name of the internet connection is empty, it tries even to compose, but he does not open the port to dial an outside line. All the time I have a tick on my tab internet connections dial options each time that a network connection is not present or always dial my connection default slot choose settings if you need to configure a proxy server for a connection, it will not work on one, I can manually connect using of these (one at a time) but every time I click on the internet icon does not recognize a connection already exists, I get this message telling me that I need to connect to the cause of the internet, I work in offline mode. Whenever I get that message I click on connect to go online then it trying to connect automatically by calling and then I get this message, it cannot establish a dial-up access and still it does not open the port to dial an outside line.

    I can connect manually using the same connection and put the check box on the never dial a connection under select parameters if you need to configure a proxy server for a connection on the connections to internet options tab and I don't have a problem connecting to the internet. I did a reset and set up a new connection and that didn't work either.

    The Connection Wizard recalled the correct information, it was not correct that then I would not use this same computer online now. The reason is that I am currently using the same computer that has the problem of not being able to connect to internet automatically online. This same computer that has the problem of not being able to connect to the internet automatically, it will connect manually using exactly the same ISP configuration by routing the connection in order to never establish a connection on the internet connections tab options, while I'm on dial upward, it is assumed to be always dial my default connection under choose settings If you need to configure a proxy server.

    I have windows Vista Home premium 32-bit with service pack 2

  • Problem with the Dell powerconnect 5424

    Hi all!!

    I got 2 switch dell powerconnect 5424. I set them up with an IP and everything goes well (for now).

    But when I connect a switch on the network I have this message:

    1 January 2000 00:01:07 % STP-W-PORTSTATUS: g21: STP Forwarding State
    1 January 2000 00:01:27 % STP-W-PORTSTATUS: g21: STP Blocking status
    1 January 2000 00:01:27 % STP-W-LOOPBACKDET: g21: STP loop detection.
    1 January 2000 00:01:42 % STP-W-LOOPBACKDETRSLV: g21: fixed STP loop detection.

    I do not understand because there is only the network (port 21) and my computer that are not connected so no possible closure.

    There is the same problem with the second switch, so I think this isn't a hardware problem.

    Someone has an idea to help me?

    Thank you


  • Problems with the Smart keyboard (iPad 9.7 Pro)

    I recently bought the iPad Pro 9.7 inches, gray space, Wifi, 128 GB. IOS 9.3.1 of the operating system.

    A few questions that I met in my four days of using the iPad with the Smart keyboard:

    NOTE: the following problems persist despite a technical support call which lasted, I did 2 hours and 30 minutes. I had to restore my iPad settings by connecting to iTunes via my PC to reinstall the last iOS.

    (i) switching applications: if I want to pass, say, from safari to adobe, it is quite easy to do with the keyboard. However, there is an intermittent problem when the apps. When I try to open Adobe when I use safari, the screen of the iPad shows apps that are open as soon as I press the command and tab key.

    What is supposed to happen - I choose to open Adobe, Adobe opens.

    What happens to the contrary - Adobe does not open. Another "X" application that is currently running, opens. It is quite frustrating, because there is no pattern to this. If I use once more the keyboard shortcut to open Adobe, another application 'Y' which is running, open it now.

    In this case, I pointed out, often when the App Store is running.

    (II) command key: sometimes, shortly after I use the shortcut keys to turn on screen shortcut area (pop-up shortcut) - apps, this is supposed to happen if and only if you press and hold down the command key.

    This often happens when I switch to Safari.

    (III) keyboard not responding: a problem that I met today for the first time. My keyboard will not just respond. I had to disconnect and reconnect the keyboard for this function.

    (IV) on which the space key: to wake up the iPad, pressing the SPACEBAR is enough. You don't have to press the home button. Yet, sometimes the space key does not respond and you must use the home button.

    v) Quick app - keyboard shortcut crash switch function causes: if I want to switch from app to app 'X' 'Y', but mistakenly switch to 'Z' app, I immediately want to spend to 'Y '. However, I can't do this in quick succession. I have to wait a second or two before I can switch from 'Y' 'Z' app, otherwise the automatic switching app crashes and you have to wait once more for a second or two before moving on.

    My diagnosis:

    (I) it could be a problem with the smart connector on my iPad. A hardware problem. But it does not explain why the automatic switching app appears and passes correctly but eventually open the wrong applications. Also, it does not explain why the problem is intermittent.

    (II) a software problem. However, that would make me a face 5 questions at once. Sort of. I was surprised that, apart from the question of #3 and #4, there was almost no mention of other issues.

    To restart the iPad or to disconnect and reconnect the keyboard. But I don't think that anyone would be willing to do this 4 - 5 times on a daily basis.

    Update:

    So I used my keyboard all day yesterday without opening the App Store. And guess what? It has been working perfectly. All the above problems I mentioned were not available yesterday. I'll use the App Store today and let it run in the background to see how does my iPad.

  • The WAN Port is communicating with the Ethernet switch?

    I have a Comcast gateway that the router is disabled in so it acts only as a modem. This is related to an Airport Extreme, which serves as my router via the WAN on the AE port. I created a different WAP with a Capsule temporal from the airport, located downstairs with an Ethernet cable from one of the Ethernet ports on the AE to the WAN on the TC port. I think it's what we call a 'roaming network.

    My question is, can I connect my switch Gigabit 8 ports in one of the Ethernet ports on the TC to complete connections wired to all devices connected on it, or should I first connect EI to the switch 8 ports and then connect the switch to the port WAN TC to complete my network "roaming"? In other words, plug it into the port WAN AE or TC still allows you to use other Ethernet ports as a switch?

    Thank you!

    can I plug my Gigabit 8 ports switch in one of the ports Ethernet on the TC to complete wired connections to all devices connected on it

    Yes, assuming that the TC has been configured to run in Bridge Mode, which would be normal.

    or should I first connect EI to the switch 8 ports and then connect the switch to the TC WAN port to complete my network "roaming"?

    It would be considered preferable to wiring, if it is convenient to do so.  For example, in the configuration of the wiring in the previous example just above... If there is a problem with the time Capsule, then all devices connected to the switch to the time Capsule would have a problem as well.

    If the switch is connected to the AirPort Extreme, and the TC is then connected to the switch... If the TC has a problem, the other devices connected to the switch of will not be affected.

  • Problems with the side of the face people on calls for inhibition or modification of FaceTime?

    I have an iPhone 5s running iOS 9.3.1 over the last 4 weeks, when I'm on a call my cheek began to dumb people or FaceTime them during the call. It is not some call his every call! Does anyone have a way to solve this problem?

    The screen goes dark when you hold it in your face? You can also test this by making a call and holding her hand on the top quarter of the front of the phone. If not then something is wrong with the proximity switch. Take off from any case and screen protectors and try again. If the screen does not always dark, your proximity switch may have gone bad. Make an appointment at the Genius Bar at your local Apple store.

  • Satellite A500 - problem with the monitor after restoration

    Hello
    I have a Satellite A500. He has a problem with the monitor for a while, when you turn it on it's all lines etc. and you can not read but once the laptop to boot completely it is fine. My problem is that I wanted to do a restore, but I couldn't because the screen problem it started so I plugged into an external monitor and perform the restore. That has worked well.

    But now the laptop recognizes any my laptop screen. When you go to view it offers no other monitor choice other than external, I used for the restoration. I downloaded the display driver but nothing has changed.
    ANY IDEAS?

    Thank you

    (I have the disks for the restoration, if that helps.)

    > There a problem with the monitor for a while, when you turn it on it's all lines etc. and you can't read
    If I understand you right you can see when laptop starts and you see Toshiba welcome screen. Is this good?
    When you enter the BIOS settings you see thise lines too?

    Later, when you see the desktop on the external monitor, you can use the FN + F5 key combination to switch between an LCD and external monitor. Please try to use it and post comments if it works or not.

    What operating system do you use?

  • OfficeJet Pro 6835: Problem with the print head - Oxc19a0003

    Just bought the Pro Officejet 6835 this month of April and now the print screen shows "Oxc19a0003, there is a problem with the printhead". Had tried a hard reset of the e power cord does unplugging and is still showin the same error. Can't find a number of HP support, I can call or chat online. Help, please!

    Hello

    Its unfortunate to see this error on a new pritner.

    The error appear while you were setting up the printer for the first time, before installing the ink? (Yes/no)

    The error appear while you have been putting in place of the printer for the first time, after installation of ink? (Yes/no)

    Can I know if you had printed a few pages before the error appeared? (Yes / no)

    The error appear as soon as you switched on the printer? (Yes / no)

    However, please call HP Technical Support for assistance.

  • Error message "A problem with the cooling system" on Satellite A660

    Hi all

    Hope I can get help here. I got about 5 laptop computers HP after each of them had problems and errors. I got sick of them and so got a refund and bought a high spec A660-1FH.

    The A660 is a great laptop for two days until yesterday when I started having a saying of warning message "a problem with the cooling system has been detected. Please turn off the power immediately and return it for service "."

    The cpu fan works fine you can here it turns and the temperature of the processor i5 - 460 m is around 40 degrees for two hearts - that seems normal to me. I noticed that this happens only when running on battery, and if you switch from eco utility to the power saving mode. Its fine when running on the "balanced" power setting The fan is louder before when this message appears.

    Like its less than 28 days my retailer swapped it for a brand new immediately. Got a new home page, and the same message reappears. Everyone knows this. Like two laptops had this, I was wondering if it is normal that the laptop A660 series or if it was really a hardware problem?

    I tried to update the eco utility and the bios of the laptop, but the two are the latest versions. Can someone help or share if they have a similar problem with their laptop?

    Thank you

    In front of me, I have Satellite A660-13 q (PSAW3E) and I have about 6 weeks now. It works almost 10 hours a day and so far I didn't notice this message or anything that may be suspect for the operation of the equipment.

    I put really know why this happen on your laptop and don t think that there is nothing you can do about it.
    I would trade it again. What you can also try is to contact the closest service Toshiba. Make a call, explain the situation and ask if they can help you with this.

  • Problem with the digital signatures of workers govt

    If I get emails quite frequently NAVAIRSYSCOM workers via my e-mail from work which is the right company, no Government excuseraient. On my last phone an orginal Droid, a few emaisl would tell me there was a problem with the digital signature for e-mails, but I always saw the e-mail itself.

    Since switching to the Maxx HD, I can see no longer the body of emaisl to these people. All I get is a "impossible to decrypt this message." It is not every person govt, but enough that it is very frustrating. Any ideas on how to work around this problem? and I know that the message is not encrypted, I can see fine by Exchange and we are app.

    We have a couple of our team focuses on similar issues. Passing this along.

  • Problem with the change in value of listbox event

    Hello

    I have a problem with the help of Listbox value change event. The code that I have attached is a simplified version of the largest program, but the problem is the same. One of the loops of Nonna is responsible for handlig occurring events ant the other is responsible for the execution of the program. In the project of oryginal I use a listbox control to determine which plots graphic display of a waveform is visible (first position of the listbox-> only plot first visible etc.). In the attached vi, I just show the current value of the listbox control. The problem is the event runs only once and then the program crashes. I want to be able to change the value of the listbox work both at idle and in State of a program, but when I put the structure of the event in both States, he does not. I'd be very grateful if someone smarter than me could tell me where I made my mistake. I want my program to be able to manage the keys and listbox events in States (slow down and knit) program.

    You have two structures of event in two cases different from the structure of the case, and both are tuned to listbox events has changed. Because only once can be triggered at any time, the VI crashes (lock events the front panel (default) until the event can complement).

    You must use a unique event structure managing all events.

    The overall program architecture looks like inside-out for me.

    For the buttosn, you must use action lock (switch not release!) and use the value changed events.

  • problem with the yellow triangle without preventing Internet access

    problem with the yellow triangle without preventing Internet access.in across the network!
    all PC go to the internet through TMG and some computers work very well and most of the computers triangle shows yellow and always go online, but the connection it needs to slow down, I do everything from restarting all switches and install new TMG and always exist and place on another line to outside the firewall problem disappear?
    What can I do :(

    Hello
    I advise you to follow the link below for Tech Net where your social networking question will be answered by IT pros.
    You can post/search here
    hope this helps,
    B Eddie

  • I am also having the same problem with the same updates. I have Windows XP SP3 and it's updates with the problem.

    I am also having the same problem with the same updates. I have Windows XP SP3 and it's updates with the problem.

    Security Update for Microsoft .NET Framework 2.0 SP2 on Windows Server 2003 and Windows XP x 86 (KB2572073)
    A security update for .NET Framework 2.0 SP2 and 3.5 SP1 on Windows Server 2003 and Windows XP x 86 (KB2518864)
    Security Update for Microsoft .NET Framework 2.0 SP2 on Windows Server 2003 and Windows XP x 86 (KB2633880)

    They all install properly but switches back to windows update to install. It's some kind of loop.

    Hi billy73,

    In addition, if you still have questions, please take a look at the thread similar here with a solution as possible.

    I hope this helps!

  • error message 'there is a problem with the printer turn the printer off even more'

    I have a new 7525 HP photosmart HP printer, if it can find all the flashing lights with an error message on the screen "is there a problem with the printer. Turn the printer off on new"this does not solve the problem... Can't clear this error message!  Cannot use this printer!

    Hi sandrafranks,

    Thank you for your answer!

    In my view, it is unwanted material. Please contact our technical support at the 800-474-6836. If you do not live in the United States / Canada region, please click the link below to get help from your region number. Language-country selector.

    Hope this helps and have a great day!

  • Have a problem with the Windows XP where he did not finish the boot.

    Have a problem with the Windows XP where he did not finish the boot. Ran remote console and @ the c: > guest tried to run chkdsk/r/p and received the error message "invaild drive. I put the drive in the argument?

    Hello Tmagic,

    Thank you for your message.  The correct format is below:
    chkdsk volume: (switches, e.g./r/p)

    example: chkdsk c: /r /p

    If these results find but cannot fix all the mistakes, you can also check with the manufacturer of your drive and possibly download a utility that will check the errors and repairs.
    Please let us know if it did or did not help to solve your problem.
    See you soon

    Engineer Jason Microsoft Support answers visit our Microsoft answers feedback Forum and let us know what you think.

Maybe you are looking for

  • Satellite L300 - Sleeping mode closed

    I have Toshiba Satellite L300-170 which came with Vista pre-installed. I have installed XP SP3, installed the drivers, but the laptop doesn't go into sleep mode when it is closed, as it has done on Vista.I put it on closed in Toshiba Power Saver to s

  • Version 3.6.8 cannot load videos?

    I just upgraded to Firefox 3.6.8 and now whenever I try to watch a video on a site like youtube screen is black and he says: ' year error occurred, please try again later. " But when I tried with another browser called Galeon, he played. If I empty t

  • Add mp3 files to icloud drive in garageband for ios 9

    Hi all! This has probably been asked before, but I couldn't find a solution anywhere, so will ask once again, for what its worth. After the new update to garageband for ios 9, there is now an option to add a track by choosing "import icloud drive." I

  • single-precision changes constant value

    See attached 'vi '. If I set a digital double precision on my schematic, change it to SINGLE-precision, then enter the valeur.001 inside, he adds values to the right of the decimal point. Why would he do that? I'm using Labview 2011 SP1.

  • USB HUB/Port

    Have Dell Inspiron 6000 laptop, Intel Petium (R), MProcessor 1, 6 GHz, physical memory 256 MB, win XP PRO.BIOS: Phoenix ROM BIOS MORE worm: 1.10 A09 Trying to hang a Lexmark X 1270 All In One Printer for 2 weeks. Have no CD of the printer or the Wins