Coder Social home page Coder Social logo

webdev-group-project's People

Contributors

gitter-badger avatar ogradyjp avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

webdev-group-project's Issues

Issue retrieving IP of request over https

When trying to obtain the clients public IP address using request.connection.remoteAddress this function doesn't return the correct users ip address. The IP address is used to uniquely identify requests to show users their recent requests.

Update a blog posts comments using AJAX

We need to add a feature where after submitting a comment on a blog post the comment list is update automatically using ajax. Currently you need to refresh the page to see a new comment after you submitted the comment.

Checkout public/res/js/main.js as this is where the code will be added.

There is already a function to perform the submission of the comment using ajax

$('#submit-comment').on('click', function(event) {
    if($('#comment-body').val().length > 0) {
        $.post(ajaxurls['comments'], $('#comment-form').serializeArray(), function(data) {
            updateComments()
        });
    }
});

The skeleton of the update function is already created

function updateComments(postid) {
    $.post('/getcomments', {postid: postid}, function(data) {

    });
}

In index.js we need to add a route for post requests to /getcomments. This function must perform an XSL transformation on the current comment set and return the rendered XHTML to the user.

Issue when accepting user input

When a user submits their plain text to be encrypted the web app appears to think that if someone sends 1 character it appears as though no data is submitted, we need to have a check to see if the char count is less than our specified char count

if (input.length < 1) { // input needs to be bigger }

Issue with requests.xml not been overwritten

When a new request is submitted, our code should overwrite our current requests.xml with a full list of requests including the request just made. It appears that it is appending the data. This needs to be fixed by allowing the app to either delete and re-create the file, or overwrite the current data.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.