mvc

asp.net mvc validationsummary css

how can i define a css on validation summary ...

asp.net mvc c# javascript web.config

i want to have retrieve a "imagetype" from appsettings in my web.config in javascript . how can i do that? ...

Desigining a new Joomla component

I've very less experience in Joomla. I'm going to create a joomla component. I've heard about the MVC structure in component development. What is the best method to follow? 1)Using simple component development or 2) using MVC Is there any problems if I uses the first one? ...

How do I specify error member key in ASP.NET MVC CustomValidation?

I'm trying to add CustomValidation and make it return error for Html.ValidationMessageFor(m => m.SubleaseCompany) [CustomValidation(typeof(CreateSpaceModelValidation), "ValidateCreateSpaceModel")] public class CreateSpaceModel { public Building Building { get; set; } public Space Space { get; set; } public string Sublease...

Call a view with ajax inside jquery file

I have a jquery file from which I'd like to call a view. The action at the controller is called Inbox. What is the right way to call this action from the jquery file? ...

What is the elegant solution for unrelated views in MVC web frameworks?

I've had a problem with the following issue in Rails and ASP.Net MVC. Often there are multiple widgets of functionality on a page, yet one controller action is supposed to render the page. Let me illustrate: Let's say I have a normal e-commerce site, and the menu is made of categories, while the page is to display an group of products...

Need help tweaking my Java EE MVC approach

Below is an action class - I guess similar to what STRUTS uses - which is called from my servlet controller (btw, I am not using STRUTS). I am hung up on a few things. 1) Should I be passing a CommitmentItem BO/DTO/Javabean (whatever it is called) to my CommitmentItemForm instead of the request object inorder to stay MVC compliant?? c...

How can I check if UIViewController "Did Dismiss"?

Hi, I would like to know, I have an UIButton in class A that does presentModalViewController:aViewController... I want to check when aViewController is dismissed. How can I do that? Thanks! ...

Need help figuring out how to write my zend view helper

Hello I'm fairly new to Zend Framework and MVC in general so I'm looking for some advice. We have a base controller class in which we have some methods to obtain some user information, account configurations, etc. So I'm using some of those methods to write out code in various controllers actions, but now I want to avoid duplicating th...

View part of a web application - what technology for a pretty intensive grid view?

Hi everybody, I'm about to have to write a web page/app that will serve the agenda for circa 100 people on a page. One line per person, one column per day with 3 clickable zones in each cell. In HTML, the page is way complex for the browser to load quick and there is no possibility to click on a border between 2 cells to for example sp...

Trim leading and trailing white spaces in JSON values

All, I make a JSON request to a web server using PHP and it returns me a JSON response in a variable. The JSON response will have lots of keys and values. I would like a function which trims leading and trailing white spaces in each "value" of the key-value pair for the entire JSON response. How can I do that through PHP? Ex: json_dec...

Studying tutorials for ASP.NET MVC2, struggling to apply to bigger problem

I am starting asp.net MVC2 by going through a few tutorials, but they are all too basic when trying to apply this to my real world problem. I have been following a tutorial based on a simple one table database. I build the data model using ADO.NET Entity Data Model and select to generate the model from database. Then I make a controller...

CakePHP sub query SQL in HABTM relation

I want to suggest related products by tags and sort order by the most matched. the HABTM model association between Product and Tag class Product extends AppModel { //.. var $hasAndBelongsToMany = array("Tag"); //.. } and vice versa in Tag model. also join-table name is "products_tags". for Ex.sample.. //just sample of Product conta...

Ajax get html on SSL

Hi, have the following code: $(document).ready(function() { $.get("https://www.somesite.com/Securepay/Return.aspx, function(data) { alert(data); $("#result").html(data); }); }); the above code does not return the html. Does anyone have a solution? thanks ...

Best Practice: Sessions and FormsAuthentication.SetAuthCookie

Hi, say you have a website for a shop where you have to login/register to access the checkout. Do you use FormsAuthentication.SetAuthCookie("user_id", false) for that? then everytime a user adds an item to the shop it calls a method that adds the item in a database table. the method is going to require the user_id to save this in the t...

Help with asp.net mvc and ViewData in MasterPage

In order to avoid having to pass Data that goes in the master page of my site before every view in every controller I have created an ApplicationController that sets the data on its constructor... the problem with this approach is that one of the viewdatas I must pass is the url of the profile Image of the current logged in user. [Autho...

Populating Dropdownlist in MVC

Hi, I am using Asp.Net MVC. I have a dropdown in home page. I am using a Html helper dropdownlist. Is it possible to populate the dropdownlist using Jquery when the page is loaded? I am new to Jquery + MVC Many thanks in advance ...

How do I break an iPad view up into more manageable chunks?

Hi all, I know I'm probably going to be berated for not properly reading the HIG or some documentation, but after going through several training videos and building a number of small projects on the iPhone, I'm now trying to put stuff together on the iPad and, well, my brain hurts. I understood the idea on the iPhone that one view = on...

Session Expire Filter forces user to clear browser history ( cookies ) when timeout occurs.

My ASP.NET 3.5sp1 MVC app uses the following filter attribute class to implement session timeout behavior. It does work to an extent in that it takes user to the login page and forces login however when the filter is executed again it always detects a timeout and returns user to the login page. The only way to proced is to clear the brow...

JSP menu design advice

I'm looking to create a horizontal menu in a jsp page - the menu items vary by user but stay consistent over every page in the site for that user apart from the appearance of the active tab. Seems a simple enough problem at first (the appearance is modified using css) but I can't decide where to construct the menu. Menu code: <ul> ...