Questions tagged [renderpartial]

The concept of rendering only a specific part of any UI. May also refer to the .NET `RenderPartialExtensions.RenderPartial` method or the Ruby on Rails `PartialRenderer`

The concept of rendering only a specific part of any UI. May also refer to the .NET RenderPartialExtensions.RenderPartial method or the Ruby on Rails PartialRenderer

391 questions
0
votes
1 answer

RoR, RSpec test failing after refactoring

I'm new to programming and I'm having trouble figuring out an expected error in Hartl's Ruby on Rails 3 tutorial. After refactoring some layout pages, I'm getting a recurring error on what seems to be the {visit signup_path}. Here's the partial…
0
votes
2 answers

How to use JavaScript with CHtml button() on a Yii page

I'm trying to use JavaScript in my page. My JavaScript code is: function edit(){ alert("test"); return document.getElementById("confirm").value=""; } Calling this, by onclick function
sher
  • 21
  • 1
  • 2
  • 8
0
votes
0 answers

renderPartial - Jquery - innerHTML

i am a bit pissed off JS and CSS registration by renderPartial. I have a problem that i have following view:
Then i have following scripts in footer: $.ajaxSetup({async:…
ekussberg
  • 559
  • 1
  • 8
  • 19
0
votes
0 answers

ASP MVC 3 render partial to string

I'm trying to render an .ascx file to a string using this method How to Render Partial View into a String And it works fine. But if the .ascx file that I'm trying to render contains another .ascx file rendered like so <%=…
Mihai
  • 2,740
  • 31
  • 45
0
votes
2 answers

where does render :partial html end up

I have a view with an ajax form: <%= form_tag( {:action => 'some_action'}, {:remote => true}) do %> ... <%= submit_tag "Submit" %> <% end %> Now, in the target action, I want to display a partial def some_action # some logic render :partial…
0
votes
1 answer

yii renderPartial variable not found

Possible Duplicate: PHP: “Notice: Undefined variable” and “Notice: Undefined index” I'm trying to display a form to create a new Donations within a view that renders Campaigns or rather a single campaign... It worked fine displaying the…
dzogchen
  • 383
  • 3
  • 10
0
votes
1 answer

shared partials error undefined method `empty?' for nil:NilClass

I've create a partial (views/cart/_cart.html.erb) for my applications shopping cart. I'm rendering it in only in my views/layouts/application.html.erb file. But when I run it I'm getting a NoMethodError on every page other than the…
0
votes
1 answer

Using javascript .click inside a partial rails

I have a javascript click function that is called every time my textbox gets clicked on, however for some reason it only works if the textbox is inside the main page, when I move the textbox into the partial I render nothing happens when I click on…
0
votes
1 answer

Call controller and reload partials

I have a page that renders multiple partials, including a Flash div that takes a while to start up. I have a button that I want to re-hit the controller, pull down any new data, and reload all the partials in the page except for the Flash…
Kevin Li
  • 1,540
  • 2
  • 17
  • 23
0
votes
2 answers

Using Razor "RenderPartial" and "RenderBody", the body is rendered on top

I am developing a site with Header, Main Menu, Body and Footer sections. I am using a web page base layout _Layout.cshtml where I use the RenderPartial() method to render the Header, Main Menu and Footer. For the body, I am using the RenderBody()…
Soph
  • 2,895
  • 5
  • 37
  • 68
0
votes
2 answers

how do I break f.submit from form builder into a partial layout in rails 3?

I am building a multi step form, and I'd like to reuse the button code across multiple views. here is the code I'd like to break out into a partial layout:
<%= link_to "Back", previous_wizard_path, :class => 'btn btn-large'…
diego
  • 123
  • 2
  • 14
0
votes
1 answer

Render partial with different link_to paths

I am trying to render a partial that displays a list of names (that I created using :resource :create) and link_to their respective pages. However, I want to implement this twice such that one list links to the show pages and the other links to…
user1187135
0
votes
2 answers

Partial with Multiple Variables

I am new to rails and need some guidance. I am sure I am misunderstanding something obvious. I would like the user name of the person who leaves a comment to show on the view page. I have a partial that goes through the collection of comments for…
Lauren
0
votes
1 answer

Using the id of a button to render a partial in Rails

I've got a view that displays a partial with a list of all the events a user has created, with an edit link next to it. What I want to happen is that when a user clicks 'edit', a form partial appears below so that you can edit that event. For…
ecs
  • 708
  • 1
  • 14
  • 33
0
votes
1 answer

Ruby on Rails - Render form for model

when I render an partial for my model I'm using: <%= partial @my_model %> Automatically it looks for the file ..view/my_models/_my_model.html.erb I really like this notation because it feels the right way! My Problem: Now I want a notation to…