view

What are the defaults(homepage,controller,etc..) for cakePhp?

Hi, I understood (more or less) the separation between the MVC parts in cakePhp, however i cannot understand what are the defaults. meaning: What should i edit in order to change the root-entry-point of my site(the known "index.html" or "index.php" file, that shouldn't be changed in cake)? What controller? What model? What view? What ...

unique identity or identifier for view in sql server 2005

I've got a view that's a union of two tables that have overlapping keys and I want to uniquely identify the rows for later retrieval. How can I add an identity or identifier column to the view rows so I can retrieve the rows later by that value? ...

Custom titlebar background

Hi, I've created a custom titlebar for an Activity of my Android application. However, the background is blue. I would like it to be the gray gradient that toolbars generally are. How can I achieve this? Here is the XML of my toolbar. It places a checkbox on the left side and some text in the center. <?xml version="1.0" encoding="...

View State lost with click...

...

In Ruby on Rails, how to render JSON?

I tried the following to respond to AJAX and it works (in HAML): - response.content_type = "application/json" = render :text => array_data.to_json but - response.content_type = "application/json" = render :json => array_data.to_json doesn't work. I thought I could use = render :text => array_data.to_json instead of th...

Changing position of images in a table view cell

Hi I'm messing around with iPad development, and I'm trying to create a table view similar to the one found in Apple's Mail application, when setting up an account for the first time. It's basically just a grouped table view, with an image representing each of the supported mail services in the middle of each table view cell. Now, I ha...

Anyway to use XML layout files for specific View/ViewGroups?

I have a custom View that I'd like to specify the layout of in an XML file rather than through code, is there anyway I can take an Android XML layout file and use it to flush out my custom View's content? I know it can be done in an Activity via the setContentView method, but there doesn't seem to be a similiar method for Views. Thanks...

[UIImageView _cleanUpCrossView], problem on iPad

guys,, need help here. i have an app that completely works on iPhone (ios 4) and iPod touch. but when i try on iPad i got this Log error message : -[UIImageView _cleanUpCrossView]: unrecognized selector sent to instance 0x2e7760 CoreAnimation: ignoring exception:-[UIImageView _cleanUpCrossView]: unrecognized selector sent to instance 0...

Cocoa Touch, which to use: Window Template or View Template?

I have another issue related to Views, and i've ended up here dealing with Views and Windows in general. My understanding of all the fundamentals of iPhone development has been turned upside down. Can somebody explain, or point to a reference, the difference between these 2 templates? Ex: My app doesnt show a Window in the Interface B...

how to show a webview inside an activity in the middle of screen

Hi,I am having issue while showing a WebView in an activity in the middle of the screen. I have an activity and I want to show a webview in the center of screen. My activity is transparent so background activity will be visible. Whenever I try to create a webview and add it to activity using setContentView(webview) it always shows the vi...

ViewSwitcher dragging (cf. Calendar week view / Google Talk conversations)

Hi, I want to implement something like the Android Calendar week view, where you can move through the weeks -- or like the Talk app, where you can switch between conversations. In other words, I want to be able to drag the views, not just swipe them. The only thing that I seem to be able to do is to switch views (with a sliding animati...

How to assign the model to an partial view loaded via jQuery

Hi, normally i load a partial view by doing <% Html.RenderPartial("MyPartialView", Model); %> But how can i assign the Model to the corresponding action, when i instead use jQuery to load this partial view? $.ajax({ url: "/MyUrl/", data: 'html', success: function (data) { $('#MyPartialView').html(...

Android: Measure Size of View before rendering

I have a TextView that displays text that changes and run time. I want to use the View.getLineCount() method to see how many lines the TextView takes up and do different functions accordingly. The problem is I need to determine the number of lines the TextView takes up in the same method that needs to know how many line it takes up. I ha...

How to perform a select in a single statement?

I have a Sql Server 2005 table with following data: idHearing is the primary key (identity), idCase is a foreign key that may duplicate. StartDate and StartTime specify the date and time of the event - both fields are of DateTime type (for whatever reason these are separate fields). All StartDate data has a time of 12:00:00. All St...

Question about view controllers in the iPhone SDK

Hello. I will begin by saying that I'm 15 years old and from Sweden, so please excuse my English. I'm reading a book called Beginning iPhone 3 Developement - Exploring the iPhone SDK, by Dave Mark and Jeff LaMarche. I've read about navigation controllers and multiview applications, and now I want to create my own little app, a very simp...

IPhone App Load Screen

Hi All, When my application first loads on the iphone it throws up a black screen for about 1/2 a second than it goes into the app. Im just wondering what screen this is that first shows on load? I would like to edit it so i can show my logo on it so the user doesnt just get a black screen. It is an application based off the standard na...

Android - Using custom View in Widget

Hi, i made a extended a View, overwrote the 3 View Contructors and tried to insert it on my xml of a widget. The Exception is: java.lang.ClassNotFoundException: com.mypackage.myView in loader dalvik.system.PathClassLoader@4001e710 is it possible to use custom views in Widgets? ...

SQL Server Full Text Search Index View

I want to use the Full Text Search feature of Microsoft SQL Server. If I have a table Client which refers other tables like City, Country, Department, etc. is it better to create a separate table that would hold de-normalized data, which would then be full text indexed, or is it better to create a dummy value in every foreign table (for...

How can I reload an Activity that exists within a TabView?

I have a Tabview with 3 tabs (each having their own activity). I have a tab that parses a RSS feed. How can I refresh this feed via a menu button? I tried doing the following but I lose the tabs above of course. Thanks! Intent UpdateFeedIntent = new Intent(classA.this, classA.class); startActivity(UpdateFeedIntent); finish(); ...

android set visibility of a button on timer

Hi, I have an app that shows a disclaimer at the beginning of the program. I want a button to remain invisible for a set amount of time, and then become visible. I set up a thread that sleeps for 5 seconds, and then tries to make the button visible. However ,I get this error when I execute my code: 08-02 21:34:07.868: ERROR/AndroidRunti...