mercredi 1 novembre 2017

how to create a web form using the code from here http://ift.tt/2zbU4gH

I would like to make a web page in IIS that I can type a username and have it list the security groups it's a member of. I found this code How to get all the AD groups for a particular user? but I don't know how to make it into a web page. Thanks for your help.




most common web app development environment [on hold]

I was asked a question by one of my accountant coworkers. What development environment do most web app developers use; local or remote hosted? I am personally developing locally on XAMP but I was hoping to find out if a local environment is common for pure development work. Any feedback (except being voted downvoted "off the island") is appreciated.




Is there a way to make something exclusive to a specific browser? [duplicate]

This question already has an answer here:

Say I wanted a special footer if you were using Safari, how might I do this?




How to organize URLs in web projects

There's plenty of resources that outline how URLs should be organized for RESTful APIs but for web in general there's little to be found.

How can I structure the URLs of the web pages so that they are

  1. Sensible from the perspective of a user browsing the web
  2. Sensible from a separation of concerns in a Spring framework controller

To apply some context let's assume there's groups that contains elements and there are uses cases to create, view, edit and delete both.




Having 3rd party (third party) cookies disabled, how is it possible that youtube infers my identity from me being logged in to gmail?

  • Having third-party (3rd party) cookies disabled
  • remove all cookies
  • login to gmail.com
  • visit youtube.com without logging in

    and wonder how is it that youtube.com knows your gmail identity ??

Can anyone explain how this is achieved technically and what is the point then of disabling 3rd party cookies??




Store error variable

I am approaching this from a OO background so my approach is wrong!

What I am doing is when I get an error I am trying to store the error for retrieval by error(40x,50x) pages so they can display. Below is the simple JS class I wrote:

var errorMessage="unknown";

function setMessage(error){

    errorMessage=error;
    console.log("Setting: "+errorMessage);

}

function getMessage(){
        console.log("returning: "+errorMessage)
        return errorMessage;
}

and trying to display the error:

message= getMessage()
this.document.getElementById("myLabel").innerText=message;

On error, setMessage works but when another page tries to retrieve the message using getMessage as above it is initialized to unknown again.

How should I approach this problem in a JS way or just get my above code working?




Web API or other solution?

I am about to make a website showing products from my database.

I want to register every time a user viewes a product on the website, to be able to show "you have just seen" products.

This mean as I see it, that I need a "tracking service" and a "get products service".

I want to be able to reuse the services for different websites (with different database instances)

I know I can make the services as Web APIs, but is worried about it being to slow.

Is my concern justified? What other alternative ways can it be done?