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

Variables in Javascript on Rails

For an Ajax function in Javascript in a Rails partial, such as the following: $.ajax ({ type: "GET", url: "<%= url_for :action => "offline", :controller=> "user", :id => user.id %>" }); does the user in user.id have to be an instance…
0
votes
1 answer

strange devise routing error on loading partial " No route matches {:controller=>"devise/home", :action=>"lng", :locale=>"en"} "

When loading below partial Im getting strange routing errors for devise. #lng_select = I18n.name_for_locale(locale) #lngs #lngs_col1 %ul %li = link_to "English", :controller => 'home', :action => 'lng', :locale => 'en' %li =…
Rubytastic
  • 15,001
  • 18
  • 87
  • 175
0
votes
2 answers

zend framework partial not render echo on ajax request

I'd like to render a partial as a response to an ajax request in my controller action. My goal is to echo a Twitter Bootstrap Alert when ajax request is successful. Here is my action…
adamnyberg
  • 58
  • 1
  • 8
0
votes
1 answer

Ruby on Rails and how to render partial using json and jquery

Ruby on Rails newbie whose confused and frustrated :) I've spent over a day on this and think I've probably just confused myself. Basically, I'm trying to render a partial in a view. Here's what I have specifically: A form with 2 basic fields: …
purplerice
  • 473
  • 1
  • 6
  • 22
0
votes
1 answer

Cache RenderPartial output

I have a Pagination user control (ascx) that I render with: <% Html.RenderPartial("Pagination", ViewData["Pagination"]); %> I want to show this in two places though, above and below the results for that page. It seems inefficient to render the…
Chris
  • 26,744
  • 48
  • 193
  • 345
0
votes
3 answers

Correct way to share a view in the index page

I'm a Ruby-on-Rails newbie, just starting out. I have an MVC called "account_types", generated via scaffold to produce: controllers/account_types_controller.rb helpers/account_types_helper.rb models/account_type.rb views/account_types/_form, edit,…
Hellfire
  • 25
  • 4
0
votes
1 answer

using a usercontrol on aspx page in MVC using partial view

I have Dropdown and on click of a button, I want to display data in the usercontrol the below code is not working as expected. <% using (Html.BeginForm()) …
Miral
  • 5,968
  • 16
  • 57
  • 85
0
votes
0 answers

Can we use kaminari gem for pagination functionality in render (partial) view

Is it possible to use Kaminari Pagination in render (partial) view. If it is possible to do please tell me how to do.
-1
votes
1 answer

render partial in rails

In my application I have an button as below.
-1
votes
1 answer

How to bind html elements with dynamically created ID to jQuery events in asp.net MVC

I am iterating 3 times over a partial view in the Razor syntax. The code goes like this: foreach(var item in Model.items) //Will be run 3 or more times { {Html.RenderPartial("_viewname", item)} } Inside _viewname.cshtml, I am creating a table.…
-1
votes
1 answer

Render a partial view after page load using jquery while an event has been occurred

I need to render a partial view in a view using ajax, but not in page load. I want render this partial when a drop value was changed. This partial should have a model and load a jsTree from model information. When I searched for a solution I found…
Azad
  • 407
  • 1
  • 9
  • 22
-1
votes
1 answer

How to render ERB view as string?

I am trying to convert dyanmic HTMl to PDF using wicked_pdf gem. this is all i have class HomeController < ApplicationController def index @var = Hash.new @var = { first_name: "John", last_name: "Doe", address: "A & N", country: "India" } …
Rahul Singh
  • 3,417
  • 2
  • 25
  • 32
-1
votes
2 answers

Rails Ajax Javascript render partial with collection shows nothing

In my index.html.erb file I have: <%= render partial: 'avail_course', collection: @courses %> …
Khanetor
  • 11,595
  • 8
  • 40
  • 76
-1
votes
1 answer

Pass data to partial class

I am trying to pass a model to my partial class in asp.net however it keeps giving me the following error: I tried calling the partial class the following ways:
@*1*@ @Html.Partial("_CategoryPartial", new…
Arnout
  • 157
  • 1
  • 13
-1
votes
2 answers

Partial View not rendered from controller? WHY?

This is in accordance to my question: How to pass array created from jQuery to controller method? Here is my controller returning a partial view: public ActionResult PartialViewChild(int id) { //stmts /*model is assigned here */ …
user2771399
  • 135
  • 1
  • 4
  • 15
1 2 3
26
27
Title Note