I have a very simple code to show a modal controller (nextController is a class member):
nextController = [[InstructionsScreen alloc] initWithNibName:@"InstructionsScreen" bundle:nil];
[self presentModalViewController:nextController animated:YES];
[nextController release];
And then when the controller should hide:
[self dismissModalV...
Hi all,
There's got to be something I'm missing. I've tried using $.ajax() and $.post() to send a string to my ASP.NET MVC Controller, and while the Controller is being reached, the string is null when it gets there. So here is the post method I tried:
$.post("/Journal/SaveEntry", JSONstring);
And here is the ajax method I tried:
$....
What do you have in your model classes. Generally if i use any framework or any library (Zend Framework) , my classes only have variable which is table name . I know that in complicated applications models have lots of thing to do , so i want to know what these jobs are.
Maybe instead of using library`s general select function ,you cre...
I would like to get started with PHP, and 5.3 release seems to bring many nice features (namespaces, lambda functions, and many others).
I have found some MVC frameworks, and some of them support only PHP 5:
PHP Frameworks
PHP MVC Frameworks
Model–view–controller on Wikipedia
but can anyone recommend one of those MVC frameworks that...
Hi all,
I currently have the following within my view
function loadData() {
var url = "/Testx.mvc/GetData";
var id = "111111";
var format = "html";
$.ajax({
url: url,
type: "POST",
dataType: format,
data: "id=" + id,
success: populateResults
});
}
function popula...
It's been a year since this question and I'd like to know now - what view engines are people finding very good and why?
...
Ok this seems like an easy one:
In c# asp.net mvc I can declare some public class like:
public class Foo {
public static string Bar {get
{return "bar";}
}
}
and access it from any html like:
<%=Foo.Bar;%>
right?
Well, I have to do the same in ASP.NET MVC VB.Net but I cannot access any variable or method:
public class Fo...
i have used this example ...(with some changes ) and works fine.
http://weblogs.asp.net/johnkatsiotis/archive/2008/07/23/asp-net-ajax-4-0-template-example.aspx
here is code of .aspx page from my example
<div id="divdata" class="sys-template" style="background-color:Gray" >
<p>Event Title:<input id="title" size="150" type="text"...
What's the best way to log in ASP.net MVC? I mean any event, I'm currently using NLog but I know there are a lot of possible ways to do it.
...
This is a design pattern question, so I'll illustrate it with a simple example of an address book app.
Firstly a few assumptions.
1. It appears to be acceptable to directly use DB domain objects as the backing store for Spring MVC forms.
Iteration 1 of my app I created a JPA mapped Person object with various attributes attached. Using ...
Hi there,
I am looking for a simple Java library (having a friendly license; Apache2, MIT, BSD) that I could use for parsing http RESTful requests. I will be taking care of representing the resources but I don't want to reinvent the mapping and the URI transformations, if possible?! I need a simple support for parsing routes, such as:
...
I'm wondering if someone can address some of the issues I am having? I create a rails app:
rails myapp -d mysql
cd myapp
haml --rails .
rake db:create:all
Then I want to use a mysql client to create tables. Lets say users and customers. A customer is also a user so you have schema like this:
users
----------------
id int, not...
I only recently completed a unit on software patterns and am now attempting to comprehend the PureMVC framework. One thing has got my stumped however, something which is simple to the gurus here.
I'm attempting to create an instance of the singleton Facade class. In the constructor, the comments state:
This IFacade implementation is...
Hi
I'm reading programming best practices and it is said that when creating a function we should make it do a only single specific task.
I got model functions that retrieves data and it's related data. Example:
$this->Student->StudentAssignments();
Currently this function retrieves the student's assignments plus the question for each ...
When building applications, whats the best way to decide what goes where. How do you know what functions to put in what controllers and models. For example, I'm building an application that is based highly on location. Users can post different things, that will in turn be shown to other users within a certain distance. Also, each user wi...
We want to use Html.RenderAction in our MVC1.0 project. I have downloaded the Futures Microsoft.Web.Mvc dll from codeplex, copied it to the bin folder in our project, and added a reference to it.
However, when I try to use it in one of our views, Html.RenderAction is still not available.
It might be just a silly detail I'm missing, but...
I am using Zend Framework and want to be able to end my URLs in ".htm". What should I add to my .htaccess file?
So the following would be equivilent:
www.mysite.com/controller
www.mysite.com/controller.htm
As would:
www.mysite.com/controller/action
www.mysite.com/controller/action.htm
Nothing I have tried seems to work.
...
I'm working on a mini CMS-like application using asp.net MVC 1.0 (I will upgrade it once 2.0 is released). Once feature I want, that is pretty vital to a CMS, is the ability for an admin to add pages to their site.
Essentially, if the admin wants to add a page called "Links", I want them to be able to do so without having to go through...
I have cascading drop down lists in a .net mvc view and am using JQuery onchange to pull the next drop down list using a json response. The problem comes in where iI get a circular reference when trying to serialize the linq to sql response.
I understand why it is happening, its because I have the buyer -> contracts and contract -> b...
I'm tired of zipping up my ASP.net MVC project all the time, so I tried to connect the entire project folder to Live Mesh, so I could work on it both at home and at the office. It seemed to work, but it turns out all the views are excluded and replaced with .wlx counterparts.
Is this a known limitation of Mesh? Does anyone know of a wor...