kinpat7 / webdev-group-project Goto Github PK
View Code? Open in Web Editor NEWGrp John, Patrick, Nick
Grp John, Patrick, Nick
Need to run through all the code and make sure it is understandable for examiners. Make sure all code is formatted using 4 space indent
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.
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.
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 }
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.