Hi!
For a while now, I've been working on a JAVA-based web project, and have found this website to be very helpful on numerous occasions.
So, 'got some problems of my own now - and would appreciate if you help out!
Ok, so Here's the thing -
I'm trying to render a list of messages, each of which consists of a message title and a message...
Hello there,
I'm stuck with a rake task that need to prepare a newsletter for Mailchimp.
Using rails 2.x stuff googled I now have this code:
desc "Sends newsletter to Mailchimp list"
task :send_newsletter => :environment do
begin
# get render helpers
av = ActionView::Base.new(Rails::Application::Configuration.new(Rai...
I want to create a custom field that behaves exactly like the Lookup field type, allowing multiple selection, except that I want to modify the rendering of the items in the lists.
Each item in the list will have a button that displays the lookup options to enable / disable the desired boxes.
We have created a custom field in Visual Stu...
I'm loading product reviews from an xml datasource into a dashcode text area.
The text includes basic html tags. When it's loaded into the text area the tags are not rendered they are just there like this:
<p>Some text... etc.
Is there a way to have a Dashcode text area render the html?
Thanks!
...
I have been using the following code to get a metafile vector image for the content of IWebBrowser2 control as following:
IHTMLElement* pDocBody;
IHTMLDocument2* pDoc;
...
...
pDoc->get_body(&pDocBody); // get body element for IHTMLDocument2
pDocBody->get_parentElement(&pEleParent);
pEleParent->QueryInterface(IID_IHTMLElement2,(v...
This might be more of a philosophical question, but is there a compelling reason to go one way or the other when presenting text above an image:
1. Burn the text into the image on the server side and just show the image on the iphone
or
2. Send the background image and the text separately to the iphone and have the iphone render the t...
Hi,
I was looking at some tutorials on rails and found that people use a separate create function for saving form data. When i tried the same i was unable to repopulate the form, that is shown in the index.html.erb and is rendered by the index function. should i add a manual render command?
...
This is a strange one. I have a couple of hyperlinks that I use for paginating a RadGrid (next page, prev page). All works well until I decided to hide one or the other when on the first/last page. So I added the Visible attribute and set a value of true/false using a databinding expression like so:
<asp:HyperLink Visible="<%#(int)DataB...
Hi,
I am trying to render my listview containing names of doctors and few more details using a tablelayout component showing 4 textviews in each listview item. But I get an error while I am doing this..PLEASE HELP! I have a project deadline tomorrow.
When I debug by code, the control goes till IconicAdapter() constructer, from there it ...
I am a newbie in asp.net. I am trying to load the text and the URL into hyperlink from a database. After debugging, I found out that the value is successfully loaded into the hyperlink control, however it doesn't shows at the html code? Does anyone knows how this happened? Sorry for my bad English.
If myReader2.Read Then...
Hello!
I am writing a small app that at the moment generates a random map of textures.
I am drawing this map as a 10 x 15 group of "quads" which are infact all triangle strips. I use the "map" to grab an int which I then take as the location of the texture for this square in the textureAtlas. so for example 0 is the bottom left "tile"....
http://u.neighborrow.com/users/view/4 (sorry - had the wrong link up there, i had copied a redirect by accident)
<?php if (! empty($user['User']['avatar'])): ?>
<img src="/images/users/<?php echo $user['User']['avatar']; ?>" width="100" />
<?php else: ?>
<img src="http://gravatar.com/avatar/<?= md5(strtolowe...
My problem is similar to the one in this question, but the opposite.
http://stackoverflow.com/questions/3876891/how-do-i-specify-layout-false-in-rails-respond-with
The controller is sort of a file converter. It responds to many formats. One format is supposed to render an html layout showing metadata. This format need the layout to be r...
Hi,
I am basically trying to export from ZEND to csv as described
http://stackoverflow.com/questions/1136264/export-csv-in-zend-framework
and use the $this->_helper->viewRenderer->setNeverRender();
unfortunately the plugin code is still contained in the csv file.
Any clue why?
public function indexAction() {
$this->_helper->lay...
Is there a way to tell an entire controller to render a particular partial or text?
Example:
class PageNotesController < ApplicationController
render :text => "Testing"
def index
@notes = PageNotes.all
end
def show
@note = PageNotes.find(params[:id])
end
def create
@note = PageNotes.create(params[:note])
end...
I am having to explicitly render :layout => 'application' in my controller actions in order to get my new rails 3 app to actually use the application.html.erb layout file.
Any obvious things to look for that I am doing wrong? If I don't call the :layout option it just doesn't render the layout. I get a message like:
Processing by Foo...
I have a helper in my plugin test_plugin/lib/test_helper.rb:
module TestHelper
def test_render
render 'test_plugin/test_partial'
end
end
I have a partial test_plugin/app/views/test_plugin/_test_partial.html.erb:
<p>Hello World!</p>
In my application app/views/tests/index.html.erb when I do this:
<%= test_render %>
I get ...
Hi guys,
I spent lot of hours trying to figure out the following mystery that is happening on iPhone with rendering my rounded corner box.
It is a simple technique where there are 3 divs and basically 3 parts of the box: top, middle and bottom. Where the middle is repeating on the y-axis and top and the bottom are absolutely positione...