Click here to Skip to main content
15,891,136 members
Home / Discussions / Web Development
   

Web Development

 
AnswerRe: Rebinding Problem with Jquery knockout.js with MVC Pin
Vimalsoft(Pty) Ltd18-Jul-12 22:37
professionalVimalsoft(Pty) Ltd18-Jul-12 22:37 
Generalinstance of a soap web service not creating Pin
Anuradhaanu18-Jul-12 2:40
Anuradhaanu18-Jul-12 2:40 
Questionjava soap webservice and .net client validating service using soap headers Pin
Anuradhaanu17-Jul-12 18:42
Anuradhaanu17-Jul-12 18:42 
SuggestionRe: java soap webservice and .net client validating service using soap headers - Repost Pin
Richard MacCutchan17-Jul-12 21:54
mveRichard MacCutchan17-Jul-12 21:54 
Questiontracing Pin
hossam jarrah16-Jul-12 23:18
hossam jarrah16-Jul-12 23:18 
GeneralRe: tracing Pin
Sandeep Mewara16-Jul-12 23:33
mveSandeep Mewara16-Jul-12 23:33 
GeneralRe: tracing Pin
Albert Holguin18-Jul-12 16:03
professionalAlbert Holguin18-Jul-12 16:03 
QuestionHow to Bind Data with Knockout Pin
Vimalsoft(Pty) Ltd16-Jul-12 7:22
professionalVimalsoft(Pty) Ltd16-Jul-12 7:22 
Good Day All

i have a Strange issue here using the knockout lib. i have setup the Javascript like this

JavaScript
$(function () {
    $("#lstSearchOptions").change(function () {

        var data = {}
        data.id = $("#lstSearchOptions option:selected").val();
        $.getJSON("/Cars/SearchDetails", data, function (result) {
            var model = { 
                SearchOptionsR: ko.observableArray(result)
            } 
            ko.applyBindings(model, document.getElementById("tblsearchresults"));

        });
         
        $("#lstSearchOptions").blur(function () {
            $("#lstSearchOptions").hide("fast");
        });
    });  
}); 


and my HTML is defined like this

HTML
<table class="ResultsStyle"  id="tblsearchresults" data-bind="foreach:SearchOptionsR" >

       <tr>
           <td rowspan="2">


           </td>
           <td>
               Make:<div data-bind="text: Make"></div> </td>
           <td colspan="2" rowspan="2">

               <a href="#">View Report </a>
           </td>
       </tr>
       <tr>
           <td>
               Year: <div data-bind="text: Year"/></td>
       </tr>
       <tr>
           <td> </td>
           <td>
               Model</td>
           <td>
               <div data-bind="text: Model"></div></td>
           <td> </td>
       </tr>
   </table>

This code it is a partial view that is hosted and called like this

HTML
@Html.Partial("_Searchplain")


and the java-script are rendered on top of the Page Layout

HTML
@Styles.Render("~/Content/searchcss")


when running my Project i get the Following error

C#
2
Uncaught Error: Unable to parse bindings.
Message: ReferenceError: SearchOptionsR is not defined;
Bindings value: foreach:SearchOptionsR 


Thanks
Vuyiswa Maseko,

Spoted in Daniweb-- Sorry to rant. I hate websites. They are just wierd. They don't behave like normal code.

C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.com
vuyiswa[at]dotnetfunda.com
http://www.Dotnetfunda.com

QuestionREST and WCF Pin
Xarzu15-Jul-12 20:34
Xarzu15-Jul-12 20:34 
QuestionSystem.Web.UI.WebControls.FileUpload Pin
sheemap12-Jul-12 20:41
sheemap12-Jul-12 20:41 
AnswerRe: System.Web.UI.WebControls.FileUpload Pin
Richard MacCutchan12-Jul-12 22:11
mveRichard MacCutchan12-Jul-12 22:11 
AnswerRe: System.Web.UI.WebControls.FileUpload Pin
Sandeep Mewara12-Jul-12 23:12
mveSandeep Mewara12-Jul-12 23:12 
QuestionAutomatic Login to Another Domain Pin
Kyudos11-Jul-12 15:31
Kyudos11-Jul-12 15:31 
QuestionGridView preselectfirstrow and move to the next after button click event Pin
byka11-Jul-12 2:53
byka11-Jul-12 2:53 
Generalerror at download files in php Pin
Member 915215611-Jul-12 2:43
Member 915215611-Jul-12 2:43 
QuestionCaching html pages - no thanks - but how? Pin
lvq68410-Jul-12 20:11
lvq68410-Jul-12 20:11 
AnswerRe: Caching html pages - no thanks - but how? Pin
Gerben Jongerius10-Jul-12 23:22
Gerben Jongerius10-Jul-12 23:22 
GeneralRe: Caching html pages - no thanks - but how? Pin
lvq68410-Jul-12 23:28
lvq68410-Jul-12 23:28 
GeneralRe: Caching html pages - no thanks - but how? Pin
Gerben Jongerius10-Jul-12 23:35
Gerben Jongerius10-Jul-12 23:35 
GeneralRe: Caching html pages - no thanks - but how? Pin
lvq68410-Jul-12 23:41
lvq68410-Jul-12 23:41 
GeneralRe: Caching html pages - no thanks - but how? Pin
lvq68411-Jul-12 2:05
lvq68411-Jul-12 2:05 
Questionjson Question Pin
Aptiva Dave10-Jul-12 8:33
Aptiva Dave10-Jul-12 8:33 
AnswerRe: json Question Pin
Christian Graus17-Jul-12 17:40
protectorChristian Graus17-Jul-12 17:40 
GeneralRe: json Question Pin
Aptiva Dave19-Jul-12 11:11
Aptiva Dave19-Jul-12 11:11 
QuestionOn GridView each row update Need to show update Record in other gridview Pin
Asif201210-Jul-12 0:17
Asif201210-Jul-12 0:17 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.