Ajax related...

I have a project,that will be formed by ajax technology,so i want to know which ajax framework will be suited to eclipse...

Versa1982 wrote:
I have a project,that will be formed by ajax technology,so i want to know which ajax framework will be suited to eclipse...Sorry but this isn't the correct forum, and you shouldn't chose framework based on the IDE that you are using.
Kaj

Similar Messages

  • How to pass many variables to servlet using a URL? Ajax related.

    I have 100 text boxes in my JSP and want to pass the values stored in these text boxes to a servlet with out the need for submitting the entire page using AJAX frame work.
    I know how to peform the above in ajax if I have only 1 textbox. But how can I do that with 100 text boxes. I don't want to build a huge URL with 100 parameters.
    I am thinking may be create an array and send it to the servlet, but don't have an idea if we can do it.
    Please help me .

    You can make a POST request using an XMLHttpRequest, but you won't be "passing many variables using a URL", which seems to be one of your requirements, and which makes your question confounding(after all how do you pass many variables using a URL without putting many variables in the URL):
    req.open("POST", url, true)
    req.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');     
    req.send("first=Eric&last=Kaiser");

  • Dynamic location - an Ajax related question

    Having a dynamic list of article on a JSP, I want all comments of an article only displayed when a user click a URL of the article. I have made all comments of one article shown after a list of articles on the bottom of the page. I want to them appeared right under the article instead. The difficulty I have is that I don't know how to make the Ajax response display DIV block dynamic inserted right under the article.
    A code segment of my JSP file:
    <c:forEach var="entry" items="${model.articlest}">
    </c:forEach>
    <br/>
    <blockquote><div id="comments"></div></blockquote>
      A code segment of my Ajax code:
         function handleCommentRetrieve() {
              if (searchReq.readyState == 4) {
                   var ss = document.getElementById('comments')
                   ss.innerHTML = searchReq.responseText.split("\n");
         }      Any suggestions?
    Thanks very much in advance.
    [Recommend and review web sites|http://homepage.kgbinternet.com] - a fresh approach of building an open source, useful, and dynamic web site directory
    Edited by: vwuvancouver on Apr 17, 2009 9:10 AM

    vwuvancouver wrote:
    Having a dynamic list of article on a JSP, I want all comments of an article only displayed when a user click a URL of the article. I have made all comments of one article shown after a list of articles on the bottom of the page. I want to them appeared right under the article instead. The difficulty I have is that I don't know how to make the Ajax response display DIV block dynamic inserted right under the article.
    A code segment of my JSP file:
    <c:forEach var="entry" items="${model.articlest}">
    </c:forEach>
    <br/>
    <blockquote><div id="comments"></div></blockquote>A code segment of my Ajax code:
         function handleCommentRetrieve() {
              if (searchReq.readyState == 4) {
                   var ss = document.getElementById('comments')
                   ss.innerHTML = searchReq.responseText.split("\n");
         }      Any suggestions?
    I'm blocking your post since it contains an unrelated link signature.

  • New Ajax-related tags and CF Mappings

    We have an application that is used by multiple clients but has a shared codebase. The way this works is that client's web site gets a virtual directory set up to the application's web root in IIS, so they'd each get www.mycompany.com/neatApp/ where /neatApp is a single directory that issues various calls to CFCs for page layouts. Within the CFC that handles the page layout is a single <cfinclude> who 'template' argument is passed from the file in /neatApp, and which exists in the 'codebase' directory - the real guts of the app. The /codebase directory is not a virtual directory under IIS but is set up as a Coldfusion mapping (i.e. /codebase points to c:\blahblahblah\codebase\).
    <cfinclude> properly looks for a coldfusion mapping and this has served us well for a while.
    We're now updating parts of the app to use some of the swanky new CF8 pieces, and the biggest problem we've encountered so far is that, when using things like <cflayout> with a 'source' attribute, or a <cfdiv>, they seem to disregard the CF server mappings - while <cfinclude> will find a file located in /codebase/someDirectory/myfile.cfm, a form action of that same URL in a cflayout tab or in a cfdiv will come up with a file not found: /codebase/someDirectory/myfile.cfm.
    I'm sure this must be covered somewhere but none of the search terms I could divine seemed to illuminate the subject any. We've got things working just by putting the code we need in the IIS-mapped /neatApp virtual directory, but that sort of defeats the purpose of having all the secure code in a different place that isn't exposed to the public web.
    Any tips?
    Thanks,
    Aq

    try using this
    response.getWriter().write(cityListSize);
    response.getWriter().close();

  • CF9.01 AJAX errors

    We are trying to upgrade from CF8 to CF9 but some of our AJAX related code is failing intermittently. This code works fine in CF8.  Any insights would be greatly appreciated.
    Old Environment
    CF8.01 (including cumulative hotfix 4)
    Windows 2003 R2 Standard SP2
    SunONE Web Server 6.1.9
    New Environment
    CF9.01 (including cumulative hotfix 2)
    Windows 2008 R2 Standard SP1
    SunONE Web Server 7.0.13
    We have a simple tabbed interface using cflayout and cflayoutarea.  Here is an example of the code.  All the files are in the same directory.  The code and directory structure have not changed.  I also see intermittent errors on cfselect AJAX binding; the cfselect will work once, then fail, then work, then fail, etc.
    <cflayout type="tab" name="mainTab">
        <cflayoutarea title="Summary" name="tab1" source="PackageFormTabSummary.cfm" refreshOnActivate="true" />
        <cflayoutarea title="Contract" name="tab2" source="PackageFormTabContract.cfm" refreshOnActivate="true" />
        <cflayoutarea title="Machine" name="tab3" source="PackageFormTabMachine.cfm" refreshOnActivate="true" />
        <cflayoutarea title="Finance" name="tab4" source="PackageFormTabFinance.cfm" refreshOnActivate="true" />
        <cflayoutarea title="Parts" name="tab5" source="PackageFormTabPart.cfm" refreshOnActivate="true" />
    </cflayout>
    This is the error we see:
    "Server Error
    This server has encountered an internal error which prevents it from fulfilling your request. The most likely cause is a misconfiguration. Please ask the administrator to look for messages in the server's error log."
    But it doesn't happen every time.  For example, we might see the following results:
    Page Test #1: tabs 1,3,5 error
    Page Test #2: tabs 1,2,4 error
    Page Test #3: tabs 2,3,4 error
    Page Test #4: tabs 1,2,3,4,5 error
    Page Test #5: tabs 3,4,5 error
    FireBug shows "200 OK" for the tabs that succeed and "500 Server Error" for the tabs that fail.

    This is the error we see:
    "Server Error
    This server has encountered an internal error which prevents it from fulfilling your request. The most likely cause is a misconfiguration. Please ask the administrator to look for messages in the server's error log."
    That's a generic error.  If you switch on robust exception handling you'll see what's causing the error.
    Adam

  • Don't understand cffunction and cfcomponent

    I am trying to alter Forta's ajax related select tutorial to fit my needs.  I am having trouble understanding the details of this .cfc though.
    <cfcomponent output="false">
        <!--- Get array of media types --->
        <cffunction name="get_states" access="remote" returnType="array">
            <cfset data="">
            <cfset result=ArrayNew(2)>
            <cfset i=0>
            <!--- Get data --->
            <cfquery name="data" datasource="mydsn">
            SELECT id,states
            FROM state
            </cfquery>
            <!--- Convert results to array --->
            <cfloop index="i" from="1" to="#data.RecordCount#">
                <cfset result[i][1]=data.id[i]>
                <cfset result[i][2]=data.state[i]>
            </cfloop>
            <cfreturn result>
        </cffunction>
        <!--- Get art by media type --->
        <cffunction name="get_waters" access="remote" returnType="array">
            <cfargument name="location" type="string" required="true" default="">
            <!--- Define variables --->
            <cfset var data="">
            <cfset var result=ArrayNew(2)>
            <cfset var i=0>
            <!--- Get data --->
            <cfquery name="data" datasource="mydsn">
            SELECT id,name
            FROM waters
            WHERE bow_state = '#arguments.location#'
            </cfquery>
            <!--- Convert results to array --->
            <cfloop index="i" from="1" to="#data.RecordCount#">
                <cfset result[i][1]=data.id[i]>
                <cfset result[i][2]=data.name[i]>
            </cfloop>
            <!--- And return it --->
            <cfreturn result>
        </cffunction>
    </cfcomponent>
    When I put '#arguments.id#' into the second query, I get results.  However, I'd like to query by the name instead, so I am trying location.  I don't fully understand so I am hacking around with this a bit but I'd like to 1 - get results by name instead of id and 2 - understand the arguments variable so I really know what is going on.
    Thanks!

    Sorry, didn't see this before I posted.
    But I think my suggestion was in keeping with the example.  If you need to select on "state", then make the "state" column of your first query to be the first value in the array that you return:
    <!--- Get data --->
    <cfquery name="data" datasource="mydsn">
         SELECT id,states
         FROM state
    </cfquery>
    <!--- Convert results to array --->
    <cfloop index="i" from="1" to="#data.RecordCount#">
         <cfset result[i][1]=data.state[i]>
         <cfset result[i][2]=data.state[i]>
    </cfloop>
    This will make your select look something like this in the rendered HTML:
    <select id="states" name="whatever...">
         <option value="Alabama">Alabama</option>
         <option value="Alaska">Alaska</option>
    </select>
    So then, on your second, dependent select, you'd specify the binding like so (just like you did, really):
    <cfselect name="waters" bind="cfc:_ffc_cfc_select_jump.get_waters({states})" bindonload="false"></cfselect>
    However, now, because the value of the "states" select options are state names, rather than ids, you should now be able to use the argument in your query based on state names:
    <!--- Get art by media type --->
    <cffunction name="get_waters" access="remote" returnType="array">
         <cfargument name="location" type="string" required="true" default="">
         <!--- Define variables --->
         <cfset var data="">
         <cfset var result=ArrayNew(2)>
         <cfset var i=0>
         <!--- Get data --->
         <cfquery name="data" datasource="mydsn">
            SELECT id,name
            FROM waters
            WHERE bow_state = <cfqueryparam value="#arguments.location#" cfsqltype="varchar" /> <!---Be sure to queryparam!!!--->
         </cfquery>
         <!--- Convert results to array --->
         <cfloop index="i" from="1" to="#data.RecordCount#">
              <cfset result[i][1]=data.id[i]>
              <cfset result[i][2]=data.name[i]>
         </cfloop>
         <!--- And return it --->
         <cfreturn result>
    </cffunction>

  • XML parssing in Sun Application Server

    Sun Server is not parsing the xml elements, Whereas Tomcat and Oracle server are parsing , the code is. This Ajax Related code
    var xmldoc = http_request.responseXML;
                   var root_node = xmldoc.getElementsByTagName('page-id').item(0);
                                       var root_node1 = xmldoc.getElementsByTagName('page-id').item(1);
                                       var root_node2 = xmldoc.getElementsByTagName('page-name').item(0);
                                       var root_node3 = xmldoc.getElementsByTagName('page-name').item(1);
                        if(inputparam == root_node.firstChild.data )
                        document.getElementById("userhomeinner").src=root_node2.firstChild.data;
                        else if(inputparam == root_node1.firstChild.data)
                        document.getElementById("userhomeinner").src=root_node3.firstChild.data;
    } else {
    alert('There was a problem with the request.');
    }

    Sun Server is not parsing the xml elements, Whereas Tomcat and Oracle server are parsing , the code is. This Ajax Related code
    var xmldoc = http_request.responseXML;
                   var root_node = xmldoc.getElementsByTagName('page-id').item(0);
                                       var root_node1 = xmldoc.getElementsByTagName('page-id').item(1);
                                       var root_node2 = xmldoc.getElementsByTagName('page-name').item(0);
                                       var root_node3 = xmldoc.getElementsByTagName('page-name').item(1);
                        if(inputparam == root_node.firstChild.data )
                        document.getElementById("userhomeinner").src=root_node2.firstChild.data;
                        else if(inputparam == root_node1.firstChild.data)
                        document.getElementById("userhomeinner").src=root_node3.firstChild.data;
    } else {
    alert('There was a problem with the request.');
    }

  • CFC Query issue

    Hi, I was working on a cfc for an ajax sequential dropdown application. I have a functioning script, but not getting the desired results from my queries, so I'm assuming it may be my query construct. Also, I think that although I got this code from Ben Fortas CF Ajax Related Selects tutorial, I was wondering if I could actually do this in one query with a construct view and then loop through all the returned data as the user selects it.
    Here is my cfc
    <cfcomponent output="false">
    <!--- Set datasource --->
    <cfset THIS.dsn="automotive">
    <!--- Function to get data from datasource --->
    <!--- Get array of car manufactures --->
    <cffunction name="getMakes" access="remote" returntype="array">   
       <!--- Set variables --->
       <cfset var data="">
       <cfset var result=ArrayNew(2)>
       <cfset var i=0>     
       <!--- Query DB --->
       <cfquery name="data" datasource="#THIS.dsn#">
      SELECT manufactureID, manufactureBrand
      FROM manufacture
            ORDER BY manufactureBrand
          </cfquery>
       <!--- loop through makes and convert to array--->
            <cfloop index="i" from="1" to="#data.RecordCount#">
             <cfset result[i][1]=data.manufactureID[i]>
                <cfset result[i][2]=data.manufactureBrand[i]>       
            </cfloop>
            <!--- Return results --->
       <cfreturn result>
    </cffunction>
        <!--- Get Models by Make --->
        <cffunction name="getModels" access="remote" returnType="array">
         <cfargument name="manufactureID" type="numeric" required="true">
            <!--- Get data --->
            <cfquery name="data" datasource="#THIS.dsn#">
             SELECT modelID, models
                FROM models
                WHERE manufactureID = #ARGUMENTS.manufactureID#
                ORDER BY models       
            </cfquery>
            <!--- Convert to Array --->
            <cfloop index="i" from="1" to="#data.RecordCount#">
             <cfset result[i][1]=data.modelID[i]>
                <cfset result[i][2]=data.models[i]>
            </cfloop>
            <!--- and return results --->
            <cfreturn result>       
        </cffunction>
        <!--- Get models by year --->
        <cffunction name="getYears" access="remote" returnType="array">
         <cfargument name="modelID" type="string" required="true">
            <!--- Get Data --->
            <cfquery name="data" datasource="#THIS.dsn#">
             SELECT modelID, modelYear
                FROM models
                WHERE modelID = #ARGUMENTS.modelID#
                ORDER BY modelYear
            </cfquery>
            <!--- Convert to Array --->
            <cfloop index="i" from="1" to="#data.RecordCount#">
             <cfset result[i][1]=data.modelID[i]>
             <cfset result[i][2]=data.modelYear[i]>
            </cfloop>
            <!--- and return results --->
            <cfreturn result>   
        </cffunction>
    </cfcomponent>
    and my select cfform
    <cfform>
      <table>
        <tr>
          <td>Select Your Make:</td>
          <td><cfselect name="manufactureID"
                     bind="cfc:cars.getMakes()"
                     bindonload="true" /></td>
        </tr>
        <tr>
         <td>Select Your Year</td>
            <td><cfselect name="modelYear"
                 bind="cfc:cars.getYears({modelID})" /></td>
        </tr>
        <tr>
         <td>Select Your Model</td>
            <td><cfselect name="modelID"
                 bind="cfc:cars.getModels({manufactureID})" /></td>
        </tr>
      </table>
    </cfform>
    Now the problem is, that when the manufactureBrand is selected, the models select list populates fine, but the year only populates ONE year. You can drill down on the Year select unless you select another model. There may be 10 years a particular model was made and by selecting another iteration of that model, another year would be displayed.
    Any tips on where my query is lacking or not well formed? Thanks in advanced!

    teedoffnewbie wrote:
    I'm still worndering if my models table is even set up correctly. It's been so long since I worked with databases that I'm a bit rusty.
    My models table contains four columns:
    modelID, models, manufactureID, modelYear
    the database is a list so far of all makes and models of cars from 1990 through 2010, so you could see as of now I think I have well over 21,000 records.
    When I run the simple query as above, and dump the query, I get all the modelID ans the years associated with each modelID. So, for example, modelID 1 has 1990, all the way down to around modelID 300 or so. I had thought initially that I should have a table solely for the years, but decided not to. Maybe this was wrong.
    btw yes that's a good idea. I''ll work on each query one at a time within the page, then once they all work, I'll move them over to a component.
    You have confirmed what I thought: one modelID may match one modelYear. If so, then your code is behaving as expected!
    I suggested you run the following test. You said you had. I doubt it. You probably had run a similar test, but not this one. So here it is again.
    Since you have a large number of records, I have added a further line to limit the number of records returned to 100. I am on MySQL. Translate accordingly to your own database syntax.
    <cfquery name="testData" datasource="automotive">
             SELECT modelID, count(modelYear) as noOfYears
              FROM models
             GROUP BY modelID
              ORDER BY noOfYears
              Limit 100
    </cfquery>
    If the value 1 occurs in the column noOfYears, then that is the confirmation we need.

  • Intermittent 501 Not Implemented Errors

    Just wanted to ask if anyone else had come across intermittent Error 501 -- Not Implemented Errors while using PeopleTools 8.51? We are using PeopleTools 8.51.02 and have come across this a few times in both campus solutions and financials (same tools versions).
    Any ideas or suggestions on what might be causing it? Signs tend to suggest and AJAX related problem.

    PeopleSoft has also published this resolution on My Oracle Support (MOS) - E-PIA: PeopleTools 8.50 and 8.51 - Intermittent "Error 501--Not implemented" Messages when Navigating to a Page Using IE7 or IE8 Browser. Doc ID : 1337266.1

  • JSON, SAP & other AJAX stuff related.

    Hi everyone,
    Guess what, JavaScript is hot again, if you wanna be a cool kid, you got use it, do some and let everybody know
    You’re on it. Lucky you’all I’ve been checking out what
    you have to do to be a fashionable BSP developer.
    First you want a JavaScript to be easiest to program, and
    you want  more advanced functions. Then you just need
    prototype (http://prototype.conio.net/).
    It brings JavaScript shortcuts and function
    like $(myId) instead of document. getElementbyId(myId),
    iterator functions, full browser independant Ajax handler and more….
    Another good one would be script.aculo.us more UI oriented (http://script.aculo.us/).
    If you want light pages you got a problem, those library
    can be as big as 60 k, that’s when JSMIN comes handy
    (http://www.crockford.com/javascript/jsmin.html ).
    It can divide your script size by at least 2. And if it is
    still too big, some clients like IE, Firefox or Opera
    handle gzip compression for your js and css files.
    Now you have to forget everything about XML, XML is bad.
    Satan is behind anyway. Look at JSON then, because you
    always wanted, to have a way to describe an object in a
    text and parse directly into a javaScript Object  right
    A JSON is like  :
    “myobject” : { “id” : ”0000”, “name” :  “john”}
    }[/code]
    In XML you would do :
    [/code]
    With the JSON parser script (http://www.json.org/json.js),
    you will just do as simple as :
    Var json_txt  = '{';
    json_txt  +=  '"myobject" : { "id" : "0000", "name" :  "john"}';
    json_txt  += '}';
    /code
    if you use the parser, it will and you will have a nice
    JavaScript object.
    Here is a little sample from what you can do with all that
    (very basic, but it shows you how it works) :
    Create 2 pages in a BSP application.
    Display.htm et data.htm.
    In display.htm just do a basic page
    [/code]
    json.js is the json parser script http://www.json.org/json.js
    prototype.js http://prototype.conio.net/dist/prototype-1.4.0.tar.gz
    my_handler.js (script to handle the page that you will do
    later)
    in data.htm
    Gather some data from a random table and create some json
    text like this :
    <%@page language="abap" %>
    <%
      DATA I_dude     TYPE zdude.
      data w_dude type line of Zdude.
      data w_str type string.
      CLEAR I_dude.
      *get data from the table I_dude
      select * into table i_dide
      from zdude.
    *create the json text into the string w_str
      concatenate
      w_str '{ "dude": ['
      into w_str.
      data i type i.
      i = 0.
      loop at i_bdude into w_dude.
      if i gt 0.
            concatenate
          w_str ','
          into w_str.
      endif.
      concatenate
      w_str '{'
              '"objid":"' w_dude-objid '",'
              '"name":"' w_dude-name '"'
      into w_str.
      i = i + 1.
      endloop.
      concatenate
      w_str '] }'
      into w_str.
    *display the string w_str
    %>
    <%= w_str%>
    /code
    You will construct a text that describe an object dude
    from the table zdude .
    Now create a mime object called my_handler.js
    // a controller object that help us with a nice  window to display a log
    var Controller =
         Controller.console.innerHTML += (message + "
    // what you execute when you run the page display.htm (look at the body tag)
    function Initialise() {
              var url = 'data.htm';
              var pars=””;
    //call the data.htm page to get our json object Ajax object comes from prototype
    var myAjax = new Ajax.Request( url, { method: 'post', parameters: pars, onComplete: showResponse });
    function showResponse(req) {
    var myObject = JSON.parse(req.responseText);
    displayDude(myObject);
    function displayDude(dude) {
         //$ is cool isn’t it
         var divDude = $(“dudeid”);
    divDude.innerHtml = « » ;
    //each comes from prototypes too
    dude.besoin.each(function(d){ divDude.innerHtml += d.name})
    }[/code]
    Save everything and you will have to your first AJAX JSON
    application
    Hope you enjoyed the ride and that I’ve been clear enough
    Read, comment, say something
    Have great Day
    Quentin.
    Web site the I use to build that post :
    AJAX tutorials :
         http://snyke.net/blog/2006/03/25/site-design-using-prototype/
    http://snyke.net/blog/2006/02/05/ajax-design-patterns/
    JSON related :
         www.json.org
         http://www.sergiopereira.com/articles/prototype.js.html

    This seems interesting.  However it is a bit unusal for us to see content like this posted into the forums.  To be honest at first glace I mistook it for some SPAM Posting advertising some 3rd party tool - which on closer inspection is not the case.
    Have you considered creating this same content as weblog and posting it within SDN.  This is generally where you would find this type of "article".  In the SDN Weblog area, you can classify your topic under BSP. We also have a sticky forum thread for any new BSP related weblog anouncements. 
    If you need any help getting started on a weblog, feel free to ask for help from one of the SDN Community managers or one of your fellow SDN BSP contributors (myself included).

  • Firefox 6.0.2 keeps on crashing, problems with ajax calls

    Hi,
    I am using the jquery form plugin to make ajax calls on my sites, when i invoke the plugin and have Firebug open I get this message:
    Could not convert JavaScript argument arg 0 [nsISupports.QueryInterface]
    [Break On This Error] callback.data = aElem....getComputedStyle(callback.data, '');
    rfhelper32.js
    Firebug also tells me that it's limit has been reached 1571 entries shown.
    Can someone tell me why this is happening; is there a problem with Firefox that will be fixed. It's not happening in IE9
    Here is the information from a recent crash report (which may or not be related to the above problem!)
    AdapterDeviceID: 0a66
    AdapterVendorID: 10de
    Add-ons: [email protected]:3.0.4,{6AC85730-7D0F-4de0-B3FA-21142DD85326}:2.5.5,{8f8fe09b-0bd3-4470-bc1b-8cad42b8203a}:0.17,{e968fc70-8f95-4ab9-9e79-304de2a71ee1}:0.7.3,{f36c6cd1-da73-491d-b290-8fc9115bfa55}:2.2.0,{BBDA0591-3099-440a-AA10-41764D9DB4DB}:3.1,[email protected]:1.8.2,{2D3F3651-74B9-4795-BDEC-6DA2F431CB62}:2011.7.1.3,{972ce4c6-7e08-4474-a285-3208198ce6fd}:6.0.2
    AvailableVirtualMemory: 174600192
    BuildID: 20110902133214
    CrashTime: 1316093326
    EMCheckCompatibility: true
    Email: [email protected]
    FramePoisonBase: 00000000f0de0000
    FramePoisonSize: 65536
    InstallTime: 1315406279
    Notes: AdapterVendorID: 10de, AdapterDeviceID: 0a66, AdapterDriverVersion: 8.16.11.9104
    D3D10 Layers? D3D10 Layers-
    D3D9 Layers? D3D9 Layers-
    WebGL? WebGL-
    ProductName: Firefox
    ReleaseChannel: release
    SecondsSinceLastCrash: 160793
    StartupTime: 1316067225
    SystemMemoryUsePercentage: 86
    Theme: classic/1.0
    Throttleable: 1
    TotalVirtualMemory: 2147352576
    URL: https://s-static.ak.fbcdn.net/connect/xd_proxy.php?version=3#cb=f1ae6be54ac01b4&origin=https%3A%2F%2Fwww.paypal-business.co.uk%2Ffd558408b2cb6c&relation=parent.parent&transport=postmessage&type=resize&height=20&ackData[id]=1&width=250
    Vendor: Mozilla
    Version: 6.0.2
    Winsock_LSP: MSAFD Tcpip [TCP/IP] : 2 : 1 :
    MSAFD Tcpip [UDP/IP] : 2 : 2 : %SystemRoot%\system32\mswsock.dll
    MSAFD Tcpip [RAW/IP] : 2 : 3 :
    MSAFD Tcpip [TCP/IPv6] : 2 : 1 : %SystemRoot%\system32\mswsock.dll
    MSAFD Tcpip [UDP/IPv6] : 2 : 2 :
    MSAFD Tcpip [RAW/IPv6] : 2 : 3 : %SystemRoot%\system32\mswsock.dll
    RSVP TCPv6 Service Provider : 2 : 1 :
    RSVP TCP Service Provider : 2 : 1 : %SystemRoot%\system32\mswsock.dll
    RSVP UDPv6 Service Provider : 2 : 2 :
    RSVP UDP Service Provider : 2 : 2 : %SystemRoot%\system32\mswsock.dll
    MSAFD NetBIOS [\Device\NetBT_Tcpip_{91C733AA-510D-41D3-B67A-4441103BAE50}] SEQPACKET 1 : 2 : 5 :
    MSAFD NetBIOS [\Device\NetBT_Tcpip_{91C733AA-510D-41D3-B67A-4441103BAE50}] DATAGRAM 1 : 2 : 2 : %SystemRoot%\system32\mswsock.dll
    MSAFD NetBIOS [\Device\NetBT_Tcpip_{4A8E4D1C-24D8-40C3-BC41-D04B5D505F39}] SEQPACKET 5 : 2 : 5 :
    MSAFD NetBIOS [\Device\NetBT_Tcpip_{4A8E4D1C-24D8-40C3-BC41-D04B5D505F39}] DATAGRAM 5 : 2 : 2 : %SystemRoot%\system32\mswsock.dll
    MSAFD NetBIOS [\Device\NetBT_Tcpip_{C8F77A1D-B3A2-4DE2-AE72-C377BBD10D9A}] SEQPACKET 7 : 2 : 5 :
    MSAFD NetBIOS [\Device\NetBT_Tcpip_{C8F77A1D-B3A2-4DE2-AE72-C377BBD10D9A}] DATAGRAM 7 : 2 : 2 : %SystemRoot%\system32\mswsock.dll
    MSAFD NetBIOS [\Device\NetBT_Tcpip6_{C8F77A1D-B3A2-4DE2-AE72-C377BBD10D9A}] SEQPACKET 8 : 2 : 5 :
    MSAFD NetBIOS [\Device\NetBT_Tcpip6_{C8F77A1D-B3A2-4DE2-AE72-C377BBD10D9A}] DATAGRAM 8 : 2 : 2 : %SystemRoot%\system32\mswsock.dll
    MSAFD NetBIOS [\Device\NetBT_Tcpip6_{4A8E4D1C-24D8-40C3-BC41-D04B5D505F39}] SEQPACKET 6 : 2 : 5 :
    MSAFD NetBIOS [\Device\NetBT_Tcpip6_{4A8E4D1C-24D8-40C3-BC41-D04B5D505F39}] DATAGRAM 6 : 2 : 2 : %SystemRoot%\system32\mswsock.dll
    MSAFD NetBIOS [\Device\NetBT_Tcpip6_{3D95D40E-1835-44C6-A621-968094D90452}] SEQPACKET 10 : 2 : 5 :
    MSAFD NetBIOS [\Device\NetBT_Tcpip6_{3D95D40E-1835-44C6-A621-968094D90452}] DATAGRAM 10 : 2 : 2 : %SystemRoot%\system32\mswsock.dll
    MSAFD NetBIOS [\Device\NetBT_Tcpip6_{D6AD3B6C-2F8E-49B4-BDCD-DB35518116E7}] SEQPACKET 9 : 2 : 5 :
    MSAFD NetBIOS [\Device\NetBT_Tcpip6_{D6AD3B6C-2F8E-49B4-BDCD-DB35518116E7}] DATAGRAM 9 : 2 : 2 : %SystemRoot%\system32\mswsock.dll
    MSAFD NetBIOS [\Device\NetBT_Tcpip6_{18908ACF-76C1-4139-8C1C-89DF049156C5}] SEQPACKET 4 : 2 : 5 :
    MSAFD NetBIOS [\Device\NetBT_Tcpip6_{18908ACF-76C1-4139-8C1C-89DF049156C5}] DATAGRAM 4 : 2 : 2 : %SystemRoot%\system32\mswsock.dll
    MSAFD NetBIOS [\Device\NetBT_Tcpip6_{4112C824-372C-4014-87AE-1BC13EA6E4CD}] SEQPACKET 3 : 2 : 5 :
    MSAFD NetBIOS [\Device\NetBT_Tcpip6_{4112C824-372C-4014-87AE-1BC13EA6E4CD}] DATAGRAM 3 : 2 : 2 : %SystemRoot%\system32\mswsock.dll
    MSAFD NetBIOS [\Device\NetBT_Tcpip6_{2E408326-9611-4C41-B766-C4CB82734986}] SEQPACKET 0 : 2 : 5 :
    MSAFD NetBIOS [\Device\NetBT_Tcpip6_{2E408326-9611-4C41-B766-C4CB82734986}] DATAGRAM 0 : 2 : 2 : %SystemRoot%\system32\mswsock.dll
    MSAFD NetBIOS [\Device\NetBT_Tcpip6_{91C733AA-510D-41D3-B67A-4441103BAE50}] SEQPACKET 2 : 2 : 5 :
    MSAFD NetBIOS [\Device\NetBT_Tcpip6_{91C733AA-510D-41D3-B67A-4441103BAE50}] DATAGRAM 2 : 2 : 2 : %SystemRoot%\system32\mswsock.dll
    VMCI sockets DGRAM : 0 : 2 :
    VMCI sockets STREAM : 0 : 1 : C:\Program Files\VMware\VMware Workstation\vsocklib.dll
    This report also contains technical information about the state of the application when it crashed.

    Try the Firefox SafeMode to see how it works there. <br />
    ''A troubleshooting mode, which disables most Add-ons.'' <br />
    ''(If you're not using it, switch to the Default Theme.)''
    * You can open the Firefox 4/5/6/7 SafeMode by holding the '''Shft''' key when you use the Firefox desktop or Start menu shortcut.
    * Or use the Help menu item, click on '''Restart with Add-ons Disabled...''' while Firefox is running. <br />
    ''Don't select anything right now, just use "Continue in SafeMode."''
    ''To exit the Firefox Safe Mode, just close Firefox and wait a few seconds before using the Firefox shortcut (without the Shft key) to open it again.''
    If it is good in the Firefox SafeMode, your problem is probably caused by an extension, and you need to figure out which one. <br />
    http://support.mozilla.com/en-US/kb/troubleshooting+extensions+and+themes

  • Shuttle and AJaX

    Hello all,
    I have an interesting issue to do with population of a shuttle in 3.1 using AJaX. The session state of selected items is what's causing me dramas, details as follows:
    The left side of the shuttle is populated according to a series of cascading select lists with an optional 'filter' checkbox on each. So every time the value of a select is changed or a checkbox checked/unchecked the ajax process is fired to repopulate the list accordingly.
    My Javascript is:
    function get_ITEMS(){
    var l_Count = 0
    var l_Return = null;
    var l_Select = $x('P2_ITEMS_LEFT');
    var get = new htmldb_Get(null,$v('pFlowId'),
    'APPLICATION_PROCESS=BUILD_ITEMS_SEL',0);
    get.addParam('x01',$v('P2_PRODFILTER'));
    get.addParam('x02',$v('P2_WORKFILTER'));
    get.addParam('x03',$v('P2_COREFILTER'));
    get.addParam('x04',$v('P2_PRODUCT'));
    get.addParam('x05',$v('P2_WORK_TYPE'));
    get.addParam('x06',$v('P2_CORESYSTEM'));
    get.addParam('x07',$v('P2_DISCIPLINE'));
    gReturn = get.get('XML');
    if(gReturn && l_Select){
    l_Count = gReturn.getElementsByTagName("option").length;
    l_Select.length = 0;
    for(var k=0;k<l_Count;k++){
    var l_Opt_Xml = gReturn.getElementsByTagName("option")[k];
    appendToSelect(l_Select, l_Opt_Xml.getAttribute('value'),
    l_Opt_Xml.firstChild.nodeValue)
    get = null;
    and the application level process BUILD_ITEMS_SEL is:
    DECLARE
    v_doprod varchar2(3);
    v_dowork varchar2(3);
    v_docore varchar2(3);
    v_prod varchar2(30);
    v_work varchar2(30);
    v_core varchar2(30);
    v_disc varchar2(30);
    BEGIN
    v_doprod := wwv_flow.g_x01;
    v_dowork := wwv_flow.g_x02;
    v_docore := wwv_flow.g_x03;
    v_prod := wwv_flow.g_x04;
    v_work := wwv_flow.g_x05;
    v_core := wwv_flow.g_x06;
    v_disc := wwv_flow.g_x07;
    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>');
    FOR rec IN (
    SELECT distinct(item) as "ITEM"
    FROM TBL_ROVE_GRADINGS
    WHERE bus_unit = :P2_BUSUNIT
    AND discipline = v_disc
    AND ((product = v_prod or product = 'all') or v_doprod = 'No')
    AND ((work_required = v_work or work_required = 'all') or v_dowork = 'No')
    AND ((core_system like '%'||v_core||'%' or core_system = 'all') or v_docore = 'No')
    order by item asc
    LOOP
    htp.prn('<option value="' || rec."ITEM"|| '">' || rec."ITEM"|| '</option>');
    END LOOP;
    htp.prn('</select>');
    END;
    This all works perfectly well. I can change my cascading selects, select items, refilter and select other items, the AJaX does its lovely stuff and I've got beautiful process flow. I can have the right-hand side populated from multiple different left-hand lists according to filtering choices.
    The problem is when I need to have the selected items remembered in session state. If I navigate away and then return my left-side has retained its session state (it's rebuilt onload from the currently selected cascading select values) but the right-hand side is blank.
    I've got a nasty suspicion that the core of the issue is because the left side may no longer have the values that the right-side session state is looking for to mark as 'selected'.
    Essentially, what I need is a solution that will 'force' the right-side to have the values previously selected for various filtered choices in the left.
    Any thoughts?
    Thanks :D

    Hello Frank,
    >> If I navigate away and then return my left-side has retained its session state
    I’m assuming that “navigate away” means redirecting from the page (without submitting it). In this case, the session state of the page is not saved, and none of the AJAX components you are using save it either, so you are left with a session state that represent page loading time.
    The addParam() method doesn’t save state. You should use the add() method, which do set session state. For example
    get.add(' P2_PRODFILTER',$v('P2_PRODFILTER'));This will save the session state for all your select lists. Of course, you will have to change the on-demand process accordingly.
    The second thing is to handle the shuttle value. You need to remember that for the APEX engine, a shuttle value is a colon-delimited string. You should generate this value in your on-demand process, and use the APEX_UTIL.SET_SESSION_STATE procedure to save it into session state. If you anticipate that this value will include options that don’t exist on your shuttle left side (left is relative, so let’s say your source column) you should set the LOV option of “Display Extra Values” to Yes.
    Regards,
    Arie.
    &diams; Please remember to mark appropriate posts as correct/helpful. For the long run, it will benefit us all.
    &diams; Author of Oracle Application Express 3.2 – The Essentials and More

  • How to upload a document with values related to document properties in to document set at same time using Javascript object model

    Hi,
          Problem Description: Need to upload a document with values related to document properties using custom form in to document set using JavaScript Object Model.
        Kindly let me know any solutions.
    Thanks
    Razvi444

    The following code shows how to use REST/Ajax to upload a document to a document set.
    function uploadToDocumentSet(filename, content) {
    appweburl = decodeURIComponent(getQueryStringParameter('SPAppWebUrl'));
    hostweburl = decodeURIComponent(getQueryStringParameter('SPHostUrl'));
    var restSource = appweburl +
    "/_api/SP.AppContextSite(@target)/web/GetFolderByServerRelativeUrl('/restdocuments/testds')/files/add(url='" + filename + "',overwrite=true)?@target='" + hostweburl + "'";
    var dfd = $.Deferred();
    $.ajax(
    'url': restSource,
    'method': 'POST',
    'data': content,
    processData: false,
    timeout:1000000,
    'headers': {
    'accept': 'application/json;odata=verbose',
    'X-RequestDigest': $('#__REQUESTDIGEST').val(),
    "content-length": content.byteLength
    'success': function (data) {
    var d = data;
    dfd.resolve(d);
    'error': function (err,textStatus,errorThrown) {
    dfd.reject(err);
    return dfd;
    Then when this code returns you can use the following to update the metadata of the new document.
    function updateMetadataNoVersion(fileUrl) {
    appweburl = decodeURIComponent(getQueryStringParameter('SPAppWebUrl'));
    hostweburl = decodeURIComponent(getQueryStringParameter('SPHostUrl'));
    var restSource = appweburl +
    "/_api/SP.AppContextSite(@target)/web/GetFolderByServerRelativeUrl('/restdocuments/testds')/files/getbyurl(url='" + fileUrl + "')/listitemallfields/validateupdatelistitem?@target='" + hostweburl + "'";
    var dfd = $.Deferred();
    $.ajax(
    'url': restSource,
    'method': 'POST',
    'data': JSON.stringify({
    'formValues': [
    '__metadata': { 'type': 'SP.ListItemFormUpdateValue' },
    'FieldName': 'Title',
    'FieldValue': 'My Title2'
    'bNewDocumentUpdate': true,
    'checkInComment': ''
    'headers': {
    'accept': 'application/json;odata=verbose',
    'content-type': 'application/json;odata=verbose',
    'X-RequestDigest': $('#__REQUESTDIGEST').val()
    'success': function (data) {
    var d = data;
    dfd.resolve(d);
    'error': function (err) {
    dfd.reject(err);
    return dfd;
    Blog | SharePoint Field Notes Dev Tools |
    SPFastDeploy | SPRemoteAPIExplorer

  • Connecting to database in ajax

    frnds i have two dropdowns, on selecting one the related values shld b populated in the other drop down.. values in the second drop down shld b retrieved from database using first dropdown value.... pls help me out...

    henrymania wrote:
    i have seen the examples but the example illustrate the procedure to add item to the second drop down when a item is selected from the first drop down. the values are fetched from the .txt files. every item in the first drop down has a txt file with name( item selected.txt). i have 299 item which are group into fifteen major items. so i have to create 299 txt file. and when ever my database get update i have to update the file explicitly.
    so i want to call a servlet which fetch the values from the database whenver the user select a value.Here's the problem, Henry: What you're trying to do involves a fair few steps. There's not just a one-line "oh, do this this this and this" answer to it. A forum is far from the most efficient way to be given that sort of help, as you've seen you've been posting for a whole day now and got no further. Tutorials, on the other hand, are absolutely ideal for this sort of thing. Had you gone through one, you'd have been finished ages ago. Details like "I'm using a text file" are irrelevant, you're not going to find tutorials that cover every single permutation of activities you could ever come up with. You have to learn to adapt what you know, and what you read, to suit other problems. The use-case of populating an Ajax view from a database via a servlet is about as common an Ajax use-case as you could hope to find, and there are millions of tutorials on how to do it. Find one, and go through it. That is by a country mile your best bet. Relying on an asynchronous forum, where you have to wait endlessly for the next step, it'll take you ages, even if you found someone willing to help you with it, which so far you haven't. Why not? Because everyone here knows forums aren't suited to tutoring people like this. Too much back-and-forth. If you do get an actual reply to this question, I bet you 20 dukes it's copied straight from RoseIndia or somewhere. Just find a tutorial and be done with it. Oh, and you could do a lot worse than pick up Ajax In Action, published by Manning
    Forums are well-suited to solving quick problems. They're not suited to hand-holding you through learning new technologies. Asking for "sample code" is pretty much always interpreted as "I can't be bothered to do this myself, you lot do it", regardless of whether that's what was meant. Plus, people who get sizable chunks of sample code tend to just paste it in without understanding it, and they're invariably back here asking for more help when it doesn't work. Very frustrating for all concerned, and highly inefficient as a means of writing an application

  • Trigger validation error upon ajax result?

    I'm trying to figure out a way to trigger spry validation
    error to prevent submit when the ajax lookup (my custom built, not
    spry related) returns a flag telling userid or email already exists
    in the database. If I add onSubmit even to the form tag, it'd
    override spry on submit event listener. My only option is to try to
    tap into spry validation to trigger its own error instead. There's
    a spry custom validation that can call a js function but it expects
    a true/false upfront whereas the ajax call requires some wait time
    and calls another process handler to handle the returned
    result.

    I am pretty certain that the local proxy (which was in place) is being bypassed for all calls and the box has direct unfiltered access to the internet.
    This is also clarified as in any browser I can go to any site http/https, regardless of if 'automatic detect proxy settings' field is turned on or off. I can also get to certain websites on this network that would normally be blocked which also makes
    me think that the proxy is off.
    Further to this, the App Store applications are actually available to view/search in SharePoint. The error above though only occurs only an App has been download and is about to be added as a web part on a page (after the prompt to Trust
    the app has been selected). This to me indicates that it is finding the store ok but having certificate problems.
    The first error that I get in the log appears the most suspicious but no idea what could cause this:
    RevocationStatusUnknown: The revocation
    function was unable to check revocation for the certificate. 
    OfflineRevocation: The revocation
    function was unable to check revocation because the revocation server was offline
    Is the revocation server a local service? If this is a proxy problem what Application/Service is calling this check? Does this access the revocation service via a specific port?
    Thanks for your help.
    .Net Developer

Maybe you are looking for