stefanbund / 311 Goto Github PK
View Code? Open in Web Editor NEWInteractive Web Development
Interactive Web Development
I am currently working on a page, and the page in question has a default layout which I would not like to change. I know in are example we sent the output of are script to the body tag. If I did it with my code it would ruin the layout of the page. In order to get around this I had the output of the script go to a
tag which seems to have worked. However, in my independent study I was told that this was bad practice and should not be done. So my question is should a div tag ever be inside a other html tag such as
or <h#>?
this is what my page structure looks like after the script is done:
<.p>
<.div>
<.h1>
some test
</.h1>
<.p>
text content
</.p>
</.div>
</.p>
From what I can tell everything is working just fine, debugger picks up no issues.
Thanks.
Professor, in my project, I want to list the bucket objects immediately after authenticating and before we click anything. The way your code example is showing me is that its coded to display the list after clicking/uploading a file.
I tried calling the bucket.listObjects() function to display without clicking anything but it is not displaying any results
message": "Missing credentials in config", "code": "CredentialsError", "time": "2017-01-30T22:30:10.380Z", "originalError": { "message": "No credentials to load", "code": "CredentialsError", "time": "2017-01-30T22:30:10.379Z" } }
not sure what I did wrong here, I followed the videos to the letter.
Sir,
Unfortunately, with a person family matter that came up today I won't be able to attend class tonight, so I wanted to what material was going to be cover today, so I could have my homework completed over the weekend and have it turned in on time.
Thanks,
Angel Millet
Do you have a preferred video format?
Ideally I would like to avoid compatibility issues on your end.
thanks
Hi, I am trying to store 2 values that the user provides, however I am having trouble getting this to work.
I believe the error is happening in the setCookie function:
// we are setting the users name and age.
function setCookie(cname,cvalue1,cage,cvalue2,exdays) {
var d = new Date();
d.setTime(d.getTime() + (exdays2460601000));
var expires = "expires=" + d.toGMTString();
document.cookie = cname+"="+cvalue1+";"cage+"="+cvalue2+";"+expires;
}
two questions, Can I actually store more then 1 value in a cookie? If so do you see anything wrong with my syntax?
There seems to be a bit of misinformation going around regarding what is expected for the final. Just to be clear our options are to either do:
ASP.NET Final Project or complete your site and do a penetration test.
Do we do one or both?
Hello Professor
For the ASP.Net project which part of the project would you like the source code from. In addition for what part of the tutorial would you like us to screenshot.
Thank You
Roberto Hernandez
I watched the uploading files video several times and coded the way it is explain in the video, but for some reason when I hit the upload to S3 button, I'm getting a statement saying ERROR:Networking Error: Network Failure
Professor Bund,
Will the dropbox be available before class tomorrow? Can you give us a list of things you would like us to screenshot?
Professor,
can you please provide the code to store a user input text area to dynamodb so that it can permanently be on webpage for everyone to see. I managed to get it to work using local storage but everyone cannot see that content. ex. http://jsfiddle.net/Xh2En/24/
I am currently having an issue with integrating bootstrap into my pages that are using aws services. ( ie dynamo db, s3), from what I can tell using bootstrap breaks those pages about 90% of the time ( sometimes when you load the page it will work correctly, but other times it will not load) The error seems to be related to the Facebook authentication not always loading ;subsequently, makes those services dynamo db and s3 functions stop working (due to not being able to authenticate the user). I did make progress, fixing this issue by loading the script for authentication code into the head tag, but the problem still remains sometimes the authentication dose not load.
I have tried looking for an answers and have been unable to find any kind of fix for this.
Note: ( i did test the pages prior to adding the bootstrap they work perfectly.)
I was wondering if you were going to be in your office today or tomorrow? I wanted to talk to you about the grade received on those two assignments.
I tried:
function objectBuild(firstName,lastName,corps){
var x,y,z;
x = document.getElementById("genfirstname").value;
y = document.getElementById("genlastname").value;
z = document.getelementById("gencorps").value;
this.firstName = x;
this.lastName = y;
this.corps = z;
}
this did not work, so I then tried,
var commander = new objectBuild (x,y,z); // was hoping this would act like the example but with user info being pulled from the users input.
Finally I tried:
`Submit Answer
<script> function objectBuild(firstName,lastName,corps){ this.firstName = firstName; this.lastName = lastName; this.corps = corps; } var x,y,z; x = document.getElementById("genfirstname").value; y = document.getElementById("genlastname").value; z = document.getelementById("gencorps").value; var commander = new objectBuild ("x","y","z"); document.getElementById("output").innerHTML = " commander is name and corps is " + commander.firstName + " "+ commander.lastName +" "+ commander.corps; </script> `For the YouTube Video is it alright if we have no audio on it? I don't have any working equipment.
And for the project itself, do you want us to code the pages and make a YouTube video of 3 separate web pages, where I display the code and show how it works, or are we suppose to make 1 website with 3 web pages?
For micro project 3
Is that due on Thursday or next Tuesday?
And do we still need to create 3 pages same as before?
Thx
2 questions:
I noticed that in the example the object we created has a internal function called,
this.changeName = function(name) case 2
I was under the impression that a function had to have the following syntax
function nameOfyourFunction() case 1
so I am assuming, that we have three options with uniquely identifying a function in js, we can name it, like in case 1 or we can give it a parameter list which then uniquely identifies it like in case 2 or we do both. Is this correct?
Second question in the example I noticed that a return statement was not needed. Why is that?
thanks for the help.
hello,
I am having a bit of trouble allowing users to sign in using cognito and access dynamoDB.
I think it may be this condition in my IAM policy that is screwing things up
"Condition": {
"ForAllValues:StringEquals": {
"dynamodb:LeadingKeys": [
"${cognito-identity.amazonaws.com:sub}"
]
I have no idea what this condition is or how to satisfy it.
I spent pretty much all this weekend figuring out how to use cognito, and
got most of the dynamodb functions working. Unfortunately IAM roles and policies are
what I am having a lot of problems with now.
Thanks
-Pete Martinez
Hello Professor
For the three webpages what would you like us to include?
I am useing what we learned about links this weekend to connect all my pages to my main page. all the pages work correctly when I click on them in s3, However, When I try to go from the main page (which has links to the other pages I get the following)
This XML file does not appear to have any style information associated with it. The document tree is shown below.
AccessDenied
Access Denied087C51862B6A5C10Z1Eb2GKnNIQVwW4FAzeYKVXAjzFd00wnHVtJBW9SaStmdCX29GTYEZxTBeSzzPOx3AA1xbL1PLo=
Not really sure what I did wrong.
A sample of the syntax used
Check out our armory of weapons!
any suggestions?
thanks.
I started getting an error when I tried to use the none Partition Key to specific the column. I was wondering is it possible to querying are database using something other then a partition key. ( I ended up changing my table to make it work).
keke do you love me
I get no error message page will not load.
Hi Professor Bund! I have edited the settings it's describing by adding the domain to the App Settings, but i am still getting the error. I'm stuck here and not sure where to go next. Any help is appreciated!
Here is the URL to my bucket and sample.HTML: https://s3-us-west-2.amazonaws.com/cisstuff/sample.HTML
Why do we need to use : instead of =?
I want to give visitors the ability to leave feed back on the site. I will get the following data from the Visitor : first name, last name, email and short message. All of this data will be saved to a table called Message.
How do I allow anyone to access my dynamodb?
Is that even possible?
I have the code going and there seems to be no errors, but when I run the site, only put works. It'll appear into the table, but for some reason, get, update, and delete don't work. I'm unsure why it doesn't work, as all variable names are correct, and the policy seems to be correct.
I created a simple function to get the users input and test it. For whatever reason I cant get it to output the results..... any ideas?
Code:
<title> Page 1 First Battle of Bull Run</title>Histocal background of the battle here
recommend sites to vist
recommend videos
recommend Books
recommend Games
recommend Maps
What year did the battle of first bull run take place?
Submit answer
<script> fucnction myFuction() { Var x,y x = document.getElementById("resp").text; If ( x = 1861) { y = "Wow good job you are correct!"; } else { y = "Sorry that is incorrect"; } Document.getElementById("output").innerHTML = y } </script>
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.