Posts by DiegoSantos • 1,004 points
60 posts
-
1
votes2
answers650
viewsA: Object orientation with jQuery/Javascript
That is correct. But I would make the following observation. For instance, the new Classe().init() But it’s not the only way. You can also use as an aid, the prototype. will be useful to you. With…
-
-1
votes2
answers76
viewsA: How can I create a list
Dude, what I get from the question is that you need to put a list of products inside the session. Is that it? If it is, you cannot place the list as an object. You will need to serialize your list.…
-
-1
votes1
answer1484
viewsA: How to align form fields in HTML
Man, I don’t quite understand what you want to do but come on. If you want to take the column between input and label, just use the colspan attribute in the label column, for example. See document:…
-
1
votes1
answer522
viewsA: The index and length shall refer to a location within the sequence
You can’t do something like that? data.ToString("yyyy-MM-dd hh:MM")
vb.netanswered DiegoSantos 1,004 -
1
votes3
answers133
viewsA: Create a means not to repeat my code
Suggestion: Do the model validations. In your code, you will only need a Try catch. Example: Model if(String.IsNullOrEmpty(this.Name)){throw new Exception("O nome é obrigatório")} Already in the…
c#answered DiegoSantos 1,004 -
0
votes2
answers64
viewsA: Is there anything in MVC that is equivalent to the <Asp:Repeater> of Web Forms?
If you specify the input name so name="exemplo[]", and in the controller put like this (string[] exemplo), he will understand. Try so to see.
-
0
votes1
answer275
viewsA: CSS - Media Queries loading backgrounds. How do they behave?
Look, I’ll do better than answer you directly. Try opening this page in google Chrome with the console open. Go to the network tab, select "IMG". This screen will show you in the order everything…
-
1
votes2
answers2270
viewsA: Request blocked by CORS Policy
Look, I’ve had some problems like this a few times. usually has two motivations: The server is not accepting CORS requests (coming from js) Request is being sent as OPTIONS and not as GET, POST,…
-
0
votes2
answers44
viewsA: Return URL that is fixed
You can try on your Alert, put it this way? window.onload = function(){alert('Imagem cadastrada com Sucesso.');} You may be loading the page but you are not running . js.…
phpanswered DiegoSantos 1,004 -
1
votes4
answers286
viewsA: Put Required in function
Hey, how you doing? I’m not sure I quite understand your question, but come on. Note: I took the liberty of making some changes to the code. <html> <head> <script> function…