Ajax slow on IE7

Hi, I got three cfselects on one page...
<cfselect name="company"
style="width:200px;"></cfselect>
<cfselect name="project" style="width:200px;"
bind="cfc:components.test.getProjects({company})"
bindOnLoad="no"></cfselect>
<cfselect name="activity" style="width:200px;"
bind="cfc:components.test.getActivities({project},{company})"
bindOnLoad="no"></cfselect>
and one <cfgrid> has
bind="cfc:components.test.getData({cfgridpage},{cfgridpagesize},{cfgridsortcolumn},{cfgri dsortdirection},
document.insertForm.date[0].value)".
Everything works very fast in Firefox but is really slow
(unuseable) in IE7. Seems like it's a lag before IE7 posts the
ajax-message to the server.
Any ideas?

Hi
I ran acros similar problems using the FCK-Editor
(integration with <cftextarea richText="true" ... > and the
old fashioned way using the cfc) and have made some tests end of
last week.
First of all: What kind of OS you're running? I'll bet it's
vista (because my problemes occured just with that system).
What I figured out was that the time, IE needs to render the
page respectively to perform all the DOM manipulations, risies
exponentially with the number of nested layout tags, especially
<cflayout ... > / <cflayoutarea ... >. It seems to me
as if the JScript engine (which isn't realy performant anyway),
reaches it's limits in this case...
With the ressources monitor of vista it's no problem to
protocol the CPU-load-peaks (up to 90%) while processing the
FCK-Editor scripts.
Does anyone made similar experiances?

Similar Messages

  • Zooming animation is extremely slow in IE7 and IE8

    Hi,
    version: OracleAS MapViewer Version: Ver1033p5_B080908
    zooming effect is extremely slow in IE7 and IE8 (FF, Safari, Chrome do it fast!)
    thanks,
    Branislav

    I believe you can blame IE's incredibly slow JavaScript engine for this. That's my experience. There's not much the Mapviewer developers can do about that really.
    I had hoped, that IE8 had improved on that, but there hasn't really been any visible differences.
    Jacob

  • I have IE & Firefox on both my laptop and desktop. Why is Firefox so much slower than IE7? Firefox seems to take forever to load pages!

    I have a HP laptop & Dell desktop with IE7 and Firefox. I use Firefox more as I like it better than IE, yet the pages in Firefox load so slow. I thought the new version of Firefox was so much faster, but it seems to drag along and take forever to load pages. Why is this??
    == This happened ==
    Every time Firefox opened
    == 6/17/2010

    Please ask your question on a forum for the Flash Player

  • Ajax problem in IE7 - get.get() is empty

    I am testing Ajax under Mozilla Firefox and IE7. Under Firefox is everything fine but IE7 gives me errors.
    My process is the following:
    declare
    l_counter number;
    l_o_name varchar2(2000);
    begin
    owa_util.mime_header('text/xml', FALSE );
    htp.p('Cache-Control: no-cache');
    htp.p('Pragma: no-cache');
    owa_util.http_header_close;
    htp.prn('<select>');
    htp.prn('<option value="x">x</option>');
    htp.prn('</select>');
    debug.add('ok');
    end;
    debug_add('ok') adds text 'ok' into debugging table. I can see that this info is being inserted into the table, so the process runs through.
    My JavaScript is in ApEx page attributes "HTML header" section and is like the following:
    <script type="text/javascript">
    function get_AJAX_SELECT_XML(pThis,pSelect){
         var l_Return = null;
         var l_Select = html_GetElement(pSelect);
         var get = new htmldb_Get(null,html_GetElement('pFlowId').value,'APPLICATION_PROCESS=my_proc',0);
         get.add('GTEST',pThis.value);
    alert(get.get());
         gReturn = get.get('XML');
         if(gReturn && l_Select){
    alert('Never here in IE7');
              var l_Count = gReturn.getElementsByTagName("option").length;
              l_Select.length = 0;
              for(var i=0;i<l_Count;i++){
                   var l_Opt_Xml = gReturn.getElementsByTagName("option");
                   appendToSelect(l_Select, l_Opt_Xml.getAttribute('value'), l_Opt_Xml.firstChild.nodeValue)
         get = null;
    function appendToSelect(pSelect, pValue, pContent) {
    var l_Opt = document.createElement("option");
    l_Opt.value = pValue;
         if(document.all){/* why is ie different ask bill */
              pSelect.options.add(l_Opt);
              l_Opt.innerText = pContent;
         }else{
              l_Opt.appendChild(document.createTextNode(pContent));
              pSelect.appendChild(l_Opt);
    </script>
    alert(get.get()); gives me popup with text "undefined" in IE.
    So "if(gReturn && l_Select)" will never become true.
    I call it in an item:
    onchange="get_AJAX_SELECT_XML(this,'P3201_XXX')"
    In Mozilla 2.0.0.7 everything works, i can get correct answer from get.get() and the list is being filled with "x".

    Hi,
    I'm having a sporatic problem.
    Where do you put the encoding?
    Content-type: text/xml; charset=UTF-8
    Cache-Control: no-cache
    Pragma: no-cache
    <?xml version="1.0" encoding="UTF-8"?>
    I have the following in my ODP function
    owa_util.mime_header('text/xml', FALSE );
    htp.p('Cache-Control: no-cache');
    htp.p('Pragma: no-cache');
    owa_util.http_header_close;
    then I start my select list:
         htp.prn('<select>');
         htp.prn(ls_default);
    and a loop to build the option code

  • Potential fix to slowness in IE7 / Vista?

    Hello.
    Someone brought this to my attention. A page created with iWeb (not sure of version) was taking forever to load in IE7 on Vista. The server seemed to come back, but an excessive amount of javascript running onLoad was causing IE to hang.
    I noticed a topic posted here: http://discussions.apple.com/thread.jspa?threadID=1084667 ... and I was going to post my findings there, but for some reason, the topic is both unanswered and archived... seemingly still valid, 3 years later.
    Anyway, at around line 332-343 of iWebSite.js (again, not sure of the version it was created with -- the line numbers might vary for different versions?) a function, fixAllIEPNGs, exists that takes each image with a PNG extension and applies the AlphaImageLoader css filter to get transparency working.
    AlphaImageLoader is only required for earlier versions of IE (between 5.5 - 6.0 if I recall correctly) and is PAINFULLY slow... Normally it takes a couple thousand GIF/JPG on a page before you notice any lag, but with the alpha image loader, it takes only a half dozen or so before things slow to a crawl.
    Thing is, the function runs for all versions of IE, where it really only needs to be applied to versions < 7. So... the suggested, completely untested, fix I provided to my friend (I should have prefaced saying I don't actually own a Mac, nor have I ever used iWeb) was to make a revisions to iWebSite.js, line 333:
    replace: {detectBrowser();if(windowsInternetExplorer)
    with : {if( shouldApplyCSSBackgroundPNGFix() )
    That function is used in a different section and checks for IE<7. Applying this fix should speed things up in newer versions of IE and for those fools still using archaic versions of IE, they'll still get transparency on the PNG files.
    Um... enjoy!

    Nice post, thanks!

  • First Ajax request really slow with Generator

    Doing simple Html panel <-> Generator plugin communication and noticed a strange issue with first Ajax call being much slower than the rest. I.e. in panel javascript the first Ajax call duration is 2000ms+ the first time and then consistently ~5ms every time. On the generator plugin side durations are <2ms every time.
    I guess this could be just Chrome initializing some code, but still seems really high. Not the end of the world, but annoying anyhow. Anyone hit similar issues or any other ideas?
    Generator code
    _server = require("http").createServer(onServerRequest)
    _server.listen(8080)
    function onServerRequest (request, response) {
    var start = new Date().getTime()
    console.log("duration=" + (new Date().getTime()-start))
    Panel javascript:
    window._ajax_start = new Date().getTime()
    $.ajax({ url: "http://127.0.0.1:8080/service", async: true })
      .fail(function (jqXHR, msg) { alert("service failed! message=" + msg) })
      .done(function (data) { updateData(data) })
    function updateData(data)
    alert("duration =" + (new Date().getTime()-window._ajax_start))

    Might be Chrome/panel init delay. If you keep Photoshop&panel open and kill & restart Generator, there is no delay. But if Generator is running, closing & opening panel gives the delay every time. In any case panel side seems to be "guilty".

  • Major performance issue: AIR browser is slow to load AJAX app & kills CPU

    Hello,
    This issue for so long. I tried to submit a ticket that was erased.
    Here's someone else talking about that topic: http://forums.adobe.com/message/3896291#3896291
    My question - Is there a solution ahead or I have to wait patiently that all my clients uninstall the application?

    The bug referenced in that thread, AIR browser is slow to load AJAX app, is still open/to track.  Based off the notes from Jian on Nov 6th, we've been able to reproduce the issue but it does not have enough votes to qualify for our current releases.  We need additional users to cast their votes that this is impacting their applications. 
    There is a note on November 11th, that suggests that removing inset box shadows can resolve this issue in some cases.  This is most likely similar to other known bugs where -webkit-box-shadow impacts performance on Windows.  All cases have been deferred at this time as the solution is not trivial to address (I've personally entered this bug at least twice.)
    Chris

  • Spry Framework Ajax IE7 Bug

    Hi,
    I used Dreamweaver CS3 to load the photo/albums node of an
    XML file called photolist.xml - the end result after creating Spry
    Master and Detail areas is a page which lets you click on the text
    to change the image. Trouble is it works in all browsers except
    IE7. I get a massive red error message saying "Exception caught
    while loading photolist.xml: [object Error]." Help! How do I get
    working in IE7 too?
    Script below - Widget
    <html xmlns:spry="
    http://ns.adobe.com/spry">
    <title>My Spry Widgets Tutorial</title>
    <!-- -->
    <script src="SpryAssets/xpath.js"
    type="text/javascript"></script>
    <script src="SpryAssets/SpryData.js"
    type="text/javascript"></script>
    <script src="SpryAssets/SpryMenuBar.js"
    type="text/javascript"></script>
    <script type="text/javascript">
    <!--
    var photoalbum = new Spry.Data.XMLDataSet("photolist.xml",
    "album/photo");
    //-->
    </script>
    <link href="SpryAssets/SpryMenuBarHorizontal.css"
    rel="stylesheet" type="text/css">
    <head>
    <meta name="Description" content="">
    <meta name="keywords" content="">
    <meta name="DC.Creator" content="Petra Jones">
    <link rel="stylesheet" href="style.css"
    type="text/css">
    </head>
    <body>
    <div id="container">
    <div id="banner">
    Doctor Spry's
    </div>
    <div id="subhead">
    Nature Photography
    </div>
    <div id="subspacer">
    <ul id="MenuBar1" class="MenuBarHorizontal">
    <li><a class="MenuBarItemSubmenu"
    href="#">Wildlife</a>
    <ul>
    <li><a href="#">Forest
    Animals</a></li>
    <li><a href="#">Domestic
    Pets</a></li>
    <li><a href="#">Item 1.3</a></li>
    </ul>
    </li>
    <li><a href="#">Landscape</a></li>
    <li><a class="MenuBarItemSubmenu"
    href="#">Pets</a>
    <ul>
    <li><a class="MenuBarItemSubmenu" href="#">Item
    3.1</a>
    <ul>
    <li><a href="#">Item 3.1.1</a></li>
    <li><a href="#">Item 3.1.2</a></li>
    </ul>
    </li>
    <li><a href="#">Item 3.2</a></li>
    <li><a href="#">Item 3.3</a></li>
    </ul>
    </li>
    <li><a href="#">Portraits</a></li>
    <li><a href="#">Action</a></li>
    </ul>
    </div>
    <!-- Left Column Borders -->
    <div id="leftborder1"></div>
    <div id="leftborder2"></div>
    <div id="leftborder3"></div>
    <div id="leftborder4"></div>
    <div id="leftborder5"></div>
    <!-- Left Column Borders End -->
    <!-- Left Panels start -->
    <div id="left">
    </div>
    <div id="nav">
    <a href="gallery.html" class="nav">Gallery
    Shop</a><p/>
    <a href="comm.html"
    class="nav">Commissions</a><p/>
    <a href="buying.html" class="nav">Buying
    Art</a><p/>
    <a href="contct.html" class="nav">Contact
    Me</a><p/>
    <a href="about.html" class="nav">About
    Me</a><p/>
    <a href="index.html" class="nav"
    target="_top">Home</a><p/>
    </div>
    <!-- Left Panels end -->
    <!-- Center Panels start -->
    <div id="centre">
    </div>
    <div id="centrehead">
    </div>
    <div spry:region="photoalbum">
    <div id="centrecontent">
    <table>
    <tr>
    <th>Subject</th>
    <th>Album</th>
    <th>Date</th>
    <th>Type</th>
    </tr>
    <tr spry:repeat="photoalbum" spry:setrow="photoalbum">
    <td>{subject}</td>
    <td>{album}</td>
    <td>{date}</td>
    <td>{type}</td>
    </tr>
    </table>
    </div>
    </div>
    <div id="centremiddle">
    </div>
    <div id="centrelower">
    <div spry:detailregion="photoalbum">
    <div id="lowertext">
    <p><img src="{imageurl}" border="0" alt="image
    placeholder"> </p>
    <p> </p>
    </div>
    </div>
    </div>
    <div id="centrefoot">
    </div>
    <!-- Centre Panels end -->
    <div id="right">
    <div id="righttext">
    </div>
    </div>
    <!-- Right Column Borders -->
    <div id="rightborder1"></div>
    <div id="rightborder2"></div>
    <div id="rightborder3"></div>
    <div id="rightborder4"></div>
    <div id="rightborder5"></div>
    <!-- Right Column Borders End -->
    <!-- Footers start -->
    <div id="footspace">
    </div>
    <div id="footer">
    (c) Petra Jones (2007) Please note this is an entirely
    fictional photography business.<br>
    Any
    resemblence between me and a real talented photographer is
    very unlikely.
    </div>
    </div>
    <script type="text/javascript">
    <!--
    var MenuBar1 = new Spry.Widget.MenuBar("MenuBar1",
    {imgDown:"SpryAssets/SpryMenuBarDownHover.gif",
    imgRight:"SpryAssets/SpryMenuBarRightHover.gif"});
    //-->
    </script>
    </body>
    </html>

    Hi John,
    That error is thrown in 2 specific cases:
    1. A spry:region/spry:detailregion attribute has no data set
    specified.
    or
    2. A spry:region/spry:detailregion attribute lists the name
    of a data set, but that object does not exist.
    Are you delaying the creation of your data sets until some
    event has occured? It's hard to tell exactly what is going on
    without seeing the context.
    --== Kin ==--

  • Jp2ssv.dll slows down new tabs with IE7/Vista

    java version "1.6.0_11"
    Java(TM) SE Runtime Environment (build 1.6.0_11-b03)
    Java HotSpot(TM) Client VM (build 11.0-b16, mixed mode, sharing)
    IE7/Vista Home Basic (SP1, ITA, x86) all fully updated.
    If the ActiveX plugin for IE7 named 'Java (tm) Plug-In 2 SSV Helper' (jp2ssv.dll) is enabled, IE7 takes 3-4 seconds to open every new tab. A very boring delay.
    If I disable that ActiveX control only, everything works fine at the expected speed, both Java web-based pages and IE7.
    What's this ActiveX for? And why it causes long 3-4 secs delay when enabled?

    kelbers wrote:
    Do you have a bug tracking number ?No, I just received an email with:
    Dear Java Developer,
    Thank you for your interest in improving the quality of Java Technology.
    Your report has been assigned an internal review ID of 1409949, which is NOT visible on the Sun Developer Network (SDN).
    Please be aware that the large volume of reports we receive sometimes prevents us from responding individually to each message.
    If the information is determined to be a new Bug or RFE, or a duplicate of a known Bug or RFE, you will receive a followup email containing a seven digit bug number.  You may search for, view, or vote for this bug in the Bug Database at http://bugs.sun.com/.
    ...waiting for the followup I've never seen :(

  • AIR browser is slow to load AJAX app & kills CPU

    We have an AIR app, which mostly provides an AIR browser wrapper for our Web app.  The Web app consists of AJAX and embedded Flash.  The performance difference of the AIR browser versus a typical browser (Firefox, Chrome, etc.) is huge!  To compare Wep apps performance:
    Chrome
    CPU: 30%
    RAM: 250 MB
    Page load: 2 seconds
    AIR Browser:  (Using latest version of AIR runtime) 
    CPU: >90%
    RAM: 120 MB   (Why so low?)
    Page load: 5-10 secons
    How can this be tuned?  Is there a reason that the AIR browser doesn't use as much RAM?  Is there a reason that it's using more CPU?  Are the two related?
    Thanks!

    bradledford2 -
    Just like you, an HTML/Javascript commercial Adobe AIR 3.0 app I'm currently developing for a client is SO SLOOWWW on both my Windows 7 (64 bit, 12G RAM) and Windows XP (32 bit, 4G RAM) machines, especially Mouseover, Mouseout and Click events on event-handled hyperlinks and buttons. Generally, the UI is so unresponsive it takes about a second or more for the above mouse events' handlers to fire.
    I tried both event-handling (listener) and event delegation (which is supposed to be faster in managing a bigger number of elements) implementations for the target elements (about 400 links on a table grid), but it made very little difference on the performance on Windows 7 and XP.
    I also tried packaging the app using the old 2.7.1 SDK, but it didn't make any difference.
    BUT..
    Lo and behold, the same app performs very well on my Mac OS X 10.6.8, and the Mouseover, Mouseout and Click event handlers fire instantly (whether it is via the event-handler or event-delegation implementation). So, no performance problem on the Mac!
    Chris Campbell is pinging the right people at Adobe. I'm desperate to get advice from them on a temporarily solution to the problem while they try to fix it.
    Oscar

  • Slow AJAX Response Time

    Greetings,
    I have an application that uses AJAX a lot to populate related page items. For example, to populate a list of models based on the model year selected. Usually, the process is relatively fast (2-3 seconds). But, I just coded up another use of AJAX and when I select the page item that fires the AJAX process it takes 1 min 40 seconds to finish. This code also does the model year/model aspect. A person selects a model year from a list, then AJAX is used to populate the models for that year.
    It looks like the problem is the size of the table I'm accessing. It has 17,000+ rows in it. It contains rows of model year/model data from 1987 to present. I've tried a few things to try and speed it up, but nothing works.
    Also, it only 'freezes' when the first year is selected. After that it builds the model list in about 2-3 seconds. Not bad, considering some years have hundreds of models.
    Do you have any suggestions on how to speed the process up? I'll be glad to supply code snippets if that helps.
    Thanks, Tony

    Hi Denes,
    What I am doing is relatively straightforward. There is a table PLP_MODEL_PRODUCT_LINE that contains Model Years and Models. I have 2 page items which reference those columns. I have the user first select a Model Year, then AJAX builds the list of Models for the selected Model Year. That way the Model Year and Model selected are valid. There are 17,000+ rows in the table. It contains years from 1987 to 2010. Some years contains hundreds of models. When a Model Year is first selected the page 'hangs' for about 90 seconds. Then, after the initial selection I can select different Model Years and the process is relatively fast, 1-2 seconds.
    Below is my code...
    - - Table PLP_MODEL_PRODUCT_LINE - -
    it contains several columns 2 of which are used by my processes - MODEL_YEAR and MODEL
    - - In HTML Form Element Attributes section of P55_YEAR page item - -
    onchange="get_model_list_product_line_xml(this,'P55_MODEL')"
    - - LOV code of P55_YEAR page item - -
    select unique MODEL_YEAR display_value, MODEL_YEAR return_value
    from PLP_MODEL_PRODUCT_LINE order by MODEL_YEAR
    - - LOV code of P55_MODEL page item - -
    select distinct MODEL display_value, MODEL return_value
    from PLP_MODEL_PRODUCT_LINE
    - - APPLICATION ITEM - - Used to store the value of the Model Year selected and share between routines.
    MODEL_YEAR_ITEM_1
    - - HTML HEADER - -
    function get_model_list_product_line_xml(pThis,pSelect){
    var l_Return = null;
    var l_Select = html_GetElement(pSelect);
    var get = new htmldb_Get(null,html_GetElement('pFlowId').value,
    'APPLICATION_PROCESS=GET_MODEL_LIST_PRODUCT_LINE',0);
    get.add('MODEL_YEAR_ITEM_1',pThis.value);
    gReturn = get.get('XML');
    if(gReturn && l_Select){
    var l_Count = gReturn.getElementsByTagName("option").length;
    l_Select.length = 0;
    for(var i=0;i<l_Count;i++){
    var l_Opt_Xml = gReturn.getElementsByTagName("option");
    appendToSelect(l_Select, l_Opt_Xml.getAttribute('value'),
    l_Opt_Xml.firstChild.nodeValue)
    get = null;
    - - APPLICATION PROCESS - - (named GET_MODEL_LIST_PRODUCT_LINE)
    BEGIN
    OWA_UTIL.mime_header ('text/xml', FALSE);
    HTP.p ('Cache-Control: no-cache');
    HTP.p ('Pragma: no-cache');
    OWA_UTIL.http_header_close;
    HTP.prn ('<select>');
    HTP.prn ('<option value="' || '0' || '">' || '-Select-' || '</option>');
    FOR c IN (SELECT DISTINCT MODEL
    FROM PLP_MODEL_PRODUCT_LINE
    WHERE MODEL_YEAR =
    CASE
    WHEN :MODEL_YEAR_ITEM_1 = '0'
    THEN MODEL_YEAR
    ELSE TO_NUMBER(:MODEL_YEAR_ITEM_1)
    END
    ORDER BY MODEL
    LOOP
    HTP.prn ('<option value="' || c.MODEL || '">' || c.MODEL || '</option>');
    END LOOP;
    HTP.prn ('</select>');
    END;

  • With FF6 &plugin updates, incl JavaSE6&FlashPlayer11, some Flash loops,see#1, hang when loading. Doesn't happen n my IE7 w/ Flash9. Also,various whole web pages r very slow to open,#2. Same w/ FF7, even FF8 hoping for a fix there!Tried everything,HELP!

    1)http://radar.weather.gov/radar.php?product=N0R&rid=FWS&loop=yes<br />
    2)http://www.adobe.com/software/flash/about/<br />
    3)My DSL bandwidth & speed are very adequate.<br />
    4)By the way, your silly Submit Feedback button in your silly "Firefox Made Me Sad" page didn't work either. That's why I registered to try using this "Ask a New Question" page. Am I optimistic about getting a real, working answer to my problem? Are you in your frantic haste to keep up with Google Chrome with your [not too wonderful] Rapid Releases so busy that you can't keep up with your faithful users problems? Time and you will soon tell by your answer!
    Don't drive me back to IE, PLEASE!

    1)http://radar.weather.gov/radar.php?product=N0R&rid=FWS&loop=yes<br />
    2)http://www.adobe.com/software/flash/about/<br />
    3)My DSL bandwidth & speed are very adequate.<br />
    4)By the way, your silly Submit Feedback button in your silly "Firefox Made Me Sad" page didn't work either. That's why I registered to try using this "Ask a New Question" page. Am I optimistic about getting a real, working answer to my problem? Are you in your frantic haste to keep up with Google Chrome with your [not too wonderful] Rapid Releases so busy that you can't keep up with your faithful users problems? Time and you will soon tell by your answer!
    Don't drive me back to IE, PLEASE!

  • Use of Ajax to update a particular div in my code....using columnchart

    Hi All,
    I am having two columncharts, say columnChart1 and columnChart2.
    I want to display the columnChart2 in the place of columnChart1 when I select one particluar checkbox.
    I tried to implement and i reached here, "I am able to modify the existing graph with text and numeric but if i tried to put the new graph, i am getting the attached screen"...
    Here is my part of code where i am trying to update the graph,
    var oCB=new sap.ui.commons.CheckBox("compare",
      text:"Compare with Previous Year",
      checked : false,
      change : function() {
      if(oCB.getChecked()){
      alert('YES');
      //postRequest(oBarChart1);
      loadXMLDoc();
      else{
      alert('NO')
    function loadXMLDoc()
      var arun=10;
      alert("arundj");
    var xmlhttp;
    if (window.XMLHttpRequest)
      {// code for IE7+, Firefox, Chrome, Opera, Safari
      xmlhttp=new XMLHttpRequest();
    else
      {// code for IE6, IE5
      xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
    xmlhttp.onreadystatechange=function()
      alert("justoutside");
      if (xmlhttp.readyState==4 && xmlhttp.status==200)
       alert("inside");
        document.getElementById("oColumnChart").innerHTML=oColumnChart1;
    xmlhttp.open("GET","",true);
    xmlhttp.send();
    there is no issue with the charts both are fine if I try to draw them separately. How to do this?
    Regards,
    Arun

    Hi Arun,
    If you would like to just change the content of the chart than I would recommend below solution.
    This way you don't have to worry about AJAX calls and UI takes care of them.
    var oModel = new sap.ui.model.json.JSONModel({
    data : [ {
    country : 'France',
    product : 'quadcopter',
    sales : 34
    country : 'USA',
    product : 'quadcopter',
    sales : 40
    country : 'China',
    product : 'tricopter',
    sales : 65
    country : 'France',
    product : 'tricopter',
    sales : 10
    country : 'China',
    product : 'quadcopter',
    sales : 50
    country : 'Germany',
    product : 'tricopter',
    sales : 15
    country : 'USA',
    product : 'tricopter',
    sales : 22
    country : 'USA',
    product : 'heli',
    sales : 96
    country : 'China',
    product : 'airplane',
    sales : 86
    country : 'France',
    product : 'airplane',
    sales : 76
    country : 'Germany',
    product : 'airplane',
    sales : 58
    country : 'USA',
    product : 'airplane',
    sales : 96
    country : 'China',
    product : 'heli',
    sales : 26
    country : 'France',
    product : 'heli',
    sales : 71
    country : 'Germany',
    product : 'heli',
    sales : 76
    data_new : [ {
    quantity : '10',
    product : 'quadcopter',
    sales : 34
    quantity : '16',
    product : 'quadcopter',
    sales : 40
    quantity : '20',
    product : 'tricopter',
    sales : 65
    quantity : '86',
    product : 'tricopter',
    sales : 10
    quantity : '91',
    product : 'quadcopter',
    sales : 50
    quantity : '45',
    product : 'tricopter',
    sales : 15
    quantity : '70',
    product : 'tricopter',
    sales : 22
    quantity : '37',
    product : 'heli',
    sales : 96
    quantity : '55',
    product : 'airplane',
    sales : 86
    quantity : '29',
    product : 'airplane',
    sales : 76
    quantity : '68',
    product : 'airplane',
    sales : 58
    quantity : '79',
    product : 'airplane',
    sales : 96
    quantity : '81',
    product : 'heli',
    sales : 26
    quantity : '69',
    product : 'heli',
    sales : 71
    quantity : '87',
    product : 'heli',
    sales : 76
    sap.ui.getCore().setModel(oModel);
    var dataset = new sap.viz.ui5.data.FlattenedDataset({
    dimensions : [ {
    axis : 1,
    name : 'Country',
    value : "{country}"
    axis : 2,
    name : 'Product',
    value : "{product}"
    measures : [ {
    name : 'Sales',
    value : '{sales}'
    data : {
    path : "/data"
    var dataset_new = new sap.viz.ui5.data.FlattenedDataset({
    dimensions : [ {
    axis : 1,
    name : 'product',
    value : "{product}"
    axis : 2,
    name : 'quantity',
    value : "{quantity}"
    measures : [ {
    name : 'Sales',
    value : '{sales}'
    data : {
    path : "/data_new"
    var oChart = new sap.viz.ui5.StackedColumn("chart", {
    width : "100%",
    height : "200px",
    title : {
    visible : true,
    text : 'Test Stacked Column Chart'
    var oCB = new sap.ui.commons.CheckBox("compare", {
    text : "Compare with Previous Year",
    checked : false,
    change : function() {
    if (oCB.getChecked()) {
    oChart.destroyDataset(dataset);
    oChart.setDataset(dataset_new);
    oChart.rerender();
    } else {
    oChart.destroyDataset(dataset_new);
    oChart.setDataset(dataset);
    oChart.rerender();

  • How do I send "unlimited" text in a parameter using "POST" in Ajax

    I'm trying to send large amounts of text data to the server using POST rather than GET, using Ajax
    However, I am only able to send a max of 9.76 kb
    I start with a jsp page, which calls a javascript method that utilises Ajax, which sends the text in a parameter in a XMLHttpRequest object
    to a servlet. The text is derived from options values in a multi select combo box.
    Here's my code:
    Code snippet from .jsp page:
            <table>
            <form name="form1" id="form1" method="POST">
               <tr>
                  <td>
                 <select name="sel" id="sel" multiple="multiple" size="0"></select>
              </td>
              <td>
                 <input type="button" id="sendOpts" name="sendOpts" value="Send Options" onClick="jsObj.sendOpts()">
              </td>
              </tr>
           </form>
           </table>Code snippet from jsObj.js file:
    //=================================================
    // jsObj object
    //=================================================
    jsObj = new jsObj();
    function jsObj() {
         this.sendOpts = function() {
              if(!confirm('Send Option Values?'))
                   return;
              if (window.XMLHttpRequest) { // code for IE7+, Firefox, Chrome, Opera, Safari
                   xmlhttp=new XMLHttpRequest();
              } else { // code for IE6, IE5
                   xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
              xmlhttp.onreadystatechange=function() {
                   if(xmlhttp.readyState==4) { // 4 = The request is complete
                        if (xmlhttp.status==200 || window.location.href.indexOf("http")==-1) {
                             alert(xmlhttp.responseText); // When I copy and paste all the text from this alert to text editor and save the file, the largest the file can be is 9.76 kb.
              var url = 'testSize'; // Servlet that simply retrieves the sent String in a parameter and sends it back to this method
              var sel = document.getElementById('sel');
              var str = sel.name + '=';
              var delim = ':';
              for(var i = 0; i < sel.length; i++) {
                   str += encodeURIComponent(sel.options.value + delim); // 'encodeURIComponent' encodes any special characters within the parameter values
              xmlhttp.open("POST",url,true);
              xmlhttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); // This is needed for any POST request made via Ajax
              xmlhttp.send(str); // send the parameter and it's value to the servlet
    }Code snippet from 'testSize' servlet:package test;
    import java.io.IOException;
    import java.io.PrintWriter;
    import javax.servlet.ServletException;
    import javax.servlet.http.HttpServlet;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    import java.util.*;
    public class TestSize extends HttpServlet {
         public synchronized void doGet(HttpServletRequest request,
              HttpServletResponse response) throws ServletException,IOException {
              PrintWriter out = null;
              try {
                   response.setContentType("text/html");
              out = response.getWriter();
                   String str = request.getParameter("sel");
                   str = str.substring(0, str.length()-1); // cut off last delimiter
                   out.println(str);
                   } catch (Exception e) {
         public synchronized void doPost(HttpServletRequest request,
              HttpServletResponse response) throws ServletException, IOException {
              doGet(request, response);
    }Any help greatly appreciated.
    Edited by: Irish_Fred on Feb 25, 2010 5:14 AM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    Yes, I tried that.
    I set the "ACTION" of the form to the servlet and then used the form.submit() method to POST the text to the servlet.
    i.e.: I selected many options in the select combo, concatenated them to one string, set the 'value' property of a form text field to
    this string, did a 'form.submit()' to the servlet and I was able to send a much larger amount of text.
    ( The .txt file I saved from the resulting text equaled about 30 kb in size, so obviously I can send much more
    data this way. )
    However, I want to use Ajax, so I don't have to reload the page. I 'borrowed' the Ajax part of the code from a website:
    http://www.javascriptkit.com/dhtmltutors/ajaxgetpost2.shtml
    and I presumed that because the author used "POST" as opposed to "GET", I would be able to send larger
    chunks of data. Obviously not, or there's another reason for the limit of data I can send using my present code,
    which I'm not seeing. I'm fairly new to jsp, Ajax & Servlets, so this is no surprise.
    If anyone can point out to me where I'm going wrong, I'd greatly appreciate it. Cheers.

  • Fix For Slow Safari On Windows

    A number of people reported that Safari was running very slow for them on Windows. I was someone who was also seeing the same behavior. Web pages that would open up in 2 seconds under IE7 could take literally minutes to fully draw in Safari.
    Someone mentioned a proxy issue in one of the other threads, and I got to thinking about that...I made a tiny change, and the problem is gone! Safari is now full steam ahead for me, compared to the snail is was before.
    Here is how I fixed the issue.
    1 - Click Start and open the Control Panel.
    2 - Open the "Internet Options" Control Panel.
    3 - Click the "Connections" tab at the top.
    4 - Click the "LAN Settings" button at the bottom.
    5 - Uncheck the "Automatically Detect Settings" Box.
    6 - Click OK to exit the "LAN Settings" window.
    7 - Click OK to exit the "Internet Options" window.
    Your mileage may vary, but this really did work for me. Nothing else I had tried (clearing the cache, re-installing, etc.) made a difference...but this did. Not sure why it's not affecting everyone, but this doesn't seem to have any negative side effects. IE7 is still working fine for me with the "Automatically Detect" box unchecked.
    Enjoy!
    -- Matthew Ryan

    A number of people reported that Safari was running
    very slow for them on Windows. I was someone who was
    also seeing the same behavior. Web pages that would
    open up in 2 seconds under IE7 could take literally
    minutes to fully draw in Safari.
    Your mileage may vary, but this really did work for
    me. Nothing else I had tried (clearing the cache,
    re-installing, etc.) made a difference...but this
    did. Not sure why it's not affecting everyone, but
    this doesn't seem to have any negative side effects.
    IE7 is still working fine for me with the
    "Automatically Detect" box unchecked.
    Please, report this bug to Radar: http://bugreport.apple.com It's important to notice Apple developers about this issue

Maybe you are looking for

  • System-wide crashes, WoW at center

    I was playing a Strand of the Ancients last night when WoW suddenly crashed. No new addons; the application had been stable for weeks or months. When WoW crashed, other programs I was running (Firefox, Word, etc) also crashed. I restarted and tried t

  • Differences between TOAD for Oracle and Oracle SQL Developer?

    Does someone know the advantages and disadvantages of using TOAD for Oracle and Oracle SQL Developer? I work making reports with TOAD, but in a few days I will have to use the SQL Developer (because it´s free) unless I justify the necessity of using

  • SQL loader Field in data file exceeds maximum length for CLOB column

    Hi all I'm loading data from text file separated by TAB and i got the error below for some lines. Event the column is CLOB data type is there a limitation of the size of a CLOB data type. The error is: Record 74: Rejected - Error on table _TEMP, colu

  • Can't play .amr files (MMS audio) after upgrading to iOS4

    I was able to play .amr files (MMS audio) prior to upgrading to iOS4 on my iPhone 3G but now get a notice saying this file type is not supported. Does anyone know how I can play these files on my phone again? Thanks!

  • Get memory location....need help

    I download XSQL servle and set it up already. Now I try the "Adhoc Query Visualization" from my own database, but if I query from a view or from a object type is varchar2 then I will get the memory location. I tried the same example from OTN live dem