Problem with Reload in javascript

Hi All,
In my application, When you click on delete icon i am calling javascript function as shown below:
function DeleteSchedule(vjobid,vscheid)
if(confirm('Are you sure you want to delete?'))
var get = new htmldb_Get(null,&APP_ID.,'APPLICATION_PROCESS=deleteSchedule',0);
get.add('F103_JOBID',vjobid)
get.add('F104_SCHID',vscheid)
gReturn = get.get();
alert(gReturn);
location.reload(true);
In the above function at the end i am calling location.reload(true) which intrun the entire page will gets reload and the record is getting deleted succesfully.
Now the problem if the commit that particular location.reload functionality the page will not be refereshed even though the record is geeting deleted from backend.
How we can overcome the above problem without the reload, since in my application there can either insert/update/delete records.
For ex: In one situation if i had a new record and before clicking on sumbit button i will try to delete the old record, now in that case the new record what i had added is not stored since in delete functionality the reload concept is called.
Hope u have got my problem!!
Thanks in Advance,
Anoo..

Hi,
Try change location.reload(true); to
doSubmit('REQUEST_FOR_INSERT');Br,Jari

Similar Messages

  • Sudden problems with image behaviors, javascript on Yahoo servers

    I have been posting my website with Yahoo Small Business for 10 years and have never had a server-side issue (to my knowledge).  Until now.
    It should first be pointed out that all my sites are basic HTML, constructed using Dreamweaver 8 on an old Sawtooth PowerMac that runs OS X.3.8.  I am behind the times and know it. 
    I have a 2011 iMAC, but can't afford to upgrade my imaging software.  If adobe cared anything about aspiring designers, they would come down to earth with the pricing (why should current students, educators and private business be given such a massive advantage in pricing?).  Sorry, I'm just being truthful.  I do not use style sheets (though it would be helpful to learn since the web is run by them now).
    Recently, I completely redesigned my personal website.  When I tested it on my old mac, everything functioned as desired.  When tested on my new mac, everything functioned as desired.  When viewed online after uploading to the server, the page appears to load in full, but none of the image behaviors work.  Correction, the "mailto:" link works, but it was assigned in the property inspector rather than the behaviors inspector.  So I have no rollovers and no operative links beyond email.
    I sent the site files to a friend so he could check the site.  He posted it to the server he uses and all the functions on the page work correctly.  This is where I came to suspect that the problem is with the Yahoo servers and not my coding.
    Here is the link to the page that does not work correctly:
    http://www.boughnermultimedia.com
    Here is the link to the page that does work correctly:
    http://www.ericsearsandeyes.com/fboughner
    In Safari, I checked the error console and the following message appears for all java script behaviors:
    ReferenceError: Can't find variable:
    If someone here could check my source code and let me know where Yahoo is having problems with my code, it would be greatly appreciated.
    Thanks.

    Your code is corrupted.  If you view source in browser, you'll see your code is compressed into one long line. This will surely cause JavaScripts to fail.
    Your friend's version works because the code is not compressed.
    In DW, go to Edit > Preferences > Code Format >
    Which Line Break Type are you using? 
    Nancy O.

  • Visualization problem with some website javascript

    Hi to everyone,
    i note visualization problem with some website, it seems some javascript.
    If i visit for example the website
    www.filesonic.com
    I don't tha image in the middle of the website and if i click on "login" no windows appear.
    This is happen with different browser and for example if open the javascript debug with Safari under the section "console" i see this error:
    Failed to load resource: the server responded with a status of 404 (Not Found)
    jquery.history.js:194
    ReferenceError: Can't find variable: jQuery
    global.it.js:2
    ReferenceError: Can't find variable: $
    http://www.filesonic.it/:111
    ReferenceError: Can't find variable: $
    How can i solve it?
    It is not just a problem of this website but also some other
    Javascript update 1 is installed and it is activated in java preferences and also in browser preferences
    Regards

    I think I had a similar problem
    https://discussions.apple.com/message/25094902#25094902
    Solution was:
    https://discussions.apple.com/thread/4222662

  • Call DB Procedure then pop-up page: problems with reload of pop-up page.

    The Scenario
    In Apex 2.0 I have page 1 which has a report. The user clicks on a value in the first column of the report (ID#) which is the table's primary key value. The ID# is a link which calls Javascript that displays custom pop-up page 2. Page 2 has a PL/SQL "On-Load - After Regions" process which calls a database procedure. Page 2 presents a "Congratulations you just submitted report ..." mesage. The user clicks on an "Ok" button on page 2 which does a Javascript close to close out the pop-up page and return the user back to page 1.
    The Problem
    All works well except if the user clicks the "Reload current page" browser button while in page 2, he submits the report a second time.
    My Attempts:
    I have tried the following with little success:
    1) I defined an item P2_SUBMIT on the pop-up page 2 into which which I pass in the value of 'YES' from page 1. The "On-Load" process checks its value. If P2_SUBMIT = 'YES' it calls the DB procedure and then sets the value of P2_SUBMIT to 'NO'. My intention is to disable the call to the DB procedure. Well when I press the "Reload current page" for some reason P2_SUBMIT in the On-Load process still evaluates to 'YES' and the DB procedure fires even though when I check the session value for P2_SUBMIT it says 'NO'. The screen value of P2_SUBMIT says 'YES'. I think for some reason that value in the HTML variable is not in sync with what is in the session???
    When I press the "reload current page" button in the browser, the session state values appear to revert back to what they were when the page was first rendered even when their values are changed in a PL/SQL On-Load process. If I change the value of a page item in a PL/SQL On-Load process, the session value changes but the value in the HTML page variable does not match the session value. When I press the reload page the value used in the On-Load process is not the session value, but the value of the HTML variable. It appears to revert back to when the page was first rendered. What am I missing?
    2) I created an On-Demand process. I modified my javascript code which opens the pop-up page to invoke the On-Demand process which in turn called the DB procedure before opening the pop-up page. This "kind of" worked. What I mean is it called the DB procedure, but was so slow when calling that I had actually clicked three times on the link before anything popped up and ended up with three pop-up pages and three calls to the DB procedure.
    Are there any other options that I can try? I prefer option #1 if I could get the P2_SUBMIT to evaluate correctly.
    I will put together a working example tomorrow on Oracle's apex.oracle.com site and post a link.
    Thanks,
    Mike

    1) I defined an item P2_SUBMIT on the pop-up page 2
    into which which I pass in the value of 'YES' from
    page 1.If you're passing it in the URL, it will still be in the URL on reload, yes? It would then get reset to YES every time the reload button is pushed.
    Since you can access session variables from another page, try setting the value of P2_SUBMIT from page 1 using a process or whatever when you do the submit. Don't pass it in the URL. If you do that, then I think it will work.

  • Problem with execution of JavaScript in HTML control with SAPGUI 6.20

    I have added some lines of code JavaScript in a modified class copy of the class CL_DD_DOCUMENT, that is executed well in frontend SAPGUI 6.40, but it is not executed in SAPGUI 6.20 with patch level 65 or 38.
    Somebody knows because it is passing this?
    I really need to know what is the problem. Any help will be welcome...
    thanks,
    Robert.

    HI,
    May be the below from SAP documentation is useful to you.
    Implementation considerations
    The interface of the SAP HTML Viewer is the same for all platforms, but its functions will depend on the underlying HTML browser. Under SAPGUI for Windows , it uses Microsoft Internet Explorer 4.0 as an external browser. Under SAPGUI for Java, it uses the Ice Browser, which is installed with the GUI.
    http://help.sap.com/saphelp_47x200/helpdata/en/c9/147a36c70d2354e10000009b38f839/frameset.htm
    Thanks
    Ramakrishna

  • Problem with onBlur=validate_int_range javascript function

    Hi i have a java script function which is use to check for the range of the integer i enter.
    The function works fine but the problem is once i click ok on the validation boxes that come up when i enter a wrong value it allows me to click the submit box.But if i click back on the text box then the validation box appears again.
    The report code is
    to_clob(HTMLDB_ITEM.text(5, pref_val,15,30,'onBlur="validate_int_range('||pref_name||','''||pref_expr||''');"style="width: 220px;"',pref_name)),
    and the javascript function is
    <script language="JavaScript1.1" type="text/javascript">
    function validate_int_range(pref_name, range) {
    var pos = range.indexOf('-');
    var start_val, end_val;
    var actual_val = pref_name.value;
    var non_digits = /\D/;
    if ( non_digits.test(actual_val) ) {
    alert('Validation Fail: only digits allowed. ' + range);
    if ( pos > 0 ) {
    start_val = range.substr(0,pos);
    end_val = range.substr(pos+1, range.length-pos+1);
    if ( eval(actual_val) < eval(start_val) ) {
    alert('Validation Fail: smaller value than ' + start_val );
    if ( eval(actual_val) > eval(end_val) ) {
    alert('Validation Fail: larger value than ' + end_val);
    function validate_rule(pref_name, exp) {       
    var actual_val = pref_name.value;
    expression = new RegExp(exp);
    if ( ! expression.test(actual_val) ) {
    alert('Validation Fail: Rule ' + exp);
    </script>

    >thanks you so much for the code, I'll test it out and
    reply with >the
    >results.
    Shouldn't that be "Thanks so much for the Cod"?
    "Dave Bar" <[email protected]> wrote in message
    news:e28c7t$hk1$[email protected]..
    > ahh yes, you are right..
    > I should have said OR instead of AND.
    > If Field is blank OR range is not between 1900 &
    2006. Thanks for catching
    > and pointing that out.
    >
    > thanks you so much for the code, I'll test it out and
    reply with the
    > results.
    > Thanks
    > -Dave
    >
    >
    >
    >
    > "Lionstone" <[email protected]> wrote
    in message
    > news:e28b1a$fu5$[email protected]..
    >> That's probably because you asked for a fish to help
    you out
    >>
    >>> Can some kind sole help with a modified version
    to also check for an
    >>> entered
    >>> number range?
    >>
    >> and fish can't type.
    >>
    >> You're off on the logic though, since something is
    not likely to be both
    >> blank and outside a certain number range. If it's
    blank or outside the
    >> range, either condition is sufficient for an error,
    right?
    >> You also want to make sure that no letters, etc, are
    entered, because
    >> that will mess up your comparisons to the other
    numbers. Keeping in mind
    >> that javascript validation can be defeated by
    sneezing and you'll need to
    >> re-validate on the server, this will be closer to
    right (not tested).
    >>
    >> var ThisYear = ThisForm_Right.DOB_Year.value;
    >> ThisYear = ThisYear.replace(/[^/d]/g,"");
    >> if(ThisYear.length == 0)
    >> {
    >> alert("Please enter the year of your DOB.");
    >> ThisForm_Right.DOB_Year.focus();
    >> return false;
    >> }
    >> else
    >> {
    >> ThisYear = parseInt(ThisYear);
    >> if((ThisYear < 1900) || (ThisYear > 2006))
    >> {
    >> alert ("The year of your DOB must be between 1900
    and 2006.");
    >> ThisForm_Right.DOB_Year.focus();
    >> return false;
    >> }
    >> }
    >>
    >>
    >
    >

  • Having problem with calling external javascript functions in LV

    Hi,
    I found this VI: http://lavag.org/topic/10304-discuss-calling-external-javascript/, which I believe can be really helpful for my work. The problem is I can't get it to run based on the following problem:
     - Apparently the "ScriptControl" cannot be loaded
    I am using LabView 8.6, and this vi has been produced in a 8.0 version. Do you think this is the problem? If not, what could cause this problem running this VI?
    Thanks,
    Diogo

    Hi,
    To start I am using this examplo from the google code page.
    <!DOCTYPE html "-//W3C//DTD XHTML 1.0 Strict//EN"
      "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
      <head>
        <meta http-equiv="content-type" content="text/html; charset=utf-8"/>
        <title>Google Maps JavaScript API Example</title>
        <script src="http://maps.google.com/maps?file=api&amp;v=2&amp;key=abcdefg&sensor=true_or_false"
                type="text/javascript"></script>
        <script type="text/javascript">
        function initialize() {
          if (GBrowserIsCompatible()) {
            var map = new GMap2(document.getElementById("map_canvas"));
            map.setCenter(new GLatLng(37.4419, -122.1419), 13);
            map.setUIToDefault();
        </script>
      </head>
      <body onload="initialize()" onunload="GUnload()">
        <div id="map_canvas" style="width: 500px; height: 300px"></div>
      </body>
    </html>  
    It loads a basic map, and is saved in a html file created for example in Notepad. Basically as I said the VI is very simple, see next image.
    But like I said, this strategy does not allow labview to interface dinamically with the javasscript code in the html file. Doing it this way, I would have to constantly update the code in the file with new coordinates and loading the map again. This causes the mentioned flickering problem that I also had with static maps.
    Diogo

  • Problem with apostrophe  in javascript

    Hi all,
    I have a text retrieved from the database.It has apostrophe in it. Since the value is dynamic,i cannot manually use backslash to escape the apostrophe.my javscript coding isnt working if the text contains apostrophe.Help me out to solve the problem.
    Thanks in Advance

    hi,
    I tried with the replace function
    <%String s="yahoo's mail's";
    String s1=s.replaceAll("'","\'");
    System.out.println("---------------------------------------"+s1);
    %>I am replacing"{color:#ff0000} *'*{color} " with "{color:#ff0000} *\'*{color} "
    The expect the output to be yahoo\'s mail\'s.
    But the output is yahoo's mail's.
    I don't the mistake i am making here.Help me out.
    thanks
    Edited by: beginjava on Nov 10, 2008 5:04 AM

  • Problem with loading two Javascript scripts

    I loaded a dreamweaver widget called "twitter client" to pull user info from twitter. Problem is that it will not show up in the browser. I can get it to load and show, but only after I comment out the footer information. The footer is pulled externaly and calls on a Javascript hosted on another server. Here is the code showing the problem. I also loaded it to http://www.tempthirteen.com/template/. I am really at a loss as to what is causing it.
    Thanks so much!!
    Nate

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en" dir="ltr">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <link rel="shortcut icon" href="images/struct/favicon.ico" type="image/x-icon" />
    <title>Your Site Title Here</title>
    <meta name="robots" content="all" />
    <meta name="Copyright" content="(c) Duke University" />
    <meta name="description" content="This is where you can put a description of your organization or your website." />
    <meta name="keywords" content="duke university, duke" />
    <meta content="en-US" name="language"/>
    <link type="text/css" rel="stylesheet" media="all" href="css/screen.css" />
    <link type="text/css" rel="stylesheet" media="print" href="css/print.css" />
    <link rel="stylesheet" href="http://brandbar.oit.duke.edu/header/css/screen-globalHeader-nologo.css" type="text/css" media="Screen" />
    <link rel="stylesheet" href="http://brandbar.oit.duke.edu/footer/footer.css" type="text/css" media="screen" />
    <!--[if lte IE 6]><link rel="stylesheet" href="css/screen-ie6.css" type="text/css" />
    <link rel="stylesheet" href="http://brandbar.oit.duke.edu/footer/footer-ie6.css" type="text/css" /><![endif]-->
    <script src="scripts/jquery.js" type="text/javascript"></script>
    <script src="scripts/twitter_search.js" type="text/javascript"></script>
    <style type="text/css">
    /* BeginOAWidget_Instance_2125523: #twitter */
            #twitter { height: 258px; width: 292px}
    /* EndOAWidget_Instance_2125523 */
    </style>
    <script type="text/xml">
    <!--
    <oa:widgets>
      <oa:widget wid="2125523" binding="#twitter" />
    </oa:widgets>
    -->
    </script>
    </head>
    <body class="shadowBackground">
    <script type="text/javascript" src="http://brandbar.oit.duke.edu/header/bar.html"></script> 
    <div id="pagewrapper" class="home">
        <div id="header">
            <div id="logo">
                <p><a href="http://www.duke.edu" tabindex="1" accesskey="1"><img src="images/struct/logo-print.png" width="141" height="64" alt="Duke University" /></a></p>
                <h1><a href="index.html" rel="home" tabindex="2" accesskey="2">Your Site Title Here</a></h1>
            </div>
            <form action="http://www.duke.edu/search/" method="get" id="search-inBanner" name="duke_search">
            <label for="search-field-banner"><input class="text" id="search-field-banner" name="q" value="Search" tabindex="3" accesskey="3" /></label>
            <button id="search-go-banner" type="submit" tabindex="4" accesskey="4">Go</button>
              </form>
        </div>   
        <div id="wrapper">
        <div id="nav">
            <ul>
                <li><a href="landing.html" tabindex="5" accesskey="5">Nav Link One Here</a></li>
                <li><a href="landing.html" tabindex="6" accesskey="6">Nav Item 2</a></li>
                <li><a href="landing.html" tabindex="7" accesskey="7">Nav 3</a></li>
                <li><a href="landing.html" tabindex="8" accesskey="8">Nav Link Four Goes Here</a></li>
                <li><a href="landing.html" class="last" tabindex="9" accesskey="9">Nav Link 5</a></li>
            </ul>   
        </div>   
        <div id="content">
            <div class="col">
              <div id="twitter"></div>
                <script type="text/javascript">
    // BeginOAWidget_Instance_2125523: #twitter
    $(document).ready(function() {
        $('#twitter').twitterSearch({
            term: 'from%3Adukenews',
            title: '',
            titleLink: 'http://www.twitter.com/dukenews',
            bird: false,                    // true or false (show or hide twitter bird image)
            birdSrc: '/images/tweet.gif',         // twitter bird image
            birdLink: 'http://twitter.com/dreamweaver',        // url that twitter bird image should like to
            avatar: true,                // true or false (show or hide twitter profile images)
            anchors: true,            // true or false (enable embedded links in tweets)
            animOutSpeed: 500,    // speed of animation for top tweet when removed
            animInSpeed: 500,    // speed of scroll animation for moving tweets up
            pause: true,                // true or false (pause on hover)
            time: true,                    // true or false (show or hide the time that the tweet was sent)
            timeout: 4000,            // delay betweet tweet scroll
            css: {
                a:     { textDecoration: 'none', color: '#3B5998', fontWeight: 'normal'},
                container: { backgroundColor: '#eee' },
                frame: { border: '10px solid #33ccff', borderRadius: '10px', '-moz-border-radius': '10px', '-webkit-border-radius': '10px' },
                img:   { width: '30px', height: '30px' },
                loading: { color: '#888' },
                text:  {fontWeight: 'normal', fontSize: '12px', color:'#000'},
                time:  { fontSize: '12px', color: '#CCC' },
                title: { backgroundColor: '#33ccff', padding: '0px 0 0px 0', textAlign: 'center', fontWeight: 'bold', fontSize: '14px'},
                titleLink: { textDecoration: 'none', color: '#3B5998' },
                user:  { fontSize: '12px'},
                fail:  { background: '#6cc5c3 url(/images/failwhale.png) no-repeat 50% 50%'}
    // EndOAWidget_Instance_2125523
                </script>
    <h2> </h2>
                <h2>Header Here</h2>
                <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas commodo mauris ut erat fermentum ultrices. In mauris est, ullamcorper eu molestie eu, semper ut sapien. In eu auctor quam. Etiam gravida lorem sed dolor iaculis vestibulum.</p>
            </div>
            <div class="col">
                <img src="images/placeholder-2.jpg" alt="Placeholder 2" height="214" width="304"  />
                <h2>Header Here</h2>
                <ul>
                    <li><a href="http://www.duke.edu">Link Sample 1</a></li>
                    <li><a href="http://www.duke.edu">Link Sample 2</a></li>
                    <li><a href="http://www.duke.edu">Link Sample 3</a></li>
                    <li><a href="http://www.duke.edu">Link Sample 4</a></li>
                </ul>
            </div>
            <div class="col last">
                <img src="images/placeholder-3.jpg" alt="Placeholder 3" height="214" width="305"  />
                <h2>Contact Us</h2>
                <p>Office of Lorem Ipsum<br />
                30000 Allen Drive<br />
                PO Box 9000<br  />
                Durham, NC 27707</p>
                <p><span class="cat">Phone: </span>919-555-1234<br />
                <span class="cat">Fax: </span>919-555-1234<br />
                <span class="cat">Email: </span><a href="mailto:[email protected]">[email protected]</a></p>
            </div>
        </div>
        </div>
    </div>
    <script src="http://brandbar.oit.duke.edu/footer/videos_podcasts_full.php" type="text/javascript"></script>
    <script type="text/javascript"  src="http://brandbar.oit.duke.edu/header/js/jquery.min.js"></script>
    <script type="text/javascript" src="http://brandbar.oit.duke.edu/header/js/globalHeader.js"></script>
    <script type="text/javascript"  src="http://brandbar.oit.duke.edu/footer/js/footer.js" ></script>
    </body>
    </html>

  • Problem with determining if JavaScript is Enabled

    Can someone explain why this doesn't work:
    <!-- <script><jsp:setProperty name="logIt" property="JSEnabled" value="true" /></script> //-->
    <noscript><jsp:setProperty name="logIt" property="JSEnabled" value="false" /></noscript>
    For your computer, JavaScript is: <small><jsp:getProperty name="logIt" property="JSEnabled" /><small>.
    (This will return a string of either "disabled" or "enabled")
    I always get the value of disabled, whether JavaScript is turned on or off.
    Any help?

    The jsp:setProperty tags are executed before the page is
    rendered in your browser. (Remember, Java runs on the
    serer, not the browser). Since you last setProperty set
    the value to false, this is the value you get.

  • Safari 4.0.3 problems with MS Outlook Web Access

    I am constantly prompted for my password in MS Outlook Web Access since I upgraded to 4.0.3. This was a minimal problem previously; each time I logged in I would have to enter my password a few times and then be done with it. Now, almost any time I click on ANYTHING I am prompted for my password. Checking the box for 'Remember this password in my keychain' has never had any affect. I'm rather computer illiterate, but I'm willing to try any suggestions! Thanks!

    I have a feeling it's a problem with Apple's javascript. I've also posted a thread here showing that it doesn't work properly with javascript if multiple tabs are open.
    This wouldn't be a "fix"... but it might be worth a try to close all other tabs and see if it works when only one tab is open & then try it again with multiple tabs open and see if that breaks it.
    At least then we'll know we've got a pattern here similar to my issue. I have a feeling the only way this'll get fixed is if Apple gets a head's up and fixes it themselves in Safari.

  • Netflix having JavaScript problem with Firefox 7

    FireFox was working fine with 6 before the update to 7 with Netflix, and after the update Netflix no longer plays which Netflix tells me to enable JavaScript which it is with FireFox 7.

    Can you detect any pattern to it, whether related to messages with attachments, or particular advertising on the page, etc.?
    When you have a problem with one particular site, a good "first thing to try" is clearing your Firefox cache and deleting your saved cookies for the site.
    1. Clear Firefox's Cache
    orange Firefox button ''or'' Tools menu > Options > Advanced
    On the Network mini-tab > Offline Storage : "Clear Now"
    2. If needed, delete the site's cookies here
    While viewing a page on the site, right-click and choose View Page Info > Security > "View Cookies"
    (Usually the dialog will refer to live.com rather than hotmail.com, that's normal.)
    Then try reloading the page and logging in again. Does that help?

  • Problems with Photoshop CS2 I originally purchased this software several years ago. At time I was running Microsoft Windows XP. This computer recently was replaced with  a Dell running Windows 8.I reloaded my CS2 on this computer & it ran fine with a few

    Problems with Photoshop CS2
    I originally purchased this software several years ago. At time I was running Microsoft Windows XP.
    This computer recently was replaced with a Dell running Windows 8.I reloaded my CS2 on this computer & it ran fine with a few exceptions as follows;
    when the software comes up initially I get a message that says “could not complete your request because of program error”. Hitting OK allows me to continue using the software .
    When I try to activate a function using CTLR or ALT keys I get this message “required application failed to load and the product cannot continue. Please reinstall the application”. This causes the application to abort.
    Reloading my CS2 continues to generate the same messages when I depress the CTLR or ALT keys.

    Your original copy is obsolete and Adobe is offering a free replacement you are entitled to. Download and use that and that should clear it up for you.
    https://helpx.adobe.com/x-productkb/policy-pricing/creative-suite-2-activation-end-life.ht ml
    Download this copy of CS2 and use the serial number provided next to the download link.

  • TS3694 good evening i have an problem with my iphone 4 the wif and network cant on now if i tray is showing iTunes i tray to reload the ios is showing an error -1 can you help me

    good evening i have an problem with my iphone 4 the wif and network cant on now if i tray is showing iTunes i tray to reload the ios is showing an error -1 can you help me

    No problem, glad to help!
    Update: my PC USB hub was connected to a USB 3 port, I connected the 30 pin cable directly to my PC, And the restore worked just fine. Restored phone from iCloud backup and seems to be working fine.

  • Problem with Javascript in JSP

    Hi Guys,
    I have this problem with my JSP page. I am using a javascript function
    which calls a function within a bean. The problem that I have is that I get an error when trying to call the following function :
    function refDataTypes_onchange()
    Vector empNames = DBQuery.getResult();
    I get a runtime error at the line Vector empNames = DBQuery.getResult;
    Any ideas would be much appreciated.
    Below is the whole code:
    Thanks in advance
    FRank
    <%@ page contentType="text/html;charset=WINDOWS-1252"%>
    <%@ page import="java.util.*, java.lang.*" %>
    <%-- Declare the java bean for the countries to be queried --%>
    <jsp:useBean id="DBQuery" class="DBQuery" scope="page" />
    <%-- Bean property searchCondition is not set to query countries --%>
    <jsp:setProperty name="DBQuery" property="searchCondition" />
    <%
    Vector empNames = DBQuery.getResult();
    %>
    <HTML>
    <BODY BGCOLOR="GREY">
    <SCRIPT LANGUAGE="JavaScript1.1">
    function refDataTypes_onchange()
    Vector empNames = DBQuery.getResult();
    </SCRIPT>
    <FORM NAME = form1>
    Please enter in the following details
    <p>
    Reference Type :::====
    <select name="refDataTypes" onchange="refDataTypes_onchange()">
    <option value ="1"></option>
    <% for(Enumeration enum = empNames.elements();enum.hasMoreElements();)
    String nextEmpName = (String)enum.nextElement();
    %>
    <option value =<%=nextEmpName%>><%=nextEmpName%></option>
    <%
    %>
    </select>
    <BR>
    <BR>
    Emp No
    <INPUT TYPE="text" NAME=txtAge >
    <BR>
    <BR>
    <INPUT TYPE="button" VALUE="Check Details" NAME=butCheckForm >
    </FORM>
    </BODY>
    </HTML>

    Thanks dimadoo
    I need my JSP to do the following :
    When a user selects a option from a select list. There is a textfield which I want to populate based on the option that thas been selected from the list.
    I tried the following :
    <% Vector empNames = DBQuery.getResult(); %>
    and it does not even go into the bean.
    Will this work if I refresh the page?

Maybe you are looking for