|
Marc Clifton wrote: just straight Javascript
Not even a little jQuery?
jQuery can make AJAX better too.
$("#div1").load("localfile.txt");
Loads the target txt file into the selected div asynchronously.
Quite nice and very simple.
"LukeMarc, come to the dark side."
|
|
|
|
|
raddevus wrote: Not even a little jQuery?
jQuery is fine. I've even occasionally throw in some knockout, I've been forced to use backbone (not all that bad of an experience), still need to investigate vue.js, won't touch angular, and do a lot of with Bootstrap and jQWidgets.
So, I'd say I'm definitely at least a shade of grey.
Latest Article - Code Review - What You Can Learn From a Single Line of Code
Learning to code with python is like learning to swim with those little arm floaties. It gives you undeserved confidence and will eventually drown you. - DangerBunny
Artificial intelligence is the only remedy for natural stupidity. - CDP1802
|
|
|
|
|
Aurelia for my HTML layer, with C#/MVC running on core 2 providing nothing more than a json/rest api is my drug these days.
If I want something like a date/version in my page, I just add a simple ajax call to grab a bit of json from a simple light controller (usually 4 or 5 lines) and add it into the footer class in my front end master template, and hey presto, all automagic
|
|
|
|
|
Peter Shaw wrote: Aurelia
Aurelia looks interesting. It really is a free-for-all out there though when it comes to Javascript frameworks.
Latest Article - Code Review - What You Can Learn From a Single Line of Code
Learning to code with python is like learning to swim with those little arm floaties. It gives you undeserved confidence and will eventually drown you. - DangerBunny
Artificial intelligence is the only remedy for natural stupidity. - CDP1802
|
|
|
|
|
Couldn't agree more Marc, which is why I stick with Aurelia these days.
It's 3yrs old now, stable, very mature and not going anywhere soon.
It might not have the hype, marketing and glory that the Likes or Angular, Vue & React have (Basically Goggles and/or Facebork), but it is maintained by a principle program manager at MS, and is included in the MS Dotnet Core command line SPA templates.
As for the free for all... hell where not even out of January yet, and I'm already aware of 4 new JS application frameworks... sigh
|
|
|
|
|
I can't help but think that once I've gotten a job doing MVC, someone at Microsoft will have a monstrous bowel movement, and they'll pushing new sh|t down our throats...
".45 ACP - because shooting twice is just silly" - JSOP, 2010 ----- You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010 ----- When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013
|
|
|
|
|
Geez Louise! I'll stick with WinForms, myself. 5 or 6 lines of code (depending on how you fetch the last edit date, obviously) max. Even on a WebForm it's pretty simple. Adding to list of technologies to avoid: MVC. Got it.
If you think hiring a professional is expensive, wait until you hire an amateur! - Red Adair
|
|
|
|
|
If you think that's fun, you should try implementing OpenId using Nancy and OWin - I've spent the entire week learning how to implement OpenID authentication in a web app, and after almost a dozen sample projects ended up building a library to simplify everything. Some of the obstacles faced:
- The System.IdentityModel.Tokens.Jwt library had an object that other libraries depend on for JWT tokens, but they removed the object almost a year ago, and to this date still haven't brought back, forcing you to use a 'fairly old' version of their library in order to support the dependency, and also forcing you to use the older versions of all of its dependent libraries. DLL hell, in short.
- You have to use the 'old' Graph API code to interact with Azure AD B2C if you want to retrieve information about users, groups, group membership, etc.. I say 'old' because everything in Azure is set up to use Microsoft Graph - well, everything except Azure AD B2C.
So, shameless plug, I've drastically simplified the process in this handy-dandy repo here:
https://github.com/endpointsystems/Nancy.Owin.Security.MSGraph[^]
|
|
|
|
|
Nice book out there on OpenID Connection by Vittorio Bertocci.
"Modern Authentication with Azure Active Directory for Web Applications"
Examples actually work. First chapter has MVC example.
|
|
|
|
|
They might work with Active Directory but in my experience, they only get you so far. There are many differences between the products and with Microsoft Graph coming online and maturing, the differences are only getting greater. The book does help understand the trajectory, but the point really boils back down to - Microsoft really could be making things easier for all of us.
|
|
|
|
|
They did make it easier with ASP.NET WebForms. However, many developers want to be cool and use a more complex implementation with ASP.NET MVC.
Such developers wanted more control over your HTML and additional complexity comes with it.
Steve Naidamast
Sr. Software Engineer
Black Falcon Software, Inc.
blackfalconsoftware@outlook.com
|
|
|
|
|
If it's impeccable, is it chicken proof?
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
If I don't get it, is it beekause I am birdened by fowl thoughts?
... such stuff as dreams are made on
|
|
|
|
|
don't let OG egg you on then.
Signature ready for installation. Please Reboot now.
|
|
|
|
|
|
What a fowl repost of my yoke above!
... such stuff as dreams are made on
|
|
|
|
|
It took some craw for Ornithological Gizzard to post that. Feather we like it or not. I chicked around, trying to get a gander as to just hen you started this.
Ravings en masse^ |
---|
"The difference between genius and stupidity is that genius has its limits." - Albert Einstein | "If you are searching for perfection in others, then you seek disappointment. If you are seek perfection in yourself, then you will find failure." - Balboos HaGadol Mar 2010 |
|
|
|
|
|
You could say that, but personally, I beak to differ!
Anything that is unrelated to elephants is irrelephant Anonymous
- The problem with quotes on the internet is that you can never tell if they're genuine Winston Churchill, 1944
- I'd just like a chance to prove that money can't make me happy. Me, all the time
|
|
|
|
|
|
deep space is so violent.
it's a wonder it hasn't been banned yet.
Signature ready for installation. Please Reboot now.
|
|
|
|
|
Violent? Every single atom in your body heavier than hydrogen was cooked up in some star that has exploded.
I have lived with several Zen masters - all of them were cats.
|
|
|
|
|
Keep your friends close. Keep Kill your enemies closer.
|
|
|
|
|
Violence is as American as apple pie. Now if space were sexy...
If you have an important point to make, don't try to be subtle or clever. Use a pile driver. Hit the point once. Then come back and hit it again. Then hit it a third time - a tremendous whack.
--Winston Churchill
|
|
|
|
|
A supernova that occured only 600 lj away? That's very close.
I have lived with several Zen masters - all of them were cats.
|
|
|
|
|
Pretty!
|
|
|
|