# Help accessing my application via Javascipt SDK

**URL:** <https://community.dreamfactory.com/t/help-accessing-my-application-via-javascipt-sdk/103>\
**Category:** Client SDKs\
**Created:** [June 17, 2014, 8:58am UTC](https://community.dreamfactory.com/t/help-accessing-my-application-via-javascipt-sdk/103 "2014-06-17T08:58:27Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pavel](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.dreamfactory.com/pavel/32/1197_2.png) [@Pavel](https://community.dreamfactory.com/u/Pavel)\
**Post date:** [June 17, 2014, 8:58am UTC](https://community.dreamfactory.com/t/help-accessing-my-application-via-javascipt-sdk/103/1 "2014-06-17T08:58:27Z")

</div>

Hi guys.  
Just started writing a Javascript client for our application and I am experiencing some difficulties accessing the API.  
I am trying to call my app which has a service in the DSP named, let’s say, “Test1”.  
So I attempt to trigger it this way:

window.app.getTest1 = function () {  
window.df.apis.Test1(function (response) {  
});

What I see in Chrome’s debugger is: Uncaught TypeError: object is not a function  
I guess he doesn’t recognise window.df.apis.Test1 as the correct path to my service?

Hope this makes sense…  
Thanks in advance, Pavel

---

<div class="post-metadata">

**Author:** ![Pavel](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.dreamfactory.com/pavel/32/1197_2.png) [@Pavel](https://community.dreamfactory.com/u/Pavel)\
**Post date:** [June 17, 2014, 9:18am UTC](https://community.dreamfactory.com/t/help-accessing-my-application-via-javascipt-sdk/103/2 "2014-06-17T09:18:14Z")

</div>

Sorry, I meant this:

```
 window.app.getTest1 = function () {
    window.df.apis.Test1({table_name: "some_tabele"}, function (response) {
        //Do something with the data;
       document.getElementById("test-results").innerHTML = JSON.stringify(response);

    }, function(response) {
        document.getElementById("test-results").innerHTML = window.app.getErrorString(response);
    });
};
```

---

<div class="post-metadata">

**Author:** ![Pavel](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.dreamfactory.com/pavel/32/1197_2.png) [@Pavel](https://community.dreamfactory.com/u/Pavel)\
**Post date:** [June 17, 2014, 10:38am UTC](https://community.dreamfactory.com/t/help-accessing-my-application-via-javascipt-sdk/103/3 "2014-06-17T10:38:36Z")

</div>

Oh I found it:

```
window.df.apis.test1.getRecords({table_name: "table_name"}

```

Thanks, Pavel

---

<div class="post-metadata">

**Author:** ![Mark](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.dreamfactory.com/mark/32/69_2.png) [@Mark](https://community.dreamfactory.com/u/Mark)\
**Post date:** [June 18, 2014, 1:09pm UTC](https://community.dreamfactory.com/t/help-accessing-my-application-via-javascipt-sdk/103/4 "2014-06-18T13:09:04Z")

</div>

Pavel - so by the looks of it you were able to solve your own issue. Always puts a smile on my face when this sort of thing happens 😄

Please feel free to reach out with anymore questions. We’re here to help.

Mark

---

<div class="post-metadata">

**Author:** ![robert1on1](https://avatars.discourse-cdn.com/v4/letter/r/87869e/32.png) [@robert1on1](https://community.dreamfactory.com/u/robert1on1)\
**Post date:** [February 13, 2015, 11:12pm UTC](https://community.dreamfactory.com/t/help-accessing-my-application-via-javascipt-sdk/103/5 "2015-02-13T23:12:44Z")

</div>

Help posting data with form,

Hello, please help me am new to dreamfactory i posted a question and  
still haven`t gotten any response back yet. here is the link to my  
question please.

> [@Javascript form to POST data to back end database?](https://community.dreamfactory.com/t/javascript-form-to-post-data-to-back-end-database/842):
>
> Hello, I`m new to dreamfactory and i have what i believe to be a basic question that i need help with? I would like to create a form to through which a user can send data to the backend database, This is part of some sample code from one of the default apps index.html pages. \<p\> Fill In The Form Below \</p\> Surname: \<input id="surname" name="surname" type="text" /\> \<br /\>\<br /\> Company: \<input id="company" name="company" type="text" /\> \<br /\>\<br /\> Email: \<input id="em…
