Choosing DOCTYPE for an online eBook
I’m about to begin working on a project which involves creating an eBook-like website which will contain lots of large documents with text and images.
The site should have a rather minimalistic design, but it will include a UI with some scripting and animations to make browsing the large documents easier.
Twitter in app browser + user agent string
Recently (I believe some weeks ago) with the latest update of the Twitter app for iOS, all links found inside tweets are opened in Twitter’s build-in browser. My question is how to find Twitter’s browser agent so I can display custom messages.
Should MVVM ViewModel inject an HTML template for default view?
I’m working on web application design that includes Knockout.js and have an overall MVVM question: Does it make sense for the ViewModel to automatically inject a default HTML template (pulled from separate file)?
How to create a Web app that “interacts” with email?
I have a web host that supports cPanel and email addresses. I’m interested in creating a web app that checks for email messages, reads their contents and then does something with them, like interact with a database.
How to best organize spaghetti Javascript on the client with an MVC server architecture?
A LAMP project I am currently working on is pretty well organized on the backend. However, there are a ton of pages that just have a diarrhea of javascript and html squirted all over numerous locations with little discernible architecture, rhyme, or reason. In a few cases, some kind of javascript prototype was created for a common control, and the MVC framework in place is taking care of templating pages.
How to best organize spaghetti Javascript on the client with an MVC server architecture?
A LAMP project I am currently working on is pretty well organized on the backend. However, there are a ton of pages that just have a diarrhea of javascript and html squirted all over numerous locations with little discernible architecture, rhyme, or reason. In a few cases, some kind of javascript prototype was created for a common control, and the MVC framework in place is taking care of templating pages.
How does Facebook strip html/apostrophes for XSS but also display it?
I’m not quite sure if this is a question for programmers.se rather than stackoverflow, but here goes. So Facebook [or any other large company] when given something like an apostrophe or html, can strip it of its malicious intent, but still display it properly. My current sanitizing function in PHP just strips those characters/makes them harmless via htmlentities() and such. So if I wrote an HTML tag, I would want it to be sanitized but also displayed on the website. How do I do this?
Saving multiple copies of a single image at different sizes
I’m building a file storage programme that will also display images in photo galleries to users who upload them. I was wondering if anybody could help me out.
Is XML, HTML/CSS, XSL analogous to Model, View, Controller?
For some time in personal projects I have been using XSL to convert my raw XML data into human-friendly HTML/CSS (in simple projects, I have no JavaScript, so let’s leave that out of the equation for simplicity).
Why does a contenteditable div not behave like an input element?
The motivation for the content editable div would be to allow user input inside a normal div element. Why does it then behave so differently to input element? Mainly I am referring to the addition of a div
or a br
on line break.