As I was working on this project for a friend of mine who is terrified of changing from HTML to flash, I realized that maybe there could be a bridge between them. So I started working on a flash project that would grab the HTML from his page and parse it to display it in flash. Although I am sure there are resources available for this already, I figured that the experts on SO might be willing to suffer through the logic of one user trying to develop this script.
So basically, I am not asking for an answer, I am asking for some step-by-step direction that could be posted so other people could see the logic behind breaking down this project. I think it would be really useful (not just for me, but for anyone wanting to learn more about objects and oop).
So, much like the thread between primarily Senocular and Rampage, this would be a thread where I would be the student asking the questions in a logical step-by-step manner and someone else (or someones else) could provide guidance.
Let me know if you are interested and I can start by posting what I have already written. We can go from there and I am sure it will prove insightful to anyone who reads it. If no one is interested, or no one has the time or inclination, no problem.
Best wishes,
Jase
Who in their right mind would change from html to flash for displaying a simple website? I don't see the logic behind it, it's more like you are trying too hard. Flash has its function in the web, as well as html does. If it's just for simple displaying, using flash is just the wrong way and won't make your website any better but worse because its loading time will be too long.
Goole Search retrieved these:
HTMLWrapper
Groe.org HTMLParser
There is an article about the 1st on *drawlogic. I think the seconds' home is on sourceforge here.
Thing is, browsers already do a fine job at parsing html code. Having the flash player parse html files not only does away with any accessibility advantage your markup can offer but it also feels like reinventing the wheel. If you need to display html content, leave it to the browser.
Slightly offtopic - Flashpaper can convert most HTML pages into swf format.
Given properly "disciplined" HTML, you can use the XML parser in the player for the basic parsing. Are you really talking about writing an HTML renderer in Flash though? Or just being able to pull information from HTML dynamically?
Related
I am working on a project where it communicates with a sites servers with a couple lines of HTML code, so I need a piece of code that sends a query or just does something with the separate website .
What have I tried? Well I have tried looking online but I didn't really find anything. And the code? I didn't try anything, I have no idea how to do it.
My code:
I said I didn't know how to do it, so there is no code.
Thanks for answering if you answered!
(If there are other programming languages involved, I don't mind)
I think you need to API from website which you want to use in your project.
I am attempting to learn css attribute relationships. With my current knowledge, I would venture to say that there are only about 30 or so attributes that the majority of web pages are built around, but how you match them up is what gives one page a cleaner look, better functionality, and an overall better experience for the user. Currently I am getting feedback that the 'only' way to learn is by a combination of experience and looking at examples of implementation(s) on webpages that have the feature(s) I want, and trying to replicate. I think this is too time consuming, and not an effective tool for someone wanting to develop a solid approach to CSS. Is/are there tools that you have used similar to any of the below that help you understand the interaction of the attributes for basic manipulation of semantic markup?
Current tools that have GUIs to allow quick feedback of attribute/element manipulation:
JSFIDDLE : An online platform for viewing HTML, JS, CSS, and the result in one window, allowing for common shared code.
Button Maker : Dynamic CSS/HTML generation for a graphical button.
SourceTree : For understanding repository structure for Git,
Mercurial and SVN version control systems.
Eclipse : An IDE with 'desktop' organization of multiple implementations, code, and information panes.
CodingBat : An online console for learning Python or Java by 'snippet' coding and viewing results of different passed parameters.
Codeyear / CodeAcademy : An online IDE to allow for both 'snippet' coding and viewing CSS/HTML/JS/results in several structured learning paths.
Specifically, I would like to learn the relationships of postion based styles, such as fixed, float and such.
For me, the best way to learn: Think up of something you want to make. Make it. Go through the process of finding out what works and what doesn't. Figure out how to fix it. Fix it. Be amazed at how crappy the result is. Repeat.
You won't learn all the little tricks by looking at independent examples. You won't learn much by "looking at" anything. Do it. Once you have a basic grasp of what's going on, make something. Copy something. Time consuming? yes, sure... if you say so. Experience comes with time.
The thing with copying other people is that you don't know the process they went through. Why did they do something a certain way? Is it even right? Just because somebody put it online doesn't mean it's any good.
So specifically, what function do you want to implement? Google that, read all the different ways people do it. Find one that you like, implement it. Tweak it. If you don't understand, look into that.
I think there's a term for when you're trying to find something, you go from one (related) thing to another until you forget your original issue... That's bad when you need to be productive. It's perfectly fine here, where you just want to learn everything.
For some things, it's important to have structure. Once you learn the basics, I think having some sort of structure or system will just slow you down. I like to go at it and solve a problem, learning as I go. When I'm trying to figure something out, I have nothing but Notepad and Chrome with a lot of Google search results tabs open. You don't need all these GUI tools. Sure they might make your development go a little faster with their auto complete or error warnings, but what's your rush?
Don't spend so much time finding the perfect set of tools that you never get to the thing you were finding those tools for. Just do it.
I am pretty new to developing softwares and am intrigued by the huge world out there!! I have working knowledge of C/C++ and Java.. I was thinking of making an application that would convert a webpage to a pdf document.. I know there are many solutions available -- both online and offline..But I want to develop my own.. I googled but couldn't find anything that would help me get started..
I want to know how do we go about a conversion process?? How to get started?? What languages and technologies are pre-requisites for making a converter like this??
Thank You
So at least you need to get to the bottom to following specifications:
HTML specification
CSS specification
JavaScript specification
PDF specification
Moreover here are a lot of minor stuff such as Fonts, Decription/Encription algorithms and many many other minor but still necessary things.
I think you can imagine that this is quite a long way to get all this working. In fact, the complexity of such software is the reason why so many companies make money in this field.
Anyway, I'd suggest you to start from the simple things and grow your software gradually. Start with converting HTML to Image, because it is a bit simpler. Take and parse HTML, its CSS, its JavaScript. Clean HTML. Build DOM of the HTML document. Apply styles. Go thru the DOM and draw elements to the image.
Good luck!
I’m a beginner and I’m wandering for this question.
Right now I’m concerned with webkit (a web browser).
Here, my problem is, what I want to know, how the web browser is handling all the HTML data coming from any network.
E.g. how is it getting the data and parsing that?
Very specifically, I want to know about HTML Parser!
If you have the code base of webkit, you can find a part that’s webcore.
In webcore, there is a HTML module.
As I think, this is the part of HTML parser.
But it seems very tough for me to understand that code without knowing the basics.
So please help me.
You would need some basic understanding on formal language definitions and compilers. Without this knowledge looking at the parser code for 1000 years is futile.
I recommend to read this book first:
After using the MVC framework for a little while now I must say I love it, but in my opinion there has always been one thing that poops on the MVC party cake. The lack of good, reusable and portable "controls". This is where the HtmlHelpers should kick in.
After reading this blog post I started thinking about what exactly I’m expecting from a good HtmlHelper and I wanted to pull this in the open so other (smarter) people can hopefully join me in the effort.
Common Syntax Conventions
This way any developper can easily get going with some HtmlHelper without having to read the whole documentation. I like how JQuery is usually doing this, so maybe it is a good idea to mimick this.
Html != string
Writing Html with stringbuilders is just a pain. wouldn't it be nice if we could write the Html in an Html or asp file that later gets compiled into the dll?
Put javascript/css where they belong
I think I'm not the only one who has built his masterpage with an asp:contentholder dedicated for his javascript and css. Preferably js at the bottom and css at the top of the page. Wouldn't it be nice if needed references and script blocks could be placed there by the HtmlHelper? Maybe check for double references..
A public repository
Currently I have the feeling that everyone is just recreating the same wheels over and over again in their own private library. Wouldn't it be nice if we had some repository somehwere where we can have all this work combined?
Is there already an existing effort in this line that I have missed? If not do you think this is a usefull idea? Would you be a participator?
I have very little experience in OS efforts, but I have the feeling that this could be something the community is craving for. Does anybody with more os project xp see any pitfalls in this?
There is MVCContrib, but it doesn't address all the issues you raise. I would definitely like to see a better solution to "controls" in MVC than using StringBuilder everywhere.
There's a great asset managing available here (http://weblogs.asp.net/rashid/archive/2009/05/02/script-and-css-management-in-asp-net-mvc-part-2.aspx), which really helps a lot with adding scripts and css..
At the same blog, there's also some neat UI helpers..
I'm starting a small OS project called MVCUIHelpers see (http://github.com/erikzaadi/MVCUIHelpers/tree/master).
The project is rather new (has only Icons and Buttons Helpers so far), but is meant to answer your needs..
If you got something to contribute, that'd be great ;)
Pardon for the broken links, new users can not insert links at here :(
Cheers,
Erik