391 questions
0
votes
1
answer
1k
views
Rails Turbo How do I render a partial when clicked?
I have a Ruby on Rails application with a popup currently set to show and hide through Turbo Toggle. However, I've noticed that this approach impacts the page loading speed.
To reduce the load times ...
0
votes
0
answers
96
views
async Dynamic partial view using action
System.Web.HttpException: 'Error executing child request for handler 'System.Web.Mvc.HttpHandlerUtil+ServerExecuteHttpHandlerAsyncWrapper'.'
InvalidOperationException: HttpServerUtility.Execute ...
0
votes
1
answer
4k
views
Missing partial with {:locale=>[:en], :formats=>[:html], :variants=>[], :handlers=>[:raw, :erb, :html, :builder, :ruby, :jbuilder]}
I want to render a form in a show.
I know the error doesn't come from the path or a folder that I forget to create because the partial is not showing, not even in the application.html.erb file ...
1
vote
1
answer
342
views
Rails missing partial *.js.erb
I'm trying to inform user about errors without reloading the whole page, but I get an error "AnswersController#create is missing a template for this request format and variant"
create.js.erb
...
0
votes
1
answer
71
views
Rendering partial view ASP MVC
I want to render a partial view within the main view.
This is what I have done so far, but non of the code not loading the partial view.
Can anyone help me with this? Thanks in advance.
This is my ...
0
votes
1
answer
1k
views
Class Library Tag Helper for Partial Pages not working in ASP.NET Core 3.1 Razor Pages application
As part of my work on an ASP.NET Core 3.1 Razor Pages web application, I created several custom Tag Helpers. Once I had all of these working the way I wanted and expected (as part of the ASP.NET Core ...
0
votes
1
answer
55
views
Opening and closing braces issue
I can't figure out this error while my all parenthesis are correctly closed.
0
votes
0
answers
243
views
Append renderPartial to view with JS - Yii2
I have a row with 2 fields in activeForm (for example Date1 and Date2 fields).
These fields are DatePicker (Kartik)
When the page loaded this fields working normally when clicking the fields opened ...
0
votes
1
answer
74
views
Partial rendering based on condition and sourced from different array
A somewhat complex action assembles two set of arrays into a single one.
@packages = (@packageoffers + @availables).sort_by(&:cost).paginate :page => params[:page], :per_page => 20
The view ...
-1
votes
1
answer
498
views
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)}
}
...
0
votes
1
answer
191
views
Is there a Binding.scala way to append dom elements?
I would like to append a Binding node to another Binding node without re-rendering the parent node.
Is there a specific way how Binding.scala would handle this?
0
votes
2
answers
4k
views
Yii2 how to send controller action response without redirect?
I have a Single page application in Yii2
the main page contains
1. a column with a list of objects + create button
2. a column for dynamic content of create/update forms
My problem is when loading (...
0
votes
1
answer
535
views
RenderPartial and popup modal MVC C#
I have some code in Index view
@foreach (var item in Model){
<tr><td>......</td>
<td><button class="success" data-toggle="modal" data-target="#detailsModal" >details&...
0
votes
1
answer
652
views
PHP Recoverable Error – yii\base\ErrorException Object of class yii\web\Response could not be converted to string
I use renderPartial to view CRUD in my frontend/index.php. but its giving error
PHP Recoverable Error – yii\base\ErrorException
Object of class yii\web\Response could not be converted to string
...
2
votes
1
answer
8k
views
How do you make a partial in react
I'm trying to figure out how to make and use a partial in react. I've figured out how to make a new page, but now I'm trying to put my footer in a partial and add it to my page layout.
I have a page ...
1
vote
1
answer
1k
views
How to render the leaf component of tree component without re-render entire tree in ReactJS
Imaging there is a JS object containing the definition of the tree. The definition of leaf looks like:
{title:'leaf A'}
The tree JS object looks like:
{{title:'leaf A', children:{title:'children of ...
0
votes
1
answer
814
views
The virtual path '/' maps to another application IIS 7
I call HTML.RenderPartial in Razor take tilde (~) and works fine on VS2015 but when publish on IIS under Default Web Site give that error "The virtual path '/' maps to another application, which is ...
1
vote
0
answers
377
views
jquery-inputmask stops working after ajax form submit
I am submitting a form with remote:true. The request goes and come, the format: js is loaded as well.
The problem is that I have a input which uses a mask powered with jquery-inputmask and this mask ...
0
votes
2
answers
2k
views
asp.net Core 1 RenderPartial ViewDataDictionary
I am re-writing a website in VS 2017 that was originally written in VS 2010. The command I used originally to display my visitor count in the footer was:-
@Html.RenderPartial( "/Counter/Counter.ascx", ...
0
votes
1
answer
412
views
Rails form_for renders partial form_for to list values without submitting to DB, but now 2 submits
I have a simple display - form_for an application that renders another partial with form_for for displaying education qualifications. The partial is polymorphic. So, now I have 2 submits, the main ...
1
vote
1
answer
238
views
How Rails render finds variable
Simple example:
index.html.erb:
<% @posts.each do |post| %>
<%= post.title %>
<% end %>
I can refactor this and move content to the _post.html.erb partial:
index.html.erb:
<%=...
4
votes
2
answers
3k
views
Can not pass variables to partial (Rails5)
I got such a problem - there is a partial and I can not pass a variable there:
in partial I have;
<%= object.title %>
How I pass variables:
<%= render :partial => 'shared/post_preview', ...
0
votes
0
answers
190
views
Rails - Render function from another controller
I have a route where the url facebook/get/:id will render a partial, with no layout, of the profile of a person from Facebook with the given id.
The function facebook#get expects param[:id] to be set ...
0
votes
1
answer
60
views
Rails Partial with variable
UsersController
def index
@users = User.all.paginate(page: params[:page])
end
users/index.html.erb
<% @users.in_groups_of(3, false).each do |users| %>
<% users.each do |user| %...
0
votes
0
answers
105
views
Passing wrong model to dictionary
First post here, so i'm sorry if this post is not very good!
I am currently building a web application using asp.net, and ran in to this problem:
The model item passed into the dictionary is of ...