PHP: HTML Tag/Tag data remover, Javascript: Calculate Display Page Data

Budget $30 - $250 USD
Bids 12
Average Bid $223

(Please refer to the file provided for an example)

Preparing a word document to HTML for display in a set-sized DIV (ie: to be displayed in a simple eBook).

Require a program to do the following:
1. PHP to strip </html tags from file, [and] cut out tags and content
2. Using Javascript, given a certain div size (height, width), calculate how many non-overflow pages the data requires in order to be shown.

----------------------------------------------------------------------------------
1. Given an HTML, write PHP functionality to:

a) Strip tags, but keep the content
b) cut out and all contents (but should be put in a variable, just in case we wish to save this at a later point)

----------------------------------------------------------------------------------
2. With the remaining HTML, use Javascript to split HTML into pages (according to a certain div height/width)

a) given a div size (given a height/width), parse through the HTML contents to see how many pages (of the given size) are needed to display all the content. (***NOTE: see example file)

Hints:
***using JS: clientHeight, write a block of data to the div (a paragraph, or table) and loop through data blocks to see if they overflow.
*** create an array of text, to store each "page" of data


Example logic:

while(exists HTML){
get next data block
if(data does not overflow){
add data to current string
}
else if(data overflows){
push data that fits in the without overflowing, into an array element (page)
use a new string with overflow text to start a fresh string, and continue looping with remaining data
}

}

Post a Project Like This

This project was awarded to

About the Freelancer

Looking to make some money?

  • Set your budget and the time frame
  • Outline your proposal
  • Get paid for your work

Bids on this Project

  • vw1880582vw Profile Picture

    vw1880582vw

    Hereford,  United Kingdom

    Writing computer software for over 17 years in languages ranging from ASM/C to PHP/HTML. Extensive experience building and managing websites for Small-Medium sized companies including customer support, affiliate programs, web-hosting and central administration. Also some time doing data research both web and telephone based allowing me to bring a variety of skills to any job.

    Javascript, XML, Visual Basic, and Internet Marketing

  • srinichal Profile Picture

    srinichal

    hyderabad,  India

    Perfection and dedication are the way we deal with projects on freelancer. There have been many clients all over the world that are satisfied with the solutions provided.All types of automation works along with web based solutions are our expertise. Looking to provide solutions in the Mobile markets as well. Some of the automation tools are listed in portfolio and here as well: * AutoBidder tool for Madbid like sites * Automation tools For all emails and social Bookmark sites * Social Bookmarking tools * Facebook Likes Automation * Webbased Versions of tools tailored to custom needs * Desktop apps tailored to customer needs * Proxy tools tailored to your requirements. A dedicated team that can literally deliver any project solution with high expertise. Please don't hesitate to contact us via freelancer. Satisfaction guaranteed solutions delivered all over the world. The Skill Set ranges from C# to PHP, Iphone to Andriod. We can deliver almost any solutions for your needs. We can also take up any type of work based on web design to desktop or mobile in the broad spectrum as we always strive to learn and perfect.

    PHP, Perl, Java, and JSP

  • techwelf Profile Picture

    techwelf

    kolkata,  India

    A growing website development company that provides high quality services for the clients all over the world. We are a team of highly experienced professionals in different areas of computer science. We work based on four main principles: Quality - the highest quality of products is guaranteed including free support. Time line - we provide our services in strong time deadlines. Communication - we try to be always online and free for communications. Security - All the information/transactions is highly secured.

    CMS, Social Engine, eCommerce, and PayPal API

  • shabdullah88 Profile Picture

    shabdullah88

    islamababd,  Pakistan

    APPLICONIC is one of the Leading Software Engineering Company which aim to meet the requirements of global clients by providing them end-to-end mobile application, consumer and Enterprise Solutions . With us, you can avail of quality services, products and solutions at pocket friendly prices. ******Mobile strategies for Enterprise***** We understand and give priority to your business needs, plans and requirements. In this world of competition, an enterprise can stand apart with best mobile solutions offered by us. This results in taking a business to the level of success. With years of experience in this domain, we are capable of developing a wide range of mobile strategies and therefore can meet the bulk demands of our customers from all over the world *******Help for Small business & Start-ups******* Innovative as well as cutting edge technologies are implemented by us in order to deliver quality projects to our global clients. We offer quality yet cost effective mobile solutions and services which can be afforded by business owners of all sizes, classes and categories. We provide ultimate solutions to the new entrepreneurs and owners of small business houses. With us, these business personnel can make maximum profit from their business with minimum investment. We can ensure of bringing success to the business of the new comers with our quality mobile solutions.

    PHP, Java, Graphic Design, and Project Management

  • gopalvora Profile Picture

    gopalvora

    Jetpur,  India

    I have 7 + year exp. in Php , joomla , MySQL, word-press , OsCommerce , cake php, Prestashop, Smarty Php , Javascript , CSS, HTML5, jQuery i do in innovative way that make our application stable in fast changing client requirements. i help organization from planning stage to implementation stage thus our services make backbone of their success.

    PHP, XML, Website Design, and Graphic Design

  • swardi Profile Picture

    swardi

    Karachi,  Pakistan

    WaterLogix represents a small group of software developers doing web application development for more than 10 years. As our main focus is web development and mobile development, we have developed considerable expertise in several related technologies. We provide quality product in timely manner. Our main goal is to make the client 100% satisfied with our work. Hard work, sincerity and integrity are our values. We believe in fulfilling our promises. We love working for difficult and challenging tasks. We also provide project management services for web based projects.

    PHP, Java, J2EE, and AJAX

  • mihaidraghicioiu Profile Picture

    mihaidraghicioiu

    Bucharest,  Romania

    I'm a student from Bucharest, looking to pay for my education by doing freelance work. Most of my experience is in web development with PHP and MySQL. I've also used C++ for some personal projects. I like to deliver on time, and I appreciate long term work relationships. I work evenings and sometimes at night, Eastern European Time.

    PHP, C Programming, Python, and Translation

  • mawaiskhansl Profile Picture

    mawaiskhansl

    Lahore,  Pakistan

    We are specialist in web programming and design and development Also mobile apps 5+ year experience in PHP,Yii,Zend, CodeIgniter, Joomla, WordPress ,HTML,CSS,JQuery,Ajax,MySql,Sql,.NET, C#,,C++... We also do a lot of creative services but the important thing is to understand the challenges you may be having as a business that will allow us to provide solutions to help you grow and expand. You'll get for sure 100% Complete, On time and Budget & of Course Quality Standards.

    PHP, Javascript, XML, and Website Design

  • LuigiWidmore Profile Picture

    LuigiWidmore

    Bucuresti,  Romania

    My name is Luigi Widmore and I'm a web programmer. My areas of expertise are: - PHP - MySQL - HTML - CSS - JS - jQuery - AJAX - Design I work using Adobe Creative Suite and I have over 7 years of experience. As my tag line says : If you want something impossible, you've come to the right person. Thank you very much for visiting my profile.

    Javascript, XML, Script Install, and Website Design

  • rajeshverma88 Profile Picture

    rajeshverma88

    Noida,  India

    I am a full-time freelancer working in specially in IST timezone . I believe in ORIGINAL and QUALITY work since work is our solo identity. Why Choose us - Web design and Development services - Having 7 Years Experience - Wordpress Expert - Ecommerce Expert - Real-Estate Web development expert - 24X7 Support

    PHP, Javascript, Website Design, and Graphic Design