Timed array issue

Hi all,
I am trying to incorporate a timed array into my website. I want it to pull the timedCount function every 10 seconds. Any help would be greatly appreciated! Here's what i have so far....
Thanks!
Kal
function timedCount()
var whichQuote=get_random();
var c=0
var zen = new Array(3);
zen[0] = "If you do not raise your eyes you will think you are the highest point. . .
Antonio Porchia";
zen[1] = ". . . they're the words you would think I would say if there was a me for you. . .
They Might Be Giants"
zen[2] = "Scar tissue is stronger than regular tissue. Realize the strength, move on. . .
Henry Rollins"
document.write('<div  style="z-index: 5; position: absolute; left: 400px; top: 20px;">' +
alert(zen[whichQuote]) + '</div>').value=c;
c=c+1
t=setTimeout("timedCount()",5000)
}

Kal_025 wrote:
i mean, I would like for one of the quotes to come up at random and change every 10 seconds. Well then you're building three things:
1) a method to grab a random quote from the array
2) a method to display that quote
3) a way to run the above every 10 seconds.
As I recall Javascript has a "setInterval" method that can be used to cause timed events, but I don't know the details. Again, you want a Javascript forum.
Javascript isn't Java. You're more likely to get answers on a Javascript forum somewhere.Sorry about that, I guess i didn't really think about the difference.Actually there's a huge difference...they're syntactically similar in some ways but not in others, and arguably they're not semantically the same at all. They tend to run in vastly different environments too. And they don't share libraries. The main similarity apart from the partial syntax similarity would be that they're both used in web development a lot (although on completely different tiers usually) so developers of each one might travel in the same circles.
Curses to the late Netscape for giving the language such a similar name. Clearly, it wasn't Microsoft who crushed them...it was GOD!

Similar Messages

  • Timed out issue in jsp page!

    Dears,
    It is really amazing for me to see this issue in my application which I deployed in Oracle Application Server 10g r2.
    I am using JDeveloper 10g to create jsp pages.
    On one jsp page i am displaying 15 html tables for a report.
    All tables have 1 query to get records from oracle 10g database.
    Am opening one connection and than one by one running queries just before each table and rendering data through ResultSet
    (which is scrollable).
    If I test this page from JDeveloper, it is displaying fine.
    But when I deploy this page in Oracle Application Server 10g,
    and create a portlet and show this jsp page in portlet and open this page,
    this page most of the time giving 'TIMED OUT', and a few times displaying report properly.
    I tried PreparedStatement to run multiple queries for Oracle DB, but couldn't make it successfully.
    BTW,
    I checked my OAS log, it shows following error:
    09/03/16 18:39:08 hrwfapp: [instance=(null), id=(null)] ERROR: Request has exceeded its warning timeout Time[elapsed=61046ms.
    Warning timeout=20000ms.] Request[id=5003532663665,3 providerId=493501 portletId=117 portletName=AttritionReports
    portletInstance=35555_ATTRITIONREPORTS_493501 user=PUBLIC] Thread[ name=AJPRequestHandler-ApplicationServerThread-6
    priority=5 alive=true interrupted=false groupName=ApplicationServerThreadGroup]
    Please help me in this regard, what should I do to avoid Timed out issue.
    Best Regards

    Hi,
    if this occurs only in combination with portlets then I would try the Oracle Portal forum for help or use customer support to help you analyzing the issue
    Frank

  • When starting the Add-on: Connection timed out issue

    When starting the Add-on: Connection timed out issue
    Hi,
    We have a client in SAP 2005 PL 44.
    I built the add-on for them using simple installer wizard ( I tried advanced set-up also).
    When starting the add-on, I get the message 'Connection Timed Out'.
    Add-on status is failed.
    But the add-on is actually connected. i.e, The functionality associated with the add-on is working fine.
    I had SAP 2007 before and un/reinstalled SAP 2005 in order to connect with this client.
    I had built the same add-on in a similar way for the same client for lot many times in the past, but I never got this issue.
    I tried the following:
    1) Delete SM_OBS_DLL and un/reinstall DI API
    2) un/reinstall B1DE
    Always I'm getting this error.
    Please let me know your inputs.
    Thanks.
    Geetha

    Hi Geetha,
    The timeout issue has been discussed quite a bit already on this forum. Please do a search or look at these threads:
    Timed Out Error with ADDON
    Addon Connection Timed out
    Regards
    Aravind

  • HOW TO: Resolve 'An error has occurred: Request timed out' issue

    Post Author: fmi-charles
    CA Forum: Crystal Reports
    After doing a new install of BOE Server software, encountered a problem viewing long running reports on-demand.  InfoView displayed: 'An error has occurred: Request timed out.' Couldn't find answers anywhere (not even on this site) that would help me resolve this issue.  So, I decided to post the resolution.
    The error from this post's subject line is displayed when viewing on-demand reports that run for longer than 90 seconds.  If the report was scheduled, it wouldn't have a problem - only viewing on-demand.  This issue transpires with the following setup:   * M$ Windows 2003 Server   * IIS v.6   * .NET 2.0.50727   * BO Enterprise Server XI R2 SP2   * M$ SQL Server 2005
    The resolution is to find the 'machine.config' file for your current version of the .NET Framework (e.g. C:\WINDOWS\Microsoft.NET\Framework \v2.0.50727\CONFIG\machine.config).  Edit the file and place the following into a new line within the 'system.web' section: <httpRuntime executionTimeout="3600"/>
    The timeout is set in seconds.
    Then, restart IIS using the command line.

    Hello Cristinel -
    Thanks for send your inputs but I have solved this error.
    I would like that if you solve my this question.
    My project's URL is http://www.lampslightingandmore.com/
    I want to put w3stander HTML logo in my website.
    I have done many error but some error i could not understand.
    please click on below url and send me your suggestion how to solve this errors?
    http://validator.w3.org/check?verbose=1&uri=http%3A%2F%2Fwww.lampslightingandmore.com%2F
    I hope you send your best inputs.
    Thanks

  • An unknown error occurred (5002) and Connection timed out issue(s)

    Next issue that I have since upgrading to Ver 8 of iTunes:
    When trying to make a purchase I get either one of two different problems/errors -- 1.) Following pop-up “Could not purchase song. An unknown error occurred (5002)” or 2.) I get a “connection timed out” pop-up stating there could be a problem with my internet/network connection.
    As far as there being an issue with my modem or internet, well...there isn’t one that I can detect. I am able to do everything else in iTunes (download samples, surf the pages, etc.) so my connection seems ok generally speaking.
    If someone could get in touch with that super-hip kid in the Mac commercials and tell him to fix all of these problems with iTunes ver 8 that would be great! Honestly, any other issues I have with Vista are typically easy to fix. iTunes is the one piece of software that seems to cause me the most issues and there is very little support from Apple. Seems sort of strange for a company who claims such stability in their products. What gives?
    Sorry for the rant...just frustrated.

    Ok, two seconds after making this post I think I fixed the problem (fingers crossed). I read on a quazi-related post that iTunes was now requiring security codes off credit cards for purchases. Personally I don't use a credit card but I went in to my account just to make sure. The 1st time I tried to access my account I got the 5002 error, the 2nd time I was able to access my account w/o any issue. I did not make any changes to my account at all (just browsed around a bit and made sure everything was ok). After exiting my account I was able to make a purchase. Hey, whatever...right? Of course on my next purchase it will probably throw up some new error. Anyway, try this if you have the same problem.

  • Database connection timed out issue

    Thanks in advance for anyone that can provide some insight into this. I have a relatively simple BPEL process that is using a JDBC connection within Jdev (not using connection factories due to issues with security) that connects to an Oracle database and runs a sql statement. The first time I run the BPEL process it works fine, however if I run it again then I get the exception below. I was thinking that there was some configuration or flag that would tell the adapter to log into the database each time, but I've been unable to find it. The reason I think this is the core problem is that if I restart SOA Suite then it works, or if I undeploy the process and redeploy it works. I've tried to hang a catch all off the adapter, but with this exception it terminates the instance. I might be doing something wrong there as well so any help would be greatly appreciated. thanks again.
    Execute of operation 'DB_GetActiveLicense' failed due to: Pure SQL Exception.
    Pure SQL Execute of select Io exception: Connection timed out.
    ; nested exception is:
         ORABPEL-11633

    Thanks for your reply. Yes I'm using the database adapter and issuing a direct SQL against it. The query takes no more than 5 seconds to return, when I run it in Toad it's about a second. All result sets come over all at once with maybe 75 records. The odd thing is that when I run this BPEL on a Windows desktop it works fine every time, but when I move it to Solaris it works the one time and then throws that exception.

  • 500 Connection timed out issue

    Hi Experts,
    In my webdynpro JAVA application I am making a call to MDX query to get data from BW.
    If the query returns the value before 60 sec, I am able to view the data.Else I am getting error message "500 Connection timed out"
    In my application I have not set the any timeout in application property.So the application is taking the default timeout settings from the server.
    When i checked with admin team, they give the timeout settings of server as below.Still I am facing the issue of tiemout.
    Can anyone help to find the solution for this?
    Below are the error details:
    500 Connection timed out
    Error:
    -5
    Version:
    7200
    Component:
    ICM
    Date/Time:
    Wed Nov 28 01:15:28 2012
    Module:
    icxxthr_mt.c
    Line:
    4295
    Server:
    a6bwp02__75
    Error Tag:
    Detail:
    Connection to partner timed out after 60s
    Thanks in advance,
    Ram

    Hi
    Check the following settings:
    In BW system:
    Run Transaction -> SMICM From Menu Bar GOTO->Services-> Select HTTP Service-> Now select SERVICE from menu bar->Change option-> Change Max. Processing Time to your convienient.
    Since you are using WDJ:
    http://help.sap.com/saphelp_nw04s/helpdata/en/43/8a1a8ece230c8ce10000000a11466f/frameset.htm
    From Portal:
    1. Default Timeout: This is the most used and the most common parameter used for portal component timeout.  It is set  at portal - System Administration –> System Configuration –> Service  Configuration –> Default configuration.
    Parameter is Default.component.timeout
    2. Portal Page Timeout: This parameter portal page timeout. This is applicable to browser page not to portal page object. In simpler terms, this parameters is not applicable to PCD objects like iView, workset or a page.
    This is set from portal system admnistration and the parameter is: Com.sap.portal.page.PageTimeout
    3. WebDynpro Component Timeout: This parameter controls expiry time of a webdynpro component. This parameter would override all other parameters and is configured in Visual Administrator You can locate the following parameter and configure appropriate time.
    Parameter is:   Tc~wd~dispwda – DefaultExpirationTime
    4. WebDynpro Application timeout: This parameter controls timeout of a webdynpro application inside a component. When you want to have a different timeout for application, you can use this parameter. This parameter also overrides timeout parameters set in Service Configuration.
    The parameter is: ExpirationTime
    Hope this helps. Please mention the solution.

  • Learning java programing - Array issues.

    Hi Everyone,
    I just started in java programming and into Arrays multidimensional. I started a simple 2 dimensional array with 5 names with genders. I 'm having issues because it does not want to print out the names with correct genders Male/ Female. The simple program should print out the 5 names with gender type.
    example:
    Jack - Male
    Sally - Female
    Dave - Male
    Sue - Female
    Brian - Male
    Here is what I came up with so far:
    public class Multiname
         public static void main(String[] args)
              //String[][] multiname;
              String [][] multiname =
                        {"Jack", "sally"},
                        {"Dave", "Brian"},
                        {"Sue"}
              /* multiname [0][0] = "Jack";
              multiname [0][1] = "Male";
              multiname [1][0] = "Sally";
              multiname [1][1] = "Female";
              multiname [2][0] = "Dave";
              multiname [2][1] = "Male";
              multiname [3][0] = "Sue";
              multiname [3][1] = "Female";
              multiname [4][0] = "Brain";
              multiname [4][1] = "Male";     
              //int rows = 2;
         //int columns = 2;
                   for(int i = 0; i < 4; i++)
                        {for(int j = 0; j < 2; j++)
                                System.out.println("multiname " + ": " + multiname [i][j]);               
    This is the result:
    multiname : Jack
    multiname : sally
    multiname : Dave
    multiname : Brian
    multiname : Sue
    Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 1
         at MultiD.main(MultiD.java:29)
    Can someone inform me what is wrong or missing, and what do I need to do to correct this. I'm new to this and I'm a visual person. Any assistance would be appreciated.
    Thanks,

    Welcome to the forum!
    When you post code use \ on the line before and on the line after the code to preserve formatting (read the FAQ). You can use the 'Preview' tab on the reply window to see what your reply will look like.
    Please edit your post and add the code tags.
    {quote}
    The simple program should print out the 5 names with gender
    {quote}
    How could it possibly do that when you commented out the lines the put the gender into the arrays?/* multiname [0][0] = "Jack";
    multiname [0][1] = "Male";
    multiname [1][0] = "Sally";
    multiname [1][1] = "Female";
    multiname [2][0] = "Dave";
    multiname [2][1] = "Male";
    multiname [3][0] = "Sue";
    multiname [3][1] = "Female";
    multiname [4][0] = "Brain";
    multiname [4][1] = "Male";
    When you are starting out don't use any more data than you need to get things working. You only need two name/gender combinations; any more just gets in the way.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Daqmx timing source issue

    I have attached zip containing 2 folders. Both are doing same functionality but one using software timed 50ms loop. the other one is hardware based timing source.
    I run , quit & re-run the application. Both the applications works well. But the ISSUE folder containg application hardware timing sourced app, after quit, the EXE process keeps running in the background & needs to be stopped using Ctrl+Alt+Del invoking the task manager.
    As many times I click on to run the app, it works ok only, but holding the EXE process in background.
    Hope someone helps to resolve this. Im using LV2009 + PCI 6229.
    Thanks,
    Kousy
    Attachments:
    LV Exec Process Termination Issue.zip ‏1948 KB

    Hi,
    I found the solution to the problem: using the latest NI-DAQmx drivers v.8.0.
    It was directly related to my M-series card (PXI 6221) not correctly working in my PXI chassis due to apparently bad drivers or a bug in version 7.5.
    Christoph

  • XML and Array issue

    I've created an array that loads data from an XML file. Now,
    when a button is pressed I want this array to delete all previous
    elements found in the array and add new elements coming from the
    same XML file. So I created a function called arrayUpdate, here it
    is...
    function arrayUpdate():Void{
    myArray.splice(myArray.length);
    When the button is pressed it first calls this arrayUpdate
    function and then calls the other function which loads the specific
    data from the XML file. But I can't get it to work. It just keeps
    adding new data to the old data. Did I do something wrong
    here?

    function arrayUpdate():Void {
    delete myArray;
    var myArray:Array = new Array();
    }

  • Internal mic array issue

    Hello,
    I am using HP Envy dv6-7267cl, I have recently upgraded from windows 8 to windows 8.1, then the hell broke loose on me, Internal microphone does not work, Camera does not work.. Validity finger sensor stopped working
    Some how I could get Finger sensor working back, However under device manager  
    Generic USB Hub (Validity Sensor (WBF) (PID=0018)), If I disable this only then Internal microphone responds.
    Webcam has not responded, Youcam software gives a msg to   " No webcam detected. try plugging in a webcam into your computer now. if you are using an integrated camera, make sure that it is turned on."
    What should I do with this disgusting laptop.. Please help..
    Thanks,
    Harish

    Hi Mpeacemaker, welcome to the HP Forums. I will assume the model number was a typo and reference the "13-2311ee". If I am wrong please let me know. I also will assume this came with Windows 8, as that is the default troubleshooting available on your computers support page. Here is the general troubleshooting to resolve microphone issues: Resolving Microphone and Line-in Problems (Windows 8)
    If this does not help, give me more details as to what you have tried.
    I look forward to your response.
    TwoPointOh
    I work on behalf of HP
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos, Thumbs Up" on the bottom to say “Thanks” for helping!

  • Timed out issue on trying to recover iCloud ID

    I've forgotten my apple ID for Icloud I have my email and when I try to recover it says I'm timed out and won't let me go further

    Brilliant - that was exactly the thing to do.  Have now successfully updated iOS on iphone3gs and ipad2 despite it being a bit scary having no virus protection on my pc for a couple of hours.  Many, many thanks.

  • Consume external web service and experience connection timed out issue

    Hi all,
    I followed tutorial:http://docs.oracle.com/cd/E18941_01/tutorials/jdtut_11r2_14/jdtut_11r2_14.html to consume external web service.
    At step 2,substep 4, I experience the following error:
    "DCA-40002: The WSDL document is invalid due to the following reason: WSDLException: faultCode=PARSER_ERROR: Failed to read wsdl file at:"http://www.webservicex.net/WeatherForecast.asmx?WSDL". Caused by : java.net.ConnectException: java.net.ConnectException: Connection timed out: connect."
    I have tried to set up proxy:Tools > Preferences->Web Browser and Proxy. But it still doesn't work. Any idea?
    Thanks in advance.
    Regards,
    weiyang
    Edited by: user13304960 on Mar 15, 2012 8:42 PM
    Edited by: user13304960 on Mar 15, 2012 8:43 PM

    Hi,
    Thanks for your reply. I have tried these 2 tutorials before. Both worked well. Publish an web service by myself, then consume it with a client. It works. But for this external wsdl published by USA weather forecast, it doesn't work. Navigate to http://www.webservicex.net/WeatherForecast.asmx?WSDL through firefox, and right response is returned. I wonder why connection timed out occurred and how to deal with it.
    Could you please share your experience with me? Thanks.
    Thanks.

  • Jdbc: connection timed out issue

    Hi,
    I've done some searching, and trying different things, but haven't been able to resolve my problem.
    I'm trying to connect a java application to a mysql database on a machine running ubuntu server. The machine the java app is written and run on is ubuntu desktop.
    Here is the relevant java code:
    String url="jdbc:mysql://jasonServer/phototestdb"; Connection con = DriverManager.getConnection(url, p);
    ('p' is a Properties object containing user and pw).
    I get this error:
    com.mysql.jdbc.CommunicationsException: Communications link failure due to underlying exception: ** BEGIN NESTED EXCEPTION ** java.net.SocketException MESSAGE: java.net.ConnectException: Connection refused STACKTRACE: java.net.SocketException: java.net.ConnectException: Connection refused // bunch of stack trace stuff...
    I've tried a couple ways of connecting in the url,
    String url="jdbc:mysql://jasonServer/phototestdb"; String url="jdbc:mysql://jasonServer:3306/phototestdb"; String url="jdbc:mysql://99.999.9.99/phototestdb"; (9's are my ip address, I have static ip's on wireless network) String url="jdbc:mysql://99.999.9.99:3306/phototestdb";
    when I have the ip in the url, it fails immediately and gives me a connection refused error:
    establishing connection com.mysql.jdbc.CommunicationsException: Communications link failure due to underlying exception: ** BEGIN NESTED EXCEPTION ** java.net.SocketException MESSAGE: java.net.ConnectException: Connection refused STACKTRACE: java.net.SocketException: java.net.ConnectException: Connection refuse
    But when I have the server name in the url, it hangs for a long time and then gives me the timeout error.
    Couple other relevant notes;
    I am able to ping the server from the desktop using the server name, i.e,
    ping jasonServer
    but not using the ip addres
    I am not able to telnet in the terminal window, I type
    telnet jasonServer 3306,
    it says "Trying (ip address)
    and it just hangs there.
    This leads me to believe this isn't really a java issue (and after all that typing I'm probably on the wrong forum)
    but something to do with my network.
    Any ideas?
    bp

    solved,
    I had to enter this in the server:
    (found this on the mysql forum)
    You simply need to do:
    mysql> GRANT SELECT,INSERT,UPDATE,DELETE,CREATE,DROP
    -> ON <dbname>.*
    -> TO <username>@<host name>
    -> IDENTIFIED BY '<password>';
    where <dbname> is the name of the database you are tyring to connect to, <username> is the username of the user trying to connect to the database, <host name> the name of the host (in your case the XXX host) and <password> the password of the user.

  • Cast array issue?

    Can Java Array Object be cast to another type? For example:
    Vector<MyClass> vector = new Vector<MyClass>();
    MyClass []mc = (MyClass[])vector.toArray();The last line can't worked.

    SteveLam wrote:
    MyClass[] mc = new MyClass[vector.size()];
    vector.toArray(mc);and it can pass.Strictly speaking your last line should be this:
    mc = vector.toArray(mc);While all the implementations I've seen use the array, if its of the correct size, the specification does not require that. A call toArray() can return a new array, as long as it's of the same type as the parameter.

Maybe you are looking for

  • Why doesn't drag and drop work?

    I want to re-arrange files on my desktop.  When I use 'drag & drop' the file I moved just snaps back to its original location.  How do I get 'drag & drop'  to work properly?

  • How can i put my apps onto my main screen

    I have just updated my iphone, wish i didnt. but all my apps arent on my main screens, how can i put them on the screen?

  • Version incompatible for export in 10g Oracle DB

    Hi, I have an Oracle DB with version 10.2.0.5.0 in Windows 64. But when I am trying to generate the export file using the standard exp utility: exp MTT2USER/mtt2user@MTT162 file=C:/export/exportMTOfull1.dmp log=C:/export/exportfullMTO1.log full=y row

  • 2.0 Firmware Update Problem

    I downloaded the 2.0 Firmware and began the installation, but somehow during the process my network was momentarily disconnected (brief Wi-Fi snafu, happens occasionally). Now though, my phone is completely blank, and iTunes keeps giving me this aler

  • Overmodulated/distorted/garbled audio on G4 (Digital Audio)

    Just got a used G4 (Digital Audio Model #M7688LL/A) from a somewhat nationally-known used Mac store for about $200. It has a 533 Mhz processor with 512MB of RAM. It had 10.3.9 pre-installed. Everything works great. Even the startup chime. Perfect. Bu