Posts by pnet • 14,727 points
909 posts
-
1
votes1
answer945
viewsA: How to control a Radiobuttonlist via code
Something more or less like this: if(Grupo.Checked){ SubGrupo.Checked = true else SubGrupo.Checked = false; } Or so: boolean radio; radio = radiobutton.isSelected(); then you check: if(radio ==…
-
4
votes1
answer1724
viewsQ: I have the reference, but when I run the CLR says the reference is missing
I have this include in my project: System.Web.MVC.Ajax. However when running the application I get an error Runtime, in the archive web.config. If I comment on the error line on web.config, error…
-
1
votes2
answers874
viewsQ: I can’t update a reference
I have an MVC project. At Solution are hanging some auxiliary projects. Well, it turns out that I’ve added a few references and when I start the project it gives me the error of saying that one…
-
1
votes1
answer61
viewsQ: Load view by parameter
How do I call a view by passing a parameter? Type, if parametro = 1 <h1>Teste1</h1> else <h1>Teste2</h1>
-
3
votes1
answer828
viewsQ: Getenumerator error while rendering a View
I did it just as a test: @model Operador.MVC.Models.OperadorModel @{ ViewBag.Title = "Operador"; } <table id="tblOperador" class="table table-hover table-striped" border="1" cellspacing="0"…
-
1
votes2
answers108
viewsA: Project Empty Mvc. I can’t startar
I already know what happened. There is no view Index, so he wants to return this view. I did so in my controller and solved: public ActionResult Index() { return View("Operador"); }…
-
2
votes2
answers108
viewsQ: Project Empty Mvc. I can’t startar
I started doing a project from scratch using MVC 4 from VS 2012. As I opted for an Empty, I can’t get the view started. I took the route: routes.MapRoute( name: "Operador", url:…
-
1
votes2
answers2872
viewsA: Grab element per id on another page by javascript
I solved it like this. I mounted the table header in the ajax itself (the id was on the same page) and just added the table body by ajax, coming from the other page. That solved: function…
javascriptanswered pnet 14,727 -
2
votes2
answers2872
viewsQ: Grab element per id on another page by javascript
I have two pages: A and B. In B I do a search and assemble a table(HTML) and define an ID for it. In A I have the table call and depending on the situation, I display or not the table. This already…
javascriptasked pnet 14,727 -
0
votes1
answer115
viewsQ: Filter the database loaded variable in javascript
I have a variable, which brings me all the data from the database. There is how, in javascript, I make a filter on it still, like it brings me 10 tuples and by the filter only one. Before anyone…
-
0
votes0
answers113
viewsQ: Doubt when instantiating object in javascript
I have the following line in my code: document.all['grid_tipo_prestador_' + ind_operadora].object = new _gridlist(document.all['grid_tipo_prestador_' + ind_operadora]); I confess, I have no idea…
javascriptasked pnet 14,727 -
1
votes1
answer1497
viewsA: jquery function is not being recognized on the page
Well, guys, I think I solved the problem. I put the code as it should be and removed the test button and the modal startou and did not give Submit on the page. I think the behavior of the button was…
-
1
votes1
answer51
viewsA: Construct a table on page B with BD data and download on page A by ajax_jquery
I solved so in B.Asp file: sRetorno = "<table>" sRetorno = sRetorno & "<thead>" sRetorno = sRetorno & "<tr>" sRetorno = sRetorno & "<th>Código</th>"…
-
0
votes1
answer51
viewsQ: Construct a table on page B with BD data and download on page A by ajax_jquery
I need now in a b.Asp file, build and popular a table(html) and then download by ajax in the a.asp file. So: b.Asp file <%@ LANGUAGE="VBSCRIPT" %> <% Option explicit %> <!--#include…
-
0
votes1
answer63
viewsA: Difficulty loading oracle data with js(jquery and ajax) function
What’s wrong is that mine URL was being mounted in the wrong way. 1) I don’t need path complete, because the file to be called is in the same folder as the caller. 2) I was riding the url wrong way.…
-
1
votes1
answer63
viewsQ: Difficulty loading oracle data with js(jquery and ajax) function
This is my scenario: I have two pages (A and B). In B I load a variable with data coming from Oracle. In B I also mount my table that will be displayed in A with this data. On page A I have my…
-
0
votes2
answers564
viewsA: Call in function jQuery does not find file
I figured out a way to get the base URL, without having to put it fixed, in the hand. ASP does this: <%=Request.ServerVariables("HTTP_HOST")%> So my jquery/ajax function looks like this:…
-
2
votes2
answers564
viewsQ: Call in function jQuery does not find file
I made a function jQuery and in the URL passage he is not finding the file. I found it strange he does not find, because the file exists. Every call I have within the site, is always the same, be it…
-
4
votes1
answer74733
viewsQ: Problems with: Uncaught Referenceerror: $ is not defined
There is a doubt in this forum here, but it doesn’t solve my problem. I have includes, including include jquery in the first line because link found this: Because, JS interpreter search for $ before…
-
0
votes0
answers88
viewsQ: Routine ajax doubt populating the page itself
Just one question. In the ajax URL field, when I work with MVC, I usually put the action/controller. Well, in my case now I have an Asp page. What passes is that ajax is on the same page that I will…
-
0
votes1
answer142
viewsQ: In IE the code works and in Chrome it doesn’t
I have that function: function AbreGrupoCarencia(pTitulo, pTipo, pLinha, pCodigo, pCodTsContrato, pCodEntidadeTS, pNomeEntidade, pProtocoloAtendimento, pCodContratoAmpliado) { var txt_codigo =…
javascriptasked pnet 14,727 -
3
votes2
answers481
viewsA: Javascript problems reading getElementByID in IE and Chrome
I resolved it. Well, the Revolution for no other person was not possible, although everyone here guided me on the way. Because I say it. Well, talking to the person in charge here, we had to…
-
0
votes2
answers481
viewsQ: Javascript problems reading getElementByID in IE and Chrome
I have an interesting problem and did not know this condition in IE. There is on the site I took to maintain, a call like this: document.getElementByID(...). Well, what happens is that IE is not…
-
0
votes3
answers12698
viewsA: Difference between dates
var total = (((Date.parse(data2)) - (Date.parse(data1))) / (24 * 60 * 60 * 1000));
-
1
votes0
answers87
viewsQ: Fieldsets are crashing in Chrome, but not in IE
I have some Fieldsets that when displayed on Chrome, they appear one below the other, which actually should be next to each other. This, of appearing next to each other, only happens in the IE. In…
-
0
votes2
answers1437
viewsA: Problems with Google Cache
the problem is solved, but one thing I can’t understand. Maybe it was already so and only now I noticed. The following: I give Ctrl+R, Ctrl+F5, Recarregar and nothing. Well, I did it yesterday and…
-
1
votes2
answers1437
viewsQ: Problems with Google Cache
I’m making some changes to a site and these changes involve Classic ASP and Javascript pages. What you are going through is that I always change the javascript, save and play it on my server it does…
-
1
votes2
answers132
viewsQ: I couldn’t understand the new cpaint()
The code below I don’t understand what it means: var cp = new cpaint(); cp.set_response_type('text'); cp.set_debug(false); cp.call('../../atd/asp/atd0027m_crossbrowser.asp', 'BuscarPrestadorNome',…
javascriptasked pnet 14,727 -
0
votes2
answers475
viewsA: How to use javascript without dialog boxes?
I don’t know if I understand what you want, but from what I read you want to give a message to the user, in some position on your page other than by alert() or something like that. You can use…
-
1
votes1
answer351
viewsQ: js function does not run on Chrome, due to window.Event
I read something about srcElement and saw that when I do window.event.srcElement, this approach works only on IE. Well, I don’t have enough allowances to discuss it. What’s going on is that a…
javascriptasked pnet 14,727 -
4
votes2
answers460
viewsQ: How to replace Eval() with another expression
Reading some comments and especially the comments of Mr Tobymosque, I try today to avoid the use of Eval(). Well, now comes the following. In simple expressions, how do I replace it? See below a…
javascriptasked pnet 14,727 -
0
votes1
answer1077
viewsQ: Make all javascript read utf-8 or iso-8859-1 character
I have a file js, in which I minify to perform the proper tasks. What happens whenever I add this js on my pages, where it is called, the characters of the Portuguese language become illegible. So I…
javascriptasked pnet 14,727 -
4
votes4
answers7995
viewsQ: Accentuation is unreadable on the page
My page (Header of a table and a modal popup), in accented letters or characters of the Portuguese language, are coming illegible. At the head of the page I have that statement: <head>…
-
1
votes0
answers120
viewsQ: My modal closes, but does not populate fields of the calling form
I have posted some questions here about ASP and js. I received a lot of help from my colleague Tobymosque and also from Maicon. Well, with the help of both and the code that Toby gave me, I’ve made…
-
1
votes1
answer40
viewsQ: What does the setCell command in javascript
The name implies that this command configures a cell in a table/grid. But I’m having trouble understanding its syntax mixed with asp. <%If col_cod <> "" Then %>…
-
1
votes1
answer145
viewsQ: Javascript code is giving error
I posted a thread here which dealt with how to replace an ASP code with cleaner Javascript. Well, I had a lot of help, from Maicon and Tobymosque. Well, I made the appropriate changes, to my mind…
-
2
votes2
answers238
viewsQ: What alternative to replace ASP codes with Javascript?
I have this code in asp and javascript. <%if trim(ind_tipo_proposta_pj) = "S" then%> var onum_seq_proposta_pj_ts = eval(txt_chamada + txt_prefixo + '<%Response.Write…
-
0
votes2
answers3293
viewsA: Datetimepicker, get first and last day of the month
There is an answer here See if that helps you too: DateTime dtUltimoDiaMes = new DateTime(DateTime.Now.Year, DateTime.Now.Month, 1).AddMonths(1).AddDays(-1); Remember this. The last day of the…
-
0
votes2
answers772
viewsA: Register only some data from a C# Asp.net MVC 5 form
In jquery/ajax you would have this: $.ajax({ url: '/Endereco/GravaEndereco', datatype: 'json', contentType: 'application/json;charset=utf-8', type: 'POST', data: JSON.stringify({ _logradouro:…
-
2
votes2
answers375
viewsQ: Debug javascript object Chrome
I put a break point in my function javascript(F9) and then I give F12 in the chrome with the application open. I press a button that will call this function for example and does not stop at the…
-
0
votes0
answers162
viewsQ: Modal screen does not close after searching the Iframe inside it
I decided to open this post, because the same is continuation of a post I did, but with the following difference. The research I was having trouble doing from a Modal screen with Iframe in ASP now…
-
2
votes1
answer474
viewsQ: Search does not work on Jquery Modal Screen
We have a search screen that works like this: There is a main screen. On it a button calls the search screen. This screen is loaded into a IFrame that is inside a Modal jquery-ui(Dialog). On this…
-
1
votes1
answer50
viewsQ: Doubt with debug of Chrome
I have that code on my page: <iframe id="dialog1" class="ui-helper-hidden" style="width: 700px;display: inline"></iframe> But in the debug of Chrome, I have these values: <iframe…
-
1
votes2
answers763
viewsQ: Page size equal to Iframe size
How do I make a page that is running inside an Iframe to have exactly the Iframe dimensions? My Iframe has 700px X 500px, but the page that is running inside it occupies half of Iframe or less and…
-
0
votes1
answer635
viewsA: Run a page inside a jquery modal screen by ajax without Iframe
Well, as for this post I solved. How? As for ajax without Iframe, I had to abandon, because I have to continue using Iframe. And to solve the problem of Iframe that was giving, in my case here, I…
-
0
votes1
answer635
viewsQ: Run a page inside a jquery modal screen by ajax without Iframe
It is possible to run a page that is inside my dir, within a modal without IFrame for ajax? If yes, how would I do that? At the time my pages would have this path:…
-
1
votes0
answers35
viewsQ: Run local files inside a frame in a modal
I have this code, an Asp function: sub montaContrato() %> <!--<div id="dialog1" title="Diálogo Modal" hidden="hidden">Este é um teste de Dialogo Modal usando JQuery-UI</div>-->…
-
5
votes1
answer1497
viewsQ: jquery function is not being recognized on the page
My situation is like this: I have a page in ASP that mounts a table. And I have another one, also in ASP that has functions, which do the following. Provides an html to popular table. I put a jquery…
-
1
votes3
answers1081
viewsQ: As I put a button inside iframe
I tried several ways and could not. I did so: <iframe id="ifrTeste" > <input type="button" /> ou <button...></button> </iframe> I couldn’t get the button to appear…
-
0
votes1
answer1694
viewsQ: Doubt when calling a modal jquery UI screen by passing an HTML page as parameter
I have this code. At the click of lupa.gif, I would like to call a jquery function and play a page into it with all the parameters passed like this: HTML: <img id='' style='display:; cursor:hand'…