angularjs select value push

http://plnkr.co/edit/4HjRcbNqKjyZgYPt6HTJ?p=preview

select or dropdownlist. once you select the value then the value sends to data object and my http post receives the value as a parameter and pass it enabling the page to load.  problem is the data is not passed or the dom is not loading.
LVL 9
Seven priceFull StackAsked:
Who is Participating?
 
Ioannis ParaskevopoulosCommented:
Hi,

As you currently have your plunker, it seems that the post is commented out. I guess it wouldn't work in plunker... Can you share the code of "page.aspx/webmethod".

This is now just a comment but may be useful. You do not need to stringify your object. The following should work:

$scope.myFunction = function (val) {
    var data = {
        fileTypeID: val,
        ...//whatever other post args
    };
    $http.post("page.aspx/webmethod", data)
    .success(function (data, status, headers, config) {
        console.log(data);
    });

Open in new window



Let me know how it goes,
Giannis
0
 
Seven priceFull StackAuthor Commented:
that seems to work correctly thanks
0
 
Seven priceFull StackAuthor Commented:
Tks again.
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

 
Seven priceFull StackAuthor Commented:
ok final question and I think i have everthing else covered.

http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/Q_28630427.html
0
 
Seven priceFull StackAuthor Commented:
hey my friend question about this post. the filter is reading 2 digit numbers as one. 12 is 1   and then 2
0
 
Ioannis ParaskevopoulosCommented:
Good morning,

To be honest, i did not understand your issue, can you give some more info?

Thanks,
Giannis
0
 
Seven priceFull StackAuthor Commented:
0
 
Ioannis ParaskevopoulosCommented:
On this plunker, can you give me exact steps to reproduce your issue?
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.