Database Ajax Requests

Hi All,
This is probably answered elsewhere in the forums but I'm having a difficult time finding it or knowing what to search for. Does Business Catalyst allow for me to access data in a database using javascript AJAX calls?
I don't suppose it's possible to host a third party database in BC like MySQL or CouchDB, is there?
Thanks!

You can pull the data via a standard GET request but because BC outputs HTML embed in javascript rather than JSON or JSONP hosting anything external you run into cross site browser sandboxes and it wont work.
I don't recommend this because you are re-inventing the wheel but if you wanted to call BC remotely and pull in content you would have to do it on an externally hosted solution server side and setup your BC (hosted) templates to only output the data you requested (rather than a full HTML page).
You could also use the API, but it is not build for real time events and it is slow and cumbersome, more build for syncing and queries that don't require a quick reply.

Similar Messages

  • Special characters in ajax request

    Hi,
    I can't get special characters like á é í, etc well-printed in an jsp page when processing an ajax request under struts.
    The oracle database is encoded with ISO-8859-1. In my action i set the character encoding for the respose:
    PrintWriter out = response.getWriter();
    response.setCharacterEncoding("ISO-8859-1");
    // get the combo values from database...
    Collection<SimpleBean> opciones = getDistribuidoras(opcionSeleccionada);
    String salida = crearCadenaDeSalida(opciones);
    out.print(salida);
    out.flush();
    out.close();
    return null;Also, i have specified the encoding in the tomcat connector
    <Connector port="8080" protocol="HTTP/1.1"
                   connectionTimeout="20000"
                   redirectPort="8443" URIEncoding="ISO-8859-1"/>The page encoding in the jsp
    <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" /> And finally populate the combo by JavaScript
      elementos=respuesta.split("||")
      reiniciarCombo(combo);     
      for ( var i=0; i<elementos.length; i++ ){
       valueLabelPair = elementos.split(";")
    combo.options[i] = new Option(valueLabelPair[0], valueLabelPair[1]);
    Is there something i've missed? i get a questión mark inside a black diamond shape instead the special char.
    Thank you in advance                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    Check this
    http://download-east.oracle.com/docs/cd/B10501_01/text.920/a96518/cqspcl.htm#1360

  • Pageflow variable values don't hold between two ajax requests

    I have pageflow application(Portal) where I have implemented typeAhead(like google suggest with AJAX) for two select boxes. Here I have to inform the server of the firstbox value after it is selected(with AJAX) to save it in pageflow variable so that for next request(while typing in second select box), the corresponding select option data determined by first selection has to be returned. But I see that pagflow doesn't hold values between subsequent ajax requests.But as per BEA Pageflow description values are retained till the end of session.
    Does it have anything to do with the ajax requests which are not normal HTTP browser requests? Plz any suggestions are welcome.

    Hi
    Thanks for reply,
    I know that you said, because I did some ABAP programs and some ABAP reports of the bussiness process of Collateral Objects, with information of these tables and when I tried get information,  I did something like you said, or I assigned cms_ast-object_ref_id to a variable, and this varible I converted to the same type of the other field and find the match or join between the tables(cms_movables, cms_ast).
    The problem is not when I do an ABAP program. The problem is:
    (BO)Business Objects needs to get some information about these tables to do some reports, but  BO has not the tools or the capacity to convert  fields, as well as ABAP. BO gets information directly of the tables of database.
    The posible solution to this problem is that I can create a job and a program, which function is replicate the information of cms_ast and insert on a "z" table or get the relation between to tables (cms_movables and cms_ast) and insert on a "z" table. These can help BO to get information, because BO instead of get information of this tables (cms_movables, cms_ast) , now get information of the table z and then get and join with other tables.
    The principal problem is that BO get information online, with these the job which run the program need to be run minute per minute. and I think that it is not the best practice, because all the tables are some scalables.
    I think that my program could be better, how can I catch a INSERT event on table cms_ast, to convert the fields, and insert on a "z" tables
    Or anybody have an idea, how can i solve these problems?

  • Custom JSP, Javascript (Ajax) request.url

    Hi,
    Im very new to java. Maybee Im not in the right forum :-/ could be a tomcat question.
    I create a custom jsp for teaming and trying to load some information from database.
    Using javascript(Ajax) request.url to call "get.jsp" to load from db.
    PHP Code:
      var url="companyDetails.jsp?companyId=" +tmp
                       http.open("GET", url, true);
                       http.onreadystatechange = callBack; 
    On my development machine everything right. But on teaming prod we get a 404.
    Placing the *.jsp files in the clustom_jsp folder.
    Q1: Maybee I tried wrong URL ?
    Q2: May I have to use webServices like SOA ?.
    In this case Is the Ajax call = a WebService ?
    Q4: Or I have to auth over url at server level.
    Thanks
    *T

    Originally Posted by tbrinkmann
    re...
    are there some teaming, vibe jsp, java application programmer in case of custom application programming in the forum ?
    Ore only admins and users ?
    Thanks
    *T
    Maybe you will get better answers here: Kablink Vibe
    Thomas

  • Is possible to use href= and onclick=Ajax.request to track outgoing link?

    Hi,
    I´m new in Oracle Apex and i'm trying now to track outgoing links on my Apex 3.2.1 application.
    When the user clicks on a link of my application that redirects to an outgoing site, I want them to be taken to the site (href) and I also want a background script that register in a oracle table this "click".
    For example, i have this link in an APEX page:
    When user cliks in this link, i would like to execute in background an oracle procedure, with a parameter. Let´s call this procedure, for example:
    SP_REGISTRA_ACESS_LINK(:P19_COD_TOPICO).
    This procedure insert a record in a table called BAC_ACESS, storing in it the SYSDATE and the value of ":P19_COD_TOPICO".
    Is it possible to link to a new site and call an AJAX request at the same time?
    Could some one give me a example of how i can do it? How i can implement it in my Apex 3.2.1 application?
    I´m working with Apex 3.2.1 and RDBMS 9i. I can not upgrade none of these releases, cause Apex is installed in a production database that can be upgrade now to 10g/11g.
    Best regards,
    Sergio Coutinho

    Jari,
    Very interesting. I didin´t know that this APEX_UTIL exists...
    Although that, i developed a customized access control to specific "media itens" of my application, for example:
    - Download of documents or programs;
    - Play of videos;
    - Play of audios;
    - Acess of CLOB records of a table, that were displayed as a kind of HTML page;
    - Outgoing links;
    I do not want to control all the Apex application as, for example, tabs, report pages, charts, forms, etc.
    All these media itens are stored on oracle tables, and where displayed in apex reports. Customer clicks on a link of this report and the media is displayed to the user.
    I have sucess to control quite all the medias display.
    The only one i could not have success to control are these outgoing links. These links were stored in a oracle table and were displayed in a apex interactive report.
    I would like to know if i can implement my custom rutine to register these access. I think that i could to it with Ajax scripts.
    Best regards,
    Sergio Coutinho

  • Is there a way to force firefox to send ajax-request when user clicks on a link and redirect occurs?

    I'm trying to send ajax-request with web-analytics data when user clicks on a link. But Firefox cancels the request and moves to the link location. Sync requests or waiting for response is not an option because performance is critical.

    Correct me if I'm wrong here:
    <code>jQuery.data()</code> saves the <code>{"foo": "bar"}</code> JSON object to variable <code>data</code>, and then the <code>s.tl()</code> call sends <code>data</code> to the server, right?
    You could use jQuery's [http://api.jquery.com/event.preventDefault/ <code>event.preventDefault()</code>] method to stop the browser from automatically following the link on click. You could wait until the Ajax request was finished before following the link.
    <hr>
    I hope that solved your problem!
    <i>If it did, would you please choose this answer as your solution? It would help other Firefox users to find help on the forums faster and more efficiently. Thanks!</i>
    And of course, feel free to post back if you need more help!
    Happy browsing!

  • Cannot open database "ReportServer" requested by the login. The login failed. Login failed for user 'USER LOGON'

    I want to grant permissions to all domain users to view reports on our Report Server. Domain users are able to access our Report Server URL and folder, but when they click on a report item they get an error message: 
    "Cannot open database "ReportServer" requested by the login. The login failed. Login failed for user 'USER LOGON'"
    I'm using windows authentication and configured the local service account in SSReportS Config Manager as the credentials to connect to the Report Server DB. 
    Can someone please help how I should properly do this step by step to give all domain users permissions to view a report in SSRS?
    Thanks much! - Rookie DBA

    Hi IWAR,
    The error message "Cannot open database "ReportServer" requested by the login. The login failed. Login failed for user 'USER LOGON'" means the user 'USER LOGON' does not have permissions to access the "ReportServer" database.
    To fix this issue, please verify that the user has a valid database user login. For more details, please refer to the following steps.
    In SQL Server Management Studio, open Object Explorer and expand the Databases folder.
    Expand the database in which to create the new database user.
    Right-click the Security folder, point to New, and then click User.
    On the General page, enter a name for the new user in the User name box.
    In the Login name box, enter the name of a SQL Server login to map to the database user.
    Click OK.
    Reference:
    http://technet.microsoft.com/en-us/library/ms156468(v=sql.105).aspx
    Hope this helps.
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • Setting values to Display Only item during AJAX request

    Hello,
    Good Morning!
    In a master-detail form, in the detail report, I am populating two columns SERVICE_TAX_PCT and SERVICE_TAX_AMOUNT by making an AJAX request after selection of ACCOUNT_CODE.  Values are populated with out any issue. 
    However, as soon as I make those two fields as Display Only, the values are not getting set.  Is there a way to set the values to a field in the same time it should be restricted for user to change it?
    (APEX 4.2.6)
    Thanks,
    -Anand

    Hi Anand,
    anand_gp wrote:
    Hello,
    Good Morning!
    In a master-detail form, in the detail report, I am populating two columns SERVICE_TAX_PCT and SERVICE_TAX_AMOUNT by making an AJAX request after selection of ACCOUNT_CODE.  Values are populated with out any issue.
    However, as soon as I make those two fields as Display Only, the values are not getting set.  Is there a way to set the values to a field in the same time it should be restricted for user to change it?
    (APEX 4.2.6)
    check the example
    Step 1: Edit your page
    under CSS->Inline put the code given below
    .row_item_disabled {
       cursor: default;
       opacity: 0.5;
       filter: alpha(opacity=50);
       pointer-events: none;
    Step 2 : I guess you have Javascript function similar like given below
    you have to extract rowid first, for which you want to set the percentage , see line 6
    and see line 18, for disabling the column of that row.
    <script type="text/javascript">
       function f_fetch_tax_percentage(pThis) {
       var ajaxRequest;
       var ajaxResult;
       var row_id = pThis.id.substr(4);
       var percentage    = 'f05_' + row_id;   // replace f05 with the rowid of percentage column
       ajaxRequest = new htmldb_Get(null,$x('pFlowId').value,'APPLICATION_PROCESS=TAX_DTLS',0);
       ajaxRequest.addParam('x01',$v(pThis));
       ajaxResult = ajaxRequest.get();
       if ( ajaxResult.length > 0 ) {
       // set percentage
       $('#'+percentage).val(parseFloat(ajaxResult));
       // disable percentage column
       $("#f05_" + row_id).attr("readonly", true).addClass('row_item_disabled');        
    </script>
    Hope this helps you,
    Regards,
    Jitendra

  • Garbage characters returned for Ajax requests?

    I have a form that when submitted , always re render in weird
    looking form !! the arabic characters do not get displayed
    correctly.
    Also, making ajax requests return characters that look weird
    (it is not from the server as it gets displayed nicely on Firefox
    and IE)

    It seems like it's a webkit issue !! Rendering UTF8 correctly
    in special circumstances is not as expected with Webkit (or at
    least its old version)
    How can I update the webkit version that came with my Adobe
    Air ? Or how can I fix the issue mentioned above ??

  • JSF 2.0 f:ajax: How to limit what is sent in AJAX request?

    Is there a way in JSF 2.0 with f:ajax (or direct JavaScript equivalent) to limit what parts of a form are sent in AJAX request, like it's counterpart f:ajax render attribute which limits what is returned back from AJAX request.
    When f:ajax execute attribute is set to some value it only affects what is processed on server, but whole form is still sent as part of AJAX request.

    This is a bug. onerror was not getting set probably in AjaxBehavior component. Fix in progress.
    Will let you know when fix is in.
    -roger

  • System.Data.SqlClient.SqlException: Cannot open database "MSCRM_CONFIG" requested by the login. The login failed. Login failed for user 'NT AUTHORITY\SYSTEM

    Dear ALL 
    After successfully shifting the CRM from 2011 to 2013 i found a problem in Reporting section none of the report is working after some finding i conclude that MSCRM_FetchDataSource is not able to connect successfully 
    Through my report manager i tried to test the connection of MSCRM_FetchDataSource but i got the following error 
    System.Data.SqlClient.SqlException: Cannot open database "MSCRM_CONFIG" requested by the login. The login failed. Login failed for
    user 'NT AUTHORITY\SYSTEM'. 
    I already add the NT Authority \ System as a db_owner under my database user of MSCRM_CONFIG
    But still no success any one have any idea why it's happaning 
    Regards 
    RB

    I found a solution I hope my post will help other
    I gave the  db_owner to 'NT AUTHORITY\SYSTEM' and 'NT AUTHORITY\NETWORK' and assigned with both CRM and Config database
    It resolved my issue
    RB

  • Re: Ajax request handled by backing bean

    I have a servlet that is handling an Ajax request for a page. This works very well, however i am struggling with using an event handler in my backing bean to handle this request. It seems like the reqest does not get routed to the backing bean when i try to use it as the url.
    Any guidance would be appreciated.
    Thanks

    To execute a backing bean method from your servlet, you must first make the FacesContext available to your doGet or doPost method. To learn how to make the FacesContext available, look at the init method (and the doGet method) in the 5655_ajaxcreator/ajaxcreator/exercises/exercise1/EmployeeValidationServlet.java in the JavaOne Hands-On Lab 5655. There is a link to the Lab 5655 zip file on this page:
    http://developers.sun.com/prodtech/javatools/jscreator/community/javaone/creatorteam.html
    Once you have emulated the EmployeeValidationServlet.init method to make the FacesContext available to your doGet or doPost method, use code like the following to execute your backing bean method and write out a response:
    public void doGet(HttpServletRequest request, HttpServletResponse response)
    throws IOException, ServletException {
    // Acquire the FacesContext instance for this request
    FacesContext context =
    facesContextFactory.getFacesContext(servletConfig.getServletContext(), request,
    response, lifecycle);
    MethodBinding mb = context.getApplication().
    createMethodBinding(...);
    mb.invoke(context, new Object[]{...});
    response.setContentType("text/xml");
    response.setHeader("Pragma", "No-Cache");
    response.setHeader("Cache-Control", "no-cache,no-store,max-age=0");
    response.setDateHeader("Expires", 1);
    response.getWriter().write("<message>hello world</message>");
    }

  • Permission denied during Ajax request

    Hi All,
    I have webapp wich contain ajax cross-domain request using Apache Proxy.
    When i try to load page in Safari and creat ajax request i see "Permision denied" error. In othe browser as IE and FF i dont have this problem.
    If i try create ajax request without proxy to a local server when i dont have this error.
    Can anybody help me?
    Thanks.

    Did you ever get a response or a solution to this?

  • Render HTML in phaselistener for AJAX request

    Hello all,
    I have a page in which some its content is loaded dynamically by an Ajax request. To do this, I have a PhaseListener that build some HTML code and send it back to the client.
    Right now in my PlaseListener, I build the HTML code by concatenating string but I'd like to know if it would be possible to use JSF components and its renderer to build some HTML code.
    Is there an easy way to handle this kind of Ajax request?
    Thank you
    Petch

    Hi,
    According to your description, my understanding is that you want to render column value as the HTML format in the xslt list view.
    I suggest you can set the “disable-output-escaping” attribute like below, it will render as html:
    <xsl:value-of select="@MyColumn" disable-output-escaping="yes"/>
    Here are some detailed articles for your reference:
    http://sharepoint.stackexchange.com/questions/16089/unescape-html-from-list-column
    http://doitwithsharepoint.blogspot.com/2011/06/sharepoint-list-forms-display-html.html
    Thanks
    Best Regards
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Jerry Guo
    TechNet Community Support

  • How to get all active ajax requests ?

    I need to write javascript function that gets some information about all active (at this moment) ajax requests that are posted by RichFaces.

    Thanks.........
    This command is working fine for me .......
    Get-ADComputer -Filter {enabled -eq $true} -properties *|select Name, DNSHostName, OperatingSystem, LastLogonDate
    But i am getting lastLogonTimestamp value as below:-
    lastLogonTimestamp
    129596940132789000
    How can i correct it???

Maybe you are looking for

  • SQL The Parameter is incorrect

    Hi! I have installed the latest SQL MP (6.5.4.0) at a Swedish customer that before have a lot of running script errors that was caused by the SQL MP difference scripts. Now we only get one of this alarm left. The alarm is "Operations manager failed t

  • How to make Audition automatically make separate "extracted audio" for each reference of a clip.

    Hi, I recently made the switch over to CC. When exporting a sequence from Premiere Pro to Audition in CS6, each clip in my timeling that was referencing the same source audio was assigned it's own "extracted audio." (i.e. - Lapel Extracted 1, Lapel E

  • Strange behavior of email notification: where is the log?

    Hi, The email notifications have a strange behavior in our productive system. When the system process whatever subscription only the firsts four notification are sent by email even thought  all the inbox notifications are sent. I checked the mail ser

  • After Yosemite clean install apps were there

    Hi there, today I did a clean install of my iMac, I erased completely the HDD, and I did install from the USB drive, Everything went ok with the Mac, and I did all the apps installations ok. Except... Adobe CC After download de Adobe CC desktop App I

  • OPM Inventory Control

    Using the Inventory Control resposibility on OPM, and doing a Move Immediate or Move Journal. Go to Inventory Control > Quantities > Move Immediate or Go to Inventory Control > Quantities > Move Journal IF we try to do the transactions above for an I