<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:media="http://search.yahoo.com/mrss/"
>

<channel>
	<title>Various Programming tricks to help Programmers on Floor</title>
	<atom:link href="https://jharaphula.com/category/programming-solutions/feed/" rel="self" type="application/rss+xml" />
	<link>https://jharaphula.com/category/programming-solutions/</link>
	<description>Blog for SEO Guest Posting, Digital Marketing or Home Remedies</description>
	<lastBuildDate>Thu, 02 Apr 2026 14:30:59 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9</generator>
	<item>
		<title>Top Mobile App Development Trends in 2025 &#8211; How Clone Apps Can help you Stay Ahead?</title>
		<link>https://jharaphula.com/top-mobile-app-development-trends-clone-apps/</link>
		
		<dc:creator><![CDATA[Biswabhusan Panda]]></dc:creator>
		<pubDate>Thu, 20 Feb 2025 12:38:05 +0000</pubDate>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Clone Apps]]></category>
		<category><![CDATA[Custom Mobile Application]]></category>
		<category><![CDATA[Top App Developers]]></category>
		<guid isPermaLink="false">https://jharaphula.com/?p=90235</guid>

					<description><![CDATA[<img width="300" height="174" src="https://jharaphula.com/wp-content/uploads/2025/02/top-mobile-app-development-trends-clone-apps-300x174.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="Top Mobile App Development Trends in 2025 - How Clone Apps Can help you Stay Ahead?" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" fetchpriority="high" srcset="https://jharaphula.com/wp-content/uploads/2025/02/top-mobile-app-development-trends-clone-apps-300x174.jpg 300w, https://jharaphula.com/wp-content/uploads/2025/02/top-mobile-app-development-trends-clone-apps.jpg 835w" sizes="(max-width: 300px) 100vw, 300px" /><p>The mobile app market is in a state of continuous change, with new trends and technologies surfacing annually. With the approach of 2025, companies must...</p>
<p>The post <a href="https://jharaphula.com/top-mobile-app-development-trends-clone-apps/">Top Mobile App Development Trends in 2025 &#8211; How Clone Apps Can help you Stay Ahead?</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></description>
										<content:encoded><![CDATA[<img width="300" height="174" src="https://jharaphula.com/wp-content/uploads/2025/02/top-mobile-app-development-trends-clone-apps-300x174.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="Top Mobile App Development Trends in 2025 - How Clone Apps Can help you Stay Ahead?" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" srcset="https://jharaphula.com/wp-content/uploads/2025/02/top-mobile-app-development-trends-clone-apps-300x174.jpg 300w, https://jharaphula.com/wp-content/uploads/2025/02/top-mobile-app-development-trends-clone-apps.jpg 835w" sizes="(max-width: 300px) 100vw, 300px" /><p>The mobile app market is in a state of continuous change, with new trends and technologies surfacing annually. With the approach of 2025, companies must be ahead of the times to stay competitive. One of the methods to achieve this is by using clone app development to ride the current trends. Clone apps provide an efficient and affordable means of entering the market with tested business models, yet with the ability to personalize and introduce distinct features.</p>
<h2>Top Mobile App Development Trends in 2025</h2>
<p>Following are some of the major mobile app development trends that will reign supreme in 2025, and how a clone app development firm can assist you in leveraging them:</p>
<h3>Artificial Intelligence (AI) and Machine Learning (ML):</h3>
<p>AI and ML are being used more and more in mobile apps to enable smarter, more personalized experiences. AI has the capability to improve image and speech recognition, offer predictive maintenance, and enhance customer support.</p>
<p><strong>Clone App Opportunity:</strong> Implement AI-enabled features in your Airbnb clone app or Uber clone app to enable personalized suggestions, dynamic pricing, and smart search functionality.</p>
<h3>On-Demand Apps:</h3>
<p>On-demand apps are increasingly popular, giving users immediate access to products and services2. The trend cuts across industries, including healthcare and beauty, food delivery, and transportation.</p>
<p><strong>Clone App Opportunity:</strong> A company that develops on demand apps can assist you in launching a clone of well-known on-demand services such as Uber, DoorDash, or Instacart, adapting it to your local market and target audience.</p>
<h3>5G Technology:</h3>
<p>Widespread 5G adoption provides higher data speeds and lower latency, making it possible to deliver more sophisticated mobile experiences. These range from better VR/AR apps and more engaging gaming experiences.</p>
<p><strong>Clone App Opportunity:</strong> Make your clone apps more feature-rich and performance-enhanced by tapping into 5G technology for real-time processing of data, high-definition video streaming, and rich AR/VR experiences.</p>
<h3>Foldable Smartphone Apps:</h3>
<p>As foldable smartphones are making a comeback, apps must be optimized for varying screen sizes and modes. Foldable smartphones present new possibilities for multitasking and richer viewing experiences.</p>
<p><strong>Clone App Opportunity:</strong> Make your clone apps responsive to the core and transition perfectly to foldable devices, offering users an optimized experience on every screen size.</p>
<h3>Personalized AI Models:</h3>
<p>These models examine user behavior and interests to provide distinctive and customized experiences. This encompasses personalized content, recommendations, and functionality.</p>
<p><strong>Clone App Opportunity:</strong> Use personalized AI in your clone apps to recommend appropriate content, provide customized recommendations, and improve user engagement.</p>
<h3>UI/UX is Key:</h3>
<p>User interface and user experience continue to be important for app success1. Concentrate on developing intuitive, engaging, and seamless experiences for your users.</p>
<p><strong>Clone App Opportunity:</strong> Although clone apps serve as a starting point, invest in personalizing the UI/UX to distinguish your app and offer an enhanced user experience.</p>
<h2>Advantages of Clone App Development</h2>
<ul>
<li><strong>Less Development Time and Cost</strong>: Clone apps save significant development time and costs in comparison to developing an app from scratch.</li>
<li><strong>Established Business Model</strong>: Clone apps are derived from successful existing apps, and hence an established business model.</li>
<li><strong>Customization and Flexibility</strong>: Clone apps are fully customizable to accommodate specific business requirements and can easily be scaled as per the need of the marketplace.</li>
<li><strong>Upkeep and Assistance</strong>: Numerous clone app development agencies provide upkeep and assistance services continuously to help run your app smooth.</li>
</ul>
<h2>Limiting Risks</h2>
<p>Even though clone app creation has various positive aspects, consider addressing probable dangers:</p>
<ul>
<li><strong>Intellectual Property</strong>: Make sure that your clone app does not violate any intellectual property rights.</li>
<li><strong>Regulatory Measures</strong>: Pay attention to and follow all related regulations in your target market.</li>
</ul>
<h2>Selecting the Right Clone App Development Company</h2>
<p>It is important to select the right clone app development company. Search for a firm with:</p>
<ul>
<li><strong>Experience and Expertise</strong>: A good track record of developing high-quality clone apps.</li>
<li><strong>Customization Options</strong>: The ability to customize the app to meet your specific requirements.</li>
<li><strong>Support and Maintenance</strong>: Comprehensive support and maintenance services.</li>
<li><strong>Transparent Development Process</strong>: A transparent and collaborative development process.</li>
</ul>
<p>By knowing the most recent mobile application development trends and taking advantage of the advantages of clone app development, companies are able to lead the competition and become successful in the constantly changing mobile world. If you wish to develop an <a href="https://clonifynow.com/airbnb-clone/" target="_blank" rel="nofollow noopener">Airbnb clone app</a>, an<a href="https://clonifynow.com/uber-clone/" target="_blank" rel="nofollow noopener"> Uber clone app</a>, or any other on-demand solution, a renowned on demand application development company is able to turn your idea into a reality.</p>
<p>Below, we explore the most significant trends shaping mobile app development today.</p>
<h2>1. Artificial Intelligence and Machine Learning Integration</h2>
<p>Artificial Intelligence (AI) and Machine Learning (ML) are revolutionizing mobile apps by enabling personalized user experiences, predictive analytics, and automation. AI-powered chatbots, voice assistants like Siri and Google Assistant, and recommendation engines in e-commerce apps are becoming standard features.</p>
<p>Machine Learning enhances app functionality by analyzing user behavior to offer tailored content, improving security through facial recognition, and optimizing performance with predictive maintenance. AI-driven tools such as TensorFlow and Core ML empower developers to integrate intelligent features seamlessly.</p>
<h2>2. 5G Technology and Its Impact</h2>
<p>This advancement enables high-quality streaming, real-time gaming, and seamless IoT (Internet of Things) integration.</p>
<p>Developers can now create more sophisticated apps with augmented reality (AR), virtual reality (VR), and cloud-based functionalities without worrying about bandwidth limitations. Industries like healthcare, automotive, and entertainment are leveraging 5G to deliver immersive experiences.</p>
<h2>3. Internet of Things (IoT) and Smart Apps</h2>
<p>IoT continues to expand, connecting everyday devices to mobile apps for smarter automation. From smart home systems to wearable health monitors, IoT-enabled apps provide real-time data tracking and remote control capabilities.</p>
<p>Developers are focusing on creating interoperable apps that communicate seamlessly with IoT devices, ensuring security and scalability. Industries such as logistics, agriculture, and manufacturing are adopting IoT-driven mobile solutions for efficiency and cost savings.</p>
<h2>4. Augmented Reality (AR) and Virtual Reality (VR)</h2>
<p>AR and VR are no longer limited to gaming; they are now integral to retail, education, real estate, and healthcare. Apps like IKEA Place (AR) and Oculus (VR) demonstrate how these technologies enhance user engagement.</p>
<p>Retailers use AR for virtual try-ons, while educational apps leverage VR for immersive learning experiences. With Apple’s ARKit and Google’s ARCore, developers can build sophisticated AR/VR applications more efficiently.</p>
<h2>5. Cross-Platform Development Frameworks</h2>
<p>These tools offer near-native performance, extensive libraries, and strong community support. Companies like Alibaba and Airbnb have successfully adopted cross-platform solutions to maintain consistency across devices.</p>
<h2>6. Super Apps and All-in-One Solutions</h2>
<p>Super apps—multi-functional platforms like WeChat, Grab, and Gojek—are gaining popularity by combining services such as messaging, payments, shopping, and transportation in a single interface.</p>
<p>This trend is driven by user demand for convenience and streamlined experiences. Businesses are integrating multiple services into their apps to enhance engagement and retention.</p>
<h2>7. Enhanced App Security and Privacy Measures</h2>
<p>With increasing cyber threats, app security is a top priority. Developers are implementing advanced encryption, biometric authentication, and secure APIs to protect user data.</p>
<p>Regulations like GDPR and CCPA enforce stricter privacy controls, pushing developers to adopt transparent data collection practices. Secure coding practices and regular vulnerability assessments are now essential in app development.</p>
<h2>8. Cloud-Based Mobile Apps</h2>
<p>Cloud computing enables apps to store data remotely, reducing device storage dependency and improving scalability.</p>
<p>Services like AWS, Firebase, and Microsoft Azure provide robust backend solutions, allowing developers to focus on front-end innovation.</p>
<h2>9. Voice-Activated and Conversational Interfaces</h2>
<p>Voice search and voice-controlled apps are growing rapidly, thanks to smart speakers and virtual assistants. Apps integrating voice recognition improve accessibility and user convenience.</p>
<p>Developers are leveraging NLP (Natural Language Processing) to create more intuitive voice interactions, enhancing hands-free usability in navigation, shopping, and customer support apps.</p>
<h2>10. Wearable App Integration</h2>
<p>The wearable technology market, including smartwatches and fitness trackers, is expanding. Mobile apps now sync with wearables to monitor health metrics, track fitness goals, and deliver notifications.</p>
<p>Apple’s WatchOS and Google’s Wear OS provide SDKs for seamless integration, encouraging developers to create companion apps for wearables.</p>
<h2>11. On-Demand Apps</h2>
<p>On-demand apps like Uber, DoorDash, and Instacart continue to dominate by offering instant access to services. Businesses across sectors—healthcare, logistics, and home services—are adopting this model for efficiency.</p>
<p>These apps require robust backend systems, real-time tracking, and secure payment gateways to ensure smooth operations.</p>
<h2>12. Blockchain for Mobile Apps</h2>
<p>Blockchain technology enhances app security, transparency, and decentralization. Cryptocurrency wallets, NFT marketplaces, and supply chain tracking apps are leveraging blockchain for secure transactions.</p>
<p>Developers are exploring blockchain frameworks like Ethereum and Hyperledger to build decentralized applications (DApps) with smart contract capabilities.</p>
<h2>13. Low-Code and No-Code Development</h2>
<p>Low-code and no-code platforms enable non-developers to create functional apps with drag-and-drop interfaces. Tools like AppSheet and Bubble reduce development time and costs.</p>
<p>While these platforms may not replace traditional coding, they empower small businesses and startups to launch apps quickly.</p>
<h2>14. Edge Computing for Faster Processing</h2>
<p>Edge computing processes data closer to the source, reducing latency and improving app performance.</p>
<p>By minimizing reliance on centralized servers, edge computing enhances speed and reliability, making it a key trend in mobile development.</p>
<h2>15. Sustainable and Green App Development</h2>
<p>As environmental concerns grow, developers are focusing on energy-efficient coding practices, reducing app battery consumption, and optimizing server usage.</p>
<p>Sustainable app development aligns with corporate social responsibility (CSR) goals, attracting eco-conscious users.</p>
<h2>Conclusion</h2>
<p>The mobile app development landscape is continuously evolving, driven by innovation and user demand. Businesses and developers must stay updated with these trends to create competitive, secure, and user-friendly applications. By embracing AI, 5G, IoT, and other emerging technologies, the future of mobile apps promises greater efficiency, personalization, and immersive experiences for users worldwide.</p>
<p>The post <a href="https://jharaphula.com/top-mobile-app-development-trends-clone-apps/">Top Mobile App Development Trends in 2025 &#8211; How Clone Apps Can help you Stay Ahead?</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></content:encoded>
					
		
		
			<media:content url="https://jharaphula.com/wp-content/uploads/2025/02/top-mobile-app-development-trends-clone-apps.jpg" medium="image" />
	</item>
		<item>
		<title>Get Coding Homework Done Accurately with Expert Help</title>
		<link>https://jharaphula.com/get-coding-homework-done-accurately-with-expert-help/</link>
		
		<dc:creator><![CDATA[Nibedita Panda]]></dc:creator>
		<pubDate>Sat, 15 Feb 2025 10:31:24 +0000</pubDate>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Coding Assignment Help]]></category>
		<category><![CDATA[HTML5 Coding Standards]]></category>
		<category><![CDATA[Professional Coding]]></category>
		<guid isPermaLink="false">https://jharaphula.com/?p=89690</guid>

					<description><![CDATA[<img width="300" height="187" src="https://jharaphula.com/wp-content/uploads/2025/02/get-coding-homework-done-accurately-with-expert-help-300x187.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="Get Coding Homework Done Accurately with Expert Help" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" srcset="https://jharaphula.com/wp-content/uploads/2025/02/get-coding-homework-done-accurately-with-expert-help-300x187.jpg 300w, https://jharaphula.com/wp-content/uploads/2025/02/get-coding-homework-done-accurately-with-expert-help.jpg 610w" sizes="(max-width: 300px) 100vw, 300px" /><p>In today&#8217;s fast-paced digital world, coding has become an essential skill for students and professionals alike. Whether you are a computer science student or someone...</p>
<p>The post <a href="https://jharaphula.com/get-coding-homework-done-accurately-with-expert-help/">Get Coding Homework Done Accurately with Expert Help</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></description>
										<content:encoded><![CDATA[<img width="300" height="187" src="https://jharaphula.com/wp-content/uploads/2025/02/get-coding-homework-done-accurately-with-expert-help-300x187.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="Get Coding Homework Done Accurately with Expert Help" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2025/02/get-coding-homework-done-accurately-with-expert-help-300x187.jpg 300w, https://jharaphula.com/wp-content/uploads/2025/02/get-coding-homework-done-accurately-with-expert-help.jpg 610w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>In today’s fast-paced digital world, coding has become an essential skill for students and professionals alike. Whether you are a computer science student or someone looking to enhance your programming knowledge, coding assignments play a crucial role in understanding and applying programming concepts. However, many students struggle with coding assignments due to tight deadlines, complex requirements, or a lack of understanding of programming languages. This is where expert <strong>coding assignment help</strong> comes in handy.</p>
<h2>The Importance of Coding Assignment Help</h2>
<p>Coding assignments require analytical thinking, logical reasoning, and a deep understanding of programming languages. Students often face difficulties due to multiple factors such as:</p>
<ul data-spread="false">
<li>Lack of time to complete assignments</li>
<li>Incomplete understanding of programming concepts</li>
<li>Debugging and troubleshooting errors</li>
<li>Complex project requirements</li>
</ul>
<p>Seeking <strong>programming assignment help</strong> ensures that students submit high-quality, well-structured, and error-free assignments on time. Professional coding experts provide solutions that help students grasp programming concepts effectively.</p>
<h2>Benefits of Professional Coding Assignment Help</h2>
<h3>1. Accuracy and Error-Free Code</h3>
<p>One of the biggest challenges students face is writing error-free code. A minor syntax error or logical mistake can lead to incorrect outputs. Professional <strong>online programming assignment help</strong> ensures that your code is accurate, well-commented, and meets the assignment requirements.</p>
<h3>2. On-Time Submission</h3>
<p>Many students struggle with deadlines due to multiple academic responsibilities. With <strong>programming assignment help Australia</strong>, students can get their coding tasks completed on time without compromising quality. Experts follow the given instructions and deliver well-structured assignments within the specified timeframe.</p>
<h3>3. Improved Understanding of Programming Concepts</h3>
<p>Professional <strong>coding assignment help</strong> is not just about getting the work done; it also enhances students’ understanding of coding principles. The solutions provided are well-documented, making it easier for students to learn the logic and improve their programming skills.</p>
<h3>4. Assistance with Multiple Programming Languages</h3>
<p>Students may need assistance with different programming languages, including:</p>
<ul data-spread="false">
<li>Python</li>
<li>Java</li>
<li>C++</li>
<li>JavaScript</li>
<li>PHP</li>
<li>SQL</li>
<li>R</li>
<li>Ruby</li>
<li>Swift</li>
<li>MATLAB Professional programmers have expertise in multiple languages and can provide <strong>programming assignment help Australia</strong> tailored to specific requirements.</li>
</ul>
<h3>5. Debugging and Code Optimization</h3>
<p>Debugging is one of the most time-consuming tasks in coding. Expert programmers analyze the code, fix errors, and optimize it for better efficiency. With <strong>online programming assignment help</strong>, students can understand debugging techniques and write optimized code in future assignments.</p>
<h3>6. Personalized Assistance</h3>
<p>Each student has unique learning needs. Professional coding assistance provides one-on-one guidance, allowing students to clarify doubts, explore alternative solutions, and build confidence in their coding abilities.</p>
<h3>7. Help with Complex Projects</h3>
<p>Beyond small assignments, professional programmers can assist with complex projects such as:</p>
<ul data-spread="false">
<li>Web development</li>
<li>Data analysis</li>
<li>Artificial intelligence and machine learning</li>
<li>Database management</li>
<li>Game development</li>
<li>Blockchain programming</li>
</ul>
<h2>How to Choose the Right Coding Assignment Help Service</h2>
<p>With numerous platforms offering <strong>programming assignment help</strong>, it is crucial to choose a reliable service. Here are some factors to consider:</p>
<h3>1. Qualified and Experienced Experts</h3>
<p>Ensure that the platform has experienced programmers with in-depth knowledge of different programming languages. Experts with academic and industry experience can provide high-quality solutions.</p>
<h3>2. Plagiarism-Free Solutions</h3>
<p>Originality is essential in coding assignments. Choose a service that guarantees 100% unique code without plagiarism.</p>
<h3>3. Timely Delivery</h3>
<p>Meeting deadlines is crucial in academics. A trustworthy <strong>coding assignment help</strong> service should deliver assignments on time without compromising on quality.</p>
<h3>4. Affordable Pricing</h3>
<p>Many students have budget constraints. Look for a service that offers quality <strong>programming assignment help</strong> at reasonable prices.</p>
<h3>5. 24/7 Support</h3>
<p>Round-the-clock customer support ensures that students can get assistance whenever needed. A responsive support team enhances the overall experience.</p>
<h3>6. Free Revisions</h3>
<p>Sometimes, assignments may require modifications. A good service should offer free revisions to ensure student satisfaction and meet academic standards.</p>
<h2>Common Programming Assignment Challenges and Solutions</h2>
<h3>1. Understanding Complex Algorithms</h3>
<p>Many students find it difficult to understand algorithms such as sorting, searching, and dynamic programming. Expert tutors provide step-by-step explanations to simplify these concepts.</p>
<h3>2. Writing Optimized Code</h3>
<p>Writing efficient and optimized code is a skill that develops over time. Professionals offering <strong>online programming assignment help</strong> guide students on best coding practices, helping them write clean and efficient code.</p>
<h3>3. Debugging and Troubleshooting</h3>
<p>Errors and bugs are inevitable in programming. <strong>Programming assignment help Australia</strong> services assist students in identifying and fixing bugs, making the debugging process easier.</p>
<h3>4. Meeting Assignment Requirements</h3>
<p>Each assignment comes with specific guidelines. Experts ensure that the solution adheres to the given requirements, including proper formatting, documentation, and logic implementation.</p>
<h3>5. Handling Large Datasets</h3>
<p>With the growing importance of data science, handling large datasets can be overwhelming. Experts provide guidance on data manipulation, visualization, and analysis using programming languages like Python and R.</p>
<h3>6. Implementing Advanced Concepts</h3>
<p>Some assignments require knowledge of advanced topics like recursion, multithreading, and machine learning. Professional programmers simplify these concepts and offer practical solutions.</p>
<h2>Why Choose Online Programming Assignment Help?</h2>
<p>Online <strong>coding assignment help</strong> offers several advantages over traditional tutoring. These include:</p>
<ul data-spread="false">
<li><strong>Instant Access to Experts:</strong> Students can get help anytime, anywhere.</li>
<li><strong>Flexible Learning:</strong> Online assistance allows students to learn at their own pace.</li>
<li><strong>Comprehensive Solutions:</strong> Well-explained solutions help students understand coding concepts better.</li>
<li><strong>Affordable Services:</strong> Online platforms often provide cost-effective solutions for students.</li>
<li><strong>Interactive Learning Experience:</strong> Many services offer live coding sessions and video explanations to enhance learning.</li>
<li><strong>Industry-Relevant Knowledge:</strong> Professionals provide insights into industry standards, preparing students for real-world coding challenges.</li>
</ul>
<h2>Conclusion</h2>
<p>Coding assignments can be challenging, but with the right <strong>programming assignment help</strong>, students can complete their tasks efficiently and accurately. Professional coding experts provide step-by-step solutions, ensuring better understanding and improved coding skills. Whether you need help with debugging, code optimization, or understanding complex concepts, <strong>online programming assignment help</strong> is the perfect solution to enhance your coding knowledge and academic performance.</p>
<p>If you are struggling with your coding assignments, don’t hesitate to seek expert assistance. Get reliable and accurate <strong>coding assignment help</strong> today and excel in your programming journey.</p>
<p>The post <a href="https://jharaphula.com/get-coding-homework-done-accurately-with-expert-help/">Get Coding Homework Done Accurately with Expert Help</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></content:encoded>
					
		
		
			<media:content url="https://jharaphula.com/wp-content/uploads/2025/02/get-coding-homework-done-accurately-with-expert-help.jpg" medium="image" />
	</item>
		<item>
		<title>Reasons to Choose Indian Flutter Developers for your Mobile App</title>
		<link>https://jharaphula.com/reasons-to-choose-indian-flutter-developers-for-your-mobile-app/</link>
		
		<dc:creator><![CDATA[Biswabhusan Panda]]></dc:creator>
		<pubDate>Wed, 05 Feb 2025 13:30:19 +0000</pubDate>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Developers for Hire]]></category>
		<category><![CDATA[Indian Flutter Developers]]></category>
		<category><![CDATA[Mobile Developer]]></category>
		<guid isPermaLink="false">https://jharaphula.com/?p=88392</guid>

					<description><![CDATA[<img width="300" height="162" src="https://jharaphula.com/wp-content/uploads/2025/02/reasons-to-choose-indian-flutter-developers-for-your-mobile-app-300x162.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="Reasons to Choose Indian Flutter Developers for your Mobile App" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2025/02/reasons-to-choose-indian-flutter-developers-for-your-mobile-app-300x162.jpg 300w, https://jharaphula.com/wp-content/uploads/2025/02/reasons-to-choose-indian-flutter-developers-for-your-mobile-app.jpg 610w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>Flutter has gained popularity for mobile applications due to its ability to create high-performance apps with a single codebase. Many businesses seek skilled professionals to...</p>
<p>The post <a href="https://jharaphula.com/reasons-to-choose-indian-flutter-developers-for-your-mobile-app/">Reasons to Choose Indian Flutter Developers for your Mobile App</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></description>
										<content:encoded><![CDATA[<img width="300" height="162" src="https://jharaphula.com/wp-content/uploads/2025/02/reasons-to-choose-indian-flutter-developers-for-your-mobile-app-300x162.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="Reasons to Choose Indian Flutter Developers for your Mobile App" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2025/02/reasons-to-choose-indian-flutter-developers-for-your-mobile-app-300x162.jpg 300w, https://jharaphula.com/wp-content/uploads/2025/02/reasons-to-choose-indian-flutter-developers-for-your-mobile-app.jpg 610w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>Flutter has gained popularity for mobile applications due to its ability to create high-performance apps with a single codebase. Many businesses seek skilled professionals to handle their development needs, and India has become a top destination for hiring developers. The country offers a large pool of talented professionals who specialize in building efficient, cost-effective applications that meet global standards.</p>
<p>Hiring experts from India provides multiple benefits, including affordability, technical expertise, and timely project completion. Companies looking for high-quality development solutions often choose Indian professionals to bring their app ideas to life. If you’re looking for a skilled team to build a high-performance app, you may want to <a href="https://richestsoft.com/hire-flutter-developer" target="_blank" rel="nofollow noopener"><strong>hire Flutter developers in India</strong></a>. The ability to work on complex projects while maintaining efficiency makes them a preferred choice in the industry.</p>
<h2>Cost-Effective Solutions without Compromising Quality</h2>
<p>Budget plays a crucial role in app development. Companies want high-quality applications without exceeding financial limits. Indian developers offer competitive pricing while delivering robust, secure, and scalable applications. Lower operational costs allow businesses to invest in advanced features without increasing expenses.</p>
<p>Development costs in India remain lower than in Western countries while maintaining high coding and performance standards. Businesses benefit from affordable services without sacrificing app quality, making it a smart investment for long-term success.</p>
<h2>Technical Expertise and Problem-Solving Abilities</h2>
<p>Indian professionals have strong programming skills and hands-on experience with Flutter. They work on projects across industries, ensuring they can handle complex requirements efficiently. Their problem-solving approach allows them to build applications that function smoothly, even with intricate features.</p>
<p>Many developers stay updated with the latest advancements, contributing to Flutter’s open-source community. This continuous learning process ensures they implement best practices, creating high-performing applications with modern functionalities.</p>
<h2>Strong Communication and Collaboration</h2>
<p>Effective communication plays a significant role in app development. Indian developers understand the importance of clear discussions and regular updates throughout the process. They ensure businesses stay informed at every development stage, minimizing misunderstandings.</p>
<p>Fluency in English and familiarity with global work cultures help Indian professionals collaborate effectively with international clients. Their ability to work across different time zones makes them reliable partners for companies worldwide.</p>
<h2>Faster Development and Deployment</h2>
<p>Launching an app quickly provides a competitive advantage. Indian developers follow structured workflows that accelerate development timelines without affecting quality. Their experience working on tight schedules ensures projects remain on track.</p>
<p>Many teams use agile methodologies to manage tasks efficiently, ensuring businesses receive their applications on time. Whether launching a new app or upgrading an existing one, working with experienced professionals leads to timely results.</p>
<h2>Efficient Cross-Platform Development</h2>
<p>Flutter allows businesses to target both Android and iOS users with a single codebase. Indian developers leverage this feature to build high-performance applications that function smoothly across various devices.</p>
<p>Professionals in India have experience optimizing applications for different screen sizes and operating systems. Their ability to fine-tune apps for speed and responsiveness ensures a seamless experience for users, regardless of their platform choice.</p>
<h2>Scalability and Ongoing Support</h2>
<p>Building an app requires continuous maintenance, updates, and feature enhancements. Indian developers provide long-term support, ensuring applications stay functional and up to date.</p>
<p>Businesses planning to expand their applications can rely on skilled professionals for future improvements. Whether integrating new technologies or enhancing existing features, they ensure apps remain competitive in the evolving market.</p>
<h2>Access to a Large Talent Pool</h2>
<p>India produces thousands of skilled developers every year. Businesses can choose from a wide range of professionals with specialized knowledge in Flutter. With so many options available, companies can find the right developers to match their specific project needs.</p>
<p>The large talent pool allows businesses to hire dedicated professionals for long-term projects or temporary engagements. This flexibility ensures companies receive the expertise required for their app development goals.</p>
<h2>Proven Success in Global Markets</h2>
<p>Indian developers have contributed to some of the most successful mobile applications worldwide. Businesses across industries trust their expertise in <a href="https://richestsoft.com/mobile-app-development-company-in-usa" target="_blank" rel="nofollow noopener"><strong>mobile app development</strong></a> for building scalable and high-performing applications.</p>
<p>Development firms in India often showcase strong portfolios highlighting their work across different domains. Their proven success in delivering innovative applications makes them a preferred choice for businesses looking for reliable development partners.</p>
<h2>Flexible Hiring Models</h2>
<p>Every business has unique requirements, and Indian developers offer various hiring models to accommodate different project needs. Companies can choose between full-time, part-time, or project-based hiring, depending on their workload.</p>
<p>This flexibility allows businesses to optimize costs while ensuring they get the necessary expertise. Whether they need an entire team or a single developer, Indian professionals offer customized solutions tailored to project demands.</p>
<h2>High Standards for Data Security</h2>
<p>Security plays a crucial role in mobile applications, especially when handling user data. Indian developers follow strict security measures to protect sensitive information, ensuring applications remain secure.</p>
<p>Reputable development firms in India adhere to international security standards, implementing best practices for encryption, authentication, and data protection. Businesses can trust them to maintain high levels of security throughout the development process.</p>
<h2>Expertise in Modern Technologies</h2>
<p>Staying ahead in the competitive mobile app industry requires implementing advanced technologies. Indian developers integrate features such as artificial intelligence, blockchain, cloud computing, and machine learning to enhance application functionality.</p>
<p>Their ability to work with modern tech stacks allows businesses to build applications with smart features that improve user engagement. Whether adding automation, voice recognition, or secure transactions, they ensure apps remain innovative and future-ready.</p>
<h2>Conclusion</h2>
<p>Choosing Indian Flutter developers brings multiple advantages, from cost-effective development and technical expertise to scalability and ongoing support. Their commitment to delivering high-quality applications within tight deadlines makes them a preferred choice for businesses worldwide.</p>
<p>Companies looking to build efficient, high-performing applications can trust Indian professionals to deliver solutions tailored to their needs. Their skills, industry experience, and dedication to excellence ensure businesses receive an app that stands out in the market.</p>
<p>The post <a href="https://jharaphula.com/reasons-to-choose-indian-flutter-developers-for-your-mobile-app/">Reasons to Choose Indian Flutter Developers for your Mobile App</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></content:encoded>
					
		
		
			<media:content url="https://jharaphula.com/wp-content/uploads/2025/02/reasons-to-choose-indian-flutter-developers-for-your-mobile-app.jpg" medium="image" />
	</item>
		<item>
		<title>Your Guide to Hiring the best Laravel Developers for your Projects</title>
		<link>https://jharaphula.com/your-guide-to-hiring-the-best-laravel-developers-for-your-projects/</link>
		
		<dc:creator><![CDATA[Biswabhusan Panda]]></dc:creator>
		<pubDate>Fri, 31 Jan 2025 14:12:51 +0000</pubDate>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[best Laravel Developers]]></category>
		<category><![CDATA[Designers and Developers]]></category>
		<category><![CDATA[Your Guide to Hiring]]></category>
		<guid isPermaLink="false">https://jharaphula.com/?p=86246</guid>

					<description><![CDATA[<img width="300" height="190" src="https://jharaphula.com/wp-content/uploads/2025/01/Hiring-neon-sign-scaled-1-300x190.jpeg" class="webfeedsFeaturedVisual wp-post-image" alt="Your Guide to Hiring the best Laravel Developers for your Projects" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2025/01/Hiring-neon-sign-scaled-1-300x190.jpeg 300w, https://jharaphula.com/wp-content/uploads/2025/01/Hiring-neon-sign-scaled-1.jpeg 610w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>When building websites and web applications, much importance is attached to the selection of tools. Laravel is a popular framework in which the developer will...</p>
<p>The post <a href="https://jharaphula.com/your-guide-to-hiring-the-best-laravel-developers-for-your-projects/">Your Guide to Hiring the best Laravel Developers for your Projects</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></description>
										<content:encoded><![CDATA[<img width="300" height="190" src="https://jharaphula.com/wp-content/uploads/2025/01/Hiring-neon-sign-scaled-1-300x190.jpeg" class="webfeedsFeaturedVisual wp-post-image" alt="Your Guide to Hiring the best Laravel Developers for your Projects" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2025/01/Hiring-neon-sign-scaled-1-300x190.jpeg 300w, https://jharaphula.com/wp-content/uploads/2025/01/Hiring-neon-sign-scaled-1.jpeg 610w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>When building websites and web applications, much importance is attached to the selection of tools. Laravel is a popular framework in which the developer will be building powerful and efficient web applications. If you are going to <a href="https://viitorcloud.com/hire-laravel-developer" target="_blank" rel="nofollow noopener"><strong>hire Laravel developer</strong></a>, then this guide is going to be very helpful for you to know what to look for and how to find the best talent for your project.</p>
<h2>Laravel &#8211; What and Why?</h2>
<p>Laravel is an open-source tool used by developers in website creation. It makes the process easier and faster. Here are some reasons why Laravel is a great choice:</p>
<p><strong>Easy Structure: </strong>Laravel has this thing called MVC, which means Model-View-Controller. It helps in keeping everything organized, making it way easier to manage and update your website later on.</p>
<p><strong>Simple Database Management:</strong> Laravel has a feature called Eloquent ORM that simplifies how developers interact with databases. This means they can easily retrieve and store data.</p>
<p><strong>Inbuilt Security:</strong> Laravel brings with itself formidable security features that protect your website against common threats in the form of hacking.</p>
<p><strong>Time-Savers:</strong> It features a set of command-line tools, Artisan, which would help <a href="https://viitorcloud.com/hire" target="_blank" rel="nofollow noopener"><strong>developers</strong></a> manage repetitive tasks in no time and save them more time.</p>
<p><strong>Testing Made Easy:</strong> Laravel makes testing of your code pretty easy so that everything works the way it should.</p>
<p>With these benefits, a skilled Laravel developer can really help in enhancing your project.</p>
<h2>Figure Out what you Need</h2>
<p>Before you start searching to hire a Laravel developer, be sure about your requirements. Some of the following steps can help:</p>
<p><strong>Define your Goals:</strong> What would you like to achieve from the website or application? Are you starting completely afresh, or do you need improvements on any of your existing sites?</p>
<p><strong>Identify the Size of the Project:</strong> Depending on the size or complexity of the project, articulate how big it will be to determine whether you need one developer or a full team.</p>
<p><strong>Set your Budget: </strong>Determine the amount you are able to pay a developer. It is pretty varied, as it depends on experience and location.</p>
<h2>Where can you find Laravel developers?</h2>
<p>Now that you know what you need, it&#8217;s time to find potential candidates. Here are some good places to look:</p>
<p><strong>Freelance Websites:</strong> You can find freelancers on websites like Upwork, Freelancer, and Toptal by searching for Laravel developers. You can read their profiles and reviews from past clients.</p>
<p><strong>Development Agencies: </strong>Working with a development agency can give you access to a team of experienced Laravel developers who can work together on your project.</p>
<p><strong>Job Boards:</strong> Posting your job on sites like Indeed or Glassdoor will result in qualified candidates seeking employment.</p>
<h2>How to Assess Candidates?</h2>
<p>After finding some candidates, it&#8217;s necessary to evaluate them carefully. Here are some things to consider:</p>
<h3>Check Their Technical Skills</h3>
<ul>
<li style="font-weight: 400;">Ensure that the candidates with the right set of skills related to Laravel development are selected:</li>
<li style="font-weight: 400;">Good knowledge of PHP (which Laravel is based on).</li>
<li style="font-weight: 400;">Experience with the MVC design pattern.</li>
<li style="font-weight: 400;">Familiarity with <strong><a href="https://jharaphula.com/ui-developer-interview-questions/">front-end technologies</a></strong> such as HTML, CSS, and JavaScript.</li>
<li style="font-weight: 400;">Experience working with MySQL or PostgreSQL.</li>
</ul>
<h3>Look at their Experience</h3>
<p>In regard to hiring developers, experience counts a lot. With greater experience comes challenges of many kinds which one learns how to solve accordingly. So, inquire about the following:</p>
<ul>
<li style="font-weight: 400;">Past types of projects they have handled.</li>
<li style="font-weight: 400;">Their respective specific roles in these projects.</li>
<li style="font-weight: 400;">Any challenges they confronted and how they overcame them.</li>
</ul>
<h3>Assess their Problem-solving Skills</h3>
<p>Web development is often full of unexpected problems. Ask candidates how they would go about solving specific problems related to your project.</p>
<h3>Communication Matters</h3>
<p>Good communication is the foundation of any great team. A great developer can explain complex ideas in simple terms and should be a good team player; pay attention to how they communicate during the interview.</p>
<h3>Writing an Effective Job Description</h3>
<p>A clear job description can help attract the right candidates. Include these key points:</p>
<p><strong>Job Title: </strong>It should clearly indicate that you seek a &#8220;Laravel Developer.&#8221;</p>
<p><strong>Project Overview:</strong> Describe briefly what your project is about.</p>
<p><strong>Responsibilities: </strong>Outline specific tasks to which the developer will be engaged.</p>
<p><strong>Required Skills:</strong> Mention the essential skills required to perform the job.</p>
<p><strong>Experience Level:</strong> Specify whether you need junior, middle, or senior developers.</p>
<p><strong>Compensation Details: </strong>Salary range or hourly rates, if possible.</p>
<h3>Choosing How you Want to Hire</h3>
<p>When you hire a Laravel developer, consider the following aspects concerning how you would want them to work with you:</p>
<p><strong>Hourly: </strong>This is applicable for short-term projects or when flexibility is required.</p>
<p><strong>Monthly Contract: </strong>This is best for ongoing projects that require continued support.</p>
<p><strong>Project-Based Hiring:</strong> This is ideal when the projects are well-defined and have clear goals and deadlines.</p>
<p>Each option has its pros and cons; choose one that best fits your project&#8217;s needs.</p>
<h3>Onboarding your New Developer</h3>
<p>Once you have selected a candidate or team, devote your attention to how you can best get them up and running:</p>
<p><strong>Define Roles Clearly:</strong> Everybody should be aware of their responsibilities within the project.</p>
<p><strong>Set up communication tools</strong>. This may include Slack or Microsoft Teams for better communication with routine updates and discussions.</p>
<p><strong>Provide Necessary Resources:</strong> Ensure that developers have access to all tools, documents, and resources they need to do their job well.</p>
<p><strong>Encourage Teamwork: </strong>The working environment should be such that developers are able to share ideas, ask questions if they don&#8217;t know something.</p>
<h2>Conclusion</h2>
<p>You will require hiring a skilled Laravel developer to ensure the success of your web project. By clearly defining your needs, careful candidate evaluation, and good onboarding processes, you&#8217;ll be able to find the right talent that matches your vision.</p>
<p>If you&#8217;re ready to hire expert Laravel developers who can turn your ideas into reality, contact us at <strong>ViitorCloud Technologies </strong>today! Our dedicated team is here to help you achieve your development goals efficiently and effectively.</p>
<p>The post <a href="https://jharaphula.com/your-guide-to-hiring-the-best-laravel-developers-for-your-projects/">Your Guide to Hiring the best Laravel Developers for your Projects</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></content:encoded>
					
		
		
			<media:content url="https://jharaphula.com/wp-content/uploads/2025/01/Hiring-neon-sign-scaled-1.jpeg" medium="image" />
	</item>
		<item>
		<title>Essential Guide to Software Application Testing Services &#8211; Best Practices and Insights</title>
		<link>https://jharaphula.com/guide-to-software-application-testing-services-best-practices/</link>
		
		<dc:creator><![CDATA[Biswabhusan Panda]]></dc:creator>
		<pubDate>Thu, 23 Jan 2025 11:26:18 +0000</pubDate>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Business Loan Application]]></category>
		<category><![CDATA[Business Software Program]]></category>
		<category><![CDATA[Software Application Testing]]></category>
		<guid isPermaLink="false">https://jharaphula.com/?p=86631</guid>

					<description><![CDATA[<img width="300" height="180" src="https://jharaphula.com/wp-content/uploads/2025/01/guide-to-software-application-testing-services-best-practices-300x180.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="Essential Guide to Software Application Testing Services" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2025/01/guide-to-software-application-testing-services-best-practices-300x180.jpg 300w, https://jharaphula.com/wp-content/uploads/2025/01/guide-to-software-application-testing-services-best-practices.jpg 610w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>In today&#8217;s competitive digital landscape, businesses cannot afford to overlook the importance of software application testing services. The success of any software application relies heavily...</p>
<p>The post <a href="https://jharaphula.com/guide-to-software-application-testing-services-best-practices/">Essential Guide to Software Application Testing Services &#8211; Best Practices and Insights</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></description>
										<content:encoded><![CDATA[<img width="300" height="180" src="https://jharaphula.com/wp-content/uploads/2025/01/guide-to-software-application-testing-services-best-practices-300x180.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="Essential Guide to Software Application Testing Services" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2025/01/guide-to-software-application-testing-services-best-practices-300x180.jpg 300w, https://jharaphula.com/wp-content/uploads/2025/01/guide-to-software-application-testing-services-best-practices.jpg 610w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>In today’s competitive digital landscape, businesses cannot afford to overlook the importance of <a href="http://www.tavtechsolutions.com/service/software-qa-testing" target="_blank" rel="noopener nofollow">software application testing</a> services. The success of any software application relies heavily on its functionality, performance, and user experience. A bug-free, high-performing application is key to maintaining customer satisfaction and securing your market position. In this blog post, we will explore how to improve your software testing strategies, focusing on best practices, actionable insights, and the most effective services to ensure that your application meets the highest standards.</p>
<h2>The Importance of Software Application Testing Services</h2>
<p>The rapidly evolving technology industry demands that software applications function seamlessly across different devices and platforms. Software application testing services help ensure that all potential issues are identified before the application is launched. According to a study by Tricentis, 71% of organizations reported that poor software quality has a direct impact on their revenue. This statistic clearly demonstrates the financial impact that defective applications can have on a business.</p>
<p>Moreover, software testing is critical for identifying security vulnerabilities. A study from Veracode revealed that 60% of vulnerabilities in applications are found in the first three stages of development. This highlights the need for a proactive approach to testing that can prevent security breaches and protect sensitive customer data.</p>
<h2>Key Benefits of Software Application Testing Services</h2>
<p>By leveraging software application testing services, businesses can enjoy several benefits that lead to better performance and customer satisfaction.</p>
<p><strong>Improved Software Quality</strong>: Thorough testing ensures that the application performs well under various conditions. It helps uncover bugs, glitches, and performance issues early on, reducing the risk of costly post-launch fixes.</p>
<p><strong>Enhanced User Experience</strong>: A positive user experience is essential for retaining customers. Testing guarantees that the application is intuitive, easy to navigate, and performs smoothly, which in turn boosts user engagement.</p>
<p><strong>Cost Savings</strong>: While testing might seem like an additional expense, it saves businesses money in the long run by identifying defects early. Fixing bugs during the development phase is far more cost-effective than addressing them after release.</p>
<p><strong>Security Assurance</strong>: With increasing cyber threats, security should be a top priority. Software application testing services identify security risks, ensuring that your application is secure from vulnerabilities, malware, and other security breaches.</p>
<p><strong>Faster Time-to-Market</strong>: Automated testing services can speed up the testing process, allowing businesses to release their software applications on schedule. Faster releases enable companies to stay ahead of the competition and meet market demands.</p>
<h2>Types of Software Application Testing Services</h2>
<p>Software application testing is a broad field that includes various methodologies and approaches. The most common types of testing services include:</p>
<p><strong>Functional Testing</strong>: This type of testing focuses on verifying that the application works as expected. It checks whether all features and functionalities are operating correctly.</p>
<p><strong>Performance Testing</strong>: Performance testing evaluates how well an application performs under different conditions, such as varying levels of traffic, load, or usage. It ensures that the application is stable and scalable.</p>
<p><strong>Security Testing</strong>: Security testing identifies potential security risks and vulnerabilities within an application. It tests the application’s resistance to hacking, unauthorized access, and data breaches.</p>
<p><strong>Compatibility Testing</strong>: Compatibility testing ensures that the software works across different browsers, devices, and operating systems. This type of testing is essential for applications targeting a wide range of users.</p>
<p><strong>Usability Testing</strong>: Usability testing focuses on assessing how user-friendly and intuitive an application is. It examines whether users can easily navigate the interface and complete tasks efficiently.</p>
<p><strong>Regression Testing</strong>: This type of testing verifies that new changes or updates to the software do not break existing functionalities. It ensures that previous bug fixes or features still work as expected after new updates.</p>
<p><strong>Automated Testing</strong>: Automated testing uses specialized software tools to automatically execute pre-scripted tests. It reduces the time and effort required for testing, making it ideal for repetitive tasks and large-scale projects.</p>
<h2>Best Practices for Software Application Testing</h2>
<p>To get the most out of software application testing services, businesses should adopt best practices that enhance the effectiveness and efficiency of the process.</p>
<p><strong>Test Early and Often</strong>: Testing should begin at the earliest stages of development. Implement continuous integration and testing throughout the development cycle to catch issues as soon as they arise.</p>
<p><strong>Incorporate Manual and Automated Testing</strong>: While automated testing speeds up the process, manual testing is essential for identifying complex issues that automated tools might miss. Combining both approaches will ensure thorough testing coverage.</p>
<p><strong>Focus on Real-World Scenarios</strong>: Test the application in real-world environments and under various user conditions. This ensures that the application performs well in realistic situations, from network interruptions to low battery scenarios.</p>
<p><strong>Use Metrics and Analytics</strong>: Use data-driven metrics to evaluate the performance of the application during testing. Tools like JIRA and TestRail provide valuable insights that help optimize the testing process and identify areas for improvement.</p>
<p><strong>Prioritize Critical Features</strong>: Focus on testing the most critical features and functionalities first. This includes payment gateways, login systems, and data processing functionalities, as they directly impact the user experience and security.</p>
<h2>The Future of Software Application Testing</h2>
<p>As technology continues to evolve, so too does software application testing. In the coming years, we can expect to see significant advancements in areas like artificial intelligence (AI) and machine learning (ML), which will further revolutionize the testing process. AI-powered testing tools will be able to analyze patterns, predict potential issues, and optimize test cases in ways that human testers cannot match.</p>
<p>Moreover, the rise of DevOps and Agile methodologies is shifting the focus toward continuous testing. This approach emphasizes collaboration between development and operations teams to streamline testing and ensure faster releases without sacrificing quality.</p>
<h2>Conclusion</h2>
<p>In conclusion, software application testing services are essential for ensuring that your software meets the highest standards of quality, performance, and security. By incorporating the right testing strategies and best practices, businesses can reduce the risk of errors, enhance the user experience, and save time and money in the long run. The future of software testing is bright, with advancements in AI and automation driving greater efficiency and accuracy.</p>
<p>The post <a href="https://jharaphula.com/guide-to-software-application-testing-services-best-practices/">Essential Guide to Software Application Testing Services &#8211; Best Practices and Insights</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></content:encoded>
					
		
		
			<media:content url="https://jharaphula.com/wp-content/uploads/2025/01/guide-to-software-application-testing-services-best-practices.jpg" medium="image" />
	</item>
		<item>
		<title>Leveraging Microsoft Azure Cloud Services in Virginia for Business Growth</title>
		<link>https://jharaphula.com/leveraging-microsoft-azure-cloud-services-in-virginia-for-business-growth/</link>
		
		<dc:creator><![CDATA[Biswabhusan Panda]]></dc:creator>
		<pubDate>Sat, 18 Jan 2025 14:10:01 +0000</pubDate>
				<category><![CDATA[Microsoft Technologies]]></category>
		<category><![CDATA[Microsoft 365 Business]]></category>
		<category><![CDATA[Microsoft Azure Cloud Services]]></category>
		<category><![CDATA[Sell on Azure]]></category>
		<guid isPermaLink="false">https://jharaphula.com/?p=85139</guid>

					<description><![CDATA[<img width="300" height="163" src="https://jharaphula.com/wp-content/uploads/2025/01/leveraging-microsoft-azure-cloud-services-in-virginia-for-business-growth-300x163.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="Leveraging Microsoft Azure Cloud Services in Virginia for Business Growth" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2025/01/leveraging-microsoft-azure-cloud-services-in-virginia-for-business-growth-300x163.jpg 300w, https://jharaphula.com/wp-content/uploads/2025/01/leveraging-microsoft-azure-cloud-services-in-virginia-for-business-growth.jpg 734w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>As businesses continue to embrace digital transformation, leveraging cloud solutions has become essential for maintaining competitive advantage. One of the most powerful cloud platforms available...</p>
<p>The post <a href="https://jharaphula.com/leveraging-microsoft-azure-cloud-services-in-virginia-for-business-growth/">Leveraging Microsoft Azure Cloud Services in Virginia for Business Growth</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></description>
										<content:encoded><![CDATA[<img width="300" height="163" src="https://jharaphula.com/wp-content/uploads/2025/01/leveraging-microsoft-azure-cloud-services-in-virginia-for-business-growth-300x163.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="Leveraging Microsoft Azure Cloud Services in Virginia for Business Growth" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2025/01/leveraging-microsoft-azure-cloud-services-in-virginia-for-business-growth-300x163.jpg 300w, https://jharaphula.com/wp-content/uploads/2025/01/leveraging-microsoft-azure-cloud-services-in-virginia-for-business-growth.jpg 734w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>As businesses continue to embrace digital transformation, leveraging cloud solutions has become essential for maintaining competitive advantage. One of the most powerful cloud platforms available today is <strong><a href="https://www.intwo.cloud/usa/virginia/microsoft-azure-managed-services-partner/" target="_blank" rel="nofollow noopener">Microsoft Azure Cloud Service in Virginia</a></strong>. Microsoft Azure provides a comprehensive suite of cloud-based tools and services, offering businesses the flexibility, scalability, and security they need to succeed. For businesses located in Virginia or across the broader U.S., Azure enables seamless deployment of applications and services in the cloud, facilitating innovation and efficiency. When paired with the expertise of a <strong>managed cloud service provider in New Jersey</strong>, companies can unlock the full potential of Microsoft Azure, ensuring optimal cloud performance and seamless integration with their existing IT infrastructure.</p>
<h2>What is Microsoft Azure Cloud Service in Virginia?</h2>
<p>Microsoft Azure is a cloud computing platform that offers a wide array of services such as virtual machines, databases, networking, analytics, and AI tools. The platform’s diverse capabilities cater to businesses in various industries, helping them scale their IT infrastructure with ease while reducing capital expenses. For companies in <strong>Virginia</strong>, Azure provides a local cloud option with fast data processing speeds, ensuring a robust and reliable performance tailored to regional needs.</p>
<p>Azure’s <strong>data centers in Virginia</strong> ensure that businesses have low-latency access to cloud services and resources. This is especially important for companies requiring real-time data processing, like those in finance, healthcare, and e-commerce. With the added benefit of high availability and redundancy, Microsoft Azure in Virginia helps businesses maintain continuous operations, even in the event of a disaster or system failure.</p>
<h2>Benefits of Microsoft Azure Cloud Services in Virginia</h2>
<p><strong>Cost Efficiency</strong>: Microsoft Azure is known for its cost-effective pricing structure. With Azure, businesses only pay for what they use, ensuring they only incur charges for active resources. This pay-as-you-go model allows organizations to scale their cloud services according to their needs, without overcommitting to long-term investments in physical infrastructure.</p>
<p><strong>Scalability and Flexibility</strong>: As businesses in Virginia expand, their need for IT resources grows. Azure allows for seamless scalability, enabling organizations to increase their computing power, storage, or network capabilities as needed. The flexibility of Azure’s architecture ensures that businesses can quickly adapt to changing market demands or business requirements.</p>
<p><strong>Enhanced Security and Compliance</strong>: Security is a top concern for any business. Azure is built with top-tier security features such as multi-factor authentication, role-based access control, and data encryption both at rest and in transit. For businesses operating in Virginia, Azure also ensures compliance with regulations like HIPAA, GDPR, and other industry-specific standards, making it an ideal choice for highly regulated sectors such as healthcare and finance.</p>
<p><strong>High Availability</strong>: With data centers located in Virginia, Microsoft Azure provides businesses with a reliable and resilient infrastructure. The platform’s service-level agreements (SLAs) ensure high uptime and minimal disruptions, offering peace of mind for businesses that rely on their IT systems for daily operations.</p>
<p><strong>Seamless Integration</strong>: For businesses already using Microsoft tools such as Office 365, Microsoft Dynamics, and Power BI, Azure offers seamless integration with these products, providing a unified platform that enhances overall productivity and simplifies IT management.</p>
<h2>Role of a Managed Cloud Service Provider in New Jersey</h2>
<p>While Microsoft Azure Cloud Service in Virginia offers immense capabilities, managing a cloud environment requires expertise and experience. This is where a <a href="https://www.intwo.cloud/usa/new-jersey/microsoft-azure-managed-services-partner/" target="_blank" rel="nofollow noopener"><strong>managed cloud service provider in New Jersey</strong></a> becomes invaluable. Managed cloud service providers (MCSPs) specialize in the deployment, management, and optimization of cloud infrastructure, helping businesses maximize the value of their Azure services while minimizing the complexity of day-to-day operations.</p>
<h4><strong>1. Expert Cloud Management Solution</strong></h4>
<p>A managed cloud service provider in New Jersey brings expert knowledge of Microsoft Azure and can assist businesses in configuring and managing their cloud resources efficiently. Whether it’s deploying virtual machines, setting up databases, or managing network resources, the provider ensures that the cloud environment is optimized for the business’s needs.</p>
<h4><strong>2. 24/7 Support and Monitoring</strong></h4>
<p>With the support of a managed cloud service provider, businesses can benefit from continuous monitoring and support. Providers use advanced tools to track the performance of cloud resources, identify potential issues, and ensure that services run smoothly. This proactive monitoring minimizes downtime and ensures that businesses in Virginia experience high uptime and performance.</p>
<h4><strong>3. Cost Optimization</strong></h4>
<p>Managing cloud costs is a challenge for many businesses. A managed cloud service provider can help optimize cloud spending by monitoring usage patterns and making recommendations for resource adjustments. By analyzing the business’s needs, the provider can suggest the most cost-effective cloud solutions, ensuring that resources are allocated efficiently without unnecessary expenditure.</p>
<h4><strong>4. Security and Compliance</strong></h4>
<p>Ensuring that your cloud environment remains secure and compliant with industry regulations is critical for any organization. A managed cloud service provider in New Jersey can implement robust security practices, including encryption, intrusion detection systems, and disaster recovery solutions. Additionally, they help businesses meet compliance standards, reducing the risk of security breaches and penalties.</p>
<h4><strong>5. Disaster Recovery and Backup</strong></h4>
<p>A managed cloud service provider can implement backup and disaster recovery strategies, ensuring that critical business data is protected. If any disaster or outage were to occur, the provider can quickly restore services, ensuring business continuity and minimal disruption.</p>
<h2>What is Microsoft Azure?</h2>
<p>Microsoft Azure, launched in 2010, is a cloud computing platform that enables organizations to build, deploy, and manage applications through Microsoft-managed data centers. It supports a variety of programming languages, frameworks, and tools, making it a versatile choice for businesses of all sizes. Azure offers Infrastructure as a Service (IaaS), Platform as a Service (PaaS), and Software as a Service (SaaS) solutions, allowing users to choose the level of control and management they require.</p>
<p>Security is another critical consideration for organizations considering cloud adoption. Microsoft Azure places significant emphasis on security, offering a range of compliance certifications and built-in security features. Organizations can benefit from Azure’s robust security architecture, which includes advanced threat protection and identity management services.</p>
<p>Furthermore, Azure&#8217;s global data centers enable businesses to deploy applications closer to their users, reducing latency and improving performance. Companies can choose from numerous regions around the world, allowing for compliance with local regulations and improved service delivery.</p>
<h2>Key Features of Microsoft Azure</h2>
<p>Cloud computing has revolutionized the way businesses and individuals store, manage, and process data. Among the leading cloud service providers, Microsoft Azure stands out as a comprehensive platform offering a wide range of solutions for computing, storage, networking, and artificial intelligence. Azure provides scalable, secure, and flexible cloud services that cater to enterprises, developers, and IT professionals. This article explores the key features, benefits, and use cases of Microsoft Azure, along with its competitive advantages in the cloud computing industry.</p>
<h3>1. Compute Services</h3>
<p>One of the standout features of Azure compute services is their ability to optimize resources for specific workloads. Businesses can choose from different VM sizes and types, tailored to workloads that require varying levels of CPU, memory, and storage. For example, compute-optimized VMs are useful for high-performance computing tasks, whereas memory-optimized VMs are ideal for database workloads that demand rigorous memory performance.</p>
<p>Azure recognizes that organizations often operate across a diverse technology stack. As such, Azure facilitates both Windows and Linux workloads, offering flexibility for businesses to run their applications as they see fit. This support goes beyond mere deployment; Azure&#8217;s services integrate seamlessly with existing development tools, frameworks, and libraries, regardless of the underlying operating system.</p>
<p>Azure provides multiple compute options to handle different workloads:</p>
<p><strong>Virtual Machines (VMs):</strong> Enables users to deploy Windows or Linux-based virtual servers in the cloud.<br class="yoast-text-mark" /><strong>Azure App Services:</strong> A fully managed platform for building web and mobile applications.<br class="yoast-text-mark" /><strong>Azure Kubernetes Service (AKS):</strong> Simplifies the deployment and management of containerized applications.<br class="yoast-text-mark" /><strong>Functions:</strong> A serverless computing service that runs event-triggered code without managing infrastructure.</p>
<h3>2. Storage Solutions</h3>
<p>In addition to scalability, Azure emphasizes security, which is paramount in today’s environment where data breaches and cyber threats are on the rise. Azure&#8217;s storage solutions are built with security in mind, integrating multiple layers of protection. Data is encrypted both during transit and at rest, ensuring that sensitive information remains secure. Furthermore, Azure provides sophisticated access controls, enabling organizations to manage who can access their data and what permissions they have. This granular control helps ensure compliance with various regulatory requirements and promotes best practices in data governance.</p>
<p>Azure offers several storage options, including Blob Storage, File Storage, Disk Storage, and Queue Storage. Blob Storage is ideal for unstructured data such as videos, backups, and large media files. It provides a high-performance, scalable solution that can handle massive amounts of unstructured data efficiently. On the other hand, Azure File Storage provides fully managed file shares in the cloud, allowing for easy integration with various applications and on-premises tools.</p>
<p>Azure offers scalable and secure storage options:</p>
<p><strong>Blob Storage:</strong> Ideal for storing unstructured data like images, videos, and documents.<br />
<strong>Azure Files:</strong> Provides fully managed file shares accessible via standard protocols.<br />
<strong>Disk Storage:</strong> High-performance block storage for virtual machines.<br />
<strong>Azure Data Lake Storage:</strong> Designed for big data analytics with massive datasets.</p>
<h3>3. Networking Capabilities</h3>
<p>For organizations prioritizing security, Azure’s network security features provide a comprehensive suite of tools. Azure Firewall and Network Security Groups (NSGs) are designed to manage and control incoming and outgoing network traffic based on specified rules. These tools not only protect applications from threats but also enhance compliance with regulatory requirements, instilling confidence among stakeholders regarding data integrity and protection.</p>
<p>Moreover, Azure&#8217;s VPN Gateway allows businesses to establish secure point-to-site and site-to-site connections, enabling remote workers and branch offices to access necessary resources without compromising security. This is particularly important in today’s world, where remote work has become more prevalent than ever. Azure’s ExpressRoute further enhances connectivity by offering dedicated private connections between on-premises infrastructure and Azure, reducing latency and increasing throughput for sensitive workloads.</p>
<p>Azure’s networking services ensure secure and reliable connectivity:</p>
<p><strong>Virtual Network</strong>: Enables private and isolated cloud networks.<br />
<strong>Azure Load Balancer:</strong> Distributes traffic to ensure high availability.<br />
<strong>Azure ExpressRoute:</strong> Establishes private connections between Azure and on-premises data centers.<br class="yoast-text-mark" /><strong>DNS:</strong> Provides domain name system hosting with high availability.</p>
<h3>4. AI and Machine Learning</h3>
<p>Azure Machine Learning stands out as a robust and comprehensive service that allows enterprises to build, train, and deploy machine learning models at scale. With a user-friendly interface, it caters to data science professionals and novices alike, enabling organizations to harness predictive analytics without requiring extensive expertise in the field. By utilizing these machine learning capabilities, businesses can anticipate market trends, understand customer behavior, and make informed strategic decisions.</p>
<p>Azure&#8217;s blend of AI and machine learning technologies seamlessly integrates with traditional business intelligence solutions. Tools like Power BI work in synergy with Azure’s machine learning capabilities, enabling users to visualize complex datasets dynamically. With Power BI, businesses can create interactive reports that not only present data but also highlight critical insights generated through machine learning models. This integration enhances the decision-making process by providing stakeholders with clear, visual representations of what the data reveals.</p>
<p>Azure integrates AI and machine learning tools to enhance business intelligence:</p>
<p><strong>Azure Machine Learning:</strong> A cloud-based platform for building, training, and deploying ML models.<br />
<strong>Cognitive Services:</strong> Pre-built AI models for vision, speech, and language processing.<br />
<strong>Azure Databricks:</strong> A collaborative Apache Spark-based analytics platform.</p>
<h3>5. Security and Compliance</h3>
<p>One of the core components of Azure’s security strategy is its commitment to compliance with industry standards and regulations. Azure is compliant with a wide range of international and regional standards, such as ISO 27001, GDPR, HIPAA, and PCI DSS. These certifications reflect Azure&#8217;s dedication to adopting industry best practices, helping organizations meet their compliance requirements more efficiently.</p>
<p>Microsoft Azure continuously invests in security advancements. With integrated threat detection tools using artificial intelligence and machine learning, Azure can identify potential security threats in real-time. Azure Security Center plays a pivotal role in this regard by providing a centralized view of security across hybrid cloud workloads. This tool helps organizations to monitor, manage, and improve their security postures while keeping compliance requirements in check.</p>
<p>Microsoft Azure adheres to strict security standards, including:</p>
<p><strong>Azure Active Directory (AD):</strong> Identity and access management for secure authentication.<br />
<strong>Azure Security Center:</strong> Provides unified security management and threat protection.<br />
<strong>Compliance Certifications:</strong> Meets global standards like GDPR, HIPAA, and ISO 27001.</p>
<h2>Use Cases of Microsoft Azure</h2>
<p>Microsoft Azure is a leading cloud computing platform that offers a wide range of services to businesses and individuals. Its flexibility, scalability, and security make it a preferred choice for various industries. Below are some of the most prominent use cases of Microsoft Azure, covering enterprise application development, data analytics, disaster recovery, IoT solutions, and gaming and media streaming.</p>
<h4><strong>Enterprise Application Designing</strong></h4>
<p>Azure provides a robust environment for developing, deploying, and managing enterprise applications. Businesses leverage Azure App Service to build web and mobile applications without worrying about infrastructure management. With support for multiple programming languages, including .NET, Java, Node.js, and Python, developers can create scalable applications tailored to business needs.</p>
<p>Azure Kubernetes Service (AKS) simplifies containerized application deployment, enabling enterprises to run microservices architectures efficiently. Additionally, Azure DevOps offers integrated tools for continuous integration and continuous delivery (CI/CD), streamlining the software development lifecycle. Enterprises benefit from Azure’s global data centers, ensuring low-latency access to applications worldwide.</p>
<h4><strong>Data Analytics and Big Data Processing</strong></h4>
<p>Organizations generate vast amounts of data daily, and Azure provides powerful tools to process and analyze this data effectively. Azure Synapse Analytics combines big data and data warehousing, allowing businesses to run complex queries on large datasets in real time.</p>
<p>Azure Data Lake Storage offers a scalable solution for storing structured and unstructured data, while Azure Databricks provides an Apache Spark-based analytics platform for machine learning and AI-driven insights. Businesses use these services to enhance decision-making, predict trends, and optimize operations.</p>
<h4><strong>Disaster Recovery and Backup</strong></h4>
<p>Downtime can be costly for businesses, making disaster recovery and backup solutions essential. Azure Site Recovery (ASR) enables organizations to replicate workloads to the cloud, ensuring business continuity in case of outages or disasters. Azure Backup provides secure, automated backups for on-premises and cloud-based data.</p>
<p>With geo-redundant storage options, Azure ensures data is replicated across multiple regions, minimizing the risk of data loss. Enterprises can perform failover testing without disrupting operations, making Azure a reliable choice for disaster recovery strategies.</p>
<h4><strong>Internet of Things (IoT) Solutions</strong></h4>
<p>Azure IoT Hub connects, monitors, and manages IoT devices at scale. Industries such as manufacturing, healthcare, and logistics use Azure IoT to collect and analyze sensor data in real time. Azure IoT Edge extends cloud intelligence to edge devices, enabling faster decision-making in remote locations.</p>
<p>Azure Digital Twins allows businesses to create digital models of physical environments, improving predictive maintenance and operational efficiency. By integrating AI and machine learning, Azure IoT solutions help organizations optimize processes and reduce costs.</p>
<h4><strong>Gaming and Media Streaming</strong></h4>
<p>The gaming industry benefits from Azure’s high-performance cloud infrastructure. Azure PlayFab provides backend services for multiplayer games, including player authentication, leaderboards, and in-game purchases. Game developers use Azure to scale resources dynamically, ensuring smooth gameplay experiences during peak demand.</p>
<p>For media streaming, Azure Media Services offers tools for encoding, streaming, and content protection. Companies like Netflix and Disney+ leverage Azure’s global content delivery network (CDN) to deliver high-quality video streams with minimal buffering. Azure’s AI-powered video indexing enhances content discoverability and accessibility.</p>
<h2>Conclusion</h2>
<p>By leveraging <strong>Microsoft Azure Cloud Service in Virginia</strong>, businesses can harness the power of the cloud to scale operations, enhance security, and drive innovation. Azure’s cost-efficiency, scalability, and seamless integration with Microsoft products make it an ideal choice for businesses in Virginia looking to modernize their IT infrastructure. However, to fully optimize Azure and ensure that your cloud environment meets your specific needs, partnering with a <strong>managed cloud service provider in New Jersey</strong> is essential. With their expertise, support, and proactive management, businesses can unlock the full potential of Microsoft Azure, drive growth, and stay competitive in an increasingly digital world.</p>
<p>The post <a href="https://jharaphula.com/leveraging-microsoft-azure-cloud-services-in-virginia-for-business-growth/">Leveraging Microsoft Azure Cloud Services in Virginia for Business Growth</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></content:encoded>
					
		
		
			<media:content url="https://jharaphula.com/wp-content/uploads/2025/01/leveraging-microsoft-azure-cloud-services-in-virginia-for-business-growth.jpg" medium="image" />
	</item>
		<item>
		<title>Salesforce Company in India &#8211; Transforming Businesses</title>
		<link>https://jharaphula.com/salesforce-company-in-india-transforming-businesses/</link>
		
		<dc:creator><![CDATA[Biswabhusan Panda]]></dc:creator>
		<pubDate>Wed, 15 Jan 2025 10:10:16 +0000</pubDate>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[be a Good Salesman]]></category>
		<category><![CDATA[Indian Businesses]]></category>
		<category><![CDATA[Salesforce Company]]></category>
		<guid isPermaLink="false">https://jharaphula.com/?p=84796</guid>

					<description><![CDATA[<img width="300" height="183" src="https://jharaphula.com/wp-content/uploads/2025/01/salesforce-company-in-india-transforming-businesses-300x183.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="Salesforce Company in India - Transforming Businesses" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2025/01/salesforce-company-in-india-transforming-businesses-300x183.jpg 300w, https://jharaphula.com/wp-content/uploads/2025/01/salesforce-company-in-india-transforming-businesses.jpg 610w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>Salesforce, a global leader in Customer Relationship Management (CRM), has firmly established itself as a key player in India&#8217;s technology ecosystem. With its innovative cloud-based...</p>
<p>The post <a href="https://jharaphula.com/salesforce-company-in-india-transforming-businesses/">Salesforce Company in India &#8211; Transforming Businesses</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></description>
										<content:encoded><![CDATA[<img width="300" height="183" src="https://jharaphula.com/wp-content/uploads/2025/01/salesforce-company-in-india-transforming-businesses-300x183.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="Salesforce Company in India - Transforming Businesses" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2025/01/salesforce-company-in-india-transforming-businesses-300x183.jpg 300w, https://jharaphula.com/wp-content/uploads/2025/01/salesforce-company-in-india-transforming-businesses.jpg 610w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>Salesforce, a global leader in Customer Relationship Management (CRM), has firmly established itself as a key player in India’s technology ecosystem. With its innovative cloud-based solutions and a relentless focus on customer success, Salesforce is reshaping the way businesses in India operate. Let’s dive into the details of how Salesforce has created a massive impact in the Indian market.</p>
<h2>What is Salesforce?</h2>
<p>At its core, Salesforce is a cloud-based platform that helps businesses manage their interactions with customers. From sales and service to marketing and analytics, Salesforce offers tools that enhance customer engagement and drive growth. Think of it as the backbone of modern customer-centric businesses.</p>
<h2>The Journey of Salesforce in India</h2>
<h3>Establishing Roots</h3>
<p>Salesforce entered the Indian market in 2005, setting up operations to cater to the growing demand for CRM solutions. Initially, its focus was on large enterprises, but over time, it expanded its reach to small and medium-sized businesses (SMBs).</p>
<h3>Expanding Presence</h3>
<p>Today, Salesforce boasts a significant presence in India with offices in key cities like Mumbai, Hyderabad, Bengaluru, and Gurugram. These hubs are not only sales and support centers but also play a crucial role in Salesforce’s global research and development efforts.</p>
<h2>Why Salesforce is Popular in India?</h2>
<h3>1. Cloud-Based Solutions</h3>
<p>Salesforce’s cloud-first approach aligns perfectly with India’s rapid digital transformation. Businesses here are increasingly adopting cloud technologies to scale operations efficiently.</p>
<h3>2. Cost-Effectiveness</h3>
<p>With its subscription-based model, Salesforce offers flexibility and affordability, making it accessible to SMBs and startups, which form a significant part of India’s economy.</p>
<h3>3. Localized Offerings</h3>
<p>Salesforce understands the unique needs of Indian businesses and has tailored solutions to cater to local industries like retail, manufacturing, and banking.</p>
<h3>4. Innovation and Integration</h3>
<p>From AI-driven insights to seamless integrations with other tools, Salesforce empowers Indian businesses to stay ahead in a competitive landscape.</p>
<h2>Salesforce&#8217;s Impact on Indian Businesses</h2>
<h3>Transforming Customer Experiences</h3>
<p>Salesforce has revolutionized the way Indian companies interact with customers. By centralizing customer data, it enables personalized experiences and builds stronger relationships.</p>
<h3>Boosting Productivity</h3>
<p>The platform’s automation tools reduce manual tasks, allowing employees to focus on strategic initiatives. This is especially beneficial for resource-constrained SMBs.</p>
<h3>Fostering Innovation</h3>
<p>Salesforce’s AppExchange ecosystem provides Indian developers with opportunities to create innovative solutions, driving growth and fostering a spirit of entrepreneurship.</p>
<h2>Key Products Offered by Salesforce in India</h2>
<h3>1. Sales Cloud</h3>
<p>Empowers sales teams to close deals faster with advanced analytics and real-time data.</p>
<h3>2. Service Cloud</h3>
<p>Enhances customer support with AI-driven insights and automated workflows.</p>
<h3>3. Marketing Cloud</h3>
<p>Helps businesses create personalized marketing campaigns to drive engagement.</p>
<h3>4. Commerce Cloud</h3>
<p>Supports seamless e-commerce experiences across multiple channels.</p>
<h3>5. Tableau</h3>
<p>Provides robust data visualization and analytics capabilities to make informed decisions.</p>
<h2>Salesforce&#8217;s Contribution to Employment in India</h2>
<p>Salesforce has emerged as a significant employer in the Indian tech industry. Through its various programs and initiatives, it nurtures talent and equips professionals with in-demand skills.</p>
<h3>1. Direct Employment</h3>
<p>With thousands of employees across its offices, Salesforce is creating jobs in areas like software development, marketing, and sales.</p>
<h3>2. Partner Ecosystem</h3>
<p>The Salesforce partner ecosystem, comprising consulting and technology partners, generates additional employment opportunities in India.</p>
<h3>3. Skill Development Programs</h3>
<p>Salesforce’s Trailhead platform offers free online learning resources, empowering individuals to upskill and build careers in the Salesforce ecosystem.</p>
<h2>Salesforce’s CSR Initiatives in India</h2>
<p>Salesforce is committed to giving back to the community through its 1-1-1 philanthropic model. In India, the company supports various initiatives, including education, disaster relief, and environmental sustainability.</p>
<h2>Future Prospects of Salesforce in India</h2>
<p>The future looks promising for <strong><a href="https://nlineaxis.com/blog/top-10-salesforce-development-companies-in-india/" target="_blank" rel="noopener nofollow">Salesforce in India</a></strong>. With the government’s focus on digital transformation and the increasing adoption of cloud technologies, Salesforce is poised for exponential growth.</p>
<h2>Challenges Faced by Salesforce in India</h2>
<h3>1. Competition</h3>
<p>The Indian market is highly competitive, with players like Microsoft Dynamics and Zoho offering alternative solutions.</p>
<h3>2. Cost Sensitivity</h3>
<p>While Salesforce is cost-effective for larger enterprises, it may still be expensive for smaller startups.</p>
<h3>3. Localization Needs</h3>
<p>Adapting solutions to meet diverse regional requirements remains a challenge.</p>
<h2>How to get Started with Salesforce in India?</h2>
<h3>1. Identify your needs</h3>
<p>Understand your business requirements and determine which Salesforce products align with your goals.</p>
<h3>2. Leverage Trailhead</h3>
<p>Use Salesforce’s Trailhead platform to familiarize yourself with its offerings.</p>
<h3>3. Partner with Experts</h3>
<p>Collaborate with certified Salesforce consultants to ensure a seamless implementation.</p>
<h2>Conclusion</h2>
<p>Salesforce has become a cornerstone of India’s digital economy, enabling businesses to achieve greater efficiency, foster innovation, and deliver exceptional customer experiences. Whether you’re a startup or an established enterprise, Salesforce’s versatile solutions can help you unlock new growth opportunities. As India continues its digital journey, Salesforce’s role will only grow stronger.</p>
<h2>FAQs</h2>
<p><strong>1. What is Salesforce best known for?</strong></p>
<p>Salesforce is best known for its CRM solutions that help businesses manage customer relationships, streamline operations, and boost productivity.</p>
<p><strong>2. Is Salesforce suitable for small businesses in India?</strong></p>
<p>Absolutely! Salesforce offers scalable and cost-effective solutions tailored to the needs of small businesses.</p>
<p><strong>3. How does Salesforce support skill development in India?</strong></p>
<p>Through its Trailhead platform, Salesforce provides free learning resources to help individuals upskill and build careers in the Salesforce ecosystem.</p>
<p><strong>4. What industries in India benefit the most from Salesforce?</strong></p>
<p>Industries like retail, manufacturing, financial services, and e-commerce benefit significantly from Salesforce’s tailored solutions.</p>
<p><strong>5. Where are Salesforce’s offices located in India?</strong></p>
<p>Salesforce has offices in major cities like Mumbai, Hyderabad, Bengaluru, and Gurugram.</p>
<p>The post <a href="https://jharaphula.com/salesforce-company-in-india-transforming-businesses/">Salesforce Company in India &#8211; Transforming Businesses</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></content:encoded>
					
		
		
			<media:content url="https://jharaphula.com/wp-content/uploads/2025/01/salesforce-company-in-india-transforming-businesses.jpg" medium="image" />
	</item>
		<item>
		<title>Computer Programming and Coding helps for IT Students</title>
		<link>https://jharaphula.com/computer-programming-and-coding-helps-for-it-students/</link>
		
		<dc:creator><![CDATA[Raghav Roy]]></dc:creator>
		<pubDate>Sat, 23 Nov 2024 05:18:01 +0000</pubDate>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Become a good Programmer]]></category>
		<category><![CDATA[experienced programmers]]></category>
		<category><![CDATA[HTML5 Coding Standards]]></category>
		<guid isPermaLink="false">https://jharaphula.com/?p=75675</guid>

					<description><![CDATA[<img width="300" height="184" src="https://jharaphula.com/wp-content/uploads/2024/11/computer-programming-and-coding-helps-for-it-students-300x184.jpeg" class="webfeedsFeaturedVisual wp-post-image" alt="Computer Programming and Coding helps for IT Students" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2024/11/computer-programming-and-coding-helps-for-it-students-300x184.jpeg 300w, https://jharaphula.com/wp-content/uploads/2024/11/computer-programming-and-coding-helps-for-it-students.jpeg 610w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>Computer programming and coding have gained popularity in recent years. However, coding has become more of a profession than a hobby. If you have a...</p>
<p>The post <a href="https://jharaphula.com/computer-programming-and-coding-helps-for-it-students/">Computer Programming and Coding helps for IT Students</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></description>
										<content:encoded><![CDATA[<img width="300" height="184" src="https://jharaphula.com/wp-content/uploads/2024/11/computer-programming-and-coding-helps-for-it-students-300x184.jpeg" class="webfeedsFeaturedVisual wp-post-image" alt="Computer Programming and Coding helps for IT Students" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2024/11/computer-programming-and-coding-helps-for-it-students-300x184.jpeg 300w, https://jharaphula.com/wp-content/uploads/2024/11/computer-programming-and-coding-helps-for-it-students.jpeg 610w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>Computer programming and coding have gained popularity in recent years. However, coding has become more of a profession than a hobby. If you have a hobby for coding, you can get an advantage while looking for a job because it is considered a critical career skill. Most employers show interest in hiring candidates with coding and programming ability. Currently, schools have started to teach coding to students belonging to junior classes. This helps students understand the basics from an early age for C assignment help, and when getting into higher classes, they are not worried about the complexity.</p>
<p>A lot of students ask why they should learn to code? The simple answer to this question is that the world is changing, and everyone depends on software and the internet. People do not have time to go to the market or visit the mall to buy clothes. They prefer to use an app like Myntra, Nykaa, Amazon, etc. To develop these apps, one needs to learn to code.</p>
<h2>Historical Context and Milestones</h2>
<p>The origins of computer programming trace back to the mid-19th century with Ada Lovelace’s work on Charles Babbage’s Analytical Engine. Her notes included what is considered the first algorithm intended for machine processing. The field gained momentum in the 1940s and 1950s with the advent of stored-program computers, leading to the development of assembly languages and later high-level languages like FORTRAN (1957) and COBOL (1959). These innovations allowed programmers to write instructions in a format closer to human language rather than binary or low-level machine code.</p>
<p>The late 20th century saw the rise of structured programming, object-oriented programming (OOP), and functional programming paradigms. Languages such as C (1972), C++ (1985), and Python (1991) revolutionized software development by offering modularity, reusability, and ease of maintenance. The evolution of programming languages continues today, with modern iterations like Rust and Kotlin addressing security, performance, and developer productivity challenges.</p>
<p>Moreover, you can get a wide range of career options when you look for a job. Here are ten reasons why coding is an important coding skill.</p>
<h3>1. Coding encourages logical thinking</h3>
<p>Coding needs logical thinking and trains children to handle complex problems by splitting them into smaller parts that are achievable and easier to solve. This entire process is known as decomposition. Schools teach their to code, not thinking that they will become a professional computer programmer or software engineer, but that fact that they can learn to think logically for C++ Assignment Help.</p>
<h3>2. Code helps Students for better Creativity</h3>
<p>Coding allows students to become creators. From an early age, if students learn to code, they begin to create something new. They can develop and design apps and video games. With code, youngsters can construct projects that they are fond of. When a student learns to code, they learn to expand their creativity and come up with new ideas to solve problems. Creativity is beyond computers. It allows students to open new ways and create something.</p>
<h3>3. Coding helps to Develop persistence</h3>
<p>Perseverance is not an uncomplicated attribute to teach when it comes to a child or student. However, it is an essential skill to hone in life. You do not want to leave a situation when you encounter a problem or an obstacle. You need to keep going. Coding helps to learn persistence so that you can find a solution to problems for Csharp assignment help. You need to keep working until you find the correct solution, and it might take up time, but you must not leave it midway.</p>
<h3>4. Coding helps to develop resilience</h3>
<p>No one can teach you to be resilient; it is something you learn from experience. When you work on coding, you learn resilience through troubleshooting. When you hit a dead-end, your brain starts to find solutions. If the first solution you have come across does not work, try another one until the problem is solved. This process is called debugging in computer programming.</p>
<h3>5. Coding can improve Communication Skills</h3>
<p>When you learn to code, it is similar to learning a new language. Yes, it is not like Spanish or Italian, but it is like the same skill. When you pick up a new language, you start with the basics and <a href="https://jharaphula.com/cohesive-device-linking-words-exercises/" target="_blank" rel="noopener">communicate better</a>. Unlike humans, computers only understand specific instructions, and that too when written in simple and easy-to-follow language.</p>
<h3>6. Develops structural thinking when learning to Code</h3>
<p>Students learn to develop structural thinking when they learn to code. They learn to construct using smaller pieces and build them into something large. This helps students comprehend computer programs and helps students see the big picture when they have a task with smaller pieces.</p>
<h3>7. Coding helps Students with problem-solving</h3>
<p>Every student has to deal with problems every day. Some are easy to solve, while others are complex and difficult to solve. When you learn to code, you learn to see a problem from different perspectives and situations. You learn to analyse all your options and find a way to solve the problems that come your way. Therefore you learn to solve real-life problems from these coding problems. The problems are obviously different, but you analyse them from a different perspective.</p>
<h3>8. Coding improves Students math Skills</h3>
<p>One of the main reasons why students benefit from coding is that students who have math as one of their subjects can improve their math skills. Math is necessary when you code, but that does not imply that you have to be a math genius to learn to code.</p>
<h3>9. Coding gives Students Satisfaction</h3>
<p>When you <a href="https://jharaphula.com/data-json-to-html-table-php/" target="_blank" rel="noopener">learn to code and successfully solve a problem</a>, it provides a sense of satisfaction. You become more determined to solve complex problems and gain confidence in your capabilities. When you get confidence and satisfaction, it boosts your performance, and you feel that you can work on more projects.</p>
<h3>10. Coding helps younger Students learn to learn</h3>
<p>Students learn what the teacher is teaching in a normal classroom environment, but it is not the same with coding. Coding is subject where students can experiment. You can learn from experimentation and find out multiple solutions to a single problem.</p>
<p>A wonderful benefit of coding is that it teaches you that it is absolutely ok to have a different answer from others.</p>
<h2>Core Programming Concepts</h2>
<p>1. <strong>Syntax and Semantics</strong>: Every programming language has rules governing its structure (syntax) and meaning (semantics). Proper use of syntax ensures code can be parsed by compilers or interpreters, while accurate semantics guarantee the intended logic is executed.</p>
<p>2. <strong>Data Structures and Algorithms</strong>: Efficient program design relies on selecting appropriate data structures (arrays, linked lists, trees) and algorithms (sorting, searching). Mastery of these fundamentals enables developers to optimize performance and resource usage.</p>
<p>3. <strong>Control Structures</strong>: Conditional statements (`if-else`) and loops (`for`, `while`) control program flow, allowing dynamic execution based on varying inputs or conditions.</p>
<p>4. <strong>Modularity and Abstraction</strong>: Functions, classes, and libraries encapsulate reusable logic, reducing redundancy and improving maintainability. Abstraction hides complexity, exposing only necessary details to higher-level code.</p>
<h2>Programming Paradigms</h2>
<p>Different programming paradigms offer distinct approaches to software design:</p>
<p><strong>Imperative Programming</strong>: Focuses on how tasks are executed through sequences of commands (e.g., C, Python).<br />
<strong>Object-Oriented Programming (OOP)</strong>: Organizes code into objects with properties and methods, promoting clarity and scalability (e.g., Java, C++).<br />
<strong>Functional Programming</strong>: Treats computation as mathematical functions, avoiding mutable state and side effects (e.g., Haskell, Scala).<br />
<strong>Procedural Programming</strong>: Employs procedures or routines to structure code linearly (e.g., Pascal).</p>
<h2>Modern Development Practices</h2>
<p>The evolution of software development has been rapid, driven by the need for efficiency, scalability, and reliability. Modern development practices have transformed how teams build, test, and deploy applications. Among the most impactful methodologies are Version Control, DevOps and CI/CD, Test-Driven Development (TDD), and Cloud Computing. These practices enhance collaboration, streamline workflows, and ensure robust software delivery.</p>
<h3>Version Control</h3>
<p>Version control systems (VCS) are essential for managing changes in source code over time. They allow multiple developers to collaborate on a project without conflicts, ensuring that modifications are tracked and reversible.</p>
<p><strong>Key benefits of Version Control </strong></p>
<ul>
<li>Collaboration Efficiency: Developers can work simultaneously on different features without overwriting each other’s changes.</li>
<li>History Tracking: Every change is logged, making it easy to revert to previous versions if necessary.</li>
<li>Branching and Merging: Teams can create isolated branches for features or bug fixes, merging them back into the main codebase seamlessly.</li>
</ul>
<p>Git, the most widely used VCS, supports distributed development, enabling developers to work offline and synchronize changes later. Platforms like GitHub, GitLab, and Bitbucket provide cloud-based repositories that integrate with other development tools, further enhancing productivity.</p>
<h3>DevOps and CI/CD: Accelerating Software Delivery</h3>
<p>DevOps bridges the gap between development and operations, fostering a culture of continuous integration (CI) and continuous delivery (CD). Continuous Integration (CI) CI involves automatically merging code changes into a shared repository multiple times a day. Each commit triggers automated builds and tests, ensuring early detection of integration issues.</p>
<p>Tools like Jenkins, CircleCI, and GitHub Actions enable seamless CI/CD pipelines.</p>
<p><strong>Benefits of DevOps and CI/CD </strong></p>
<ul>
<li>Faster Releases: Automation reduces deployment cycles from weeks to minutes.</li>
<li>Improved Reliability: Automated testing ensures fewer bugs reach production.</li>
<li>Scalability: Cloud-native CI/CD pipelines handle large-scale applications efficiently.</li>
</ul>
<h3>Test-Driven Development (TDD)</h3>
<p>Developers follow a repetitive cycle: write a failing test, implement the minimum code to pass the test, and refactor the code for optimization.</p>
<p><strong>Advantages of TDD </strong></p>
<ul>
<li>Higher Code Quality: Writing tests first enforces better design and reduces defects.</li>
<li>Easier Maintenance: Well-tested code is less prone to breaking during updates.</li>
<li>Better Documentation: Tests serve as executable specifications for the codebase.</li>
</ul>
<p>Frameworks like JUnit (Java), pytest (Python), and RSpec (Ruby) support TDD by providing robust testing capabilities.</p>
<h3>Cloud Computing: The Foundation of Modern Infrastructure</h3>
<p>Cloud computing has revolutionized how applications are hosted, scaled, and managed. By leveraging remote servers, businesses can reduce infrastructure costs and improve flexibility.</p>
<p><strong>Key Cloud Models </strong></p>
<ul>
<li>Infrastructure as a Service (IaaS): Provides virtualized computing resources (e.g., AWS EC2, Google Cloud VMs).</li>
<li>Platform as a Service (PaaS): Offers development environments and deployment tools (e.g., Heroku, Azure App Service).</li>
<li>Software as a Service (SaaS): Delivers ready-to-use applications (e.g., Gmail, Salesforce).</li>
</ul>
<p><strong>Benefits of Cloud Computing </strong></p>
<ul>
<li>Cost Efficiency: Pay-as-you-go models eliminate upfront hardware investments.</li>
<li>Global Accessibility: Teams can collaborate from anywhere with an internet connection.</li>
</ul>
<p>Major providers like AWS, Microsoft Azure, and Google Cloud dominate the market, offering AI, machine learning, and serverless computing capabilities.</p>
<h2>Industry Applications</h2>
<p>Programming underpins diverse sectors:</p>
<p><strong>Finance</strong>: Algorithmic trading, blockchain, and fraud detection systems rely on high-performance code.<br />
<strong>Healthcare</strong>: Machine learning models assist in diagnostics, while EHR systems streamline patient data management.<br />
<strong>Automotive</strong>: Embedded software powers autonomous driving and vehicle diagnostics.<br />
<strong>Gaming</strong>: Real-time rendering and physics simulations demand efficient coding practices.</p>
<p>Emerging fields like quantum computing and AI push programming boundaries, spurring innovation in tools and methodologies.</p>
<h2>Scalability and Optimization</h2>
<p>Writing efficient code is critical as systems scale. Techniques include:</p>
<p><strong>Profiling and Benchmarking</strong>: Identifying bottlenecks to optimize performance-critical sections.<br />
<strong>Concurrency and Parallelism</strong>: Leveraging multi-threading and distributed computing to improve throughput.<br />
<strong>Memory Management</strong>: Minimizing leaks and fragmentation through disciplined allocation practices.</p>
<h2>Common Challenges</h2>
<p>Despite advancements, developers face persistent challenges:</p>
<p><strong>Technical Debt</strong>: Accumulated shortcuts require refactoring to prevent deterioration in maintainability.<br />
<strong>Security Vulnerabilities</strong>: Secure coding practices mitigate risks like SQL injection or buffer overflows.<br />
<strong>Compatibility</strong>: Ensuring interoperability across platforms and devices remains complex.</p>
<h2>The Future of Programming</h2>
<p>Trends shaping the future include:</p>
<p><strong>AI-Assisted Development</strong>: Tools like GitHub Copilot enhance productivity through code suggestions.<br />
<strong>Low-Code/No-Code Platforms</strong>: Democratizing development for non-programmers while raising concerns about customization limits.<br />
<strong>Quantum Programming</strong>: Emerging languages like Q unlock possibilities in cryptography and optimization.</p>
<p>The demand for skilled programmers continues to grow, underscoring the discipline’s pivotal role in technological progress. Mastery of programming principles empowers professionals to innovate, solve complex problems, and contribute to advancements that redefine industries. As new paradigms emerge and computing capabilities expand, the adaptability and creativity of programmers will remain indispensable in shaping the future of digital transformation.</p>
<h2>To Wrap up</h2>
<p>Coding is one of the most used things in the world. It is used for developing apps, software, websites and video games. It plays a crucial role in artificial intelligence and machine learning. Coding is a vital skill for IT students, offering academic, professional, and personal benefits. It sharpens problem-solving abilities, enhances technical knowledge, and expands career opportunities. Beyond technical advantages, programming encourages creativity, collaboration, and adaptability in a fast-changing digital landscape. By prioritizing coding proficiency, IT students position themselves for long-term success in the technology sector.</p>
<p>The post <a href="https://jharaphula.com/computer-programming-and-coding-helps-for-it-students/">Computer Programming and Coding helps for IT Students</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></content:encoded>
					
		
		
			<media:content url="https://jharaphula.com/wp-content/uploads/2024/11/computer-programming-and-coding-helps-for-it-students.jpeg" medium="image" />
	</item>
		<item>
		<title>How to understand and Fix HTML Errors 404 or 401 or 403?</title>
		<link>https://jharaphula.com/how-to-understand-and-fix-html-errors/</link>
		
		<dc:creator><![CDATA[Rupamati Roy]]></dc:creator>
		<pubDate>Sun, 02 Jun 2024 15:32:26 +0000</pubDate>
				<category><![CDATA[Learn HTML5 with Examples]]></category>
		<category><![CDATA[Canvas in HTML5]]></category>
		<category><![CDATA[HTML Errors]]></category>
		<category><![CDATA[HTML5 Drag and Drop]]></category>
		<guid isPermaLink="false">https://jharaphula.com/?p=75028</guid>

					<description><![CDATA[<img width="300" height="184" src="https://jharaphula.com/wp-content/uploads/2024/06/error-page-300x184.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="How to understand and Fix HTML Errors 404 or 401 or 403?" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2024/06/error-page-300x184.jpg 300w, https://jharaphula.com/wp-content/uploads/2024/06/error-page.jpg 610w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>Why do all the HTML errors seem to have some kind of vague number rather than a real definition of what just happened while you...</p>
<p>The post <a href="https://jharaphula.com/how-to-understand-and-fix-html-errors/">How to understand and Fix HTML Errors 404 or 401 or 403?</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></description>
										<content:encoded><![CDATA[<img width="300" height="184" src="https://jharaphula.com/wp-content/uploads/2024/06/error-page-300x184.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="How to understand and Fix HTML Errors 404 or 401 or 403?" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2024/06/error-page-300x184.jpg 300w, https://jharaphula.com/wp-content/uploads/2024/06/error-page.jpg 610w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>Why do all the HTML errors seem to have some kind of vague number rather than a real definition of what just happened while you were trying to remove a website or upload your email? But numbers are commonplace, and discovering what is wrong with your computer requires digging deeper into our alternatives. Interestingly, many HTML errors such as 0x0 0x0 have the same causes or — at least — the same solutions.</p>
<h2>List of common HTML Errors</h2>
<h3>Error 400</h3>
<p>If you see a message like “400: Bad Request” or especially “<a href="https://jharaphula.com/err-too-many-redirects/" target="_blank" rel="noopener">HTTP 400 Error</a> — Bad Request” you can trust what you see. The request that you requested was incorrect in some way. Typing a URL in your browser is a signal to a computer that you are requesting a page from another computer, or server. If something goes wrong with the URL you entered, it can not load and give you an error.</p>
<p>While typing is certainly a possible 400 error, it is also possible that the page you are trying to access has been deleted, the URL has been copied incorrectly or is missing important items. The website may also have been updated.</p>
<h3>Error 401</h3>
<p>“401: Unauthorized” means you are not the person the website was hoping to see when you tried to sign in. Mistake 401 is a simple mistake — the visible door has just been slammed into your face for website security. If you did not log in to a website that requires users to enter their username and password, you will see Error 401. If you tried to log in, but the web server did not detect you, you mistyped something or something unusual. twist of fate, you will not be allowed to continue and you will be looking down Error 401 again.</p>
<h3>Error 403</h3>
<p>Naughty into! If you receive an Error 403 message, it means you have tried to access the part of the website that is completely banned, banned. Who knows what the webmaster is trying to hide behind a brick wall you just hit, but one thing is for sure — you will not proceed with that particular URL. At least not yet.</p>
<p>You could be calling Error 403 rather innocently, of course, but you are typing something wrong with the URL or maybe you are trying to access the website at the wrong time of day. This error does not mean that you have done something wrong … unless you have done something wrong.</p>
<h3>Error 404</h3>
<p>You may see any number of different error messages 404, but they will all have something in the “Error 404: Page Not Found”. You will see an error message 404 if you are trying to remove a webpage that is not actually on the server.</p>
<p>In general terms, Error 404 is said to be your fault, but in reality not all Error 404 messages appear due to user error. Pages may be inferior to a website or you may be trying to access a page that the website owner has removed or modified, and no one can blame you for that.</p>
<h3>Error 408</h3>
<p>Error 408 is a frustrating stumbling block especially on the internet. Type the URL or click the link. And wait. And wait. Then the website returns the error rather than the site you are trying to access. This Error 408 — “You Have an End Time.”</p>
<p>If you submit a website request and it does not load fast enough, the server stops. Instead of loading the site in question, it coughs up an error. Sometimes a quick recovery is helpful, but sometimes a strong connection is needed. To refresh your browser, click the round arrow next to the address bar.</p>
<h2>Fixing HTML Errors</h2>
<p>While there are many numbers caused by various online errors 0x0 0x0 above, many will have similar or similar solutions. If you do not find the website you are trying to access, problem solving involves some form of ground piercing.</p>
<h3>Check Internet Connection</h3>
<p>Do a quick check that you are getting full internet access by removing the search page and looking for something random. If you get results and you can click on those sites, you can skip the wrong internet out of your list of potential problems. If you do not come across any new websites, you may do well to reset your route and restart your computer to make sure you are fully connected to the Internet.</p>
<h3>Look at the obvious flaws</h3>
<p>Look at the address you just typed in and look for obvious errors — long URLs are especially difficult to spell correctly. If you miss a single letter or dot, you will not go far. Also note, especially in Error 403 where the password will be encrypted, that you do not have Caps Lock unlocked. Also check that the Number Lock is set to the default setting. If you find a valid error, just fix it and try again. The solution may be quite simple.</p>
<h3>Restart your computer</h3>
<p>Although it is suspected that the Internet is giving you a problem, not your computer, it does not hurt to restart the computer. When you restart your computer it may update some important software or reset the connection to the router so that your internet can work faster or faster. It’s easy to fix, and it’s worth the few minutes it takes.</p>
<h3>Update your browser</h3>
<p>If you notice that you have a lot of internet problems and you see a few problems appear, check to make sure your internet browser is up to date. Your browser is probably set to update automatically as new versions become available, but if you stop updating or skip updates, you can get caught by going to Windows Update for Internet Explorer, and by going to the Firefox Toolbar. and Chrome.</p>
<h3>Update plug-in</h3>
<p>If your browser is completely up-to-date, check to make sure your most used plugins are up to date. Among the standard plug-in for websites are things like ActiveX and Flash. You can see the message on the website to update the plug-in or you can update this yourself by visiting the websites and downloading malicious applications to update or install the plug-ins. Firefox provides a plug-in test page here too for ideas on what might be causing the problem.</p>
<p>The post <a href="https://jharaphula.com/how-to-understand-and-fix-html-errors/">How to understand and Fix HTML Errors 404 or 401 or 403?</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></content:encoded>
					
		
		
			<media:content url="https://jharaphula.com/wp-content/uploads/2024/06/error-page.jpg" medium="image" />
	</item>
		<item>
		<title>Best Marketplace to Hire Freelance PHP Developers</title>
		<link>https://jharaphula.com/best-marketplace-to-hire-freelance-php-developers/</link>
		
		<dc:creator><![CDATA[Biswabhusan Panda]]></dc:creator>
		<pubDate>Mon, 10 Jul 2023 11:27:30 +0000</pubDate>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[File Operation using PHP]]></category>
		<category><![CDATA[Freelance PHP Developers]]></category>
		<category><![CDATA[Hire Freelance]]></category>
		<category><![CDATA[MySQL to Excel using PHP]]></category>
		<category><![CDATA[PHP File Handling]]></category>
		<guid isPermaLink="false">https://jharaphula.com/?p=65630</guid>

					<description><![CDATA[<img width="300" height="175" src="https://jharaphula.com/wp-content/uploads/2023/07/best-marketplace-to-hire-freelance-php-developers-copy-300x175.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="Best Marketplace to Hire Freelance PHP Developers" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2023/07/best-marketplace-to-hire-freelance-php-developers-copy-300x175.jpg 300w, https://jharaphula.com/wp-content/uploads/2023/07/best-marketplace-to-hire-freelance-php-developers-copy.jpg 610w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>Are you in need of a skilled PHP developer for your next project? Look no further! In this article, we will explore the best marketplace...</p>
<p>The post <a href="https://jharaphula.com/best-marketplace-to-hire-freelance-php-developers/">Best Marketplace to Hire Freelance PHP Developers</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></description>
										<content:encoded><![CDATA[<img width="300" height="175" src="https://jharaphula.com/wp-content/uploads/2023/07/best-marketplace-to-hire-freelance-php-developers-copy-300x175.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="Best Marketplace to Hire Freelance PHP Developers" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2023/07/best-marketplace-to-hire-freelance-php-developers-copy-300x175.jpg 300w, https://jharaphula.com/wp-content/uploads/2023/07/best-marketplace-to-hire-freelance-php-developers-copy.jpg 610w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>Are you in need of a skilled PHP developer for your next project? Look no further! In this article, we will explore the best marketplace to hire freelance PHP developers who can bring your ideas to life. Whether you&#8217;re a startup, small business, or an established company, finding the right PHP developer can be crucial for the success of your web development projects. We&#8217;ll discuss the benefits of hiring freelancers, the qualities to look for in a <a href="https://halogig.com/technology/hire-php-developers" target="_blank" rel="nofollow noopener">freelance PHP developer</a>, and introduce you to Halogig.com, a leading marketplace for connecting businesses with top-notch PHP developers.</p>
<h3>The Importance of PHP Developers</h3>
<p>In today&#8217;s digital age, having a strong online presence is vital for businesses. PHP, a popular scripting language, powers a significant portion of websites and web applications. PHP developers play a crucial role in designing, developing, and maintaining websites, ensuring their functionality and performance. Hiring the right PHP developer can make a world of difference in the success of your online ventures.</p>
<h3>Benefits of Hiring Freelance PHP Developers</h3>
<p><strong>Flexibility</strong>: Freelance PHP developers offer the flexibility to work on a project-by-project basis. You can hire them for short-term assignments or long-term collaborations, depending on your requirements.</p>
<p><strong>Cost-Effectiveness</strong>: Freelancers often have competitive rates compared to in-house developers, making them a cost-effective choice for businesses with budget constraints.</p>
<p><strong>Diverse Skill Sets</strong>: Freelance PHP developers bring a wealth of experience from working on various projects. They possess diverse skill sets and can adapt to different technologies and frameworks.</p>
<p><strong>Quick Turnaround</strong>: Freelancers are accustomed to working on tight deadlines and can provide a quick turnaround for your projects, ensuring timely delivery.</p>
<h3>Qualities to Look for in a PHP Developer</h3>
<p><strong>Strong Technical Skills</strong>: Look for PHP developers with a solid understanding of PHP frameworks, databases, and web development technologies such as HTML, CSS, and JavaScript.</p>
<p><strong>Portfolio and Experience</strong>: Review the developer&#8217;s portfolio to assess their previous work and experience in projects similar to yours.</p>
<p><strong>Communication Skills</strong>: Effective communication is crucial for successful collaboration. Ensure the developer has good communication skills and can understand your project requirements clearly.</p>
<p><strong>Problem-Solving Abilities</strong>: A skilled PHP developer should be able to analyze and resolve technical challenges efficiently.</p>
<h3>Introducing Halogig.com</h3>
<p><a href="https://halogig.com/" target="_blank" rel="noopener nofollow">Halogig.com</a> is a leading online marketplace that connects businesses with highly skilled PHP developers. With a vast pool of talented freelancers, Halogig.com simplifies the process of finding and hiring the perfect PHP developer for your project. Whether you need assistance with website development, e-commerce solutions, or custom web applications, Halogig.com has you covered.</p>
<h3>How Halogig.com Works?</h3>
<p><strong>Post your Project</strong>: Describe your project requirements and timeline on Halogig.com.</p>
<p><strong>Browse PHP Developers</strong>: Explore the profiles and portfolios of PHP developers available on the platform.</p>
<p><strong>Hire the Right Match</strong>: Select a PHP developer who best aligns with your project needs and budget.</p>
<p><strong>Collaboration and Communication</strong>: Work closely with your chosen developer, provide feedback, and track progress through Halogig.com&#8217;s secure platform.</p>
<p><strong>Project Completion and Payment</strong>: Once the project is completed to your satisfaction, release payment to the developer through the platform.</p>
<h3>Why Choose Halogig.com for Hiring PHP Developers?</h3>
<p><strong>Quality Assurance</strong>: Halogig.com carefully screens and verifies the skills and expertise of PHP developers, ensuring you connect with top-quality professionals.</p>
<p><strong>Seamless Collaboration</strong>: The platform provides tools for efficient collaboration, including messaging, file sharing, and project management features.</p>
<p><strong>Secure Payments</strong>: Halogig.com ensures secure transactions, protecting both clients and developers.</p>
<p><strong>Dedicated Support</strong>: Halogig.com offers dedicated customer support to address any queries or concerns you may have during the hiring process.</p>
<p><strong>Wide Range of Expertise</strong>: Whether you require PHP developers with expertise in Laravel, CodeIgniter, or other frameworks, Halogig.com offers a diverse talent pool to meet your specific needs.</p>
<h3>Pricing and Payment Options</h3>
<p>Halogig.com offers flexible pricing options based on the complexity and duration of your project. The platform provides transparent pricing information, allowing you to make informed decisions. Payments can be made securely through Halogig.com, ensuring a hassle-free transaction process.</p>
<h3>Conclusion</h3>
<p>Hiring the right PHP developer is crucial for the success of your web development projects. Halogig.com provides a reliable platform for connecting businesses with highly skilled PHP developers. With a vast talent pool, seamless collaboration tools, and secure payment options, Halogig.com simplifies the process of finding and hiring the perfect PHP developer. Take your projects to new heights with the expertise of freelance PHP developers from Halogig.com.</p>
<p>The post <a href="https://jharaphula.com/best-marketplace-to-hire-freelance-php-developers/">Best Marketplace to Hire Freelance PHP Developers</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></content:encoded>
					
		
		
			<media:content url="https://jharaphula.com/wp-content/uploads/2023/07/best-marketplace-to-hire-freelance-php-developers-copy.jpg" medium="image" />
	</item>
		<item>
		<title>Custom Mobile Application Development benefits</title>
		<link>https://jharaphula.com/custom-mobile-application-development-benefits/</link>
		
		<dc:creator><![CDATA[Biswabhusan Panda]]></dc:creator>
		<pubDate>Tue, 07 Feb 2023 08:46:43 +0000</pubDate>
				<category><![CDATA[Microsoft Technologies]]></category>
		<category><![CDATA[Android and iOS App]]></category>
		<category><![CDATA[Business Advantages]]></category>
		<category><![CDATA[Custom Mobile Application]]></category>
		<category><![CDATA[Develop Mobile Apps]]></category>
		<category><![CDATA[Enhances Effectiveness]]></category>
		<guid isPermaLink="false">https://jharaphula.com/?p=63196</guid>

					<description><![CDATA[<img width="300" height="191" src="https://jharaphula.com/wp-content/uploads/2023/02/custom-mobile-application-development-benefits-300x191.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="Custom Mobile Application Development benefits" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2023/02/custom-mobile-application-development-benefits-300x191.jpg 300w, https://jharaphula.com/wp-content/uploads/2023/02/custom-mobile-application-development-benefits.jpg 610w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>Custom Mobile Application Development is becoming more and more popular; according to surveys, they save workers 7.5 hours per week on average, and 82% of...</p>
<p>The post <a href="https://jharaphula.com/custom-mobile-application-development-benefits/">Custom Mobile Application Development benefits</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></description>
										<content:encoded><![CDATA[<img width="300" height="191" src="https://jharaphula.com/wp-content/uploads/2023/02/custom-mobile-application-development-benefits-300x191.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="Custom Mobile Application Development benefits" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2023/02/custom-mobile-application-development-benefits-300x191.jpg 300w, https://jharaphula.com/wp-content/uploads/2023/02/custom-mobile-application-development-benefits.jpg 610w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>Custom Mobile Application Development is becoming more and more popular; according to surveys, they save workers 7.5 hours per week on average, and 82% of business owners think they&#8217;ve enhanced earnings. Custom mobile apps may be modified in part or entirely to suit your business&#8217;s requirements. Instead of offering a service that meets the needs of a vast population with a variety of requirements, these apps appeal to a specific target audience.</p>
<h2>Many Business Advantages of Custom Mobile Application Development</h2>
<p>Today&#8217;s firms of all sizes, whether small, medium-sized, or large businesses, can maintain their competitiveness and boost productivity thanks to customized business apps. Some of the most well-liked benefits of mobile application development for organizations include the following.</p>
<h2>Enhances Effectiveness</h2>
<p>Business applications work as a single, all-encompassing piece of software that can perform a variety of duties, obviating the need for several apps because they were developed with the needs of your firm in mind. Because they are made to fit your working style, these applications help increase employee productivity, which is great for businesses. provide high ROI scalability</p>
<p>Applications that are used frequently control a small number of resources and operations. These apps might not be able to handle the demand if your business were to expand.</p>
<h2>Security of Data for Applications</h2>
<p>Common business apps probably lack specialized security safeguards, endangering your company&#8217;s data security. Your data security system will improve if you have a custom app made just for your business since the needs of your business will be taken into consideration during the app development process.</p>
<h2>Integrates With Existing Software</h2>
<p>Your current software and typical business apps might work together without any complications. Because they are created concerning the business software you already use, custom apps are ensured to integrate correctly and operate without any issues.</p>
<h2>Easily maintained</h2>
<p>You run the danger of putting yourself in the hands of a dishonest <a href="https://choosytrends.com/" target="_blank" rel="nofollow noopener">mobile app developer</a> if you use traditional apps for your regular business activities. You will need to locate a new app and stop using your existing one if the creator decides to stop supporting the app for whatever reason. You may take full control of your company app and stop depending on third parties by creating one.</p>
<h2>Improves Consumer Communications</h2>
<p>You can provide your present clients with real-time, customized updates on your goods and services with the use of <a href="https://tecrank.com/" target="_blank" rel="nofollow noopener">customized business applications</a>.</p>
<h2>Allows data to be retrieved from new clients</h2>
<p>You can gather crucial client data by including simple questionnaires and surveys in the custom mobile application. It functions as a covert method of data collection in addition to saving clients and staff time by removing the requirement for them to physically submit the papers.</p>
<h2>Instantly permits projects access</h2>
<p>Having quick access to all of your work documents is helpful when traveling. With a custom-created app for your business, you can effortlessly connect your phone and desktop and access all of your work-related data, projects, calendars, etc. Additionally, getting contracts and brochures that you can give to your clients is simple when you use specialized business apps.</p>
<h2>Project management is simple</h2>
<p>Project deadlines and progress can be tracked in real-time using customized apps that can be loaded. Updates can be sent following the conclusion of each project phase, maintaining the payment cycle.</p>
<h2>Make digital records in support of accountability</h2>
<p>You can quickly take notes on the phone for dictation if the ideas and thoughts are pertinent to your consumer. After then, these recordings can be immediately stored in secure locations and will only be visible to authorized individuals. By doing this, you may increase responsibility and offer better customer service.</p>
<h2>During Custom Mobile Application Development, Consider the Following:</h2>
<p>Bespoke app solutions must be thoroughly studied before being implemented due to the market environment, rapidly changing mobile platforms and the requirement for quick turnaround. Consider a few factors before building a unique mobile app for your business.</p>
<p><strong>Faster Time to Market</strong> &#8211; For custom business apps to go to market quickly, they need to be inexpensive and produced quickly.</p>
<p><strong>Greater Efficiency</strong> &#8211; The custom apps need to be modified and mended for greater efficiency to ensure that the final solution is successful and improves.</p>
<p><strong>Many Network Compatibility</strong> &#8211; To ensure that the created app works properly on various networks in various regions, it must be tested for multiple operators.</p>
<p><strong>Data security</strong> &#8211; Since the majority of apps are made to be used by many people, they need to offer strong authentication and secure data access.</p>
<p><strong>Battery Life </strong>&#8211; Because people dislike apps that drain their batteries quickly, it is important to consider how the app affects battery life.</p>
<p><strong>Impressive UI/UX</strong> &#8211; The custom app should have a lovely user interface and provide users with an excellent user experience.</p>
<p><strong>Effective Data Synchronization</strong> &#8211; The application must be able to reliably and at the right frequency synchronize data with the server.</p>
<p>A streamlined communication channel, such as texting, WAP, or another protocol, must be available in the app.</p>
<h2>Trends for Custom Mobile Application Development</h2>
<p>Build Your App (BYOA) is a development of the bring your device (BYOD) idea as a result of the increasing consumerization of information technology. Although BYOA enables employees to use better work apps, it can also be seen as a huge security issue. Employees will use mobile or cloud apps if they have little control over how their data is stored, accessed, or used.</p>
<p>The post <a href="https://jharaphula.com/custom-mobile-application-development-benefits/">Custom Mobile Application Development benefits</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></content:encoded>
					
		
		
			<media:content url="https://jharaphula.com/wp-content/uploads/2023/02/custom-mobile-application-development-benefits.jpg" medium="image" />
	</item>
		<item>
		<title>How DevOps Helps deliver better Software?</title>
		<link>https://jharaphula.com/how-devops-helps-deliver-better-software/</link>
		
		<dc:creator><![CDATA[Megha Shetty]]></dc:creator>
		<pubDate>Mon, 10 Oct 2022 13:51:06 +0000</pubDate>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Cloud and DevOps]]></category>
		<category><![CDATA[DevOps]]></category>
		<category><![CDATA[DevOps for your Business]]></category>
		<category><![CDATA[IT operations]]></category>
		<category><![CDATA[Quality Software]]></category>
		<guid isPermaLink="false">https://jharaphula.com/?p=60063</guid>

					<description><![CDATA[<img width="300" height="188" src="https://jharaphula.com/wp-content/uploads/2022/10/dov-300x188.png" class="webfeedsFeaturedVisual wp-post-image" alt="How DevOps Helps deliver better Software?" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2022/10/dov-300x188.png 300w, https://jharaphula.com/wp-content/uploads/2022/10/dov.png 610w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>DevOps is a workflow that helps organizations deliver better software faster. In this blog post, we&#8217;ll explain how DevOps works and why it&#8217;s essential for...</p>
<p>The post <a href="https://jharaphula.com/how-devops-helps-deliver-better-software/">How DevOps Helps deliver better Software?</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></description>
										<content:encoded><![CDATA[<img width="300" height="188" src="https://jharaphula.com/wp-content/uploads/2022/10/dov-300x188.png" class="webfeedsFeaturedVisual wp-post-image" alt="How DevOps Helps deliver better Software?" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2022/10/dov-300x188.png 300w, https://jharaphula.com/wp-content/uploads/2022/10/dov.png 610w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>DevOps is a workflow that helps organizations deliver better software faster. In this blog post, we&#8217;ll explain how DevOps works and why it&#8217;s essential for any company to adopt the workflow if they want to compete in today&#8217;s technology market.</p>
<h3>DevOps is a collaboration between development and IT operations</h3>
<p>In practice, DevOps is a collaboration between development and IT operations. It isn&#8217;t a job title but a cultural shift focusing on breaking down silos between disciplines. DevOps is about collaborating closely with other teams to deliver better software faster; it&#8217;s about communication and automation.</p>
<p>In short: DevOps is about making <a href="https://jfrog.com/distribution/" target="_blank" rel="noopener noreferrer">software distribution</a> easy for everyone involved (including the end-user).</p>
<p>Allows faster, more frequent deployments</p>
<p>Changing requirements, new ideas, and bugs are a natural part of software development. The more you deploy, the more likely you are to find something that needs fixing.</p>
<p>If your team can&#8217;t quickly deploy code changes without causing traffic jams in their production environment or incurring expensive downtime penalties from their cloud provider, they&#8217;ll be reluctant to experiment with new features.</p>
<p>The solution? Focus on improving the speed and frequency of deployments rather than trying to automate every step in the process (though automation is essential too).</p>
<h3>Help deliver better Quality Software</h3>
<p>One of the most critical aspects of delivering software is quality. The more you can automate your processes and improve consistency, the better your team will be able to deliver quality products.</p>
<p>In DevOps, it is common for an organization to build an automated <a href="https://jharaphula.com/benefits-continuous-integration-continuous-delivery/" target="_blank" rel="noopener noreferrer">continuous integration</a> (CI) pipeline. This type of pipeline will automatically run unit tests and other types of test cases on a piece of code before deploying it into production.</p>
<p>It&#8217;s also possible for some organizations to automate their entire deployment process using Jenkins or Spinnaker by deploying each change with every commit in Git or GitHub repositories, respectively.</p>
<p>This approach helps ensure that developers aren’t making mistakes as they write code because they don’t need to remember what they did last week or what they did yesterday when writing new features or fixing bugs &#8211; everything comes from automation scripts at this point which is executed once every time changes are made in either repository owned by either customer/product owner or developer themselves.</p>
<h3>Enables better communication and collaboration across teams</h3>
<p>DevOps is a culture, not just a tool. The most significant value of DevOps is in the process and culture that it enables. It’s a culture where teams align to build high-quality software quickly, safely, and at a low cost by improving communication across organizational functions.</p>
<p>A <a href="https://techbeacon.com/app-dev-testing/10-ways-build-highly-effective-devops-teams" target="_blank" rel="noopener noreferrer nofollow">strong DevOps team</a> will help you deliver better software faster than ever before. Here are some of the ways that we&#8217;ve seen this happen:</p>
<p>It reduces the time to market for new features or projects.</p>
<p>You get more frequent feedback from users (and your competition) because your product evolves acceleratedly.<br />
It increases quality as you&#8217;re able to implement more frequent automated testing cycles It decreases the time to market because you’re able to test and deploy changes more quickly.</p>
<p>It increases cross-functional collaboration across your organization.</p>
<h3>Requires the right tools to be successful</h3>
<p>To be successful, DevOps requires the right tools in place. You will need a change management system that allows you to keep track of all changes made to your software and their corresponding test results. You’ll also need monitoring tools that can alert you when problems arise and metrics systems that allow you to see how well teams perform against specific goals or benchmarks.</p>
<p>You’ll also want to ensure you have the right people on board—and no, we don’t necessarily mean developers or testers (although they are very important). We mean anyone who can help facilitate communication between teams so they can share information freely and effectively. This includes engineers from different areas such as QA, development, and infrastructure—and managers who understand how these roles fit together within the larger business context.</p>
<p>Finally, it’s vital for DevOps teams to adopt processes that make sense for their organization rather than relying on tried-and-true methods from other companies or industries because each one has its unique challenges; this is why it&#8217;s vital for organizations adopting DevOps practices​to define what those processes will look like beforehand so everyone knows what is expected of them before starting work each day.</p>
<h3>Conclusion</h3>
<p>We can’t talk about DevOps without mentioning the tools that make it possible. You can use several tools to automate tasks and improve collaboration between your teams, but some of the most popular ones include Jenkins, Puppet, and Chef.</p>
<p>The post <a href="https://jharaphula.com/how-devops-helps-deliver-better-software/">How DevOps Helps deliver better Software?</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></content:encoded>
					
		
		
			<media:content url="https://jharaphula.com/wp-content/uploads/2022/10/dov.png" medium="image" />
	</item>
		<item>
		<title>8 Reasons for using robust Front-end JS Framework Bootstrap</title>
		<link>https://jharaphula.com/bootstrap-must-be-used-for-these-reasons/</link>
		
		<dc:creator><![CDATA[Megha Shetty]]></dc:creator>
		<pubDate>Tue, 28 Jun 2022 15:53:30 +0000</pubDate>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[BootStrap]]></category>
		<category><![CDATA[Bootstrap Accordion]]></category>
		<category><![CDATA[BootStrap Grid System]]></category>
		<category><![CDATA[BootStrap Login page]]></category>
		<category><![CDATA[color of Bootstrap Accordion]]></category>
		<guid isPermaLink="false">https://jharaphula.com/?p=50693</guid>

					<description><![CDATA[<img width="300" height="181" src="https://jharaphula.com/wp-content/uploads/2022/06/bootstrap-social-300x181.png" class="webfeedsFeaturedVisual wp-post-image" alt="8 Reasons for using robust Front-end JS Framework Bootstrap" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2022/06/bootstrap-social-300x181.png 300w, https://jharaphula.com/wp-content/uploads/2022/06/bootstrap-social.png 610w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>Every front-end developer&#8217;s vision is to create a beautiful and versatile website design. Sadly, the procedure involves massive coding, which quickly becomes monotonous and time-consuming....</p>
<p>The post <a href="https://jharaphula.com/bootstrap-must-be-used-for-these-reasons/">8 Reasons for using robust Front-end JS Framework Bootstrap</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></description>
										<content:encoded><![CDATA[<img width="300" height="181" src="https://jharaphula.com/wp-content/uploads/2022/06/bootstrap-social-300x181.png" class="webfeedsFeaturedVisual wp-post-image" alt="8 Reasons for using robust Front-end JS Framework Bootstrap" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2022/06/bootstrap-social-300x181.png 300w, https://jharaphula.com/wp-content/uploads/2022/06/bootstrap-social.png 610w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>Every front-end developer&#8217;s vision is to create a beautiful and versatile website design. Sadly, the procedure involves massive coding, which quickly becomes monotonous and time-consuming. The <a href="https://jharaphula.com/learn-bootstrap-tutorial-beginners/" target="_blank" rel="noopener noreferrer">introduction of bootstrap</a> revolutionized the concept of web designing in the industry. Bootstrap is used on around 12 million websites. It&#8217;s time to look into the reasons why you should check into Bootstrap.</p>
<h2>Bootstrap</h2>
<p>It is a robust front-end HTML, CSS and <a href="https://jharaphula.com/responsive-bootstrap-login-page-example/" target="_blank" rel="noopener noreferrer">JavaScript CSS framework</a>. It is free to use. This open-source toolkit includes code targeted to help in the front-end website development process.</p>
<p>Today, let us discuss 8 main reasons for using Bootstrap:</p>
<h3>1. It saves time</h3>
<p>Using numerous templates in a project takes a lot of time. Furthermore, even minor changes in the design lead to hours of manual updating on numerous web pages. Bootstrap includes pre-made templates and themes. You can select from it, or you can integrate input from other sources. Many developers follow this process. But if u want to make <a href="https://jharaphula.com/website-design-affects-seo/" target="_blank" rel="noopener noreferrer">some unique website design</a>, use your creativity and modify a few settings.</p>
<p>A little experimentation will help you create a unique website, which will be different from other Bootstrap-based websites.</p>
<h3>2. It&#8217;s easy to use</h3>
<p>Bootstrap is incredibly simple to use. It has a quick and simple setup procedure. Even beginners can install and use it easily. Even without a rudimentary understanding of HTML, CSS, and JavaScript, it can help you edit the code easily. Moreover, one can learn more from the documentation page for Bootstrap.</p>
<h3>3. Responsive Grid-system</h3>
<p>Bootstrap removes the overall CSS portion of the workflow and enables developers to utilize its grid system. It is a 12-column structure that helps in the easy development of your page. Beginners can also do it initially, without learning about floats or their peculiarities. Once you grasp the fundamentals of Bootstrap&#8217;s grid structure, you can easily adapt your site to tablets or phones. It will appear exactly like the desktop version.</p>
<h3>4. Customizable</h3>
<p>If you don&#8217;t like the default design template of Bootstrap, you can modify its CSS file. You can also merge it with the existent code to make their tasks support one another. This skill is very beneficial for developing a distinctive design for the website. This can be used for short project deadlines, without learning CSS from the beginning.</p>
<p>Bootstrap can be further customized with the customization document and you can design your custom template. You should also discover and delete any unnecessary plugins or elements that you will not need for your web project. There is a section where you can change the parameters of the variables to personalize your template.</p>
<h3>5. Cross-Browser compatibility</h3>
<p>Bootstrap flawlessly works with all recent editions of popular platforms and browsers. However, Bootstrap indicates that it does not support older or proxy browsers. But, this does not impact its presentation or functionality.</p>
<h3>6. Maintaining Consistency</h3>
<p>For a long time, discrepancies existed among the Front-end and Backend development staff. The designers of Bootstrap were searching for a way to maintain uniformity between them.</p>
<p>Therefore, Bootstrap removes the need for libraries, which are constantly different from one programmer to the next. Therefore, you can maintain the consistency of your project parts regardless of who is working on them. Consistency also extends to online display, which means you&#8217;ll observe a constant performance irrespective of the <a href="https://jharaphula.com/when-internet-invented-internet-history/" target="_blank" rel="noopener noreferrer">internet browser</a> you are using for the application.</p>
<h3>7. It is an open-source</h3>
<p>Bootstrap is an open-source framework. Therefore, it is free of cost to download, use and alter. It also permits it to develop quickly with the support of over a thousand willing participants on GitHub.</p>
<h3>8. It is Community-centered and provides abundant Resources</h3>
<p>Bootstrap&#8217;s official website has a plethora of materials. Furthermore, some additional websites provide materials for the front-end development process. Furthermore, the official website provides excellent documentation. All of these can be utilized to easily develop a webpage. You also gain entry to their layouts and designs and customize them.</p>
<p>You can also explore materials on websites apart from Bootstrap. Then you can utilize them on projects that need their presence. Because the Bootstrap community is large, you can post a question if you are stuck in an issue while programming. You can get answers from the experienced developers, who had dealt with a similar problem when they were beginners as well.</p>
<p>Individuals of the Bootstrap community can present their projects on the Bootstrap Expo website. If you want to know how Bootstrap might help your project, you can explore this <a href="https://jharaphula.com/" target="_blank" rel="noopener noreferrer">webpage as a source of knowledge</a>.</p>
<h2>Conclusion</h2>
<p>We hope that this article has given you some ideas about the usability of bootstrap. It is easy to learn and developers can use it easily for short-deadline projects. We are a website design company in New York. Our expert developers can help you learn more about Bootstrap website development. Contact us to know more.</p>
<p>The post <a href="https://jharaphula.com/bootstrap-must-be-used-for-these-reasons/">8 Reasons for using robust Front-end JS Framework Bootstrap</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></content:encoded>
					
		
		
			<media:content url="https://jharaphula.com/wp-content/uploads/2022/06/bootstrap-social.png" medium="image" />
	</item>
		<item>
		<title>Why you Should Spend more Time Thinking related to Mongodb Training?</title>
		<link>https://jharaphula.com/thinking-about-mongodb-training/</link>
		
		<dc:creator><![CDATA[Megha Shetty]]></dc:creator>
		<pubDate>Mon, 23 May 2022 05:50:06 +0000</pubDate>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Configure MongoDB]]></category>
		<category><![CDATA[MongoDB]]></category>
		<category><![CDATA[MongoDB in Windows]]></category>
		<category><![CDATA[Mongodb Training]]></category>
		<category><![CDATA[MongoDB using Robomongo]]></category>
		<guid isPermaLink="false">https://jharaphula.com/?p=50492</guid>

					<description><![CDATA[<img width="300" height="180" src="https://jharaphula.com/wp-content/uploads/2022/05/mongodb-top-300x180.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="Why you Should Spend more Time Thinking related to Mongodb Training?" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2022/05/mongodb-top-300x180.jpg 300w, https://jharaphula.com/wp-content/uploads/2022/05/mongodb-top.jpg 610w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>There are many technical factors to consider when selecting a database for such a major project, and if you&#8217;re eager to know a modern technology,...</p>
<p>The post <a href="https://jharaphula.com/thinking-about-mongodb-training/">Why you Should Spend more Time Thinking related to Mongodb Training?</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></description>
										<content:encoded><![CDATA[<img width="300" height="180" src="https://jharaphula.com/wp-content/uploads/2022/05/mongodb-top-300x180.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="Why you Should Spend more Time Thinking related to Mongodb Training?" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2022/05/mongodb-top-300x180.jpg 300w, https://jharaphula.com/wp-content/uploads/2022/05/mongodb-top.jpg 610w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>There are many technical factors to consider when selecting a database for such a major project, and if you&#8217;re eager to know a modern technology, you really have to know that it has momentum in the business so there are assets to help you develop as both a developer and operations expert. Here are several reasons why now is the best time to learn MongoDB. Moreover taking the <a href="https://hkrtrainings.com/mongodb-training" target="_blank" rel="noopener noreferrer nofollow">MongoDB training</a> is an added advantage for the professionals who want to explore this abruptive technology.</p>
<p>Well, before going to know about why one should spend more time on the MongoBD, you need to be aware of the few things listed below.</p>
<p>Let&#8217;s go through them one after the other.</p>
<h3>What is MongoDB?</h3>
<p>MongoDB is indeed a document database which is used to create robust and highly accessible web apps. It&#8217;s famous among agile methodologies teams because of its adaptable design approach. MongoDB presents an additional option for all popular languages: it is possible to start developing your project right away without having to worry about setting up a database.</p>
<p>MongoDB is an open-source documents system that allows a system to effectively store data and is based on a horizontally scale-out design. MongoDB, which was established in 2007, has a large development community all around the world.</p>
<p>Each entry in a Mongodb is indeed a document defined in BSON, a binary description of the information, rather than rows and even columns in the <a href="https://jharaphula.com/database-basics-terminologies-definition/" target="_blank" rel="noopener noreferrer">SQL database system</a>. That data could then be retrieved in Json by programs.</p>
<p>The simple JSON file representing a historical character is shown below.</p>
<h3>Code Style</h3>
<p>Document databases are extremely adaptable, allowing for changes in document structure and the storage of incomplete documents. Others can be embedded in one document. Fields in a document are similar to columns in a SQL database in that they can be indexed to improve search performance.</p>
<p>MongoDB has been developed on a scale-out architecture since its inception, which allows many tiny machines to collaborate to create fast systems and process large volumes of data.</p>
<p>Modifications in documents as well as the preservation of unfinished documents are both possible with document databases. Others are incorporated into a single document. Fields inside a document could be categorized to enhance search efficiency, just like rows in a SQL database.</p>
<p>Since its beginning, MongoDB was already built on a scalability design, which enables many small computers to work together to construct fast platforms and handle enormous amounts of data.</p>
<p>MongoDB has also always emphasized providing an exceptional experience, which, together with its other capabilities, have earned this a favorite with designers globally for a variety of applications.</p>
<h3>Why use MongoDB?</h3>
<p>MongoDB is based on a scalability design, which has grown popular of all types for creating scalable systems with changing data schemas.</p>
<p>MongoDB makes it simple for programmers to manage data from multiple sources as a collection of documents. It stores documents in a JSON-like manner. Most high &#8211; level languages automatically translate this style to native entities, giving it a logical decision for programmers because they don&#8217;t have to worry regarding data normalization. <a href="https://jharaphula.com/how-to-install-run-mongodb-in-windows/" target="_blank" rel="noopener noreferrer">MongoDB</a> could scale vertically and horizontally to meet big data loads and therefore can manage enormous volumes.</p>
<p>MongoDB was created for web and commercial application developers that need to innovate swiftly and scale gracefully. MongoDB is used by businesses and software developers of all capacities for a number of purposes.</p>
<p><strong>1</strong>. In any modern programming, the document database schema provides a powerful mechanism to keep and obtain data that allows developers to work rapidly.</p>
<p><strong>2</strong>. MongoDB Atlas was accessible inside any significant public cloud (such as AWS, Azure, and Google Cloud), the Corporate Accelerated model is available in big data centers, as well as the open Platform version is freely available.</p>
<p><strong>3</strong>. MongoDB provides a fantastic customer experience for programmers, who really can download it and continue writing code right away.</p>
<p><strong>4</strong>. Completely scalable:MongoDB&#8217;s horizontally sized <a href="https://jharaphula.com/category/business-radar/" target="_blank" rel="noopener noreferrer">businesses</a> architecture could handle massive data &amp; traffic levels.</p>
<p><strong>5</strong>. MongoDB does have a vast and well-developed platform environment. It features a global network of programmers and experts, making it simple to obtain assistance. It also provides enterprise-level assistance.</p>
<p>When designing application software that manages a range of data in a comprehensible way, MongoDB allows your organization to do more and quicker.</p>
<p>If you really need to: Enable a quick incremental approach, MongoDB seems to be a fantastic choice. Allow a huge handful of teams to collaborate. Adapt to large read and understand traffic volumes. Increase the amount of your data store. As the business evolves, adjust the distribution type. Text, geographical, and time information can be stored, managed, and searched.</p>
<p>MongoDB is developed as a business as the amount of use applications with all these qualities has increased.</p>
<p>Now we will explore the features and advantages of mongDB.</p>
<h3>Features of the Mongdb</h3>
<p>MongoDB is now one of the greatest popular databases in the industry since it is very effective for programmers to save, maintain, and recover information while using many programming languages designed apps.</p>
<p>Let&#8217;s have a look at the best five MongoDB features for the developers. They are:</p>
<p><strong>Document-Oriented Systems Potential</strong> &#8211; MongoDB was the first of what are now known as Nosql systems, which arose as a result of RDBMS systems that rely on SQL failing to accommodate the complexity and fast design cycle required for modern systems.</p>
<p>Document-oriented systems such MongoDB, column databases, in-memory database systems, as well as other NoSQL technologies are included.</p>
<p>Records are saved in MongoDB as texts in compacted BSON files. The files could be downloaded in Json, that provides a number of advantages:</p>
<p><strong>1</strong>. It is a natural way to store information.</p>
<p><strong>2</strong>. It&#8217;s accessible by humans.</p>
<p><strong>3</strong>. The single document could include both structured and unstructured data.</p>
<p><strong>4</strong>. To store complicated data elements, nest JSON.</p>
<p><strong>5</strong>. Because JSON seems to have a complex and adaptable schema, adding different fields is simple.</p>
<p><strong>6</strong>. Like most programming, files correspond to objects.</p>
<p>JSON is a straightforward yet effective way to express and store information that most developers find simple to work with.</p>
<p>Perhaps most crucially, the database model is at the company&#8217;s hands. Even without assistance of a data analyst, developers alter and rearrange the database structure as the program matures. MongoDB could use schema verification to control and integrate structural changes of objects when necessary.</p>
<p>To handle additional data types beyond JSON, MongoDB invented the Binary JSON standard (BSON). The new layout enables for higher bandwidth extraction. BSON data may be accessed and indexed, which greatly improves efficiency. Text, numeric, geographic and incomplete indexing are among the sorting methods supported by MongoDB.</p>
<h3>User Experience for Developers</h3>
<p>MongoDB always has spent a great deal of time and resources checking to make sure programmers have a good time. MongoDB have ensured that perhaps the database could be used with a wide variety of content technologies, such C, C# /.NET, Objective &#8211; c, Go, Php, Html, PHP, Ruby, Java, Rust, Scala and Swift.</p>
<p>As even more enterprise customers have entered the MongoDB ecosystem, new capabilities have been developed to help corporate IT departments use and operate MongoDB. For clients who demand it, MongoDB also provides first-class assistance.</p>
<p>It&#8217;s simpler than ever before to utilize MongoDB using MongoDB Atlas, the dataset at the heart of the MongoDB Cloud. With some keystrokes just on the graphical interface, users may create a cluster and begin writing.</p>
<p>MongoDB Atlas helps programmers to really get started in either large public infrastructure right immediately and move on premises MongoDB installations to the clouds with ease.</p>
<p><strong>MongoDB Atlas does have significant features such as:</strong></p>
<p><strong>1</strong>. Full-text searching using MongoDB Atlas Searching (enabled by Lucene web browser).</p>
<p><strong>2</strong>. MongoDB Realm provides completely controlled back-end mobile services &amp; online app development.</p>
<p><strong>3</strong>. Developers can query and merge data saved in Atlas using information stored in Amazon Web services or other HTTPS stores using the MongoDB Atlas Centralized Repository.</p>
<h3>Transactionality and Durability:</h3>
<p>Because of MongoDB&#8217;s scalability architecture, that spreads tasks throughout many fewer (and less expensive) servers, you could create applications which can withstand traffic surges as your company grows.</p>
<p>MongoDB&#8217;s architectural advancements allow for huge reads &amp; writes. The concept of workloads used by MongoDB remains at the center of these advancements, enabling clusters of data to really be kept together while being distributed along a set of servers. Many Database systems, on the other hand, employ a constrained scale-up design which relies on the creation of better and faster machines.</p>
<p>It&#8217;s customary to integrate objects inside objects when modeling information in MongoDB. Using MongoDB, something that used to require numerous operations in classic database systems are sometimes accomplished inside a single trade.</p>
<p>If necessary, MongoDB additionally allows database operations, which aggregate several database updates and enable them to really be performed or refused in a group.</p>
<h3>Maturity of the System and Community:</h3>
<p>MongoDB has only been around since 2006 which is used by <a href="https://jharaphula.com/category/business-radar/" target="_blank" rel="noopener noreferrer">hundreds of businesses</a> for a variety of purposes. The system has indeed been enhanced to satisfy a vast number of additional requests as a logical outcome of that utilization level. Many large businesses really would like to make it simple to receive help with any tech which becomes the backbone of their operations.</p>
<p>MongoDB does have a huge and active development community in the active forum, academics, and even among technology providers and consultancy organizations all around the world.</p>
<h3>When Can MongoDB Be Used?</h3>
<p>MongoDB is indeed a general-purpose repository being used in a variety of fields to aid different applications such as gaming, retails and financial service, etc.. Because it handles long-standing obstacles in information design and system development, MongoDB has located a new home together in multiple organizations and roles. MongoDB is commonly used in the following scenarios:</p>
<p><strong>Bringing together massive quantities of disparate data</strong> &#8211; If you&#8217;re combining dozens or hundreds of sources of data, the document&#8217;s model&#8217;s versatility and capability can help you generate a single continuous perspective in a manner which other systems can&#8217;t. When alternative databases had failed, MongoDB seems to have been effective in providing such initiatives to life.</p>
<p><strong>Illustrating evolving complicated data structures</strong> &#8211; Document oriented allows documents to really be embedded to represent hierarchical structures as well as to accept data alterations over decades of documents. Geographic information formats, for example, are well accepted. As a result, the repository is more durable and doesn&#8217;t have to be rebuilt each time anything happens.</p>
<p><strong>Data delivery for greater application</strong> &#8211; MongoDB&#8217;s scalability design can handle enormous amounts of information and operations. Due to the obvious way this was created, MongoDB gives a comprehensive path to scaling, unlike alternative systems which can either handle such scope or could only do so with massive amounts of technology and peripheral devices. MongoDB comes with built-in scalability.</p>
<p><strong>Private or hybrid apps are supported</strong> &#8211; MongoDB could be designed to run as software installed or through MongoDB Atlas, a repository solution, on a laptop, a huge consortium of desktops inside a data center, or even in the cloud platform. Solutions that support all setup now and for the hereafter if you already have apps which need to operate anywhere they sound right.</p>
<p><strong>Supporting collaborative and agile innovation</strong> &#8211; Developers are in charge of the data in document systems. Data is transformed into developer-friendly code. It is not the same as forcing programmers to adopt a bizarre framework that necessitates an expert. Document &#8211; oriented also enables the representation of the data to evolve as needs are adequately recognised. Cooperation and accountability enable one group to manage one element of a text while another manages another.</p>
<h3>Advantages of MongDB</h3>
<p>Because of its competitive advantages and full rich features set, mongodb is a preferred choice for the programmers and developers.Compared to typical database systems, MongoDB has a number of advantages:</p>
<p><strong>Data framework for cloud-based applications</strong> &#8211; MongoDB isn&#8217;t just another database. That&#8217;s a comprehensive data infrastructure for applications. MongoDB Atlas, the company&#8217;s cloud solution, gives customers access to a wide range of applications that all work very well with your databases.</p>
<p><strong>Document models that are adaptable</strong> &#8211; MongoDB&#8217;s document architecture makes it simple to define and manage practically every database schema. MongoDB&#8217;s BSON file type, which was inspired by JSON, enables users to still have entities with different layers of fields inside the similar collection.</p>
<p>MongoDB enables users to define precise schemas as well as and validate information. When faced with actual data and modifications in demands or environment, this adaptability is invaluable.</p>
<p><strong>Data access that is broadly supported and code-native</strong> &#8211; To really get information in Object form in order to use in programmes, many databases required the usage of heavy wrapper including ORMs (Objects-Relational Mappers). MongoDB&#8217;s choice to save and visualize information in the document implies which you may use from any type of language, and also utilizing the native data formats.</p>
<p><strong>Design that is adaptable to change</strong> &#8211; Whether you&#8217;re used to needing to shut down your website or app to modify the structure of your information, you&#8217;re in good fortune: MongoDB is designed for it.</p>
<p>We put much effort in designing an efficient understanding of the failures, however the databases are often the bottleneck. Changing schemas doesn&#8217;t need any interruption, so you could begin writing additional information to MongoDB anywhere at time while disrupting its processes.</p>
<p><strong>Strong monitoring and query</strong> &#8211; What purpose seems to be a database when you can&#8217;t know what you&#8217;re looking for within it? MongoDB primarily intended to make information accessible and rarely needs join or transaction, but it&#8217;s capable of managing sophisticated queries.</p>
<p>With a limited line of descriptive code, you can search deeply into records and sometimes even operate complicated analytic pipelines using MongoDB Querying API.</p>
<p><strong>Simple and cost-effective setup</strong> &#8211; MongoDB provides a variety of versatile options. By using MongoDB Atlas within the cloud, users can select the instance size which best suits your needs. One could also configure your clusters to expand autonomously as needed. This manner, you may keep your prices low while yet being capable of handling unexpected traffic spikes.</p>
<p>You could now establish a Serverless Database in addition to the financial flexibility of specialized clusters. Users would only be paid for the current consumption of these datasets, making it extremely adaptable and ideal for many low-consumption use cases.</p>
<h3>Conclusion</h3>
<p>MongoDB is indeed a general-purpose repository which can aid your software development operations in a variety of ways. With its scalable abilities and flexible design, it can assist you in creating potential opportunities. It has adapters with most programming languages as well as a big user base, making it a wonderful user experience. It can also be used with any of the main cloud providers.</p>
<p>Why don&#8217;t you give a quick start on this MongoDB Atlas right now? Because it makes complete sense to grow your career brightly.</p>
<p>The post <a href="https://jharaphula.com/thinking-about-mongodb-training/">Why you Should Spend more Time Thinking related to Mongodb Training?</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></content:encoded>
					
		
		
			<media:content url="https://jharaphula.com/wp-content/uploads/2022/05/mongodb-top.jpg" medium="image" />
	</item>
		<item>
		<title>Microsoft E-Commerce Platform features for Businesses</title>
		<link>https://jharaphula.com/microsoft-e-commerce-platform/</link>
		
		<dc:creator><![CDATA[Megha Shetty]]></dc:creator>
		<pubDate>Wed, 09 Mar 2022 15:23:27 +0000</pubDate>
				<category><![CDATA[Microsoft Technologies]]></category>
		<category><![CDATA[eCommerce]]></category>
		<category><![CDATA[Install Microsoft Office]]></category>
		<category><![CDATA[Microsoft E-Commerce Platform]]></category>
		<category><![CDATA[Microsoft Teams can help]]></category>
		<category><![CDATA[Microsoft’s Hololens]]></category>
		<guid isPermaLink="false">https://jharaphula.com/?p=45957</guid>

					<description><![CDATA[<img width="300" height="187" src="https://jharaphula.com/wp-content/uploads/2022/03/ecommerce-300x187.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="Microsoft E-Commerce Platform features for Businesses" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2022/03/ecommerce-300x187.jpg 300w, https://jharaphula.com/wp-content/uploads/2022/03/ecommerce.jpg 610w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>When looking for a business solution to help you launch a new business online or run an existing one efficiently, you should think of an...</p>
<p>The post <a href="https://jharaphula.com/microsoft-e-commerce-platform/">Microsoft E-Commerce Platform features for Businesses</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></description>
										<content:encoded><![CDATA[<img width="300" height="187" src="https://jharaphula.com/wp-content/uploads/2022/03/ecommerce-300x187.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="Microsoft E-Commerce Platform features for Businesses" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2022/03/ecommerce-300x187.jpg 300w, https://jharaphula.com/wp-content/uploads/2022/03/ecommerce.jpg 610w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>When looking for a business solution to help you launch a new business online or run an existing one efficiently, you should think of an e-commerce platform. A Microsoft e-commerce platform is a business solution suite built on <a href="https://jharaphula.com/agile-development-methodology-scrum-manager/">ASP.NET architecture</a> with a myriad of features to help entrepreneurs create online pages, add and edit products, sell to customers, and process payments, among other operations.</p>
<p>Reliable Microsoft e-commerce platforms may also separate the business front end and back end to promote more focus on customers and products. If you have heard of headless e-commerce, this is it. With this introduction, you now know some of the features to check for your business. But let’s discuss these more in detail.</p>
<h3>Tools to Promote Online Business</h3>
<p>The Microsoft e-commerce platform you choose should be equipped with tools to help you operate online. They include the following.</p>
<p><strong>Web page creation tools</strong> – Whether you need to create a unique webshop or use existing markets, the platform you choose should facilitate this efficiently. On the same note, it should make it possible to produce descriptions, images, and change them without challenges.</p>
<p><strong>Marketing tools</strong> – When you want to drive revenue to your business, you need to market the business efficiently. A good .NET platform should come with SEO and other marketing tools to <a href="https://jharaphula.com/help-your-small-business-with-digital-marketing-strategies/" rel="noopener noreferrer" target="_blank">promote the business efficiently</a>.</p>
<p><strong>Payment processing engine</strong> – Whether you are integrated with places or using any other webshop, it is the responsibility of the Microsoft e-commerce platform to help process payments securely and accurately. So, ensure that it has this feature.</p>
<p>These features perfectly suit <a href="https://virtocommerce.com/microsoft-ecommerce-platform" rel="noopener noreferrer nofollow" target="_blank">Virto Commerce</a>, which is an ASP.NET commerce platform that you may want to consider right now for your business.</p>
<h3>Cloud-Based</h3>
<p>Today, most <a href="https://jharaphula.com/category/business-radar/" rel="noopener noreferrer" target="_blank">businesses solutions</a> are operated online. They are called cloud-based, which is where remote servers store the data and can present it via the internet anywhere in the world. An appropriate Microsoft e-commerce platform should function online and provide cloud-based solutions. With these, entrepreneurs can operate from anywhere using their internet-connected laptops, tablets, or mobile phones.</p>
<h3>Integration</h3>
<p>It is better when the Microsoft e-commerce platform you choose can work with other online solutions. This happens through integration, which gives you more features and tools to utilize. These could be markets, marketing platforms, or other partners.</p>
<p>If you happen to follow up on the integration, ensure that they add value to your online business. This means you should be able to access and utilize them as soon as you subscribe to the platform.</p>
<h3>Data Processing Capability</h3>
<p>We live in a world full of data. Any online business processes a lot of data every minute from customer buying habits to stocks and finances. A good Microsoft e-commerce platform should have the mechanism to collect, store, analyze, and report on data efficiently.</p>
<p>Luckily, all ASP.NET Microsoft e-commerce platforms are designed to handle a large amount of data, so they are efficient for any business. And since they are cloud-based, you can access the data securely from any location.</p>
<h3>Conclusion</h3>
<p>Even as we conclude, it is worth mentioning that the cost of subscribing to the platform is very important. All ASP.NET platforms are affordable because the <a href="https://jharaphula.com/category/programming-solutions/" rel="noopener noreferrer" target="_blank">programming</a> architecture is also affordable. So, your main focus should be on the features we have discussed.</p>
<p>The post <a href="https://jharaphula.com/microsoft-e-commerce-platform/">Microsoft E-Commerce Platform features for Businesses</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></content:encoded>
					
		
		
			<media:content url="https://jharaphula.com/wp-content/uploads/2022/03/ecommerce.jpg" medium="image" />
	</item>
		<item>
		<title>How to upgrade Windows to 10? &#8211; A Simple Guide to run Smoothly</title>
		<link>https://jharaphula.com/how-to-upgrade-windows-computer-running-smoothly/</link>
		
		<dc:creator><![CDATA[Megha Shetty]]></dc:creator>
		<pubDate>Thu, 03 Mar 2022 09:57:09 +0000</pubDate>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Acrolinx in Windows]]></category>
		<category><![CDATA[Maven on Windows]]></category>
		<category><![CDATA[Modal Window]]></category>
		<category><![CDATA[SASS on Windows]]></category>
		<category><![CDATA[update Windows]]></category>
		<guid isPermaLink="false">https://jharaphula.com/?p=45814</guid>

					<description><![CDATA[<img width="300" height="186" src="https://jharaphula.com/wp-content/uploads/2022/03/37565-300x186.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="How to update Windows to 10? - A Simple Guide to Get your Computer Running Smoothly" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2022/03/37565-300x186.jpg 300w, https://jharaphula.com/wp-content/uploads/2022/03/37565.jpg 610w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>Windows Vista has been around since 2021, so if you want to learn how to update windows to 10, you&#8217;ll be going up against a...</p>
<p>The post <a href="https://jharaphula.com/how-to-upgrade-windows-computer-running-smoothly/">How to upgrade Windows to 10? &#8211; A Simple Guide to run Smoothly</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></description>
										<content:encoded><![CDATA[<img width="300" height="186" src="https://jharaphula.com/wp-content/uploads/2022/03/37565-300x186.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="How to update Windows to 10? - A Simple Guide to Get your Computer Running Smoothly" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2022/03/37565-300x186.jpg 300w, https://jharaphula.com/wp-content/uploads/2022/03/37565.jpg 610w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>Windows Vista has been around since 2021, so if you want to learn how to update windows to 10, you&#8217;ll be going up against a lot of older computers that have already acquired this upgrade. If your computer is still on the XP operating system, it may be hard to imagine making any changes, but it&#8217;s easy to do. Even if your computer has a XP registry, which can be upgraded, you can still get this done relatively easily. It just requires some time and patience. In the end, it&#8217;s well worth the effort when you find out that your computer is faster and more secure. While doing this process if you are facing the error of <a href="https://ustechportal.com/pii_email_c75373ce5b34bf577425/" rel="noopener noreferrer nofollow" target="_blank">[pii_email_c75373ce5b34bf577425]</a> . Follow this mention instruction link.</p>
<p>The first thing you need to do to upgrade Windows to 10 is to clean up the existing registry. If you don&#8217;t know much about how the registry works, it&#8217;s basically a database where all the settings for your computer are stored. Every time you install or delete programs, change the control panel and add or remove hardware, you will make changes in the registry. Because all of these things happen very frequently, the registry can become somewhat unstable and corrupt over time. As a result, your computer might experience a wide range of problems, including crashes, slow performance and computer freezes.</p>
<p>How to update Windows to 10 is to use a registry cleaner program to scan through the registry and remove any outdated entries. You will also probably want to remove programs that you don&#8217;t use very often. Some of these may not even be used by the computer you&#8217;re using to upgrade Windows. There are many excellent registry cleaners available, and many of them are designed to be very easy to use.</p>
<p>Before you start the process, you should back up your computer. This will ensure that if something goes wrong, you can simply restore the backup. Even if you&#8217;re new to the process, you should read the manual carefully before starting it. Most programs are pretty straightforward to use, but there are a few basic ones that are less familiar than others.</p>
<p>You will need to access the Internet in order to download and run a program online. This program will look at your current system and determine which files and settings you need to remove and/or upgrade. Once the download is complete, you will need to run the program. It will then proceed to clean up your computer&#8217;s registry. This process normally only takes about 10 minutes or so.</p>
<p>Once the registry is cleaned up, you can then install the <a href="https://jharaphula.com/how-to-start-a-software-company/" rel="noopener noreferrer" target="_blank">new software</a> and restart your computer. The new program will install with your old settings and restore your computer to the way it was before you started the download. If there were any errors during the install, you will need to re-install the program. It should take about a minute.</p>
<p>The post <a href="https://jharaphula.com/how-to-upgrade-windows-computer-running-smoothly/">How to upgrade Windows to 10? &#8211; A Simple Guide to run Smoothly</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></content:encoded>
					
		
		
			<media:content url="https://jharaphula.com/wp-content/uploads/2022/03/37565.jpg" medium="image" />
	</item>
		<item>
		<title>Importance of Automated vs Manual Cross Browser Testing</title>
		<link>https://jharaphula.com/automated-vs-manual-cross-browser-testing/</link>
		
		<dc:creator><![CDATA[Megha Shetty]]></dc:creator>
		<pubDate>Sat, 13 Nov 2021 12:57:17 +0000</pubDate>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Cross Browser]]></category>
		<category><![CDATA[Cross Browser friendly]]></category>
		<category><![CDATA[Cross Browser Testing]]></category>
		<category><![CDATA[Cross Browser ToolTip]]></category>
		<category><![CDATA[Cross-browser Compatible]]></category>
		<guid isPermaLink="false">https://jharaphula.com/?p=43839</guid>

					<description><![CDATA[<img width="300" height="187" src="https://jharaphula.com/wp-content/uploads/2021/11/automated-vs-manual-cross-browser-testing-300x187.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="Importance of Automated vs Manual Cross Browser Testing" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2021/11/automated-vs-manual-cross-browser-testing-300x187.jpg 300w, https://jharaphula.com/wp-content/uploads/2021/11/automated-vs-manual-cross-browser-testing.jpg 610w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>Cross-browser testing verifies that a website or web application functions and appears appropriately across several browsers and platforms. With each browser manufacturer having a unique...</p>
<p>The post <a href="https://jharaphula.com/automated-vs-manual-cross-browser-testing/">Importance of Automated vs Manual Cross Browser Testing</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></description>
										<content:encoded><![CDATA[<img width="300" height="187" src="https://jharaphula.com/wp-content/uploads/2021/11/automated-vs-manual-cross-browser-testing-300x187.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="Importance of Automated vs Manual Cross Browser Testing" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2021/11/automated-vs-manual-cross-browser-testing-300x187.jpg 300w, https://jharaphula.com/wp-content/uploads/2021/11/automated-vs-manual-cross-browser-testing.jpg 610w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>Cross-browser testing verifies that a website or web application functions and appears appropriately across several browsers and platforms. With each browser manufacturer having a unique view of how a browser should operate, it&#8217;s only possible to guarantee that your site works well with a wide variety of browsers using cross browser testing automation tools.</p>
<h3>Cross-Browser Testing &#8211; What is it?</h3>
<p>A website is composed of several components, and each browser&#8217;s relationship with these components differs. For example, CSS might behave entirely differently in Mozilla Firefox than it does in Google Chrome. Additionally, design components might vary in size among browsers.</p>
<p>Cross-browser testing ensures that these components work flawlessly across all supported browser versions. You may use it to guarantee that HTML, JavaScript, Applets, AJAX requests, Flash, and <a href="https://jharaphula.com/list-of-html5-new-tags/" target="_blank" rel="noopener noreferrer">web design components</a> display and act correctly across all browser types.</p>
<p>Cross-browser testing&#8217;s primary purpose is to ensure consistency by enabling testers to identify problems that may prevent a site from showing or operating correctly across a range of screen sizes and browsers.</p>
<h3>What is the Importance of Cross-Browser Testing?</h3>
<p>Although it is a significant time sink for QA and professional developers, cross-browser testing is critical for providing the best possible user experience. As per <a href="https://www.statista.com/statistics/673477/worldwide-software-development-survey-tested-browsers/" target="_blank" rel="noopener noreferrer nofollow">Statista</a>, 13% of respondents reported using the Opera browser to test their web applications in 2018.</p>
<p>Currently, when you compare multiple browsers, you&#8217;ll see that each one uses a different backend technology to render webpages. Cross-browser testing takes into consideration the distinctions between these technologies.</p>
<p>It requires modifications to the site&#8217;s code to enable it to adapt to different browsers. Additionally, it assists designers and developers in identifying faults that should be addressed immediately upon discovery.</p>
<p>Typical cross-browser compatibility concerns include the following:</p>
<ul>
<li>JavaScript implementations vary.</li>
<li>CSS resets that have been missed.</li>
<li>A mismatch between font size and picture orientation.</li>
<li>HTML5 is not supported.</li>
<li>Inconsistent alignment of pages.</li>
<li>Incompatibility of the layout with the browser.</li>
<li>Incompatibilities across frameworks or library versions, and more.</li>
</ul>
<p>Cross-browser testing enables you to fix these and other issues before to formally releasing your website or web application.</p>
<h3>Manual Testing</h3>
<p>As the name implies, manual cross-browser testing is the practice of manually testing web apps without automated tools or scripts.</p>
<p>It&#8217;s a straightforward process for validating a feature&#8217;s functioning against business requirements and reporting software bugs/defects. Manual testing needs a significant amount of human labor.</p>
<p>Manual cross-browser testing requires testers to develop test cases and execute them manually. This is a lengthy and laborious process. Therefore, if we want to test a significant amount of functionality on the web across, say, 50 different web browsers, devices, and operating systems, manual browser testing is not the optimal way.</p>
<h3>Automated Testing</h3>
<p>Cross-browser testing via automation is more viable and efficient than human cross browser testing. A cross-browser automated testing tool can generate automated test scripts, execute the tests, and compare the expected performance.</p>
<p>Though the procedure is entirely automated, the initial test scripts are created manually. These scripts may then be used to execute many tests across several browsers.</p>
<p>The fundamental objective of automated browser testing is to finish the cross-browser testing procedure in the shortest amount of time possible.</p>
<h3>When Should We Do Manual Browser Testing?</h3>
<p>Each sophisticated skill or technology used in the software business offers several benefits and drawbacks. Along with its many advantages, automated browser testing has certain limits for testing specific situations.</p>
<p>The testing team must evaluate the constraints and problems of automated testing to determine when manual testing may be used. There may be several times when automation is available in an application, but it will be challenging to script. Under this scenario, manual browser testing is preferable.</p>
<p>Moreover, even with the most excellent automated testing tools and experience in writing automated test scripts, some modules in the program will not be automatable. CAPTCHAs, often used on e-commerce websites, cannot be automated (and should not be). As a result, manual browser testing is more appropriate in this case.</p>
<p>Complex functions in an application need the tester to delve deep and research the module, which demands a significant amount of time for scripting, which is why manual testing is the optimal technique in this case.</p>
<p>Manual testing may also be used to execute test cases involving UI (user interface) validations. Manual browser testing may be used to identify edge situations and conduct negative testing to understand your application better.</p>
<p>When evaluating the ROI, manual browser testing is preferable if the money invested in automation is not justified by the results obtained from tests.</p>
<h3>Why Should you Opt for Automated Browser Testing?</h3>
<p>Manual application testing is a significant challenge in the software business. One must develop specific tests for various combinations. Moreover, evaluating each variety is not only time demanding but also does not provide enough test coverage.</p>
<p>Since the introduction of automation, human effort in evaluating web applications has been cut by more than 70%. The remaining 30% of the effort is necessary to choose an efficient automation testing solution, write the initial test scripts, and then execute the tests using those automated scripts.</p>
<p>The post <a href="https://jharaphula.com/automated-vs-manual-cross-browser-testing/">Importance of Automated vs Manual Cross Browser Testing</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></content:encoded>
					
		
		
			<media:content url="https://jharaphula.com/wp-content/uploads/2021/11/automated-vs-manual-cross-browser-testing.jpg" medium="image" />
	</item>
		<item>
		<title>Reasons behind using Gradients in User Interface Designing</title>
		<link>https://jharaphula.com/reasons-use-gradients/</link>
		
		<dc:creator><![CDATA[Megha Shetty]]></dc:creator>
		<pubDate>Mon, 11 Oct 2021 09:53:57 +0000</pubDate>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Advanced CSS3]]></category>
		<category><![CDATA[CSS Best Practices]]></category>
		<category><![CDATA[CSS in UI designing]]></category>
		<category><![CDATA[CSS3 New Features]]></category>
		<category><![CDATA[Gradients]]></category>
		<guid isPermaLink="false">https://jharaphula.com/?p=41907</guid>

					<description><![CDATA[<img width="300" height="193" src="https://jharaphula.com/wp-content/uploads/2021/10/reasons-use-gradients-300x193.png" class="webfeedsFeaturedVisual wp-post-image" alt="Reasons behind using Gradients in User Interface Designing" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2021/10/reasons-use-gradients-300x193.png 300w, https://jharaphula.com/wp-content/uploads/2021/10/reasons-use-gradients-294x190.png 294w, https://jharaphula.com/wp-content/uploads/2021/10/reasons-use-gradients.png 610w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>Gradients are a prominent role in web designing for a long. But, its relevance has increased multiple times due to its simplicity and ability to...</p>
<p>The post <a href="https://jharaphula.com/reasons-use-gradients/">Reasons behind using Gradients in User Interface Designing</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></description>
										<content:encoded><![CDATA[<img width="300" height="193" src="https://jharaphula.com/wp-content/uploads/2021/10/reasons-use-gradients-300x193.png" class="webfeedsFeaturedVisual wp-post-image" alt="Reasons behind using Gradients in User Interface Designing" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2021/10/reasons-use-gradients-300x193.png 300w, https://jharaphula.com/wp-content/uploads/2021/10/reasons-use-gradients-294x190.png 294w, https://jharaphula.com/wp-content/uploads/2021/10/reasons-use-gradients.png 610w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>Gradients are a prominent role in web designing for a long. But, its relevance has increased multiple times due to its simplicity and ability to appeal. Gradients compliments photos, visuals, background without any extra effort required. Gradients fit in themselves in all website parts. They are versatile and easy to use. Eventually, designers fall in love with gradients. It benefits web admins in different respects. Namely:</p>
<p><strong>1</strong>. Attract more visitors with solid visuals.</p>
<p><strong>2</strong>. Bind users for long by giving them emotional appeal.</p>
<p><strong>3</strong>. Put more emphasis on certain website elements.</p>
<p>In the following sections, we’ll explore why is it so? Stay in tune for more details.</p>
<h2>What are the reasons behind using Gradients?</h2>
<p>The first question arises, what are gradients? Gradients are gradual movement from one color to another. It is like when we do painting, with intermixing two colors.</p>
<p>The intersection of two colors generates another color. In return, it leaves an entirely different effect on the minds of users. These are the main reasons:</p>
<h3>1. Make Compelling Backgrounds</h3>
<p>Backgrounds are influential in making web pages more attractive and expressive. Designers can use background colors for different purposes:<br />
Let’s say there is a flow of text. In this, one section is on a serious note. So, dark backgrounds are effective. Gradient backgrounds create visitors’ visual interests. A gradual shift in hues and colors with one side dark and the other dark make compelling backgrounds.</p>
<h3>2. Direct Eyes to move</h3>
<p>Colors have properties that allow eyes to move from light to dark colors. It is easy to direct eyes from left to right and top to bottom. Accordingly, use gentle shifts in colors.</p>
<p>For example, the designer wants to emphasize the page center. Dark colors can merge in the center. It can start from light green at the top and darker green at the center. Similarly, you can use light blue from the bottom and royal blue at the center. Both color combinations will complete the design.</p>
<p>Otherwise, you can access web design services to create suitable gradients for your web pages.</p>
<h3>3. Text Gradience</h3>
<p>Text and gradients may seem to be an odd combination. But they look fantastic together. You can try:</p>
<p><strong>1</strong>. It helps call attention to a word in the line. Rainbow and neon colors work well.</p>
<p><strong>2</strong>. Useful for easily readable words with bigger fonts.</p>
<p><strong>3</strong>. Give contrasting effects to the text.</p>
<p>If you’re making it more readable, it means your job is complete.</p>
<h3>4. Gradient Patterns</h3>
<p>Gradient patterns are highly effective in building a spotlight within site. These are the ones:</p>
<p><strong>F Shape</strong> &#8211; It moves from left to right and top to bottom in the F shape. Usage of two to three will solve your purpose.</p>
<p><strong>Radial</strong> &#8211; The radial pattern is a beautiful one. It starts from the center and spread across the web page.</p>
<p><strong>Picking Colors</strong> &#8211; Picking colors could sometimes be challenging. It depends on how it suits. It can be as easy as picking adjoining or complimentary colors from the color wheel.</p>
<h3>5. Inspiration from Nature</h3>
<p>Nature is the best inspiration for choosing colors. Do you know nature plays with colors a lot? These are the instances:</p>
<p><strong>1</strong>. Dawn and dusk are the intersections of several colors. When morning precedes, how yellow and orange start spreading all over. There are two shades on leaves: one dark and one light.</p>
<p><strong>2</strong>. Designers need to be excellent observers. Some flowers are so beautiful that they start from darker hues like dark purple, light purple, and orange than yellow.</p>
<p><strong>3</strong>. To convey brand stories, using nature color will convey the message by itself.</p>
<h3>6. Highlight brand Colors</h3>
<p>Color coverage is crucial for illustrating the value of your brand. Let’s say you’re building an “About Us” page, presenting your company, or creating office design.</p>
<p>You can use brand colors lavishly. It can form a significant part of your brand-related products or associated web elements, clothes, or anything.</p>
<p>Suppose you have two or three brand colors. Using their gradients will highlight your brand.</p>
<h3>7. Trendy and Subtle Colors</h3>
<p>Trendy colors keep on changing from time to time. But, they attract the attention of the target audience instantly. You can use them within the web elements. These are effective for festival season, trending topics in the market.</p>
<p>On the other hand, subtle colors go more towards serene products. If you’re launching services for serious events, subtle gradients could be the best partners.</p>
<p>Additionally, subtle colors add a dimension of depth. Angles like right can intensify the position of light colors. They are like pauses in a speech that enhances the effect of other colors on the website.</p>
<h2>Conclusion</h2>
<p>For takeaway, gradients can make a simple image an illustrative and interesting one. Gradients leave their effect on navigation, text, call to action, or highlighting a part of content. So, it is fun to experiment with gradients on different web page aspects.</p>
<p>The post <a href="https://jharaphula.com/reasons-use-gradients/">Reasons behind using Gradients in User Interface Designing</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></content:encoded>
					
		
		
			<media:content url="https://jharaphula.com/wp-content/uploads/2021/10/reasons-use-gradients.png" medium="image" />
	</item>
		<item>
		<title>Benefits of Integrating ReactJS into your Website</title>
		<link>https://jharaphula.com/benefits-integrating-reactjs/</link>
		
		<dc:creator><![CDATA[Megha Shetty]]></dc:creator>
		<pubDate>Wed, 17 Mar 2021 07:13:03 +0000</pubDate>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Data Distribution]]></category>
		<category><![CDATA[Debug Extension]]></category>
		<category><![CDATA[Integrating ReactJS]]></category>
		<category><![CDATA[Programming Skills]]></category>
		<category><![CDATA[User-friendly Components]]></category>
		<guid isPermaLink="false">https://jharaphula.com/?p=34148</guid>

					<description><![CDATA[<img width="300" height="193" src="https://jharaphula.com/wp-content/uploads/2021/03/Integrating-ReactJS-your-Website-300x193.png" class="webfeedsFeaturedVisual wp-post-image" alt="Benefits of Integrating ReactJS into your Website" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2021/03/Integrating-ReactJS-your-Website-300x193.png 300w, https://jharaphula.com/wp-content/uploads/2021/03/Integrating-ReactJS-your-Website-294x190.png 294w, https://jharaphula.com/wp-content/uploads/2021/03/Integrating-ReactJS-your-Website.png 610w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>The user-friendly interface and application responsiveness of React library modules have attracted large companies and successful companies. In addition, ReactJS has strong community support and...</p>
<p>The post <a href="https://jharaphula.com/benefits-integrating-reactjs/">Benefits of Integrating ReactJS into your Website</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></description>
										<content:encoded><![CDATA[<img width="300" height="193" src="https://jharaphula.com/wp-content/uploads/2021/03/Integrating-ReactJS-your-Website-300x193.png" class="webfeedsFeaturedVisual wp-post-image" alt="Benefits of Integrating ReactJS into your Website" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2021/03/Integrating-ReactJS-your-Website-300x193.png 300w, https://jharaphula.com/wp-content/uploads/2021/03/Integrating-ReactJS-your-Website-294x190.png 294w, https://jharaphula.com/wp-content/uploads/2021/03/Integrating-ReactJS-your-Website.png 610w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>The user-friendly interface and application responsiveness of React library modules have attracted large companies and successful companies. In addition, ReactJS has strong community support and has made progress in technological innovation as a developer tool. Overall, ReactJS to ensure that the basics of the offshore React JS programmers team were able to meet unusual circumstances, and applied the right business networks and mobile development. Through the Java programming language, developers can use React.JS to develop digital application pages. Generally, ReactJS is a programming library used to develop user interfaces (UI) created in 2013. While integrating ReactJS into your Website you need to refer their JS library. Currently, ReactJS is a unique application for developers because the software contains compatible code that can be used by community developers.</p>
<p>These &#8220;components&#8221; are built using acceptable Javascript and HTML scripts, which make content management easier for ReactJS administrators. More specifically, the user interface equipped with ReactJS can organize the search bar, profile description, story and post list components. </p>
<p>In addition, a software development division has basic programming basics, you can experience the benefits of ReactJS services. Ideally, operators with conceptual knowledge of functions, objects, arrays, and classes, as well as Javascript and HTML experience, can use library modules for web and mobile application development more effectively.</p>
<p>By examining the advantages of ReactJS services, you can best reflect its advantages. Ideally, developers believe that responsive and secure library user interfaces are very valuable for web and mobile applications. </p>
<p>Most noteworthy is that ReactJS provides administrators with a system that has easy to use data for complex network and application development. Reasonably, virtual document object modifiers, interactive user interfaces, and high-level component organization separate ReactJS from other library servers.</p>
<p>To some developers ReactJS may seem complicated but the advanced ReactJS services makes it stand out of the competition. Controversially, ReactJS can illustrate the difficulty of developers in terms of versatility, feature installation and migration process. </p>
<p>Advantages include compatible writing components, duplicate system components, the Document Object Model (DOM), a one-way directional data and search engine optimization tools. Other benefits of ReactJS are several developer tools, error-proofing features, functional frameworks, community development, and reputable resources.</p>
<h2>Advantages of Integrating ReactJS</h2>
<p>ReactJS module for mass production proved effective website design with a compatible design. </p>
<h3>Debug Extension</h3>
<p>When developing web and mobile applications, React applications are compatible with debugging extensions to resolve unnecessary errors. ReactJS cooperates with other high-tech industries to provide users with extensions that can handle debugging functions quickly and easily. The extension is suitable for the user&#8217;s web browser to facilitate access and response.</p>
<h3>App Compatibility</h3>
<p>Unlike most front-end libraries, ReactJS provides application compatibility with two different versions. The web development version is &#8220;React&#8221;, and its mobile version is &#8220;React Native&#8221;, which is used for application development. In contrast, &#8220;React Native&#8221; mobile application development software shares key library components of its parent version. Feel free to consult or hire dedicated ReactJS developers.</p>
<h3>User Promotion</h3>
<p>Using familiar programming code, ReactJS is a simple user interface (UI) library. Combined, HTML and Javascript scripts are known as developer utilities and are compatible with most web browsers. Since it is an open source user interface library, most of the programming for application functions is easy to access for mobile and web developers.</p>
<h3>Data Distribution</h3>
<p>For programming purposes, developers can enter ReactJS code in a larger number of data sets. Similarly, this process is also called &#8220;one-way&#8221;. This data flow is correctly assigned functions in the main developer class to implement the appropriate application functions. </p>
<p>Fortunately, the input data function is easy to apply, and the placement of additional library scripts is listed in an easily accessible format. In addition, this method of data interpretation provides programmers with more debugging security and easier error identification. All in all, the application is easy to understand and can run more efficiently without having to deal with complex code sequences.</p>
<h3>User-friendly Components</h3>
<p>ReactJS library components are very useful for developers. A particular web application may contain many components, but entering and addressing data within a segment is simple. </p>
<p>In other words, this means that when developers browse ReactJS, users will gain greater data control. In addition, the component list can be reused, which enhances user-friendliness and saves time in developing applications.</p>
<h3>Virtual DOM</h3>
<p>Moving on, the <a href="https://jharaphula.com/responsive-front-end-framework-foundation/" rel="noopener noreferrer" target="_blank">front-end developer framework</a> can make good use of tools such as Virtual DOM. The device promotes faster web applications through better content management. In detail, the system analyzes the components in mobile and web applications, and automatically improves and updates the components.</p>
<p>Unlike traditional data tools, this system is dedicated to handling components that need to be configured correctly to allow the application to execute correctly. The advanced features related to the Integrating ReactJS library illustrate its technical dilemma between different web and mobile applications.</p>
<h3>Application Design</h3>
<p>In addition, the ReactJS system enables users to use creative and functional mobile and web applications without complicated coding. These applications are simple to run and easy to read programs to enhance human readability and reliability within the code sequence. </p>
<p>Generally, framework design values ​​simplicity rather than creating programs and applications that may cause trouble for users in the future.</p>
<h3>To Conclude</h3>
<p>All in all, the internal functions of the library user interface are compatible with browsers shared by large companies, and are composed or organized code and pattern sequences to keep information protected and updated. </p>
<p>Compared with competitor&#8217;s library modules, ReactJS provides services for frequently updating its version, using recognizable programming languages ​​to simplify scripts and advanced configuration resources suitable for mobile and web development applications. In addition, the design of ReactJS ensures that developers use responsive and safe programming to write, edit and modify library components.</p>
<p><strong>Author&#8217;s Bio</strong> &#8211; <em>Nasrullah Patel Co-founder Peerbits, one of the leading offshore development team providers. He guided many companies to hire offshore remote developers team from Peerbits for their complex and customized projects. His years of hard work, dedication, and experience has helped him in developing profound expertise for a wide array of technologies, tools, and platforms. He believes in sharing his strong knowledge base with a learned concentration on entrepreneurship and business</em>.</p>
<p>The post <a href="https://jharaphula.com/benefits-integrating-reactjs/">Benefits of Integrating ReactJS into your Website</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></content:encoded>
					
		
		
			<media:content url="https://jharaphula.com/wp-content/uploads/2021/03/Integrating-ReactJS-your-Website.png" medium="image" />
	</item>
		<item>
		<title>Example of Inheritance using Class, Prototype or Call Javascript methods</title>
		<link>https://jharaphula.com/example-inheritance-javascript-class/</link>
					<comments>https://jharaphula.com/example-inheritance-javascript-class/#respond</comments>
		
		<dc:creator><![CDATA[Rupamati Roy]]></dc:creator>
		<pubDate>Sat, 31 Aug 2019 17:53:43 +0000</pubDate>
				<category><![CDATA[JS Functions & Examples]]></category>
		<category><![CDATA[Example of Inheritance]]></category>
		<category><![CDATA[Inheritance using JS Class]]></category>
		<category><![CDATA[JavaScript Class Example]]></category>
		<category><![CDATA[JavaScript Function]]></category>
		<category><![CDATA[JavaScript Programming]]></category>
		<guid isPermaLink="false">https://jharaphula.com/?p=19612</guid>

					<description><![CDATA[<img width="300" height="184" src="https://jharaphula.com/wp-content/uploads/2019/08/example-inheritance-javascript-class-300x184.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="Example of Inheritance using Class, Prototype or Call Javascript methods" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2019/08/example-inheritance-javascript-class-300x184.jpg 300w, https://jharaphula.com/wp-content/uploads/2019/08/example-inheritance-javascript-class.jpg 610w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>Inheritance is the Concept using which you can inherit properties and methods from one Class to another Class. The Class from which we will inherit...</p>
<p>The post <a href="https://jharaphula.com/example-inheritance-javascript-class/">Example of Inheritance using Class, Prototype or Call Javascript methods</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></description>
										<content:encoded><![CDATA[<img width="300" height="184" src="https://jharaphula.com/wp-content/uploads/2019/08/example-inheritance-javascript-class-300x184.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="Example of Inheritance using Class, Prototype or Call Javascript methods" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2019/08/example-inheritance-javascript-class-300x184.jpg 300w, https://jharaphula.com/wp-content/uploads/2019/08/example-inheritance-javascript-class.jpg 610w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>Inheritance is the Concept using which you can inherit <a href="https://jharaphula.com/oops-concepts-with-examples/" target="_blank" rel="noopener noreferrer">properties and methods</a> from one Class to another Class. The Class from which we will inherit properties or methods that is Called parent Class. Which Class inherit from Parent Class that is Called Child Class.</p>
<p>This relationship is Similar to Father and Son relationship. You must noticed in major Cases kid inherits properties depending upon his or her parents.</p>
<p>In below I am showing an example of Person and Teacher Classes. My Person Class is having First Name, Last Name, Age and Gender. As teacher as a person my teacher class inherits all the properties of my person class. Additionally I am adding Salary as a new property.</p>
<pre class="brush: jscript; title: ; notranslate">/*Constructor Class*/
function person(firstname, lastname, age, gender) {
this.name = { firstname, lastname };
this.age = age;
this.gender = gender;
};

Normally what we do, The time we Create the Class we design the properties and methods. Think once if we required some additional methods or properties to an existing Class without disturbing the Class, in this scenario prototyping is useful. Look at the below example here I am adding a greeting method to my person Class using Prototyping.

/*Prototyping Person Class*/
person.prototype.greeting = function() {
alert('Hi! I\'m ' + this.name.firstname + '.');
};</pre>
<p>Here I am Creating an instance for my Person Class and Calling the method greeting.</p>
<pre class="brush: jscript; title: ; notranslate">var personInstance = new person(&quot;Bikash&quot;, &quot;Dash&quot;, 27, &quot;M&quot;, 20000);
personInstance.greeting();</pre>
<p>In the below Code I am Creating the teacher Class by inheriting all the properties from Person Class. As the number of arguments known to me, here I used Call to bind person class properties to teacher class.</p>
<pre class="brush: jscript; title: ; notranslate">/*Teacher Class inherits from Person Class*/
function Teacher(firstname, lastname, age, gender, salary) {
person.call(this, firstname, lastname, age, gender);
this.salary = salary;
}

/*To assign Person prototype we have to Create Prototype for Teacher*/
Teacher.prototype = Object.create(person.prototype);
var newTeacher = new Teacher(&quot;Baby&quot;, &quot;Roy&quot;, 26, &quot;F&quot;, 30000);
alert(newTeacher.name[&quot;firstname&quot;]);
alert(newTeacher.gender);

/*After Teacher.Prototype only this will work*/
newTeacher.greeting();</pre>
<p>Here if we alert(Teacher.prototype.constructor); it will show Person Class Constructor. To display Teacher Class Constructor we have to execute the following line of Code.</p>
<pre class="brush: jscript; title: ; notranslate">Teacher.prototype.constructor = Teacher;</pre>
<p>The post <a href="https://jharaphula.com/example-inheritance-javascript-class/">Example of Inheritance using Class, Prototype or Call Javascript methods</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://jharaphula.com/example-inheritance-javascript-class/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			<media:content url="https://jharaphula.com/wp-content/uploads/2019/08/example-inheritance-javascript-class.jpg" medium="image" />
	</item>
		<item>
		<title>Emerging Career Opportunities in Big Data Developer Techie Should know</title>
		<link>https://jharaphula.com/career-opportunities-big-data-developer/</link>
					<comments>https://jharaphula.com/career-opportunities-big-data-developer/#respond</comments>
		
		<dc:creator><![CDATA[Rupamati Roy]]></dc:creator>
		<pubDate>Thu, 08 Nov 2018 13:56:15 +0000</pubDate>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Career after College]]></category>
		<category><![CDATA[Career in Big Data]]></category>
		<category><![CDATA[Emerging Career Opportunities]]></category>
		<category><![CDATA[Engineering Colleges in Maharashtra]]></category>
		<category><![CDATA[Toppers Tips]]></category>
		<guid isPermaLink="false">http://jharaphula.com/?p=15033</guid>

					<description><![CDATA[<img width="300" height="193" src="https://jharaphula.com/wp-content/uploads/2018/11/career-opportunities-big-data-300x193.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="Emerging Career Opportunities in Big Data Developer Techie Should know" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2018/11/career-opportunities-big-data-300x193.jpg 300w, https://jharaphula.com/wp-content/uploads/2018/11/career-opportunities-big-data-294x190.jpg 294w, https://jharaphula.com/wp-content/uploads/2018/11/career-opportunities-big-data.jpg 610w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>Unless you have been living under a rock, the term &#8216;Big Data&#8217; will sound familiar to you. This new buzzword which was coined back in...</p>
<p>The post <a href="https://jharaphula.com/career-opportunities-big-data-developer/">Emerging Career Opportunities in Big Data Developer Techie Should know</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></description>
										<content:encoded><![CDATA[<img width="300" height="193" src="https://jharaphula.com/wp-content/uploads/2018/11/career-opportunities-big-data-300x193.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="Emerging Career Opportunities in Big Data Developer Techie Should know" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2018/11/career-opportunities-big-data-300x193.jpg 300w, https://jharaphula.com/wp-content/uploads/2018/11/career-opportunities-big-data-294x190.jpg 294w, https://jharaphula.com/wp-content/uploads/2018/11/career-opportunities-big-data.jpg 610w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>Unless you have been living under a rock, the term ‘Big Data’ will sound familiar to you. This new buzzword which was coined back in the year 2005 by Oreily Media, is a technology associated with capturing, storing and analysing huge amounts of data sets and thereby extracting information out of same. As easy as that may sound, it requires an immense amount of knowledge and skill to analyze such huge chunks of data. There are big data certification courses which teach you how to effectively extract information from a given data set, utilising special tools and techniques. So if you are thinking of building a career as Big Data Developer, here are the top 7 options for you to consider:</p>
<h3>1. Data Scientists</h3>
<p>One of the most lucrative career options in the field of big data is becoming a data scientist. A data scientist can be thought of as a ‘king of data science’ who is responsible for mining data from numerous sources and then analysing the same to predict future behaviour. Working along with engineers, statisticians and other IT professionals their job is to identify trends and behaviours which give competitive advantages and hence help businesses flourish. A data scientist can earn anywhere between $89,000 &#8211; $100,000 depending upon skills and experience.</p>
<p><strong>Preferred Skillsets</strong> &#8211; Critical Thinking, Proficient with mathematics, data analysis, risk management and business intuition</p>
<h3>2. Data Engineers</h3>
<p>One of the other high demand profiles in the big data field is that of a data engineer. A data engineer is responsible for developing and creating architectures which help store and transfer data from one source to other. Generally, a data engineer’s job is to design databases and systems where exabytes of data is stored and collected. They further design algorithms for collecting data as well as conduct quality analysis of the data. It is the system which these engineers build which the data scientists utilise for data analysis and capturing. A data engineer on an average can earn somewhere between $60,000 &#8211; $124,000.</p>
<p><strong>Preferred Skillsets</strong> &#8211; Proficient with MapReduce, Mahout, MATLAB, Java, C++, SQL and other similar tools and languages.</p>
<h3>3. Data Visualisation Developer</h3>
<p>As can be deciphered from the name itself, a data visualisation developer’s role is to present data in a visual format where it is easy to understand and comprehend. A data visualisation developer often works closely with the data scientists and designs charts, graphs and diagrams using advanced development tools for example D3.js. This, in turn, makes it easy for clients to understand the trends and insights obtained from the analysis and gives them a good understanding of metrics they need to monitor and improve. Though the job sounds easy, it requires extensive technical knowledge and creativity. A data visualisation developer can make around $106,000 &#8211; $ 130,000 annually depending on their experience and skill.</p>
<p><strong>Preferred Skillsets</strong> &#8211; Knowledge of design colour schemes, data-ink ratio, statistics</p>
<h3>4. Business Intelligence Engineer</h3>
<p>A business intelligence engineer is responsible for managing a data warehouse and at the same time helps turn the analysed data into critical pieces of information which help the businesses make sound decisions. They help create structures and reports of the data which help the decision makers know the key metrics where they need to make improvements and hence come up with strategic plans for business growth. A business intelligence engineer can make anywhere between $95,000 &#8211; $137,000 annually depending on skills and knowledge.</p>
<p><strong>Preferred Skillsets</strong> &#8211; Business acumen, data analysis and modelling, proficiency with BI tools and software like MS Excel, SharePoint etc. Proficiency with relational databases.</p>
<h3>5. Business Analytics Specialists</h3>
<p>While some people argue that business analytics engineers are pretty much similar to business intelligence engineers, however, there lies a key difference between them. Compared to the business intelligence engineer a business analytics specialist is less involved in deep dive analysis of data and is more focused on the business side. A business analytics specialist utilises tools which interpret the data obtained from intelligence engineers and data scientists and based on these derive insights for business growth. A business analytics specialist can make around $77,000 &#8211; $ 130,000 annually and even more depending on the level of growth he can help an organisation achieve.</p>
<p><strong>Preferred Skillsets</strong> &#8211; Strong interpretation skills, proficient in mathematics, domain expertise, knowledge of languages such as R/ Python etc.</p>
<h3>6. Analytics Manager</h3>
<p>An analytics manager is responsible for creating strategies and plans based on the reports obtained from business analytics specialists. They operate on relatively low volumes of data and are generally aligned towards the goals and growth of a single organisation. They come up with plans and strategies which helps companies achieve their target within deadlines at minimum cost and with the maximum possibility of profit. Analysing data and delivering results isn’t as easy as it seems and an analytics manager often spends weeks filtering data and coming up with accurate projections. They can make anywhere between $83,00 &#8211; $ 134,000 depending upon the country they work in and experience they possess.</p>
<p><strong>Preferred Skillsets</strong> &#8211; Critical thinking, knowledge of mathematics, report writing and presentation.</p>
<h3>7. Machine Learning Engineers</h3>
<p>One of the newest career options in the <a href="https://jharaphula.com/big-data-essential-helping-businesses/" rel="noopener noreferrer" target="_blank">big data</a> field is that of a machine learning engineer. A machine learning engineer tends to possess knowledge of both machine learning as well as big data. They use this skillset of their’s to build solutions and systems which extract information and automatically derive insights from the same with minimum to no human intervention. These systems can thus run 24 hours and 7 days a week and have data being gathered and analysed in real time ensuring authenticity and accuracy at all instants. The solutions they build can be utilised in a single organisation to achieve growth,  or they can be embedded a global repository which can be queried by those who need it. Being high in demand this career option pays between $90,000 &#8211; $ 140,000 even to freshers who have the required skills.</p>
<p><strong>Preferred Skillsets</strong> &#8211; Advanced programming, statistics, data modelling, critical thinking.</p>
<p>There are many other similar career options which one can pursue in the big data field with a very fine line of differences between them. Once you complete the big data certification and have the knowledge as well as hands-on experience in mining, extracting and processing data, there is no limitation, and the chances of growth are tremendous.</p>
<p>The post <a href="https://jharaphula.com/career-opportunities-big-data-developer/">Emerging Career Opportunities in Big Data Developer Techie Should know</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://jharaphula.com/career-opportunities-big-data-developer/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			<media:content url="https://jharaphula.com/wp-content/uploads/2018/11/career-opportunities-big-data.jpg" medium="image" />
	</item>
		<item>
		<title>Tutorials for Learning API Development using a Visual Editor</title>
		<link>https://jharaphula.com/learn-api-development/</link>
					<comments>https://jharaphula.com/learn-api-development/#respond</comments>
		
		<dc:creator><![CDATA[Rupamati Roy]]></dc:creator>
		<pubDate>Fri, 26 Oct 2018 16:43:21 +0000</pubDate>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Google APIs]]></category>
		<category><![CDATA[Google Map API]]></category>
		<category><![CDATA[Learn API Development]]></category>
		<category><![CDATA[Learn JSON]]></category>
		<guid isPermaLink="false">http://jharaphula.com/?p=14938</guid>

					<description><![CDATA[<img width="300" height="190" src="https://jharaphula.com/wp-content/uploads/2018/10/learn-api-development-easy-300x190.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="Language to Tutorials for Learning API Development using a Visual Editor" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2018/10/learn-api-development-easy-300x190.jpg 300w, https://jharaphula.com/wp-content/uploads/2018/10/learn-api-development-easy.jpg 610w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>They say you can use a visual editor to develop an API, but it won&#8217;t always turn out as planned. The reason why they say...</p>
<p>The post <a href="https://jharaphula.com/learn-api-development/">Tutorials for Learning API Development using a Visual Editor</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></description>
										<content:encoded><![CDATA[<img width="300" height="190" src="https://jharaphula.com/wp-content/uploads/2018/10/learn-api-development-easy-300x190.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="Language to Tutorials for Learning API Development using a Visual Editor" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2018/10/learn-api-development-easy-300x190.jpg 300w, https://jharaphula.com/wp-content/uploads/2018/10/learn-api-development-easy.jpg 610w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>They say you can use a visual editor to develop an API, but it won’t always turn out as planned. The reason why they say this is that many if not most aspects of an API have less to do with visuals and more to do with functionality. Unlike consumer level software APIs are meant to deliver technology and resources to developers who may develop a system for the end user. So, the API does not have to look great, but it needs to perform above the mark in terms of speed, security, and overall functionality. That’s why you don’t need to know how to use a visual editor to know how to develop an API.</p>
<p><iframe loading="lazy" title="What is an API?" width="500" height="281" src="https://www.youtube.com/embed/s7wmiS2mSXY?feature=oembed" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe></p>
<h3>Your Development Language of Choice</h3>
<p>What development language would you like to use for your API? Well, that question is actually rhetorical because the choices are few. Ideally, you’ll want to know JAVA, but if you don’t, there are only a few other choices. However, none of them measure up as good as knowing Java. That’s why it would be a good idea to learn it before moving further with learning how to develop APIs.</p>
<h3>Work your Way through Samples and Examples</h3>
<p>The best way to learn how to develop any API technology including REST is through examples. The more you practice with examples, the better you will become. Not to mention the fact that you’ll also stumble on to more than one way to achieve the same outcome. Any <a href="https://jharaphula.com/how-to-become-a-programmer/" target="_blank" rel="noopener noreferrer">good developer</a> knows that there is more than one way to achieve a goal that said each aspect has its own pros and cons. So it&#8217;s important that you weigh them in before deciding on a particular method.</p>
<h2>Learn API Documentation</h2>
<p>A big part of developing an API is documentation. Many people may learn how to develop an API by watching tutorials, but they have no idea how to document it. In practice, documentation is a big part of making it as an API developer. If you have any aspirations to publish APIs, then you should focus your attention as much as if not more on documentation.</p>
<p>API documentation is tedious but worth the effort considering how well it can help you fare in the long term.</p>
<h2>Introduction to APIs</h2>
<p>An Application Programming Interface (API) is a set of protocols, tools, and definitions that allows different software applications to communicate with each other. APIs act as intermediaries, enabling seamless data exchange and functionality between disparate systems. They are the backbone of modern software, powering everything from social media platforms to financial services.</p>
<p>APIs come in various forms, including web APIs (such as REST and GraphQL), operating system APIs (like Windows API or POSIX), and library-based APIs (such as Java’s JDBC). Understanding how APIs work is essential for developers, product managers, and even non-technical professionals who interact with software integration.</p>
<h2>Why Learn API Development?</h2>
<p>API development is a critical skill in today’s technology-driven world. Here’s why learning it is beneficial:</p>
<p>1. Interconnectivity – APIs allow applications to share data and functionality, reducing redundancy and improving efficiency. 2. Career Opportunities – Proficiency in API development is highly sought after in industries ranging from fintech to healthcare. 3. Scalability – Well-designed APIs enable applications to scale by allowing modular development. 4. Innovation – APIs facilitate third-party integrations, fostering innovation and expanding product capabilities.</p>
<h2>Types of APIs</h2>
<p>1. REST APIs Representational State Transfer (REST) is the most widely used architecture for web APIs. It relies on HTTP requests (GET, POST, PUT, DELETE) and uses JSON or XML for data exchange. REST APIs are stateless, meaning each request is independent, improving scalability.</p>
<p>2. GraphQL APIs Developed by Facebook, GraphQL allows clients to request only the data they need, reducing over-fetching. Unlike REST, which exposes multiple endpoints, GraphQL uses a single endpoint with a flexible query language.</p>
<p>3. WebSocket APIs Unlike REST, WebSocket enables real-time, bidirectional communication between clients and servers, ideal for chat apps, live updates, and gaming.</p>
<p>4. gRPC APIs gRPC is a high-performance RPC (Remote Procedure Call) framework that uses HTTP/2 and Protocol Buffers for efficient communication between microservices.</p>
<h3>Guru Tutorials Only</h3>
<p>Would you learn how to drive a car from someone who is a newbie him or herself? Or cooking for a newbie chef? That’s right you won’t waste your time or effort. So, it is always a good idea to leverage the power of a professional tutorial. The more professional and expert a tutorial is the more you will benefit from it. Not to mention you’ll learn a lot from it too.</p>
<h3>Understand what&#8217;s Going On</h3>
<p>As an API developer or someone who aspires to become one, it takes time to understand what’s going on. So, keep in touch with the community via Github, and play around with examples. A few hours of practice a day can go a long way.</p>
<h2>Steps to Develop an API</h2>
<p>1. Define the Purpose Identify what problem the API will solve and outline its core functionalities.</p>
<p>2. Choose the Right Technology Select an architecture (REST, GraphQL, etc.) based on scalability, performance, and use-case requirements.</p>
<p>3. Design the API Plan endpoints, request/response structures, and authentication mechanisms using tools like Postman or Swagger.</p>
<p>4. Implement the API Develop the API using a programming language (Python, JavaScript, Java, etc.) and a framework (Flask, Express.js, Spring Boot).</p>
<p>5. Test the API Perform unit, integration, and load testing to ensure reliability. Postman and Jest are useful for testing.</p>
<p>6. Deploy and Monitor Host the API on cloud platforms (AWS, Azure, Heroku) and monitor performance using tools like New Relic or Prometheus.</p>
<h2>Best Practices for API Development</h2>
<p>1. Keep It Simple – Follow RESTful principles for clarity and consistency.<br />
2. Versioning – Use versioning (e.g., `/v1/users`) to manage changes without breaking existing clients.<br />
3. Error Handling – Provide meaningful error messages and status codes.<br />
4. Caching – Implement caching to reduce server load and improve response times.<br />
5. Security – Use HTTPS, validate inputs, and sanitize data to prevent attacks like SQL injection.</p>
<h2>Common Challenges</h2>
<p>&#8211; Performance Bottlenecks – Poorly optimized queries can slow down APIs.<br />
&#8211; Scalability Issues – APIs must handle increased traffic without downtime.<br />
&#8211; Security Vulnerabilities – APIs are common targets for cyberattacks.<br />
&#8211; Documentation Gaps – Inadequate documentation hinders adoption.</p>
<h2>Conclusion</h2>
<p>Learning API development is an invaluable skill in the digital age. By understanding different API types, mastering core concepts, and following best practices, developers can build efficient, scalable, and secure APIs. Whether for personal projects or enterprise solutions, APIs bridge the gap between systems, unlocking endless possibilities for innovation and collaboration.</p>
<p>The post <a href="https://jharaphula.com/learn-api-development/">Tutorials for Learning API Development using a Visual Editor</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://jharaphula.com/learn-api-development/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			<media:content url="https://jharaphula.com/wp-content/uploads/2018/10/learn-api-development-easy.jpg" medium="image" />
	</item>
		<item>
		<title>Macros or Function Pointers like 9 Challenging topics in C Programming</title>
		<link>https://jharaphula.com/toughest-topics-c-language/</link>
					<comments>https://jharaphula.com/toughest-topics-c-language/#respond</comments>
		
		<dc:creator><![CDATA[Rupamati Roy]]></dc:creator>
		<pubDate>Tue, 11 Sep 2018 15:07:37 +0000</pubDate>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Become a good Programmer]]></category>
		<category><![CDATA[C++ Developer]]></category>
		<category><![CDATA[Challenging Topics]]></category>
		<category><![CDATA[function pointers]]></category>
		<category><![CDATA[Learn Programming]]></category>
		<guid isPermaLink="false">http://jharaphula.com/?p=14401</guid>

					<description><![CDATA[<img width="300" height="181" src="https://jharaphula.com/wp-content/uploads/2018/09/toughest-topics-c-language-300x181.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="Macros or Function Pointers like 9 Challenging topics in C Programming" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2018/09/toughest-topics-c-language-300x181.jpg 300w, https://jharaphula.com/wp-content/uploads/2018/09/toughest-topics-c-language.jpg 610w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>C is definitely one of the most popular programming languages out there, and it is also one of the easiest. But that doesn&#8217;t mean that...</p>
<p>The post <a href="https://jharaphula.com/toughest-topics-c-language/">Macros or Function Pointers like 9 Challenging topics in C Programming</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></description>
										<content:encoded><![CDATA[<img width="300" height="181" src="https://jharaphula.com/wp-content/uploads/2018/09/toughest-topics-c-language-300x181.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="Macros or Function Pointers like 9 Challenging topics in C Programming" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2018/09/toughest-topics-c-language-300x181.jpg 300w, https://jharaphula.com/wp-content/uploads/2018/09/toughest-topics-c-language.jpg 610w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>C is definitely one of the most <a href="https://jharaphula.com/category/programming-solutions/" target="_blank" rel="noopener noreferrer">popular programming languages</a> out there, and it is also one of the easiest. But that doesn&#8217;t mean that there aren&#8217;t things that people can find out to be quite troublesome. C was designed to be as close to the machine as possible, without being dependent on a particular architecture. It was initially designed by Dennis Ritchie to reimplement the UNIX operating system and as such works quite closely to the underlying machine. You can check out best C tutorials on Hackr.io to learn C programming. Learning C is smooth journey, however, there are a few things that are quite difficult to master in C Language.</p>
<p>Let us look at the topics that cause a problem for most students and try to understand what these are.</p>
<h2>1. Arrangement of Data in Memory</h2>
<p>Memory alignment refers to the arrangement of data in memory. It deals with the issue of accessing the data and dealing with them as units of information available from the main memory. It needs to be understood that the main <a href="https://jharaphula.com/how-to-improve-memory-concentration/" target="_blank" rel="noopener noreferrer">memory</a> is a contiguous block of memory, each having a fixed number of bits. The location of the address can access the data which is represented by this fixed number of bits. Thus these addresses are the smallest units of memory that can be manipulated by the user through his program. In C, the programmer has to deal with functions like memse_16aligned and posix_memalign. Most people do not understand the entire concept.</p>
<h2>2. Function Pointers in C Programming</h2>
<p>Another confusing thing in C is the concept of function pointers. It is possible in C to define and use function pointers, i.e., the pointer variable can be created that point to functions. These function pointers can be declared, and values can be assigned to them in the form of functions. They can then be used to access the functions they point to. Most students get confused about how these functions are invoked and used. Even their declaration often becomes an issue. Though most people tend to skip it, the library function of C recommends using them.</p>
<h2>3. Pointer Arithmetic</h2>
<p>Many people cannot even distinguish between a pointer to a constant value and a constant pointer, let alone understand the concepts related to pointer arithmetic. Many people try not to mess up with pointers and try to leave them out altogether. That is why people often find it easier not to use pointers at all and instead use just the variables. But this is not possible at all times. Many programmers who use C are unaware of keywords like restrict. Many even do not understand the use of void pointers even after using C for years.</p>
<h2>4. Buffer Overflow</h2>
<p>Programmers also find it confusing to understand the concept of the buffers. Many do not understand how gets() is different from getline(). Also, the concepts of flushing input and output streams seem complicated to most people who work in C. There is also the confusion between getchar_unclocked and getchar. Many people are <a href="https://jharaphula.com/custom-essay-writing-tips/" target="_blank" rel="noopener noreferrer">used to writing</a> programs without even considering that there could see a possibility of buffer outflow. All this shows how things can get confusing in C.</p>
<h2>5. Variable number of Arguments</h2>
<p>Most of the C programmers do not get how a variable number of arguments can be passed through a function. This is referred to as a form of polymorphism in languages that support an object-oriented paradigm. Even though people can see how popular functions like the printf and scanf take a varying number of arguments, people cannot implement the same in their code. This shows how simple things can get pretty complicated in C.</p>
<h2>6. Cache Effects</h2>
<p>Programmers also do not understand the cache effect in C language. A particular piece of code might be slower than the other because of cache stores contiguous values. Since C lies so close to the underlying machine, it has a significant impact on the programs that are run. The effect of cache becomes even more pronounced in algorithms that involve matrices or linear algebra. There are libraries like CBLAS that leverage cache effectively.</p>
<h2>7. Memory Management Tricks in C Programming</h2>
<p>Memory management is one of the biggest <a href="https://jharaphula.com/how-to-become-a-programmer/" target="_blank" rel="noopener noreferrer">issues that programmers probably face</a> in C. There needs to the constant care taken about the memory leaks and the dynamic allocation. The difference between malloc, calloc, and realloc needs to be understood as well. Most programmers find it difficult to use these functions and create programs that run smoothly on all systems.</p>
<h2>8. Goto and Label</h2>
<p>Most people do not use statements like goto and label. These features can be used with a lot of effect in different situations. People avoid it because the incorrect usage often <a href="https://jharaphula.com/how-to-use-firebug-addon/" target="_blank" rel="noopener noreferrer">leads to bugs</a>. It is not a big thing to worry about though. Many advanced programmers consider this breaking of flow, not a good technique and ask people to avoid using it.</p>
<h2>9. Macros and Preprocessor in C Programming</h2>
<p>These are some of the coolest things that can be found in the C language. But the problem is that most people do not understand how to use them and cannot even write proper syntaxes for them. If a function can be converted into a macro, it will reduce the running time by a large margin. There are pre-processor directives that can be used anywhere within the file. Not only that, there are nested directives as well. This helps to prevent header files from being included multiple times. There is also the option to define and use environmental variables (or constants) that can optimize certain bits of code.</p>
<p>There are lots of other things that needs mention as well. One of these is the range of values in the <a href="https://jharaphula.com/example-angularjs-switch-case/" target="_blank" rel="noopener noreferrer">switch case</a>. Ignoring inputs in scanf is also another thing that most people have not even heard of. There are also lots of small details in C that people have overlooked somewhere along the way and could play an important role in various pieces of code. Another thing that should be mentioned is the undefined behavior in C that students often do not know about. Many people thus misinterpret how the operations work. The sequence point is one of those topics in C that get encountered rarely and cannot be easily understood. There are undefined behaviors of C that depend on the underlying architecture.</p>
<p>The post <a href="https://jharaphula.com/toughest-topics-c-language/">Macros or Function Pointers like 9 Challenging topics in C Programming</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://jharaphula.com/toughest-topics-c-language/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			<media:content url="https://jharaphula.com/wp-content/uploads/2018/09/toughest-topics-c-language.jpg" medium="image" />
	</item>
		<item>
		<title>Look at the Differences between UX designer and UI designer</title>
		<link>https://jharaphula.com/difference-ui-ux-design/</link>
					<comments>https://jharaphula.com/difference-ui-ux-design/#respond</comments>
		
		<dc:creator><![CDATA[Nibedita Panda]]></dc:creator>
		<pubDate>Fri, 24 Aug 2018 12:27:48 +0000</pubDate>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Guidelines for UI Developers]]></category>
		<category><![CDATA[Learn Web Design]]></category>
		<category><![CDATA[UI and UX Design]]></category>
		<category><![CDATA[Web Design best practices]]></category>
		<category><![CDATA[Web Designers]]></category>
		<guid isPermaLink="false">http://jharaphula.com/?p=14214</guid>

					<description><![CDATA[<img width="300" height="189" src="https://jharaphula.com/wp-content/uploads/2018/08/difference-ui-ux-design-300x189.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="Look at the Differences between UX designer and UI designer" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2018/08/difference-ui-ux-design-300x189.jpg 300w, https://jharaphula.com/wp-content/uploads/2018/08/difference-ui-ux-design.jpg 610w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>UX Design is User Experience Design and UI Design is User Interface Design. These elements are vital to a product. They also work closely together.&#160;User...</p>
<p>The post <a href="https://jharaphula.com/difference-ui-ux-design/">Look at the Differences between UX designer and UI designer</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></description>
										<content:encoded><![CDATA[<img width="300" height="189" src="https://jharaphula.com/wp-content/uploads/2018/08/difference-ui-ux-design-300x189.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="Look at the Differences between UX designer and UI designer" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2018/08/difference-ui-ux-design-300x189.jpg 300w, https://jharaphula.com/wp-content/uploads/2018/08/difference-ui-ux-design.jpg 610w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>UX Design is User Experience Design and UI Design is <a href="https://jharaphula.com/user-interface-design-sdlc-phases/" target="_blank" rel="noopener noreferrer">User Interface Design</a>. These elements are vital to a product. They also work closely together. User interface tends to be those series of screens, visual elements, as well as pages, for instance, buttons and icons, which you employ to interact with some device. User experience is the internal and personal experience which an individual has when they interact with all parts of a company’s services along with products.</p>
<p>It is necessary to differentiate the total user experience, mainly from the user interface, despite the fact that the UI is a really vital area of the design. An example includes Google. When considering its interface, it tends to be simple. The UI is simply a logo, a search bar, some limited buttons, plus a search result page. Imagine if you searched for something on Google and it took about 15 seconds to appear, therefore you will not immediately receive an answer. If the interface remained the same despite this, one’s experience with Google would change.</p>
<h3>Let us look at the differences between UI and UX design</h3>
<p>UX is concerned with the user’s journey in figuring out an issue whilst UI focuses on the way a product’s surfaces look plus function.</p>
<p>UX design tends to be focused on anything which impacts a user’s journey to figure out a problem, this can be positive or negative, moreover both on-screen and also off. When you consider UI design, this focuses on how the particular product’s surfaces look as well as function. UI tends to be only part of that journey.</p>
<h3>Concerns of a UX designer with those of a UI designer</h3>
<p>A UX designer concerns themselves with the conceptual parts of the design process whilst the UI designer concerns themselves on the more tangible areas. The UX designer possesses deep skills when it comes to strategy, research, information architecture as well as interaction design, only web design premium packages include good UX design. When it comes to the UI designer, they possess skills in interaction design as well. Nevertheless, their focus is more towards factors such as information design, motion design along with the brand.</p>
<h3>UI and visual design &#8211; UX and complete Experience</h3>
<p>UI is generally concerned with visual design plus information design, particularly around screens. But UX is concerned with the full experience, in fact, it may not be concerned at all about the screen.</p>
<h3>UI and UX connection to the products</h3>
<p>UI is said to be focused specifically on the product. This is a series of snapshots precisely in time. Whilst UX concerns itself on the user along with the journey they have through the product. The UI is the specifics of screens, it focuses on labels, structure, visual style, and moreover guidelines. The UX tends to be the path specifically through a product, it escapes the screen moreover articulates the user’s journey along with motivations. It justifies why things are present in the UI. It also tells why they are not there. The UI handles constraints, whilst the UX challenges them.</p>
<p>The post <a href="https://jharaphula.com/difference-ui-ux-design/">Look at the Differences between UX designer and UI designer</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://jharaphula.com/difference-ui-ux-design/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			<media:content url="https://jharaphula.com/wp-content/uploads/2018/08/difference-ui-ux-design.jpg" medium="image" />
	</item>
		<item>
		<title>How to use restrict option in AngularJS Custom Directive?</title>
		<link>https://jharaphula.com/restrict-option-custom-directive/</link>
					<comments>https://jharaphula.com/restrict-option-custom-directive/#respond</comments>
		
		<dc:creator><![CDATA[Nibedita Panda]]></dc:creator>
		<pubDate>Sat, 03 Feb 2018 16:41:18 +0000</pubDate>
				<category><![CDATA[AngularJS with Examples]]></category>
		<category><![CDATA[AngularJS Custom Directive]]></category>
		<category><![CDATA[AngularJS for absolute Beginners]]></category>
		<category><![CDATA[AngularJS ng-options]]></category>
		<category><![CDATA[Attribute directives]]></category>
		<category><![CDATA[Restrict Option in Angular]]></category>
		<guid isPermaLink="false">http://jharaphula.com/?p=12214</guid>

					<description><![CDATA[<img width="300" height="192" src="https://jharaphula.com/wp-content/uploads/2018/02/Restrict-a-Custom-Directive-300x192.png" class="webfeedsFeaturedVisual wp-post-image" alt="How to use restrict option in AngularJS Custom Directive?" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2018/02/Restrict-a-Custom-Directive-300x192.png 300w, https://jharaphula.com/wp-content/uploads/2018/02/Restrict-a-Custom-Directive.png 610w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>Among several advanced features of AngularJS, Directive is a major Chapter. Using Directive we can reuse our Codes like a widget. Directive comes with many...</p>
<p>The post <a href="https://jharaphula.com/restrict-option-custom-directive/">How to use restrict option in AngularJS Custom Directive?</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></description>
										<content:encoded><![CDATA[<img width="300" height="192" src="https://jharaphula.com/wp-content/uploads/2018/02/Restrict-a-Custom-Directive-300x192.png" class="webfeedsFeaturedVisual wp-post-image" alt="How to use restrict option in AngularJS Custom Directive?" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2018/02/Restrict-a-Custom-Directive-300x192.png 300w, https://jharaphula.com/wp-content/uploads/2018/02/Restrict-a-Custom-Directive.png 610w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>Among several advanced features of <a href="https://angularjs.org/" rel="noopener noreferrer nofollow" target="_blank">AngularJS</a>, Directive is a major Chapter. Using Directive we can reuse our Codes like a widget. Directive comes with many Directive Definition Objects (DDO). From them restrict is one. Using restrict option inside a Custom Directive we can prevent the access level of Directive for Element(E), Attribute(A), Comment(M) or Class(C).</p>
<p>For an example if you want to use your Custom Directive only like a element in view (<em>&lt;elem-attr-directive&gt;&lt;/elem-attr-directive&gt;</em>) then while creating the Directive pass the restrict option E (<em>restrict: &#8220;E&#8221;</em>). Similarly if you want to restrict the use of directive like an Attribute then you  can pass A in place of E or else if you want your directive to be used like an element or attribute you can pass AE together (<em>restrict: &#8220;AE&#8221;</em>).</p>
<p>To make your vision clear in below I am sharing an example using restrict option inside Custom Directives. In this demo app I created 3 Custom Directives. The first one is restricted to use like Element or Attribute. The second one “customColor” directive is restricted to use like Class and the third one “commentDirective” is a directive to use during Comments.</p>
<p>Notice Carefully, depending upon the restrict option, structure of each directive is different. The first on “elemAttrDirective” is restricted to use like an Element or Attribute. The cause it&#8217;s having template option. Using template here I am showing a line of text followed by H1 tag. Where in my second directive “customColor” I am finding the HTML Elements from DOM using link function and then applying <a href="https://jharaphula.com/css3-new-features-gradients-webfonts/" rel="noopener noreferrer" target="_blank">CSS</a> Style as this directive is restricted to use like a Class. Similarly in “commentDirective” I am using template and replace option to rewrite the Comment while using in view. Make a note while using a directive which is restricted to use in Comment block you have to put you directive name followed by “directive:”.</p>
<h3>Using restrict option in AngularJS Custom Directive</h3>
<pre class="brush: xml; title: ; notranslate">&lt;!DOCTYPE html&gt;
&lt;html&gt;
&lt;head&gt;
&lt;script src=&quot;https://ajax.googleapis.com/ajax/libs/angularjs/1.6.4/angular.min.js&quot;&gt;&lt;/script&gt;
&lt;/head&gt;

&lt;body ng-app=&quot;DemoApp&quot;&gt;

&lt;!-- In view of using restrict option for Element(E) --&gt;
&lt;elem-attr-directive&gt;&lt;/elem-attr-directive&gt;

&lt;!-- In view of using restrict option for Attribute(A) --&gt;
&lt;div elem-attr-directive&gt;&lt;/div&gt;

&lt;!-- In view of using restrict option for CSS Class(C) --&gt;
&lt;div class=&quot;custom-color&quot;&gt;This is a Class based Custom Directive in AngularJS&lt;/div&gt;

&lt;!-- In view of using restrict option for Comment(M) --&gt;
&lt;!-- directive:comment-directive --&gt;

&lt;script&gt;
var DemoApp = angular.module(&quot;DemoApp&quot;, []);

/* Always declaring directive name using Camel Case */
DemoApp.directive(&quot;elemAttrDirective&quot;, function() {
return {
restrict: &quot;AE&quot;,
template: &quot;&lt;h1&gt;This line is from Directive using restrict option AE.&lt;/h1&gt;&quot;
};
});

DemoApp.directive(&quot;customColor&quot;, function() {
return {
restrict: &quot;C&quot;,
link: function(scope, element, attrs) {
element.css(&quot;color&quot;, &quot;#FF0000&quot;);
}
}
});

DemoApp.directive('commentDirective', function() {
return {
restrict: 'M',
replace: true,
template: '&lt;div&gt;This line is from &quot;commentDirective&quot; Custom Directive.&lt;/div&gt;'
};
});
&lt;/script&gt;

&lt;/body&gt;
&lt;/html&gt;</pre>
<p>The post <a href="https://jharaphula.com/restrict-option-custom-directive/">How to use restrict option in AngularJS Custom Directive?</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://jharaphula.com/restrict-option-custom-directive/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			<media:content url="https://jharaphula.com/wp-content/uploads/2018/02/Restrict-a-Custom-Directive.png" medium="image" />
	</item>
		<item>
		<title>How to Rearrange Rows in a Gridview using Drag and Drop?</title>
		<link>https://jharaphula.com/gridview-using-drag-drop/</link>
					<comments>https://jharaphula.com/gridview-using-drag-drop/#respond</comments>
		
		<dc:creator><![CDATA[Biswabhusan Panda]]></dc:creator>
		<pubDate>Sat, 18 Mar 2017 17:05:27 +0000</pubDate>
				<category><![CDATA[Microsoft Technologies]]></category>
		<category><![CDATA[Div drag and drop]]></category>
		<category><![CDATA[drag and drop Jquery Example]]></category>
		<category><![CDATA[Gridview]]></category>
		<category><![CDATA[Gridview using Drag and Drop]]></category>
		<category><![CDATA[HTML5 Drag and Drop]]></category>
		<category><![CDATA[Rearrange Rows in a Gridview]]></category>
		<guid isPermaLink="false">http://jharaphula.com/?p=7075</guid>

					<description><![CDATA[<img width="300" height="186" src="https://jharaphula.com/wp-content/uploads/2017/03/drag-and-drop-gridview-300x186.png" class="webfeedsFeaturedVisual wp-post-image" alt="How to Rearrange Rows in a Gridview using Drag and Drop?" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2017/03/drag-and-drop-gridview-300x186.png 300w, https://jharaphula.com/wp-content/uploads/2017/03/drag-and-drop-gridview.png 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>Gridview is an awesome Control to display data in Tabular shape. Let&#8217;s assume while displaying records in a Gridview Customer wants to re-order the records....</p>
<p>The post <a href="https://jharaphula.com/gridview-using-drag-drop/">How to Rearrange Rows in a Gridview using Drag and Drop?</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></description>
										<content:encoded><![CDATA[<img width="300" height="186" src="https://jharaphula.com/wp-content/uploads/2017/03/drag-and-drop-gridview-300x186.png" class="webfeedsFeaturedVisual wp-post-image" alt="How to Rearrange Rows in a Gridview using Drag and Drop?" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2017/03/drag-and-drop-gridview-300x186.png 300w, https://jharaphula.com/wp-content/uploads/2017/03/drag-and-drop-gridview.png 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>Gridview is an awesome Control to display data in Tabular shape. Let&#8217;s assume while displaying records in a Gridview Customer wants to re-order the records. In such scenario row Drag and Drop feature works great. In back-end to maintain Order of records here I am with a column in Excel. Using order by with a <a href="https://jharaphula.com/sql-queries-with-example/" target="_blank" rel="noopener noreferrer">SQL query</a> I am displaying the records in Sequence.</p>
<h2>Understanding Drag and Drop Functionality</h2>
<p>Drag and drop is an intuitive user interface feature that allows users to move or reorder elements by clicking, holding, and dragging them to a new location. This functionality enhances user experience by simplifying interactions, reducing the need for manual input, and improving efficiency.</p>
<p>In this example I am with a Gridview control “gvLocations”. Which displaying data from an excel file using OLEDB connection. Code for Gridview is as below.</p>
<h3>Gridview</h3>
<pre class="brush: xml; title: ; notranslate">&lt;asp:GridView ID=&quot;gvLocations&quot; runat=&quot;server&quot; AutoGenerateColumns=&quot;false&quot;&gt;
&lt;Columns&gt;
&lt;asp:TemplateField HeaderText=&quot;Id&quot; ItemStyle-Width=&quot;30&quot;&gt;
&lt;ItemTemplate&gt;
&lt;%# Eval(&quot;ID&quot;)%&gt;
&lt;input type=&quot;hidden&quot; name=&quot;LocationId&quot; value='&lt;%# Eval(&quot;ID&quot;) %&gt;' /&gt;
&lt;/ItemTemplate&gt;
&lt;/asp:TemplateField&gt;

&lt;asp:BoundField DataField=&quot;Location&quot; HeaderText=&quot;Location&quot; ItemStyle-Width=&quot;150&quot; /&gt;

&lt;asp:BoundField DataField=&quot;Order&quot; HeaderText=&quot;Order&quot; ItemStyle-Width=&quot;100&quot; /&gt;
&lt;/Columns&gt;
&lt;/asp:GridView&gt;
&lt;br /&gt;
&lt;asp:Button Text=&quot;Update Preference&quot; runat=&quot;server&quot; OnClick=&quot;UpdatePreference&quot; /&gt;</pre>
<p>To implement Drag and Drop over a Gridview. In the below section I am using jQuery. To add this in your app, embed the jQuery library files in your app and Copy the below JQ Function to the header part of your aspx page.</p>
<h3>Drag and Drop using Jquery</h3>
<pre class="brush: jscript; title: ; notranslate">&lt;script type=&quot;text/javascript&quot; src=&quot;https://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js&quot;&gt;&lt;/script&gt;
&lt;link rel=&quot;stylesheet&quot; href=&quot;https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.24/themes/smoothness/jquery-ui.css&quot; /&gt;
&lt;script type=&quot;text/javascript&quot; src=&quot;https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.24/jquery-ui.min.js&quot;&gt;&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
$(function () {
$(&quot;[id*=gvLocations]&quot;).sortable({
items: 'tr:not(tr:first-child)',
cursor: 'pointer',
axis: 'y',
dropOnEmpty: false,
start: function (e, ui) {
ui.item.addClass(&quot;selected&quot;);
},
stop: function (e, ui) {
ui.item.removeClass(&quot;selected&quot;);
},
receive: function (e, ui) {
$(this).find(&quot;tbody&quot;).append(ui.item);
}
});
});
&lt;/script&gt;</pre>
<p>In Code behind I am 3 subroutines BindGrid, UpdatePreference and UpdatePreference with different signature. Whie page load if page is not postback I am calling the BindGrid() subroutine. Which help to display records in the Grid. Drag and Drop happening using the above Jquery Code. Now after re-ordering while I am updating the Excel. For this I have a button “Update Preference” in my aspx page. Onclick of this button I am calling UpdatePreference() subroutine. From 2 UpdatePreference() subroutine first one is responsible to extract id and order. Then from this I am calling the another UpdatePreference(locationId, order). Which updating records in Excel File using the Loop defined at UpdatePreference.</p>
<h3>Code-behind</h3>
<pre class="brush: vb; title: ; notranslate">Imports System.IO
Imports System.Data.OleDb
Imports System.Data
Imports System.Configuration

Partial Class _Default
Inherits System.Web.UI.Page

Dim FilePath As String = &quot;C:\Users\biswabhusan_panda\Documents\Visual Studio 2013\WebSites\KShop\Files\temp.xlsx&quot;
Dim Extension As String = &quot;.xlsx&quot;

Dim ConStr As String = ConfigurationManager.ConnectionStrings(&quot;ConnString&quot;).ConnectionString()

Protected Sub Page_Load(sender As Object, e As EventArgs) Handles Me.Load
If Not IsPostBack Then
Me.BindGrid(FilePath, Extension)
End If
End Sub

Private Sub BindGrid(ByVal FilePath As String, ByVal Extension As String)

ConStr = String.Format(ConStr, FilePath)

Dim connExcel As New OleDbConnection(ConStr)
Dim cmdExcel As New OleDbCommand()
Dim oda As New OleDbDataAdapter()
Dim dtbl As New DataTable()

cmdExcel.Connection = connExcel

'Get the name of First Sheet 
connExcel.Open()

Dim dtExcelSchema As DataTable
dtExcelSchema = connExcel.GetOleDbSchemaTable(OleDbSchemaGuid.Tables, Nothing)
Dim SheetName As String = dtExcelSchema.Rows(0)(&quot;TABLE_NAME&quot;).ToString()

connExcel.Close()

'Read Data from First Sheet 
connExcel.Open()

cmdExcel.CommandText = &quot;SELECT * From [&quot; &amp; SheetName &amp; &quot;]&quot;

oda.SelectCommand = cmdExcel
oda.Fill(dtbl)
connExcel.Close()

'Bind Data to GridView 
gvLocations.DataSource = dtbl
gvLocations.DataBind()

End Sub

Protected Sub UpdatePreference(sender As Object, e As EventArgs)
Dim locationIds As String() = (From p In Request.Form(&quot;LocationId&quot;).Split(&quot;,&quot;) Select p).ToArray()
Dim order As Integer = 1

For Each locationId As Integer In locationIds
Me.UpdatePreference(locationId, order)
order += 1
Next

Response.Redirect(Request.Url.AbsoluteUri)
End Sub

Private Sub UpdatePreference(locationId As Integer, order As Integer)

ConStr = String.Format(ConStr, FilePath)

Dim connExcel As New OleDbConnection(ConStr)
Dim cmdExcel As New OleDbCommand()
Dim oda As New OleDbDataAdapter()
Dim dtbl As New DataTable()

cmdExcel.Connection = connExcel

'Get the name of First Sheet 
connExcel.Open()

Dim dtExcelSchema As DataTable
dtExcelSchema = connExcel.GetOleDbSchemaTable(OleDbSchemaGuid.Tables, Nothing)
Dim SheetName As String = dtExcelSchema.Rows(0)(&quot;TABLE_NAME&quot;).ToString()

connExcel.Close()

'Read Data from First Sheet
connExcel.Open()

cmdExcel.CommandText = &quot;UPDATE [&quot; &amp; SheetName &amp; &quot;] SET Order='&quot; &amp; order &amp; &quot;' WHERE ID=&quot; &amp; locationId &amp; &quot;&quot;
cmdExcel.ExecuteNonQuery()
connExcel.Close()

End Sub
End Class</pre>
<h3>Web.Config</h3>
<pre class="brush: xml; title: ; notranslate">&lt;connectionStrings&gt;
&lt;!--&lt;add name =&quot;Excel03ConString&quot; connectionString=&quot;Provider=Microsoft.Jet.OLEDB.4.0;Data Source={0}; Extended Properties='Excel 8.0'&quot; /&gt;--&gt;
&lt;add name =&quot;ConnString&quot; connectionString=&quot;Provider=Microsoft.ACE.OLEDB.12.0;Data Source={0}; Extended Properties='Excel 8.0'&quot;/&gt;
&lt;/connectionStrings&gt;</pre>
<h2>Common Challenges and Solutions</h2>
<p>1. Performance Issues with Large Datasets For grids with many items, consider: </p>
<p>&#8211; Virtual scrolling to render only visible items.<br />
&#8211; Debouncing drag events to reduce unnecessary re-renders.</p>
<p>2. Cross-Browser Compatibility Test the implementation across browsers and use polyfills if needed for older versions.</p>
<h2>Use Cases</h2>
<p>1. Content Management Systems: Reordering images or articles in a gallery.<br />
2. Task Management Apps: Prioritizing tasks by dragging them up or down.<br />
3. E-Commerce Platforms: Rearranging product listings.</p>
<h2>Conclusion</h2>
<p>Implementing drag and drop in a GridView enhances usability by allowing users to intuitively rearrange data. By following the steps outlined above, developers can create a seamless and interactive experience. Proper handling of events, styling, and persistence ensures the feature works reliably across different platforms and devices. With these techniques, you can build dynamic applications that improve user engagement and efficiency.</p>
<p>The post <a href="https://jharaphula.com/gridview-using-drag-drop/">How to Rearrange Rows in a Gridview using Drag and Drop?</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://jharaphula.com/gridview-using-drag-drop/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			<media:content url="https://jharaphula.com/wp-content/uploads/2017/03/drag-and-drop-gridview.png" medium="image" />
	</item>
		<item>
		<title>Getting Started with Advanced Responsive Front-end Framework &#8211; Foundation</title>
		<link>https://jharaphula.com/responsive-front-end-framework-foundation/</link>
					<comments>https://jharaphula.com/responsive-front-end-framework-foundation/#respond</comments>
		
		<dc:creator><![CDATA[Biswabhusan Panda]]></dc:creator>
		<pubDate>Sun, 05 Mar 2017 17:17:07 +0000</pubDate>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Advanced CSS3]]></category>
		<category><![CDATA[BootStrap]]></category>
		<category><![CDATA[Foundation]]></category>
		<category><![CDATA[JavaScript Framework]]></category>
		<category><![CDATA[Responsive Front-end Framework]]></category>
		<guid isPermaLink="false">http://jharaphula.com/?p=7141</guid>

					<description><![CDATA[<img width="300" height="172" src="https://jharaphula.com/wp-content/uploads/2017/03/getting-started-foundation-300x172.png" class="webfeedsFeaturedVisual wp-post-image" alt="Getting Started with Advanced Responsive Front-end Framework - Foundation" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2017/03/getting-started-foundation-300x172.png 300w, https://jharaphula.com/wp-content/uploads/2017/03/getting-started-foundation.png 698w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>Early to the age of responsive Frameworks to develop a responsive web-page we required to plan for various resolutions and devices. Practically which is a...</p>
<p>The post <a href="https://jharaphula.com/responsive-front-end-framework-foundation/">Getting Started with Advanced Responsive Front-end Framework &#8211; Foundation</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></description>
										<content:encoded><![CDATA[<img width="300" height="172" src="https://jharaphula.com/wp-content/uploads/2017/03/getting-started-foundation-300x172.png" class="webfeedsFeaturedVisual wp-post-image" alt="Getting Started with Advanced Responsive Front-end Framework - Foundation" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2017/03/getting-started-foundation-300x172.png 300w, https://jharaphula.com/wp-content/uploads/2017/03/getting-started-foundation.png 698w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>Early to the age of responsive Frameworks to develop a responsive web-page we required to plan for various resolutions and devices. Practically which is a critical challenge for developers. Looking into this year back some organizations come up with “RWD Framework”. Such as BootStrap or Foundation. Using these frameworks now it is a fun to develop a responsive web-page.</p>
<p>Foundation is a bundle of HTML, CSS and JavaScript files. Using Foundation in less of time we can design amazing responsive web-pages. Foundation works on multiple devices like Laptop, Mobile, Tablet or iPad. Using this Front-end Framework developers can create web-pages ensuring a smooth experience no matter the device.</p>
<h3>Getting Started With Foundation</h3>
<p>The Framework Foundation is easy to learn and install. Foundation works with SASS. Before we will jump to discuss more about the anatomy of Foundation. Let you know “Looking into the purpose of use Foundation is divided into 2 types “Foundation for Site” and “Foundation for Email”.</p>
<p><strong>Foundation for Site</strong>: This package is a best tool for UI designers. Foundation for Site includes HTML, CSS and JavaScript. Using this you can create any kind of awesome web-pages. The CSS file comes with Foundation in rich with many useful in-built CSS Classes. Which saves time to develop responsive web-pages.</p>
<p><strong>Foundation for E-mail Templates</strong>: Similar to “Foundation for Site” Foundation for Email designed to create responsive <a href="https://jharaphula.com/best-practices-html-mail-template-design/" rel="noopener noreferrer" target="_blank">browser friendly email templates</a>. Using this you can easily create any custom responsive emails that work on every device, even in Outlook.</p>
<h3>Hello World!</h3>
<p>To start with Foundation you required to download the JS and CSS libraries. Download the latest version of Foundation from <a href="http://foundation.zurb.com/sites/download.html/" target="_blank" rel="noopener noreferrer nofollow">http://foundation.zurb.com/sites/download.html/</a>. Then unzip the downloaded folder. Add the folder to the root folder of your web application.</p>
<p>To embed Foundation CSS and JS files use link and script tag respectively. Look at the demo app how I implemented Foundation in my first “Hello World!” App. </p>
<pre class="brush: xml; title: ; notranslate">&lt;!doctype html&gt;
&lt;html class=&quot;no-js&quot; lang=&quot;en&quot;&gt;
&lt;head&gt;
&lt;meta charset=&quot;utf-8&quot; /&gt;
&lt;meta name=&quot;viewport&quot; content=&quot;width=device-width, initial-scale=1.0&quot; /&gt;
&lt;title&gt;Hello World!&lt;/title&gt;
&lt;link href=&quot;https://cdnjs.cloudflare.com/ajax/libs/foundation/6.3.1/css/foundation.css&quot; rel=&quot;stylesheet&quot; /&gt;
&lt;script src=&quot;https://cdnjs.cloudflare.com/ajax/libs/modernizr/2.8.3/modernizr.js&quot;&gt;&lt;/script&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;h3&gt;Hello World!&lt;/h3&gt;
&lt;div class=&quot;row&quot;&gt;
&lt;div class=&quot;large-12 columns&quot;&gt;
&lt;label&gt;Input Label&lt;/label&gt;
&lt;input type=&quot;text&quot; placeholder=&quot;large-12.columns&quot; /&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;row&quot;&gt;
&lt;div class=&quot;large-4 medium-4 columns&quot;&gt;
&lt;label&gt;Input Label&lt;/label&gt;
&lt;input type=&quot;text&quot; placeholder=&quot;large-4.columns&quot; /&gt;
&lt;/div&gt;
&lt;div class=&quot;large-4 medium-4 columns&quot;&gt;
&lt;label&gt;Input Label&lt;/label&gt;
&lt;input type=&quot;text&quot; placeholder=&quot;large-4.columns&quot; /&gt;
&lt;/div&gt;
&lt;div class=&quot;large-4 medium-4 columns&quot;&gt;
&lt;div class=&quot;row collapse&quot;&gt;
&lt;label&gt;Input Label&lt;/label&gt;
&lt;div class=&quot;small-9 columns&quot;&gt;
&lt;input type=&quot;text&quot; placeholder=&quot;small-9.columns&quot; /&gt;
&lt;/div&gt;
&lt;div class=&quot;small-3 columns&quot;&gt;
&lt;span class=&quot;postfix&quot;&gt;.com&lt;/span&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;row&quot;&gt;
&lt;div class=&quot;large-12 columns&quot;&gt;
&lt;label&gt;Select Box&lt;/label&gt;
&lt;select&gt;
&lt;option value=&quot;husker&quot;&gt;Husker&lt;/option&gt;
&lt;option value=&quot;starbuck&quot;&gt;Starbuck&lt;/option&gt;
&lt;option value=&quot;hotdog&quot;&gt;Hot Dog&lt;/option&gt;
&lt;option value=&quot;apollo&quot;&gt;Apollo&lt;/option&gt;
&lt;/select&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;script src=&quot;https://cdnjs.cloudflare.com/ajax/libs/jquery/3.1.1/jquery.js&quot;&gt;&lt;/script&gt;
&lt;script src=&quot;https://cdnjs.cloudflare.com/ajax/libs/foundation/6.3.1/js/foundation.js&quot;&gt;&lt;/script&gt;
&lt;script&gt;
$(document).foundation();
&lt;/script&gt;
&lt;/body&gt;
&lt;/html&gt;</pre>
<h3>Prototype to Production</h3>
<p>Off course you can design any custom HTML template as per your requirement. But itself Foundation provides awesome optimized HTML Templates. Rather wasting time to start from scratch, take the benefit of these free templates.</p>
<p>The post <a href="https://jharaphula.com/responsive-front-end-framework-foundation/">Getting Started with Advanced Responsive Front-end Framework &#8211; Foundation</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://jharaphula.com/responsive-front-end-framework-foundation/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			<media:content url="https://jharaphula.com/wp-content/uploads/2017/03/getting-started-foundation.png" medium="image" />
	</item>
		<item>
		<title>How to implement Forms Authentication in ASP.NET?</title>
		<link>https://jharaphula.com/forms-authentication-example/</link>
					<comments>https://jharaphula.com/forms-authentication-example/#respond</comments>
		
		<dc:creator><![CDATA[Biswabhusan Panda]]></dc:creator>
		<pubDate>Sat, 11 Feb 2017 05:06:14 +0000</pubDate>
				<category><![CDATA[Microsoft Technologies]]></category>
		<category><![CDATA[Authentication in ASP.NET]]></category>
		<category><![CDATA[Authentication Token]]></category>
		<category><![CDATA[implement Forms Authentication]]></category>
		<category><![CDATA[Types of Authentications]]></category>
		<category><![CDATA[Web.Config]]></category>
		<guid isPermaLink="false">http://jharaphula.com/?p=7139</guid>

					<description><![CDATA[<img width="300" height="200" src="https://jharaphula.com/wp-content/uploads/2017/02/Form-Authentication-300x200.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="How to implement Form Authentication in ASP.NET?" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2017/02/Form-Authentication-300x200.jpg 300w, https://jharaphula.com/wp-content/uploads/2017/02/Form-Authentication-182x120.jpg 182w, https://jharaphula.com/wp-content/uploads/2017/02/Form-Authentication-106x70.jpg 106w, https://jharaphula.com/wp-content/uploads/2017/02/Form-Authentication.jpg 610w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>Whether in a banking application or a job portal every where we required to authenticate user before allowing access. Or else Spam user can destroy...</p>
<p>The post <a href="https://jharaphula.com/forms-authentication-example/">How to implement Forms Authentication in ASP.NET?</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></description>
										<content:encoded><![CDATA[<img width="300" height="200" src="https://jharaphula.com/wp-content/uploads/2017/02/Form-Authentication-300x200.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="How to implement Form Authentication in ASP.NET?" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2017/02/Form-Authentication-300x200.jpg 300w, https://jharaphula.com/wp-content/uploads/2017/02/Form-Authentication-182x120.jpg 182w, https://jharaphula.com/wp-content/uploads/2017/02/Form-Authentication-106x70.jpg 106w, https://jharaphula.com/wp-content/uploads/2017/02/Form-Authentication.jpg 610w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>Whether in a banking application or a <a href="https://jharaphula.com/best-job-search-portals/" rel="noopener noreferrer" target="_blank">job</a> portal every where we required to authenticate user before allowing access. Or else Spam user can destroy our properties. In the login mechanism of ASP.NET using Form Authentication we can validate an user. During Forms Authentication ASP.NET authenticates user and maintains authentication token in a cookie for next consecutive actions. During page request the cookie travels with URL. In a ASP.NET page cycle Form Authentication participate through the FormsAuthenticationModule class.</p>
<p>To implement Form Authentication first you required to update you web.config file with the following line of Codes. In forms tag set loginUrl property value to Login page file path. Then to block anonymous users from unknown login set Authorization to deny All. Syntax for deny all is &lt;deny users=&#8221;?&#8221; /&gt;.</p>
<h3>Web.Config</h3>
<pre class="brush: xml; title: ; notranslate">&lt;system.web&gt;
&lt;authentication mode=&quot;Forms&quot;&gt;
&lt;forms loginUrl=&quot;login.aspx&quot; name=&quot;.lgnConfig&quot;&gt;
&lt;/forms&gt;
&lt;/authentication&gt;
&lt;authorization&gt;
&lt;deny users=&quot;?&quot; /&gt;
&lt;/authorization&gt;
&lt;/system.web&gt;</pre>
<p>In Login.aspx after validating user credentials, redirecting the logged user to default page using “RedirectFromLoginPage” method.</p>
<h3>Login.aspx</h3>
<pre class="brush: xml; title: ; notranslate">&lt;%@ Page Language=&quot;VB&quot; %&gt;
&lt;%@ Import Namespace=&quot;System.Web.Security&quot; %&gt;

&lt;script runat=&quot;server&quot;&gt;
Sub Login_Click(ByVal sender As Object, ByVal e As EventArgs)
If ((txtEmailID.Text = &quot;biswabhusan_panda@infosys.com&quot;) And _
(UserPass.Text = &quot;raghavi&quot;)) Then
FormsAuthentication.RedirectFromLoginPage _
(txtEmailID.Text, chkRemember.Checked)
Else
lblMsg.Text = &quot;Invalid credentials. Please try again.&quot;
End If
End Sub
&lt;/script&gt;

&lt;html&gt;
&lt;head id=&quot;Head1&quot; runat=&quot;server&quot;&gt;
&lt;title&gt;Exmple of Forms Authentication&lt;/title&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;form id=&quot;frmLogin&quot; runat=&quot;server&quot;&gt;
&lt;h3&gt;User Login Page&lt;/h3&gt;
    
&lt;div&gt;E-mail ID&lt;/div&gt;
&lt;div&gt;&lt;asp:TextBox ID=&quot;txtEmailID&quot; runat=&quot;server&quot; /&gt;&lt;asp:RequiredFieldValidator ID=&quot;rfEmailID&quot; ControlToValidate=&quot; txtEmailID&quot; Display=&quot;Dynamic&quot; ErrorMessage=&quot;Empty values are not allow.&quot; runat=&quot;server&quot; /&gt;&lt;div&gt;

&lt;div&gt;Password&lt;/div&gt;
&lt;div&gt;&lt;asp:TextBox ID=&quot;txtPassword&quot; TextMode=&quot;Password&quot; runat=&quot;server&quot; /&gt;&lt;asp:RequiredFieldValidator ID=&quot;rfPassword&quot; ControlToValidate=&quot;txtPassword&quot; ErrorMessage=&quot; Empty values are not allow.&quot; runat=&quot;server&quot; /&gt;
&lt;/div&gt;

&lt;div&gt;&lt;asp:CheckBox ID=&quot;chkRemember&quot; runat=&quot;server&quot; /&gt;&amp;nbsp;Remember for Next Login&lt;/div&gt;
&lt;div&gt;&lt;asp:Button ID=&quot;btnLogin&quot; OnClick=&quot;Login_Click&quot; Text=&quot;Log in&quot; runat=&quot;server&quot; /&gt;&lt;/div&gt;
&lt;div&gt;&lt;asp:Label ID=&quot;lblMsg&quot; ForeColor=&quot;red&quot; runat=&quot;server&quot; /&gt;&lt;/div&gt;
&lt;/form&gt;
&lt;/body&gt;
&lt;/html&gt;</pre>
<p>Once user is at default page, In default page provided Signout button. Which destroys authenticated cookie using FormsAuthentication.SignOut method.</p>
<h3>Default.aspx</h3>
<pre class="brush: xml; title: ; notranslate">&lt;%@ Page Language=&quot;VB&quot; %&gt;
&lt;html&gt;
&lt;head&gt;
&lt;title&gt;Successful Forms Authentication&lt;/title&gt;
&lt;/head&gt;

&lt;script runat=&quot;server&quot;&gt;
Sub Page_Load(ByVal Src As Object, ByVal e As EventArgs)
lblWelcomeMsg.Text = &quot;Welcome, &quot; &amp; Context.User.Identity.Name
End Sub

Sub Signout_Click(ByVal sender As Object, ByVal e As EventArgs)
FormsAuthentication.SignOut()
Response.Redirect(&quot;Login.aspx&quot;)
End Sub
&lt;/script&gt;

&lt;body&gt;
&lt;h3&gt;Example of Forms Authentication&lt;/h3&gt;
&lt;asp:Label ID=&quot;lblWelcomeMsg&quot; runat=&quot;server&quot; /&gt;
&lt;form id=&quot;frmDefault&quot; runat=&quot;server&quot;&gt;
&lt;asp:Button ID=&quot;btnSignOut&quot; OnClick=&quot;Signout_Click&quot; Text=&quot;Sign Out&quot; runat=&quot;server&quot; /&gt;&lt;p&gt;
&lt;/form&gt;
&lt;/body&gt;
&lt;/html&gt;</pre>
<p>The post <a href="https://jharaphula.com/forms-authentication-example/">How to implement Forms Authentication in ASP.NET?</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://jharaphula.com/forms-authentication-example/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			<media:content url="https://jharaphula.com/wp-content/uploads/2017/02/Form-Authentication.jpg" medium="image" />
	</item>
		<item>
		<title>Cross Browser pure CSS ToolTip using after and before Pseudo-elements</title>
		<link>https://jharaphula.com/pure-css-tooltip/</link>
					<comments>https://jharaphula.com/pure-css-tooltip/#respond</comments>
		
		<dc:creator><![CDATA[Biswabhusan Panda]]></dc:creator>
		<pubDate>Sat, 28 Jan 2017 16:53:40 +0000</pubDate>
				<category><![CDATA[CSS Tricks with Examples]]></category>
		<category><![CDATA[Cross Browser]]></category>
		<category><![CDATA[Cross Browser friendly]]></category>
		<category><![CDATA[Cross Browser ToolTip]]></category>
		<category><![CDATA[CSS in UI designing]]></category>
		<category><![CDATA[pure CSS ToolTip]]></category>
		<guid isPermaLink="false">http://jharaphula.com/?p=7206</guid>

					<description><![CDATA[<img width="300" height="185" src="https://jharaphula.com/wp-content/uploads/2017/01/pure-css-tooltip-300x185.png" class="webfeedsFeaturedVisual wp-post-image" alt="Cross Browser pure CSS ToolTip using after and before Pseudo-elements" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2017/01/pure-css-tooltip-300x185.png 300w, https://jharaphula.com/wp-content/uploads/2017/01/pure-css-tooltip.png 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>There are several ways to design ToolTip. You can design a tooltip using JavaScript or JQuery or CSS or BootStrap. Compare to Client Script ToolTip...</p>
<p>The post <a href="https://jharaphula.com/pure-css-tooltip/">Cross Browser pure CSS ToolTip using after and before Pseudo-elements</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></description>
										<content:encoded><![CDATA[<img width="300" height="185" src="https://jharaphula.com/wp-content/uploads/2017/01/pure-css-tooltip-300x185.png" class="webfeedsFeaturedVisual wp-post-image" alt="Cross Browser pure CSS ToolTip using after and before Pseudo-elements" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2017/01/pure-css-tooltip-300x185.png 300w, https://jharaphula.com/wp-content/uploads/2017/01/pure-css-tooltip.png 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>There are several ways to design ToolTip. You can design a tooltip using JavaScript or JQuery or CSS or BootStrap. Compare to Client Script ToolTip pure CSS based tooltip renders better performance. In the below demo I created a ToolTip using pure CSS classes. This is Cross Browser friendly and easy to customize.</p>
<p>“addtooltip” class represents styles for HTML page and mouse over area. Class Tooltip is responsible for the look and feel of ToolTip popup div. Using tooptip:before maintaining mouse cursor type during mouse movement from link to tooltip window. Similarly, using tooltip:after <a href="https://jharaphula.com/tricks-draw-css-triangle-div/" target="_blank" rel="noopener noreferrer">drawing Triangle</a> to the bottom of tooltip rectangle.</p>
<h2>Introduction to Tooltips</h2>
<p>Tooltips are small, contextual pop-up boxes that provide additional information when a user hovers over or focuses on an element. They enhance user experience by offering concise explanations, definitions, or supplementary details without cluttering the interface. Traditionally, tooltips were implemented using JavaScript, but modern CSS techniques allow for pure CSS-based solutions that are lightweight and performant.</p>
<h2>Why Use Pure CSS Tooltips?</h2>
<p>Pure CSS tooltips eliminate the need for JavaScript, reducing page load time and improving performance. They are simpler to implement, easier to maintain, and work seamlessly across different browsers when properly structured. Additionally, CSS tooltips degrade gracefully on browsers that do not support advanced CSS features.</p>
<h2>Basic Structure of a CSS Tooltip</h2>
<p>A pure CSS tooltip consists of two main components: 1. Trigger Element: The element (e.g., button, link, or icon) that activates the tooltip on hover or focus. 2. Tooltip Content: The hidden text or element that becomes visible when the trigger is activated.</p>
<p>In HTML I am with 2 div’s. First Div is addtooltip which contains tooltip div as a child. This Tooltip is based on pure CSS to run this you don’t required any plugin like JQuery or AngularJS.</p>
<h3>Example.htm</h3>
<pre class="brush: xml; title: ; notranslate">&lt;!DOCTYPE html&gt;
&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;
&lt;head runat=&quot;server&quot;&gt;
&lt;title&gt;ToolTip using pure CSS&lt;/title&gt;
&lt;link rel=&quot;stylesheet&quot; src=&quot;toolTip.css&quot; /&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;div&gt;
&lt;div class=&quot;addtooltip&quot;&gt;
This is a Demo ToopTip.
&lt;div class=&quot;tooltip&quot;&gt;I am a tooltip!&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/body&gt;
&lt;/html&gt;</pre>
<h3>toolTip.css</h3>
<pre class="brush: css; title: ; notranslate">.addtooltip {
background: #ddd;
cursor: pointer; /* Cursor icon to Hand Symbol */
font-size: 30px;
padding: 15px 20px;
margin: 100px 75px 10px 100px;
position: relative;
text-align: center;
width: 210px;
-webkit-transform: translateZ(0); /* Google Chrome Flicker Fix */
-webkit-font-smoothing: antialiased; /* Google Chrome Text Rendering Fix */
}

.addtooltip .tooltip {
background: #9ed3f3; /* Background Color of ToolTip rectangle */
bottom: 100%;
color: #0000FF; /* ToolTip Text Color */
display: block;
left: -25px;
opacity: 0;
padding: 20px;
pointer-events: none;
position: absolute;
width: 100%;
margin-bottom: 15px;
transition: all .25s ease-out;
-webkit-transition: all .25s ease-out; /* Fixing Transition issue in Google Chrome */
-moz-transition: all .25s ease-out; /* Fixing Transition issue in FireFox */
-ms-transition: all .25s ease-out; /* Fixing Transition issue in Safari */
-o-transition: all .25s ease-out; /* Fixing Transition issue in Opera */
transform: translateY(10px);
-webkit-transform: translateY(10px); /* Fixing Transform issue in Google Chrome */
-moz-transform: translateY(10px); /* Fixing Transform issue in FireFox */
-ms-transform: translateY(10px); /* Fixing Transform issue in Safari */
-o-transform: translateY(10px); /* Fixing Transform issue in Opera */
box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.28);
-webkit-box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.28); /* Fixing box-shadow issue in Google Chrome */
-moz-box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.28); /* Fixing box-shadow issue in FireFox */
-ms-box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.28); /* Fixing box-shadow issue in Safari */
-o-box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.28); /* Fixing box-shadow issue in Opera */
}

/* While moving your Mouse Cursor to ToolTip this will keep Continuity */
.addtooltip .tooltip:before {
bottom: -20px;
content: &quot; &quot;;
display: block;
height: 20px;
left: 0;
position: absolute;
width: 100%;
}

/* CSS Triangles below ToolTip Rectangle */
.addtooltip .tooltip:after {
border-left: solid transparent 12px;
border-right: solid transparent 12px;
border-top: solid #9ed3f3 12px;
bottom: -12px;
content: &quot; &quot;;
height: 0;
left: 50%;
margin-left: -13px;
position: absolute;
width: 0;
}

.addtooltip:hover .tooltip {
opacity: 1;
pointer-events: auto;
transform: translateY(0px);
-webkit-transform: translateY(0px); /* Fixing Transform issue in Google Chrome */
-moz-transform: translateY(0px); /* Fixing Transform issue in FireFox */
-ms-transform: translateY(0px); /* Fixing Transform issue in Safari */
-o-transform: translateY(0px); /* Fixing Transform issue in Opera */
}</pre>
<h2>Common Pitfalls and Solutions</h2>
<p>1. Z-Index Issues: Ensure tooltips appear above other elements by setting a high `z-index`.<br />
2. Responsiveness: Use relative units (e.g., `em`, `rem`) for tooltip sizing.<br />
3. Touch Devices: Provide fallbacks for devices without hover support (e.g., tap-to-reveal).</p>
<h2>Advanced Techniques</h2>
<p>1. Custom Shapes: Use `::before` and `::after` pseudo-elements for arrows or unique designs.<br />
2. Dynamic Content: Combine with CSS variables for reusable tooltip styles.<br />
3. Dark/Light Mode: Adapt tooltip colors using `prefers-color-scheme`.</p>
<h2>Conclusion</h2>
<p>Pure CSS tooltips are a lightweight, efficient way to enhance user interaction without relying on JavaScript. By leveraging CSS positioning, transitions, and accessibility best practices, developers can create responsive, cross-browser tooltips that improve usability across all devices. With careful attention to design and compatibility, these tooltips provide a seamless experience for users while maintaining clean, maintainable code.</p>
<p>The post <a href="https://jharaphula.com/pure-css-tooltip/">Cross Browser pure CSS ToolTip using after and before Pseudo-elements</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://jharaphula.com/pure-css-tooltip/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			<media:content url="https://jharaphula.com/wp-content/uploads/2017/01/pure-css-tooltip.png" medium="image" />
	</item>
		<item>
		<title>Element, ID and Class Selectors using JQuery with Example</title>
		<link>https://jharaphula.com/types-jquery-selectors-example/</link>
					<comments>https://jharaphula.com/types-jquery-selectors-example/#respond</comments>
		
		<dc:creator><![CDATA[Biswabhusan Panda]]></dc:creator>
		<pubDate>Thu, 29 Dec 2016 15:23:58 +0000</pubDate>
				<category><![CDATA[Learn JQuery with Examples]]></category>
		<category><![CDATA[JQuery Selectors with Example]]></category>
		<category><![CDATA[Selector in CSS3]]></category>
		<category><![CDATA[Types of JQuery Selectors]]></category>
		<category><![CDATA[What is JQuery Selector?]]></category>
		<guid isPermaLink="false">http://jharaphula.com/?p=7085</guid>

					<description><![CDATA[<img width="300" height="188" src="https://jharaphula.com/wp-content/uploads/2016/12/JQuery-Selectors-300x188.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="Element, ID and Class Selectors using JQuery with Example" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/12/JQuery-Selectors-300x188.jpg 300w, https://jharaphula.com/wp-content/uploads/2016/12/JQuery-Selectors.jpg 610w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>As you know Jquery is the advanced version of JavaScript. The library we use to implement Jquery is developed using pure JavaScript. Did you remember...</p>
<p>The post <a href="https://jharaphula.com/types-jquery-selectors-example/">Element, ID and Class Selectors using JQuery with Example</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></description>
										<content:encoded><![CDATA[<img width="300" height="188" src="https://jharaphula.com/wp-content/uploads/2016/12/JQuery-Selectors-300x188.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="Element, ID and Class Selectors using JQuery with Example" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/12/JQuery-Selectors-300x188.jpg 300w, https://jharaphula.com/wp-content/uploads/2016/12/JQuery-Selectors.jpg 610w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>As you know Jquery is the advanced version of JavaScript. The library we use to implement Jquery is developed using pure JavaScript. Did you remember those days when Jquery in not <a href="https://jharaphula.com/web-developer-interview-questions-answers/" target="_blank" rel="noopener noreferrer">introduced in Web Technology</a>? During that period to do a Client-Side operation we depend upon JavaScript. Here if I will ask you to select an element from a HTML page using JavaScript, Then I know in replay you will show me those JS methods like GetElementByID or GetElementByName. Yes you are correct using these methods we can select HTML page element for Scripting.</p>
<p>The next generation of JavaScript, Jquery made simple the way to select an element from a HTML page. This technique in Jquery is called “Jquery Selectors”. Jquery Selectors are used to select HTML elements based on their name, id, classes, types, attributes and values of attributes. Looking into the structure of Document Object Model (DOM) Jquery Selectors are categories into 3 types.</p>
<ul>
<li>The element Selector</li>
<li>#ID Selector</li>
<li>.Class Selector</li>
</ul>
<p>Before Jump to discus more about the types of Jquery Selectors first let you know all selectors in Jquery start with a dollar sign followed by parentheses. Like $().</p>
<h3>The element Selector</h3>
<p>Element Selector in Jquery selects elements from a HTML document using the element name. For an example if in your HTML page there are 2 or more paragraphs you want to apply background-color for them, then this Selector is the best option. You can do like the below.</p>
<pre class="brush: jscript; title: ; notranslate">$(document).ready(function(){
$(&quot;button&quot;).click(function(){
$(&quot;p&quot;).css(&quot;background-color&quot;,&quot;yellow&quot;);
});
});</pre>
<h3>#ID Selector</h3>
<p>As you know in a HTML page elements ID is unique for each. During development we use ID to identify an element. The similar concept Jquery uses here. Using Jquery ID Selector you can select any single or unique element from a HTML page. To find an element with a specific ID, write a hash character, followed by the element ID as below.</p>
<pre class="brush: jscript; title: ; notranslate">$(document).ready(function(){
$(&quot;button&quot;).click(function(){
$(&quot;#myDiv&quot;).show();
});
});</pre>
<p>Here myDiv is a Div declared inside the body tag of HTML.</p>
<h3>.Class Selector</h3>
<p>To maintain better look and feel CSS plays an Classical role over HTML. That’s why Class. A CSS Class is nothing but a block of Code which defines various styles for a HTML element. Let’s assume in my HTML page I have 10 div’s which are using same CSS Class. What the Customer wants is all those div’s with same Class name need to Fill red background Color. In such scenario Jquery Class Selectors are useful. To select an element from a HTML document Jquery Class Selector uses the Class name. To find an element with a specific Class, write a dot character, followed by the element CSS Class as below.</p>
<pre class="brush: jscript; title: ; notranslate">$(document).ready(function(){
$(&quot;button&quot;).click(function(){
$(&quot;.myDiv&quot;).hide();
});
});</pre>
<p>Here myDiv is a Div declared inside the body tag of HTML.</p>
<h3>Examples of jQuery Selectors</h3>
<p><strong>$(&#8220;*&#8221;)</strong> &#8211; Used to select all elements of a HTML page.</p>
<p><strong>$(this)</strong> &#8211; Used to select the Current element.</p>
<p><strong>$(&#8220;p.intro&#8221;)</strong> &#8211; Used to select all the paragraphs with Class name intro.</p>
<p><strong>$(&#8220;p:first&#8221;)</strong> &#8211; Used to select only the first paragraph.</p>
<p><strong>$(&#8220;[href]&#8221;)</strong> &#8211; Used to select all elements with an href attribute.</p>
<p><strong>$(&#8220;a[target=&#8217;_blank&#8217;]&#8221;)</strong> &#8211; Used to select all &lt;a&gt; elements with target attribute value equal to &#8220;_blank&#8221;.</p>
<p><strong>$(&#8220;:button&#8221;)</strong> &#8211; Used to select all &lt;button&gt; elements and elements of type=&#8221;button&#8221;.</p>
<p><strong>$(&#8220;tr:even&#8221;)</strong> &#8211; Used to select all even &lt;tr&gt; elements.</p>
<p><strong>$(&#8220;tr:odd&#8221;)</strong> &#8211; Used to select all odd &lt;tr&gt; elements.</p>
<p>The post <a href="https://jharaphula.com/types-jquery-selectors-example/">Element, ID and Class Selectors using JQuery with Example</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://jharaphula.com/types-jquery-selectors-example/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			<media:content url="https://jharaphula.com/wp-content/uploads/2016/12/JQuery-Selectors.jpg" medium="image" />
	</item>
		<item>
		<title>How to Bind Data to DataPager inside ListView Control in ASP.NET?</title>
		<link>https://jharaphula.com/bind-data-datapager-listview/</link>
					<comments>https://jharaphula.com/bind-data-datapager-listview/#comments</comments>
		
		<dc:creator><![CDATA[Biswabhusan Panda]]></dc:creator>
		<pubDate>Sun, 25 Dec 2016 16:56:34 +0000</pubDate>
				<category><![CDATA[Microsoft Technologies]]></category>
		<category><![CDATA[Bind Data to DataPager]]></category>
		<category><![CDATA[DataPager]]></category>
		<category><![CDATA[DataPager inside ListView Control]]></category>
		<category><![CDATA[How to Bind Data?]]></category>
		<category><![CDATA[ListView Control in ASP.NET]]></category>
		<guid isPermaLink="false">http://jharaphula.com/?p=7000</guid>

					<description><![CDATA[<img width="300" height="169" src="https://jharaphula.com/wp-content/uploads/2016/12/ListView-300x169.png" class="webfeedsFeaturedVisual wp-post-image" alt="How to Bind Data to DataPager inside ListView Control in ASP.NET?" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/12/ListView-300x169.png 300w, https://jharaphula.com/wp-content/uploads/2016/12/ListView.png 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>In ASP.NET there are several controls to present data in a web page. Some of the popular data controls are GridView, ListView, DetailsView, FormView, Repeater...</p>
<p>The post <a href="https://jharaphula.com/bind-data-datapager-listview/">How to Bind Data to DataPager inside ListView Control in ASP.NET?</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></description>
										<content:encoded><![CDATA[<img width="300" height="169" src="https://jharaphula.com/wp-content/uploads/2016/12/ListView-300x169.png" class="webfeedsFeaturedVisual wp-post-image" alt="How to Bind Data to DataPager inside ListView Control in ASP.NET?" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/12/ListView-300x169.png 300w, https://jharaphula.com/wp-content/uploads/2016/12/ListView.png 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>In ASP.NET there are several controls to present data in a web page. Some of the popular data controls are GridView, ListView, DetailsView, FormView, Repeater or SQLDataSource. If you will notice in the recent versions of Visual Studio you will watch DataPager as a Data Control. Like a Gridview using DataPager Control we can present data in tabular shape. Look at the example below where I am binding data to a DataPager control inside a ListView Control.</p>
<p>To enable users to page through data in a ListView control or a control which implements IPageableItemContainer <a href="https://jharaphula.com/oops-concepts-with-examples/" rel="noopener noreferrer" target="_blank">interface</a>, we can use DataPager control in ASP.NET. While declaring a DataPager Control declare it inside LayoutTemplate. If your DataPager Control is not inside the ListView control then you need to set PagedControlID property value to ListView control ID.</p>
<h3>ListView from Default.aspx</h3>
<pre class="brush: xml; title: ; notranslate">&lt;asp:ListView ID=&quot;lvEmployees&quot; runat=&quot;server&quot; GroupPlaceholderID=&quot;grpPlaceHoder&quot;
ItemPlaceholderID=&quot;itemPlaceHolder&quot; OnPagePropertiesChanging=&quot;OnPropertiesChanging&quot;&gt;
&lt;LayoutTemplate&gt;
&lt;table cellpadding=&quot;0&quot; cellspacing=&quot;0&quot;&gt;
&lt;tr&gt;
&lt;th&gt;Emp ID&lt;/th&gt;
&lt;th&gt;Emp Name&lt;/th&gt;
&lt;th&gt;Status&lt;/th&gt;
&lt;/tr&gt;
&lt;asp:PlaceHolder runat=&quot;server&quot; ID=&quot;grpPlaceHoder&quot;&gt;&lt;/asp:PlaceHolder&gt;
&lt;tr&gt;
&lt;td colspan=&quot;3&quot;&gt;
&lt;asp:DataPager ID=&quot;dpager&quot; runat=&quot;server&quot; PagedControlID=&quot;lvEmployees&quot; PageSize=&quot;10&quot;&gt;
&lt;Fields&gt;
&lt;asp:NextPreviousPagerField ButtonType=&quot;Link&quot; ShowFirstPageButton=&quot;false&quot; ShowPreviousPageButton=&quot;true&quot;
ShowNextPageButton=&quot;false&quot; /&gt;
&lt;asp:NumericPagerField ButtonType=&quot;Link&quot; /&gt;
&lt;asp:NextPreviousPagerField ButtonType=&quot;Link&quot; ShowNextPageButton=&quot;true&quot; ShowLastPageButton=&quot;false&quot; ShowPreviousPageButton=&quot;false&quot; /&gt;
&lt;/Fields&gt;
&lt;/asp:DataPager&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;/LayoutTemplate&gt;
&lt;GroupTemplate&gt;
&lt;tr&gt;
&lt;asp:PlaceHolder runat=&quot;server&quot; ID=&quot;itemPlaceHolder&quot;&gt;&lt;/asp:PlaceHolder&gt;
&lt;/tr&gt;
&lt;/GroupTemplate&gt;
&lt;ItemTemplate&gt;
&lt;td&gt;&lt;%# Eval(&quot;ID&quot;)%&gt;&lt;/td&gt;
&lt;td&gt;&lt;%# Eval(&quot;Name&quot;)%&gt;&lt;/td&gt;
&lt;td&gt;&lt;%# Eval(&quot;Status&quot;) %&gt;&lt;/td&gt;
&lt;/ItemTemplate&gt;
&lt;/asp:ListView&gt;</pre>
<h3>Code-behind Default.aspx.vb</h3>
<pre class="brush: vb; title: ; notranslate">Imports System.IO
Imports System.Data.OleDb
Imports System.Data

Partial Class _Default
Inherits System.Web.UI.Page

Dim FilePath As String = &quot;C:\Users\biswabhusan_panda\Documents\Visual Studio 2013\WebSites\ExcelApp\Files\temp.xlsx&quot;
Dim Extension As String = &quot;.xlsx&quot;

Dim ConStr As String = ConfigurationManager.ConnectionStrings(&quot;ConnString&quot;).ConnectionString()

Protected Sub Page_Load(sender As Object, e As EventArgs) Handles Me.Load
If Not Me.IsPostBack Then
Me.BindListView(FilePath, Extension)
End If
End Sub

Protected Sub OnPropertiesChanging(sender As Object, e As PagePropertiesChangingEventArgs)
TryCast(lvEmployees.FindControl(&quot;dpager&quot;), DataPager).SetPageProperties(e.StartRowIndex, e.MaximumRows, False)
Me.BindListView(FilePath, Extension)
End Sub

Private Sub BindListView(ByVal FilePath As String, ByVal Extension As String)

ConStr = String.Format(ConStr, FilePath)

Dim connExcel As New OleDbConnection(ConStr)
Dim cmdExcel As New OleDbCommand()
Dim oda As New OleDbDataAdapter()
Dim dtbl As New DataTable()

cmdExcel.Connection = connExcel

'Get the name of First Sheet 
connExcel.Open()

Dim dtExcelSchema As DataTable
dtExcelSchema = connExcel.GetOleDbSchemaTable(OleDbSchemaGuid.Tables, Nothing)
Dim SheetName As String = dtExcelSchema.Rows(0)(&quot;TABLE_NAME&quot;).ToString()

connExcel.Close()

'Read Data from First Sheet 
connExcel.Open()

cmdExcel.CommandText = &quot;SELECT * From [&quot; &amp; SheetName &amp; &quot;]&quot;

oda.SelectCommand = cmdExcel
oda.Fill(dtbl)
connExcel.Close()

'Bind Data to GridView 
lvEmployees.DataSource = dtbl
lvEmployees.DataBind()

End Sub
End Class</pre>
<p>The post <a href="https://jharaphula.com/bind-data-datapager-listview/">How to Bind Data to DataPager inside ListView Control in ASP.NET?</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://jharaphula.com/bind-data-datapager-listview/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			<media:content url="https://jharaphula.com/wp-content/uploads/2016/12/ListView.png" medium="image" />
	</item>
		<item>
		<title>How to update records in a Gridview using Auto Generate Edit Button?</title>
		<link>https://jharaphula.com/gridview-auto-generate-edit-button/</link>
					<comments>https://jharaphula.com/gridview-auto-generate-edit-button/#respond</comments>
		
		<dc:creator><![CDATA[Biswabhusan Panda]]></dc:creator>
		<pubDate>Mon, 12 Dec 2016 17:34:30 +0000</pubDate>
				<category><![CDATA[Microsoft Technologies]]></category>
		<category><![CDATA[ASP.NET Gridview]]></category>
		<category><![CDATA[ASP.NET Gridview Example]]></category>
		<category><![CDATA[Auto Generate Edit Button]]></category>
		<category><![CDATA[How to update records]]></category>
		<category><![CDATA[TemplateField]]></category>
		<guid isPermaLink="false">http://jharaphula.com/?p=6955</guid>

					<description><![CDATA[<img width="300" height="187" src="https://jharaphula.com/wp-content/uploads/2016/12/gridview-auto-edit-button-300x187.png" class="webfeedsFeaturedVisual wp-post-image" alt="How to update records in a Gridview using Auto Generate Edit Button?" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/12/gridview-auto-edit-button-300x187.png 300w, https://jharaphula.com/wp-content/uploads/2016/12/gridview-auto-edit-button.png 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>In ASP.NET Gridview is a best approach to present Tabular data. Looking into the advanced functionalities of a Gridview control using this you can fetch...</p>
<p>The post <a href="https://jharaphula.com/gridview-auto-generate-edit-button/">How to update records in a Gridview using Auto Generate Edit Button?</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></description>
										<content:encoded><![CDATA[<img width="300" height="187" src="https://jharaphula.com/wp-content/uploads/2016/12/gridview-auto-edit-button-300x187.png" class="webfeedsFeaturedVisual wp-post-image" alt="How to update records in a Gridview using Auto Generate Edit Button?" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/12/gridview-auto-edit-button-300x187.png 300w, https://jharaphula.com/wp-content/uploads/2016/12/gridview-auto-edit-button.png 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>In ASP.NET Gridview is a best approach to present Tabular data. Looking into the advanced functionalities of a Gridview control using this you can fetch data from any data media like <a href="https://jharaphula.com/sql-queries-with-example/" target="_blank" rel="noopener noreferrer">SQL</a>, MySQL or even an Excel File. In the below demo I have an Excel File with 5 columns of data. Using Gridview we are presenting those excel records in tabular shape on a web page.</p>
<p>To try the below demo, Create an ASP.NET Web Application. Then to prepare data open an Excel File. Add any 5 columns of data with single word header. Name the File as temp.xlsx. Then in your application under root folder create a folder named as &#8220;FILES&#8221;. Move the temp.xlsx File inside. To debug the below app in your new app, Add the Default.aspx file with it&#8217;s code-behind file in VB.NET. To get started Copy the below Gridview Control in your Default.aspx page.</p>
<h2>Gridview using Auto Generate Edit Button</h2>
<pre class="brush: xml; title: ; notranslate">&lt;asp:GridView ID=&quot;grdRecords&quot; runat=&quot;server&quot; AutoGenerateColumns=&quot;false&quot; AutoGenerateEditButton=&quot;true&quot; AllowPaging=&quot;true&quot; PageSize=&quot;20&quot; Font-Names=&quot;Arial&quot; Font-Size=&quot;11pt&quot; AlternatingRowStyle-BackColor=&quot;#C2D69B&quot; HeaderStyle-BackColor=&quot;green&quot; HeaderStyle-ForeColor=&quot;#FFFFFF&quot; OnPageIndexChanging=&quot;OnPaging&quot; Width=&quot;100%&quot;&gt;
&lt;Columns&gt;
&lt;asp:TemplateField HeaderText=&quot;Emp Name&quot;&gt;
&lt;ItemTemplate&gt;
&lt;asp:Label ID=&quot;lblEmpName&quot; runat=&quot;server&quot; Text='&lt;%# Bind(&quot;Name&quot;)%&gt;'&gt;&lt;/asp:Label&gt;
&lt;/ItemTemplate&gt;
&lt;/asp:TemplateField&gt;
&lt;asp:TemplateField HeaderText=&quot;Emp ID&quot;&gt;
&lt;ItemTemplate&gt;
&lt;asp:Label ID=&quot;lblEmpID&quot; runat=&quot;server&quot; Text='&lt;%# Bind(&quot;ID&quot;)%&gt;'&gt;&lt;/asp:Label&gt;
&lt;/ItemTemplate&gt;
&lt;/asp:TemplateField&gt;
&lt;asp:TemplateField HeaderText=&quot;Status&quot;&gt;
&lt;EditItemTemplate&gt;
&lt;asp:DropDownList ID=&quot;ddlRowStatus&quot; runat=&quot;server&quot; AutoPostBack=&quot;true&quot;&gt;
&lt;asp:ListItem&gt;thisis&lt;/asp:ListItem&gt;
&lt;/asp:DropDownList&gt;
&lt;/EditItemTemplate&gt;
&lt;ItemTemplate&gt;
&lt;%# Eval(&quot;Status&quot;) %&gt;
&lt;/ItemTemplate&gt;
&lt;/asp:TemplateField&gt; 
&lt;asp:TemplateField HeaderText=&quot;Starts&quot;&gt;
&lt;ItemTemplate&gt;
&lt;asp:Label ID=&quot;lblStarts&quot; runat=&quot;server&quot; Text='&lt;%# Bind(&quot;Starts&quot;)%&gt;'&gt;&lt;/asp:Label&gt;
&lt;/ItemTemplate&gt;
&lt;/asp:TemplateField&gt;
&lt;asp:TemplateField HeaderText=&quot;Ends&quot;&gt;
&lt;ItemTemplate&gt;
&lt;asp:Label ID=&quot;lblEnds&quot; runat=&quot;server&quot; Text='&lt;%# Bind(&quot;Ends&quot;)%&gt;'&gt;&lt;/asp:Label&gt;
&lt;/ItemTemplate&gt;
&lt;/asp:TemplateField&gt;                   
&lt;/Columns&gt;
&lt;/asp:GridView&gt;</pre>
<p>You must noticed here how I am binding data to the above Gridview. Status Field is the Field which I want to edit using Auto Generate Edit Button. That&#8217;s why inside template field for this column I am with 2 sub-entries ItemTemplate and EditItemTemplate. EditItemTemplate holding that control which will display in the place of Status column at the time of Edit.</p>
<p>The below Code is from the Code-behind File. Logic is very simple. Using BindGrid() sub-routine we are displaying records in the Grid. 3 more gridview events I used grdRecords_RowCancelingEdit, grdRecords_RowDataBound, grdRecords_RowUpdating. Using RowCancelingEdit() event I am handling the Cancel button functionalities. While using RowDataBound() we are binding data for Status dropdownlist in Grid. Finally after user Edit the record we are updating the Excel File under RowUpdating() event. FilePath and Extention these two are used as parameters in many Functions. That&#8217;s why it is declared as global variable.</p>
<h2>Code-behind Codes for Gridview using Edit button</h2>
<pre class="brush: vb; title: ; notranslate">Imports System.IO
Imports System.Data.OleDb
Imports System.Data

Partial Class _Default
Inherits System.Web.UI.Page

Dim FilePath As String = &quot;C:\Users\biswabhusan_panda\Documents\Visual Studio 2013\WebSites\ExcelApp\Files\temp.xlsx&quot;
Dim Extension As String = &quot;.xlsx&quot;
Dim ddlRowStatus As DropDownList

Dim ConStr As String = ConfigurationManager.ConnectionStrings(&quot;ConnString&quot;).ConnectionString()

Protected Sub Page_Load(sender As Object, e As EventArgs) Handles Me.Load
If Not Page.IsPostBack Then
ViewState(&quot;Filter&quot;) = &quot;ALL&quot;
BindGrid(FilePath, Extension)
End If
End Sub

Protected Sub OnPaging(sender As Object, e As GridViewPageEventArgs)
grdRecords.PageIndex = e.NewPageIndex
Me.BindGrid(FilePath, Extension)
End Sub

Private Sub BindGrid(ByVal FilePath As String, ByVal Extension As String)

ConStr = String.Format(ConStr, FilePath)

Dim connExcel As New OleDbConnection(ConStr)
Dim cmdExcel As New OleDbCommand()
Dim oda As New OleDbDataAdapter()
Dim dtbl As New DataTable()

cmdExcel.Connection = connExcel

'Get the name of First Sheet 
connExcel.Open()

Dim dtExcelSchema As DataTable
dtExcelSchema = connExcel.GetOleDbSchemaTable(OleDbSchemaGuid.Tables, Nothing)
Dim SheetName As String = dtExcelSchema.Rows(0)(&quot;TABLE_NAME&quot;).ToString()

connExcel.Close()

'Read Data from First Sheet 
connExcel.Open()

If ViewState(&quot;idFilter&quot;) &lt;&gt; &quot;&quot; Then
cmdExcel.CommandText = &quot;SELECT * From [&quot; &amp; SheetName &amp; &quot;] WHERE ID LIKE '%&quot; &amp; ViewState(&quot;idFilter&quot;).ToString() &amp; &quot;%'&quot;
ElseIf ViewState(&quot;nameFilter&quot;) &lt;&gt; &quot;&quot; Then
cmdExcel.CommandText = &quot;SELECT * From [&quot; &amp; SheetName &amp; &quot;] WHERE NAME LIKE '%&quot; &amp; ViewState(&quot;nameFilter&quot;).ToString() &amp; &quot;%'&quot;
Else
If ViewState(&quot;Filter&quot;).ToString() = &quot;ALL&quot; Then
cmdExcel.CommandText = &quot;SELECT * From [&quot; &amp; SheetName &amp; &quot;]&quot;
Else
cmdExcel.CommandText = &quot;SELECT * From [&quot; &amp; SheetName &amp; &quot;] WHERE Status='&quot; &amp; ViewState(&quot;Filter&quot;).ToString() &amp; &quot;'&quot;
End If
End If

oda.SelectCommand = cmdExcel
oda.Fill(dtbl)
connExcel.Close()

'Bind Data to GridView 
grdRecords.DataSource = dtbl
grdRecords.DataBind()

End Sub

Protected Sub grdRecords_RowCancelingEdit(sender As Object, e As GridViewCancelEditEventArgs) Handles grdRecords.RowCancelingEdit
grdRecords.EditIndex = -1
Me.BindGrid(FilePath, Extension)
End Sub

Protected Sub grdRecords_RowDataBound(sender As Object, e As GridViewRowEventArgs) Handles grdRecords.RowDataBound

If e.Row.RowType = DataControlRowType.DataRow Then
If (e.Row.RowState And DataControlRowState.Edit) &gt; 0 Then
ddlRowStatus = DirectCast(e.Row.FindControl(&quot;ddlRowStatus&quot;), DropDownList)

If (ddlRowStatus.ID = &quot;ddlRowStatus&quot;) Then

Dim list As New ArrayList

ConStr = String.Format(ConStr, FilePath)

Dim ConnExcel As New OleDbConnection(ConStr)
Dim CmdA As New OleDbCommand()
Dim CmdB As New OleDbCommand()
Dim oda As New OleDbDataAdapter()
Dim dtbl As New DataTable()

CmdA.Connection = ConnExcel
CmdB.Connection = ConnExcel

'Get the name of First Sheet 
ConnExcel.Open()

Dim dtExcelSchema As DataTable
dtExcelSchema = ConnExcel.GetOleDbSchemaTable(OleDbSchemaGuid.Tables, Nothing)
Dim SheetName As String = dtExcelSchema.Rows(0)(&quot;TABLE_NAME&quot;).ToString()

ConnExcel.Close()

'Read Data from First Sheet 
ConnExcel.Open()

CmdA.CommandText = &quot;SELECT DISTINCT Status From [&quot; &amp; SheetName &amp; &quot;]&quot;

Dim reader As OleDbDataReader = CmdA.ExecuteReader()

If reader.HasRows Then
Do While reader.Read()
list.Add(reader(0).ToString())
Loop
End If

reader.Close()

ddlRowStatus.DataSource = list
ddlRowStatus.DataBind()
End If
End If
End If
End Sub

Protected Sub grdRecords_RowEditing(sender As Object, e As GridViewEditEventArgs) Handles grdRecords.RowEditing
grdRecords.EditIndex = e.NewEditIndex
Me.BindGrid(FilePath, Extension)
End Sub

Protected Sub grdRecords_RowUpdating(sender As Object, e As GridViewUpdateEventArgs) Handles grdRecords.RowUpdating

ddlRowStatus = DirectCast(grdRecords.Rows(e.RowIndex).FindControl(&quot;ddlRowStatus&quot;), DropDownList)
Dim lblEmpID As Label = DirectCast(grdRecords.Rows(e.RowIndex).FindControl(&quot;lblEmpID&quot;), Label)

ConStr = String.Format(ConStr, FilePath)

Dim connExcel As New OleDbConnection(ConStr)
Dim cmdExcel As New OleDbCommand()
Dim oda As New OleDbDataAdapter()
Dim dtbl As New DataTable()

cmdExcel.Connection = connExcel

'Get the name of First Sheet 
connExcel.Open()

Dim dtExcelSchema As DataTable
dtExcelSchema = connExcel.GetOleDbSchemaTable(OleDbSchemaGuid.Tables, Nothing)
Dim SheetName As String = dtExcelSchema.Rows(0)(&quot;TABLE_NAME&quot;).ToString()

connExcel.Close()

'Read Data from First Sheet 
connExcel.Open()

cmdExcel.CommandText = &quot;UPDATE [&quot; &amp; SheetName &amp; &quot;] SET Status='&quot; &amp; ddlRowStatus.SelectedValue &amp; &quot;' WHERE ID=&quot; &amp; lblEmpID.Text.ToString() &amp; &quot;&quot;
cmdExcel.ExecuteNonQuery()
connExcel.Close()

grdRecords.EditIndex = -1
Me.BindGrid(FilePath, Extension)

End Sub

End Class</pre>
<p>The post <a href="https://jharaphula.com/gridview-auto-generate-edit-button/">How to update records in a Gridview using Auto Generate Edit Button?</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://jharaphula.com/gridview-auto-generate-edit-button/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			<media:content url="https://jharaphula.com/wp-content/uploads/2016/12/gridview-auto-edit-button.png" medium="image" />
	</item>
		<item>
		<title>How to display Excel File records in an ASP.NET Gridview?</title>
		<link>https://jharaphula.com/excel-records-asp-net-gridview/</link>
					<comments>https://jharaphula.com/excel-records-asp-net-gridview/#respond</comments>
		
		<dc:creator><![CDATA[Biswabhusan Panda]]></dc:creator>
		<pubDate>Wed, 07 Dec 2016 08:55:56 +0000</pubDate>
				<category><![CDATA[Microsoft Technologies]]></category>
		<category><![CDATA[ASP.NET Gridview]]></category>
		<category><![CDATA[ASP.NET Gridview Example]]></category>
		<category><![CDATA[Display Excel File records]]></category>
		<category><![CDATA[MS-Excel like Table]]></category>
		<category><![CDATA[Page.IsPostBack]]></category>
		<category><![CDATA[Records in an ASP.NET Gridview]]></category>
		<guid isPermaLink="false">http://jharaphula.com/?p=6953</guid>

					<description><![CDATA[<img width="300" height="187" src="https://jharaphula.com/wp-content/uploads/2016/12/gridview-excel-records-300x187.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="How to display Excel File records in an ASP.NET Gridview?" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/12/gridview-excel-records-300x187.jpg 300w, https://jharaphula.com/wp-content/uploads/2016/12/gridview-excel-records.jpg 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>Due to the popularity of MS Excel, Still today more than 75% of Organizations prefers to maintain their data in MS-Excel. Whether it&#8217;s the matter...</p>
<p>The post <a href="https://jharaphula.com/excel-records-asp-net-gridview/">How to display Excel File records in an ASP.NET Gridview?</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></description>
										<content:encoded><![CDATA[<img width="300" height="187" src="https://jharaphula.com/wp-content/uploads/2016/12/gridview-excel-records-300x187.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="How to display Excel File records in an ASP.NET Gridview?" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/12/gridview-excel-records-300x187.jpg 300w, https://jharaphula.com/wp-content/uploads/2016/12/gridview-excel-records.jpg 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>Due to the popularity of MS Excel, Still today more than 75% of Organizations prefers to maintain their data in MS-Excel. Whether it&#8217;s the matter of project management or a budget plan, MS-Excel is an awesome tool. I noticed in my organization more then 80% percent records are in Excel. One day my boss come to me with a plan that he need to update &#8220;Utilization_Reports.xlsx&#8221; using User Interface. For him I had taken the ownership to develop this tool. During this development phases I found how to fetch data from an Excel File like a database table using <a href="https://jharaphula.com/sql-queries-with-example/" target="_blank" rel="noopener noreferrer">SQL Queries</a>. This stay interesting for me. Sharing the same for your reference.</p>
<h3>Gridview</h3>
<pre class="brush: xml; title: ; notranslate">&lt;asp:GridView ID=&quot;grdRecords&quot; runat=&quot;server&quot; AutoGenerateColumns=&quot;false&quot; AllowPaging=&quot;true&quot; PageSize=&quot;10&quot; Font-Names=&quot;Arial&quot; Font-Size=&quot;11pt&quot; AlternatingRowStyle-BackColor=&quot;#C2D69B&quot; HeaderStyle-BackColor=&quot;green&quot; HeaderStyle-ForeColor=&quot;#FFFFFF&quot; OnPageIndexChanging=&quot;OnPaging&quot; AutoGenerateEditButton=&quot;true&quot; Width=&quot;100%&quot;&gt;
&lt;Columns&gt;
&lt;asp:TemplateField  HeaderText=&quot;Employee Name&quot; SortExpression=&quot;Name&quot;&gt;
&lt;ItemTemplate&gt;
&lt;asp:Label ID=&quot;lblEmpName&quot; runat=&quot;server&quot; Text='&lt;%# Bind(&quot;Name&quot;)%&gt;'&gt;&lt;/asp:Label&gt;
&lt;/ItemTemplate&gt;
&lt;/asp:TemplateField&gt;
&lt;asp:TemplateField HeaderText=&quot;Employee ID&quot; SortExpression=&quot;ID&quot;&gt;
&lt;ItemTemplate&gt;
&lt;asp:Label ID=&quot;lblEmpID&quot; runat=&quot;server&quot; Text='&lt;%# Bind(&quot;ID&quot;)%&gt;'&gt;&lt;/asp:Label&gt;
&lt;/ItemTemplate&gt;
&lt;/asp:TemplateField&gt;
&lt;asp:TemplateField&gt;
&lt;HeaderTemplate&gt;
Status:
&lt;asp:DropDownList ID=&quot;ddlStatus&quot; runat=&quot;server&quot; OnSelectedIndexChanged=&quot;CountryChanged&quot; AutoPostBack=&quot;true&quot; AppendDataBoundItems=&quot;true&quot;&gt;
&lt;asp:ListItem Text = &quot;ALL&quot; Value = &quot;ALL&quot;&gt;&lt;/asp:ListItem&gt;
&lt;/asp:DropDownList&gt;
&lt;/HeaderTemplate&gt;
&lt;EditItemTemplate&gt;
&lt;asp:DropDownList ID=&quot;ddlRowStatus&quot; runat=&quot;server&quot; AutoPostBack=&quot;true&quot;&gt;
&lt;asp:ListItem&gt;thisis&lt;/asp:ListItem&gt;
&lt;/asp:DropDownList&gt;
&lt;/EditItemTemplate&gt;
&lt;ItemTemplate&gt;
&lt;%# Eval(&quot;Status&quot;) %&gt;
&lt;/ItemTemplate&gt;
&lt;/asp:TemplateField&gt;                    
&lt;/Columns&gt;
&lt;/asp:GridView&gt;</pre>
<p>As we mentioned above here I want to fetch an excel file like a database table. So first let us declare the connection string for MS-Excel. That&#8217;s what I did in below web.config file.</p>
<h3>Web.Config</h3>
<pre class="brush: xml; title: ; notranslate">&lt;appSettings&gt;
&lt;add key=&quot;FolderPath&quot; value=&quot;Files/&quot;/&gt;
&lt;/appSettings&gt;
&lt;connectionStrings&gt;
&lt;!--&lt;add name =&quot;Excel03ConString&quot; connectionString=&quot;Provider=Microsoft.Jet.OLEDB.4.0;Data Source={0}; Extended Properties='Excel 8.0'&quot; /&gt;--&gt;
&lt;add name =&quot;ConnString&quot; connectionString=&quot;Provider=Microsoft.ACE.OLEDB.12.0;Data Source={0}; Extended Properties='Excel 8.0'&quot;/&gt;
&lt;/connectionStrings&gt;</pre>
<p>To bind data to the Gridview in Codebehind I am with the below Subroutine. In BindGrid I am passing FilePath and File Extention as the parameters. These are simple string varibales. Declare as global variables. To fetch data from Excel like a database First I am traking the 0th Sheet of Excel. Then running a SQL Query over the table of my Excel File. Finally using a ASP.NET DataAdapter I am filling data to the gridview.</p>
<h3>BindGrid</h3>
<pre class="brush: vb; title: ; notranslate">Private Sub BindGrid(ByVal FilePath As String, ByVal Extension As String)

ConStr = String.Format(ConStr, FilePath)

Dim connExcel As New OleDbConnection(ConStr)
Dim cmdExcel As New OleDbCommand()
Dim oda As New OleDbDataAdapter()
Dim dtbl As New DataTable()

cmdExcel.Connection = connExcel

'Get the name of First Sheet 
connExcel.Open()

Dim dtExcelSchema As DataTable
dtExcelSchema = connExcel.GetOleDbSchemaTable(OleDbSchemaGuid.Tables, Nothing)
Dim SheetName As String = dtExcelSchema.Rows(0)(&quot;TABLE_NAME&quot;).ToString()

connExcel.Close()

'Read Data from First Sheet 
connExcel.Open()

If ViewState(&quot;Filter&quot;).ToString() = &quot;ALL&quot; Then
cmdExcel.CommandText = &quot;SELECT * From [&quot; &amp;amp; SheetName &amp;amp; &quot;]&quot;
Else
cmdExcel.CommandText = &quot;SELECT * From [&quot; &amp;amp; SheetName &amp;amp; &quot;] WHERE Status='&quot; &amp;amp; ViewState(&quot;Filter&quot;).ToString() &amp;amp; &quot;'&quot;
End If

oda.SelectCommand = cmdExcel
oda.Fill(dtbl)
connExcel.Close()

'Bind Data to GridView 
grdRecords.DataSource = dtbl
grdRecords.DataBind()

End Sub</pre>
<p>The above subroutine is responsible to Fill the Gridview. But to display data in Gridview we need to Call this during page load. That’s what I am doing in below. Inside the not page.ispostback event I am calling the Function with required parameters.</p>
<h3>In Page Load</h3>
<pre class="brush: vb; title: ; notranslate">Dim FilePath as String = &quot;C:/demo.xlsx&quot;
Dim Extension as String = &quot;.xlsx&quot;

If Not Page.IsPostBack Then
ViewState(&quot;Filter&quot;) = &quot;ALL&quot;
BindGrid(FilePath, Extension)
End If</pre>
<p>The post <a href="https://jharaphula.com/excel-records-asp-net-gridview/">How to display Excel File records in an ASP.NET Gridview?</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://jharaphula.com/excel-records-asp-net-gridview/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			<media:content url="https://jharaphula.com/wp-content/uploads/2016/12/gridview-excel-records.jpg" medium="image" />
	</item>
		<item>
		<title>How to add Search Filter in the Column Header of Gridview?</title>
		<link>https://jharaphula.com/search-filter-column-header-gridview/</link>
					<comments>https://jharaphula.com/search-filter-column-header-gridview/#respond</comments>
		
		<dc:creator><![CDATA[Biswabhusan Panda]]></dc:creator>
		<pubDate>Wed, 07 Dec 2016 08:55:26 +0000</pubDate>
				<category><![CDATA[Microsoft Technologies]]></category>
		<category><![CDATA[ASP.NET Gridview Example]]></category>
		<category><![CDATA[Column Header of Gridview]]></category>
		<category><![CDATA[How to add Search Filter]]></category>
		<category><![CDATA[Search Filter in the Column Header]]></category>
		<category><![CDATA[VB.NET]]></category>
		<guid isPermaLink="false">http://jharaphula.com/?p=6892</guid>

					<description><![CDATA[<img width="300" height="216" src="https://jharaphula.com/wp-content/uploads/2016/12/search-filter-column-header-300x216.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="How to add Search Filter in the Column Header of Gridview?" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/12/search-filter-column-header-300x216.jpg 300w, https://jharaphula.com/wp-content/uploads/2016/12/search-filter-column-header.jpg 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>We use filter to Search information&#8217;s easier. Recall a web-page where you have lot of records in a Grid. What your Customer wants is &#8220;They...</p>
<p>The post <a href="https://jharaphula.com/search-filter-column-header-gridview/">How to add Search Filter in the Column Header of Gridview?</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></description>
										<content:encoded><![CDATA[<img width="300" height="216" src="https://jharaphula.com/wp-content/uploads/2016/12/search-filter-column-header-300x216.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="How to add Search Filter in the Column Header of Gridview?" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/12/search-filter-column-header-300x216.jpg 300w, https://jharaphula.com/wp-content/uploads/2016/12/search-filter-column-header.jpg 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>We use filter to Search information&#8217;s easier. Recall a <a href="https://jharaphula.com/bay-area-web-design/" rel="noopener noreferrer" target="_blank">web-page</a> where you have lot of records in a Grid. What your Customer wants is &#8220;They want to provide Search filter in the header row for some columns of the grid&#8221;. You can say like MS-Excel column filter. Here my app is with ASP.NET. To display data I am using a Gridview. Here in Gridview I am with 3 columns Name, ID and Status. Refer to my Customer they wants me to implement a dropdownlist with all the possible status in Status column header. Functionally, On change of dropdownlist event he wants to filter only those records which are having the selected Status.</p>
<p>Look at the below demo app. Here in place of database I am fetching data from a MS-Excel file. Data structure I maintained in Excel file is with 3 columns Name, ID and Status. Similar to a database table here Emp ID acts like the Primary Key. This is unique for each.</p>
<h3>Gridview</h3>
<pre class="brush: xml; title: ; notranslate">&lt;asp:GridView ID=&quot;grdRecords&quot; runat=&quot;server&quot; AutoGenerateColumns=&quot;false&quot; AllowPaging=&quot;true&quot; PageSize=&quot;10&quot; Font-Names=&quot;Arial&quot; Font-Size=&quot;11pt&quot; AlternatingRowStyle-BackColor=&quot;#C2D69B&quot; HeaderStyle-BackColor=&quot;green&quot; HeaderStyle-ForeColor=&quot;#FFFFFF&quot; OnPageIndexChanging=&quot;OnPaging&quot; AutoGenerateEditButton=&quot;true&quot; Width=&quot;100%&quot;&gt;
&lt;Columns&gt;
&lt;asp:TemplateField  HeaderText=&quot;Employee Name&quot; SortExpression=&quot;Name&quot;&gt;
&lt;ItemTemplate&gt;
&lt;asp:Label ID=&quot;lblEmpName&quot; runat=&quot;server&quot; Text='&lt;%# Bind(&quot;Name&quot;)%&gt;'&gt;&lt;/asp:Label&gt;
&lt;/ItemTemplate&gt;
&lt;/asp:TemplateField&gt;
&lt;asp:TemplateField HeaderText=&quot;Employee ID&quot; SortExpression=&quot;ID&quot;&gt;
&lt;ItemTemplate&gt;
&lt;asp:Label ID=&quot;lblEmpID&quot; runat=&quot;server&quot; Text='&lt;%# Bind(&quot;ID&quot;)%&gt;'&gt;&lt;/asp:Label&gt;
&lt;/ItemTemplate&gt;
&lt;/asp:TemplateField&gt;
&lt;asp:TemplateField&gt;
&lt;HeaderTemplate&gt;
Status:
&lt;asp:DropDownList ID=&quot;ddlStatus&quot; runat=&quot;server&quot; OnSelectedIndexChanged=&quot;CountryChanged&quot; AutoPostBack=&quot;true&quot; AppendDataBoundItems=&quot;true&quot;&gt;
&lt;asp:ListItem Text = &quot;ALL&quot; Value = &quot;ALL&quot;&gt;&lt;/asp:ListItem&gt;
&lt;/asp:DropDownList&gt;
&lt;/HeaderTemplate&gt;
&lt;EditItemTemplate&gt;
&lt;asp:DropDownList ID=&quot;ddlRowStatus&quot; runat=&quot;server&quot; AutoPostBack=&quot;true&quot;&gt;
&lt;asp:ListItem&gt;thisis&lt;/asp:ListItem&gt;
&lt;/asp:DropDownList&gt;
&lt;/EditItemTemplate&gt;
&lt;ItemTemplate&gt;
&lt;%# Eval(&quot;Status&quot;) %&gt;
&lt;/ItemTemplate&gt;
&lt;/asp:TemplateField&gt;                    
&lt;/Columns&gt;
&lt;/asp:GridView&gt;</pre>
<p>Like the general, to bind data to the grid I am calling BindGrid() subroutine under page_load. Additionally I am with 1 more sub-routine BindCountryList() which responsible to display all possible Status from Excel File. To reset custom search in 0th index of dropdownlist I added “ALL”. By changing dropdownlist selected value to “ALL”, it is updating a ViewState variable. Which conditionally filtering using a SQL Query in BindGrid() subroutine.</p>
<h3>VB.NET Code Behind</h3>
<pre class="brush: vb; title: ; notranslate">Imports System.IO
Imports System.Data.OleDb
Imports System.Data

Partial Class _Default
Inherits System.Web.UI.Page

Dim FilePath As String = &quot;C:\Users\biswabhusan_panda\Documents\Visual Studio 2013\WebSites\ExcelApp\Files\temp.xlsx&quot;
Dim Extension As String = &quot;.xlsx&quot;

Dim ConStr As String = ConfigurationManager.ConnectionStrings(&quot;ConnString&quot;).ConnectionString()

Protected Sub Page_Load(sender As Object, e As EventArgs) Handles Me.Load
If Not Page.IsPostBack Then
ViewState(&quot;Filter&quot;) = &quot;ALL&quot;
BindGrid(FilePath, Extension)
End If
End Sub

Protected Sub OnPaging(sender As Object, e As GridViewPageEventArgs)
grdRecords.PageIndex = e.NewPageIndex
Me.BindGrid(FilePath, Extension)
End Sub

Protected Sub CountryChanged(ByVal sender As Object, ByVal e As EventArgs)
Dim ddlStatus As DropDownList = DirectCast(sender, DropDownList)
ViewState(&quot;Filter&quot;) = ddlStatus.SelectedValue
Me.BindGrid(FilePath, Extension)
End Sub

Private Sub BindGrid(ByVal FilePath As String, ByVal Extension As String)

ConStr = String.Format(ConStr, FilePath)

Dim connExcel As New OleDbConnection(ConStr)
Dim cmdExcel As New OleDbCommand()
Dim oda As New OleDbDataAdapter()
Dim dtbl As New DataTable()

cmdExcel.Connection = connExcel

'Get the name of First Sheet 
connExcel.Open()

Dim dtExcelSchema As DataTable
dtExcelSchema = connExcel.GetOleDbSchemaTable(OleDbSchemaGuid.Tables, Nothing)
Dim SheetName As String = dtExcelSchema.Rows(0)(&quot;TABLE_NAME&quot;).ToString()

connExcel.Close()

'Read Data from First Sheet 
connExcel.Open()

If ViewState(&quot;Filter&quot;).ToString() = &quot;ALL&quot; Then
cmdExcel.CommandText = &quot;SELECT * From [&quot; &amp;amp; SheetName &amp;amp; &quot;]&quot;
Else
cmdExcel.CommandText = &quot;SELECT * From [&quot; &amp;amp; SheetName &amp;amp; &quot;] WHERE Status='&quot; &amp;amp; ViewState(&quot;Filter&quot;).ToString() &amp;amp; &quot;'&quot;
End If

oda.SelectCommand = cmdExcel
oda.Fill(dtbl)
connExcel.Close()

'Bind Data to GridView 
grdRecords.DataSource = dtbl
grdRecords.DataBind()

Dim ddlStatus As DropDownList = DirectCast(grdRecords.HeaderRow _
.FindControl(&quot;ddlStatus&quot;), DropDownList)
Me.BindCountryList(ddlStatus, FilePath, Extension)

End Sub

Private Sub BindCountryList(ByVal ddlStatus As DropDownList, ByVal FilePath As String, ByVal Extension As String)

ConStr = String.Format(ConStr, FilePath)

Dim ConnExcel As New OleDbConnection(ConStr)
Dim CmdA As New OleDbCommand()
Dim oda As New OleDbDataAdapter()
Dim dtbl As New DataTable()

CmdA.Connection = ConnExcel

'Get the name of First Sheet 
ConnExcel.Open()

Dim dtExcelSchema As DataTable
dtExcelSchema = ConnExcel.GetOleDbSchemaTable(OleDbSchemaGuid.Tables, Nothing)
Dim SheetName As String = dtExcelSchema.Rows(0)(&quot;TABLE_NAME&quot;).ToString()

CmdA.CommandText = &quot;SELECT DISTINCT Status From [&quot; &amp;amp; SheetName &amp;amp; &quot;]&quot;

ddlStatus.DataSource = CmdA.ExecuteReader()
ddlStatus.DataTextField = &quot;Status&quot;
ddlStatus.DataValueField = &quot;Status&quot;
ddlStatus.DataBind()
ConnExcel.Close()

ddlStatus.Items.FindByValue(ViewState(&quot;Filter&quot;).ToString()) _
.Selected = True
End Sub
End Class</pre>
<p>The post <a href="https://jharaphula.com/search-filter-column-header-gridview/">How to add Search Filter in the Column Header of Gridview?</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://jharaphula.com/search-filter-column-header-gridview/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			<media:content url="https://jharaphula.com/wp-content/uploads/2016/12/search-filter-column-header.jpg" medium="image" />
	</item>
		<item>
		<title>Jquery AJAX Example for Load(), Get() and Post() methods</title>
		<link>https://jharaphula.com/jquery-ajax-example/</link>
					<comments>https://jharaphula.com/jquery-ajax-example/#respond</comments>
		
		<dc:creator><![CDATA[Biswabhusan Panda]]></dc:creator>
		<pubDate>Sun, 20 Nov 2016 15:33:58 +0000</pubDate>
				<category><![CDATA[Learn JQuery with Examples]]></category>
		<category><![CDATA[Ajax Example]]></category>
		<category><![CDATA[Function in JQuery]]></category>
		<category><![CDATA[How to implement AJAX?]]></category>
		<category><![CDATA[Jquery Ajax]]></category>
		<category><![CDATA[Jquery AJAX Example]]></category>
		<guid isPermaLink="false">http://jharaphula.com/?p=6688</guid>

					<description><![CDATA[<img width="300" height="188" src="https://jharaphula.com/wp-content/uploads/2016/11/jquery-ajax-example-300x188.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="Jquery AJAX Example for Load(), Get() and Post() methods" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/11/jquery-ajax-example-300x188.jpg 300w, https://jharaphula.com/wp-content/uploads/2016/11/jquery-ajax-example.jpg 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>AJAX stands for &#8220;Asynchronous JavaScript and XML&#8221;. AJAX technology helps for partial loading. Which improve the performance of a Web page. Example of few AJAX...</p>
<p>The post <a href="https://jharaphula.com/jquery-ajax-example/">Jquery AJAX Example for Load(), Get() and Post() methods</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></description>
										<content:encoded><![CDATA[<img width="300" height="188" src="https://jharaphula.com/wp-content/uploads/2016/11/jquery-ajax-example-300x188.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="Jquery AJAX Example for Load(), Get() and Post() methods" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/11/jquery-ajax-example-300x188.jpg 300w, https://jharaphula.com/wp-content/uploads/2016/11/jquery-ajax-example.jpg 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>AJAX stands for &#8220;Asynchronous JavaScript and XML&#8221;. AJAX technology helps for partial loading. Which <a href="https://jharaphula.com/best-practices-website-speed-performance/" target="_blank" rel="noopener noreferrer">improve the performance of a Web page</a>. Example of few AJAX based web applications are YouTube, Gmail, Google Maps &amp; Facebook tabs. If you are looking to implement AJAX using Jquery then you required to know Jquery inbuilt AJAX methods. Using these methods you can request HTML, JSON, XML &amp; TEXT based Files data from a remote server. In below let us discuss more about the most frequently used jQuery AJAX example using Load(), Get() &amp; Post() methods.</p>
<h2>What is jQuery AJAX?</h2>
<p>jQuery AJAX is a set of methods provided by the jQuery library to perform asynchronous HTTP (Ajax) requests. It abstracts the complexities of raw JavaScript AJAX calls, providing a simpler and more efficient way to interact with web servers. By leveraging jQuery AJAX, developers can fetch, send, and manipulate data without requiring a full page reload, leading to a smoother user experience.</p>
<h2>Key Features of jQuery AJAX</h2>
<p>1. Simplified Syntax – jQuery&#8217;s AJAX methods reduce the amount of code needed compared to vanilla JavaScript. </p>
<p>2. Cross-Browser Compatibility – Handles browser inconsistencies, ensuring consistent behavior across different platforms. </p>
<p>3. Support for Multiple Data Formats – Works with JSON, XML, HTML, and plain text. </p>
<p>4. Event Handling – Provides success, error, and completion callbacks for better control over requests. </p>
<p>5. Asynchronous and Synchronous Requests – Allows both async (default) and sync operations.</p>
<h3>load() Method</h3>
<p>Jquery AJAX Load() method is simple and powerful. It is easy to implement but using this method you can do much complex jobs easier. We use load method to fetch data from server and can bind those data to <a href="https://jharaphula.com/list-of-html5-new-tags/" rel="noopener noreferrer" target="_blank">HTML elements</a>. Syntax for load method is as below.</p>
<p><em>Syntax</em>: $(selector).load(URL,data,callback);</p>
<p>Jquery AJAX load method accepts 3 parameters URL, data &amp; callback. URL is nothing but the physical file path of the file you want to load. Rest 2 parameters are Optional. Data parameter comes with Key &amp; Value pair. It passes through the request as querystring. Callback parameter is the name of a function which you want to execute after the load() method is completed.</p>
<p><strong>Example</strong>:</p>
<pre class="brush: xml; title: ; notranslate">$(&quot;#div&quot;).load(&quot;employee_details.txt&quot;);</pre>
<p><strong>employee_details.txt</strong></p>
<pre class="brush: xml; title: ; notranslate">&lt;h2&gt;AJAX using Jquery&lt;/h2&gt;
&lt;p id=&quot;paragraph&quot;&gt;This is sample text in a paragraph.&lt;/p&gt;</pre>
<h3>$.get() Method</h3>
<p>As you know in client server architecture we use Get method to fetch data from the server. In Jquery $.get() method we use with HTTP GET request. Syntax for Jquery Get method is as below.</p>
<p><em>Syntax</em>: $.get(URL,callback);</p>
<p>Jquery $.get() method accepts 2 parameters URL &amp; Callback. URL is the file path from which you want to read the data. Callback is the parameter of a function name which you want to execute after the sucessful Call.</p>
<p><strong>Example</strong>:</p>
<pre class="brush: jscript; title: ; notranslate">$(&quot;button&quot;).click(function(){
$.get(&quot;employee_details.asp&quot;, function(data, status) {
alert(&quot;Records: &quot; + data + &quot;\nStatus: &quot; + status);
});
});</pre>
<p><strong>employee_details.asp</strong></p>
<pre class="brush: php; title: ; notranslate">&lt;%
response.write(&quot;This is some text from an external ASP file.&quot;)
%&gt;</pre>
<h3>$.post() Method</h3>
<p>Like Get method Post is one more useful method of Client Server architecture. Using Post method we send data to Server from Client. Syntax for Post method is as below.</p>
<p><em>Syntax</em>: $.post(URL,data,callback);</p>
<p>Jquery $.post() method accepts 3 parameters URL, Data &amp; Callback. URL is the server file to which file you want to post data from Client end. Rest 2 parameters are optional. Using data parameter you can send any data in key value pair while sending request to the server. The optional callback parameter is the name of a function to be executed if the request succeeds.</p>
<p><strong>Example</strong>:</p>
<pre class="brush: jscript; title: ; notranslate">$(&quot;button&quot;).click(function(){
$.post(&quot;sample_post.asp&quot;,
{
empname: &quot;Raghav&quot;,
city: &quot;Washigton DC&quot;
},
function(data, status){
alert(&quot;Records: &quot; + data + &quot;\nStatus: &quot; + status);
});
});</pre>
<p><strong>sample_post.asp</strong></p>
<pre class="brush: vb; title: ; notranslate">&lt;%
dim f_name, city
f_name = Request.Form(&quot;empname &quot;)
city = Request.Form(&quot;city&quot;)
Response.Write(&quot;Dear &quot; &amp; f_name &amp; &quot;. &quot;)
Response.Write(&quot;Hope you live well in &quot; &amp; city &amp; &quot;.&quot;)
%&gt;</pre>
<h2>Common Use Cases of jQuery AJAX</h2>
<p>1. Form Submission Without Page Reload &#8211; Submit form data asynchronously and display a success/error message.</p>
<p>2. Dynamic Content Loading &#8211; Load partial HTML or data from a server on demand.</p>
<p>3. Autocomplete Suggestions &#8211; Fetch suggestions from a server as the user types.</p>
<p>4. Real-Time Data Updates &#8211; Poll the server periodically for new data (e.g., notifications).</p>
<p>5. API Integration &#8211; Communicate with RESTful APIs to fetch or modify data.</p>
<h2>Best Practices for jQuery AJAX</h2>
<p>1. Use HTTPS for Security – Always prefer secure connections to prevent data breaches. </p>
<p>2. Validate Input and Output – Sanitize data to avoid security vulnerabilities. </p>
<p>3. Handle Errors Gracefully – Provide user feedback if a request fails. </p>
<p>4. Optimize Performance – Minimize unnecessary requests and cache data when possible. </p>
<p>5. Use Asynchronous Mode – Avoid synchronous requests as they block the UI.</p>
<h2>Limitations of jQuery AJAX</h2>
<p>&#8211; Dependence on jQuery – Requires the jQuery library, increasing page load time.<br />
&#8211; Not a Replacement for Modern APIs – Fetch API and Axios offer more modern alternatives.<br />
&#8211; Limited to HTTP/HTTPS – Cannot handle WebSocket or other protocols.</p>
<h2>Conclusion</h2>
<p>jQuery AJAX simplifies asynchronous web communication, making it an essential tool for developers building dynamic web applications. By understanding its methods, handling responses effectively, and following best practices, developers can create seamless, interactive experiences.</p>
<p>The post <a href="https://jharaphula.com/jquery-ajax-example/">Jquery AJAX Example for Load(), Get() and Post() methods</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://jharaphula.com/jquery-ajax-example/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			<media:content url="https://jharaphula.com/wp-content/uploads/2016/11/jquery-ajax-example.jpg" medium="image" />
	</item>
		<item>
		<title>HTML5 Canvas Examples to draw Circle, Rectangle, Line, Text &#038; Image</title>
		<link>https://jharaphula.com/html5-canvas-examples/</link>
					<comments>https://jharaphula.com/html5-canvas-examples/#respond</comments>
		
		<dc:creator><![CDATA[Biswabhusan Panda]]></dc:creator>
		<pubDate>Sun, 13 Nov 2016 13:31:17 +0000</pubDate>
				<category><![CDATA[Learn HTML5 with Examples]]></category>
		<category><![CDATA[Examples to draw Circle]]></category>
		<category><![CDATA[HTML elements]]></category>
		<category><![CDATA[HTML5 Canvas]]></category>
		<category><![CDATA[HTML5 Canvas Examples]]></category>
		<category><![CDATA[List of HTML5 new Tags]]></category>
		<guid isPermaLink="false">http://jharaphula.com/?p=6737</guid>

					<description><![CDATA[<img width="300" height="182" src="https://jharaphula.com/wp-content/uploads/2016/11/html5-canvas-300x182.png" class="webfeedsFeaturedVisual wp-post-image" alt="HTML5 Canvas Examples to draw Circle, Rectangle, Line, Text &amp; Image" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/11/html5-canvas-300x182.png 300w, https://jharaphula.com/wp-content/uploads/2016/11/html5-canvas.png 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>You must remember in the early age of HTML to draw graphics in a Web page generally we use GIF images or Flash animations. Here...</p>
<p>The post <a href="https://jharaphula.com/html5-canvas-examples/">HTML5 Canvas Examples to draw Circle, Rectangle, Line, Text &#038; Image</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></description>
										<content:encoded><![CDATA[<img width="300" height="182" src="https://jharaphula.com/wp-content/uploads/2016/11/html5-canvas-300x182.png" class="webfeedsFeaturedVisual wp-post-image" alt="HTML5 Canvas Examples to draw Circle, Rectangle, Line, Text &amp; Image" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/11/html5-canvas-300x182.png 300w, https://jharaphula.com/wp-content/uploads/2016/11/html5-canvas.png 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>You must remember in the early age of HTML to draw graphics in a Web page generally we use GIF images or Flash animations. Here the major drawback is image based animations are not at all <a href="https://jharaphula.com/category/free-seo-training-tools/" rel="noopener noreferrer" target="_blank">SEO</a> friendly. Search engine are unknown about the anatomy of the animation. Looking into this the 5th generation of HTML introduced Canvas. Canvas is a rectangular area in a HTML page. Which we can define using two dimensions X &amp; Y. By default a Canvas is not having any border or content. To draw graphics using a Canvas we required the help of Scripting language. By own Canvas is acts like a Container. Look at the below HTML5 Canvas Examples to know how draw shapes over a Canvas.</p>
<h2>Canvas vs. SVG: Key Differences</h2>
<p>While both Canvas and SVG enable graphics rendering in the browser, they differ in several ways:</p>
<p><strong>Rendering Method</strong>: &#8211; Canvas is raster-based, meaning it draws pixel-by-pixel. &#8211; SVG is vector-based, using mathematical descriptions of shapes.</p>
<p><strong>DOM Interaction</strong>: &#8211; Canvas does not retain individual objects; once drawn, shapes cannot be modified unless redrawn. &#8211; SVG elements are part of the DOM, allowing for direct manipulation via CSS or JavaScript.</p>
<p><strong>Performance</strong>: &#8211; Canvas performs better for large numbers of objects and complex animations. &#8211; SVG is better suited for static or interactive vector graphics that require scalability.</p>
<p>Using a Canvas we can draw graphics like lines, boxes, circles, rectangles, squares, polygons, tingles, texts or even can add images. All the latest browsers (Google Chrome 4.0 or above, IE 9.0 or above, Mozilla Firefox 2.0 or above, Safari 3.1 or above and Opera 9.0 or above) supports Canvas. Canvas is rich for high end graphics. Starting from an animation to develop a game Canvas is awesome. While SVG gives better results for Text rendering Canvas gives better results for Graphics.</p>
<p>The following Syntax we use to define a HTML5 Canvas.</p>
<pre class="brush: xml; title: ; notranslate">&lt;canvas id=&quot;mycanvas&quot; width=&quot;300&quot; height=&quot;250&quot;&gt;
Your browser does not support HTML5 Canvas.
&lt;/canvas&gt;</pre>
<p>Keep remember while defining a Canvas always assign an ID to your Canvas. ID helps to detect the Canvas during client Scripting. You can dynamically provide width and height to a Canvas but it is advisable to define width and height during you declare a Canvas. Going forward if required you can update this settings.</p>
<p>With the above introduction let us watch some real-time examples about how to draw various shapes on over a Canvas using Scripting language. Here in the below demo I am using the popular client scripting language JavaScript. In a HTML5 Canvas you are free to any scripting language.</p>
<h3>Example to draw a Line over Canvas?</h3>
<p>Look at the below Code. Here I am drawing a straight line using JavaScript over a Canvas. The logic I implemented here is so simple. Using getElementById I am detecting the Canvas control from my HTML page. Then defining dimensions using getContext() method. Then to define coordinates for the line using moveTo I am setting the line pointer to 0, 0 coordinate. Then for the end points using lineTo() method. Keep remember the lineTo() method is useful to draw lines. At last I am applying stroke to the line using stroke() method.</p>
<pre class="brush: jscript; title: ; notranslate">var d = document.getElementById(&quot;demoCanvas&quot;);
var dln = d.getContext(&quot;2d&quot;);
dln.moveTo(0,0);
dln.lineTo(200,100);
dln.stroke();</pre>
<h3>Example to draw a Rectangle over Canvas?</h3>
<p>As we discussed above we can draw graphics on canvas using client scripts (JavaScript or Jquery). In the below example I used JavaScript to draw a rectangle. Here &#8220;mycanvas&#8221; is the id of HTML5 Canvas control. Using document object model (DOM) getElementById() method I am fetching the canvas control to my JavaScript code. Then using getContext(&#8216;2d&#8217;) I am instructing my Canvas to draw 2D Graphs. To create a rectangle I used fillRect() method. Which <strong>accepts 4 parameters as x1, y1 &amp; x2, y2 as the rectangle areas</strong>. To fill color to my Rectangle I am using fillStyle() method.</p>
<pre class="brush: jscript; title: ; notranslate">var mycanvas = document.getElementById('mycanvas');
var context = mycanvas.getContext('2d');
context.fillStyle = 'blue';
context.fillRect(20, 20, 80, 80);</pre>
<h3>Example to draw a Circle over Canvas?</h3>
<p>Similarly like a line to draw a Circle I am using arc() method. Arc() method accepts 6 parameters as x, y, radius, Starting Angle, Ending Angle &amp; Counter Clockwise or Anti-Clockwise. Look at the example below how I did draw a Circle.</p>
<pre class="brush: jscript; title: ; notranslate">var d = document.getElementById(&quot;demoCanvas&quot;);
var dln = d.getContext(&quot;2d&quot;);
dln.beginPath();
dln.arc(95,50,40,0,2*Math.PI);
dln.stroke();</pre>
<h3>Example to draw a Text over Canvas?</h3>
<p>To draw a text over Canvas generally we use FillText() method. FillText() accepts 3 parameters. First is the String which one you want to Draw as graphics. 2nd and 3rd parameters are the starting position of the text using X and Y coordinates. Additionally to define font size or font family we use font() method.<br />
var d = document.getElementById(&#8220;demoCanvas&#8221;);</p>
<pre class="brush: jscript; title: ; notranslate">var dln = d.getContext(&quot;2d&quot;);
dln.font = &quot;30px Arial&quot;;
dln.fillText(&quot;Hello World&quot;,10,50);</pre>
<h3>Example to draw Image over Canvas?</h3>
<p>Keep remember you can’t directly insert an image to the Canvas. To display an image over a Canvas you have to Draw that image. To draw an image over a Canvas drawImage() method works. Like fillText() DrawImage() also accepts 3 parameters. First parameter is the image File path. 2nd &amp; 3rd parameters are the starting point defined using X &amp; Y Coordinates.</p>
<pre class="brush: jscript; title: ; notranslate">var d = document.getElementById(&quot;demoCanvas&quot;);
var dln = d.getContext(&quot;2d&quot;);
var img = document.getElementById(&quot;imgTag”);
dln.drawImage(img,10,10);</pre>
<h2>Conclusion</h2>
<p>HTML5 Canvas is a versatile tool for creating dynamic graphics and animations on the web. Unlike SVG, it operates at the pixel level, making it ideal for performance-intensive applications. By mastering basic drawing techniques and animation principles, developers can build engaging visual experiences for users. Whether for games, data visualization, or interactive art, Canvas provides the flexibility needed to bring creative ideas to life.</p>
<p>The post <a href="https://jharaphula.com/html5-canvas-examples/">HTML5 Canvas Examples to draw Circle, Rectangle, Line, Text &#038; Image</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://jharaphula.com/html5-canvas-examples/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			<media:content url="https://jharaphula.com/wp-content/uploads/2016/11/html5-canvas.png" medium="image" />
	</item>
		<item>
		<title>OOPs Interview Questions with Answers for Freshers</title>
		<link>https://jharaphula.com/oops-interview-questions-answers/</link>
					<comments>https://jharaphula.com/oops-interview-questions-answers/#respond</comments>
		
		<dc:creator><![CDATA[Biswabhusan Panda]]></dc:creator>
		<pubDate>Sun, 13 Nov 2016 07:19:14 +0000</pubDate>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Early and Late Binding]]></category>
		<category><![CDATA[Friend Functions]]></category>
		<category><![CDATA[OOPs Interview Questions]]></category>
		<category><![CDATA[OOPs with Example]]></category>
		<category><![CDATA[Virtual Function]]></category>
		<category><![CDATA[What is a Destructor?]]></category>
		<guid isPermaLink="false">http://jharaphula.com/?p=6778</guid>

					<description><![CDATA[<img width="300" height="200" src="https://jharaphula.com/wp-content/uploads/2016/11/oops-interview-300x200.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="OOPs Interview Questions with Answers for Freshers" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/11/oops-interview-300x200.jpg 300w, https://jharaphula.com/wp-content/uploads/2016/11/oops-interview-182x120.jpg 182w, https://jharaphula.com/wp-content/uploads/2016/11/oops-interview-106x70.jpg 106w, https://jharaphula.com/wp-content/uploads/2016/11/oops-interview.jpg 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>No matter whether you are a JAVA or C# or C++ professional. Object Oriented Programming (OOPs) Technique is common to all high level languages. I...</p>
<p>The post <a href="https://jharaphula.com/oops-interview-questions-answers/">OOPs Interview Questions with Answers for Freshers</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></description>
										<content:encoded><![CDATA[<img width="300" height="200" src="https://jharaphula.com/wp-content/uploads/2016/11/oops-interview-300x200.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="OOPs Interview Questions with Answers for Freshers" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/11/oops-interview-300x200.jpg 300w, https://jharaphula.com/wp-content/uploads/2016/11/oops-interview-182x120.jpg 182w, https://jharaphula.com/wp-content/uploads/2016/11/oops-interview-106x70.jpg 106w, https://jharaphula.com/wp-content/uploads/2016/11/oops-interview.jpg 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>No matter whether you are a JAVA or C# or C++ professional. Object Oriented Programming (OOPs) Technique is common to all high level languages. I experienced during a Technical interview nearly all experienced interviewers prefer to ask OOPs related interview questions. Compare to an experienced professional a fresher can have more chance to face OOPs <a href="https://jharaphula.com/category/career-job-seekers/top-interview-questions/" rel="noopener noreferrer" target="_blank">interview questions</a> during his/her Career journey. Object Oriented Programming technique is not at all difficult to learn but it is little bit confusing. That&#8217;s why to judge a fresher interviewers use OOPs interview questions. To make your Career journey easier here in this session we are sharing the most frequently asked OOPs interview questions with answers. Read thoroughly the below interview questions before visit the interviewer.</p>
<h3>What is an Object?</h3>
<p>Objects are the physical and conceptual things that found in the universe. Hardware, Software, documents, human being and even concepts are all examples of objects.</p>
<h3>What is a Class?</h3>
<p>The object with the same data structure (attributes) and behaviors (operations) are grouped into a single entity is called class.</p>
<h3>What is Polymorphism?</h3>
<p>Polymorphism refer to the ability of an object to have numerous methods with the same name. This is also referred to as function overloading. An object can have multiple functions with the same name but different parameter lists. The appropriate function to execute is chosen depending on which parameter list is provided in the function call.</p>
<h3>What do you mean by inheritance in OOPs?</h3>
<p>Inheritance is a process by which one object can acquire the characteristics from one or more other objects. Here the best example is the generation. Watch your-self you must inherited many properties from your parents and grand parents.</p>
<h3>What is a Constructor?</h3>
<p>A Constructor function is a special function that is a member of a class and has the same name as that of class. A Constructor is the first member function executed automatically when the object is created. Constructor should be declared in the public section of the class. Constructor should not have any return values. They have no return type specified. Constructor can have arguments. So they can be overloaded.</p>
<h3>What is Copy Constructor?</h3>
<p>The initialization of one class object with another object of its class is referred to as default member-wise initialization. Conceptually, the copying of one class object with another is accomplished by copying each of the non-static class data members. The class designer can override the default behavior by providing a special class copy constructor. It is invoked whenever one class object is initialized with another object of its class. Defining a copy constructor help to prevent problems that might occur when one object is used to initialize another.</p>
<h3>What is a Destructor?</h3>
<p>When a object is no longer needed, it can be destroyed. A destructor is a special user-defined member function that is invoked automatically whenever an object of its class goes out of scope or whenever the delete expression is applied to a pointer to a class object. This function complements the operation performed by any of the constructors. The destructor is given the name of the class prefixed with a tilde (~). It can neither return a value nor can it take any parameters. Because it can&#8217;t specify any parameters, it can&#8217;t be overloaded.</p>
<h3>What is the difference between Early &amp; Late Binding?</h3>
<p>The function overloading is a polymorphic behavior where there is one name for the function, but multiple forms. The multiple forms arise out of varying signatures and argument types received by the functions. When one overloaded function is called, the compiler matches the arguments passed with the signature of various functions with same name. Once the match is found, the appropriate function is linked at the compiler time itself. This is called early binding or static binding.</p>
<p>When the function in the same name and signature are defined in both base class as well as derived class, the concept of the virtual function will be implemented. In these type of cases, the functions in base class and derived class are invoked with the help of the base class pointer. Hence the compiler delays the linking of the function to refer to till run-time. Although the function is called through the base class pointer, the actual function invoked will be determined at run-time. Since the function to be executed is determined only at run-time is called late binding or dynamic binding.</p>
<h3>Why you required Virtual Function?</h3>
<p>In C++, a function call can be bound to the actual function either at compile time or at run-time. Resolving a function call at compile time is known as compile-time or early or static binding, whereas resolving a function call at run-time in known as run-time or late or dynamic binding. Run-time polymorphism allows postponing the decision of selecting the suitable member functions until run-time. In C++, this is achieved by using Virtual functions.</p>
<h3>What do you mean by Abstract Class?</h3>
<p>A class containing pure Virtual functions can&#8217;t be used to define any objects of its own. Such classes are called abstract classes. Abstract classes can be used as a framework upon which new classes can be built to provide a new functionality.</p>
<h3>What is Friend Functions?</h3>
<p>There are 3 levels of internal protection for the different members of a class: public, protected and private. The protected and private members can&#8217;t be accessed from outside the same class at which they are declared. It is possible to grant a non-member function access to the private members of a class by using a keyword friend. A friend function has access to all private and protected members of the class for which it is a friend. Special characters of a friend functions are it is not a member function of the class. It is like a normal external functions. It is not in the scope of the class to which it has been declared. It can be declared either public or private section of the class.</p>
<p><strong>Book</strong> &#8211; <strong>Object Oriented Programing using C++</strong><br />
<strong>Author</strong> &#8211; <strong>Alok Kumar Jagadev, Amiya Kumar Rath, Satchidananda Dehuri</strong></p>
<p>The post <a href="https://jharaphula.com/oops-interview-questions-answers/">OOPs Interview Questions with Answers for Freshers</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://jharaphula.com/oops-interview-questions-answers/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			<media:content url="https://jharaphula.com/wp-content/uploads/2016/11/oops-interview.jpg" medium="image" />
	</item>
		<item>
		<title>Object Oriented Programming (OOPs) Concepts with Examples</title>
		<link>https://jharaphula.com/object-oriented-programming-concepts-with-examples/</link>
					<comments>https://jharaphula.com/object-oriented-programming-concepts-with-examples/#respond</comments>
		
		<dc:creator><![CDATA[Biswabhusan Panda]]></dc:creator>
		<pubDate>Thu, 10 Nov 2016 15:51:45 +0000</pubDate>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Data Abstraction]]></category>
		<category><![CDATA[Inheritance in OOPs]]></category>
		<category><![CDATA[Object Oriented Programming (OPPs)]]></category>
		<category><![CDATA[OOPs Concepts with Examples]]></category>
		<category><![CDATA[Polymorphism]]></category>
		<guid isPermaLink="false">http://jharaphula.com/?p=6757</guid>

					<description><![CDATA[<img width="300" height="182" src="https://jharaphula.com/wp-content/uploads/2016/11/oops-concepts-300x182.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="Object Oriented Programming (OOPs) Concepts with Examples" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/11/oops-concepts-300x182.jpg 300w, https://jharaphula.com/wp-content/uploads/2016/11/oops-concepts.jpg 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>In Object Oriented Programming (OOP), more emphasis is given to the data rather than functions. In OOPs, Data is encapsulated with the associated functions that...</p>
<p>The post <a href="https://jharaphula.com/object-oriented-programming-concepts-with-examples/">Object Oriented Programming (OOPs) Concepts with Examples</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></description>
										<content:encoded><![CDATA[<img width="300" height="182" src="https://jharaphula.com/wp-content/uploads/2016/11/oops-concepts-300x182.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="Object Oriented Programming (OOPs) Concepts with Examples" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/11/oops-concepts-300x182.jpg 300w, https://jharaphula.com/wp-content/uploads/2016/11/oops-concepts.jpg 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>In Object Oriented Programming (OOP), more emphasis is given to the data rather than functions. In OOPs, Data is encapsulated with the associated functions that operate on it. That gives rise to a concept called Data Encapsulation. In OOPs, the real-life problem can be decomposed into a number of entities called Objects and then data and functions built around these objects.</p>
<h3>Features of Object Oriented Programming</h3>
<p><strong>1</strong>. Emphasis on data rather than algorithm.</p>
<p><strong>2</strong>. Programs are divided into objects.</p>
<p><strong>3</strong>. Data abstraction introduced.</p>
<p><strong>4</strong>. Data and associated functions are tied together into a single unit.</p>
<p><strong>5</strong>. Data is hidden and is not accessible to the external functions.</p>
<p><strong>6</strong>. Object communication takes place using functions.</p>
<p><strong>7</strong>. Further data and functions can be added without disturbing the existing code.</p>
<h3>What is an Object?</h3>
<p>Objects are the physical and conceptual things that found in the universe. Hardware, Software, documents, human beings and even concepts are all examples of objects. Every object will have data structures called attributes and behavior called operation. Each object will have its own identity through its attributes and operations are same; the objects will never become equal. For instance, in case of student object, two students have the same attributes like name, address, sex and marks but they are not equal. Objects are the basic run-time entities in an object-oriented system.</p>
<h3>What is the definition of a Class?</h3>
<p>The objects with the same data structure (attributes) and behavior (operations) are grouped into a single entity called Class. All those objects processing similar properties are grouped into the same unit. Example of a class is as below.</p>
<pre class="brush: cpp; title: ; notranslate">Class Students {
private:
int rollNo;
char name[25];
char address[35];
char sex;
float marks;

public:
void getData();
void putData();
};</pre>
<p>Each class describes a possible infinite set of individual objects; each object is said to be an instance of its class and each instance of the class has its own value for each attribute but shares the attribute name and operations with other instances of the class. The following points on classes can be noted.</p>
<p><strong>1</strong>. A class is a pattern, template or blueprint for a category of structurally identical items.</p>
<p><strong>2</strong>. A class is an abstraction of the real-world entities with similar properties.</p>
<p><strong>3</strong>. A class is a theme that consists of both a pattern and a mechanism for creating items based on that pattern.</p>
<p><strong>4</strong>. The class is an implementation of abstract data type.</p>
<h3>Data Encapsulation</h3>
<p>Data Encapsulation is the mechanism whereby the implementation details of a class are kept hidden from the user. It is sometimes referred to as data hiding. The user can only perform a restricted set of operations on the hidden members of the class by executing special functions. The advantages of using data encapsulation comes when the implementation of the class changes but the interface remains the same. The concept of data encapsulation is supported in C++ through the use of public, protected and private access modifiers.</p>
<pre class="brush: cpp; title: ; notranslate">#include &lt;iostream&gt;
using namespace std;

class Adder{
public:
// constructor for the class
Adder(int i = 0) {
results = i;
}
		
// interface to outside world
void addNumber(int num) {
results += num;
}
		
// interface to outside world
int getResults() {
return results;
};
		
private:
// using private access modifier hiding data from outside world
int results;
};

int main( ) {
Adder mul;
   
mul.addNumber(10);
mul.addNumber(20);

cout &lt;&lt; &quot;Results &quot; &lt;&lt; mul.getResults() &lt;&lt; endl;
return 0;
}</pre>
<h3>Inheritance</h3>
<p>Inheritance is a process, by which one object can acquire the characteristics from one or more other objects. It allows the declaration and implementation of one class to be based on one or more existing classes. Some object-oriented systems permit only single inheritance &#8211; a situation in which the characteristics of an object may be acquired from a single object. Many object-oriented systems allow multiple inheritance &#8211; a situation in which the characteristics of an object may be acquired from two or more corresponding objects. Inheritance is the most promising concepts of OOP, which help realize the goal of constructing software systems from reusable parts, rather than hand coding every system from scratch. Inheritance coupled with polymorphism and dynamic binding, minimizes the amount of existing code to be modified while enhancing a system. Read more about <a href="https://jharaphula.com/types-of-inheritance-oops-example/" target="_blank" rel="noopener noreferrer">types of inheritance</a>.</p>
<pre class="brush: cpp; title: ; notranslate">#include &lt;iostream&gt;
using namespace std;

// Base class for various shapes
class Shapes  {
public:
void setWidth(int wh) {
width = wh;
}
		
void setHeight(int hg) {
height = hg;
}
		
protected:
int width;
int height;
};

// Derived class rectangle from Shapes
class Rectangle: public Shapes {
public:
int getRectangleArea() { 
return (width * height); 
}
};

int main(void) {
Rectangle Rectan;
 
Rectan.setWidth(12);
Rectan.setHeight(17);

// Print the area of the object.
cout &lt;&lt; &quot;Total area of the Shape: &quot; &lt;&lt; Rectan.getRectangleArea() &lt;&lt; endl;

return 0;
}</pre>
<h3>Polymorphism</h3>
<p>Objects are smart enough to be dynamic. Specifically, they have the ability to react differently depending on the situation. By using Polymorphism, an object can be made to handle any scenario with the exact same method name. Thus, depending on what the object is asked to pint, it will be able to print it. Polymorphism refer to the ability of an object to have numerous methods with the same name. This is also referred to as function overloading. An object can have multiple functions with the same name but different parameter lists. The appropriate function to execute in chosen depending on which parameter list is provided in the function call. Instead of having separate functions like PrintPicture(), PrintLetters() and PrintNumber(), one unified function name as print() can be used. The object itself will determine which function in to be invoked, depending on the type of situation.</p>
<pre class="brush: cpp; title: ; notranslate">#include &lt;iostream&gt;
#include &lt;string&gt;

#define PI 3.14159

using namespace std;

//Base class for Shapes
class Shapes 
{
public:
Shapes() {}
double area_calculation() { return 0; }
};

// Rectangle derives from Shapes
class Rectangle : public Shapes
{
public:
double width, height;
Rectan(double wh = 2, double hg = 2)
{
width = wh;
height = hg;
}
double area_calculation()
{
return width*height;
}
};

// Circle derives from Shapes
class Circle : public Shapes
{
public:
double radius;
Circle(double r = 2) { radius = r; }
double area_calculation()
{
return PI*radius*radius;
}
};

int main()
{
Circle cir;
Rect rectan;

Shapes* ptr = &amp;cir; //ptr -&gt; cir
cout &lt;&lt; &quot;Circle Area: &quot; &lt;&lt; ptr-&gt;area_calculation &lt;&lt; endl;

ptr = &amp;rectan; //ptr -&gt; rectan
cout &lt;&lt; &quot;Rectangle Area: &quot; &lt;&lt; ptr-&gt;area_calculation &lt;&lt; endl;

return 0;
}</pre>
<p><strong>Referred From</strong>:</p>
<p><em>Book</em>: Object Oriented Programing using C++<br />
<em>Author</em>: Alok Kumar Jagadev, Amiya Kumar Rath, Satchidananda Dehuri</p>
<p>The post <a href="https://jharaphula.com/object-oriented-programming-concepts-with-examples/">Object Oriented Programming (OOPs) Concepts with Examples</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://jharaphula.com/object-oriented-programming-concepts-with-examples/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			<media:content url="https://jharaphula.com/wp-content/uploads/2016/11/oops-concepts.jpg" medium="image" />
	</item>
		<item>
		<title>Frequently used PHP String Functions with Example &#038; Explanation</title>
		<link>https://jharaphula.com/php-string-functions-with-example/</link>
					<comments>https://jharaphula.com/php-string-functions-with-example/#respond</comments>
		
		<dc:creator><![CDATA[Biswabhusan Panda]]></dc:creator>
		<pubDate>Tue, 01 Nov 2016 13:02:54 +0000</pubDate>
				<category><![CDATA[Learn PHP with Examples]]></category>
		<category><![CDATA[JQuery String Functions]]></category>
		<category><![CDATA[PHP String Functions]]></category>
		<category><![CDATA[Script for PHP]]></category>
		<category><![CDATA[strpos() Function]]></category>
		<category><![CDATA[trim String Functions]]></category>
		<guid isPermaLink="false">http://jharaphula.com/?p=6623</guid>

					<description><![CDATA[<img width="300" height="178" src="https://jharaphula.com/wp-content/uploads/2016/10/php-string-functions-300x178.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="Frequently used PHP String Functions with Example &amp; Explanation" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/10/php-string-functions-300x178.jpg 300w, https://jharaphula.com/wp-content/uploads/2016/10/php-string-functions.jpg 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>In PHP there are more than hundred of String functions available freely to make string operations easier. But you must noticed during our day today...</p>
<p>The post <a href="https://jharaphula.com/php-string-functions-with-example/">Frequently used PHP String Functions with Example &amp; Explanation</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></description>
										<content:encoded><![CDATA[<img width="300" height="178" src="https://jharaphula.com/wp-content/uploads/2016/10/php-string-functions-300x178.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="Frequently used PHP String Functions with Example &amp; Explanation" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/10/php-string-functions-300x178.jpg 300w, https://jharaphula.com/wp-content/uploads/2016/10/php-string-functions.jpg 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>In PHP there are more than hundred of String functions available freely to make string operations easier. But you must noticed during our day today development frequently we use some of the String functions. Normally those string function are String replace, Sub String, String length, String Position or Trim a String. For fresher in PHP let us discuss all those frequently used <a href="https://jharaphula.com/jquery-string-functions/" rel="noopener noreferrer" target="_blank">String function</a> with examples. It&#8217;s not matter if you don&#8217;t know all PHP string functions, when required you can take the help of Google to recall the Syntax. But to be a good programmer it&#8217;s mandatory for you to remember below PHP string functions.</p>
<h3>ltrim(), rtrim() &amp; trim String Functions</h3>
<p>Assume that you have a string with whitespace or predefined characters at the beginning and end. In this case to remove whitespaces or predefined characters trim function is useful. Compare to ltrim and rtrim trim function helps to reduce spaces and predefined characters from the both side (<em>left and right</em>) of a string. While ltrim removes whitespaces &amp; predefined characters from left part of a string rtrim helps to remove whitespaces &amp; predefined characters from the right side of a string. Look at the example below.</p>
<pre class="brush: php; title: ; notranslate">&lt;?php
$str = &quot;Hari is a good Boy.&quot;;
echo ltrim($str,&quot;Hari&quot;);
?&gt;</pre>
<p>Output: <em>is a good Boy.</em></p>
<h3>str_replace() Function</h3>
<p>In PHP we use str_replace() function to replace specific characters with some other characters. This function is case sensitive. If in a string you want replace a specific word str_replace function replace all the words with similar characters. Syntax for str_replace is as below.</p>
<p>Syntax: <em>str_replace(find, replace, string, count);</em></p>
<p>Keep remember str_replace accepts 4 parameters. The first 3 parameters are mandatory. Where ever the last parameter count is optional. The first parameter find says which string of characters you want to replace. While replace says what are the other characters you want to replace for the find characters. String parameter is the variable which holds the complete string. Count is optional. In place of count if you are passing any variable as a parameter it returns the total number of time the find word replaced. Look at the example below here I have a string &#8220;Hello Biswabhusan!&#8221;. I want to replace &#8220;Biswabhusan&#8221; with &#8220;Peter&#8221;. To know how many times the word &#8220;Biswabhusan&#8221; was replaced I am passing $i as the count parameter and printing that after a hyphen.</p>
<pre class="brush: php; title: ; notranslate">&lt;?php
echo str_replace(&quot;Biswabhusan&quot;,&quot;Peter&quot;,&quot;Hello Biswabhusan!&quot;, $i);
echo &quot;-&quot; . $i;
?&gt;</pre>
<p>Output: <em>Hello Peter!-1</em></p>
<h3>str_split() Function</h3>
<p>Using str_split() Function you can split a string to array. str_split() function accepts 2 parameters string and length. The first parameter sting is the string which you want to split in to arrays. The second parameter length is an optional parameter. By default this is 1. To know how to implement str_split() Function Look at the example below.</p>
<pre class="brush: php; title: ; notranslate">&lt;?php
print_r(str_split(&quot;biswabhusan&quot;,3));
?&gt;</pre>
<p>Output: <em>Array ( [0] => bis [1] => wab [2] => hus [3] => an )</em> </p>
<h3>strpos() Function</h3>
<p>During string operation sometime we required to know the position of a particular word or character in a complete string. In such case strpos() is useful. Using strpos() you can easily know the first occurrence position of any word or character in a complete sentence. Keep remember strpos() function is case-sensitive and binary-safe. It accepts 3 parameters string, find &#038; start. The first parameter string is nothing but the sentence where you want to know the position of a specific word or character. The second parameter Find is the word or character you want to search. The third parameter start is optional. It specifies in the complete string from where after you want to search the find word or character. For an example in below I am with a string &#8220;Ravi is a good person.&#8221;. Here I want to know the position of &#8220;good&#8221;.</p>
<pre class="brush: php; title: ; notranslate">&lt;?php
echo strpos(&quot;Ravi is a good person.&quot;,&quot;good&quot;);
?&gt;</pre>
<p>Output: <em>10</em></p>
<p><strong>Related Functions</strong></p>
<p>strrpos() &#8211; This function helps to find position of the last occurrence of a word or character inside a string. This is case-sensitive.</p>
<p>stripos() &#8211; This function helps to find position of the first occurrence of a word or character inside a string. This is case-sensitive.</p>
<p>strripos() &#8211; This function finds the position of the last occurrence of a word or character inside a string. This is case-insensitive.</p>
<h3>strlen() Function</h3>
<p>To know the length of a String we use strlen() function in PHP. This function accepts 1 parameter as string. strlen() always returns integer value. In-case you pass a empty string it return 0. Look at the example below here to strlen I am passing a string &#8220;How are you?&#8221;. In result strlen() returns 12. It&#8217;s means that strlen() function calculates spaces including characters.</p>
<pre class="brush: php; title: ; notranslate">&lt;?php
echo strlen(&quot;How are you?&quot;);
?&gt;</pre>
<p>Output: <em>12</em></p>
<h3>strrev() Function</h3>
<p>You must remember those days while to reverse a string we do implement a for loop over the length of a string. Then using echo we print each characters from last to first. In latest revision of PHP (Version 4 onwards) this issue is resolved with strrev() function. Using this function you don&#8217;t required to write a complex logic for reverse a string. Simply by passing the string as a parameter to strrev() function you can easily achieve a reverse string. Look at the example below.</p>
<pre class="brush: php; title: ; notranslate">&lt;?php
echo strrev(&quot;This is an Example.&quot;);
?&gt;</pre>
<p>Output: <em>.elpmaxE na si sihT</em></p>
<h3>substr() Function</h3>
<p>This is a very useful string function. During we extract a part of string from the complete string this function is helpful. substr() function accepts 3 parameters as string, start and length. The first parameter string is nothing but the complete string from which you want to derive part of string. The second parameter start specifies where to start from the complete string. It accepts both negative and positive values. By passing positive number substr() function with start at a specified position from the beginning of the string. If you are passing negative number then it start at a specified position starting from the end of the string. Third parameter length is optional. If in a string of 25 characters length you are passing 2nd and 3rd parameter as 5 and 12 then substr() will return the sub-string from the 5th position to 17th position of complete string. Look at the example below.</p>
<pre class="brush: php; title: ; notranslate">&lt;?php
echo substr(&quot;This is a awesome School.&quot;, 5, 12);
?&gt;</pre>
<p>Output: <em>is a awesome</em>.</p>
<h3>strtolower() &#038; strtoupper() PHP String Functions</h3>
<p>These 2 string functions are used to change the case of Characters. Both of these functions accepts 1 parameter as the string. Using strtolower() you can convert a string to lowercase letters. Similarly using strtoupper() function you can convert a string to uppercase letters. Look at the example below.</p>
<pre class="brush: php; title: ; notranslate">&lt;?php
echo strtolower(&quot;Hello WORLD.&quot;);
?&gt;</pre>
<p>Output: <em>hello world.</em></p>
<pre class="brush: php; title: ; notranslate">&lt;?php
echo strtoupper(&quot;Hello WORLD!&quot;);
?&gt;</pre>
<p>Output: <em>HELLO WORLD!</em></p>
<p>The post <a href="https://jharaphula.com/php-string-functions-with-example/">Frequently used PHP String Functions with Example &amp; Explanation</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://jharaphula.com/php-string-functions-with-example/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			<media:content url="https://jharaphula.com/wp-content/uploads/2016/10/php-string-functions.jpg" medium="image" />
	</item>
		<item>
		<title>Database Basics with Terminologies definition for Beginners</title>
		<link>https://jharaphula.com/database-basics-terminologies-definition/</link>
					<comments>https://jharaphula.com/database-basics-terminologies-definition/#respond</comments>
		
		<dc:creator><![CDATA[Biswabhusan Panda]]></dc:creator>
		<pubDate>Sat, 22 Oct 2016 17:11:02 +0000</pubDate>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[ACID Properties]]></category>
		<category><![CDATA[Atomicity]]></category>
		<category><![CDATA[Database Basics]]></category>
		<category><![CDATA[Database Terminologies]]></category>
		<category><![CDATA[Durability]]></category>
		<category><![CDATA[Foreign Key]]></category>
		<category><![CDATA[Primary Key and Composite Key]]></category>
		<guid isPermaLink="false">http://jharaphula.com/?p=6570</guid>

					<description><![CDATA[<img width="300" height="188" src="https://jharaphula.com/wp-content/uploads/2016/10/database-basics-300x188.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="Database Basics with Terminologies definition for Beginners" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/10/database-basics-300x188.jpg 300w, https://jharaphula.com/wp-content/uploads/2016/10/database-basics.jpg 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>During application development basically we pass through 2 phases front-end &#38; back-end. Front-end is nothing but the area where user interacts. That&#8217;s why Front-end is...</p>
<p>The post <a href="https://jharaphula.com/database-basics-terminologies-definition/">Database Basics with Terminologies definition for Beginners</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></description>
										<content:encoded><![CDATA[<img width="300" height="188" src="https://jharaphula.com/wp-content/uploads/2016/10/database-basics-300x188.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="Database Basics with Terminologies definition for Beginners" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/10/database-basics-300x188.jpg 300w, https://jharaphula.com/wp-content/uploads/2016/10/database-basics.jpg 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>During application development basically we pass through 2 phases front-end &amp; back-end. Front-end is nothing but the area where user interacts. That’s why Front-end is also known as User Interface (<em>UI</em>). Some of the user interface examples are forms, controls, images or validations. While back-end is the part where we store user information. For an example while designing a Customer details form using Save option we do store Customer details like First Name, Last Name, Email ID or Phone Number to the database.</p>
<p>So here database resides behind the user view. That’s why work related to database such as <a href="https://jharaphula.com/database-design-for-beginners/" target="_blank" rel="noopener noreferrer">database designing</a>, storing, updating, retrieving or deleting records comes under back-end development. Hope now you have a clear vision about what is the difference between front-end &amp; back-end development. This session I am specially writing by targeting you like the beginners of database. Here you can easily understood database basics and most commonly used database terminologies.</p>
<h2>Types of Databases</h2>
<p>They are fundamental to modern computing, supporting everything from small applications to large-scale enterprise systems. Different types of databases are designed to handle various data structures, relationships, and use cases. Understanding these types helps in selecting the right database for specific needs.</p>
<p>1. <strong>Relational Databases</strong> &#8211; They store data in tables consisting of rows and columns, where relationships between tables are established using keys.</p>
<p>2. <strong>NoSQL Databases</strong> &#8211; NoSQL (Not Only SQL) databases provide a more flexible approach to data storage, accommodating unstructured or semi-structured data.</p>
<p>3. <strong>NewSQL Databases</strong> &#8211; NewSQL databases combine the scalability of NoSQL with the ACID guarantees of traditional relational databases. They are designed for distributed environments requiring high performance and consistency.</p>
<p>Examples: &#8211; Google Spanner &#8211; CockroachDB</p>
<p>These databases are used in financial services and global-scale applications demanding high availability and strict consistency.</p>
<p>4. <strong>In-Memory Databases</strong> &#8211; In-memory databases store data primarily in RAM rather than on disk, enabling extremely fast read/write operations.</p>
<p>Use Cases:</p>
<p>&#8211; Real-time analytics<br />
&#8211; High-frequency trading<br />
&#8211; Caching systems</p>
<p>6. <strong>Object-Oriented Databases</strong> &#8211; These databases store data as objects, making them compatible with object-oriented programming languages.</p>
<p>Advantages:</p>
<p>&#8211; Eliminates the need for object-relational mapping (ORM).<br />
&#8211; Supports inheritance and polymorphism.</p>
<p>Examples:</p>
<p>&#8211; db4o<br />
&#8211; ObjectDB</p>
<p>7. <strong>Distributed Databases</strong> &#8211; Distributed databases store data across multiple physical locations, improving availability and fault tolerance.</p>
<p>Types:</p>
<p>&#8211; Homogeneous: Same database system across nodes (e.g., Google Spanner).<br />
&#8211; Heterogeneous: Different systems working together (e.g., federated databases).</p>
<p>8. <strong>Cloud Databases</strong> &#8211; Hosted on cloud platforms, these databases offer scalability, managed services, and pay-as-you-go pricing.</p>
<p>Examples:</p>
<p>&#8211; Amazon RDS<br />
&#8211; Google Cloud Firestore</p>
<h3>Database Stores data using Tabular Shape</h3>
<p>First of all let me tell you whatever the database program (<em>MS SQL Server or MySQL or Oracle or DB2</em>) you will choose for you application development, theories for database basics are same for all. Database stores data using tabular shape. While this tabular shape further divided into 2 dimensions rows and columns. A database management system (<em>DBMS</em>) stores data in such a fashion that it becomes very easier to retrieve, update or produce information. For an example let you have an employee details table. Where you have fields like Employee Name, Date of Birth, Email ID, Salary or Contact Details. In such case if you want to extract information about all those employee who is having salary greater than 30 thousand, database is smart enough to do that for you.</p>
<h3>ACID Properties</h3>
<p>In database basics ACID stands for Atomicity, Consistency, Isolation and Durability. Here before I explain more about these properties first let you know these properties are the keys for which database is so popular today. Atomicity says during a transaction involving 2 or more discrete pieces, whether all of them are committed or none. Let take an case study where in a bank while a customer depositing some money to his or her account in back-end we do insert the fresh entry and in the next step we update the previous balance. Here if insert get executed and update fails than it is not acceptable. That&#8217;s why in such cases we do all consecutive actions under a single transaction. This feature is called Atomicity.</p>
<p>Like Atomicity Consistency is one more key feature of DBMS. Consistency says during a transaction either creates a new with valid state of data or else if any failure occurs return all data to the previous state of before transaction. Here I will give you an example. Assume during you submit a form in between due to sudden power failure you get disconnected from the server. From the complete record partial data available to the server and connection break. In such case database will not insert that partial record to the table rather it will discard the transaction without affecting the previous state.</p>
<p>Isolation says a transaction in process and not yet committed must remain isolated from other transaction. Durability is nothing but once data Committed is get saved by the system, even after in-case of any failure or system restart, the data is remain as it is in correct state.</p>
<h3>Entity &amp; Relationship</h3>
<p>In ER Model an Entity is nothing but the real-world object. Properties of an Entity is called attributes. Every attributes holds a set of values which called domain. For an example in a Employee Details table, Employee is an Entity while attributes are Name, Age, Sex, Salary or Designation. About relationship I can say it is a logical association of entities.</p>
<h3>Primary Key &amp; Composite Key</h3>
<p>In a table Primary Key is the field which stores unique entry for each individual records. Using Primary Key we can identify any individual record in millions. Which field we declare as the Primary Key that can&#8217;t contain null value or blank. While inserting a record make sure Primary Key is the mandatory field. Generally we use auto increment feature in Primary Key field. Generally we use integer data type under Primary Key field. Rather a single column if we are declaring 2 or more column as Primary Key than that is called Composite Key. In case of Composite key we can&#8217;t guarantee uniqueness of a single column but while it comes together it fulfill all the properties of a Primary Key.</p>
<h3>Unique Key</h3>
<p>A Unique Key is very similar to Primary Key. Like the Primary Key Unique Key provides unique identification of each record in a table. Keep noted in a table you can have only one Primary Key but you can define as many as unique key you wants. One more difference of Primary Key and Unique Key is Unique Key allow null value to store.</p>
<h3>Foreign Key</h3>
<p>A Foreign Key always points Primary Key of an another table. It&#8217;s a key feature of Foreign Key that it prevents to insert records which is not establishing relationship between two tables. Even Foreign Key filed never accepts invalid data from being inserted.</p>
<h3>CHECK Constraint in SQL</h3>
<p>In a SQL table we use CHECK constraint to limit the range of value that can be placed in a column. If you will define CHECK constraint to a single column it allows only limited values for that column. In case you define CHECK constraint to a table it can limit the values in certain columns based on values in other columns in the row.</p>
<h2>Database Basics Unique Key and Foreign Key</h2>
<p>Unique keys and foreign keys are fundamental to relational database design, ensuring data accuracy and meaningful relationships. While unique keys prevent duplicate entries in critical fields, foreign keys maintain connections between tables, preserving referential integrity. Understanding these constraints allows for robust database structures that support efficient data management. By applying them correctly, businesses can avoid inconsistencies and build scalable, reliable systems.</p>
<h3>What is a Unique Key?</h3>
<p>A unique key is a constraint applied to a column or a set of columns in a database table to ensure that all values stored in those columns are distinct. The primary purpose of a unique key is to prevent duplicate entries in specific fields while allowing NULL values (unless explicitly restricted).</p>
<p><strong>Characteristics of a Unique Key </strong></p>
<p>&#8211; Uniqueness: Ensures no duplicate values exist in the constrained column(s).<br />
&#8211; Nullable: Can contain NULL values unless defined as NOT NULL.<br />
&#8211; Multiple Keys: A table can have more than one unique key.</p>
<h3>What is a Foreign Key?</h3>
<p>A foreign key is a column (or a set of columns) in one table that references the primary key or unique key of another table. Foreign keys help maintain consistency by preventing actions that would leave orphaned records or violate logical relationships.</p>
<p><strong>Characteristics of a Foreign Key </strong></p>
<p>&#8211; References Another Table: Points to a primary key or unique key in a related table.<br />
&#8211; Ensures Referential Integrity: Prevents invalid data from being inserted into the foreign key column.<br />
&#8211; Cascading Actions: Supports operations like CASCADE DELETE or UPDATE to maintain consistency.<br />
&#8211; Can Allow NULL: Depending on the design, foreign keys may permit NULL values if the relationship is optional.</p>
<h2>Conclusion</h2>
<p>Choosing the right database depends on data structure, scalability needs, and performance requirements. Relational databases excel in structured data environments, while NoSQL systems offer flexibility for unstructured data.</p>
<p>The post <a href="https://jharaphula.com/database-basics-terminologies-definition/">Database Basics with Terminologies definition for Beginners</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://jharaphula.com/database-basics-terminologies-definition/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			<media:content url="https://jharaphula.com/wp-content/uploads/2016/10/database-basics.jpg" medium="image" />
	</item>
		<item>
		<title>List of frequently used common SQL Queries with Example</title>
		<link>https://jharaphula.com/sql-queries-with-example/</link>
					<comments>https://jharaphula.com/sql-queries-with-example/#respond</comments>
		
		<dc:creator><![CDATA[Biswabhusan Panda]]></dc:creator>
		<pubDate>Mon, 17 Oct 2016 17:39:38 +0000</pubDate>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Common SQL Queries]]></category>
		<category><![CDATA[DROP TABLE Table_Name]]></category>
		<category><![CDATA[SEQUEL]]></category>
		<category><![CDATA[SQL Queries with Example]]></category>
		<category><![CDATA[WHERE Clause]]></category>
		<guid isPermaLink="false">http://jharaphula.com/?p=6524</guid>

					<description><![CDATA[<img width="300" height="171" src="https://jharaphula.com/wp-content/uploads/2016/10/SQL-Queries-300x171.png" class="webfeedsFeaturedVisual wp-post-image" alt="List of frequently used common SQL Queries with Example" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/10/SQL-Queries-300x171.png 300w, https://jharaphula.com/wp-content/uploads/2016/10/SQL-Queries.png 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>SQL Stands for &#8220;Structured Query Language&#8221;. This is a popular programming language to manage Data. SQL consists of DDL (Data Definition Language), DML (Data Manipulation...</p>
<p>The post <a href="https://jharaphula.com/sql-queries-with-example/">List of frequently used common SQL Queries with Example</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></description>
										<content:encoded><![CDATA[<img width="300" height="171" src="https://jharaphula.com/wp-content/uploads/2016/10/SQL-Queries-300x171.png" class="webfeedsFeaturedVisual wp-post-image" alt="List of frequently used common SQL Queries with Example" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/10/SQL-Queries-300x171.png 300w, https://jharaphula.com/wp-content/uploads/2016/10/SQL-Queries.png 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>SQL Stands for “Structured Query Language”. This is a <a href="https://jharaphula.com/category/programming-solutions/" rel="noopener noreferrer" target="_blank">popular programming language</a> to manage Data. SQL consists of DDL (Data Definition Language), DML (Data Manipulation Language) &amp; DCL (Data Control Language). SQL was first appeared in 1974. That time It was developed by Donald D. Chamberlin &amp; Raymond F. Boyce in IBM. In 1986 the SQL was initially released. SQL is approved by both ANSI &amp; ISO. SQL is derived from the word “SEQUEL”. In this session for absolute beginners let us share the list of frequently used SQL Queries.</p>
<p>To get Started with various SQL Queries first we required to Create a Database and Table with Sample Data.</p>
<h3>Create &amp; Drop Database Queries</h3>
<p>To Create a Database in SQL we use Create Database Query. Create Database query Syntax is as below.</p>
<p><em>Syntax</em>: CREATE DATABASE Database_Name;</p>
<p>Assume here we are going to Create a Database with name &#8220;temp_db&#8221;. Then you required to execute the following query.</p>
<pre class="brush: sql; title: ; notranslate">CREATE DATABASE temp_db;</pre>
<p>Like Create Database to Drop a Database you required to run the following query.</p>
<p><em>Syntax</em>: DROP DATABASE Database_Name;</p>
<h3>Create &amp; Drop Table SQL Queries</h3>
<p>Once you successfully Created the Database next you required to Create Tables to Store records. In the below example I creating a SQL Table to store manager details. The Table name is ManagerDetails. In this table Manager_ID is the primary key.</p>
<pre class="brush: sql; title: ; notranslate">CREATE TABLE IF NOT EXISTS ManagerDetails (
Manager_ID varchar(10) NOT NULL DEFAULT '', 
Manager_Name varchar(200) NOT NULL DEFAULT '', 
Manager_Designation varchar(200) NOT NULL DEFAULT '', 
Manager_Salary varchar(20) NOT NULL DEFAULT '0', 
PRIMARY KEY (Manager_ID) 
)</pre>
<p>Like Create Table to Drop a Table from your Database you required to run the following query.</p>
<p><em>Syntax</em>: DROP TABLE Table_Name;</p>
<h3>INSERT Statement SQL Queries</h3>
<p>To execute various SELECT Statements on over a SQL Table at minimum we required some Sample records. Here in my ManagerDetails table I am inserting 12 sample records using the following insert queries.</p>
<pre class="brush: sql; title: ; notranslate">INSERT INTO ManagerDetails (Manager_ID, Manager_Name, Manager_Designation, Manager_Salary) VALUES
(1, 'Sujata Mohapatra', 'Sr. Manager', '28000'),
(2, 'Ravi Ranjan Dash', 'Program Manager', '32000'),
(3, 'Bijaylakshmi Dash', 'Business Manager', '48000'),
(4, 'Rosalin Roy', 'Sr. Program Manager', '62000'),
(5, 'Nibedita Mahapatra', 'Jr. Manager', '18000'),
(6, 'Meghana Roy', 'Sr. Manager', '35000'),
(7, 'Manamohan Mohanty', 'Sr. Team Lead', '23000'),
(8, 'Rupak Maharana', 'Business Head', '36000'),
(9, 'Ramkrishna Dalei', 'QA Manager', '18000'),
(10, 'Puspashree Mishra', 'Team Leader', '15000'),
(11, 'Jayshree Moharana', 'Sr. Project Manager', '55000'),
(12, 'Ravi Prakash Dash', 'Business Head', '42000');</pre>
<h3>SELECT Queries</h3>
<p>In SQL we use SELECT Statement to fetch records from a Table. Looking into the complexity and filter there are various clauses introduced with SQL Select Statement. Let us explore those clauses 1 by 1. First let us discuss the Select Statement using which we can Fetch all the records from a Table.</p>
<pre class="brush: sql; title: ; notranslate">SELECT * FROM ManagerDetails;</pre>
<p>OR</p>
<pre class="brush: sql; title: ; notranslate">SELECT Column_Name_A, Column_Name_B,..., Column_Name_N FROM ManagerDetails;</pre>
<p><strong>DISTINCT Clause</strong></p>
<p>In a SQL Table it may happen a column may contain more than 1 records with duplicate values. In this scenario to list only the different values we use DISTINCT Clause with SELECT Statement look at the Syntax below.</p>
<p><em>Syntax</em>: SELECT DISTINCT Column_Name, Column_Name, Column_Name FROM Table_Name;</p>
<p>Example: </p>
<pre class="brush: sql; title: ; notranslate">SELECT DISTINCT Manager_Salary FROM managerdetails;</pre>
<p>Here you can notice in my ManagerDetails table Manager_Salary column contain 18,000 Salary for more than 1 manager. Using DISTINCT Clause the result will show me 18,000 Salary only once.</p>
<p><strong>WHERE Clause</strong></p>
<p>This is a Conditional Clause. For an example in the above ManagerDetails table if you want to Filter those managers who are having more then 40,000 Salary per month this clause is helpful. Look at the example below.</p>
<p>Example:</p>
<pre class="brush: sql; title: ; notranslate">SELECT * FROM ManagerDetails WHERE Manager_Salary &gt; 40000;</pre>
<p><strong>Logical Clause (AND/OR)</strong></p>
<p>Logical Clause can be used with various SELECT Statement Clauses. To show you an example here I am using Logical Clause with Where Condition. What I want is from the above ManagerDetails table I want those manager records who are having salary more than 40,000 and less than 60,000. Basically there are 2 types of logical clauses AND &amp; OR. In below example let me show you how to use AND logical clause.</p>
<p>Example:</p>
<pre class="brush: sql; title: ; notranslate">SELECT * FROM ManagerDetails WHERE Manager_Salary &gt; 40000 AND Manager_Salary &lt; 60000;</pre>
<p><strong>IN Clause</strong></p>
<p>This Clause is useful to fetch specific records with Specific ID&#8217;s or Values. For an example using below SQL Query I am looking all those manager records who are having Salary 28000 and 18000.</p>
<p>Example:</p>
<pre class="brush: sql; title: ; notranslate">SELECT * FROM ManagerDetails WHERE Manager_Salary IN (28000, 18000);</pre>
<p><strong>BETWEEN Clause</strong></p>
<p>Generally we use Between Clause with SELECT Statement when we required to extract those records which are in between a specific value. For an example here in ManagerDetails table I want to fetch all those records who are having salary in between 30,000 t0 50,000. Look at the SQL Queries below.</p>
<p>Example:</p>
<pre class="brush: sql; title: ; notranslate">SELECT * FROM ManagerDetails WHERE Manager_Salary BETWEEN 30000 AND 40000;</pre>
<p><strong>LIKE Clause</strong></p>
<p>We use Like Clause in a SQL SELECT Statement to Search. For an example in ManagerDetails table I want to fetch all those record who are with the first name &#8220;Ravi&#8221;.</p>
<p>Example:</p>
<pre class="brush: sql; title: ; notranslate">SELECT * FROM ManagerDetails WHERE Manager_Name LIKE 'Ravi%';</pre>
<p>The meaning of % at the end of Ravi is what are the names started with these characters. In case you want to search those records where the middle name is Ravi you can go for the expression &#8220;%Ravi%&#8221;.</p>
<p><strong>ORDER BY Clause</strong></p>
<p>We use Order By clause with Select statement for sorting. Using Order By clause there are two types of sorting can possible Ascending and Descending. For Ascending order we use ASC and for Descending order we use DESC keywords respectively. Look at the example below how I am fetching Manager Details depending upon there Salary.</p>
<pre class="brush: sql; title: ; notranslate">SELECT * FROM ManagerDetails ORDER BY Manager_Salary ASC;</pre>
<p>OR </p>
<pre class="brush: sql; title: ; notranslate">SELECT * FROM ManagerDetails ORDER BY Manager_Salary DESC;</pre>
<p><strong>GROUP BY Function</strong></p>
<p>We use GROUP BY function in conjunction with aggregate functions to group the set of results by one or more columns. Syntax for Group By function is as below.</p>
<p><em>Syntax</em>: SELECT Column_Name, aggregate_function(Column_Name)<br />
FROM Table_Name<br />
WHERE Column_Name operator value<br />
GROUP BY Column_Name;</p>
<p><strong>COUNT Function</strong></p>
<p>To count number of records against column(s) we use Count Function. For an example if you want to count the number of rows in ManagerDetails table, you can execute the following query.</p>
<pre class="brush: sql; title: ; notranslate">SELECT COUNT(*) FROM ManagerDetails;</pre>
<p><strong>HAVING Function</strong></p>
<p>Having function work similar like where Clause but the only difference is where clause can&#8217;t be used with aggregate functions where Having can.</p>
<p><em>Syntax</em>: SELECT Column_Name, aggregate_function(Column_Name)<br />
FROM Table_Name<br />
WHERE Column_Name operator value<br />
GROUP BY Column_Name<br />
HAVING aggregate_function(Column_Name) operator value;</p>
<h3>CREATE &amp; DROP INDEX</h3>
<p>Using index in a SQL Table we fetch the record in less time. User can&#8217;t view the index but in behind it works to speed of search queries.</p>
<pre class="brush: sql; title: ; notranslate">CREATE INDEX myIndex ON ManagerDetails (Manager_ID);</pre>
<p>Not only for a Single Column index can be set for multiple Columns.</p>
<pre class="brush: sql; title: ; notranslate">CREATE INDEX myIndex ON ManagerDetails (Manager_ID, Manager_Name);</pre>
<p>Also we can Create unique index on a table. Unique index not allow duplicate values.</p>
<pre class="brush: sql; title: ; notranslate">CREATE UNIQUE INDEX myIndex ON ManagerDetails (Manager_ID);</pre>
<p>To drop index from a SQL Table you can use the following Queries for various databases.</p>
<p>Drop index Syntax for MS Access:</p>
<p><em>Syntax</em>: DROP INDEX index_name ON table_name;</p>
<p>Drop index Syntax for MS SQL Server:</p>
<p><em>Syntax</em>: DROP INDEX table_name.index_name;</p>
<p>Drop Index Syntax for MySQL:</p>
<p><em>Syntax</em>: ALTER TABLE table_name DROP INDEX index_name;</p>
<h3>ALTER &amp; UPDATE Queries</h3>
<p>Generally we use Alter SQL Statement to add or modify Columns of a Table. The syntax of ALETER Statement is as below.</p>
<p><em>Syntax</em>: ALTER TABLE Table_Name ADD Column_Name Datatype;</p>
<p>For an example if I want to add one more column to my ManagerDetails table I can execute the following query.</p>
<pre class="brush: sql; title: ; notranslate">ALTER TABLE ManagerDetails ADD Emp_Age date;</pre>
<p>Like ALTER UPDATE query helps to update specific record in a table. Assume that in my ManagerDetails table I want to updated &#8220;Rosalin Roy&#8221; salary to &#8220;65000&#8221;. Then the following query I need to execute.</p>
<pre class="brush: sql; title: ; notranslate">UPDATE ManagerDetails SET Manager_Salary='65000' WHERE Manager_ID=4;</pre>
<p>Syntax for UPDATE Statement is as below.</p>
<p><em>Syntax</em>: UPDATE Table_Name SET Column_Name1=Value1, Column_Name2=Value2, &#8230; WHERE Some_Column=Some_Value;</p>
<h3>TURNCATE &amp; DELETE TABLE SQL Queries</h3>
<p>Both the command TURNCATE &amp; DELETE we use to delete records from a SQL Table. But the only difference is using delete we only delete records but the identity id did not get deleted. For an example if you have 5 records in a table and you used delete statement to clear the records. When after delete all records you will insert a new record it will show you id 6. But using TURNCATE identity filed get reset. Look at the example of TURNCATE &amp; DELETE queries.</p>
<p>Delete statement can be 2 types Conditional or All. To remove all records from a table we use:</p>
<pre class="brush: sql; title: ; notranslate">DELETE * FROM ManagerDetails;</pre>
<p>To have a conditional DELETE Statement we use the following Syntax.</p>
<p><em>Syntax</em>: DELETE FROM table_name WHERE some_column=some_value;</p>
<p>Similar to DELETE Statement the following Syntax we use for TURNCATE a table.</p>
<p><em>Syntax</em>: TRUNCATE TABLE table_name;</p>
<p>The post <a href="https://jharaphula.com/sql-queries-with-example/">List of frequently used common SQL Queries with Example</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://jharaphula.com/sql-queries-with-example/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			<media:content url="https://jharaphula.com/wp-content/uploads/2016/10/SQL-Queries.png" medium="image" />
	</item>
		<item>
		<title>ADO.NET ExecuteNonQuery, ExecuteReader, ExecuteScalar Examples</title>
		<link>https://jharaphula.com/ado-net-architecture-examples-beginners/</link>
					<comments>https://jharaphula.com/ado-net-architecture-examples-beginners/#comments</comments>
		
		<dc:creator><![CDATA[Biswabhusan Panda]]></dc:creator>
		<pubDate>Sun, 07 Aug 2016 06:46:27 +0000</pubDate>
				<category><![CDATA[Microsoft Technologies]]></category>
		<category><![CDATA[ActiveX Data Objects]]></category>
		<category><![CDATA[ADO.NET Architecture]]></category>
		<category><![CDATA[ASP.NET Interview Questions]]></category>
		<category><![CDATA[ExecuteNonQuery]]></category>
		<guid isPermaLink="false">http://jharaphula.com/?p=4586</guid>

					<description><![CDATA[<img width="300" height="225" src="https://jharaphula.com/wp-content/uploads/2016/08/ado-300x225.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="ADO.NET Architecture with Examples for beginners" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/08/ado-300x225.jpg 300w, https://jharaphula.com/wp-content/uploads/2016/08/ado.jpg 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>ADO stands for ActiveX Data Objects. Command object is the biggest object in ADO.NET. It is the only object which can perform actions with database....</p>
<p>The post <a href="https://jharaphula.com/ado-net-architecture-examples-beginners/">ADO.NET ExecuteNonQuery, ExecuteReader, ExecuteScalar Examples</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></description>
										<content:encoded><![CDATA[<img width="300" height="225" src="https://jharaphula.com/wp-content/uploads/2016/08/ado-300x225.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="ADO.NET Architecture with Examples for beginners" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/08/ado-300x225.jpg 300w, https://jharaphula.com/wp-content/uploads/2016/08/ado.jpg 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>ADO stands for ActiveX Data Objects. Command object is the biggest object in ADO.NET. It is the only object which can perform actions with database. You can create instances of Command object using Command class or Connection.Create. For absolute beginners in this session let us explore more about ADO.NET architecture with examples.</p>
<h2>Connection using ADO.NET</h2>
<pre class="brush: vb; title: ; notranslate">SqlConnection sqlConn = new SqlConnection(&quot;............&quot;);
SqlCommand sqlCmd = sqlConn.CreateCommand();</pre>
<p>All databases supports 2 types of queries.</p>
<p><strong>Action Queries</strong> &#8211; Action queries are those which change the state of database and which don’t return any results except the number of records affected. Example of few action based queries are Insert, Delete &amp; Update statements.</p>
<p><strong>Non-action Queries</strong> &#8211; Non-action queries are those which don’t affect the database but return the result. Example of non-action based queries are Select statements.</p>
<h2>ADO.NET Methods to Executing queries</h2>
<p>ADO.NET Command object provides the following methods to execute queries.</p>
<ul>
<li>ExecuteNonQuery()</li>
<li>ExecuteReader()</li>
<li>ExecuteScalar()</li>
<li>ExecuteXMLReader()</li>
</ul>
<h2>1. ExecuteNonQuery</h2>
<p>This method is used to execute those queries which perform some action &amp; changes against the state of the database. We use this method to execute action based queries such as Insert, Delete or Update records.</p>
<p>Ex:</p>
<pre class="brush: sql; title: ; notranslate">Delete * from EmpDetails;</pre>
<p>Or</p>
<pre class="brush: sql; title: ; notranslate">INSERT INTO EmpDetails VALUES(‘Biswabhusan’, ‘Software Developer’, ‘InfoSys’);</pre>
<h2>2. ExecuteReader</h2>
<p>Using this method we can execute any kind of Select Statements. ExecuteReader returns single or multiple value depending upon the Query.</p>
<p>Ex:</p>
<pre class="brush: sql; title: ; notranslate">SELECT EmpName FROM EmpDetails; //This query returns multiple values.
SELECT count(*) FROM EmpDetails; //This query returns a single value.

SELECT emp.EmpID, emp.EmpName, dep.DepNo, dep.DepName from EmpDetails emp, DepDetails dep where emp.DepNo = dep.DepNo //This conditional query returns values from multiple tables.</pre>
<h2>3. ExecuteScalar</h2>
<p>This method is used for Select statements which return only single values.</p>
<p>Ex:</p>
<pre class="brush: sql; title: ; notranslate">SELECT count(*) FROM EmpDetails;</pre>
<h2>4. ExecuteXMLReader</h2>
<p>This method is applicable only for SqlClient namespace. It is used for queries which return XML data. But OLEDB managed provider does not support this method.</p>
<p>Ex:</p>
<pre class="brush: sql; title: ; notranslate">SELECT * FROM JobDetails FOR XML AUTO</pre>
<p>Note: ExecuteNonQuery(), which is included from ADO.NET Version 1.0/1.1 is used for synchronous execution of queries, whereas BeginExecuteQuery() and EndExecuteQuery() methods which were introduced in ADO.NET Version 2.0 are used for asynchronous execution of queries.</p>
<h2>Batch SQL</h2>
<p>We can write more than one SQL statement in a single string and execute them as a group(internally execution takes place one after the other) at the same time. This is called batch SQL. The statements are separated by a semicolon and written in the same string.</p>
<p>Ex:</p>
<pre class="brush: sql; title: ; notranslate">“SELECT empName FROM EmpDetails; SELECT * FROM JobDetails; SELECT * FROM DepDetails”</pre>
<p>Batch SQL is very effective &amp; saves time because it is not necessary to wait for the execution of first statement, in order to run the next statement. But there is also a great drawback in this approach, which relates to the SQL injection attacks.</p>
<p><strong>SQL Injection attacks</strong> &#8211; If even a Single statement which is harmful to the <a href="https://jharaphula.com/database-basics-terminologies-definition/" target="_blank" rel="noopener noreferrer">database</a> is provided in the batch, it results in stalling of the whole database.</p>
<h2>DataReader</h2>
<p>In ADO.NET there are only two objects which can store data. One is DataSet while the other is DataReader.</p>
<p><strong>Features of DataReader</strong> &#8211; DataReader is a forward only accessible object. Using DataReader we can only read the data. It is a read-only object of ADO.NET. It provides sequential access for rows &amp; can be extended for sequential column access also.</p>
<p><strong>How DataReader Works?</strong></p>
<p>The select statement from the command object is processed and a ResultSet with the required data is created in the form of rows and columns at the database server. The address of this ResultSet is provided to the DataReader.</p>
<pre class="brush: vb; title: ; notranslate">cmd=new SqlCommand(“SELECT * FROM EmpDetails”, conn);
dr=cmd.ExecuteReader(); //provides the address of the ResultSet to the DataReader(dr)</pre>
<p>When the read() method of the DataReader is used it returns true if records are present and false if records are not present. At the same time if records are present, a similar structure like the ResultSet is created at the client side and the first record is fetched into it. The DataReader reads the record from this structure. dr[n] is an indexer to access its created structure.</p>
<p>Ex: dr[0] provides the first column of the retrieved row.<br />
dr[1] provides the second column of the retrieved row.</p>
<p>A pointer exists on ResultSet to identify the record being read. When the read() method is again called from the DataReader, the pointer moves to the next record if present. The structure at the DataReader now gets overwritten by this record.</p>
<p><strong>Drawbacks of DataReader</strong> &#8211; It is a forward-only and read-only object. DataReader is a connection-oriented object, which means that the access to data is possible only as long as the connection exists. DataReader works only on databases, but not on other data sources like XML files.</p>
<p><em>Note</em>: It is always necessary to close the DataReader object after the required data is read. Inspite of all drawbacks, DataReader usage is in its performance. To access data, DataReader is the fastest object in entire .NET Framework.</p>
<h3>More DataReader Methods and Properties</h3>
<p><strong>dr.GetString(0)</strong>: This statement is used to retrieve the data in the required format. Here the requirement is to retrieve the first column value of the DataReader in the form of a string. Normally for this purpose, the below method is adopted.</p>
<p>textBox1.Text=dr[0].ToString();</p>
<p>Here the data is first retrieved and then converted into string format. But if dr.GetString(0) is used, the data is directly retrieved in the form of string, which aids in better performance.</p>
<p><strong>dr.GetInt32(1)</strong> &#8211; This works similar to the above method, but fetches data in the form of an integer. Similarly there are methods like GetDouble, GetByte, GetDateTime etc. for different datatypes.</p>
<p><strong>HasRows Property</strong> &#8211; It checks whether records are present or not and returns true or false accordingly. This property provides better performance than Read() because Read method checks the presence of the records and also reads the records. Since HasRows property does not read the records it performs faster.</p>
<p><strong>IsClosed</strong> &#8211; It returns true if the DataReader is closed, otherwise returns false. If cmd.ExecuteReader (CommandBehaviour.CloseConnection) is used then connection gets closed when DataReader is closed. In such cases, the state of the connection can be checked by using IsClosed property.</p>
<p><strong>IsDBNull</strong> &#8211; This property is used to check if a DataRow is null. Returns true if it is null, otherwise returns false.</p>
<p>Ex: if(dr.IsDBNull[0]) checks whether the first row is null.</p>
<h2>Stored Procedures</h2>
<p>Different methods of writing programs in back-end are Blocks (T-SQL for SQL Server, PL/SQL for Oracle) &#8211; Blocks compile every time when called. They are not Stored Procedures &#8211; Procedures get compiled and stored as part of database objects. So they perform faster in execution. They need to be explicitly called using an execute statement or functions &#8211; They also get compiled and stored like procedures. They can be called with a select statement.</p>
<p><strong>Triggers</strong> – They are executed automatically(implicitly called).</p>
<h3>Why use Stored Procedures?</h3>
<p>Stored Procedures are used because of the following features they offer</p>
<ul>
<li>Modular programming</li>
<li>Distribution of work</li>
<li>Database security</li>
<li>Faster execution</li>
<li>Network traffic reduction</li>
<li>Flexibility</li>
</ul>
<p>A typical procedure looks like the following one.</p>
<pre class="brush: sql; title: ; notranslate">CREATE PROCEDURE dbo.AddJob
(
@jobdesc varchar(50),
@minlvl int,
@maxlvl int
)
AS
INSERT INTO JobDetails VALUES(@jobdesc, @minlvl, @maxlvl)
RETURN</pre>
<p>Every parameter in a procedure should be preceded by a special character @ to differentiate from the column names of the table. By default all the declared parameters are input parameters. If the procedure has to return values, then the output parameters must be explicitly specified by using OUTPUT keyword for SQL Server and OUT for Oracle.</p>
<h3>Calling procedures from Client-side</h3>
<p>This is the code for adding records into the jobs table. The three column values are entered into the text boxes (no need to add values to the first column because it is an identity column) and at the click of a button the whole record should be entered into the table. This is done by using the stored procedure shown earlier. To call that procedure, the button click code should be written as follows.</p>
<pre class="brush: vb; title: ; notranslate">cmd = new SqlCommand(&quot;AddJob&quot;, cn);
cmd.CommandType = CommandType.StoredProcedure;
cmd.Parameters.AddWithValue(&quot;@jobdesc&quot;, txtJobDesc.Text);
cmd.Parameters.AddWithValue(&quot;@minlvl&quot;, txtMinLvl.Text);
cmd.Parameters.AddWithValue(&quot;@maxlvl&quot;, txtMaxLvl.Text);
cmd.ExecuteNonQuery();
MessageBox.Show(&quot;Record Added&quot;);</pre>
<p>Here the textbox values are assigned to the parameters of the procedure by using Parameters.AddWithValue() method using command object. When the command is executed, it executes the procedure at the database server and records are added into the table.</p>
<p><em>Note</em>: If OleDb is used then the parameters should be in same order as the columns in the table, but for SQL Server this is not required.</p>
<p>The command types that are supported by ADO.NET are:</p>
<p><strong>Text</strong>: This is default. It can be any query including the table name.<br />
<strong>StoredProcedure</strong>: To call a procedure at the back-end.<br />
<strong>TableDirect</strong>: This is mainly for OleDb, where the table name has to be specified in place of command text.</p>
<p>Procedures can be written to return query results also(i.e. select statement results). To execute the procedures that return query results, ExecuteReader should be used from the command object instead of ExecuteNonQuery as shown below.</p>
<pre class="brush: vb; title: ; notranslate">cmd = new SqlCommand(&quot;jobsinfo&quot;, cn);
cmd.CommandType = CommandType.StoredProcedure;
SqlDataReader dr = cmd.ExecuteReader();</pre>
<p>But it is not preferred to write such procedures because all databases do not support them. But for returning values from the procedures, nearly all back-ends support directional parameters-IN, OUT, INOUT.</p>
<p><strong>IN Parameter</strong>: It is read-only in procedure i.e.the procedure can only read the value from it and but cannot return value to it. The direction of this parameter is from the calling program (client) to called program(server).</p>
<p><strong>OUT Parameter</strong>: It is write-only which means that the procedure can only return values to it, but cannot read any values from it. Direction is from server to client.</p>
<p><strong>INOUT Parameter</strong>: It can be used for both Read and Write. It is bi-directional i.e. from server to client as well as from client to server.</p>
<p>The post <a href="https://jharaphula.com/ado-net-architecture-examples-beginners/">ADO.NET ExecuteNonQuery, ExecuteReader, ExecuteScalar Examples</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://jharaphula.com/ado-net-architecture-examples-beginners/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			<media:content url="https://jharaphula.com/wp-content/uploads/2016/08/ado.jpg" medium="image" />
	</item>
		<item>
		<title>Example of Simple Responsive Jquery Range Slider using Jquery UI</title>
		<link>https://jharaphula.com/simple-responsive-jquery-range-slider/</link>
					<comments>https://jharaphula.com/simple-responsive-jquery-range-slider/#respond</comments>
		
		<dc:creator><![CDATA[Biswabhusan Panda]]></dc:creator>
		<pubDate>Wed, 27 Jul 2016 17:04:19 +0000</pubDate>
				<category><![CDATA[Learn JQuery with Examples]]></category>
		<category><![CDATA[Jquery range Slider]]></category>
		<category><![CDATA[JQuery Slideshow]]></category>
		<category><![CDATA[Jquery UI]]></category>
		<category><![CDATA[Responsive Design]]></category>
		<category><![CDATA[Slider using Jquery UI]]></category>
		<guid isPermaLink="false">http://jharaphula.com/?p=4330</guid>

					<description><![CDATA[<img width="300" height="180" src="https://jharaphula.com/wp-content/uploads/2016/07/Range-300x180.png" class="webfeedsFeaturedVisual wp-post-image" alt="Example of simple responsive Jquery range Slider using Jquery UI" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/07/Range-300x180.png 300w, https://jharaphula.com/wp-content/uploads/2016/07/Range.png 889w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>Generally we use range slider during we decide a specific range of value to input the system. For an example in a shopping cart application...</p>
<p>The post <a href="https://jharaphula.com/simple-responsive-jquery-range-slider/">Example of Simple Responsive Jquery Range Slider using Jquery UI</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></description>
										<content:encoded><![CDATA[<img width="300" height="180" src="https://jharaphula.com/wp-content/uploads/2016/07/Range-300x180.png" class="webfeedsFeaturedVisual wp-post-image" alt="Example of simple responsive Jquery range Slider using Jquery UI" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/07/Range-300x180.png 300w, https://jharaphula.com/wp-content/uploads/2016/07/Range.png 889w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>Generally we use range slider during we decide a specific range of value to input the system. For an example in a shopping cart application if you want to find out all dress materials with in your budget ($100 to $300) in such case range slider is very useful. To develop a responsive range slider from scratch is a time consuming job. Looking into this Jquery UI provides in-built Jquery range slider. It&#8217;s very easy and less time consuming <a href="https://jharaphula.com/job-professional-network-linkedin/" target="_blank" rel="noopener noreferrer">job</a> to implement in your application.</p>
<p>Look at the demo app below. Here in my HTML page I have 2 div&#8217;s. One is displaying range slider selected values while other one is responsible for Jquery UI slider. To integrate Jquery UI in the below app I referred Jquery library, Jquery UI CSS &amp; Jquery UI CDN links.</p>
<h2>To implement range Slider</h2>
<p>To implement range Slider I am applying Jquery UI in-built slider method to the div with id rangeSlider. To Configure my range Slider according to my inputs here I passed various parameters such as range, min, max &amp; values. By declaring range: true I am telling Jquery UI slider to provide me a range based Control. Using min &amp; max I am assigning the minimum and maximum value for the range Slider. Values are nothing but the initial range. Here my slider is showing range from 100 to 600 dollars. Initial during after page load by setting values to 200 to 400 I am showing the slider range in-between 200 to 400 dollars. For more API functions like Orientation or Slide you can refer <a href="http://api.jqueryui.com/slider/" target="_blank" rel="noopener noreferrer nofollow">http://api.jqueryui.com/slider/</a>.</p>
<p>This Jquery range slider is designed by Jquery UI. It is completely browser compatible and supports all modern browsers. Even you don&#8217;t need to worry about it&#8217;s responsiveness. Independent of all devices this range slider works fine. To the run the below app just copy the codes to a notepad file. Save it as a html file &amp; open in your browser. As in the below app we are referring CDN links make sure while running the app you are with internet connectivity.</p>
<h3>Example.htm</h3>
<pre class="brush: xml; title: ; notranslate">&lt;!DOCTYPE html&gt;
&lt;html&gt;
&lt;head&gt;
&lt;title&gt;Responsive Jquery range slider&lt;/title&gt;
&lt;link rel=&quot;stylesheet&quot; href=&quot;https://cdnjs.cloudflare.com/ajax/libs/jqueryui/1.12.0/jquery-ui.css&quot;&gt;
&lt;script src=&quot;https://code.jquery.com/jquery-3.1.0.min.js&quot;&gt;&lt;/script&gt;
&lt;script src=&quot;https://code.jquery.com/ui/1.11.4/jquery-ui.min.js&quot;&gt;&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
$(document).ready(function() {
$(&quot;#rangeSlider&quot;).slider ({
range: true,
min: 100,
max: 600,
values: [200, 400],
slide: function(event, ui) {
$(&quot;#priceRange&quot;).html(&quot;$&quot; + ui.values[0] + &quot; - $&quot; + ui.values[1]);
$(&quot;#minimumPrice&quot;).val(ui.values[0]);
$(&quot;#maximumPrice&quot;).val(ui.values[1]);
}
});
/* In real-time updating the value of range Slider to Span */
$(&quot;#priceRange&quot;).html(&quot;$&quot; + $(&quot;#rangeSlider&quot;).slider(&quot;values&quot;, 0) + &quot; - $&quot; + $(&quot;#rangeSlider&quot;).slider(&quot;values&quot;, 1));
});
&lt;/script&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;div&gt;Selected Range: &lt;span id=&quot;priceRange&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div id=&quot;rangeSlider&quot;&gt;&lt;/div&gt;
&lt;/body&gt;
&lt;/html&gt;</pre>
<h2>jQuery Range Slider Using jQuery UI</h2>
<p>Range sliders are essential UI components that allow users to select a value or range of values within a specified minimum and maximum limit. They enhance user interaction by providing a visual and intuitive way to input data. jQuery UI, a popular library built on top of jQuery, provides a simple yet powerful way to implement range sliders with minimal coding.</p>
<h2>Understanding jQuery UI Slider</h2>
<p>The jQuery UI Slider widget converts a standard HTML element into an interactive slider. It supports single handles for selecting a single value or multiple handles for defining a range. The slider can be customized in terms of appearance, behavior, and functionality, making it suitable for various applications such as price filters, volume controls, and data visualization.</p>
<h2>Key Features of jQuery UI Slider</h2>
<p>1. Customizable Range – Define minimum and maximum values.<br />
2. Single or Dual Handles – Choose between a single slider or a range slider.<br />
3. Step Increments – Set predefined intervals for slider movement.<br />
4. Smooth Animation – Enable or disable sliding animation.<br />
5. Event Handling – Respond to user interactions like sliding, start, and stop.<br />
6. Theming – Apply jQuery UI’s built-in themes or custom CSS.</p>
<h2>Best Practices</h2>
<p>1. <strong>Accessibility</strong> – Ensure keyboard navigation and ARIA attributes for screen readers.<br />
2. <strong>Responsive Design</strong> – Adjust slider dimensions for different screen sizes.<br />
3. <strong>Performance Optimization</strong> – Avoid heavy computations in event handlers.<br />
4. <strong>Fallback Mechanism</strong> – Provide an alternative input method for non-JavaScript users.</p>
<h2>Conclusion</h2>
<p>The jQuery UI range slider is a flexible and user-friendly component that enhances web applications by providing an intuitive way to select values. With its extensive customization options and ease of implementation, it remains a preferred choice for developers. By following best practices and leveraging advanced features, you can create interactive sliders that improve user experience across various use cases. The ability to integrate smoothly with existing JavaScript code makes it a valuable tool in modern web development.</p>
<p>The post <a href="https://jharaphula.com/simple-responsive-jquery-range-slider/">Example of Simple Responsive Jquery Range Slider using Jquery UI</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://jharaphula.com/simple-responsive-jquery-range-slider/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			<media:content url="https://jharaphula.com/wp-content/uploads/2016/07/Range.png" medium="image" />
	</item>
		<item>
		<title>Google like Autosuggestion Search Box using PHP, MySQL &#038; Jquery</title>
		<link>https://jharaphula.com/google-like-autosuggestion-search-box-using-php-mysql-jquery/</link>
					<comments>https://jharaphula.com/google-like-autosuggestion-search-box-using-php-mysql-jquery/#respond</comments>
		
		<dc:creator><![CDATA[Biswabhusan Panda]]></dc:creator>
		<pubDate>Thu, 21 Jul 2016 15:15:01 +0000</pubDate>
				<category><![CDATA[Learn PHP with Examples]]></category>
		<category><![CDATA[AngularJS Search Filter]]></category>
		<category><![CDATA[Autosuggestion Search Box]]></category>
		<category><![CDATA[Script for PHP]]></category>
		<category><![CDATA[Search Box using PHP]]></category>
		<guid isPermaLink="false">http://jharaphula.com/?p=4258</guid>

					<description><![CDATA[<img width="300" height="187" src="https://jharaphula.com/wp-content/uploads/2016/07/autosuggestion-search-box-300x187.png" class="webfeedsFeaturedVisual wp-post-image" alt="Google like autosuggestion Search box using PHP, MySQL &amp; Jquery" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/07/autosuggestion-search-box-300x187.png 300w, https://jharaphula.com/wp-content/uploads/2016/07/autosuggestion-search-box.png 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>Web is the house of information. Millions are working Day &#38; Night to make the Web better. In this rush to locate correct information from...</p>
<p>The post <a href="https://jharaphula.com/google-like-autosuggestion-search-box-using-php-mysql-jquery/">Google like Autosuggestion Search Box using PHP, MySQL &amp; Jquery</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></description>
										<content:encoded><![CDATA[<img width="300" height="187" src="https://jharaphula.com/wp-content/uploads/2016/07/autosuggestion-search-box-300x187.png" class="webfeedsFeaturedVisual wp-post-image" alt="Google like autosuggestion Search box using PHP, MySQL &amp; Jquery" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/07/autosuggestion-search-box-300x187.png 300w, https://jharaphula.com/wp-content/uploads/2016/07/autosuggestion-search-box.png 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>Web is the house of information. Millions are working Day &amp; Night to make the Web better. In this rush to locate correct information from Search engines you required to search wisely. You must noticed sometime it was difficult to find out a suitable search string according to the need. In such case autosuggestion facility works awesome. The king of Search engines Google provides this facility. To implement the same in your application with this demo I created an autosuggestion Search box using PHP and jQuery. Data I am fetching from MySQL Database.</p>
<p>To create this demo here I am with 4 files index.htm, main.css, loading.js &amp; live-Search.php. The HTML file contains a Container which hold an input control with id txtSearch. Below the Search box I have a div to display autosuggestion strings. Initial during page load I hided this using CSS display:none.</p>
<h3>index.htm</h3>
<pre class="brush: xml; title: ; notranslate">&lt;!DOCTYPE html&gt;
&lt;html lang=&quot;en&quot;&gt;
&lt;head&gt;
&lt;title&gt;Google like autosuggestion Search box using PHP&lt;/title&gt;
&lt;script src=&quot;https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js&quot;&gt;&lt;/script&gt;
&lt;script src=&quot;loading.js&quot;&gt;&lt;/script&gt;
&lt;link rel=&quot;stylesheet&quot; href=&quot;main.css&quot; /&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;div class=&quot;container&quot;&gt;
&lt;input type=&quot;text&quot; id=&quot;txtSearch&quot; placeholder=&quot;Search our Faculty Database&quot; /&gt;&lt;br /&gt; 
&lt;div id=&quot;SearchResults&quot;&gt;&lt;/div&gt;
&lt;/div&gt; 
&lt;/body&gt;
&lt;/html&gt;</pre>
<p>The below CSS file gives look n feel to my <a href="https://jharaphula.com/list-of-html5-new-tags/" rel="noopener noreferrer" target="_blank">HTML elements</a>. Here depending upon the width of Search box I applied the same to Search result div.</p>
<h3>main.css</h3>
<pre class="brush: css; title: ; notranslate">.container { margin: 0 auto; padding-top: 150px; width: 600px; }
#txtSearch { width:600px; border:solid 1px #000000; padding:10px; font-size:16px; }
#SearchResults { position:absolute; width:600px; padding:10px; display:none; margin-top:-1px; border-top:0px; overflow:hidden; border:1px #CCC solid; background: #FFF; }
.res-pan { border-bottom: 1px dashed #999; font-size: 16px; height: 40px; }
.res-pan:hover { background: #2E237A; cursor:pointer; color:#FFFFFF; }
.live-results { width: 100%; height: 100%; padding-top: 8px; }</pre>
<p>Core logic for autosuggestion Search box is running inside the below JS file. Here using Jquery I am tracking the keyup event of the Search box. Inside this using <a href="https://jharaphula.com/jquery-ajax-example/" rel="noopener noreferrer" target="_blank">Jquery Ajax method</a> I am sending user inputs to live-Search.php. To maintain secure data transmission in Ajax call I used POST method.</p>
<h3>loading.js</h3>
<pre class="brush: jscript; title: ; notranslate">$(document).ready(function(){
/* During page load Clearing the Search Box value */
$(&quot;#txtSearch&quot;).val('');
/* Setting Focus to Search Box */
$(&quot;#txtSearch&quot;).focus();
/* Handling Keyup event for Search Box */
$(&quot;#txtSearch&quot;).keyup(function(){
var queryStr = $(this).val();
var dataString = 'SearchString='+ queryStr;
if(queryStr!='')
{
$.ajax({
type: &quot;POST&quot;,
url: &quot;live-Search.php&quot;,
data: dataString,
cache: false,
success: function(html)
{
$(&quot;#SearchResults&quot;).html(html).show();
$(&quot;.live-results&quot;).on(&quot;click&quot;,function() {	
$(&quot;#txtSearch&quot;).val($(this).html());
$(&quot;#SearchResults&quot;).fadeOut();
});
}
});
}
return false; 
});

$(document).on(&quot;click&quot;, function(e) { 
var clicked = $(e.target);
if (!clicked.hasClass(&quot;live-results&quot;)){
$(&quot;#SearchResults&quot;).fadeOut(); 
}
});
});</pre>
<p>In success event of Jquery Ajax method I am binding the response data to SearchResults div. Here my response data is pure HTML. Which is programmed in below PHP file. This HTML contains a div with class name live-results. After displaying autosuggestion pan to handle user selection I am assigning the selected value to Search box inside the live-results click event. Once the selected value mapped to Search box I am hiding the Search results pan.</p>
<h3>live-Search.php</h3>
<pre class="brush: php; title: ; notranslate">&lt;?php
$connection = mysql_connect(&quot;localhost&quot;, &quot;root&quot;);
mysql_select_db(&quot;demo_db&quot;, $connection);
if($_POST)
{
$q = $_POST['SearchString'];
$sqlRes = mysql_query(&quot;select faculty_id,faculty_name from faculty where faculty_name like '%$q%' order by faculty_id LIMIT 5&quot;);

while($row=mysql_fetch_array($sqlRes))
{
$username   = $row['faculty_name'];
?&gt;
&lt;div class=&quot;res-pan&quot;&gt;
&lt;div class=&quot;live-results&quot;&gt;&lt;?php echo $username; ?&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;?php
}
}
?&gt;</pre>
<p>The above PHP file is fetching user inputs from Jquery Ajax method using $_POST[&#8216;SearchString&#8217;]. Then using a MySQL Select query I am using wild-char Search with limit of 5 records. Then displaying those data inside a while loop using div. To apply CSS on these div&#8217;s I assigned Classes to them.</p>
<p>For demo purpose in MySQL create a db with name &#8220;demo_db&#8221;. Then using the following query Create a table for Faculty. </p>
<pre class="brush: sql; title: ; notranslate">CREATE TABLE Faculty (
Faculty_ID INT NOT NULL AUTO_INCREMENT,
Faculty_Name VARCHAR(70) NOT NULL,
Email_ID VARCHAR(60) NOT NULL,
Mobile_Number VARCHAR(10) NOT NULL,
PRIMARY KEY (Faculty_ID)
);</pre>
<p>Once the table Created successfully insert data using the following SQL statements.</p>
<pre class="brush: sql; title: ; notranslate">INSERT INTO faculty(Faculty_Name, Email_ID, Mobile_Number) VALUES ('Abhishek Bachchan','abhishek@gmail.com','9823234566');
INSERT INTO faculty(Faculty_Name, Email_ID, Mobile_Number) VALUES ('Bijayalaxmi Sahoo','bijayalaxmi@gmail.com','8773325680');
INSERT INTO faculty(Faculty_Name, Email_ID, Mobile_Number) VALUES ('Manmohan Desai','manmohan.desai@gmail.com','7734698800');
INSERT INTO faculty(Faculty_Name, Email_ID, Mobile_Number) VALUES ('Naveen Patnaik','naveen.p@gmail.com','8775600027');
INSERT INTO faculty(Faculty_Name, Email_ID, Mobile_Number) VALUES ('Poonam Jhawar','poonam.jhawar@gmail.com','9096266548');
INSERT INTO faculty(Faculty_Name, Email_ID, Mobile_Number) VALUES ('Poonam Pandey','poonam.p@gmail.com','8772282800');
INSERT INTO faculty(Faculty_Name, Email_ID, Mobile_Number) VALUES ('Ravi Shankar','ravi.shankar@gmail.com','9258733647');
INSERT INTO faculty(Faculty_Name, Email_ID, Mobile_Number) VALUES ('Nibedita Panda','nibedita.panda@gmail.com','9227855677');
INSERT INTO faculty(Faculty_Name, Email_ID, Mobile_Number) VALUES ('Gitanjali Swamy','gitanjali@gmail.com','8227699000');
INSERT INTO faculty(Faculty_Name, Email_ID, Mobile_Number) VALUES ('Ravi Srivastab','ravi.srivastab@gmail.com','7433309768');
INSERT INTO faculty(Faculty_Name, Email_ID, Mobile_Number) VALUES ('Rani Mukherjee','rani.mukherjee@gmail.com','8227899003');
INSERT INTO faculty(Faculty_Name, Email_ID, Mobile_Number) VALUES ('Meghana Kaushik','meghana.k@gmail.com','8923764466');
INSERT INTO faculty(Faculty_Name, Email_ID, Mobile_Number) VALUES ('Rituraj Mohanty','rituraj.mohanty@gmail.com','9096874588');
INSERT INTO faculty(Faculty_Name, Email_ID, Mobile_Number) VALUES ('Meghana Raj','meghana.raj@gmail.com','9896355454');
INSERT INTO faculty(Faculty_Name, Email_ID, Mobile_Number) VALUES ('Sanchita Shetty','sanchita.shetty@gmail.com','7878654321');
INSERT INTO faculty(Faculty_Name, Email_ID, Mobile_Number) VALUES ('Ramya Krishnan','ramya.krishnan@gmail.com','9888766543');</pre>
<p>Hope the above explanation will make you clear about the logic behind this demo app. Enrich your application Search facility with autosuggestion. This will make your application much user friendly.</p>
<p>The post <a href="https://jharaphula.com/google-like-autosuggestion-search-box-using-php-mysql-jquery/">Google like Autosuggestion Search Box using PHP, MySQL &amp; Jquery</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://jharaphula.com/google-like-autosuggestion-search-box-using-php-mysql-jquery/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			<media:content url="https://jharaphula.com/wp-content/uploads/2016/07/autosuggestion-search-box.png" medium="image" />
	</item>
		<item>
		<title>How to Export data from MySQL to Excel using PHP?</title>
		<link>https://jharaphula.com/export-data-from-mysql-to-excel-php/</link>
					<comments>https://jharaphula.com/export-data-from-mysql-to-excel-php/#respond</comments>
		
		<dc:creator><![CDATA[Biswabhusan Panda]]></dc:creator>
		<pubDate>Sun, 17 Jul 2016 06:19:36 +0000</pubDate>
				<category><![CDATA[Learn PHP with Examples]]></category>
		<category><![CDATA[Database Terminologies]]></category>
		<category><![CDATA[Display Excel File records]]></category>
		<category><![CDATA[Export data from MySQL]]></category>
		<category><![CDATA[How to Bind Data?]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[MySQL to Excel using PHP]]></category>
		<guid isPermaLink="false">http://jharaphula.com/?p=4232</guid>

					<description><![CDATA[<img width="300" height="193" src="https://jharaphula.com/wp-content/uploads/2016/07/Export-to-Excel-using-PHP-300x193.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="How to Export data from MySQL to Excel using PHP?" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/07/Export-to-Excel-using-PHP-300x193.jpg 300w, https://jharaphula.com/wp-content/uploads/2016/07/Export-to-Excel-using-PHP-294x190.jpg 294w, https://jharaphula.com/wp-content/uploads/2016/07/Export-to-Excel-using-PHP.jpg 798w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>Decade back MS-Excel is one of most popular data inter-exchange platform. Looking into it&#8217;s popularity Excel file is supported by Window, Linux, Mac OS X,...</p>
<p>The post <a href="https://jharaphula.com/export-data-from-mysql-to-excel-php/">How to Export data from MySQL to Excel using PHP?</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></description>
										<content:encoded><![CDATA[<img width="300" height="193" src="https://jharaphula.com/wp-content/uploads/2016/07/Export-to-Excel-using-PHP-300x193.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="How to Export data from MySQL to Excel using PHP?" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/07/Export-to-Excel-using-PHP-300x193.jpg 300w, https://jharaphula.com/wp-content/uploads/2016/07/Export-to-Excel-using-PHP-294x190.jpg 294w, https://jharaphula.com/wp-content/uploads/2016/07/Export-to-Excel-using-PHP.jpg 798w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>Decade back MS-Excel is one of most popular data inter-exchange platform. Looking into it&#8217;s popularity Excel file is supported by Window, Linux, Mac OS X, Android &amp; iOS. Compare to Other spreadsheets Excel is rich with many advanced functionalities such as Calculation, Formula Feeding, Pivot Tables, Graphics tools, Data visuals or Macro programming. This is the reason Customer wants Export to Excel facility in their application.</p>
<p>Generally during we display tabular data in a web page for sharing purpose we do implement export to excel button. For every user it&#8217;s many not possible to give access to the System. The cause using an excel sheet we can easily share data to the respective authority. In the below demo I am fetching data from a MySQL Database table and exporting those data to an excel file using <a href="https://jharaphula.com/category/programming-solutions/php-demo-apps/" rel="noopener noreferrer" target="_blank">PHP programming</a>.</p>
<p>To export data from MySQL to excel, here under MySQL Database &#8220;temp_db&#8221; I created a Table &#8220;ManagerDetails&#8221;. Which holds managers details.</p>
<h3>Create Table</h3>
<pre class="brush: sql; title: ; notranslate">CREATE TABLE IF NOT EXISTS ManagerDetails (
Manager_ID varchar(10) NOT NULL DEFAULT '', 
Manager_Name varchar(200) NOT NULL DEFAULT '', 
Manager_Designation varchar(200) NOT NULL DEFAULT '', 
Manager_Salary varchar(20) NOT NULL DEFAULT '0', 
PRIMARY KEY (Manager_ID) 
)</pre>
<h3>Insert Records for Demo purpose</h3>
<pre class="brush: sql; title: ; notranslate">INSERT INTO ManagerDetails (Manager_ID, Manager_Name, Manager_Designation, Manager_Salary) VALUES
(1, 'Sujata Mohapatra', 'Sr. Manager', '28000'),
(2, 'Ravi Ranjan Dash', 'Program Manager', '32000'),
(3, 'Bijaylakshmi Dash', 'Business Manager', '48000'),
(4, 'Rosalin Roy', 'Sr. Program Manager', '62000'),
(5, 'Nibedita Mahapatra', 'Jr. Manager', '18000'),
(6, 'Meghana Roy', 'Sr. Manager', '35000'),
(7, 'Manamohan Mohanty', 'Sr. Team Lead', '23000'),
(8, 'Rupak Maharana', 'Business Head', '36000'),
(9, 'Ramkrishna Dalei', 'QA Manager', '18000'),
(10, 'Puspashree Mishra', 'Team Leader', '15000'),
(11, 'Jayshree Moharana', 'Sr. Project Manager', '55000'),
(12, 'Ravi Prakash Dash', 'Business Head', '42000');</pre>
<p>Then to Fetch Data from &#8220;ManagerDetails.php&#8221; first I am establishing Database Connection. Once after the Successful Connection executing a <a href="https://jharaphula.com/sql-queries-with-example/" rel="noopener noreferrer" target="_blank">SQL query</a> to fetch data. To customize output Excel File Name here I declared a variable $FileName. Currently here I decided the File Name as &#8220;ManagerDetails.xls&#8221;. You can update this as per your requirements.</p>
<p>To generate an Excel File after File Name I am declaring Excel File Header information. Then inside a while loop I am storing &#8220;mysql_fetch_assoc($manager_query)&#8221; to $row variable. Which holds database records. To print those values to an Excel File I am using echo command. To create several columns in Excel during echo command I am using &#8220;/t&#8221; (Tab) after each column of $row. Similarly for new line at the end of echo command using &#8220;/n&#8221;.</p>
<h3>ManagerDetails.php</h3>
<pre class="brush: php; title: ; notranslate">&lt;?php
/* Establishing MySQL Database Connection */
$sql_query=mysql_connect(&quot;localhost&quot;, &quot;root&quot;);
mysql_select_db(&quot;temp_db&quot;, $sql_query);

/* Executing query to Fetch Data from MySQL Table */
$manager_query=mysql_query(&quot;SELECT * FROM ManagerDetails&quot;);

/* Function to Filter each data row */
function FilterSpecialChars(&amp;$str)
{
$str = preg_replace(&quot;/\t/&quot;, &quot;\\t&quot;, $str);
$str = preg_replace(&quot;/\r?\n/&quot;, &quot;\\n&quot;, $str);
if(strstr($str, '&quot;')) $str = '&quot;' . str_replace('&quot;', '&quot;&quot;', $str) . '&quot;';
}

/* Place to Define File Name for your Excel File */
$FileName = &quot;ManagerDetails&quot; . &quot;.xls&quot;;

/*Setting File Header information for Excel*/
header(&quot;Content-Disposition: attachment; filename=\&quot;$FileName\&quot;&quot;);
header(&quot;Content-Type: application/vnd.ms-excel&quot;);

/* Running loop to display each row of Data */
while($row = mysql_fetch_assoc($manager_query)){
// filter data
array_walk($row, 'FilterSpecialChars');
echo $row['Manager_Name'] . &quot;\t&quot; . $row['Manager_Designation'] . &quot;\t&quot; . $row['Manager_Salary'] . &quot;\n&quot;;
}

exit;
?&gt;</pre>
<p>The post <a href="https://jharaphula.com/export-data-from-mysql-to-excel-php/">How to Export data from MySQL to Excel using PHP?</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://jharaphula.com/export-data-from-mysql-to-excel-php/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			<media:content url="https://jharaphula.com/wp-content/uploads/2016/07/Export-to-Excel-using-PHP.jpg" medium="image" />
	</item>
		<item>
		<title>Easily Customizable Simple pure CSS3 Treeview Example</title>
		<link>https://jharaphula.com/simple-pure-css-treeview-example/</link>
					<comments>https://jharaphula.com/simple-pure-css-treeview-example/#respond</comments>
		
		<dc:creator><![CDATA[Biswabhusan Panda]]></dc:creator>
		<pubDate>Tue, 12 Jul 2016 16:37:16 +0000</pubDate>
				<category><![CDATA[CSS Tricks with Examples]]></category>
		<category><![CDATA[AngularJS Treeview Example]]></category>
		<category><![CDATA[CSS3 New Features]]></category>
		<category><![CDATA[menu using pure CSS]]></category>
		<category><![CDATA[Pure CSS Treeview Example]]></category>
		<guid isPermaLink="false">http://jharaphula.com/?p=4198</guid>

					<description><![CDATA[<img width="300" height="168" src="https://jharaphula.com/wp-content/uploads/2016/07/Pure-CSS-Treeview-300x168.png" class="webfeedsFeaturedVisual wp-post-image" alt="Easily Customizable Simple pure CSS Treeview Example" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/07/Pure-CSS-Treeview-300x168.png 300w, https://jharaphula.com/wp-content/uploads/2016/07/Pure-CSS-Treeview.png 742w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>Generally to display hierarchy of Data we use a Treeview Control. The major advantages of a Treeview control is it loads data partially as per...</p>
<p>The post <a href="https://jharaphula.com/simple-pure-css-treeview-example/">Easily Customizable Simple pure CSS3 Treeview Example</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></description>
										<content:encoded><![CDATA[<img width="300" height="168" src="https://jharaphula.com/wp-content/uploads/2016/07/Pure-CSS-Treeview-300x168.png" class="webfeedsFeaturedVisual wp-post-image" alt="Easily Customizable Simple pure CSS Treeview Example" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/07/Pure-CSS-Treeview-300x168.png 300w, https://jharaphula.com/wp-content/uploads/2016/07/Pure-CSS-Treeview.png 742w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>Generally to display hierarchy of Data we use a Treeview Control. The major advantages of a Treeview control is it loads data partially as per the event triggered. I mean if you have bulk data to display, Treeview is the best option. While loading data depending upon the user click you can expand the specific node with data. From my experience I can say Compare to Script based Treeview pure CSS Treeview performs faster during operation.</p>
<p>In this demo app I Created a expandable and collapsible Treeview using pure CSS and HTML5. It&#8217;s simple and can easily Customizable according to your project requirement. To develop this Treeview in my <a href="https://jharaphula.com/list-of-html5-new-tags/" target="_blank" rel="noopener noreferrer">HTML</a> page I am using Order list (OL). Where each li contains nodes as File or Folder. Refer my CSS structure here li presents a Folder. If a li is with the CSS Class &#8220;each-node&#8221; then it re-presents File. To achieve Sub nodes I am using ol element under Folder li.</p>
<p>In CSS for each node I am checking the file extension and showing &#8220;page.png&#8221; image. If required you can update this to specific image Files. To handle the toggle operation I am applying checked attribute over each checkbox. To prevent Checkboxes from user view I am hiding them using &#8220;display: none&#8221;. Using the Tree view you can create upto n number of nodes with any depth.</p>
<h2>Pure CSS3 Customizable Treeview Example</h2>
<pre class="brush: xml; title: ; notranslate">&lt;!DOCTYPE html&gt;
&lt;html&gt;
&lt;head&gt;
&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html;charset=utf-8&quot; /&gt;
&lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;main.css&quot; /&gt;
&lt;title&gt;Simple pure CSS Treeview Example&lt;/title&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;!-- Ordered list For Treeview --&gt;
&lt;ol class=&quot;tree-demo&quot;&gt;
&lt;li&gt;
&lt;label for=&quot;rootFolder&quot;&gt;SEO&lt;/label&gt;&lt;input type=&quot;checkbox&quot; id=&quot;rootFolder&quot; /&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;label for=&quot;onpageFolder&quot;&gt;On-page SEO&lt;/label&gt;&lt;input type=&quot;checkbox&quot; id=&quot;onpageFolder&quot; /&gt;
&lt;ol&gt;
&lt;li class=&quot;each-node&quot;&gt;&lt;a href=&quot;#&quot;&gt;Title Optimization&lt;/a&gt;&lt;/li&gt;
&lt;li class=&quot;each-node&quot;&gt;&lt;a href=&quot;#&quot;&gt;Keywords Optimization&lt;/a&gt;&lt;/li&gt;
&lt;li class=&quot;each-node&quot;&gt;&lt;a href=&quot;#&quot;&gt;Meta Tag Optimization&lt;/a&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;label for=&quot;offpageFolder&quot;&gt;Off-page SEO&lt;/label&gt;&lt;input type=&quot;checkbox&quot; id=&quot;offpageFolder&quot; /&gt;
&lt;ol&gt;
&lt;li class=&quot;each-node&quot;&gt;&lt;a href=&quot;#&quot;&gt;Link Building&lt;/a&gt;&lt;/li&gt;
&lt;li class=&quot;each-node&quot;&gt;&lt;a href=&quot;#&quot;&gt;Social Media Marketing&lt;/a&gt;&lt;/li&gt;
&lt;li class=&quot;each-node&quot;&gt;&lt;a href=&quot;#&quot;&gt;Forum Posting&lt;/a&gt;&lt;/li&gt;
&lt;li class=&quot;each-node&quot;&gt;&lt;a href=&quot;#&quot;&gt;Email Marketing&lt;/a&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li class=&quot;each-node&quot;&gt;&lt;a href=&quot;#&quot;&gt;Others&lt;/a&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li class=&quot;each-node&quot;&gt;&lt;a href=&quot;#&quot;&gt;Web Design&lt;/a&gt;&lt;/li&gt;
&lt;li class=&quot;each-node&quot;&gt;&lt;a href=&quot;#&quot;&gt;Graphics Designing&lt;/a&gt;&lt;/li&gt;
&lt;li class=&quot;each-node&quot;&gt;&lt;a href=&quot;#&quot;&gt;DevOps&lt;/a&gt;&lt;/li&gt;
&lt;li class=&quot;each-node&quot;&gt;&lt;a href=&quot;#&quot;&gt;Digital Marketing&lt;/a&gt;&lt;/li&gt;
&lt;li class=&quot;each-node&quot;&gt;&lt;a href=&quot;#&quot;&gt;Pay Per Click program&lt;/a&gt;&lt;/li&gt;
&lt;li class=&quot;each-node&quot;&gt;&lt;a href=&quot;#&quot;&gt;Domain Registration&lt;/a&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/body&gt;
&lt;/html&gt;</pre>
<h2>main.css</h2>
<p>Using this CSS3 Treeview you can use specific icons with your nodes for File. Here in the below sample code I am checking for 4 kinds of Files pdf, html, css and js. In style here I am using Verdana, Helvetica fonts for my treeview. To make the toggle function live in this demo app I am using 2 images Toggle-Expand.png and Toggle-Collapse.png. For demo purpose you can download these images from here.</p>
<pre class="brush: css; title: ; notranslate">body, li { background: #424242; color: #FFF; margin: 0; padding: 0; font-family: Verdana, Helvetica; }
img { border: none; }

/* CSS Treeview Styles */
ol.tree-demo { padding: 0 0 0 30px; width: 300px; }
li { position: relative; margin-left: -15px; list-style: none; }
li.each-node { margin-left: -1px !important; }
li.each-node a { background: url(page.png) 0 0 no-repeat; display: block; padding-left: 21px; color: #fff; text-decoration: none; }

/* Checking document type to Show page icon */
li.each-node a[href *= '.pdf']	{ background: url(page.png) 0 0 no-repeat; }
li.each-node a[href *= '.html']	{ background: url(page.png) 0 0 no-repeat; }
li.each-node a[href $= '.css']	{ background: url(page.png) 0 0 no-repeat; }
li.each-node a[href $= '.js']	{ background: url(page.png) 0 0 no-repeat; }

li input { position: absolute; left: 0; opacity: 0; margin-left: 0; cursor: pointer; z-index: 2; width: 1em; height: 1em; top: 0; }
li input + ol { background: url(Toggle-Expand.png) 40px 0 no-repeat; height: 1em; margin: -0.938em 0 0 -44px; }
li input + ol &gt; li { display: none; margin-left: -14px !important; padding-left: 1px; }
li label { background: rgba(0, 0, 0, 0) url(&quot;Folder-Symbol.png&quot;) no-repeat scroll 12px 3px; padding-left: 36px; cursor: pointer; display: block; }
li input:checked + ol { background: rgba(0, 0, 0, 0) url(&quot;Toggle-Collapse.png&quot;) no-repeat scroll 40px 5px; height: auto; margin: -1.25em 0 0 -44px; padding: 1.563em 0 0 80px; }
li input + ol { position: relative; top: -3px; }
li input:checked + ol &gt; li { display: block; margin: 0 0 0.125em; }
li input:checked + ol &gt; li:last-child { margin: 0 0 0.063em; }</pre>
<p>In the above CSS Codes I used 1 CSS pseudo-class :last-child.</p>
<h2>Required images for Simple Treeview</h2>
<p>Here for demo purpose I created the below 4 images. You can use these images in any treeview control.</p>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-4206" src="https://jharaphula.com/wp-content/uploads/2016/07/Folder-Symbol.png" alt="Folder-Symbol" width="16" height="16" /></p>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-4207" src="https://jharaphula.com/wp-content/uploads/2016/07/page.png" alt="page" width="16" height="16" /></p>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-4208" src="https://jharaphula.com/wp-content/uploads/2016/07/Toggle-Collapse.png" alt="Toggle-Collapse" width="16" height="16" /></p>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-4209" src="https://jharaphula.com/wp-content/uploads/2016/07/Toggle-Expand.png" alt="Toggle-Expand" width="16" height="16" /></p>
<p>The post <a href="https://jharaphula.com/simple-pure-css-treeview-example/">Easily Customizable Simple pure CSS3 Treeview Example</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://jharaphula.com/simple-pure-css-treeview-example/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			<media:content url="https://jharaphula.com/wp-content/uploads/2016/07/Pure-CSS-Treeview.png" medium="image" />
	</item>
		<item>
		<title>Easily Customizable pure CSS Tab view Control Example</title>
		<link>https://jharaphula.com/pure-css-tab-control-example/</link>
					<comments>https://jharaphula.com/pure-css-tab-control-example/#respond</comments>
		
		<dc:creator><![CDATA[Biswabhusan Panda]]></dc:creator>
		<pubDate>Mon, 11 Jul 2016 18:01:18 +0000</pubDate>
				<category><![CDATA[CSS Tricks with Examples]]></category>
		<category><![CDATA[Customizable pure CSS Tab]]></category>
		<category><![CDATA[Dynamic Tabs using BootStrap]]></category>
		<category><![CDATA[menu using pure CSS]]></category>
		<category><![CDATA[Pure CSS Treeview Example]]></category>
		<category><![CDATA[Tab view Control Example]]></category>
		<guid isPermaLink="false">http://jharaphula.com/?p=4187</guid>

					<description><![CDATA[<img width="300" height="160" src="https://jharaphula.com/wp-content/uploads/2016/07/Easily-Customizable-CSS-Tabs-300x160.png" class="webfeedsFeaturedVisual wp-post-image" alt="Easily Customizable pure CSS tab Control Example" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/07/Easily-Customizable-CSS-Tabs-300x160.png 300w, https://jharaphula.com/wp-content/uploads/2016/07/Easily-Customizable-CSS-Tabs-604x320.png 604w, https://jharaphula.com/wp-content/uploads/2016/07/Easily-Customizable-CSS-Tabs.png 804w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>To display multiple panels in a specific area generally we prefer to use tab view. Tab view is a user friendly Control. The major advantages...</p>
<p>The post <a href="https://jharaphula.com/pure-css-tab-control-example/">Easily Customizable pure CSS Tab view Control Example</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></description>
										<content:encoded><![CDATA[<img width="300" height="160" src="https://jharaphula.com/wp-content/uploads/2016/07/Easily-Customizable-CSS-Tabs-300x160.png" class="webfeedsFeaturedVisual wp-post-image" alt="Easily Customizable pure CSS tab Control Example" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/07/Easily-Customizable-CSS-Tabs-300x160.png 300w, https://jharaphula.com/wp-content/uploads/2016/07/Easily-Customizable-CSS-Tabs-604x320.png 604w, https://jharaphula.com/wp-content/uploads/2016/07/Easily-Customizable-CSS-Tabs.png 804w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>To display multiple panels in a specific area generally we prefer to use tab view. Tab view is a user friendly Control. The major advantages of Tab view Control is it loads once during page load. Once the tab view appeared in a HTML page then during navigation it doesn&#8217;t required page refresh. I noticed in many web developers are using Script based tab Control. But Compare to Script based tab Control pure CSS tab view Control <a href="https://jharaphula.com/best-wordpress-plugins-optimize-pagespeed/" target="_blank" rel="noopener noreferrer">gives better performance</a>. The cause in this demo app I created an easily customizable pure CSS tabs for you.</p>
<p>The logic I implemented here is so simple. In my HTML page I have one UL element which contains 6 li elements. The First li element is with Tab links in the shape of HTML label controls. Which internally linked through id to respective radio buttons. Here I used radio type input box to take benefits of Single selection. I mean while tab 1 is active other tabs required to stay disabled. After First child of UL element rest li&#8217;s are with a radio button and div. Div&#8217;s are responsible to hold panel contents. As per your requirement here you can add n number of tabs. To run this demo app simply copy the following files to the root directory and open index.html.</p>
<h3>index.htm</h3>
<pre class="brush: xml; title: ; notranslate">&lt;!DOCTYPE html&gt;
&lt;html&gt;
&lt;head&gt;
&lt;title&gt;Pure CSS tab Control Example&lt;/title&gt;
&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=utf-8&quot; /&gt;
&lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;main.css&quot;/&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;h2&gt;Example to Create your Own CSS Tabs&lt;/h2&gt;
&lt;ul class=&quot;tabs-ctrl&quot;&gt;
&lt;li class=&quot;link-labels&quot;&gt;
&lt;label for=&quot;tab-rbtn-1&quot; id=&quot;tab-label-1&quot;&gt;Link 1&lt;/label&gt;
&lt;label for=&quot;tab-rbtn-2&quot; id=&quot;tab-label-2&quot;&gt;Link 2&lt;/label&gt;
&lt;label for=&quot;tab-rbtn-3&quot; id=&quot;tab-label-3&quot;&gt;Link 3&lt;/label&gt;
&lt;label for=&quot;tab-rbtn-4&quot; id=&quot;tab-label-4&quot;&gt;Link 4&lt;/label&gt;
&lt;label for=&quot;tab-rbtn-5&quot; id=&quot;tab-label-5&quot;&gt;Link 5&lt;/label&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;input type=&quot;radio&quot; checked name=&quot;tabs&quot; id=&quot;tab-rbtn-1&quot;&gt;
&lt;div id=&quot;tab-inner-1&quot; class=&quot;tab-inner&quot;&gt;
&lt;h2&gt;Link 1&lt;/h2&gt;
After the Success of his other books, Sanjeev Kapoor continues to enter the hearts of food lovers through their Stomachs.
&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;input type=&quot;radio&quot; name=&quot;tabs&quot; id=&quot;tab-rbtn-2&quot;&gt;
&lt;div id=&quot;tab-inner-2&quot; class=&quot;tab-inner&quot;&gt;
&lt;h2&gt;Link 2&lt;/h2&gt;
In this book he hands us the key to a delicious khazana of Indian cuisines. It offers several recipes that have been chosen from a vast repertoire of delicacies in Indian cooking. Called Khana Khazana: Celebration of Indian cookery, this book, now in its seventh edition, has been designed to familiarize food lovers with a long forgotten cuisine. 
&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;input type=&quot;radio&quot; name=&quot;tabs&quot; id=&quot;tab-rbtn-3&quot;&gt;  
&lt;div id=&quot;tab-inner-3&quot; class=&quot;tab-inner&quot;&gt;
&lt;h2&gt;Link 3&lt;/h2&gt;
Indian cuisine is getting popularity all over the world and is available in the most parts of the globe but it is restricted to a select few dishes. There is an enormous range that remains unexplored. Each of the state and each region has its own cuisine and local flavor. In this book, we are introduced to a variety of dishes that have been perfected by our ancestors.
&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;input type=&quot;radio&quot; name=&quot;tabs&quot; id=&quot;tab-rbtn-4&quot;&gt;  
&lt;div id=&quot;tab-inner-4&quot; class=&quot;tab-inner&quot;&gt;
&lt;h2&gt;Link 4&lt;/h2&gt;
Here is an array of vegetarian, non-vegetarian recipes from Bengal, Maharashtra, Gujarat, the north of India, the southern states, which come with that special touch of the master chef. Macher jhol, bhajanee thalipeeth, Andhra Chilli Chicken, Kolambi bhaat, dhaabay di dal, rayalseema pesarettu, dhokar dalna, modak... the mouth watering list is endless.
&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;input type=&quot;radio&quot; name=&quot;tabs&quot; id=&quot;tab-rbtn-5&quot;&gt;  
&lt;div id=&quot;tab-inner-5&quot; class=&quot;tab-inner&quot;&gt;
&lt;h2&gt;Link 5&lt;/h2&gt;
All you need to do to bring the diversity of India into your home, is to start in your own kitchen and share the passion that Indian food is the best!
&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/body&gt;
&lt;/html&gt;</pre>
<h3>main.css</h3>
<pre class="brush: css; title: ; notranslate">body { background: #BDBDBD none repeat scroll 0 0; line-height: 28px; font-family: Helvetica; font-size: 16px; word-wrap: break-word !important; }

h1 { color: #FFF; font-size: 30px; margin-top: 90px; line-height: 1.5; text-align: center; }
h2 { margin: 0 0 8px 0 }

.tabs-ctrl { list-style: outside none none; margin: 0 auto; padding: 0; width: 700px; }
.tabs-ctrl li { display: block; }
.tabs-ctrl label { background: #5F4C0B none repeat scroll 0 0; border-radius: 6px 6px 0 0; color: #FFF; cursor: pointer; display: inline-block; float: left; font-size: 16px; font-weight: normal; margin-right: 3px; padding: 4px 20px; }
.tabs-ctrl label:hover { background: #3498db; }
.tab-inner { background-color: #FFF; display: none; line-height: 22px; padding: 15px; width: 100%; }
.tabs-ctrl input[type=radio] { display:none; }

.link-labels:after { content: ''; clear: both; display: table; }

[id^=tab-rbtn-]:checked ~ div[id^=tab-inner-] { display: block; }
[id^=tab-rbtn-]:checked ~ [id^=tab-label-] { background: #08C; color: white; }</pre>
<p>The post <a href="https://jharaphula.com/pure-css-tab-control-example/">Easily Customizable pure CSS Tab view Control Example</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://jharaphula.com/pure-css-tab-control-example/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			<media:content url="https://jharaphula.com/wp-content/uploads/2016/07/Easily-Customizable-CSS-Tabs.png" medium="image" />
	</item>
		<item>
		<title>Agile Development Methodology basics for Scrum manager</title>
		<link>https://jharaphula.com/agile-development-methodology-scrum-manager/</link>
					<comments>https://jharaphula.com/agile-development-methodology-scrum-manager/#respond</comments>
		
		<dc:creator><![CDATA[Biswabhusan Panda]]></dc:creator>
		<pubDate>Thu, 07 Jul 2016 05:53:45 +0000</pubDate>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Agile Development Methodology]]></category>
		<category><![CDATA[basics for Scrum manager]]></category>
		<category><![CDATA[Disadvantage of Agile]]></category>
		<category><![CDATA[Sprint Planning]]></category>
		<category><![CDATA[Water-fall Model]]></category>
		<guid isPermaLink="false">http://jharaphula.com/?p=4039</guid>

					<description><![CDATA[<img width="300" height="171" src="https://jharaphula.com/wp-content/uploads/2016/07/agile-methodology-300x171.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="Agile Development Methodology basics for Scrum manager" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/07/agile-methodology-300x171.jpg 300w, https://jharaphula.com/wp-content/uploads/2016/07/agile-methodology.jpg 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>Developing a Successful Software passes through many Stages. As you know in Industry all those stages Combinedly popular as System Development Life Cycle (SDLC). To...</p>
<p>The post <a href="https://jharaphula.com/agile-development-methodology-scrum-manager/">Agile Development Methodology basics for Scrum manager</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></description>
										<content:encoded><![CDATA[<img width="300" height="171" src="https://jharaphula.com/wp-content/uploads/2016/07/agile-methodology-300x171.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="Agile Development Methodology basics for Scrum manager" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/07/agile-methodology-300x171.jpg 300w, https://jharaphula.com/wp-content/uploads/2016/07/agile-methodology.jpg 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>Developing a Successful Software passes through many Stages. As you know in Industry all those stages Combinedly popular as System Development Life Cycle (SDLC). To develop a Software using this Life Cycle we pass over 7 stages. Those are Requirement Analysis, System analysis, Design &amp; Blue prints, Environments, Testing, Training, Maintenance &amp; Evaluation. Now rest is on the Program manager how he/she prefer to execute these 7 stages. Here methodology comes. From the early age there are several methodologies using which we developed many Software&#8217;s. Few of them are Water-Fall Model, Spiral Methodology, Rapid prototyping or Incremental Model. Now you can ask me when there are so many models available before why Agile Development Methodology come into picture? What are the advantages we found using Agile Methodology?</p>
<p>Agile Development Methodology introduced in the year of February 2001. The major advantage of Agile methodology are based on iterative and incremental development phases. Where requirements and solutions evolve through collaboration between cross-functional teams and self-organizing. It promotes adaptive planning, evolutionary development and delivery. Which results rapid and flexible development to satisfy the Customer.</p>
<h3>Water-fall Model vs. Agile Methodology</h3>
<p>To present the theme better let us Compare Agile Development Methodology with Water-fall Model. Assume we are going to develop an employee management system. Using Water-fall model after completion of 7th stages only we have deliverables. Still the time Customer need to invest &amp; wait. In case at the end we found something wrong it reflects major loss. Where ever in Agile methodology from Sprint 1 we can have deliverables. Here it means rather developing all the modules and test them at the end agile says Rapid and continuous small releases which helps to <a href="https://jharaphula.com/how-impress-clients-office/" rel="noopener noreferrer" target="_blank">improve Customer satisfaction</a>.</p>
<h3>Advantages of Agile Development Methodology</h3>
<p>As Agile methodology prefers small releases, from day one we have something to present the Customer. Troubleshooting and Error handling is much easier under this Software Development methodology. To develop better team spirit agile is strict about Communication between Team players. Which includes Customer, Developers, Leads &amp; Testers. In case the team available from a single location it is advisable to have a Face to Face Communication. Agile says rather than spending time in Calls &amp; Emails, Face to Face Communication improves productive hours. The most Customer friendly feature with Agile methodology is Customer can updated his/her requirements to implemented at any point of development phases.</p>
<h3>Disadvantage of Agile Development Methodology</h3>
<p>Advantage and Disadvantage are the two sides of a Single Coin. As a major disadvantages using Agile Development Methodology it is difficult to track efforts of resources in the initial phases. This methodology required experienced developers team. Minimum documentation is Troublesome. As agile methodology involves Customer effectively, Customer representative need to have a clear understanding about Scrum methods including Sprint planning, Scrum meetings, Sprint demo, Sprint retrospective &amp; poker planning.</p>
<h3>Sprint planning &amp; Defect Tracker</h3>
<p>Sprint planning is one of the major area of Agile Development Methodology. To make this planning Successful many Scrum master prefers to use Defect Tracker tool. Entire Agile team is responsible for defining work and estimation to meet Sprint deadline. While estimation Scrum manager estimate the work including testing and buffer timing. There are many defect tracker software&#8217;s available in market but it was noticed many Corporation&#8217;s prefers to use JIRA (Atlassian) as their Agile friendly Defect Tracker.</p>
<h3>Daily Sync-up Meeting</h3>
<p>To stay update with regular updates Agile Development Methodology introduced Daily Sync-up. Followed by Agile development process everyday minimum 15 minutes required for Scrum meeting, this meeting known as &#8216;Daily Stand-up Meeting&#8217; or &#8216;Daily Scrum Meeting&#8217;. This meeting schedules mostly in morning hours. Before work for the day this meeting clears team members about their daily jobs. The daily stand-up meeting are not schedule to discuss issues or how to solve them, issues can be solved during working duration. During the scrum meeting each member have to share the following.</p>
<ul>
<li>What did I do Yesterday?</li>
<li>What will I do Today?</li>
<li>Is there any blocking issue?</li>
</ul>
<p>By aiming on what each member accomplished yesterday and for today, the team improvise the understanding of daily targets.</p>
<h3>Sprint demo</h3>
<p>As we discussed above Agile prefers small releases. In Scrum, after every sprint team have to deliver a hypothetically product progress. The code will be tested and usable part of the product, this is normally demo of new features. This meeting designed to keep informal, rules are to have PowerPoint slides not more than 2 hours. Participants in the meeting include the Product Owner, the Scrum Team, Scrum Master, Management Team, Customer &amp; Developers from Other projects. <a href="https://jharaphula.com/effective-presentation-skills/" rel="noopener noreferrer" target="_blank">Presentations</a> are based on the goal planed during the sprint planning meeting.</p>
<h3>Poker Planning</h3>
<p>Everyone participates in the User Story/tasks estimation. Product owner reads user story and describe features and team member have to give points, ideal days in sequence of 0, 1, 2, 3, 5, 8, 13, 20, 40 &amp; 100. All members have to give their own estimation, if all estimation select same value that estimations get selected, high or low estimation have to give explanation. This process is repeated until decision making.</p>
<h3>Sprint Retrospective</h3>
<p>The scrum reviews for improvement of the product. Team have to constantly look for the improvement, at the end of the each sprint team will collects all the points for improvement. Retrospective meetings can schedule up for an hour, in case of escalation and team conflict it can be stretch further. Every member have to identify priority for the improvement and accordingly manage it at the end of sprint retrospective team have to review on previous retrospective.</p>
<p>The post <a href="https://jharaphula.com/agile-development-methodology-scrum-manager/">Agile Development Methodology basics for Scrum manager</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://jharaphula.com/agile-development-methodology-scrum-manager/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			<media:content url="https://jharaphula.com/wp-content/uploads/2016/07/agile-methodology.jpg" medium="image" />
	</item>
		<item>
		<title>Simple responsive Jquery image Slider without using any plugin</title>
		<link>https://jharaphula.com/simple-responsive-jquery-image-slider/</link>
					<comments>https://jharaphula.com/simple-responsive-jquery-image-slider/#respond</comments>
		
		<dc:creator><![CDATA[Biswabhusan Panda]]></dc:creator>
		<pubDate>Mon, 04 Jul 2016 15:44:38 +0000</pubDate>
				<category><![CDATA[Learn JQuery with Examples]]></category>
		<category><![CDATA[Bootstrap image Gallery]]></category>
		<category><![CDATA[CSS Sprite images]]></category>
		<category><![CDATA[Jquery Carousel Slider]]></category>
		<category><![CDATA[Jquery image Slider]]></category>
		<category><![CDATA[Jquery range Slider]]></category>
		<guid isPermaLink="false">http://jharaphula.com/?p=4102</guid>

					<description><![CDATA[<img width="300" height="189" src="https://jharaphula.com/wp-content/uploads/2016/07/easily-cofigurable-jquery-slider-300x189.png" class="webfeedsFeaturedVisual wp-post-image" alt="Simple responsive Jquery image Slider without using plugin" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/07/easily-cofigurable-jquery-slider-300x189.png 300w, https://jharaphula.com/wp-content/uploads/2016/07/easily-cofigurable-jquery-slider.png 849w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>To display multiple images under a specific area generally we use controls like Carousel or Slider. It was noticed these Control majorly appears in main...</p>
<p>The post <a href="https://jharaphula.com/simple-responsive-jquery-image-slider/">Simple responsive Jquery image Slider without using any plugin</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></description>
										<content:encoded><![CDATA[<img width="300" height="189" src="https://jharaphula.com/wp-content/uploads/2016/07/easily-cofigurable-jquery-slider-300x189.png" class="webfeedsFeaturedVisual wp-post-image" alt="Simple responsive Jquery image Slider without using plugin" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/07/easily-cofigurable-jquery-slider-300x189.png 300w, https://jharaphula.com/wp-content/uploads/2016/07/easily-cofigurable-jquery-slider.png 849w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>To display multiple images under a specific area generally we use controls like Carousel or Slider. It was noticed these Control majorly appears in main page. Here in the below app I am creating an easily configurable jQuery image Slider. To show you the demo here I am with 3 files index.htm, slider.js and main.css. Slider.js and main.css embedded in index.htm file. By simply copying the below files you can create your own free Jquery Slider.</p>
<p>The logic I implemented here is so simple. In my HTML page I have 2 div&#8217;s. One is for slider images and the other one I am using for Auto Slide Show. In my first div I have a ul element. Under this in each li I am loading images using simple image tag from HTML. To customize my Jquery image slider better here I added 2 anchor tags for next and previous actions.</p>
<p>To <a href="https://jharaphula.com/best-home-remedies-for-glowing-skin/" target="_blank" rel="noopener noreferrer">maintain a healthy look</a> and feel I have few CSS classes in style.css file. As it is a simple jquery slider the main logic is inside the js file. In js file I am with 4 variables. IndivisualSlideWidth and IndivisualSlideHeight are storing li width and height. NumberOfSlides storing total number of images I want to show in Slider. In TotalWidthOfAllSlides I am calculating and storing the total width of UL element. During slide show I am hiding the total length and showing each slide independently. After this in my js file I have 2 functions moveSlideLeft() and moveSlideRight(). These function are responsible for slides movement. To configure auto slider option under on change event of autoOptionCheckbox I am calling the moveSlideRight() function. Here for interval between each slide I declared 5000 milliseconds.</p>
<h2>Jquery image Slider Sample Code</h2>
<h2>jquery-slider.htm</h2>
<pre class="brush: xml; title: ; notranslate">&lt;!DOCTYPE html&gt;
&lt;html&gt;
&lt;head&gt;
&lt;title&gt;Simple JQuery image Slider&lt;/title&gt;
&lt;!--JQuery CDN Link--&gt;
&lt;script src=&quot;https://code.jquery.com/jquery-3.0.0.min.js&quot;&gt;&lt;/script&gt;
&lt;!--Applying Styles to the Page--&gt;
&lt;link rel=&quot;stylesheet&quot; href=&quot;main.css&quot;&gt;
&lt;script src=&quot;slider.js&quot;&gt;&lt;/script&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;h2&gt;JQuery image Slider&lt;/h2&gt;
&lt;div id=&quot;jq_slider&quot;&gt;
&lt;a href=&quot;#&quot; class=&quot;go_next&quot;&gt;&gt;&gt;&lt;/a&gt;
&lt;a href=&quot;#&quot; class=&quot;go_prev&quot;&gt;&lt;&lt;&lt;/a&gt;
&lt;ul&gt;
&lt;li&gt;&lt;img src=&quot;Slide-A.jpg&quot; alt=&quot;Katrina Kaif HD Still&quot; title=&quot;Katrina Kaif HD Still&quot; /&gt;&lt;/li&gt;
&lt;li&gt;&lt;img src=&quot;Slide-B.jpg&quot; alt=&quot;Priyanka Chopra HD Still&quot; title=&quot;Priyanka Chopra HD Still&quot; /&gt;&lt;/li&gt;
&lt;li&gt;&lt;img src=&quot;Slide-C.jpg&quot; alt=&quot;Deepika Paducon HD Still&quot; title=&quot;Deepika Paducon HD Still&quot; /&gt;&lt;/li&gt;
&lt;li&gt;&lt;img src=&quot;Slide-D.jpg&quot; alt=&quot;Sonakshi Sinha HD Still&quot; title=&quot;Sonakshi Sinha HD Still&quot; /&gt;&lt;/li&gt;
&lt;/ul&gt;  
&lt;/div&gt;
&lt;div class=&quot;auto_slider&quot;&gt;
&lt;input type=&quot;checkbox&quot; id=&quot;autoOptionCheckbox&quot;&gt;
&lt;label for=&quot;checkbox&quot;&gt;Auto Slider Option&lt;/label&gt;
&lt;/div&gt;
&lt;/body&gt;
&lt;/html&gt;</pre>
<h2>slider.js</h2>
<pre class="brush: jscript; title: ; notranslate">$(document).ready(function () {

/* The below two variables are defined for width and height of Slides */
var IndivisualSlideWidth = $('#jq_slider ul li').width();
var IndivisualSlideHeight = $('#jq_slider ul li').height();

/* The auto Slider Function */
$('#autoOptionCheckbox').change(function(){
/* Defining time in milliseconds for auto Slider option */
setInterval(function () {
/* Calling the Function to rotate Slides */
moveSlideRight();
}, 5000);
});

/* Counting the Number of Slides */
var NumberOfSlides = $('#jq_slider ul li').length;

/* Calculating all Slides width for UL element */
var TotalWidthOfAllSlides = NumberOfSlides * IndivisualSlideWidth;

/* Setting width and height for main div */
$('#jq_slider').css({ width: IndivisualSlideWidth, height: IndivisualSlideHeight });

$('#jq_slider ul').css({ width: TotalWidthOfAllSlides, marginLeft: - IndivisualSlideWidth });
$('#jq_slider ul li:last-child').prependTo('#jq_slider ul');

/* This Function is responsible for moving Slide to left */
function moveSlideLeft() {
$('#jq_slider ul').animate({
left: + IndivisualSlideWidth
}, 300, function () {
$('#jq_slider ul li:last-child').prependTo('#jq_slider ul');
$('#jq_slider ul').css('left', '');
});
};

/* This Function is responsible for moving Slide to right */
function moveSlideRight() {
$('#jq_slider ul').animate({
left: - IndivisualSlideWidth
}, 300, function () {
$('#jq_slider ul li:first-child').appendTo('#jq_slider ul');
$('#jq_slider ul').css('left', '');
});
};

/* Handling previous Click Funtionality */
$('a.go_prev').click(function () {
moveSlideLeft();
});

/* Handling next Click Funtionality */
$('a.go_next').click(function () {
moveSlideRight();
});
});</pre>
<h2>main.css</h2>
<p>Using CSS style here I am applying style to my slider ul li elements plus adding hover effects.</p>
<pre class="brush: css; title: ; notranslate">html, body { margin: 0; padding: 0; font-family: 'Verdana'; background: #c8fcff; color: #000; }
h2 { text-align: center; }

#jq_slider { position: relative; overflow: hidden; border-radius: 6px; margin: 20px auto 0 auto; }

#jq_slider ul { position: relative; margin: 0; padding: 0; list-style: none; }
#jq_slider ul li { position: relative; display: block; width: 700px; height: 350px; text-align: center; float: left; margin: 0; padding: 0; }

a.go_prev, a.go_next { position: absolute; z-index: 999; top: 40%; display: block; padding: 4% 3%; width: auto; height: auto; background: #2a2a2a; color: #FFF; text-decoration: none; opacity: 0.7; cursor: pointer; font-weight: normal; font-size: 16px; }
a.go_prev:hover, a.go_next:hover { opacity: 0.9; -webkit-transition: all 0.2s ease; }
a.go_prev { border-radius: 0 3px 3px 0; }
a.go_next { border-radius: 3px 0 0 3px; right: 0; }

.auto_slider { margin: 10px auto; position: relative; font-size: 16px; width: 180px; }</pre>
<h2>Images for Jquery Slider</h2>
<p>The following 4 images are used in the above demo app. You can download and try.</p>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-4107" src="https://jharaphula.com/wp-content/uploads/2016/07/Slide-A.jpg" alt="Slide-A" width="700" height="350" srcset="https://jharaphula.com/wp-content/uploads/2016/07/Slide-A.jpg 700w, https://jharaphula.com/wp-content/uploads/2016/07/Slide-A-300x150.jpg 300w" sizes="auto, (max-width: 700px) 100vw, 700px" /><em>Slide-A.jpg</em></p>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-4108" src="https://jharaphula.com/wp-content/uploads/2016/07/Slide-B.jpg" alt="Slide-B" width="700" height="350" srcset="https://jharaphula.com/wp-content/uploads/2016/07/Slide-B.jpg 700w, https://jharaphula.com/wp-content/uploads/2016/07/Slide-B-300x150.jpg 300w" sizes="auto, (max-width: 700px) 100vw, 700px" /><em>Slide-B.jpg</em></p>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-4109" src="https://jharaphula.com/wp-content/uploads/2016/07/Slide-C.jpg" alt="Slide-C" width="700" height="350" srcset="https://jharaphula.com/wp-content/uploads/2016/07/Slide-C.jpg 700w, https://jharaphula.com/wp-content/uploads/2016/07/Slide-C-300x150.jpg 300w" sizes="auto, (max-width: 700px) 100vw, 700px" /><em>Slide-C.jpg</em></p>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-4110" src="https://jharaphula.com/wp-content/uploads/2016/07/Slide-D.jpg" alt="Slide-D" width="700" height="350" srcset="https://jharaphula.com/wp-content/uploads/2016/07/Slide-D.jpg 700w, https://jharaphula.com/wp-content/uploads/2016/07/Slide-D-300x150.jpg 300w" sizes="auto, (max-width: 700px) 100vw, 700px" /><em>Slide-D.jpg</em></p>
<p>The post <a href="https://jharaphula.com/simple-responsive-jquery-image-slider/">Simple responsive Jquery image Slider without using any plugin</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://jharaphula.com/simple-responsive-jquery-image-slider/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			<media:content url="https://jharaphula.com/wp-content/uploads/2016/07/easily-cofigurable-jquery-slider.png" medium="image" />
	</item>
		<item>
		<title>Online free HTML Tutorial for beginners &#8211; Learn Web Design</title>
		<link>https://jharaphula.com/html-tutorial-for-beginners-learn-web-design/</link>
					<comments>https://jharaphula.com/html-tutorial-for-beginners-learn-web-design/#respond</comments>
		
		<dc:creator><![CDATA[Nibedita Panda]]></dc:creator>
		<pubDate>Mon, 20 Jun 2016 11:29:58 +0000</pubDate>
				<category><![CDATA[Learn HTML5 with Examples]]></category>
		<category><![CDATA[Free HTML Tutorial]]></category>
		<category><![CDATA[HTML elements]]></category>
		<category><![CDATA[HTML Tutorial for beginners]]></category>
		<category><![CDATA[Learn Web Design]]></category>
		<category><![CDATA[Responsive Web Design]]></category>
		<category><![CDATA[W3C-Validator]]></category>
		<guid isPermaLink="false">http://jharaphula.com/?p=3877</guid>

					<description><![CDATA[<img width="300" height="184" src="https://jharaphula.com/wp-content/uploads/2016/06/html-baiscs-300x184.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="Online free HTML Tutorial for beginners - Learn Web Design" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/06/html-baiscs-300x184.jpg 300w, https://jharaphula.com/wp-content/uploads/2016/06/html-baiscs.jpg 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>Welcome to the World of Web. HTML Stands as the Skeleton of Web Design. Complete name of HTML is &#8220;Hypertext Markup Language&#8221;. Compare to a...</p>
<p>The post <a href="https://jharaphula.com/html-tutorial-for-beginners-learn-web-design/">Online free HTML Tutorial for beginners &#8211; Learn Web Design</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></description>
										<content:encoded><![CDATA[<img width="300" height="184" src="https://jharaphula.com/wp-content/uploads/2016/06/html-baiscs-300x184.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="Online free HTML Tutorial for beginners - Learn Web Design" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/06/html-baiscs-300x184.jpg 300w, https://jharaphula.com/wp-content/uploads/2016/06/html-baiscs.jpg 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>Welcome to the World of Web. HTML Stands as the Skeleton of <a href="https://jharaphula.com/basics-of-web-design-beginners/" target="_blank" rel="noopener noreferrer">Web Design</a>. Complete name of HTML is &#8220;Hypertext Markup Language&#8221;. Compare to a programming language C or C++ markup languages are easy and fun to learn. A programming language comes with Data Types, Loops, Conditional Statements or Object Oriented Programming features. While a markup language only required tags and its attributes to learn. To make your journey easier here we are presenting HTML tutorial for beginners.</p>
<p>The initial version of HTML was introduced on the year of 1993 by W3C (<em>World Wide Web Consortium</em>) &amp; WHATWG (Web Hypertext Application Technology Working Group). HTML is the standard markup language to Create web pages. HTML is also used to Create user interface for Mobile applications. To Getting Started with HTML you required any text editor like Notepad or Notepad++.</p>
<h3>Structure of a HTML page</h3>
<p>Basic Structure of a HTML page is similar to a Human body. Top of the page comes with head. Then body and the end part is called footer. Look at the example below.</p>
<pre class="brush: xml; title: ; notranslate">&lt;!DOCTYPE html&gt;
&lt;html&gt;
&lt;head&gt;
&lt;title&gt;HTML Tutorial for beginners&lt;/title&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;h2&gt;Add Topic Heading here&lt;/h2&gt;
&lt;p&gt;Hello World!&lt;/p&gt;
&lt;/body&gt;
&lt;/html&gt;</pre>
<p>Here &lt;!DOCTYPE html&gt; is used to make the browser aware about that this is a HTML5 web page. Inside head tag I added title tag. Title tag is responsible to display which for this page is. Like title tag we can use meta tag under head tag. Meta speaks details of a web page. Generally there are various types of meta tags available in HTML but Commonly we use keywords, description or language meta tags. Body is the part where we do develop user interface. In the above example here inside my body tag I have heading tag and a paragraph tag.</p>
<h3>Basic Rules to Develop a HTML page</h3>
<p><strong>1</strong>. In Client Browser to identify the page that this is a HTML5 document you required to declare &lt;!DOCTYPE html&gt; at the top of the page. This must be your first line while creating a HTML5 web page.</p>
<p><strong>2</strong>. Title says about the headline of a story. Always make practice to add title tag in the head section of a <a href="https://jharaphula.com/category/programming-solutions/html5-examples/" target="_blank" rel="noopener noreferrer">HTML5</a> page. Title tag helps in Search Engine Optimization (SEO).</p>
<p><strong>3</strong>. There are various meta tags. Few common used meta tags are Keyword and Description. Before deploy your application to production server make a habit to add keywords &amp; description for page. Keep remember your description must not more than 160 words. Keywords can be comma separated strings. For better performace it is always wise to add not more than 5 to 6 keywords. Provide Character encoding meta tag to your HTML page. Ex. &lt;meta charset=&#8221;UTF-8&#8243;&gt;.</p>
<p><strong>4</strong>. In HTML5 use the power of Semantic Elements. Structure page take less time to debug. Generally a HTML page Comes with 4 to 5 sections like Head, Body or Footer. Learn the adnvaced HTML5 Semantic elements and use them as required.</p>
<p><strong>5</strong>. HTML is not a case sensitive language. &lt;STRONG&gt; is similar as &lt;strong&gt;. But it is a good practice to use lower case letters while developing HTML.</p>
<p><strong>6</strong>. Never ever miss an end tag in HTML. It breaks hirarchy. There are two ways to end a HTML tag. For an example img tag can be end like &#8220;&lt;/img&gt;&#8221; or &#8220;/&gt;&#8221;. It is a good practice to choose &#8220;/&gt;&#8221; in place of &#8220;&lt;/img&#8221;&gt; end tag. But in the matter of a paragraph tag you must require &#8220;&lt;/p&gt;&#8221;.</p>
<p><strong>7</strong>. In a tag while defining an attribute always use lower case letters. For an Example replace &lt;div CLASS=&#8221;tabview&#8221;&gt; with &lt;div class=&#8221;tabview&#8221;&gt;.</p>
<p><strong>8</strong>. While declaring attribute value use double quotes.</p>
<p><strong>9</strong>. In production server always avoid in-line CSS. For an example it’s a bad practice to develop &lt;div style=&#8221;float:left;&#8221; /&gt;. In this place you can add a class to the div and take your Styles to that Class.</p>
<p><strong>10</strong>. Keep HTML5 document extension to &#8220;.html&#8221; in place of &#8220;.htm&#8221;.</p>
<p><strong>11</strong>. Use language attribute with your html tag. Ex. &lt;html lang=&#8221;en-us&#8221;&gt;.</p>
<p><strong>12</strong>. For Internet Explorer Compatibility mode use &lt;meta http-equiv=&#8221;X-UA-Compatible&#8221; content=&#8221;IE=Edge&#8221;&gt;.</p>
<p><strong>13</strong>. While defining attributes to a HTML tag maintain the sequence order like class, id or name, data-*, src, type, href, for, value, title or alt, role &amp; aria-*.</p>
<p><strong>14</strong>. During you integrate CSS or JS file to your HTML5 document don’t include type=&#8221;text/css&#8221; or type=&#8221;text/javascript&#8221;. Modern browsers are too smart they can detect without the attributes.</p>
<h3>Heading Tags (H1, H2, …, H6)</h3>
<p>Generally H1 to H6 tag we used to display topic title or sub-titles of a HTML page. To instruct Search engines about your topic, heading tags are very helpful. H1 tag is more important heading tag then H6 tag. Never use heading tag to make texts bold or big.</p>
<h3>Paragraph</h3>
<p>In HTML &lt;p&gt; tag is used to define a Paragraph. Browser automatically add space to top and bottom of a paragraph. A paragraph starts with &lt;p&gt; and ends with &lt;/p&gt;.</p>
<h3>Line Break</h3>
<p>In HTML to bring a new line we use &lt;br /&gt;. While adding a new line tag use &lt;br /&gt; in place of only &lt;br&gt;.</p>
<h3>Using CSS with HTML</h3>
<p>There are 4 different ways to Apply CSS in a HTML document. These are In-line CSS, Embedded CSS, Linked CSS &amp; Imported CSS.</p>
<p><em>Example of In-line CSS</em></p>
<pre class="brush: xml; title: ; notranslate">&lt;div style=&quot;font-size: 14px; color: #FF0000;&quot;&gt;This is in Red Color&lt;/p&gt;</pre>
<p><em>Example of Embedded CSS</em></p>
<pre class="brush: css; title: ; notranslate">&lt;style type=&quot;text/css&quot;&gt;
h2 { 
font-size: 14px; 
color: #2d2d00; 
font-weight: 600; 
}
&lt;/style&gt;</pre>
<p><em>Example of Linked CSS</em></p>
<pre class="brush: xml; title: ; notranslate">&lt;link rel=&quot;stylesheet&quot; href=&quot;custom/custom.css&quot; type=&quot;text/css&quot; media=&quot;screen, projection&quot; /&gt;</pre>
<p><em>Example of Imported CSS</em></p>
<pre class="brush: xml; title: ; notranslate">@import url('/css/color.css');</pre>
<h3>HTML Text Formatting Tags</h3>
<p><span style="color:brown;">&lt;strong&gt;</span> &#8211; Use to defines bold or important labels.<br />
<span style="color:brown;">&lt;em&gt;</span> &#8211; Defines emphasized text.<br />
<span style="color:brown;">&lt;i&gt;</span> &#8211; Defines italic text.<br />
<span style="color:brown;">&lt;sub&gt;</span> &#8211; Defines subscripted text.<br />
<span style="color:brown;">&lt;sup&gt;</span> &#8211; Defines superscripted text.<br />
<span style="color:brown;">&lt;ins&gt;</span> &#8211; This tag we use to insert text in to a pre-defined paragraph.<br />
<span style="color:brown;">&lt;del&gt;</span> &#8211; Del is used to delete text from a pre-defiend paragraph.</p>
<h3>How to Comment in HTML?</h3>
<p>The following Syntax we use to Comment in HTML.<br />
&lt;!&#8211; Your Comments goes here &#8211;&gt;</p>
<h3>HTML Link</h3>
<p>In HTML we use anchor tag to place a link. A link helps to redirect user from one page to other HTML page. Syntax to Create a link is as below.</p>
<pre class="brush: xml; title: ; notranslate">&lt;a href=&quot;http://www.example.com&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;Link text goes here&lt;/a&gt;</pre>
<p>While Creating a link using target=&#8221;_blank&#8221; we can instruct the browser to open that link in a new window.</p>
<h3>HTML Image</h3>
<p>While designing a web page image plays great role. In HTML we use &lt;img&gt; tag to place images. Image tag supports all types of images such as jpeg, png or gif. The following syntax we use to add an image using image tag.</p>
<pre class="brush: xml; title: ; notranslate">&lt;img src=&quot;http://example.com/logo.png&quot; alt=&quot;Logo&quot; title=&quot;Logo&quot; /&gt;</pre>
<p>In image tag src attribute helps to define the image path. Image path can be absolute or an url too. For better performance in image tag it is a good practice to use alt and title attributes. These attributes give defination to an image.</p>
<h3>HTML Table</h3>
<p>In a web page generally we use table to display data in a structural way. A table comes with rows and columns. In HTML to create a table we use the following syntax.</p>
<pre class="brush: xml; title: ; notranslate">&lt;table&gt;
&lt;td&gt;
&lt;tr&gt;First Row of First Column&lt;/tr&gt;
&lt;tr&gt;Second Row of First Column&lt;/tr&gt;
&lt;tr&gt;Third Row of First Column&lt;/tr&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;tr&gt;First Row of Second Column &lt;/tr&gt;
&lt;tr&gt;Second Row of Second Column &lt;/tr&gt;
&lt;tr&gt;Third Row of Second Column&lt;/tr&gt;
&lt;/td&gt;
&lt;/table&gt;</pre>
<p>The above table is with 2 columns and 3 rows.</p>
<h3>Frequently used of HTML Tags</h3>
<p>Compare to older versions of HTML, HTML5 is rich with many new features. To design a web page more better HTML5 is enrich with advanced Structural Elements &amp; Form elements. Some of them are as below.</p>
<p><span style="color:brown;">&lt;header&gt;</span> – While Designing a HTML file header tag helps to define page header in a separate block.</p>
<p><span style="color:brown;">&lt;main&gt;</span> – In a HTML document main is the area in between header &amp; footer. Main tag in HTML5 helps to design better structure of a HTML document.</p>
<p><span style="color:brown;">&lt;footer&gt;</span> – In a web page HTML footer tag helps to define page footer in a separate block.</p>
<p><span style="color:brown;">&lt;nav&gt;</span> – Nav element in HTML5 helps to define navigation links under a single tab.</p>
<p><span style="color:brown;">&lt;progress&gt;</span> – Progress tab act like an indication. If some job running in background using this control we can show how much work is in progress.</p>
<p><span style="color:brown;">&lt;mark&gt;</span> – Mark tag in HTML5 helps to Highlight text easily.</p>
<p><span style="color:brown;">&lt;meter&gt;</span> – Meter tag in HTML5 help to present scalar measurement within a known range.</p>
<p><span style="color:brown;">&lt;dialog&gt;</span> – Using dialog tag we can show popup like window in HTML5. Dialog tag supports Chrome version 37+, Safari 6+ &amp; Opera 24+.</p>
<p><span style="color:brown;">&lt;article&gt;</span> – article tag defines an Article in the document. Using article tag we can categorized content area in a HTML file. </p>
<p><span style="color:brown;">&lt;aside&gt;</span> – aside tag defines content aside from body content.</p>
<p><span style="color:brown;">&lt;bdi&gt;</span> – bdi tag helps to identify text that might be formatted in a different direction from normal text.</p>
<p><span style="color:brown;">&lt;time&gt;</span> – time tag helps to specify date &amp; time part in a HTML file.</p>
<p><span style="color:brown;">&lt;section&gt;</span> – To identify a particular section in a HTML document section tag is useful.</p>
<p><span style="color:brown;">&lt;wbr&gt;</span> – Defines a possible line-break.</p>
<p><span style="color:brown;">&lt;audio&gt;</span> – Using audio tag in HTML5 we can define music.</p>
<p><span style="color:brown;">&lt;video&gt;</span> – Using video tag in HTML5 we can define movie.</p>
<p><span style="color:brown;">&lt;embed&gt;</span> – embed tag act like a plugin. Using embed tag we can integrate external application to HTML5 document.</p>
<p><span style="color:brown;">&lt;source&gt;</span> – source tag helps to declare file path for audio or video elements.</p>
<p><span style="color:brown;">&lt;track&gt;</span> – Defines tracks for video &amp; audio.</p>
<p><span style="color:brown;">&lt;canvas&gt;</span> – Canvas is a new HTML5 element to draw Graphics using Client Script. Read more about HTML5 Canvas.</p>
<p><span style="color:brown;">&lt;svg&gt;</span> – HTML5 Supports SVG. svg tag helps to draw graphics using SVG.</p>
<p>Do you like this Story about HTML Tutorial for beginners? Share us.</p>
<p>The post <a href="https://jharaphula.com/html-tutorial-for-beginners-learn-web-design/">Online free HTML Tutorial for beginners &#8211; Learn Web Design</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://jharaphula.com/html-tutorial-for-beginners-learn-web-design/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			<media:content url="https://jharaphula.com/wp-content/uploads/2016/06/html-baiscs.jpg" medium="image" />
	</item>
		<item>
		<title>Simple PHP pagination Example using MySQL records</title>
		<link>https://jharaphula.com/simple-php-pagination-example-mysql/</link>
					<comments>https://jharaphula.com/simple-php-pagination-example-mysql/#respond</comments>
		
		<dc:creator><![CDATA[Nibedita Panda]]></dc:creator>
		<pubDate>Sun, 15 May 2016 18:01:57 +0000</pubDate>
				<category><![CDATA[Learn PHP with Examples]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[Pagination using AngularJS]]></category>
		<category><![CDATA[PHP pagination Example]]></category>
		<category><![CDATA[PHP String Functions]]></category>
		<category><![CDATA[Sorting and Pagination]]></category>
		<guid isPermaLink="false">http://box.jharaphula.com/?p=1687</guid>

					<description><![CDATA[<img width="300" height="170" src="https://jharaphula.com/wp-content/uploads/2016/05/datatable-pagination-300x170.png" class="webfeedsFeaturedVisual wp-post-image" alt="Simple PHP pagination Example using MySQL records" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/datatable-pagination-300x170.png 300w, https://jharaphula.com/wp-content/uploads/2016/05/datatable-pagination.png 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>During Web Application designing to display bulk of records in distributed manner we use pagination. Assume in your Customers table you have more than 600...</p>
<p>The post <a href="https://jharaphula.com/simple-php-pagination-example-mysql/">Simple PHP pagination Example using MySQL records</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></description>
										<content:encoded><![CDATA[<img width="300" height="170" src="https://jharaphula.com/wp-content/uploads/2016/05/datatable-pagination-300x170.png" class="webfeedsFeaturedVisual wp-post-image" alt="Simple PHP pagination Example using MySQL records" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/datatable-pagination-300x170.png 300w, https://jharaphula.com/wp-content/uploads/2016/05/datatable-pagination.png 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>During Web Application designing to display bulk of records in distributed manner we use pagination. Assume in your Customers table you have more than 600 records. While displaying those records in a tabular view it is much better to use pagination. The key advantage of using pagination is we can do partial loading from the database. Which saves user time.</p>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-1728" title="Simple PHP pagination Example" src="https://jharaphula.com/wp-content/uploads/2016/05/pagination.jpg" alt="Simple PHP pagination Example" width="750" height="191" srcset="https://jharaphula.com/wp-content/uploads/2016/05/pagination.jpg 750w, https://jharaphula.com/wp-content/uploads/2016/05/pagination-300x76.jpg 300w" sizes="auto, (max-width: 750px) 100vw, 750px" /></p>
<p>In this example I am with a <a href="https://jharaphula.com/category/programming-solutions/php-demo-apps/" target="_blank" rel="noopener noreferrer">PHP</a> pagination script which fetch data from MySQL. To start with Create a table using the following &#8220;CREATE TABLE&#8230;&#8221; query. Keep your database name &#8220;empdb&#8221;.</p>
<pre class="brush: sql; title: ; notranslate">CREATE TABLE IF NOT EXISTS EmpDetails (
Emp_ID varchar(10) NOT NULL DEFAULT '', 
Emp_Name varchar(200) NOT NULL DEFAULT '', 
Emp_Designation varchar(200) NOT NULL DEFAULT '', 
Emp_Salary varchar(20) NOT NULL DEFAULT '0', 
PRIMARY KEY (Emp_ID) 
)

Once you successfully created the &quot;EmpDetails&quot; table. Insert some sample records using the following INSERT STATEMENT.

INSERT INTO EmpDetails (Emp_ID, Emp_Name, Emp_Designation, Emp_Salary) VALUES
(1, 'Mounika Readdy', 'UI Developer', '23000'),
(2, 'Vishval Chohhan', 'Graphics Engineer', '12000'),
(3, 'Biswabhusan Panda', 'Sr. Software Engineer', '45000'),
(4, 'Satyabrat Panda', 'Program Manager', '60000'),
(5, 'Nilima Kapoor', 'JS Developer', '30000'),
(6, 'Megha Roy', 'Software Engineer', '12000'),
(7, 'Manamohan Maharana', 'Team Lead', '25000'),
(8, 'Rupak Srivastab', 'UI Developer', '32000'),
(9, 'Ramkumar Ojha', 'QA Engineer', '10000'),
(10, 'Mittali Roy', 'Graphics Engineer', '15000'),
(11, 'Ravina Mohapatra', 'Team Lead', '25000'),
(12, 'Raghav Malhotra', 'Sr. Software Engineer', '42000');</pre>
<p>pagination.php is the File where I am <a href="https://jharaphula.com/data-json-to-html-table-php/" target="_blank" rel="noopener noreferrer">binding data to a HTML table</a> and at the same time implemented pagination. This is a very simple working example of pagination. You can easily customize it as per your requirements. To decide how many records you want to display in a page here I declared 2 variable $begin=0; $end=4;. By updating the second variable $end you can change the number of records per page.</p>
<h2>PHP pagination Example</h2>
<pre class="brush: php; title: ; notranslate">&lt;?php
/*Establishing Database Connection*/
$sql_query=mysql_connect(&quot;localhost&quot;, &quot;root&quot;);
mysql_select_db(&quot;empdb&quot;, $sql_query);

/*Defining number of records in a page*/
$begin=0;
$end=4;

if(isset($_GET['id']))
{
$id=$_GET['id'];
$begin=($id-1)*$end;
} else {
$id = 0;
}

/*Executing &amp; fetching data from SQL table*/
$emp_query=mysql_query(&quot;SELECT * FROM EmpDetails LIMIT $begin, $end&quot;);

$rows=mysql_num_rows(mysql_query(&quot;SELECT * FROM EmpDetails&quot;));
$total=ceil($rows/$end);

/*Creating table dynamically*/
echo &quot;&lt;table&gt;&quot;;

/*Defining Table header*/
echo &quot;&lt;tr&gt;&lt;th&gt;Employee Name&lt;/th&gt;&lt;th&gt;Designation&lt;/th&gt;&lt;th&gt;Salary&lt;/th&gt;&lt;/tr&gt;&quot;;

/*Generating rows with data*/
while($data=mysql_fetch_array($emp_query)) {
echo &quot;&lt;tr&gt;&quot;;
echo &quot;&lt;td&gt;&quot;. $data['Emp_Name'] .&quot;&lt;/td&gt;&quot;;
echo &quot;&lt;td&gt;&quot;. $data['Emp_Designation'] .&quot;&lt;/td&gt;&quot;;
echo &quot;&lt;td&gt;&quot;. $data['Emp_Salary'] .&quot;&lt;/td&gt;&quot;;
echo &quot;&lt;/tr&gt;&quot;;
}
echo &quot;&lt;/table&gt;&quot;;

/*Implemented next and previous buttons*/
if($id&gt;1)
{
echo &quot;&lt;div class='parallalpre'&gt;&lt;a href='?id=&quot;.($id-1).&quot;' class='pagButton'&gt;PREVIOUS&lt;/a&gt;&amp;nbsp;&lt;/div&gt;&quot;;
}
if($id!=$total)
{
?&gt;

&lt;div class='parallal'&gt;

&lt;?php
/*Generating Pagination Tabs*/
echo &quot;&lt;ul class='pagination'&gt;&quot;;
for($i=1;$i&lt;=$total;$i++)
{
if($i==$id) { echo &quot;&lt;li&gt;&quot;.$i.&quot;&lt;/li&gt;&quot;; }

else { echo &quot;&lt;li&gt;&lt;a href='?id=&quot;.$i.&quot;'&gt;&quot;.$i.&quot;&lt;/a&gt;&lt;/li&gt;&quot;; }
}
echo &quot;&lt;/ul&gt;&quot;;
?&gt;

&lt;/div&gt;

&lt;?php
echo &quot;&lt;div class='parallalnex'&gt;&amp;nbsp;&lt;a href='?id=&quot;.($id+1).&quot;' class='pagButton'&gt;NEXT&lt;/a&gt;&lt;/div&gt;&quot;;
}
?&gt;</pre>
<p>Using the above code you can have a PHP pagination with table of data. To make the pagination better in below I am with some CSS classes. These classes provides style to pagination.</p>
<h2>Required CSS Classes</h2>
<pre class="brush: css; title: ; notranslate">/*Style for Table*/
table, th , td {
border: 1px solid grey;
border-collapse: collapse;
padding: 4px;
font-family: arial;
}
/*Style for Table Header*/
th {
background: darkblue;
color: white;
text-align: left;
}
/*Style for Alternate Rows*/
table tr:nth-child(odd) {
background-color: #C2EBC3;
}
table tr:nth-child(even) {
background-color: #FFFFFF;
}

/*Style for Pagination*/
.parallal { float:left; }
.parallalnex, .parallalpre { float:left; margin-top: 16px; }
.pagination { margin-top: 16px; padding:0; }

.pagination li {
display: inline-block;
padding: 0px 9px;
margin-right: 4px;
border-radius: 3px;
border: solid 1px #c0c0c0;
background: #e9e9e9;
box-shadow: inset 0px 1px 0px rgba(255,255,255, .8), 0px 1px 3px rgba(0,0,0, .1);
font-size: .875em;
font-weight: bold;
text-decoration: none;
color: #717171;
text-shadow: 0px 1px 0px rgba(255,255,255, 1);
}

.pagination li:hover, .pagination.gradient:hover {
background: #fefefe;
background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#FEFEFE), to(#f0f0f0));
background: -moz-linear-gradient(0% 0% 270deg,#FEFEFE, #f0f0f0);
}</pre>
<p>The post <a href="https://jharaphula.com/simple-php-pagination-example-mysql/">Simple PHP pagination Example using MySQL records</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://jharaphula.com/simple-php-pagination-example-mysql/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			<media:content url="https://jharaphula.com/wp-content/uploads/2016/05/datatable-pagination.png" medium="image" />
	</item>
		<item>
		<title>ASP.NET Login page example with Remember me Option</title>
		<link>https://jharaphula.com/asp-net-login-page-remember-me/</link>
					<comments>https://jharaphula.com/asp-net-login-page-remember-me/#respond</comments>
		
		<dc:creator><![CDATA[Nibedita Panda]]></dc:creator>
		<pubDate>Sun, 15 May 2016 18:00:58 +0000</pubDate>
				<category><![CDATA[Microsoft Technologies]]></category>
		<category><![CDATA[ASP.NET Login Page]]></category>
		<category><![CDATA[Cleaver UI developer]]></category>
		<category><![CDATA[Login page Example]]></category>
		<category><![CDATA[Remember me Option]]></category>
		<category><![CDATA[Windows Authentication]]></category>
		<guid isPermaLink="false">http://box.jharaphula.com/?p=1685</guid>

					<description><![CDATA[<img width="300" height="176" src="https://jharaphula.com/wp-content/uploads/2016/05/login-page-with-remember-me-option-300x176.png" class="webfeedsFeaturedVisual wp-post-image" alt="ASP.NET Login page example with Remember me Option" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/login-page-with-remember-me-option-300x176.png 300w, https://jharaphula.com/wp-content/uploads/2016/05/login-page-with-remember-me-option.png 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>During we develop a product its always wise to save user time. Think about a login page. Here for Consecutive logins it is much better...</p>
<p>The post <a href="https://jharaphula.com/asp-net-login-page-remember-me/">ASP.NET Login page example with Remember me Option</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></description>
										<content:encoded><![CDATA[<img width="300" height="176" src="https://jharaphula.com/wp-content/uploads/2016/05/login-page-with-remember-me-option-300x176.png" class="webfeedsFeaturedVisual wp-post-image" alt="ASP.NET Login page example with Remember me Option" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/login-page-with-remember-me-option-300x176.png 300w, https://jharaphula.com/wp-content/uploads/2016/05/login-page-with-remember-me-option.png 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>During we develop a product its always wise to save user time. Think about a login page. Here for Consecutive logins it is much better if we will store user Login Credentials. Using which System will remember the user id and password for next login. In this demo app I am creating a ASP.NET login page with &#8220;Remember me&#8221; Option.</p>
<p>The logic behind is so simple &#8220;During a user login to the System I am storing his/her user id and password to a Cookie. Then under page load event checking is Cookie exists. If so taking user id and password from the Cookie&#8221;.</p>
<h3>Login.aspx</h3>
<pre class="brush: xml; title: ; notranslate">&lt;%@ Page Language=&quot;VB&quot; AutoEventWireup=&quot;false&quot; CodeFile=&quot;Login.aspx.vb&quot; Inherits=&quot;Login&quot; %&gt;
&lt;!DOCTYPE html&gt;
&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;
&lt;head runat=&quot;server&quot;&gt;
&lt;title&gt;Demo Login App&lt;/title&gt;
&lt;style type=&quot;text/css&quot;&gt;
#frmLogin { max-width: 300px; margin: 0 auto; padding-top: 120px; }
.formControl { font-family: Verdana; font-size: 12px; }
.loginDiv { width:300px; margin-top: 20px; padding: 20px 20px 20px 20px; background-color: #f7f7f7; -moz-box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.3); -webkit-box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.3); box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.3); } 
.rounded { border-radius: 10px; -moz-border-radius: 10px; -webkit-border-radius: 10px; }
&lt;/style&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;form id=&quot;frmLogin&quot; runat=&quot;server&quot;&gt;
&lt;div class=&quot;loginDiv rounded&quot;&gt;
&lt;div class=&quot;formControl&quot;&gt;
Email ID&amp;nbsp;&lt;span style=&quot;color: Red;&quot;&gt;*&lt;/span&gt;
&lt;/div&gt;
&lt;div class=&quot;formControl&quot;&gt;
&lt;asp:TextBox ID=&quot;txtEmailID&quot; runat=&quot;server&quot; Width=&quot;100%&quot;&gt;&lt;/asp:TextBox&gt;
&lt;asp:RequiredFieldValidator ID=&quot;rfvEmailID&quot; runat=&quot;server&quot; ControlToValidate=&quot;txtEmailID&quot;
Display=&quot;Dynamic&quot; ErrorMessage=&quot;Email should not be blank.&lt;br /&gt;&quot;&gt;&lt;/asp:RequiredFieldValidator&gt;
&lt;asp:RegularExpressionValidator ID=&quot;revEmailID&quot; runat=&quot;server&quot; ControlToValidate=&quot;txtEmailID&quot;
Display=&quot;Dynamic&quot; ErrorMessage=&quot;Enter a valid Email ID.&lt;br /&gt;&quot; ValidationExpression=&quot;\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*&quot;&gt;&lt;/asp:RegularExpressionValidator&gt;
&lt;/div&gt;
&lt;div class=&quot;formControl&quot;&gt;
Password&amp;nbsp;&lt;span style=&quot;color: Red;&quot;&gt;*&lt;/span&gt;
&lt;/div&gt;
&lt;div class=&quot;formControl&quot;&gt;
&lt;asp:TextBox ID=&quot;txtPassword&quot; runat=&quot;server&quot; TextMode=&quot;Password&quot; Width=&quot;100%&quot;&gt;&lt;/asp:TextBox&gt;
&lt;asp:RequiredFieldValidator ID=&quot;rfvPassword&quot; runat=&quot;server&quot; ControlToValidate=&quot;txtPassword&quot;
Display=&quot;Dynamic&quot; ErrorMessage=&quot;Password should not be blank.&quot;&gt;&lt;/asp:RequiredFieldValidator&gt;
&lt;/div&gt;
&lt;asp:Button ID=&quot;btnVisitorLogin&quot; runat=&quot;server&quot; Text=&quot;Login&quot; /&gt;
&lt;asp:Label ID=&quot;lblMsg&quot; runat=&quot;server&quot;&gt;&lt;/asp:Label&gt;
&lt;asp:CheckBox ID=&quot;chkNextLogin&quot; runat=&quot;server&quot; /&gt;&amp;nbsp;Remember me&lt;a href=&quot;#&quot; class=&quot;pull-right margin-gap&quot;&gt;Need
help?&lt;/a&gt;
&lt;/div&gt;
&lt;/form&gt;
&lt;/body&gt;
&lt;/html&gt;</pre>
<p>For security reason in Code behind I added my <a href="https://jharaphula.com/rc2-md5-byte-128-cryptography-functions/" target="_blank" rel="noopener noreferrer">EncryDecry.vb Class</a> from app_code/vb. To execute vb code inside vb folder of app_code I Configured my web.config.</p>
<h3>Login.aspx.vb</h3>
<pre class="brush: vb; title: ; notranslate">Imports System.Web.Security
Imports System.Data
Imports System.Data.SqlClient

Partial Class Login
Inherits System.Web.UI.Page

Dim LoginSqlConn As New SqlConnection(ConfigurationManager.AppSettings.Get(&quot;DBKey&quot;).ToString())

Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
If Not Page.IsPostBack Then
txtEmailID.Focus()

'Check if the browser support cookies
If Request.Browser.Cookies Then
'Check if the cookies with name PBLOGIN exist on user's machine
If Request.Cookies(&quot;PBLOGIN&quot;) IsNot Nothing Then
'Pass the user name and password to the VerifyLogin method
Me.VerifyLogin(Request.Cookies(&quot;PBLOGIN&quot;)(&quot;UNAME&quot;).ToString(), Request.Cookies(&quot;PBLOGIN&quot;)(&quot;UPASS&quot;).ToString())
End If
End If
End If
End Sub

Protected Sub btnVisitorLogin_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnVisitorLogin.Click
'Decrypt the Password &amp; UserID from Database
Dim EncrDecr As New EncryDecry

'Validation Checking Aginest Submission
If rfvPassword.IsValid And rfvEmailID.IsValid Then
'Clear Invalid login Message Label
lblMsg.Text = &quot;&quot;

'Temporary SecuredUniqueKey
Dim UniKey As String = &quot;FCPH6-BPK27-2V4MR&quot;

'Login Checking command in shape of a Stored Procedure that returns Record Count
Dim LoginCommand As New SqlCommand(&quot;USP_LoginCheck&quot;, LoginSqlConn)
LoginCommand.CommandType = CommandType.StoredProcedure

'Pass Parameter to Stored Procedure
LoginCommand.Parameters.Add(&quot;@UserID&quot;, SqlDbType.NVarChar, 256).Value = EncrDecr.TripleDESEncode(Trim(txtEmailID.Text), &quot;RC2&quot;)
LoginCommand.Parameters.Add(&quot;@Passcode&quot;, SqlDbType.NVarChar, 256).Value = EncrDecr.TripleDESEncode(Trim(txtPassword.Text), &quot;RC2&quot;)
LoginCommand.Parameters.Add(&quot;@SecuredUniqueKey&quot;, SqlDbType.NVarChar, 256).Value = UniKey
LoginCommand.Parameters.Add(&quot;@Status&quot;, SqlDbType.NVarChar, 20).Value = &quot;Active&quot;

Dim RecordCNT As Integer = 0

Try
Dim LoginDataReader As SqlDataReader
LoginSqlConn.Open()
LoginDataReader = LoginCommand.ExecuteReader
If LoginDataReader.Read Then
RecordCNT = Convert.ToInt32(LoginDataReader(0).ToString())
End If
Catch ex As Exception
Response.Write(ex.ToString())
Finally
LoginSqlConn.Close()
End Try

'Login Checking using the return int value of USP_LoginCheck stored procedure
If (RecordCNT = 1) Then
Me.VerifyLogin(EncrDecr.TripleDESEncode(Trim(txtEmailID.Text), &quot;RC2&quot;), EncrDecr.TripleDESEncode(Trim(txtPassword.Text), &quot;RC2&quot;))
ElseIf (RecordCNT &gt; 1) Then
lblMsg.Text = &quot;Invalid Login Credentials&quot;
'Implement 5 Login Attempts of Account Lock
ElseIf (RecordCNT &lt; 1) Then
lblMsg.Text = &quot;Invalid Login Credentials&quot;
'Implement 5 Login Attempts of Account Lock
End If
End If
End Sub

Private Sub VerifyLogin(ByVal UserID As String, ByVal Password As String)
Dim LoginDetailsCommand As New SqlCommand(&quot;USP_LoginDetails&quot;, LoginSqlConn)
LoginDetailsCommand.CommandType = CommandType.StoredProcedure

'Pass Parameter to Stored Procedure
LoginDetailsCommand.Parameters.Add(&quot;@UserID&quot;, SqlDbType.NVarChar, 256).Value = UserID
LoginDetailsCommand.Parameters.Add(&quot;@Passcode&quot;, SqlDbType.NVarChar, 256).Value = Password

Try
Dim LoginDetailsDR As SqlDataReader
LoginSqlConn.Open()
LoginDetailsDR = LoginDetailsCommand.ExecuteReader

If LoginDetailsDR.Read Then
Session(&quot;UserID&quot;) = LoginDetailsDR(&quot;PkUid&quot;)
Session(&quot;UserEmail&quot;) = UserID

Session(&quot;FirstName&quot;) = LoginDetailsDR(&quot;FirstName&quot;)
Session(&quot;LastName&quot;) = LoginDetailsDR(&quot;LastName&quot;)

Session(&quot;RootPath&quot;) = Server.MapPath(&quot;../&quot;)

'Using form authentication redirect the page to the Default.aspx
FormsAuthentication.RedirectFromLoginPage(Trim(txtEmailID.Text), True)

'check if remember me checkbox is checked on login
If (chkNextLogin.Checked) Then
'Check if the browser support cookies
If (Request.Browser.Cookies) Then
'Check if the cookie with name PBLOGIN exist on user's machine
If (Request.Cookies(&quot;PBLOGIN&quot;) Is Nothing) Then
'Create a cookie with expiry of 30 days
Response.Cookies(&quot;PBLOGIN&quot;).Expires = DateTime.Now.AddDays(30)
'Write username to the cookie
Response.Cookies(&quot;PBLOGIN&quot;).Item(&quot;UNAME&quot;) = UserID
'Write password to the cookie
Response.Cookies(&quot;PBLOGIN&quot;).Item(&quot;UPASS&quot;) = Password
Else
'If the cookie already exist then wirte the user name and password on the cookie
Response.Cookies(&quot;PBLOGIN&quot;).Item(&quot;UNAME&quot;) = UserID
Response.Cookies(&quot;PBLOGIN&quot;).Item(&quot;UPASS&quot;) = Password
End If
End If
End If
Else
lblMsg.Text = &quot;Invalid Login Credentials&quot;
End If
Catch ex As Exception
Response.Write(ex.ToString())
Finally
LoginSqlConn.Close()
End Try
End Sub
End Class</pre>
<h3>web.config</h3>
<pre class="brush: xml; title: ; notranslate">&lt;?xml version=&quot;1.0&quot;?&gt;
&lt;configuration&gt;
&lt;appSettings&gt;
&lt;add key=&quot;DBKey&quot; value=&quot;Data Source=VIJAYSHANTI; uid=sa; pwd=tiger; database=CodeRND;&quot;/&gt;
&lt;/appSettings&gt;
&lt;connectionStrings/&gt;
&lt;system.web&gt;
&lt;compilation debug=&quot;true&quot; strict=&quot;false&quot; explicit=&quot;true&quot;&gt;
&lt;codeSubDirectories&gt;
&lt;add directoryName=&quot;VB&quot;/&gt;
&lt;/codeSubDirectories&gt;
&lt;/compilation&gt;
&lt;authentication mode=&quot;Windows&quot;/&gt;
&lt;/system.web&gt;
&lt;/configuration&gt;</pre>
<p>EncryDecry is the class which helps to convert user id and password to RC2 format. In-case an other user find out the cookie in client machine he or she can&#8217;t able to hack the original user.</p>
<h3>EncryDecry.vb</h3>
<pre class="brush: vb; title: ; notranslate">Imports System.Security.Cryptography
Imports Microsoft.VisualBasic

Public Class EncryDecry

Public Function TripleDESEncode(ByVal value As String, ByVal key As String) As String
Dim des As New System.Security.Cryptography.TripleDESCryptoServiceProvider
des.IV = New Byte(7) {}
Dim pdb As New System.Security.Cryptography.PasswordDeriveBytes(key, New Byte(-1) {})
des.Key = pdb.CryptDeriveKey(&quot;RC2&quot;, &quot;MD5&quot;, 128, New Byte(7) {})
Dim ms As New IO.MemoryStream((value.Length * 2) - 1)
Dim encStream As New System.Security.Cryptography.CryptoStream(ms, des.CreateEncryptor(), System.Security.Cryptography.CryptoStreamMode.Write)
Dim plainBytes As Byte() = Text.Encoding.UTF8.GetBytes(value)
encStream.Write(plainBytes, 0, plainBytes.Length)
encStream.FlushFinalBlock()
Dim encryptedBytes(CInt(ms.Length - 1)) As Byte
ms.Position = 0
ms.Read(encryptedBytes, 0, CInt(ms.Length))
encStream.Close()
Return Convert.ToBase64String(encryptedBytes)
End Function

Public Function TripleDESDecode(ByVal value As String, ByVal key As String) As String
Dim des As New System.Security.Cryptography.TripleDESCryptoServiceProvider
des.IV = New Byte(7) {}
Dim pdb As New System.Security.Cryptography.PasswordDeriveBytes(key, New Byte(-1) {})
des.Key = pdb.CryptDeriveKey(&quot;RC2&quot;, &quot;MD5&quot;, 128, New Byte(7) {})
Dim encryptedBytes As Byte() = Convert.FromBase64String(value)
Dim ms As New IO.MemoryStream(value.Length)
Dim decStream As New System.Security.Cryptography.CryptoStream(ms, des.CreateDecryptor(), System.Security.Cryptography.CryptoStreamMode.Write)
decStream.Write(encryptedBytes, 0, encryptedBytes.Length)
decStream.FlushFinalBlock()
Dim plainBytes(CInt(ms.Length - 1)) As Byte
ms.Position = 0
ms.Read(plainBytes, 0, CInt(ms.Length))
decStream.Close()
Return Text.Encoding.UTF8.GetString(plainBytes)
End Function

End Class</pre>
<p>The post <a href="https://jharaphula.com/asp-net-login-page-remember-me/">ASP.NET Login page example with Remember me Option</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://jharaphula.com/asp-net-login-page-remember-me/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			<media:content url="https://jharaphula.com/wp-content/uploads/2016/05/login-page-with-remember-me-option.png" medium="image" />
	</item>
		<item>
		<title>Simple string to image based free PHP Captcha Code</title>
		<link>https://jharaphula.com/simple-free-php-captcha-code/</link>
					<comments>https://jharaphula.com/simple-free-php-captcha-code/#respond</comments>
		
		<dc:creator><![CDATA[Nibedita Panda]]></dc:creator>
		<pubDate>Sun, 15 May 2016 17:59:49 +0000</pubDate>
				<category><![CDATA[Learn PHP with Examples]]></category>
		<category><![CDATA[Client Side Captcha]]></category>
		<category><![CDATA[Free PHP Captcha Code]]></category>
		<category><![CDATA[Generating Captcha]]></category>
		<category><![CDATA[Script for PHP]]></category>
		<category><![CDATA[Simple String to Image]]></category>
		<guid isPermaLink="false">http://box.jharaphula.com/?p=1683</guid>

					<description><![CDATA[<img width="300" height="195" src="https://jharaphula.com/wp-content/uploads/2016/05/captcha-300x195.png" class="webfeedsFeaturedVisual wp-post-image" alt="Simple string to image based free PHP Captcha Code" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/captcha-300x195.png 300w, https://jharaphula.com/wp-content/uploads/2016/05/captcha-294x190.png 294w, https://jharaphula.com/wp-content/uploads/2016/05/captcha-106x70.png 106w, https://jharaphula.com/wp-content/uploads/2016/05/captcha.png 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>In web Captcha is the Technique using which we can protect spam users. Today hackers are very cleaver. Let&#8217;s talk about a login page. Here...</p>
<p>The post <a href="https://jharaphula.com/simple-free-php-captcha-code/">Simple string to image based free PHP Captcha Code</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></description>
										<content:encoded><![CDATA[<img width="300" height="195" src="https://jharaphula.com/wp-content/uploads/2016/05/captcha-300x195.png" class="webfeedsFeaturedVisual wp-post-image" alt="Simple string to image based free PHP Captcha Code" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/captcha-300x195.png 300w, https://jharaphula.com/wp-content/uploads/2016/05/captcha-294x190.png 294w, https://jharaphula.com/wp-content/uploads/2016/05/captcha-106x70.png 106w, https://jharaphula.com/wp-content/uploads/2016/05/captcha.png 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>In web Captcha is the Technique using which we can protect spam users. Today hackers are very cleaver. Let&#8217;s talk about a login page. Here someone can easily enter spam records using a script. Captcha gives confirmation that the user is a real-human. The story behind Captcha is &#8220;We generate a random string and store that in server. In the next moment showing the same string to the user as an image. To validate comparing server session value with user input against the image&#8221;. In below demo app I am creating a PHP Captcha.</p>
<h2>Understanding CAPTCHA</h2>
<p>CAPTCHAs serve as a barrier against automated attacks, such as brute-force login attempts, spam form submissions, and credential stuffing. By presenting a challenge that requires human-like interpretation—such as distorted text, image recognition, or logical puzzles—CAPTCHAs help protect web applications from abuse.</p>
<p>String-to-image CAPTCHAs are particularly effective because they rely on visual distortion, noise, and variable fonts to prevent optical character recognition (OCR) tools from extracting the text.</p>
<h2>How String-to-Image CAPTCHA Works?</h2>
<p>1. String Generation: A random string (usually alphanumeric) is generated.<br />
2. Image Creation: The string is rendered onto an image with distortions, such as warping, overlapping lines, or varying colors.<br />
3. Session Storage: The CAPTCHA value is stored server-side (e.g., in a session) for later validation.<br />
4. User Input: The user reads the image and submits the text via a form.<br />
5. Validation: The submitted text is compared against the stored value.</p>
<p>Here I defined 4 functions CAPTCHA, randomString, hexadecimalToRGB and alignImageToCenter. The function CAPTCHA is responsible to Create Captcha image. It accepts 4 params $textColor, $backgroundColor, $imgWidth, $imgHeight. $textColor is the color for text. $backgroundColor is the captcha background. $imgWidth &amp; $imgHeight is decides area for capatch. randomString function generating random strings which I am converting later into Captcha image. hexadecimalToRGB is the color converter function. While generating image alignImageToCenter is responsible for aling <a href="https://jharaphula.com/javascript-function-random-string/" target="_blank" rel="noopener noreferrer">random string</a> to center.</p>
<p>The base function to generate Captcha is &#8220;CAPTCHA&#8221;. In this function initially I am with some configurable variables. Then generating a random string and providing style. Finally using PHP imagettftext() function generating the Captcha image.</p>
<h3>PHP-Captcha.php</h3>
<pre class="brush: php; title: ; notranslate">&lt;?php
/*Executing the Function Captcha*/
CAPTCHA('#162453', '#fff', 120, 40);

/*Function to Generate Captcha*/
function CAPTCHA($textColor, $backgroundColor, $imgWidth, $imgHeight)
{
/* Configuration Settings */
$font = './font/mono.ttf';
$fontSize = $imgHeight * 0.75;
$textColor = hexadecimalToRGB($textColor);

/*Generating and Storing random string to $rnd variable*/
$rnd = randomString();

$im = imagecreatetruecolor($imgWidth, $imgHeight);	
$textColor = imagecolorallocate($im, $textColor['r'], $textColor['g'], $textColor['b']);			

$bgColor = hexadecimalToRGB($backgroundColor);
$backgroundColor = imagecolorallocate($im, $bgColor['r'],$bgColor['g'],$bgColor['b']);				

imagefill($im, 0, 0, $backgroundColor);	
list($x, $y) = alignImageToCenter($im, $rnd, $font, $fontSize);	
imagettftext($im, $fontSize, 0, $x, $y, $textColor, $font, $rnd);		

/*Displaying image*/
imagejpeg($im, NULL, 90);

/*Declaring Image Type*/
header('Content-Type: image/jpeg');
imagedestroy($im);/* Destroying image instance */

/*Storing the random string to a Session variable*/
if(isset($_SESSION)){
$_SESSION['captcha_code'] = $rnd;/* set random text in session for captcha validation*/
}
}

/*This for is responsible to generate Random string for Captcha*/
function randomString($length=6){
$characters = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';
$charactersLength = strlen($characters);
$randomString = '';
for ($i = 0; $i &lt; $length; $i++) {
$randomString .= $characters[rand(0, $charactersLength - 1)];
}
return $randomString;
}

/*Using this function I am extracting RBG value form Hexadecimal Color*/
function hexadecimalToRGB($colour)
{
$hex = str_replace(&quot;#&quot;, &quot;&quot;, $colour); 

if(strlen($hex) == 3) { 
$red = hexdec(substr($hex,0,1).substr($hex,0,1)); 
$green = hexdec(substr($hex,1,1).substr($hex,1,1)); 
$blue = hexdec(substr($hex,2,1).substr($hex,2,1)); 
} else { 
$red = hexdec(substr($hex,0,2)); 
$green = hexdec(substr($hex,2,2)); 
$blue = hexdec(substr($hex,4,2)); 
}
return array( 'r' =&gt; $red, 'g' =&gt; $green, 'b' =&gt; $blue );
}		

/*Function to position Image to the Center*/
function alignImageToCenter($image, $text, $font, $size, $angle = 8) 
{
$xi = imagesx($image);
$yi = imagesy($image);
$box = imagettfbbox($size, $angle, $font, $text);
$xr = abs(max($box[2], $box[4]));
$yr = abs(max($box[5], $box[7]));
$x = intval(($xi - $xr) / 2);
$y = intval(($yi + $yr) / 2);
return array($x, $y);	
}
?&gt;</pre>
<p>To run the above code additionally you required to Create a font folder in root directory. Download a ttf image file. Put that in the font folder. Without ttf font file this PHP Captcha program will not run.</p>
<h2>Enhancing CAPTCHA Security</h2>
<p>1. Dynamic Distortion: Vary the distortion level for each character.<br />
2. Variable Length: Randomize the string length.<br />
3. Case Sensitivity: Enforce case sensitivity if needed.<br />
4. Expiration: Set a time limit for CAPTCHA validity.<br />
5. Rate Limiting: Limit CAPTCHA attempts per IP.</p>
<h2>Alternatives to Traditional CAPTCHA</h2>
<p>While string-to-image CAPTCHAs are effective, they can be inconvenient for users. Alternatives include:</p>
<p>&#8211; reCAPTCHA (Google): Uses behavioral analysis and image recognition.<br />
&#8211; hCaptcha: Privacy-focused alternative to reCAPTCHA.<br />
&#8211; Math-Based CAPTCHA: Requires solving a simple arithmetic problem.</p>
<h2>Conclusion</h2>
<p>String-to-image CAPTCHA remains a reliable method for preventing automated attacks while maintaining accessibility for human users. By leveraging PHP’s GD library, developers can implement a customizable CAPTCHA system with varying levels of complexity. However, balancing security and usability is crucial—excessive distortion may frustrate users, while insufficient measures may fail to deter bots. For high-security applications, integrating third-party solutions like reCAPTCHA may offer better protection with minimal development overhead.</p>
<p>The post <a href="https://jharaphula.com/simple-free-php-captcha-code/">Simple string to image based free PHP Captcha Code</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://jharaphula.com/simple-free-php-captcha-code/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			<media:content url="https://jharaphula.com/wp-content/uploads/2016/05/captcha.png" medium="image" />
	</item>
		<item>
		<title>How to install SASS on Windows? &#8211; SASS Getting Started</title>
		<link>https://jharaphula.com/sass-getting-started-install-windows/</link>
					<comments>https://jharaphula.com/sass-getting-started-install-windows/#respond</comments>
		
		<dc:creator><![CDATA[Nibedita Panda]]></dc:creator>
		<pubDate>Sun, 15 May 2016 17:58:42 +0000</pubDate>
				<category><![CDATA[CSS Tricks with Examples]]></category>
		<category><![CDATA[Advanced Features of SASS]]></category>
		<category><![CDATA[SASS Getting Started]]></category>
		<category><![CDATA[SASS on Windows]]></category>
		<category><![CDATA[SASS Variables]]></category>
		<category><![CDATA[Steps to install SASS]]></category>
		<guid isPermaLink="false">http://box.jharaphula.com/?p=1681</guid>

					<description><![CDATA[<img width="300" height="174" src="https://jharaphula.com/wp-content/uploads/2016/05/sass-installation-300x174.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="How to install SASS on Windows? - SASS Getting Started" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/sass-installation-300x174.jpg 300w, https://jharaphula.com/wp-content/uploads/2016/05/sass-installation.jpg 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>As a UI Developer you must fetched few real-time problems while working in CSS. For an example how it is if we will declare a...</p>
<p>The post <a href="https://jharaphula.com/sass-getting-started-install-windows/">How to install SASS on Windows? &#8211; SASS Getting Started</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></description>
										<content:encoded><![CDATA[<img width="300" height="174" src="https://jharaphula.com/wp-content/uploads/2016/05/sass-installation-300x174.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="How to install SASS on Windows? - SASS Getting Started" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/sass-installation-300x174.jpg 300w, https://jharaphula.com/wp-content/uploads/2016/05/sass-installation.jpg 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>As a UI Developer you must fetched few real-time problems while <a href="https://jharaphula.com/css3-new-features-gradients-webfonts/" rel="noopener noreferrer" target="_blank">working in CSS</a>. For an example how it is if we will declare a color variable and refer that in all classes with same color code. Such kind of problems we can fix using SASS. <a href="//sass-lang.com/" target="_blank" rel="nofollow noopener noreferrer">SASS</a> gives power to CSS. SASS is a feature rich powerful CSS extension language. SASS is compatible with all versions of CSS. We can structure our CSS using SASS.</p>
<p>The complete name of SASS is “Syntactically Awesome Stylesheets”. It was developed by Natalie Weizenbaum in 2006. Using SASS including default behaviors of CSS additionally we can do selector inheritance, nested rules, variables, inline imports &amp; mixins. SASS is available in 2 versions. The first version is SCSS (Sassy CSS). The extension of SCSS file is .scss.</p>
<h3>SASS Getting Started</h3>
<p><strong>Nesting</strong>: In Sass we can able to nest selectors in the same hierarchy as of HTML.</p>
<p><strong>Variables</strong>: Using Sass it can possible to store any CSS values to variables. Variable name begins with a dollar($) sign and assignment uses a colon (:). We can do arithmetic operations to variables also.</p>
<p><strong>Mixins</strong>: In SCSS using Mixins technique we can define styles &amp; the same styles can re-used throughout the stylesheet. To make more programmer friendly we can also pass arguments to Mixins.</p>
<p><strong>Inheritance</strong>: Using @extend selector in Sass we can inherit the styles from an another selector.</p>
<p><strong>Partials</strong>: To made modularization easy Sass introduced partial Sass files technique. A partial Sass file is named with a leading underscore, like _tempvariables.scss. This file is not converted to a CSS file. But we can import partial Sass files with the @import directive.</p>
<h3>How to install SASS on Windows?</h3>
<p>To install SASS in Windows first you required to download Ruby. You can download ruby from <a href="http://rubyinstaller.org" target="_blank" rel="noopener noreferrer nofollow">http://rubyinstaller.org</a>. Once you installed with ruby start the command prompt. From Command line to install Sass gem run the following Command:</p>
<p><em>gem install sass</em></p>
<p>SASS required one line Command to Setup. During installation if you found downloading issue, you can download the setup file manually from <a href="https://rubygems.org/gems/sass" target="_blank" rel="nofollow noopener noreferrer">https://rubygems.org/gems/sass</a>.<br />
To double check whether SASS installed successfully or not you can issue the following command.</p>
<p><em>sass -v</em></p>
<p>This will give you the version number of current installation like “Sass 3.4.22 (Selective Steve)”.<br />
SASS to CSS. Using the following command you can convert a SASS file to CSS.</p>
<p><em>sass input.scss output.css</em></p>
<p>SASS compiler can watch the changes in the SASS file and update the CSS using the following Command:</p>
<p><em>sass –watch input.scss:output.css</em></p>
<p>The post <a href="https://jharaphula.com/sass-getting-started-install-windows/">How to install SASS on Windows? &#8211; SASS Getting Started</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://jharaphula.com/sass-getting-started-install-windows/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			<media:content url="https://jharaphula.com/wp-content/uploads/2016/05/sass-installation.jpg" medium="image" />
	</item>
		<item>
		<title>Easily Customizable Responsive Pure CSS Accordion Example</title>
		<link>https://jharaphula.com/responsive-pure-css-accordion-example/</link>
					<comments>https://jharaphula.com/responsive-pure-css-accordion-example/#respond</comments>
		
		<dc:creator><![CDATA[Nibedita Panda]]></dc:creator>
		<pubDate>Sun, 15 May 2016 17:57:32 +0000</pubDate>
				<category><![CDATA[CSS Tricks with Examples]]></category>
		<category><![CDATA[Bootstrap Accordion]]></category>
		<category><![CDATA[CSS in UI designing]]></category>
		<category><![CDATA[Example of Simple Accordion]]></category>
		<category><![CDATA[Pure CSS Accordion Example]]></category>
		<category><![CDATA[Responsive CSS Accordion]]></category>
		<guid isPermaLink="false">http://box.jharaphula.com/?p=1679</guid>

					<description><![CDATA[<img width="300" height="176" src="https://jharaphula.com/wp-content/uploads/2016/05/css-accordion-300x176.png" class="webfeedsFeaturedVisual wp-post-image" alt="Easily Customizable Responsive Pure CSS Accordion Example" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/css-accordion-300x176.png 300w, https://jharaphula.com/wp-content/uploads/2016/05/css-accordion.png 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>While displaying a Single panel using expand and collapse effects from the list of panels we generally prefer to use Accordion. In a web application...</p>
<p>The post <a href="https://jharaphula.com/responsive-pure-css-accordion-example/">Easily Customizable Responsive Pure CSS Accordion Example</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></description>
										<content:encoded><![CDATA[<img width="300" height="176" src="https://jharaphula.com/wp-content/uploads/2016/05/css-accordion-300x176.png" class="webfeedsFeaturedVisual wp-post-image" alt="Easily Customizable Responsive Pure CSS Accordion Example" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/css-accordion-300x176.png 300w, https://jharaphula.com/wp-content/uploads/2016/05/css-accordion.png 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>While displaying a Single panel using expand and collapse effects from the list of panels we generally prefer to use Accordion. In a web application Accordion helps to display large number of contents in less area. There are many ways to create an Accordion. I noticed many developers uses <a href="https://jharaphula.com/learn-javascript-programming-beginners/" target="_blank" rel="noopener noreferrer">scripting languages</a> to design an accordion. I can say this is a bad practice. Whether Server resource or Client resource we prefer to use as less as possible. The advantages of Pure CSS Accordion is it takes less time to load and easily Configurable.</p>
<p><img loading="lazy" decoding="async" src="https://jharaphula.com/wp-content/uploads/2016/05/pure-css-accordion.jpg" alt="pure-css-accordion" width="750" height="280" class="alignnone size-full wp-image-1794" srcset="https://jharaphula.com/wp-content/uploads/2016/05/pure-css-accordion.jpg 750w, https://jharaphula.com/wp-content/uploads/2016/05/pure-css-accordion-300x112.jpg 300w" sizes="auto, (max-width: 750px) 100vw, 750px" /></p>
<p>Here in this demo app I am using pure CSS with HTML5 to prepare a Easily Customizable Responsive Accordion. This is completely responsive and cross-browser compatible. You can use this by simply coping the below files.</p>
<h3>Pure-CSS-Accordion.htm</h3>
<pre class="brush: xml; title: ; notranslate">&lt;!DOCTYPE html&gt;
&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot; &gt;
&lt;head&gt;
&lt;title&gt;Pure CSS Accordion Example&lt;/title&gt;
&lt;link rel=&quot;stylesheet&quot; href=&quot;master.css&quot; /&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;div id=&quot;basePanel&quot;&gt;
&lt;div class=&quot;accordion&quot;&gt;
&lt;div id=&quot;panel-1&quot;&gt;
&lt;a href=&quot;#panel-1&quot; class=&quot;panel&quot;&gt;NETWORK LAYER&lt;/a&gt;
&lt;div class=&quot;expandable&quot;&gt;
Network layer forms the third layer from top in the TCP/IP model. It does the functionality of transferring packets between networks. Internet protocol (IP) is an example of network layer protocol. IP performs the basic task of sending packets of data from source to target.
&lt;/div&gt;
&lt;/div&gt;
&lt;div id=&quot;panel-2&quot;&gt;
&lt;a href=&quot;#panel-2&quot; class=&quot;panel&quot;&gt;DATA LINK LAYER&lt;/a&gt;
&lt;div class=&quot;expandable&quot;&gt;
The data link layer is the second layer. This layer has the functionality of adding the header information to the packet and also to transfer packets to the physical layer. The layer where packets are intercepted and sent over a virtual private network.
&lt;/div&gt;
&lt;/div&gt;
&lt;div id=&quot;panel-3&quot;&gt;
&lt;a href=&quot;#panel-3&quot; class=&quot;panel&quot;&gt;PHYSICAL LAYER&lt;/a&gt;
&lt;div class=&quot;expandable&quot;&gt;
The first layer in TCP/IP model is Physical layer. It is accountable for encoding and spread of data through network communications media. It sends the data in the form of bits from the Physical layer of the source device and is received at the destination device. It also contains many hardware-related network design issues. For example, LAN, WAN and wireless technology.
&lt;/div&gt;			
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/body&gt;
&lt;/html&gt;</pre>
<h3>master.css</h3>
<pre class="brush: css; title: ; notranslate">.accordion { width: 100%; }
.accordion .panel { display: block; height: 35px; padding-left: 20px; font: bold 14px/35px Arial, Verdana; text-decoration: none; color: #eee; background: #66BECA; }
.accordion .panel:hover,.accordion div:target .panel { color: #2b3b06; }
.accordion div .expandable { display: none; margin: 8px 5px 5px 20px; font-family: Arial, Verdana; font-size: 15px; }
.accordion div:target .expandable { display: block; }
.accordion &amp;gt; div { height: 40px; overflow: hidden; -webkit-transition: all .3s ease-in-out; -moz-transition: all .3s ease-in-out; -o-transition: all .3s ease-in-out; -ms-transition: all .3s ease-in-out; transition: all .3s ease-in-out; }
.accordion &amp;gt; div:target { height: 200px; background: #E3E6E6; margin-bottom: 5px; }</pre>
<p>The post <a href="https://jharaphula.com/responsive-pure-css-accordion-example/">Easily Customizable Responsive Pure CSS Accordion Example</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://jharaphula.com/responsive-pure-css-accordion-example/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			<media:content url="https://jharaphula.com/wp-content/uploads/2016/05/css-accordion.png" medium="image" />
	</item>
		<item>
		<title>Responsive mobile first BootStrap 5 User Login page Example</title>
		<link>https://jharaphula.com/responsive-bootstrap-login-page-example/</link>
					<comments>https://jharaphula.com/responsive-bootstrap-login-page-example/#comments</comments>
		
		<dc:creator><![CDATA[Nibedita Panda]]></dc:creator>
		<pubDate>Sun, 15 May 2016 17:56:22 +0000</pubDate>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[BootStrap]]></category>
		<category><![CDATA[BootStrap Login page]]></category>
		<category><![CDATA[Login page Example]]></category>
		<category><![CDATA[Responsive Web Designing]]></category>
		<category><![CDATA[UI Inconsistency]]></category>
		<guid isPermaLink="false">http://box.jharaphula.com/?p=1677</guid>

					<description><![CDATA[<img width="300" height="170" src="https://jharaphula.com/wp-content/uploads/2016/05/responsive-login-page-300x170.png" class="webfeedsFeaturedVisual wp-post-image" alt="Responsive mobile first Bootstrap Login page Example" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/responsive-login-page-300x170.png 300w, https://jharaphula.com/wp-content/uploads/2016/05/responsive-login-page.png 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>Using a Login page we authenticate an user to access our resources. While designing a web application we always deal with login page as the...</p>
<p>The post <a href="https://jharaphula.com/responsive-bootstrap-login-page-example/">Responsive mobile first BootStrap 5 User Login page Example</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></description>
										<content:encoded><![CDATA[<img width="300" height="170" src="https://jharaphula.com/wp-content/uploads/2016/05/responsive-login-page-300x170.png" class="webfeedsFeaturedVisual wp-post-image" alt="Responsive mobile first Bootstrap Login page Example" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/responsive-login-page-300x170.png 300w, https://jharaphula.com/wp-content/uploads/2016/05/responsive-login-page.png 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>Using a Login page we authenticate an user to access our resources. While designing a web application we always deal with login page as the first item. Creating an advanced Login page is not so easy as we are thinking. Morden login pages comes with many functionalities such as Validating user against database, Validating Email ID, Form Validations or Captcha. In application designing Login page is a single unit of User Management module. Are you Searching for a Responsive Login page to implement in your application? If so you are in the correct place. In this demo app using the below example I am designing a responsive Bootstrap Login page.</p>
<h2>BootStrap 5 Grid Framework</h2>
<p>Bootstrap is majorly used for UI development in applications because of the incredible amount of UI options it provides like type, head or media objects. It is easy <a href="https://jharaphula.com/bootstrap-grid-system-tutorial-examples/" target="_blank" rel="noopener noreferrer">for front-end designers to get started</a> by providing a host of html templates showcasing some of the base functionality and layouts available, including some neat ones such as sticky footers and login pages. Includes responsive grid framework, a fixed and fluid grid framework, typography styles, a variety of button and form styles, nav bars and tabs, plus other UI elements like breadcrumbs, breadcrumbs, tooltips and progress bars. Bootstrap truly shines in the JavaScript area. It offers a programmatic API that allow developers to use Bootstrap plugins purely through the JavaScript API.</p>
<p>Don&#8217;t work hard to create a login page from scratch. Just Copy n Paste the below code and modify as you wants.</p>
<h2>BootStrap 5 User Login page Example</h2>
<pre class="brush: xml; title: ; notranslate">&lt;!DOCTYPE html&gt;
&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;
&lt;head&gt;
&lt;title&gt;Responsive Bootstrap Login page Example&lt;/title&gt;
&lt;link rel=&quot;stylesheet&quot; href=&quot;https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css&quot; /&gt;
&lt;link href=&quot;master.css&quot; rel=&quot;stylesheet&quot; type=&quot;text/css&quot; /&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;div class=&quot;container&quot;&gt;
&lt;div class=&quot;row&quot;&gt;
&lt;div class=&quot;col-sm-6 col-md-4 col-md-offset-4&quot;&gt;
&lt;h2 class=&quot;text-center login-title&quot;&gt;Customer Login&lt;/h2&gt;
&lt;div class=&quot;loginBase rounded&quot;&gt;
&lt;form class=&quot;frmLogin&quot;&gt;
&lt;input type=&quot;text&quot; class=&quot;form-control&quot; placeholder=&quot;Email&quot; required autofocus /&gt;
&lt;input type=&quot;password&quot; class=&quot;form-control&quot; placeholder=&quot;Password&quot; required /&gt;
&lt;button class=&quot;btn btn-lg btn-primary btn-block&quot; type=&quot;submit&quot;&gt;Sign in&lt;/button&gt;
&lt;div class=&quot;alignParallal extraPadding&quot;&gt;&lt;input type=&quot;checkbox&quot; value=&quot;true&quot; /&gt;&amp;nbsp;Remember me&lt;/div&gt;
&lt;div class=&quot;alignParallal alignRight&quot;&gt;&lt;a href=&quot;#&quot; class=&quot;pull-right need-help&quot;&gt;Need help? &lt;/a&gt;&lt;/div&gt;
&lt;span class=&quot;clearfix&quot;&gt;&lt;/span&gt;
&lt;/form&gt;
&lt;/div&gt;
&lt;div class=&quot;alignCenter&quot;&gt;
&lt;div class=&quot;alignParallal&quot;&gt;&lt;a href=&quot;#&quot; class=&quot;text-center extLinks&quot;&gt;Register with Us&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;alignParallal extraPadding&quot;&gt;&amp;nbsp;|&amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;alignParallal&quot;&gt;&lt;a href=&quot;#&quot; class=&quot;text-center extLinks&quot;&gt;Recover Credentials&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/body&gt;
&lt;/html&gt;</pre>
<h2>Responsive mobile first Login page CSS (master.css)</h2>
<pre class="brush: css; title: ; notranslate">.frmLogin { max-width: 360px; padding: 15px; margin: 0 auto; }
.frmLogin .form-control { position: relative; font-size: 17px; height: auto; padding: 10px; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; }
.frmLogin .form-control:focus { z-index: 2; }
.frmLogin input[type=&quot;text&quot;] { margin-bottom: 6px; border-bottom-left-radius: 0; border-bottom-right-radius: 0; border-bottom-top-radius: 0; border-bottom-bottom-radius: 0; }
.frmLogin input[type=&quot;password&quot;] { margin-bottom: 6px; border-top-left-radius: 0; border-top-right-radius: 0; border-top-top-radius: 0; border-top-bottom-radius: 0; }
.login-title { display: block; color: #000; font-size: 28px; font-weight: 400; }
.need-help { margin-top: 10px; }
.extLinks { display: block; margin-top: 10px; }
.rounded { border-radius: 10px; -moz-border-radius: 10px; -webkit-border-radius: 10px; }
.alignParallal { float: left; }
.alignRight { float: right; }
.extraPadding { padding-top: 8px; }
.alignCenter { margin: 0 auto; width: 241px; }
.loginBase { margin-top: 20px; padding: 20px 0px 20px 0px; background-color: #f7f7f7; -moz-box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.3); -webkit-box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.3); box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.3); }</pre>
<p>The post <a href="https://jharaphula.com/responsive-bootstrap-login-page-example/">Responsive mobile first BootStrap 5 User Login page Example</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://jharaphula.com/responsive-bootstrap-login-page-example/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			<media:content url="https://jharaphula.com/wp-content/uploads/2016/05/responsive-login-page.png" medium="image" />
	</item>
		<item>
		<title>ASP.NET Login form Example validating user from SQL Server Database</title>
		<link>https://jharaphula.com/asp-net-login-form-example-database/</link>
					<comments>https://jharaphula.com/asp-net-login-form-example-database/#respond</comments>
		
		<dc:creator><![CDATA[Nibedita Panda]]></dc:creator>
		<pubDate>Sun, 15 May 2016 17:54:40 +0000</pubDate>
				<category><![CDATA[Microsoft Technologies]]></category>
		<category><![CDATA[ASP.NET Login form]]></category>
		<category><![CDATA[ASP.NET Login Page]]></category>
		<category><![CDATA[Database Basics]]></category>
		<category><![CDATA[SQL Server Database]]></category>
		<category><![CDATA[validating user from]]></category>
		<guid isPermaLink="false">http://box.jharaphula.com/?p=1675</guid>

					<description><![CDATA[<img width="300" height="184" src="https://jharaphula.com/wp-content/uploads/2016/05/login-using-sql-server-300x184.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="ASP.NET Login form Example validating user from SQL Server Database" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/login-using-sql-server-300x184.jpg 300w, https://jharaphula.com/wp-content/uploads/2016/05/login-using-sql-server.jpg 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>Designing a Login form is not so easy as we are thinking. Modern login pages comes with various rich feature such as Validating User, Form...</p>
<p>The post <a href="https://jharaphula.com/asp-net-login-form-example-database/">ASP.NET Login form Example validating user from SQL Server Database</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></description>
										<content:encoded><![CDATA[<img width="300" height="184" src="https://jharaphula.com/wp-content/uploads/2016/05/login-using-sql-server-300x184.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="ASP.NET Login form Example validating user from SQL Server Database" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/login-using-sql-server-300x184.jpg 300w, https://jharaphula.com/wp-content/uploads/2016/05/login-using-sql-server.jpg 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>Designing a Login form is not so easy as we are thinking. Modern login pages comes with various rich feature such as Validating User, Form Validation, Capcha or Remember Password. In this Login form Example demo app we are going to show you how to authenticate an user using records from SQL Server user table. To start with first you required to Create a user table in <a href="https://jharaphula.com/database-basics-terminologies-definition/" target="_blank" rel="noopener noreferrer">SQL Server</a>.</p>
<h2>Create a SQL Table for Users</h2>
<p>To Create an user table which will store Login details such as UserID or Password your required to run the following Transact-SQL Query.</p>
<pre class="brush: sql; title: ; notranslate">CREATE TABLE user_table (
id INT PRIMARY KEY, 
userid VARCHAR(255) NOT NULL, 
password VARCHAR(56)
);</pre>
<p>Then insert some sample records.</p>
<p>In front-end Copy n Paste my default.aspx page Codes. Here I have 2 textbox Controls such as user id and password. To stop spam here I am using required field validation for both the fields. Additionally to valid an email id I am using ASP.NET RegularExpressionValidator validation control. Then in my form I have a submit button. Which submits the form to server using post method.</p>
<h2>ASP.NET Login form Example</h2>
<pre class="brush: xml; title: ; notranslate">&lt;%@ Page Language=&quot;VB&quot; AutoEventWireup=&quot;false&quot; CodeFile=&quot;Default.aspx.vb&quot; Inherits=&quot;_Default&quot; %&gt;
&lt;!DOCTYPE html&gt;
&lt;html&gt;
&lt;head runat=&quot;server&quot;&gt;
&lt;title&gt;ASP.NET Login form Example&lt;/title&gt;
&lt;link rel=&quot;stylesheet&quot; href=&quot;master.css&quot; /&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;form id=&quot;frmLogin&quot; runat=&quot;server&quot;&gt;
&lt;div class=&quot;loginDiv rounded&quot;&gt;
&lt;div class=&quot;formControl&quot;&gt;
Email ID&amp;nbsp;&lt;span style=&quot;color: Red;&quot;&gt;*&lt;/span&gt;
&lt;/div&gt;
&lt;div class=&quot;formControl&quot;&gt;
&lt;asp:TextBox ID=&quot;txtEmailID&quot; runat=&quot;server&quot; Width=&quot;100%&quot;&gt;&lt;/asp:TextBox&gt;
&lt;asp:RequiredFieldValidator ID=&quot;rfvEmailID&quot; runat=&quot;server&quot; ControlToValidate=&quot;txtEmailID&quot;
Display=&quot;Dynamic&quot; ErrorMessage=&quot;Email should not be blank.&lt;br /&gt;&quot;&gt;&lt;/asp:RequiredFieldValidator&gt;
&lt;asp:RegularExpressionValidator ID=&quot;revEmailID&quot; runat=&quot;server&quot;
ControlToValidate=&quot;txtEmailID&quot; Display=&quot;Dynamic&quot; ErrorMessage=&quot;Enter a valid Email ID.&lt;br /&gt;&quot;
ValidationExpression=&quot;\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*&quot;&gt;&lt;/asp:RegularExpressionValidator&gt;
&lt;/div&gt;
&lt;div class=&quot;formControl&quot;&gt;
Password&amp;nbsp;&lt;span style=&quot;color: Red;&quot;&gt;*&lt;/span&gt;
&lt;/div&gt;
&lt;div class=&quot;formControl&quot;&gt;
&lt;asp:TextBox ID=&quot;txtPassword&quot; runat=&quot;server&quot; TextMode=&quot;Password&quot; Width=&quot;100%&quot;&gt;&lt;/asp:TextBox&gt;
&lt;asp:RequiredFieldValidator ID=&quot;rfvPassword&quot; runat=&quot;server&quot; ControlToValidate=&quot;txtPassword&quot;
Display=&quot;Dynamic&quot; ErrorMessage=&quot;Password should not be blank.&quot;&gt;&lt;/asp:RequiredFieldValidator&gt;
&lt;/div&gt;
&lt;asp:Button ID=&quot;btnVisitorLogin&quot; runat=&quot;server&quot; Text=&quot;Login&quot; /&gt;
&lt;asp:Label ID=&quot;lblMessage&quot; runat=&quot;server&quot;&gt;&lt;/asp:Label&gt;
&lt;input type=&quot;checkbox&quot; value=&quot;remember-me&quot; /&gt;&amp;nbsp;Remember me&lt;a href=&quot;#&quot; class=&quot;pull-right margin-gap&quot;&gt;Need help?&lt;/a&gt;
&lt;/div&gt;
&lt;/form&gt; 
&lt;/body&gt;
&lt;/html&gt;</pre>
<p>To valid user from SQL Server in Code behind file I am executing my business logics inside &#8220;btnVisitorLogin_Click&#8221; event. To connect and execute SQL query which will fetch data I imported the system files &#8220;System.Data&#8221; and &#8220;System.Data.SqlClient&#8221; in page header.</p>
<p>To establish a Connection I am creating a new instance for SQL Server Connection object. Which accepts connection string from my web.config file. Look at the below code to know how to declare connection string in web.config file.</p>
<pre class="brush: xml; title: ; notranslate">&lt;connectionStrings&gt;
&lt;add name=&quot;connStr&quot; connectionString=&quot;Data Source=WINSERV;Initial Catalog=phase2;User ID=sa;Password=win#serv&quot; providerName=&quot;System.Data.SqlClient&quot;/&gt;
&lt;/connectionStrings&gt;</pre>
<p>Here Data Source is my Database Server name. Initial Catalog is the Database name and User id, password is for the database user.</p>
<p>To compare user Credentials with database records here I am executing a command object and fetching user table records to a SQL DataReader. As you know datareader works like a pointer. Using a DataReader compare to a DataSet we can minimize the login time. To validate a user I am running a while loop until the end record of SQL DataReader &#8220;dr_pass&#8221;. For each record inside the while loop I am comparing the value with user password. In case it returns true I am allowing the user to redirect into the application dashboard page.</p>
<h3>Default.aspx.vb</h3>
<pre class="brush: vb; title: ; notranslate">Imports System.Data
Imports System.Data.SqlClient

Partial Class _Default
Inherits System.Web.UI.Page

Protected Sub btnVisitorLogin_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnVisitorLogin.Click

Dim oMyConnection As New SqlConnection(ConfigurationManager.ConnectionStrings(&quot;connStr&quot;).ToString)
Dim oMyCommand As New SqlCommand(&quot;SELECT password, userid FROM user_table WHERE userid= '&quot; &amp; txtEmailID.Text &amp; &quot;' &quot;, oMyConnection)
Dim dr_pass As SqlDataReader

oMyConnection.Open()
dr_pass = oMyCommand.ExecuteReader(System.Data.CommandBehavior.CloseConnection)

If Not dr_pass.HasRows Then
lblMessage.Text = &quot;Invalid Email or Password.&quot;
End If

While dr_pass.Read
If Trim(txtPassword.Text) = dr_pass(&quot;password&quot;) Then
Session.Add(&quot;sess_uid&quot;, dr_pass(&quot;userid&quot;))
Response.Redirect(&quot;../Dashboard.aspx&quot;)
End If
End While
End Sub
End Class</pre>
<h2>Login Form CSS Style (master.css)</h2>
<pre class="brush: css; title: ; notranslate">#frmLogin { max-width: 300px; margin: 0 auto; padding-top: 120px; }
.formControl { font-family: Verdana; font-size: 12px; }
.loginDiv { width:300px; margin-top: 20px; padding: 20px 20px 20px 20px; background-color: #f7f7f7; -moz-box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.3); -webkit-box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.3); box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.3); } 
.rounded { border-radius: 10px; -moz-border-radius: 10px; -webkit-border-radius: 10px; }</pre>
<p>The above demo will run without CSS. But beauty attracts eyes. This is the cause I am with the above CSS classes. Apply this CSS to have a basic look. You modify it as per the mock-up.</p>
<p>The post <a href="https://jharaphula.com/asp-net-login-form-example-database/">ASP.NET Login form Example validating user from SQL Server Database</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://jharaphula.com/asp-net-login-form-example-database/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			<media:content url="https://jharaphula.com/wp-content/uploads/2016/05/login-using-sql-server.jpg" medium="image" />
	</item>
		<item>
		<title>How to display data from JSON to HTML table using PHP?</title>
		<link>https://jharaphula.com/data-json-to-html-table-php/</link>
					<comments>https://jharaphula.com/data-json-to-html-table-php/#comments</comments>
		
		<dc:creator><![CDATA[Nibedita Panda]]></dc:creator>
		<pubDate>Sun, 15 May 2016 17:51:23 +0000</pubDate>
				<category><![CDATA[Learn PHP with Examples]]></category>
		<category><![CDATA[GetJSON Example]]></category>
		<category><![CDATA[HTML table using PHP]]></category>
		<category><![CDATA[JSON to HTML Table]]></category>
		<category><![CDATA[Script for PHP]]></category>
		<category><![CDATA[XML to HTML Table]]></category>
		<guid isPermaLink="false">http://box.jharaphula.com/?p=1671</guid>

					<description><![CDATA[<img width="300" height="174" src="https://jharaphula.com/wp-content/uploads/2016/05/html-table-300x174.png" class="webfeedsFeaturedVisual wp-post-image" alt="How to display data from JSON to HTML table using PHP?" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/html-table-300x174.png 300w, https://jharaphula.com/wp-content/uploads/2016/05/html-table.png 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>JSON (JavaScript Object Notation) is a platform independent data inter-exchange technology. To bulid a JSON file we follow XML formatting. JavaScript program can easily convert...</p>
<p>The post <a href="https://jharaphula.com/data-json-to-html-table-php/">How to display data from JSON to HTML table using PHP?</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></description>
										<content:encoded><![CDATA[<img width="300" height="174" src="https://jharaphula.com/wp-content/uploads/2016/05/html-table-300x174.png" class="webfeedsFeaturedVisual wp-post-image" alt="How to display data from JSON to HTML table using PHP?" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/html-table-300x174.png 300w, https://jharaphula.com/wp-content/uploads/2016/05/html-table.png 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>JSON (<em>JavaScript Object Notation</em>) is a platform independent data inter-exchange technology. To bulid a JSON file we follow XML formatting. JavaScript program can easily convert JSON data into JavaScript objects. Like a database using <a href="https://jharaphula.com/learn-json-tutorial-for-beginners/" target="_blank" rel="noopener noreferrer">JSON</a> we can store and retrieve data with multiple fields. In this demo app I am fetching a well formatted JSON file using PHP file_get_contents method. Then dynamically using html table, tr and td presenting those JSON records in a HTML Table.</p>
<h2>Converting Data from JSON to HTML Tables</h2>
<p>JSON is a lightweight data interchange format widely used for transmitting data between servers and web applications. HTML tables, on the other hand, provide a structured way to display data in rows and columns on a webpage. Converting JSON data into an HTML table is a common task in web development, enabling developers to present data in a readable and organized manner. This article explores various methods to achieve this conversion, including manual JavaScript approaches, using libraries, and leveraging modern frameworks.</p>
<p>To start with first let me create a valid JSON file. In below JSON file for each node we have 4 fields empName, designation, company and mob. To present data using JSON we follow key, value pair. Curly braces hold objects while Square brackets hold arrays.</p>
<h3>emp_records.json</h3>
<pre class="brush: jscript; title: ; notranslate">{&quot;employees&quot;:
[
{
&quot;empName&quot;: &quot;Swati Nanda&quot;,
&quot;designation&quot;: &quot;Project Manager&quot;,
&quot;company&quot;: &quot;InfoSys&quot;,
&quot;mob&quot;: &quot;9092353322&quot;
},
{
&quot;empName&quot;: &quot;Pravat Mishra&quot;,
&quot;designation&quot;: &quot;English Trainer&quot;,
&quot;company&quot;: &quot;FM College&quot;,
&quot;mob&quot;: &quot;7847324432&quot;
},
{
&quot;empName&quot;: &quot;Divya Singh&quot;,
&quot;designation&quot;: &quot;Sr. Content Writer&quot;,
&quot;company&quot;: &quot;Wipro&quot;,
&quot;mob&quot;: &quot;9625477893&quot;
},
{
&quot;empName&quot;: &quot;Baby Roy&quot;,
&quot;designation&quot;: &quot;Graphic Engineer&quot;,
&quot;company&quot;: &quot;Tech Mahindra&quot;,
&quot;mob&quot;: &quot;9096266548&quot;
},
{
&quot;empName&quot;: &quot;Satyabrata Panda&quot;,
&quot;designation&quot;: &quot;Sr. Software Engineer&quot;,
&quot;company&quot;: &quot;Capgemini&quot;,
&quot;mob&quot;: &quot;5567748833&quot;
},
{
&quot;empName&quot;: &quot;Sonam Singh&quot;,
&quot;designation&quot;: &quot;Graphic Engineer&quot;,
&quot;company&quot;: &quot;TCS&quot;,
&quot;mob&quot;: &quot;8260272137&quot;
},
{
&quot;empName&quot;: &quot;Subash Roy&quot;,
&quot;designation&quot;: &quot;Jr. Software Engineer&quot;,
&quot;company&quot;: &quot;InfoSys BPO&quot;,
&quot;mob&quot;: &quot;5237748822&quot;
},
{
&quot;empName&quot;: &quot;Mohini Mohapatra&quot;,
&quot;designation&quot;: &quot;UI/UX Engineer&quot;,
&quot;company&quot;: &quot;Synechron&quot;,
&quot;mob&quot;: &quot;8892978436&quot;
},
{
&quot;empName&quot;: &quot;Supriti Kabi&quot;,
&quot;designation&quot;: &quot;Sr. HTML Developer&quot;,
&quot;company&quot;: &quot;InfoSys BPO&quot;,
&quot;mob&quot;: &quot;6667748877&quot;
}
]
}</pre>
<p><img loading="lazy" decoding="async" src="https://jharaphula.com/wp-content/uploads/2016/05/php-table-with-json-data.jpg" alt="php-table-with-json-data" width="754" height="173" class="alignnone size-full wp-image-1802" srcset="https://jharaphula.com/wp-content/uploads/2016/05/php-table-with-json-data.jpg 754w, https://jharaphula.com/wp-content/uploads/2016/05/php-table-with-json-data-300x69.jpg 300w" sizes="auto, (max-width: 754px) 100vw, 754px" /></p>
<p>Now create your PHP file with the below lines of Code.</p>
<h3>JSON-to-HTML.php</h3>
<pre class="brush: php; title: ; notranslate">/*Fetching JSON file content using php file_get_contents method*/
$str_data = file_get_contents(&quot;emp-records.json&quot;);
$data = json_decode($str_data, true);

/*Initializing temp variable to design table dynamically*/
$temp = &quot;&lt;table&gt;&quot;;

/*Defining table Column headers depending upon JSON records*/
$temp .= &quot;&lt;tr&gt;&lt;th&gt;Employee Name&lt;/th&gt;&quot;;
$temp .= &quot;&lt;th&gt;Designation&lt;/th&gt;&quot;;
$temp .= &quot;&lt;th&gt;Company&lt;/th&gt;&quot;;
$temp .= &quot;&lt;th&gt;Mobile Number&lt;/th&gt;&lt;/tr&gt;&quot;;

/*Dynamically generating rows &amp; columns*/
for($i = 0; $i &lt; sizeof($data[&quot;employees&quot;]); $i++)
{
$temp .= &quot;&lt;tr&gt;&quot;;
$temp .= &quot;&lt;td&gt;&quot; . $data[&quot;employees&quot;][$i][&quot;empName&quot;] . &quot;&lt;/td&gt;&quot;;
$temp .= &quot;&lt;td&gt;&quot; . $data[&quot;employees&quot;][$i][&quot;designation&quot;] . &quot;&lt;/td&gt;&quot;;
$temp .= &quot;&lt;td&gt;&quot; . $data[&quot;employees&quot;][$i][&quot;company&quot;] . &quot;&lt;/td&gt;&quot;;
$temp .= &quot;&lt;td&gt;&quot; . $data[&quot;employees&quot;][$i][&quot;mob&quot;] . &quot;&lt;/td&gt;&quot;;
$temp .= &quot;&lt;/tr&gt;&quot;;
}

/*End tag of table*/
$temp .= &quot;&lt;/table&gt;&quot;;

/*Printing temp variable which holds table*/
echo $temp;</pre>
<p>Using the above PHP codes first I am reading the JSON file using file_get_contents() method. Then after using json_decode() method I am decoding the JSON data and storing in a variable like an Array. Temp is the variable which I used to generate dynamic html for table. Using string concatenation I am appending html and $data values to $temp. Finally using using echo I am printing the value of $temp.</p>
<p>Inside the table to Create dynamic rows I am using a for loop over total records count. To get total record count here I am using sizeof() method against $data[&#8220;employees&#8221;] array. Then depending upon JSON records I am binding respective values to td&#8217;s for each row.</p>
<h3>tblClasses.css</h3>
<pre class="brush: css; title: ; notranslate">/*Style for Table*/
table, th , td {
border: 1px solid grey;
border-collapse: collapse;
padding: 4px;
font-family: arial;
}
/*Style for Table Header*/
th {
background: darkblue;
color: white;
text-align: left;
}
/*Style for Alternate Rows*/
table tr:nth-child(odd) {
background-color: #C2EBC3;
}
table tr:nth-child(even) {
background-color: #FFFFFF;
}</pre>
<p>Without the above CSS code this demo app will run. But to make your HTML table beautiful this CSS classes can help. Just copy paste these classes under style tag. This will give you a table as shown in the above figure. You must noticed here I am using tr:nth-child(odd) and tr:nth-child(even) with different background colors. This CSS selector helps to distigush alternate rows with different color codes.</p>
<h2>Best Practices</h2>
<p>1. Validate JSON Data – Ensure the data is properly formatted before conversion.<br />
2. Optimize Performance – For large datasets, consider lazy loading or pagination.<br />
3. Enhance Accessibility – Use semantic HTML and ARIA attributes for screen readers.<br />
4. Responsive Design – Ensure tables adapt to different screen sizes using CSS or libraries.</p>
<h2>Conclusion</h2>
<p>Converting JSON to HTML tables is a fundamental task in web development, facilitating the display of structured data on webpages. Whether using vanilla JavaScript, libraries, or frameworks, developers can choose the method that best suits their project requirements. By following best practices, the resulting tables will be efficient, accessible, and user-friendly.</p>
<p>The post <a href="https://jharaphula.com/data-json-to-html-table-php/">How to display data from JSON to HTML table using PHP?</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://jharaphula.com/data-json-to-html-table-php/feed/</wfw:commentRss>
			<slash:comments>4</slash:comments>
		
		
			<media:content url="https://jharaphula.com/wp-content/uploads/2016/05/html-table.png" medium="image" />
	</item>
		<item>
		<title>PHP Treeview Example using data from MySQL Database</title>
		<link>https://jharaphula.com/php-treeview-example-database/</link>
					<comments>https://jharaphula.com/php-treeview-example-database/#comments</comments>
		
		<dc:creator><![CDATA[Nibedita Panda]]></dc:creator>
		<pubDate>Sun, 15 May 2016 17:43:05 +0000</pubDate>
				<category><![CDATA[Learn PHP with Examples]]></category>
		<category><![CDATA[Data from MySQL Database]]></category>
		<category><![CDATA[JQuery Treeview example]]></category>
		<category><![CDATA[PHP Treeview Example]]></category>
		<category><![CDATA[Pure CSS Treeview Example]]></category>
		<guid isPermaLink="false">http://box.jharaphula.com/?p=1667</guid>

					<description><![CDATA[<img width="300" height="193" src="https://jharaphula.com/wp-content/uploads/2016/05/treeview-demo-app-300x193.png" class="webfeedsFeaturedVisual wp-post-image" alt="PHP Treeview Example using data from MySQL Database" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/treeview-demo-app-300x193.png 300w, https://jharaphula.com/wp-content/uploads/2016/05/treeview-demo-app-294x190.png 294w, https://jharaphula.com/wp-content/uploads/2016/05/treeview-demo-app.png 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>To present bulk of data with parent child relationship Treeview is a classical approach. The major advantage of Treeview is using a Treeview we can...</p>
<p>The post <a href="https://jharaphula.com/php-treeview-example-database/">PHP Treeview Example using data from MySQL Database</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></description>
										<content:encoded><![CDATA[<img width="300" height="193" src="https://jharaphula.com/wp-content/uploads/2016/05/treeview-demo-app-300x193.png" class="webfeedsFeaturedVisual wp-post-image" alt="PHP Treeview Example using data from MySQL Database" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/treeview-demo-app-300x193.png 300w, https://jharaphula.com/wp-content/uploads/2016/05/treeview-demo-app-294x190.png 294w, https://jharaphula.com/wp-content/uploads/2016/05/treeview-demo-app.png 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>To present bulk of data with parent child relationship Treeview is a classical approach. The major advantage of Treeview is using a Treeview we can show more data in less space. Assume that you have a global recruitment portal. You want to display job opportunities depending upon Countries and their Cities. In this case you required a Treeview.</p>
<p>Using a Treeview easily you can display Countries &amp; related Cities hirarchically. In this session let us share sample codes for a PHP Treeview using data from MySQL Database. In front-end using PHP I am binding data to ol li <a href="https://jharaphula.com/list-of-html5-new-tags/" target="_blank" rel="noopener noreferrer">element of HTML</a>. Then by applying CSS styles giving expand and collapse effects to the Treeview. Let us explain this PHP Treeview Example Step by Step.</p>
<p><strong>1</strong>. Create a MySQL table &#8220;tab_treeview&#8221;. Consider &#8220;id&#8221; as the Primary key. During an user enter a record to this SQL table I need the primary field entry need to jump 1 after 1 automatically. Thats why here I declared id filed with &#8220;auto_increment&#8221; property. To store Treeview node details Create 2 other Columns name and title. These fields are with datatype varchar(255). While inserting records keep noted these fields will accept only 255 charecters. You can&#8217;t entry a null value to these fields as NOT NULL attributes specifies. Then to establish parent child relationship created one more column &#8220;parent_id&#8221;. This will store reference of parent node. If parent_id is zero then that record is itself a parent node.</p>
<h2>Query to Create table tab_treeview</h2>
<pre class="brush: sql; title: ; notranslate">CREATE TABLE IF NOT EXISTS tab_treeview (
id int(12) NOT NULL AUTO_INCREMENT,
name varchar(255) NOT NULL,
title varchar(255) NOT NULL,
parent_id varchar(12) NOT NULL,
PRIMARY KEY (id)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=7;</pre>
<p><strong>2</strong>. To start with first you need to insert some sample records to &#8220;tab_treeview&#8221; SQL table. While inserting sample records stay careful about parent_id. A wrong parent_id can change your Treeview structure and nodes.</p>
<h2>Query to Insert sample Records</h2>
<pre class="brush: sql; title: ; notranslate">INSERT INTO tab_treeview (id, name, title, parent_id) VALUES
(1, 'Mumbai', 'The Film City', '3'),
(2, 'New Delhi', 'Capital of India', '3'),
(3, 'India', 'Country', '0'),
(4, 'United States', 'Country', '0'),
(5, 'Washington', 'Popular City of US', '4'),
(6, 'New York', 'Popular City of US', '4'),
(7, 'Olympia', 'Capital of Washington', '5'),
(8, 'Russia', 'Country', '0'),
(9, 'Moscow', 'Popular City of Russia', '8'),
(10, 'Saint Petersburg', 'Popular City of Russia', '8')
(11, 'Bihar', 'State of India', '3'),
(12, 'Uttar Pradesh', 'State of India', '3'),
(13, 'Himachal Pradesh', 'State of India', '3');</pre>
<h2>PHP Treeview Example (<em>Binding Data from Database</em>)</h2>
<p><strong>3</strong>. Create a blank HTML page. Then in body inside PHP tag Copy n Paste the below recursive function &#8220;buildTree()&#8221;. Keep notice this is the function which generates Treeview html. In this function using a foreach loop I am dealing each record from the database. Then dynamically using HTML5 ol li and echo function from PHP writing the ordered list as a treeview.</p>
<h2>buildTree() Recursive function</h2>
<p>This approach is often used to break down complex problems into simpler subproblems, allowing for easier management and resolution. When implementing a recursive function, it is essential to define a base case to prevent infinite loops and ensure that the function eventually terminates. Additionally, careful consideration of the function&#8217;s parameters and return values is crucial for maintaining clarity and efficiency in the code.</p>
<pre class="brush: php; title: ; notranslate">function buildTree($array, $currentParent, $currLevel = 0, $prevLevel = -1) {
foreach ($array as $categoryId =&gt; $category) {
if ($currentParent == $category['parent_id']) {
if ($currLevel &gt; $prevLevel) echo &quot;&lt;ol id='menutree'&gt;&quot;; 
if ($currLevel == $prevLevel) echo &quot;&lt;/li&gt;&quot;;
echo '&lt;li&gt; &lt;label class=&quot;menu_label&quot; for='.$categoryId.'&gt;'.$category['name'].'&lt;/label&gt;&lt;input type=&quot;checkbox&quot; id='.$categoryId.' /&gt;';
if ($currLevel &gt; $prevLevel) { $prevLevel = $currLevel; }
$currLevel++; 
buildTree ($array, $categoryId, $currLevel, $prevLevel);
$currLevel--;   
}
}
if ($currLevel == $prevLevel) echo &quot;&lt;/li&gt; &lt;/ol&gt;&quot;;
}</pre>
<p>Using the recursive function buildTree() inside a foreach loop over $array length I am building each li element of ordered list. To position the cursor for next item here I am using $currLevel++ increment operator. Here orderlist id is &#8220;menutree&#8221;.</p>
<p><strong>4</strong>. Below the &#8220;buildTree()&#8221; function Copy n Paste the below PHP codes. Here using this block I am fetching data from tab_treeview table.</p>
<h2>Understanding the Structure of a Treeview</h2>
<p>A treeview is a hierarchical data structure that organizes information in a parent-child relationship, resembling an inverted tree. It is widely used in computer science, databases, file systems, and user interfaces to represent nested data efficiently. The structure consists of nodes, each serving a specific role in the hierarchy. The four primary components of a treeview are the root node, parent node, child node, and leaf node. Understanding these elements is essential for working with tree-like data models.</p>
<h3>The Root Node</h3>
<p>The root node is the topmost element in a treeview hierarchy. In a file system, for example, the root directory (often represented as &#8220;/&#8221; in Unix-based systems or &#8220;C:\&#8221; in Windows) is the root node. All files and subdirectories stem from this single point.</p>
<p>A key characteristic of the root node is that it is always singular in a well-formed tree structure. Multiple root nodes would imply separate trees, often referred to as a forest in data structure terminology. The root node’s primary function is to provide a reference point for traversing the hierarchy, allowing algorithms to navigate downward through parent and child relationships.</p>
<h3>Parent Nodes</h3>
<p>A parent node is any node in the treeview that has one or more child nodes connected beneath it. Parent nodes act as containers for their children, grouping related data into meaningful subsets. For instance, in an organizational chart, a department head (parent node) may oversee several team leads (child nodes), who in turn manage individual employees.</p>
<p>Parent nodes can themselves be children of higher-level parents, creating multiple layers of depth in the tree. The ability to collapse or expand parent nodes in a graphical user interface (GUI) enhances usability by allowing users to hide or reveal details as needed.</p>
<h3>Child Nodes</h3>
<p>Child nodes are direct descendants of a parent node. Each child node can have only one immediate parent, ensuring a clear hierarchical relationship. Child nodes inherit certain properties from their parents, such as access permissions in a file system or organizational roles in a management hierarchy.</p>
<p>A child node may also function as a parent if it has its own descendants, creating a multi-level tree structure. For example, in a product category tree, &#8220;Electronics&#8221; might be a child of the root node, while &#8220;Smartphones&#8221; is a child of &#8220;Electronics,&#8221; and &#8220;Brand X&#8221; is a child of &#8220;Smartphones.&#8221; This chaining of relationships allows for detailed and scalable data organization.</p>
<h3>Leaf Nodes</h3>
<p>They represent the most granular level of data in the hierarchy. In a file system, individual files are leaf nodes, whereas directories act as parent nodes. Similarly, in a family tree, individuals without descendants would be considered leaf nodes.</p>
<p>Leaf nodes often contain actionable or displayable data, such as file contents in a directory, employee names in an org chart, or product details in an e-commerce category tree. Their position at the end of branches makes them crucial for data retrieval operations, as they hold the actual information rather than just structural references.</p>
<p>Understanding the structure of a treeview—comprising root nodes, parent nodes, child nodes, and leaf nodes—is fundamental for efficient data organization and retrieval. This hierarchical model provides clarity, scalability, and flexibility, making it indispensable in various fields. Whether navigating file systems, designing databases, or structuring user interfaces, recognizing the roles of each node ensures optimal system performance and usability. Mastery of treeview principles empowers users and developers to harness the full potential of hierarchical data representation.</p>
<p>Treeviews can be rendered using HTML, CSS, and JavaScript, with PHP handling the backend logic to fetch and structure the data.</p>
<h2>Traversal Techniques</h2>
<p>Navigating a treeview involves moving from one node to another using specific algorithms. The two primary traversal methods are:</p>
<p>1. <strong>Depth-First Search (DFS)</strong>: Explores as far down a branch as possible before backtracking. Variations include in-order, pre-order, and post-order traversals.<br />
2. <strong>Breadth-First Search (BFS)</strong>: Visits nodes level by level, starting from the root and moving downward in layers.</p>
<h2>Fetching data from MySQL Database</h2>
<p>As natural first using mysql_connect I am pointing my PHP Compiler to localhost mysql database as the user root. In next step using mysql_select_db pre-defiend php function I am selecting treeview specific database from MySQL server. Now we need to execute the sql query &#8220;SELECT * FROM tab_treeview&#8221; to fetch data from db. To do that using mysql_query and storing all records to an array $arrayCountry.</p>
<pre class="brush: php; title: ; notranslate">
/*Connecting to Database tempdb*/
mysql_connect('localhost', 'root');
mysql_select_db('tempdb');

/*Executing the select query to fetch data from table tab_treeview*/
$sqlqry=&quot;SELECT * FROM tab_treeview&quot;;
$result=mysql_query($sqlqry);

/*Defining an array*/
$arrayCountry = array();

while($row = mysql_fetch_assoc($result)){ 
$arrayCountry[$row['id']] = array(&quot;parent_id&quot; =&gt; $row['parent_id'], &quot;name&quot; =&gt; $row['name']);
}

/*Checking is there any records in $result array*/
if(mysql_num_rows($result)!=0)
{
/*Calling the recursive function*/
buildTree($arrayCountry, 0);
}</pre>
<p>Finally on array of data using while loop to build the tree. Inside while loop after checking data persist for the existing row calling the recursive function buildTree($arrayCountry, 0);. Where the first parameter is the $arrayCountry. The function buildTree() accepts 4 parameters. Using this you can customize your treeview as needed.</p>
<p><strong>5</strong>. Now you can able to watch Treeview data in your html page. Apply the below CSS styles to implement expand and collapse effects. Add a style tag in html file head section and copy the below CSS styles. To customize this dynamic Treeview including the below classes you can add your additional CSS Classes.</p>
<h2>CSS Styles for PHP Treeview</h2>
<p>To remove default bulleted list from my ordered list items here I am using list-style: none; for my menu menutree. On clickable node of tree to my the cursor with hand symbol here I am using cursor: pointer for all menu labels.</p>
<pre class="brush: css; title: ; notranslate">#menutree li { list-style: none; }
li .menu_label + input[type=checkbox] { opacity: 0; }
li .menu_label { cursor: pointer; }
li .menu_label + input[type=checkbox] + ol &gt; li { display: none; }
li .menu_label + input[type=checkbox]:checked + ol &gt; li { display: block; }</pre>
<h2>Security Considerations</h2>
<p>Modern web applications face numerous security threats that can compromise user data, disrupt services, and damage organizational reputations. Three critical vulnerabilities—SQL Injection, Cross-Site Scripting (XSS), and Cross-Site Request Forgery (CSRF)—pose significant risks if not properly mitigated. Understanding these threats and implementing protective measures is essential for maintaining a secure digital environment.</p>
<h3>SQL Injection</h3>
<p>By inserting malicious SQL queries into input fields, attackers can manipulate or extract sensitive data, bypass authentication, and even execute administrative operations.</p>
<p><strong>Prevention Techniques</strong></p>
<p>1. Parameterized Queries (Prepared Statements) Using parameterized queries ensures that user input is treated as data rather than executable code. Most modern database libraries support this method.</p>
<p>2. Input Validation Restrict input to expected formats (e.g., alphanumeric characters only) and reject suspicious patterns (e.g., SQL keywords).</p>
<p>3. Stored Procedures Encapsulate database logic in stored procedures, reducing direct SQL string manipulation.</p>
<p>4. Least Privilege Principle Database accounts should have minimal permissions necessary for the application, limiting damage in case of a breach.</p>
<h3>Cross-Site Scripting (XSS) Prevention</h3>
<p>Cross-Site Scripting (XSS) happens due to the injection of malicious scripts. These scripts can steal session cookies, deface websites, or redirect users to phishing sites.</p>
<p><strong>Types of XSS</strong></p>
<p>1. Reflected XSS Malicious scripts are embedded in URLs or forms and executed when the victim loads a manipulated link.</p>
<p>2. Stored XSS Attackers inject persistent scripts into a database or file, which are later served to users.</p>
<p>3. DOM-Based XSS Scripts manipulate the Document Object Model (DOM) directly in the victim&#8217;s browser without server interaction.</p>
<p><strong>Prevention Techniques</strong></p>
<p>1. Output Encoding Encode dynamic content before rendering it in HTML, JavaScript, or other contexts to neutralize malicious scripts.</p>
<p>2. Content Security Policy (CSP) Define a CSP header to restrict sources of executable scripts, reducing the impact of XSS attacks.</p>
<p>3. Input Sanitization Remove or escape unsafe characters (e.g., `<`, `>`, `&#038;`) from user-generated content.</p>
<p>4. HTTP-Only Cookies Mark session cookies as HTTP-only to prevent JavaScript access, mitigating cookie theft.</p>
<h3>CSRF Protection</h3>
<p>Cross-Site Request Forgery (CSRF) tricks users into executing unintended actions on a web application where they are authenticated. Attackers exploit the trust between a user’s browser and a legitimate website to submit forged requests.</p>
<p><strong>Prevention Techniques</strong></p>
<p>1. Anti-CSRF Tokens Require a unique, unpredictable token with each state-changing request. The token must match the one stored on the server.</p>
<p>2. SameSite Cookies Set the `SameSite` attribute for cookies to `Strict` or `Lax` to prevent cross-origin requests.</p>
<p>3. Double-Submit Cookies Store the CSRF token in both a cookie and a hidden form field, validating both upon submission.</p>
<p>4. Require Re-Authentication For sensitive actions (e.g., password changes), force users to confirm their credentials again.</p>
<p>Security threats like SQL Injection, XSS, and CSRF require proactive measures to prevent exploitation. Developers must adopt secure coding practices, validate and sanitize input, implement robust authentication mechanisms, and stay updated on emerging threats. By prioritizing security, organizations can safeguard user data and maintain trust in their digital services.</p>
<h2>Performance Optimization</h2>
<p><strong>Lazy Loading</strong> – This approach enhances performance and reduces resource consumption, particularly in web applications where numerous elements may be present. Load only visible nodes.</p>
<p><strong>Indexing</strong> – Ensure `parent_id` is indexed for faster queries.</p>
<h2>Real-World Applications</h2>
<p>Treeview is a useful tool that helps us organize information in a way that is easy to understand. Imagine you have a big box of toys. If you just dump them all out, it can be hard to find what you want. But if you sort them into groups—like cars in one section and dolls in another—it becomes much easier. In the real world, treeviews are used in many places, like on websites or apps. For example, when you look at files on a computer, the treeview shows folders and files in a clear way. This helps you find what you need quickly. Treeviews are also used in educational apps to break down topics into smaller parts, making learning simpler and more fun. Overall, treeviews help people manage and find information more easily, just like organizing your toys!</p>
<p>1. File Managers – Display directories and files.<br />
2. E-Commerce Categories – Organize product hierarchies.<br />
3. Navigation Menus – Create multi-level dropdowns.</p>
<h2>Conclusion</h2>
<p>A PHP treeview is a powerful tool for displaying hierarchical data in a structured and interactive manner. By combining PHP for backend logic, HTML/CSS for presentation, and JavaScript for interactivity, developers can create efficient and user-friendly treeviews. Whether used in file systems, navigation menus, or organizational charts, mastering treeview implementation enhances web application usability and functionality.</p>
<p>The post <a href="https://jharaphula.com/php-treeview-example-database/">PHP Treeview Example using data from MySQL Database</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://jharaphula.com/php-treeview-example-database/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			<media:content url="https://jharaphula.com/wp-content/uploads/2016/05/treeview-demo-app.png" medium="image" />
	</item>
		<item>
		<title>PHP File Handling methods with suitable Examples</title>
		<link>https://jharaphula.com/php-file-handling-methods-examples/</link>
					<comments>https://jharaphula.com/php-file-handling-methods-examples/#comments</comments>
		
		<dc:creator><![CDATA[Nibedita Panda]]></dc:creator>
		<pubDate>Sun, 15 May 2016 17:41:52 +0000</pubDate>
				<category><![CDATA[Learn PHP with Examples]]></category>
		<category><![CDATA[File Handling methods]]></category>
		<category><![CDATA[File Operation using PHP]]></category>
		<category><![CDATA[File Upload to Server]]></category>
		<category><![CDATA[PHP File Handling]]></category>
		<category><![CDATA[PHP upload Image File]]></category>
		<guid isPermaLink="false">http://box.jharaphula.com/?p=1665</guid>

					<description><![CDATA[<img width="300" height="187" src="https://jharaphula.com/wp-content/uploads/2016/05/PHP-File-Operation-300x187.png" class="webfeedsFeaturedVisual wp-post-image" alt="PHP File Handling methods with suitable Examples" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/PHP-File-Operation-300x187.png 300w, https://jharaphula.com/wp-content/uploads/2016/05/PHP-File-Operation.png 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>In a Web application generally we use File to store data. Assume that in your CMS you want to generate HTML files for each content...</p>
<p>The post <a href="https://jharaphula.com/php-file-handling-methods-examples/">PHP File Handling methods with suitable Examples</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></description>
										<content:encoded><![CDATA[<img width="300" height="187" src="https://jharaphula.com/wp-content/uploads/2016/05/PHP-File-Operation-300x187.png" class="webfeedsFeaturedVisual wp-post-image" alt="PHP File Handling methods with suitable Examples" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/PHP-File-Operation-300x187.png 300w, https://jharaphula.com/wp-content/uploads/2016/05/PHP-File-Operation.png 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>In a Web application generally we use File to store data. Assume that in your CMS you want to generate HTML files for each content you like to publish. Here you required File Operations. Before move into the basics of File Operations using <a href="https://jharaphula.com/category/programming-solutions/php-demo-apps/" target="_blank" rel="noopener noreferrer">PHP</a> let you recall every File has its own properties like File Name, File Size, File Type or Created Date. File to File depending upon the header information File type varies. In PHP to get started with File Operations first you need to learn the following PHP File Handling methods.</p>
<table>
<tr>
<th>Methods</th>
<th>Description</th>
</tr>
<tr>
<td><em>fopen()</em></td>
<td>In PHP using fopen() method we can open a file. fopen() accepts 2 parameters. First parameter is the File Name and second parameter is the mode. There are 6 types of modes r (Open file in read-only mode), r+ (Open the file for writing and reading), w (Open the file for write only mode), w+ (Open the file for reading and writing), a (Open the file for writing only), a+ (Open the file for reading and writing only).</td>
</tr>
<tr>
<td><em>fread()</em></td>
<td>Using fopen() once we open the file to read the contents we use fread(). The method fread() acts like a pointer. It accepts 2 parameters.</td>
</tr>
<tr>
<td><em>fwrite()</em></td>
<td>Using this method we can write or append a File. To execute fwrite() first it is mandatory to open the File. fwrite() accepts 2 parameters. First parameter is the File pointer and second parameter is string of data you want to write in the File.</td>
</tr>
<tr>
<td><em>fclose()</em></td>
<td>Use to close File. fclose() operators exactly opposite to fopen() method.</td>
</tr>
<tr>
<td><em>filesize()</em></td>
<td>Using this method we can retrieve the Size of a File.</td>
</tr>
<tr>
<td><em>readfile()</em></td>
<td>This method we use to read a file. Compare to fopen() readfile() writes the output to buffer.</td>
</tr>
<tr>
<td><em>unlink()</em></td>
<td>This method we use to delete a File.</td>
</tr>
</table>
<h3>Create a File using PHP</h3>
<p>To Create a File in PHP we use fopen() method with writing mode (w). Look at the below example how I am Creating a text file &#8220;demo.txt&#8221; using fopen() method.</p>
<pre class="brush: php; title: ; notranslate">&lt;?php
$tempFile = 'demo.txt';
$handle = fopen($tempFile, 'w') or die('Unable to Open file:  '.$tempFile);
?&gt;</pre>
<h3>Open &amp; Read a File</h3>
<p>In this example I am using fopen to open and fread to read the file. To run the below example Create a text file (sample.txt) with few lines of Contents. Then use open and read methods.</p>
<pre class="brush: php; title: ; notranslate">$tempFile = 'sample.txt';
$handle = fopen($tempFile, 'r');
$data = fread($handle,filesize($tempFile));
echo $data;</pre>
<p>Also using readfile() you can read a file in PHP. This method is so simple to implement. Look at the example below.</p>
<pre class="brush: php; title: ; notranslate">&lt;?php
echo readfile(&quot;sample.txt&quot;);
?&gt;</pre>
<h3>Example to Write or Append a File in PHP</h3>
<p>In PHP to write contents into a file first we required to open the file. Once the file opened successfully we can use fwrite() method to write contents. In the below example I am writing 2 lines to a text file.</p>
<pre class="brush: php; title: ; notranslate">$tempFile = 'demo.txt';
$handle = fopen($tempFile, 'a') or die('Unable to Open file:  '.$tempFile);
$data = 'This is the First line.';
fwrite($handle, $data);
$new_line = &quot;\n&quot;.'This is the Second line I am appending.';
fwrite($handle, $new_line);</pre>
<h3>Close or Delete a File in PHP</h3>
<p>As a principle of PHP File handling make practice to Close a file after did with the required operations. To close a file we use fclose(). Look at the below example.</p>
<pre class="brush: php; title: ; notranslate">$tempFile = 'demo.txt';
$handle = fopen($tempFile, 'a') or die('Unable to Open file:  '.$tempFile);
$data = 'I am working at InfoSys.';
fwrite($handle, $data);
fclose($handle);</pre>
<p>Similarly to delete a file we use unlink() method. Assume that you have a text file in root folder. To delete that you can go for the below line codes.</p>
<pre class="brush: php; title: ; notranslate">$tempFile = 'demo.txt';
unlink($tempFile);</pre>
<p>The post <a href="https://jharaphula.com/php-file-handling-methods-examples/">PHP File Handling methods with suitable Examples</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://jharaphula.com/php-file-handling-methods-examples/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			<media:content url="https://jharaphula.com/wp-content/uploads/2016/05/PHP-File-Operation.png" medium="image" />
	</item>
		<item>
		<title>JQuey AJAX File Upload Example using PHP Server</title>
		<link>https://jharaphula.com/jquey-ajax-file-upload-example-php/</link>
					<comments>https://jharaphula.com/jquey-ajax-file-upload-example-php/#respond</comments>
		
		<dc:creator><![CDATA[Nibedita Panda]]></dc:creator>
		<pubDate>Sun, 15 May 2016 17:36:34 +0000</pubDate>
				<category><![CDATA[Learn PHP with Examples]]></category>
		<category><![CDATA[Ajax Example]]></category>
		<category><![CDATA[AJAX File Upload Example]]></category>
		<category><![CDATA[ASP.NET File Upload]]></category>
		<category><![CDATA[File Upload to Server]]></category>
		<category><![CDATA[How to implement AJAX?]]></category>
		<category><![CDATA[PHP upload Image File]]></category>
		<guid isPermaLink="false">http://box.jharaphula.com/?p=1663</guid>

					<description><![CDATA[<img width="300" height="187" src="https://jharaphula.com/wp-content/uploads/2016/05/Ajax-File-Uploader-300x187.png" class="webfeedsFeaturedVisual wp-post-image" alt="JQuey AJAX File Upload Example using PHP Server" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/Ajax-File-Uploader-300x187.png 300w, https://jharaphula.com/wp-content/uploads/2016/05/Ajax-File-Uploader.png 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>Jquery is a Client Side programming language. Independently using jquery it is not possible to upload a file to PHP Server. To upload a file...</p>
<p>The post <a href="https://jharaphula.com/jquey-ajax-file-upload-example-php/">JQuey AJAX File Upload Example using PHP Server</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></description>
										<content:encoded><![CDATA[<img width="300" height="187" src="https://jharaphula.com/wp-content/uploads/2016/05/Ajax-File-Uploader-300x187.png" class="webfeedsFeaturedVisual wp-post-image" alt="JQuey AJAX File Upload Example using PHP Server" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/Ajax-File-Uploader-300x187.png 300w, https://jharaphula.com/wp-content/uploads/2016/05/Ajax-File-Uploader.png 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>Jquery is a Client Side programming language. Independently using jquery it is not possible to upload a file to PHP Server. To upload a file using jquery what we can do is we can use <a href="https://jharaphula.com/jquery-ajax-example-get-post-methods/" target="_blank" rel="noopener noreferrer">jquery post method</a> to send the file to the Server. Then in Server we required a PHP script to upload the file to the respective physical folder. In the below example I am uploading a file to PHP Server using JQuey AJAX File Upload technique.</p>
<p>In HTML I have 2 Controls an input box with type=&#8221;file&#8221; and a Submit button. These 2 controls are inside the form element. The form &#8220;frmUploading&#8221; is with action=&#8221;php-uploader.php&#8221; to my PHP page. The form enctype type is &#8220;multipart/form-data&#8221;. In head section I embedded 2 jquery libraries (jquery.min.js &amp; jquery.form.min.js). Using input type file after the user choose the file successfully I am submitting the form inside jquery document.ready() method using jquery form Ajax method ajaxForm().</p>
<h3>AJAX-File-Upload.htm</h3>
<pre class="brush: xml; title: ; notranslate">&lt;!DOCTYPE html&gt;
&lt;head&gt;
&lt;title&gt;JQuey AJAX File Upload Example&lt;/title&gt;
&lt;script type=&quot;text/javascript&quot; src=&quot;https://code.jquery.com/jquery-2.2.3.min.js&quot;&gt;&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot; src=&quot;https://cdnjs.cloudflare.com/ajax/libs/jquery.form/3.51/jquery.form.min.js&quot;&gt;&lt;/script&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;h2&gt;AJAX File Upload Example&lt;/h2&gt;

&lt;form id=&quot;frmUploading&quot; action=&quot;php-uploader.php&quot; method=&quot;post&quot; enctype=&quot;multipart/form-data&quot;&gt;
&lt;input type=&quot;file&quot; size=&quot;70&quot; name=&quot;fileSelector&quot; /&gt;
&lt;input type=&quot;submit&quot; value=&quot;Upload your File&quot; /&gt;
&lt;/form&gt;

&lt;script type=&quot;text/javascript&quot;&gt;
var options = { 
beforeSend: function() 
{
/*In this block you can initiate any value before Uploading. */
},
uploadProgress: function(event, position, total, percentComplete) 
{
/*During a large file uploading in this event you can show progress bar. */
},
success: function() 
{
/*This block executes after file successfully uploaded. */
},
complete: function(response) 
{
/*Once your file uploaded successful at the end you show a message here. */
},
error: function()
{
/*In-case file uploading get failure here you can show errors. */
}

$(document).ready(function()
{ 
/*Submitting the form using jquery form Ajax method. */
$(&quot;#frmUploading&quot;).ajaxForm(options); 
}); 
&lt;/script&gt;
&lt;/body&gt;
&lt;/html&gt;</pre>
<p>Using jquery form once the file post to the Server. There I am executing the below script. To upload the user file I created a folder in root with the name &#8220;uploads&#8221;. That folder path I am storing in &#8220;$upload_dir&#8221; php variable. Using isset($_FILES[&#8220;fileSelector&#8221;]) I am checking whether the user choose file successfully or not. If it is returning true then I am checking is there any error in fileSelector or else using php move_uploaded_file() method uploading the file. To run this demo app first create the above index.htm file. Then create the below php file in the same folder. Here I am uploading my files to &#8220;uploads&#8221; folder. You can update this as per your folder location.</p>
<h3>php-uploader.php</h3>
<pre class="brush: php; title: ; notranslate">&lt;?php
/* where you want to upload your file, define that folder path here. */
$upload_dir = &quot;uploads/&quot;;

if(isset($_FILES[&quot;fileSelector&quot;]))
{
/* using this block you can filter the file types */
if ($_FILES[&quot;fileSelector&quot;][&quot;error&quot;] &gt; 0)
{
echo &quot;Error Occurred: &quot; . $_FILES[&quot;file&quot;][&quot;error&quot;] . &quot;&lt;br /&gt;&quot;;
}
else
{
/* move the uploaded file to uploads folder */
move_uploaded_file($_FILES[&quot;fileSelector&quot;][&quot;tmp_name&quot;],$upload_dir. $_FILES[&quot;fileSelector&quot;][&quot;name&quot;]);
echo &quot;Your file :&quot; . $_FILES[&quot;fileSelector&quot;][&quot;name&quot;] . &quot; uploaded successfully.&quot;;
}
}
?&gt;</pre>
<p>The post <a href="https://jharaphula.com/jquey-ajax-file-upload-example-php/">JQuey AJAX File Upload Example using PHP Server</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://jharaphula.com/jquey-ajax-file-upload-example-php/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			<media:content url="https://jharaphula.com/wp-content/uploads/2016/05/Ajax-File-Uploader.png" medium="image" />
	</item>
		<item>
		<title>Web Developer Interview Questions and Answers for Freshers</title>
		<link>https://jharaphula.com/web-developer-interview-questions-answers/</link>
					<comments>https://jharaphula.com/web-developer-interview-questions-answers/#respond</comments>
		
		<dc:creator><![CDATA[Nibedita Panda]]></dc:creator>
		<pubDate>Sun, 15 May 2016 17:34:11 +0000</pubDate>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[HR Interview Questions]]></category>
		<category><![CDATA[HTML5 interview Questions]]></category>
		<category><![CDATA[Interview Questions for Freshers]]></category>
		<category><![CDATA[UI Developer Interview Questions]]></category>
		<category><![CDATA[Web Developer Interview Questions]]></category>
		<guid isPermaLink="false">http://box.jharaphula.com/?p=1659</guid>

					<description><![CDATA[<img width="300" height="168" src="https://jharaphula.com/wp-content/uploads/2016/05/web-technology-question-and-answers-300x168.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="Web Developer Interview Questions and Answers for Freshers" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/web-technology-question-and-answers-300x168.jpg 300w, https://jharaphula.com/wp-content/uploads/2016/05/web-technology-question-and-answers.jpg 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>Everyday more than thousand of IT developers are choosing Web Technology as their Career. Refer to my experiences to became a Successful Web Developer is...</p>
<p>The post <a href="https://jharaphula.com/web-developer-interview-questions-answers/">Web Developer Interview Questions and Answers for Freshers</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></description>
										<content:encoded><![CDATA[<img width="300" height="168" src="https://jharaphula.com/wp-content/uploads/2016/05/web-technology-question-and-answers-300x168.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="Web Developer Interview Questions and Answers for Freshers" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/web-technology-question-and-answers-300x168.jpg 300w, https://jharaphula.com/wp-content/uploads/2016/05/web-technology-question-and-answers.jpg 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>Everyday more than thousand of IT developers are choosing Web Technology as their Career. Refer to my experiences to became a Successful Web Developer is not so easy. Advanced Web Technology comes with plenty of Skills. To gain deep knowledge in Web Technology you required to know fundamentals. Without basics it is not possible to be an expert in Web. In this session we Collected plenty of useful information&#8217;s related to Web Technology. These fundamentals will help you life long in your Web Developer Career. For freshers these Web Developer Interview Questions are the best approach to know the Web better.</p>
<h3>What is the Complete name of www?</h3>
<p>Refer to W3C www is stands for “World Wide Web”.</p>
<h3>What is a Protocol?</h3>
<p>The transfer of data between client (browser) and the server need to be according to some rules known as protocols. The protocol used in web is known as HTTP (Hyper Text Transfer Protocol).</p>
<h3>What is the benefits of using Internet?</h3>
<ul>
<li>Internet is a fastest media of data communication.</li>
<li>Using internet we can send or receive mails.</li>
<li>Using VOIP we can take the benefits of Telecommunication.</li>
<li>Using various websites we can read News and latest updates.</li>
<li>Can Sale Products.</li>
</ul>
<h3>Which technical group started internet as a project in US Defense?</h3>
<p>Internet was started in the mid of 1980 as a project of US department of defense. The Technical group then created was known as Defense Advance Research Projects Administration (DARPA).</p>
<h3>What is the Complete name of DARPA?</h3>
<p>The Complete name of DARPA is “Defence Advance Research Projects Administration”.</p>
<h3>What is the Complete name of ARPANET?</h3>
<p>The Complete name of ARPANET is “Advanced Research Projects Agency Network”.</p>
<h3>How many bits an IP address is?</h3>
<p>IP address is a minimum 32 bit address. It will be in the form of aaa.bbb.ccc.ddd.</p>
<h3>What is the structure of an IP address?</h3>
<p>Structure of an IP address is like aaa.bbb.ccc.ddd. In these 4 units each unit can contain value from 0 to 255. E.g 10.22.187.98</p>
<h3>What is a Router?</h3>
<p>One network is connected to another network using certain devices known as routers. Information is sent from one machine to other in the form of packets. Each packet will have a header( which contains address of the machine to which the packets are sent) and a body. So router checks the header of the packet and sends the information to the specified machine.</p>
<h3>What are the types of Network typologies?</h3>
<p>There are 3 kinds of Network Topologies Physical topology, Signal topology &amp; Logical topology.</p>
<h3>What are the types of Physical Topologies?</h3>
<p>Physical Topology refers to the Physical Connections and the mapping between the Network nodes. There are various types of physical typologies. The commonly known physical Topologies are as below.</p>
<ul>
<li>POINT- POINT TOPOLOGY</li>
<li>BUS TOPOLOGY</li>
<li>STAR TOPOLOGY</li>
<li>RING TOPOLOGY</li>
<li>MESH TOPOLOGY</li>
<li>TREE TOPOLOGY</li>
<li>HYBRID TYPOLOGIES</li>
</ul>
<h3>What are the different types of Bus Topologies?</h3>
<p>Bus Topology is 2 types linear &amp; distributed bus topology.</p>
<h3>What is Signal Topology?</h3>
<p>Signal topology is the mapping of different nodes in a network based on the paths by which the signals pass through. Signal topology generally refers to the actual path that the signals (e.g., electromagnetic, electrical, optical, etc.) take when propagating between nodes.</p>
<h3>What is Logical Topology?</h3>
<p>Logical topology refers to the mapping of nodes based on the paths taken by actual data in the network. It is similar to signal topology, but here the determining factor is path of data, not signals. In many cases logical topology and signal topology are used interchangeably.</p>
<h3>Which device we use in Star Topology to connect nodes?</h3>
<p>Hub</p>
<h3>Ring topology is Directional or Unidirectional?</h3>
<p>Unidirectional</p>
<h3>What is the other name of Tree Topology?</h3>
<p>Tree topology is also known as “Hierarchical Topology”.</p>
<h3>In which topology troubleshooting is easier?</h3>
<p>Compare to Other topology in Star Topology troubleshooting is easier.</p>
<h3>In Signal Topology which materials we use to connect nodes?</h3>
<p>Signal topology is the mapping of different nodes in a network based on the paths by which the signals pass through. Signal topology generally refers to the actual path that the signals (e.g., electromagnetic, electrical, optical, etc.) take when propagating between nodes.</p>
<h3>Who checks whether the authorized person only can access the intranet?</h3>
<p>An intranet of an organization is accessible to employees of that particular organization only. A software known as firewall is used to ensure this. Firewall checks whether the authorized person only can access.</p>
<h3>What is the Complete name of TCP/IP?</h3>
<p>The Complete name of TCP/IP is “Transmission Control Protocol/Internet Protocol”.</p>
<h3>What is the Complete name of HTML?</h3>
<p>The Complete name of HTML is “Hyper Text Markup Language”.</p>
<h3>What is the Complete name of HTTP?</h3>
<p>The Complete name of HTTP is “Hyper Text Transfer Protocol”.</p>
<h3>What is the Complete name of VPN?</h3>
<p>The Complete name of VPN is “Virtual Private Network”.</p>
<h3>What is LAN?</h3>
<p>A computer network which covers small geographic area like office, home or group of buildings and which is used often to achieve Intranet is called a LAN (Local Area Network). The data is transfer in LAN is much faster when compared to that of internet. LAN is limited to a small geographical region, but internet can be accessed from anywhere in the world. A dedicated telecommunication line is required for internet but it is not needed in LAN. Telecommunication line is required for internet.</p>
<h3>What is WAN?</h3>
<p>Network over a large area is termed as Wide Area Network (WAN). Usually this type of network would be spread across geographical boundaries using routers and public communication links. Internet would be a perfect example for a WAN. Other examples include telephone lines, microwave links and satellite channels.</p>
<h3>What is the word from which “Ethernet” is derived?</h3>
<p>Ethernet as the name suggests has been evolved from the ancient term “ether”, meaning the medium through which light propagates.</p>
<h3>What are the examples of WAN?</h3>
<p>Some of the example of Wide Area Network is Telephone lines, Microwave links and Satellite Channels.</p>
<h3>What is the range of transmission rate across WAN?</h3>
<p>Usually the transmission rate across this network would be in the range of 1200 bits/seconds to 6 Mbit/seconds.</p>
<h3>What is the transmission speeds of ATM or Leased lines?</h3>
<p>ATM and leased lines can even have transmission speeds greater than 156 Mbit/seconds.</p>
<h3>Who &amp; in which year introduced www?</h3>
<p>The whole idea of www was introduced in 1989 by Sir Tim Berners-Lee, who is considered as the father of internet. Since then the growth of internet was rapid. Tim Berners-Lee himself introduced the terms like URL, http. He is currently the chairman of W3C which is the governing body of the web.</p>
<h3>What is the Complete name of W3C?</h3>
<p>World Wide Web Consortium. You can reach them at http://www.w3.org.</p>
<h3>Who is the governing body of Web?</h3>
<p>The Governing body of web is “World Wide Web Consortium (W3C)”.</p>
<h3>What is the Complete name of URL?</h3>
<p>URL stands for “Uniform Resource Locator”.</p>
<h3>Where DNS Server resides?</h3>
<p>There will be a DNS server local to the client’s network. DNS server will map the domain name to the particular IP address. Local DNS Server will check whether that IP address is present in the network.</p>
<h3>What is the Complete name of ISP?</h3>
<p>The Complete name of ISP is “Internet Service Provider”.</p>
<h3>What is the Complete name of OSI Model?</h3>
<p>The Complete name of OSI 7 layer model is “Open Systems Interconnection Model”.</p>
<h3>How many layers are existing in OSI Model?</h3>
<p>OSI model is a newer network model compared to TCP/IP model. It is also known as the OSI seven layer model since it contains seven layers. The OSI Model consists of the Application Layer, Presentation Layer, Session Layer, Transport Layer, Network Layer, Data Link, and Physical layers from top to bottom.</p>
<h3>What is the Complete name of FTP?</h3>
<p>The Complete name of FTP is “File Transfer Protocol”.</p>
<h3>What is the Complete name of XML?</h3>
<p>XML Stands for “Extended Markup Language”.</p>
<h3>What are the advantages using TCP?</h3>
<p>There are many advantages by using a connection oriented TCP protocol. These are data arrives in-order, data has minimum errors (i.e. correctness), data duplicated is discarded, lost/discarded packets are resent, includes traffic congestion control.</p>
<h3>What is the other name of Domain Name?</h3>
<p>Hostname (eg. example.com)</p>
<h3>What is a domain name?</h3>
<p>Domain name identifies a computer on the Internet belonging to particular network. These names appear as a part of a Website&#8217;s URL, e.g. example.com. These types of domains are also called as hostname.</p>
<h3>What is the Complete name of SGML?</h3>
<p>SGML stands for “Standard Generalized Markup Language”.</p>
<h3>Who and when introduced the first version of HTML?</h3>
<p>The first version of HTML was introduced in July, 1993 by Tim Berners-Lee.</p>
<h3>Who is the father of Internet?</h3>
<p>Tim Berners-Lee was called father of Internet.</p>
<h3>When 2nd revision of HTML was introduced?</h3>
<p>Second version HTML 2.0 was introduced in April, 1995.</p>
<h3>When HTML 3.0 was released?</h3>
<p>HTML 3.0 was launched in September, 1995. HTML 3.0 contained some complex mathematical elements, more attributes for tables.</p>
<h3>When HTML4 was released?</h3>
<p>HTML 4.0 was introduced in April, 1998.</p>
<h3>When HTML5 was released?</h3>
<p>HTML 5 was introduced on 22 January 2008.</p>
<h3>What is TLD?</h3>
<p>A top-level domain, referred to as a top-level domain name (TLDN) sometimes. It is the part of the domain name which comes after the final dot in it. For instance, in the domain name www.infosys.com, com or COM is the TLDN. The top level domain names are standardized to mainly two divisions.</p>
<h3>What is CCTLD?</h3>
<p>A CCTLD is an Internet top level domain generally reserved for a country. Creation and delegation of ccTLDs is achieved by the Internet Assigned Numbers Authority (IANA). Examples for ccTLD are .in, .us, .uk etc.</p>
<h3>What is the Complete name of IANA?</h3>
<p>The Compete name of IANA is “Internet Assigned Numbers Authority”.</p>
<h3>What is the default port number for HTTP?</h3>
<p>The default port number for HTTP is 80.</p>
<h3>What is the default port number for FTP?</h3>
<p>The default port number for FTP is 21.</p>
<h3>What is FTP?</h3>
<p>FTP is a system protocol which will be used for transferring data from one computer to another through a network, like the data that is transferred s over the Internet. The default port for FTP is port no: 21.</p>
<h3>What is the different types of way to transfer data using FTP?</h3>
<p>FTP uses two modes of data transfer. Those are ASCII mode and BINARY mode.</p>
<h3>What is ASCII mode of FTP data transfer?</h3>
<p>When a file is transferred using an ASCII mode, the individual letters, numbers, and characters are transferred using their ASCII character codes. In this mode which is used as default by most FTP clients, the data will be saved in a text file in the proper format at the receiving machine.</p>
<h3>What are the HTTP status Codes?</h3>
<p>Few of the most Common http error codes are as below.</p>
<ul>
<li>200 &#8211; OK</li>
<li>302 &#8211; Found</li>
<li>400 &#8211; Bad Request</li>
<li>401 &#8211; Unauthorized</li>
<li>403 &#8211; Forbidden</li>
<li>404 &#8211; Not found</li>
<li>500 &#8211; Internal Server error.</li>
</ul>
<h3>What is 404 http status Code?</h3>
<p>When we request for a page which is not present in the server, the browser will show “404: page not found”.</p>
<h3>What are the http methods?</h3>
<p>Basically 3 methods we use under http methods Get, Post and Head. In GET method, the client side information is sent to browser as parameters. These parameters will be encoded with the URL as name value pair. In POST method the information from client is sent to server as part of the message body of http request. The data can also be encrypted to ensure the security. The HEAD method gets only the information about the document, not the document itself. As a less data is transferred, HEAD is much faster than GET.</p>
<h3>What are the layers of 3 tire Application?</h3>
<p><strong>Presentation Layer</strong> &#8211; Presentation layer which is the highest layer in the application takes care of the display in the browser. It can communicate with other tiers. Web servers are the main components of presentation tier. Graphical User Interface (GUI) is provided by the presentation layer.</p>
<p><strong>Application Layer</strong> &#8211; Application tier takes care of the business logic. That means the basic functionality of the application is carried out by the application tier. Application server controls the functionality of the business application.</p>
<p><strong>Data Layer</strong> &#8211; Data is stored in this tier. Data tier mainly consists of Database Servers.</p>
<h3>What is a Web Server?</h3>
<p>Web Server is the important component of the presentation tier of the three-tier client server architecture. It is actually a computer program which accepts the http requests and sends the requested data as http response. The data mainly consist of HTML pages. There are two types data:</p>
<p><strong>Static Web Server</strong> &#8211; Static content is the data that is present in the file system in the database server</p>
<p><strong>Dynamic Web Server</strong> &#8211; The program that is run by the web server generates Dynamic content. It is slower compared to static content. Apache, Microsoft IIS are examples of web servers which are commonly used.</p>
<h3>What is thin Client?</h3>
<p>The web applications which are accessible through the internet are known as real world web applications. Real world web applications generally use three-tier client-server architecture. The client is generally known as thin client.</p>
<h3>What fat Server?</h3>
<p>Web server, Application server and <a href="https://jharaphula.com/database-basics-terminologies-definition/" rel="noopener noreferrer" target="_blank">Database</a> server will be the server side. So the server is known as fat server.</p>
<h3>Give examples of Web Server?</h3>
<p>IIS and Apache.</p>
<p>Do you like our Web Developer Interview Questions? Share us in your Network.</p>
<p>The post <a href="https://jharaphula.com/web-developer-interview-questions-answers/">Web Developer Interview Questions and Answers for Freshers</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://jharaphula.com/web-developer-interview-questions-answers/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			<media:content url="https://jharaphula.com/wp-content/uploads/2016/05/web-technology-question-and-answers.jpg" medium="image" />
	</item>
		<item>
		<title>Techniques behind PHP Error Handling for Developer</title>
		<link>https://jharaphula.com/php-error-handling-techniques/</link>
					<comments>https://jharaphula.com/php-error-handling-techniques/#respond</comments>
		
		<dc:creator><![CDATA[Nibedita Panda]]></dc:creator>
		<pubDate>Sun, 15 May 2016 17:32:50 +0000</pubDate>
				<category><![CDATA[Learn PHP with Examples]]></category>
		<category><![CDATA[Error Handling for Developer]]></category>
		<category><![CDATA[Firebug]]></category>
		<category><![CDATA[PHP Error Handling]]></category>
		<category><![CDATA[PHP File Handling]]></category>
		<category><![CDATA[PHP String Functions]]></category>
		<guid isPermaLink="false">http://box.jharaphula.com/?p=1657</guid>

					<description><![CDATA[<img width="300" height="171" src="https://jharaphula.com/wp-content/uploads/2016/05/php-program-300x171.png" class="webfeedsFeaturedVisual wp-post-image" alt="Techniques behind PHP Error Handling for Developer" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/php-program-300x171.png 300w, https://jharaphula.com/wp-content/uploads/2016/05/php-program.png 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>In Software Designing &#8220;Zero Defects&#8221; is a Challenge. To achieve &#8220;Zero Defects&#8221; we depends upon many factors. Starting from &#8220;Developers Team&#8221; to &#8220;Quality Assurance&#8221; all...</p>
<p>The post <a href="https://jharaphula.com/php-error-handling-techniques/">Techniques behind PHP Error Handling for Developer</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></description>
										<content:encoded><![CDATA[<img width="300" height="171" src="https://jharaphula.com/wp-content/uploads/2016/05/php-program-300x171.png" class="webfeedsFeaturedVisual wp-post-image" alt="Techniques behind PHP Error Handling for Developer" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/php-program-300x171.png 300w, https://jharaphula.com/wp-content/uploads/2016/05/php-program.png 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>In Software Designing &#8220;Zero Defects&#8221; is a Challenge. To achieve &#8220;Zero Defects&#8221; we depends upon many factors. Starting from &#8220;Developers Team&#8221; to &#8220;Quality Assurance&#8221; all are equally responsible for an error in production. To reduce error the primary role a developer&#8217;s play. I believe in the matter of Error or Exception handling a Experienced developer do better than a fresher. This is the cause we are hunting experience professionals. During an application development Coding Can any developer do but quality Coding is rare. To write an error free logic we required to understood &#8220;How Compiler works?&#8221; and what are the ways to handle exceptions. In this session let us share <a href="https://jharaphula.com/category/programming-solutions/php-demo-apps/" target="_blank" rel="noopener noreferrer">PHP</a> Error Handling technique for Developer.</p>
<h3>Practice to PHP Error Handling using Try Catch block</h3>
<p>While implementing a logic do the Complex part (Which has more Chance for Exception) in-side Try .. Catch block. Try Catch block has 3 units Try, Catch and Finally. Each try block must at-least required one catch block. More than one catch blocks can be used to catch different classes of exceptions.</p>
<p>Let us assume you are going to insert a record to the database. In this case after created the SQL query dynamically, while executing that query do that inside the try block. During run-time if connection will break with Server during database interaction the execution will jump to Catch block. In Catch block you can know the Error &amp; handle the Exception. Finally block execute at any case. If there is a error in try block then after Catch block finally block executes. Similarly if try block executes successfully then also Finally block executes. It is a best place for Close Database Connection.</p>
<p><strong>Example of Try .. Catch</strong></p>
<pre class="brush: php; title: ; notranslate">try {
throw new Exception('error');
}
catch(Exception $e) {
echo &quot;There is an Error.&quot;;
throw $e;
}
finally {
// Code in Finally block Overrides the exception
return &quot;\nException erased&quot;;
}</pre>
<p>Some Errors occurs in run-time for those errors Try Catch is the best approach to deal. Let&#8217;s talk an another example. While Sending mail execute the Send() method in-side Try Catch block. In run-time in-case the SMTP Server is down. System will show the real error message &#8220;Mail Server is Down. Please try later&#8221;.</p>
<h3>Use PHP die() method</h3>
<p>Die() is a simple and effective PHP Error Handling method. When ever there is a possibility of an error use die() method. Generally die() method is useful for Conditional Checking. For an example if you are going to upload a file here while you are checking &#8220;is file exists?&#8221; using <code>if(!file_exists("/tmp/logo.png"))</code> use die() method to handle possible errors. Look at the example below.</p>
<pre class="brush: php; title: ; notranslate">&lt;?php
if(!file_exists(&quot;/tmp/logo.png&quot;)) {
die(&quot;File is not exists Physically.&quot;);
} else {
$file = fopen(&quot;/tmp/logo.png&quot;,&quot;r&quot;);
print &quot;Able to Open the File Successfully.&quot;;
}
?&gt;</pre>
<p>In the above example before Opening the file I am checking is there any file exists to open. If there is no such files using die() method with message &#8220;File is not exists Physically.&#8221;. Die() method handles error as well as Clears memory whole. Kills unwanted process and helps to improve performance.</p>
<h3>Create Custom Error Handler</h3>
<p>Using PHP it is very easy to Create Custom Error handlers. The Syntax is as below.</p>
<p><code>error_function(error_level, error_message, error_file, error_line, error_context)</code></p>
<p>While Creating a Custom Error function keep remember that the first two parameters are mandatory. The rest 3 (error_file, error_line and error_context) are optional. Error_level must be a value in number. Refer the below table to know more about the error_level values.</p>
<table>
<tr>
<th>Value</th>
<th>Constants</th>
<th>Description</th>
</tr>
<tr>
<td>1</td>
<td>.E_ERROR</td>
<td>Error level with value 1 indicates run-time Fatal errors. Execution of the script is halted.</td>
</tr>
<tr>
<td>2</td>
<td>E_WARNING</td>
<td>Error level with value 2 indicated run-time Non-fatal errors. Compare to Error level 1 here execution of the script is not halted.</td>
</tr>
<tr>
<td>4</td>
<td>E_PARSE</td>
<td>Error level with value 4 indicates Compile-time parse errors.</td>
</tr>
<tr>
<td>8</td>
<td>E_NOTICE</td>
<td>Value 8 is for run-time notices. During execution the script found something that might be an error, but could also happen when running a script normally.</td>
</tr>
<tr>
<td>16</td>
<td>E_CORE_ERROR</td>
<td>Error level with value 16 indicates Fatal errors. Fatal Errors generally occur during PHP initial start-up.</td>
</tr>
<tr>
<td>32</td>
<td>E_CORE_WARNING</td>
<td>The error level value 32 speaks non-fatal run-time errors. This also occurs during PHP initial start-up.</td>
</tr>
<tr>
<td>256</td>
<td>E_USER_ERROR</td>
<td>Fatal user-generated error. This is like an E_ERROR set by the programmer using the PHP function trigger_error().</td>
</tr>
<tr>
<td>512</td>
<td>E_USER_WARNING</td>
<td>Error level with value 512 indicates Non-fatal user generated warning. It is similar to E_WARNING set by the developer using the PHP trigger_error() function.</td>
</tr>
<tr>
<td>1024</td>
<td>E_USER_NOTICE</td>
<td>The error code with 1024 value speaks user-generated notice. This is like an E_NOTICE set by the developer using the PHP function trigger_error().</td>
</tr>
<tr>
<td>4096</td>
<td>E_RECOVERABLE_ERROR</td>
<td>This error level says Catchable fatal error. It is like an E_ERROR but can be caught by a user defined error handlers.</td>
</tr>
<tr>
<td>8191</td>
<td>E_ALL</td>
<td>The error level value 8191 indicates all errors and warnings.</td>
</tr>
</table>
<p>All the listed error levels you can use with PHP in-built function &#8220;error_reporting()&#8221;. The Syntax is as &#8220;error_reporting ([int $level])&#8221;.</p>
<p>While defining a Custom error handler function you need to use PHP in-built library set_error_handler() function.</p>
<h3>Trigger an Error</h3>
<p>In Script where user inputs data use trigger_error() function to handle illegal inputs. Trigger error can be use for Server side validations.</p>
<p><strong>Example of trigger_error</strong></p>
<pre class="brush: php; title: ; notranslate">&lt;?php
$myVal = 3;
if ($myVal &gt; 2) {
trigger_error(&quot;Value must be 2 or below&quot;);
}
?&gt;</pre>
<h3>Exception Classes</h3>
<p>While Creating a Custom Error there are following functions which can be used from Exception class.</p>
<table>
<tr>
<th>Function</th>
<th>Description</th>
</tr>
<tr>
<td>getMessage()</td>
<td>This function shows exact message why error occurs. What are the possible factors generate the error.</td>
</tr>
<tr>
<td>getCode()</td>
<td>Using getCode() we can detect the block of Code showing Error.</td>
</tr>
<tr>
<td>getFile()</td>
<td>Shows Source File name.</td>
</tr>
<tr>
<td>getLine()</td>
<td>This function shows in which line error occurred. It saves programmer time to locate error.</td>
</tr>
<tr>
<td>getTrace()</td>
<td>It&#8217;s an array of the back-trace()</td>
</tr>
<tr>
<td>getTraceAsString()</td>
<td>Presents Formatted string of Trace.</td>
</tr>
</table>
<p><strong>Referrals:</strong></p>
<p><a href="http://www.tutorialspoint.com/php/php_error_handling.htm" target="_blank" rel="noopener noreferrer nofollow">http://www.tutorialspoint.com/php/php_error_handling.htm</a><br />
<a href="http://www.w3schools.com/php/php_error.asp" target="_blank" rel="nofollow noopener noreferrer">http://www.w3schools.com/php/php_error.asp</a></p>
<p>The post <a href="https://jharaphula.com/php-error-handling-techniques/">Techniques behind PHP Error Handling for Developer</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://jharaphula.com/php-error-handling-techniques/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			<media:content url="https://jharaphula.com/wp-content/uploads/2016/05/php-program.png" medium="image" />
	</item>
		<item>
		<title>Project Estimation Techniques for Software Development with Template</title>
		<link>https://jharaphula.com/project-estimation-techniques-software/</link>
		
		<dc:creator><![CDATA[Nibedita Panda]]></dc:creator>
		<pubDate>Sun, 15 May 2016 17:28:21 +0000</pubDate>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Manage Time Effectively]]></category>
		<category><![CDATA[Problem Solving Skills]]></category>
		<category><![CDATA[Programming Skills]]></category>
		<category><![CDATA[Project Estimation Techniques]]></category>
		<category><![CDATA[Project Management Skills]]></category>
		<guid isPermaLink="false">http://box.jharaphula.com/?p=1650</guid>

					<description><![CDATA[<img width="300" height="190" src="https://jharaphula.com/wp-content/uploads/2016/05/tips-to-prepare-an-estimation-300x190.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="Project Estimation Techniques for Software Development with Template" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/tips-to-prepare-an-estimation-300x190.jpg 300w, https://jharaphula.com/wp-content/uploads/2016/05/tips-to-prepare-an-estimation.jpg 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>Once after the NDA Signed by both the parties we do start Requirement Analysis. Requirement Analysis is the initial phase of System Development Life Cycle....</p>
<p>The post <a href="https://jharaphula.com/project-estimation-techniques-software/">Project Estimation Techniques for Software Development with Template</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></description>
										<content:encoded><![CDATA[<img width="300" height="190" src="https://jharaphula.com/wp-content/uploads/2016/05/tips-to-prepare-an-estimation-300x190.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="Project Estimation Techniques for Software Development with Template" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/tips-to-prepare-an-estimation-300x190.jpg 300w, https://jharaphula.com/wp-content/uploads/2016/05/tips-to-prepare-an-estimation.jpg 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>Once after the NDA Signed by both the parties we do start Requirement Analysis. Requirement Analysis is the initial phase of System Development Life Cycle. Depending upon the information we collected during Requirement Analysis, it helps to Design the System. During Requirement Analysis phase generally Customer provides Referral Documents or Helpful Videos or Referral Links or Block Diagrams. These all to make your vision clear. Let us focus back into the Subject &#8220;Project Estimation Techniques for Software Development&#8221;.</p>
<p>Assume that we are going to Create an Estimation for a &#8220;User Management Module&#8221;. Here refer to my analysis a User Management Module required a Login page, Register User page, Forgot Password, Forgot Username, Search User page or Edit User page. Like this list out all the pages and functionalities you like to divide.</p>
<p>There are applications using which we can Create an Estimation but still today there are more than 80% program managers uses MS Excel to prepare an Estimation.</p>
<p>To start with Open an Excel file and Create the following tabs.</p>
<ul>
<li>Summery</li>
<li>Estimation</li>
<li>Assumption</li>
<li>In Scope</li>
<li>Out of Scope</li>
<li>Software Required</li>
<li>Artifacts Used</li>
</ul>
<h3>Summery</h3>
<p>Rename the default tab to &#8220;Summery&#8221;. In this page create a table with the rows Requirement Understanding, Build Efforts, Efforts, Contingency &amp; Total Efforts after Contingency. In &#8220;Requirement Understanding&#8221; put how many days you spend to understood the System. &#8220;Build Efforts&#8221; will depend upon Tab 2 (Estimation). Keep it as a Formula Field. From &#8220;Estimation&#8221; tab just display the total days against build efforts. Efforts in nothing but the Sum of Requirement Understanding and Build Efforts.</p>
<h3>Estimation</h3>
<p>This is the primary page. Here first list out the pages and functionalities you required to estimate. At the above Define an impressive title. To make your job easier here let me come with some Column names. In your estimation tab create columns for Items, Format, Complexity, Build Efforts, Review Changes, Breakpoints, Browser Testing, Integration efforts, Quality Assurance and Comments.</p>
<p>First list out the pages your required to design for Client Application. For an example for a User Management System I required pages like Login page, Register User page, Forgot Password, Forgot Username, Search User page or Edit User page. For large scale project it was noticed under pages you have multiple jobs to do. In this case create sub-functionalities for pages. Then below in a separate table declare the functionalities additionally you required. Few example of additional functionalities are Validations, Animations, Graphs, Writing an Algorithm or Calculations. Additional if you want to estimate for Database related job. Create an another table with list Database related jobs.</p>
<p>Now define the Formats for items. I mean in a user management system the above pages are HTML format. In your case it may differ refer to your System. But my intention to tell you define the file type here. Complexity is one more major item in estimation. By looking this data you can easily predict which job is how much time consuming (<em>depending upon the Complexity</em>). Complexity is basically three types Low, Medium and High. Depending upon the job type decide Complexity level. In my Case for Register User page I can keep Complexity &#8220;High&#8221; while for login page I can define &#8220;Medium&#8221;. For Normal HTML pages like Forgot Password or Forgot Username I can keep the Complexity &#8220;Low&#8221;.</p>
<p>Build Effort is nothing but the Time you required to Complete each Job. For an example to design a login page I can assign 2 days or 16 hours to one man power. The next column is &#8220;Review Changes&#8221;. Make this column as a formula field. According to Build effort set an excel formula with percentage to Calculate time you required for review changes. Apply Similar technique for Breakpoints, Browser Testing, Integration Efforts and QA.</p>
<p>In Comments you can write any additional information provided by the Client. For an example in Login page if my Customer wants to implement Strong password. This is the best place to noted down.</p>
<h3>Assumption</h3>
<p>In this tab present a future view which related to project work. As an example our employees working for only skills HTML, CSS, JS, JQ and AngularJS. Against this my Assumption is &#8220;Design Team need to provide PSD&#8217;s&#8221;. To do Responsive web pages we can define &#8220;Will do Responsive web pages using latest <a href="https://jharaphula.com/learn-bootstrap-tutorial-beginners/" target="_blank" rel="noopener noreferrer">CSS Framework BootStrap</a>&#8220;. Always with your assumptions add customer attractive unique quality you can provide.</p>
<p><strong>Assumption example of a UI Estimation</strong></p>
<ul>
<li>This Estimation has been done for the pages only. Screens layout PSD or related image files need to shared in the Prototype by the design team.</li>
<li>Depending upon the breakpoints provided by the design team we will make pages Responsive for those resolutions. Depending upon the requirement we will choose the Responsive Framework.</li>
<li>Breakpoints to be provided by Design Team.</li>
<li>Breakpoints estimated for 1200&#215;768 (Large Desktop), 1024&#215;768 (Desktop), 480&#215;320 (Mobile Devices), 728X1024 (Tablets).</li>
<li>Browsers supporting  IE 9 &amp; Latest versions including Mozilla Firefox &amp; Google Chrome.</li>
<li>Only front-end UI Interactions will be handled involving JS/jQuery functionality.</li>
<li>Visual designs PSD for desktop and target devices would be provided by Design Team.</li>
<li>Images to be provided by Design Team.</li>
<li>Style Guide/Design Specifications  to be provided by Design Team.</li>
<li>Fonts will be provided by Design Team.</li>
<li>Software or IDE for development purpose will be provided.</li>
<li>Re-estimation will be done based on future  designs complexity post to roll-out from design team<br />
Any new page/template creation shall be re-estimated again if at all it impacts the work.</li>
<li>Any iterations to the designs for which the HTML is created shall be re-estimated again  if at all it impacts the work.</li>
</ul>
<h3>In Scope</h3>
<p>Every System has some limitation. That why this Column is. Estimation works like an agreement of deal. What you committed in your estimation your required to meet that. So in this tab define the things clear what your organization is going to do for their application. Let&#8217;s discuss a Case Study, As the lead of a UI development team while estimating some UI development stuffs I can define few Scopes as &#8220;We will do HTML5 and CSS3 developments&#8221;, &#8220;Validations and Client Side Animations we will take Care&#8221; or &#8220;Will edit images&#8221;.</p>
<p><strong>In Scope example of a UI Estimation</strong></p>
<ul>
<li>Responsive Web Design for targeted breakpoints using Media query.</li>
<li>We will do HTML 5 and CSS3 coding followed by Global Guidelines or Customer Specific Guidelines.</li>
<li>To reduce unwanted load from Server we will handle Front-end Interactions like Form Validations or Client Side Animations using Client Scripts.</li>
<li>Browsers supported &#8211; IE9 &amp; latest versions including Mozilla Firefox, Google Chrome &amp; Safari.</li>
<li>Image Slicing from PSD. PSD need to provide by the design Team.</li>
<li>Client side Validations using JavaScript or Jquery.</li>
<li>Desktop, iPad and iPhone support with standard resolutions for iPad and iPhone devices.</li>
</ul>
<h3>Out of Scope</h3>
<p>Designing a Software is required many hands together. Customer is unknown about technologies. He understood his requirements and always expects more. In this case it is wise to define &#8220;Out of Scope&#8221;. Out of Scope defines the limitation.</p>
<p><strong>Out of Scope example of a UI Estimation</strong></p>
<ul>
<li>Server Side Scripting like PHP or ASP.</li>
<li>Image Creations using any image editor.</li>
<li>Search Engine Optimization.</li>
<li>Grid Operations like Sorting, Pagination or Filtering.</li>
<li>Back-end Operations for Storing &amp; Retrieving Data (e.g. SQL).</li>
<li>Dynamic Components Creation or Customization.</li>
<li>Web Accessibility.</li>
<li>Multilingual Facility.</li>
</ul>
<h3>Software Required</h3>
<p>To meet Customer demand if you required any additional software or hardware mention that here. Prepare a table with columns Software/Hardware, Version, Duration, OS it Supports and Comments.</p>
<p>* Duration &#8211; Here it indicates the time you required to use that Software.</p>
<h3>Artifacts Used</h3>
<p>In this tab in a mention the referral documents or links or materials you used to design estimation.</p>
<p>The post <a href="https://jharaphula.com/project-estimation-techniques-software/">Project Estimation Techniques for Software Development with Template</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></content:encoded>
					
		
		
			<media:content url="https://jharaphula.com/wp-content/uploads/2016/05/tips-to-prepare-an-estimation.jpg" medium="image" />
	</item>
		<item>
		<title>How to Design a Database? &#8211; Database Design for Beginners</title>
		<link>https://jharaphula.com/database-design-for-beginners/</link>
					<comments>https://jharaphula.com/database-design-for-beginners/#respond</comments>
		
		<dc:creator><![CDATA[Nibedita Panda]]></dc:creator>
		<pubDate>Sun, 15 May 2016 17:14:49 +0000</pubDate>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Database Basics]]></category>
		<category><![CDATA[How to Design a Database?]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[Purpose of Database design]]></category>
		<category><![CDATA[SQL Server Database]]></category>
		<guid isPermaLink="false">http://box.jharaphula.com/?p=1648</guid>

					<description><![CDATA[<img width="300" height="164" src="https://jharaphula.com/wp-content/uploads/2016/05/database-design-300x164.png" class="webfeedsFeaturedVisual wp-post-image" alt="How to design a Database? - Database design for Beginners" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/database-design-300x164.png 300w, https://jharaphula.com/wp-content/uploads/2016/05/database-design.png 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>Designing a Software Comes with 2 phases Front-end and Back-end. Front-end is nothing but the area where through user interacts with data. While Back-end is...</p>
<p>The post <a href="https://jharaphula.com/database-design-for-beginners/">How to Design a Database? &#8211; Database Design for Beginners</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></description>
										<content:encoded><![CDATA[<img width="300" height="164" src="https://jharaphula.com/wp-content/uploads/2016/05/database-design-300x164.png" class="webfeedsFeaturedVisual wp-post-image" alt="How to design a Database? - Database design for Beginners" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/database-design-300x164.png 300w, https://jharaphula.com/wp-content/uploads/2016/05/database-design.png 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>Designing a Software Comes with 2 phases Front-end and Back-end. Front-end is nothing but the area where through user interacts with data. While Back-end is responsible to store and organize data. In real-time it was observed Compare to Front-end development Back-end development is more sensitive. This is the cause while dealing with database we required experienced professionals. From the chapter of System designing well structured database makes job easier. Planned Database performs better with Accuracy. Always it&#8217;s wise to plan database before designing a Software. This guide is Specially designed for <a href="https://jharaphula.com/database-basics-terminologies-definition/" rel="noopener noreferrer" target="_blank">Database Developers</a> to train them in Database design. Here assume that we are going to design database for an Employee Management System (EMS).</p>
<h3>Database Terms</h3>
<p><strong>Table</strong> in a database used to store records. Table operates in fashion like a grid. Which Stores data using row and column. Each row of a table is Called <strong>record</strong>. An individual column in each row is called <strong>field</strong>.</p>
<p>In a table <strong>Primary key</strong> is the unique id for each record. Primary key never carry a null value. In Database design it helps to establish relationship among tables. Let&#8217;s talk about Employee Details table. Here emp_id is the primary key. While establishing relationship with Manager Details table here emp_id works like a <strong>Foreign key</strong>. Foreign key is also called Referral key. Using Foreign key relationship in Manager Details table you can insert only those records who are having emp_id. Its mean &#8220;A Manager must be an Employee&#8221;.</p>
<h3>Purpose of Database design</h3>
<p>During we design a POC kind of application sometimes we may required 1 or 2 SQL tables. But while designing a System there we required many tables. Let&#8217;s talk about an Employee Management System, here depending upon the functionalities we required various kind of tables. For an example to Store Employee Details you can Create &#8220;EMS_EmployeeDetails&#8221; table or to Store Manager Details you can Create &#8220;EMS_ManagerDetails&#8221; table.</p>
<p>The main idea behind the Database design is to reduce redundancy of data. Duplicate data take unwanted space as well it increases more chance of errors and inconsistencies. In real-time while designing a database always try to avoid same data in two columns. Similarly if &#8220;EMS_EmployeeDetails&#8221; table contains employee name no where else you required to store employee name. It is a good practice to use data centrally.</p>
<h3>Naming Standard</h3>
<p>Naming Standard is the basic stage of Database design. Before plan a Database decide which naming culture you will follow. For an example in our Employee Management System I decided to keep Database name as EMS and table names are EMS_*. Here EMP_ is my prefix. In case I am going to write a stored procedure I can use EMP_SP_*. Here EMP_SP_ is the prefix for Stored procedures. Keep remember once the database is used with application it is very time consuming job to update a table name. So decide naming pattern well before into real-time.</p>
<h3>Analyze the System and Data Behavior</h3>
<p>After Successfully Create a Database the next step is to Create Tables. Divides your information into subject-based tables. This practice help to reduce redundancy of data. Before start designing tables in real-time first draw data diagrams. Where represent the type of tables you required for your System. For an example is a employee management system we required few tables like EMS_EmployeeDetails, EMS_Login, EMS_Feedback, EMS_Managers, EMS_Country or EMS_Salary. Draw this tables with field names. While Creating a field name decide its datatype depending upon the nature of form filed data.</p>
<p>Understood the data behaviors and relationship. While Creating data diagrams establish relationship to check whether there is any conflicts. If every thing goes fine Create tables. While planning Columns for a table choose information nodes. For an example in a registered user table you can have columns like First Name, Last Name, Mobile Number, Email ID or DOB.</p>
<p>Don&#8217;t include Calculated data in Columns. I mean to say if you want to know the total duration an Employee work with your Company you can take the difference of &#8220;Date of Joining&#8221; and &#8220;Current Date&#8221;. In this case there is no need to store job duration in a separate Column. In real-time data with similar behavior creates confusion.</p>
<h3>Defined Primary key and Relationship</h3>
<p>Once you are ready with Tables now it the time to decide primary key for your tables. Primary key defines uniqueness of each records. For an example in &#8220;EMS_EmployeeDetails&#8221; table you can define &#8220;Emp_id&#8221; as the Primary key. While defining Primary key its a good practice to set it as an auto increment field.</p>
<p>Establish relationship among tables. Refer to relational database management you can establish 4 types of relationship among tables. One-to-Many, Many-to-Many, One-to-One or Many-to-One. Let&#8217;s take an real-time example after employee registration to verify his/her email I have an another table EMS_VerifyEmployee. In this table Emp_id is the identification for Employee. Depending upon the verification status I am updating an another boolean filed Emp_Verification.</p>
<h3>Common Database design Rules</h3>
<ul>
<li>At the end of Database design check whether you miss out any column or not. If you found there is a missing column update the required table. Before into real-time verify columns datatype again.</li>
<li>Check is there any unwanted column you added in your database. If so remove it. In-case you are able to get an information by calculating base data don&#8217;t create a separate column for calculated data.</li>
<li>If you are entering duplicate data to one table repeatedly split the table in to 2 tables. Use relationship to mapping data.</li>
<li>Maintain Similar Datatypes for all date fields.</li>
<li>During development sample data works great. Before complete the database design Create few Stored procedures like &#8220;To Truncate all Tables&#8221; or &#8220;To insert demo Data&#8221;. For an example if I have a Country list table in my EMS Database then I can create list of insert queries for each country details. While installing database in a new system at that time to re-load list of countries these queries helps.</li>
</ul>
<h3>Apply the rules of Normalization</h3>
<p>First normal form says at each row and column intersection in the table there, exists a single value, and never a list of values.</p>
<p>Second normal form says that each non-key column be fully dependent on the entire primary key, not on just part of the key. This rule is applicable for primary key that consists of more than one column.</p>
<p>Third normal form says that not only every non-key column be dependent on the entire primary key, but that non-key columns be independent of each other.</p>
<p>The post <a href="https://jharaphula.com/database-design-for-beginners/">How to Design a Database? &#8211; Database Design for Beginners</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://jharaphula.com/database-design-for-beginners/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			<media:content url="https://jharaphula.com/wp-content/uploads/2016/05/database-design.png" medium="image" />
	</item>
		<item>
		<title>CSS Best Practices &#038; Style Guide for Web Designers</title>
		<link>https://jharaphula.com/css-best-practices-style-guide/</link>
					<comments>https://jharaphula.com/css-best-practices-style-guide/#respond</comments>
		
		<dc:creator><![CDATA[Nibedita Panda]]></dc:creator>
		<pubDate>Sun, 15 May 2016 17:13:24 +0000</pubDate>
				<category><![CDATA[CSS Tricks with Examples]]></category>
		<category><![CDATA[basics of Web Design]]></category>
		<category><![CDATA[Best Practices]]></category>
		<category><![CDATA[CSS Best Practices]]></category>
		<category><![CDATA[CSS Syntax]]></category>
		<category><![CDATA[Style Guide for Web]]></category>
		<category><![CDATA[Web Design best practices]]></category>
		<category><![CDATA[Web Designers]]></category>
		<guid isPermaLink="false">http://box.jharaphula.com/?p=1646</guid>

					<description><![CDATA[<img width="300" height="194" src="https://jharaphula.com/wp-content/uploads/2016/05/css3-style-guide-300x194.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="CSS Best Practices &amp; Style Guide for Web Designers" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/css3-style-guide-300x194.jpg 300w, https://jharaphula.com/wp-content/uploads/2016/05/css3-style-guide-294x190.jpg 294w, https://jharaphula.com/wp-content/uploads/2016/05/css3-style-guide-106x70.jpg 106w, https://jharaphula.com/wp-content/uploads/2016/05/css3-style-guide.jpg 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>Designing a Software is not a Single handed job. Multiple resources required to build an application. Let&#8217;s assume in your lab 10 resources are working...</p>
<p>The post <a href="https://jharaphula.com/css-best-practices-style-guide/">CSS Best Practices &#038; Style Guide for Web Designers</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></description>
										<content:encoded><![CDATA[<img width="300" height="194" src="https://jharaphula.com/wp-content/uploads/2016/05/css3-style-guide-300x194.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="CSS Best Practices &amp; Style Guide for Web Designers" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/css3-style-guide-300x194.jpg 300w, https://jharaphula.com/wp-content/uploads/2016/05/css3-style-guide-294x190.jpg 294w, https://jharaphula.com/wp-content/uploads/2016/05/css3-style-guide-106x70.jpg 106w, https://jharaphula.com/wp-content/uploads/2016/05/css3-style-guide.jpg 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>Designing a Software is not a Single handed job. Multiple resources required to build an application. Let’s assume in your lab 10 resources are working as a Team. Here if your Style Guide is different from others then practically it takes time for other developers to understood or update your Codes. Unplanned Coding Standard waste quality time of a Developer. It is advisable to maintain similar CSS Style Guide during you generate CSS Styles. In this session let us share few <a href="https://jharaphula.com/css3-new-features-gradients-webfonts/" rel="noopener noreferrer" target="_blank">CSS</a> best practices to improve your Coding Standard. </p>
<p>To decorate a HTML page CSS is the Structural approach. Generally we use CSS for creating visually engaging websites or user interfaces of a web applications/mobile applications. Initially CSS was introduced by &#8220;Hakon Wium Lie&#8221; &amp; &#8220;Bert Bos&#8221; in the year of 1996. This technology is approved by W3C (<em>World Wide Web Consortium</em>). The main objective behind the innovation of CSS is to separate HTML &amp; Styles. CSS helps to customize user interface centrally.</p>
<h3>CSS Best Practices</h3>
<p><strong>1</strong>. If multiple HTML elements required same style but their CSS Class names are different use grouping. When grouping selectors for each class choose new line. For an example:</p>
<pre class="brush: css; title: ; notranslate">/* Bad CSS practice */
.tabView, .tabView-prev, .tabView-next, .tabView [type=text] {
background-color: #FF0000;
padding: 20px;
margin: 10px 10px 12px;
}

/* Good CSS practice */
.tabView,
.tabView-prev, 
.tabView-next, 
.tabView [type=text] {
background-color: #FF0000;
padding: 20px;
margin: 10px 10px 12px;
}</pre>
<p><strong>2</strong>. While declare value to an attribute include a space after colon (:). For an example in place of margin:10px; it is a good practice to use margin: 10px;.</p>
<p><strong>3</strong>. Practice to add semi-colon (;) at the end of each property and value pairs. For an example padding: 20px;.</p>
<p><strong>4</strong>. While defining a class name or id choose lowercase letters with meaning full words. If your class name is more than one word for separation in between each words use hyphen (-). For an example to define a tab sub-menu class you can use &#8220;tab-submenu&#8221;.</p>
<p><strong>5</strong>. While declaring hsl(), rect(), rgba() or rgb() never include space in between comma separated values. For an example while declaring rgb() use rgb(0,10,0,.5) in place of rgb(0, 10, 0, .5). This practice helps to differentiate multiple color values (comma with no space) from multiple property values (comma including space).</p>
<p><strong>6</strong>. In place of color parameters or property values while defining a floating point value avoid 0 as the prefix. For an example in place of 0.5px use .5px.</p>
<p><strong>7</strong>. Specially while using hexadecimal codes use lowercase letters with shorthand expressions. For an example use color: #fff; in place of color: #FFFFFF;.</p>
<p><strong>8</strong>. While creating a selector with attribute &amp; value pair use double quote to define value. For an example input[type=&#8221;text&#8221;].</p>
<p><strong>9</strong>. While specifying 0 value for a property avoid unit notation. For an example replace margin: 0px; with margin: 0;.</p>
<p><strong>10</strong>. Inside a CSS Class while declaring multiple properties maintain sequence as Position, Box Model, Typographic and Visual.</p>
<pre class="brush: css; title: ; notranslate">.tab-submenu {
/* Positioning Properties */
position: relative;
top: 10px;

/* Box-model Properties */
display: block;
margin: 10px 10px 12px 0;

/* Typography Properties */
font: normal 13px &quot;Verdana&quot;, sans-serif;

/* Visual Properties */
background-color: #f6f6f6; 
}</pre>
<p><strong>11</strong>. While embedding external CSS files to your HTML page avoid @import. Compare to &lt;link&gt; @improt takes more time to load.</p>
<pre class="brush: css; title: ; notranslate">&lt;!-- Use link elements to embed --&gt;
&lt;link rel=&quot;stylesheet&quot; src=&quot;tab.css&quot; /&gt;

&lt;!-- Avoid @imports --&gt;
@import url(&quot;tab.css&quot;);</pre>
<p><strong>12</strong>. Common overused shorthand properties are padding, margin, font, background, border &amp; border-radius. Strive to limit use of shorthand expressions to instances where you must explicitly set all the available values.</p>
<p><strong>13</strong>. While commenting a class ensure that your comment is descriptive and easy to approachable by others.</p>
<p><strong>14</strong>. While Creating a CSS file follow the structure approach as Global, Type, Forms, Header, Navigation, Content &amp; Footer in Sequence.</p>
<p>The post <a href="https://jharaphula.com/css-best-practices-style-guide/">CSS Best Practices &#038; Style Guide for Web Designers</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://jharaphula.com/css-best-practices-style-guide/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			<media:content url="https://jharaphula.com/wp-content/uploads/2016/05/css3-style-guide.jpg" medium="image" />
	</item>
		<item>
		<title>Convert HEX to RGB &#038; RGB to HEX Converter Jquery Functions</title>
		<link>https://jharaphula.com/convert-hex-rgb-converter-jquery/</link>
					<comments>https://jharaphula.com/convert-hex-rgb-converter-jquery/#respond</comments>
		
		<dc:creator><![CDATA[Nibedita Panda]]></dc:creator>
		<pubDate>Sun, 15 May 2016 17:09:12 +0000</pubDate>
				<category><![CDATA[Learn JQuery with Examples]]></category>
		<category><![CDATA[Convert HEX to RGB]]></category>
		<category><![CDATA[Converter Jquery Functions]]></category>
		<category><![CDATA[Jquery Functions]]></category>
		<category><![CDATA[JQuery String Functions]]></category>
		<category><![CDATA[RGB to HEX Converter]]></category>
		<guid isPermaLink="false">http://box.jharaphula.com/?p=1642</guid>

					<description><![CDATA[<img width="300" height="180" src="https://jharaphula.com/wp-content/uploads/2016/05/rgb-to-hex-jquery-function-300x180.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="Convert HEX to RGB &amp; RGB to HEX converter Jquery Functions" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/rgb-to-hex-jquery-function-300x180.jpg 300w, https://jharaphula.com/wp-content/uploads/2016/05/rgb-to-hex-jquery-function.jpg 762w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>Whether in Web or Desktop application during we design a Color Picker we required Color Converter functions. Basically in the world of web we use...</p>
<p>The post <a href="https://jharaphula.com/convert-hex-rgb-converter-jquery/">Convert HEX to RGB &#038; RGB to HEX Converter Jquery Functions</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></description>
										<content:encoded><![CDATA[<img width="300" height="180" src="https://jharaphula.com/wp-content/uploads/2016/05/rgb-to-hex-jquery-function-300x180.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="Convert HEX to RGB &amp; RGB to HEX converter Jquery Functions" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/rgb-to-hex-jquery-function-300x180.jpg 300w, https://jharaphula.com/wp-content/uploads/2016/05/rgb-to-hex-jquery-function.jpg 762w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>Whether in Web or Desktop application during we design a Color Picker we required Color Converter <a href="https://jharaphula.com/jquery-string-functions/" rel="noopener noreferrer" target="_blank">functions</a>. Basically in the world of web we use 2 types of Color Codes. They are RGB and Hexadecimal (HEX). In this demo for your reference let us share &#8220;Convert HEX to RGB&#8221; &#038; &#8220;RGB to HEX Converter&#8221; Jquery Functions.</p>
<h3>RGB</h3>
<p>RGB Color model stands for Red, Green and Blue Colors. Generally if you will watch the back view of a Color TV there you can saw 3 rays from CRT. Which hits phosphors or dyes to display the Colors. In RGB color model 0 intensity gives the most darkest color &#038; full intensity presents white. To generate colors like Yellow we controls intensity of 3 rays (RGB). Type of RGB Devices are TV, Computer, Video Cameras or Scanners.</p>
<h3>Hexadecimal (HEX)</h3>
<p>Hexadecimal Color Code is also Called base 16 or HEX. Hexadecimal uses 0 to 9 integer or A to F Character values. While writing a Hexadecimal Color code we start with #. Example of Hexadecimal Color Code for White Color is #FFFFFF. It can be present in another way #FFF. Hexadecimal commonly used to represent Computer memory.</p>
<p>Look at the below examples. Here I created 2 JQuery functions &#8220;RGB to HEX&#8221; and &#8220;HEX to RGB&#8221;. Inside the function RGB to HEX I am using regular expression.</p>
<h3>RGB to HEX Converter Jquery Function</h3>
<pre class="brush: jscript; title: ; notranslate">
/* RGB to HEX using Regular Expression */
function rgbToHexadecimal(rgb_color){
rgb_color = rgb_color.match(/^rgba?[\s+]?\([\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?/i);
return (rgb_color &amp;&amp; rgb_color.length === 4) ? &quot;#&quot; +
(&quot;0&quot; + parseInt(rgb_color[1],10).toString(16)).slice(-2) +
(&quot;0&quot; + parseInt(rgb_color[2],10).toString(16)).slice(-2) +
(&quot;0&quot; + parseInt(rgb_color[3],10).toString(16)).slice(-2) : '';
}
</pre>
<h3>Convert HEX to RGB Jquery Function</h3>
<pre class="brush: jscript; title: ; notranslate">
function hexadecimalToRGB(hex_color)
{
var red_color = parseInt((onlyHex(hex_color)).substring(0,2),16), green_color = ((onlyHex(hex_color)).substring(2,4),16), blue_color = parseInt((onlyHex(hex_color)).substring(4,6),16)
return red_color + ',' + green_color + ',' + blue_color;
}

/* Supporting Function */
function onlyHex(hex_color) {return (hex_color.charAt(0)==&quot;#&quot;) ? hex_color.substring(1,7):hex_color}
</pre>
<p>The post <a href="https://jharaphula.com/convert-hex-rgb-converter-jquery/">Convert HEX to RGB &#038; RGB to HEX Converter Jquery Functions</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://jharaphula.com/convert-hex-rgb-converter-jquery/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			<media:content url="https://jharaphula.com/wp-content/uploads/2016/05/rgb-to-hex-jquery-function.jpg" medium="image" />
	</item>
		<item>
		<title>HTML5 Coding Standards and Best Practices for Web Design</title>
		<link>https://jharaphula.com/html5-coding-standards-best-practices/</link>
					<comments>https://jharaphula.com/html5-coding-standards-best-practices/#respond</comments>
		
		<dc:creator><![CDATA[Nibedita Panda]]></dc:creator>
		<pubDate>Sun, 15 May 2016 17:06:00 +0000</pubDate>
				<category><![CDATA[Learn HTML5 with Examples]]></category>
		<category><![CDATA[Best Practices]]></category>
		<category><![CDATA[HTML5 Coding Standards]]></category>
		<category><![CDATA[Introduction to HTML5]]></category>
		<category><![CDATA[Web Design best practices]]></category>
		<category><![CDATA[Web Designing]]></category>
		<guid isPermaLink="false">http://box.jharaphula.com/?p=1639</guid>

					<description><![CDATA[<img width="300" height="178" src="https://jharaphula.com/wp-content/uploads/2016/05/html5-style-guide-300x178.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="HTML5 Coding Standards &amp; Best Practices for Web Design" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/html5-style-guide-300x178.jpg 300w, https://jharaphula.com/wp-content/uploads/2016/05/html5-style-guide.jpg 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>Designing a Software is not a Single handed job. Multiple resources required to build an application. Let&#8217;s assume in your lab 5 peoples are working...</p>
<p>The post <a href="https://jharaphula.com/html5-coding-standards-best-practices/">HTML5 Coding Standards and Best Practices for Web Design</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></description>
										<content:encoded><![CDATA[<img width="300" height="178" src="https://jharaphula.com/wp-content/uploads/2016/05/html5-style-guide-300x178.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="HTML5 Coding Standards &amp; Best Practices for Web Design" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/html5-style-guide-300x178.jpg 300w, https://jharaphula.com/wp-content/uploads/2016/05/html5-style-guide.jpg 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>Designing a Software is not a Single handed job. Multiple resources required to build an application. Let&#8217;s assume in your lab 5 peoples are working with you as a Team. Here if your Coding Standards are different from others then practically it is difficult to understood by an another developer. Unplanned Coding Standards waste quality time of a Developer. How it is if we all will maintain similar Coding Standards? This habit makes our job easier. As you know in Software industry Code is the major asset. It has no depreciation. In each revision it shines better. Developers are responsible to generate Codes. Codes are like the Skeleton of an Application. What we invest while designing a Software the major percentage is to develop Codes only. It&#8217;s better if before into development your developer team aware about the value of Codes. Looking into these factors here with we are sharing universal HTML5 Coding Standards for web designers.</p>
<p><strong>1</strong>. There are many version of HTML. Using &lt;!doctype html&gt; at the top of a HTML File, Client Browser will understood that the web is designed with HTML5. In a HTML5 document always declare this as the First Line.</p>
<p><strong>2</strong>. While Creating a HTML page never miss the title tag. It <a href="https://jharaphula.com/category/free-seo-training-tools/" target="_blank" rel="noopener noreferrer">helps in SEO</a>.</p>
<p><strong>3</strong>. Meta information&#8217;s are useful for Search Engines to track your HTML page. Make a habit to define minimum 2 meta tags in your HTML page. Those are Keywords and Description. If your HTML page is responsive then additionally define meta viewport tag.</p>
<p><strong>4</strong>. Use advanced programmer friendly IDE to develop Codes. For an example you can install &#8220;MS Visual Studio&#8221;.</p>
<p><strong>5</strong>. While generating html in HTML5 use the power of Semantic Elements. For an example if in your HTML5 page there are three sections header, container and footer define them inside Semantic Elements. In a large HTML page Semantic Elements helps to maintain hierarchy.</p>
<p><strong>6</strong>. HTML is not case sensitive. If you are using &lt;STRONG&gt; tag in place of &lt;strong&gt; it will not affect anything but refer to early age it&#8217;s a good practice to write HTML in lower case letters.</p>
<p><strong>7</strong>. Generally in-case of Freshers it was noticed they forgot the end tag. Always make practice if you are defining a tag there must be a end tag. For an example if you are using image tag then there are two ways to close this tag. You can go for &lt;/img&gt; or /&gt; at the end. It is a best practice to choose /&gt; in place of img end tag. But in the matter of a paragraph tag you must required &lt;/p&gt;.</p>
<p><strong>8</strong>. Inside a Tag while defining an attribute use lower case letters. Ex. Replace &lt;div CLASS=&#8221;tab&#8221;&gt; with &lt;div class=&#8221;tab&#8221;&gt;.</p>
<p><strong>9</strong>. Define an attribute value in side double quotes. For an example while defined the source path (src) of an image tag you required to write like &lt;img src=&#8221;/images/temp.jpg&#8221;. Do same for multiple attribute values. For an example in a div I am with 2 CSS classes &lt;div class=&#8221;menu dashboard&#8221;.</p>
<p><strong>10</strong>. Make a habit to Comment your Codes professionally. I noticed many developers Comments on Unnecessary places. Comment only if you found the block of Code is difficult to understood by you Colleague.</p>
<p><strong>11</strong>. CSS helps to Style HTML. In production avoid in-line CSS. For an example it is a wrong practice to write like &lt;div style=&#8221;float:left;&#8221; /&gt; replace this with &lt;div class=&#8221;leftAlign&#8221; /&gt;. Here leftAlign the class which contains float:left;.</p>
<p><strong>12</strong>. Use lower Case letters while creating a File name. Update the HTML5 page extension to .html in place of .htm.</p>
<p><strong>13</strong>. Nested <a href="https://jharaphula.com/list-of-html5-new-tags/" target="_blank" rel="noopener noreferrer">HTML elements</a> should be indented once (two spaces).</p>
<p><strong>14</strong>. Use language attribute with your html tag. Ex. &lt;html lang=&#8221;en-us&#8221;&gt;.</p>
<p><strong>15</strong>. For IE Compatibility mode use &lt;meta http-equiv=&#8221;X-UA-Compatible&#8221; content=&#8221;IE=Edge&#8221;&gt;.</p>
<p><strong>16</strong>. Provide Character encoding meta tag to your HTML page. Ex. &lt;meta charset=&#8221;UTF-8&#8243;&gt;.</p>
<p><strong>17</strong>. While embedding CSS or JS file to your HTML document don’t include type=”text/css” or type=”text/javascript”. Modern browsers are too smart they will take care of script type.</p>
<p>Ex.</p>
<pre class="brush: css; title: ; notranslate">&lt;!– Code Embed External CSS –&gt;
&lt;link rel=”stylesheet” href=”code-guide.css”&gt;

&lt;!– In-line CSS –&gt;
&lt;style&gt;/* … */&lt;/style&gt;

&lt;!– Code to Embed External JS –&gt;
&lt;script src=”code-guide.js”&gt;&lt;/script&gt;</pre>
<p><strong>18</strong>.  While defining attributes to a HTML tag maintain the sequence order like class, id or name, data-*, src, type, href, for, value, title or alt, role &amp; aria-*.</p>
<p><strong>19</strong>. Whenever it is possible try to reduce superfluous parent elements.</p>
<p>Do you like the above Article related to HTML5 Coding Standards? While Coding HTML Follow this Guidelines.</p>
<p>The post <a href="https://jharaphula.com/html5-coding-standards-best-practices/">HTML5 Coding Standards and Best Practices for Web Design</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://jharaphula.com/html5-coding-standards-best-practices/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			<media:content url="https://jharaphula.com/wp-content/uploads/2016/05/html5-style-guide.jpg" medium="image" />
	</item>
		<item>
		<title>Example to Call Webservice inside AngularJS Controller</title>
		<link>https://jharaphula.com/example-to-call-webservice-angularjs/</link>
					<comments>https://jharaphula.com/example-to-call-webservice-angularjs/#respond</comments>
		
		<dc:creator><![CDATA[Nibedita Panda]]></dc:creator>
		<pubDate>Sun, 15 May 2016 16:52:26 +0000</pubDate>
				<category><![CDATA[AngularJS with Examples]]></category>
		<category><![CDATA[Ajax using Angular]]></category>
		<category><![CDATA[AngularJS]]></category>
		<category><![CDATA[Example to Call Webservice]]></category>
		<category><![CDATA[Webservice]]></category>
		<category><![CDATA[Webservice inside Controller]]></category>
		<guid isPermaLink="false">http://box.jharaphula.com/?p=1622</guid>

					<description><![CDATA[<img width="300" height="201" src="https://jharaphula.com/wp-content/uploads/2016/05/web-services.gif" class="webfeedsFeaturedVisual wp-post-image" alt="Example to Call Webservice inside AngularJS Controller" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" /><p>Webservice is nothing but the technique using which we can sale functionalities over web. Let&#8217;s talk about an Income Tax calculator. It is useful for...</p>
<p>The post <a href="https://jharaphula.com/example-to-call-webservice-angularjs/">Example to Call Webservice inside AngularJS Controller</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></description>
										<content:encoded><![CDATA[<img width="300" height="201" src="https://jharaphula.com/wp-content/uploads/2016/05/web-services.gif" class="webfeedsFeaturedVisual wp-post-image" alt="Example to Call Webservice inside AngularJS Controller" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" /><p>Webservice is nothing but the technique using which we can sale functionalities over web. Let&#8217;s talk about an Income Tax calculator. It is useful for many employees, organizations and banks. If we are developing the calculator repeatedly form different different organizations, it is nothing but the loss of productivity. How it is if we can use same service from a global space. This is what web service do. Webservice returns data in form of XML or <a href="https://jharaphula.com/learn-json-tutorial-for-beginners/" target="_blank" rel="noopener noreferrer">JSON</a>. In the below example look how to call Webservice inside AngularJS Controller.</p>
<p>booksController is the name of my Controller. Inside this I am executing $http.get() method. On Success which returns a response. To access response data from view I am assigning those data to $scope.data object. Inside html body using ng-repeat I am displaying authors name from Webservice.</p>
<h3>Example-to-Call-Webservice.htm</h3>
<pre class="brush: xml; title: ; notranslate">&lt;html ng-app=&quot;booksInvApp&quot;&gt;
&lt;head&gt;
&lt;title&gt;Example to Call Webservice in AngularJS&lt;/title&gt;
&lt;script src=&quot;https://ajax.googleapis.com/ajax/libs/angularjs/1.2.23/angular.min.js&quot;&gt;&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
var app = angular.module('booksInvApp', []);
app.controller('booksController', function($scope, $http) {
$http.get(&quot;https://whispering-woodland-9020.herokuapp.com/getAllBooks&quot;)
.then(function(response) {
$scope.data = response.data;
});
});
&lt;/script&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;div ng-controller=&quot;booksController&quot;&gt;
&lt;h3 ng-repeat=&quot;bookDetails in data.books&quot;&gt;{{bookDetails.author}}&lt;/h3&gt;    
&lt;/div&gt;
&lt;/body&gt;
&lt;/html&gt;</pre>
<p>The post <a href="https://jharaphula.com/example-to-call-webservice-angularjs/">Example to Call Webservice inside AngularJS Controller</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://jharaphula.com/example-to-call-webservice-angularjs/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			<media:content url="https://jharaphula.com/wp-content/uploads/2016/05/web-services.gif" medium="image" />
	</item>
		<item>
		<title>Responsive Bootstrap grid system Tutorial with Examples</title>
		<link>https://jharaphula.com/bootstrap-grid-system-tutorial-examples/</link>
					<comments>https://jharaphula.com/bootstrap-grid-system-tutorial-examples/#respond</comments>
		
		<dc:creator><![CDATA[Nibedita Panda]]></dc:creator>
		<pubDate>Sun, 15 May 2016 16:36:21 +0000</pubDate>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[BootStrap Grid System]]></category>
		<category><![CDATA[Grid System Tutorial]]></category>
		<category><![CDATA[How to Draw Grid?]]></category>
		<category><![CDATA[JavaScript Framework]]></category>
		<category><![CDATA[Responsive Design]]></category>
		<category><![CDATA[Tutorial with Example]]></category>
		<guid isPermaLink="false">http://box.jharaphula.com/?p=1618</guid>

					<description><![CDATA[<img width="300" height="191" src="https://jharaphula.com/wp-content/uploads/2016/05/responsive-design-300x191.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="Responsive Bootstrap grid system Tutorial with Examples" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/responsive-design-300x191.jpg 300w, https://jharaphula.com/wp-content/uploads/2016/05/responsive-design.jpg 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>Digital graphic design, a grid is a structure (most usually two-dimensional) made up of a series of intersecting straight (horizontal, vertical) lines used to structure...</p>
<p>The post <a href="https://jharaphula.com/bootstrap-grid-system-tutorial-examples/">Responsive Bootstrap grid system Tutorial with Examples</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></description>
										<content:encoded><![CDATA[<img width="300" height="191" src="https://jharaphula.com/wp-content/uploads/2016/05/responsive-design-300x191.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="Responsive Bootstrap grid system Tutorial with Examples" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/responsive-design-300x191.jpg 300w, https://jharaphula.com/wp-content/uploads/2016/05/responsive-design.jpg 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>Digital graphic design, a grid is a structure (<em>most usually two-dimensional</em>) made up of a series of intersecting straight (horizontal, vertical) lines used to structure the web content. This is widely used to design layout and content structure in print design also. In web design, it is a very effective method to create a consistent layout rapidly and effectively using <a href="https://jharaphula.com/category/programming-solutions/html5-examples/" target="_blank" rel="noopener noreferrer">HTML</a> and <a href="https://jharaphula.com/category/programming-solutions/css-code-tutorials/" target="_blank" rel="noopener noreferrer">CSS</a>. In this session let us discuss more about BootStrap grid system.</p>
<h3>Introduction to Bootstrap Grid</h3>
<p>Bootstrap 3&#8217;s grid system is used to help generate responsive grid layouts in less time and lower maintenance cost. Grid system allow to make responsive website, and the columns will re-arrange the all layouts depending on the screen size. Every column will arrange the all data when this page execute on the screen size. A big screen it might look better with the content organized in three columns, but on a small screen it would be better if the content items were stacked on top of each other.</p>
<p>Bootstrap&#8217;s grid system allows up to 12 columns across the page. You can use all grid as per your need.</p>
<p>Read below pints:</p>
<ul>
<li>If you want to create 12 columns so you need to add separate 12 columns</li>
<li>If you want to make 3 columns, so you need to use 4 grid column class.</li>
<li>If you want to make 2 columns, so you need to use 6 grid column class.</li>
<li>If you want to create full column layout so you can use 12 grid column class- it will allow to make full width of container.</li>
</ul>
<h3>Grid Classes</h3>
<p>Bootstrap grid system providing a four classes as per respective of screen sizes &amp; device.</p>
<ul>
<li>xs (for phones)</li>
<li>sm (for tablets)</li>
<li>md (for desktops)</li>
<li>lg (for larger desktops)</li>
</ul>
<table>
<tr>
<th>Column Name</th>
<th>Devices</th>
<th>Screen Sizes</th>
</tr>
<tr>
<td>.col-xs-$</td>
<td>Extra Small</td>
<td>Phones Less than 768px</td>
</tr>
<tr>
<td>.col-xs-$</td>
<td>Small Devices</td>
<td>Tablet 768px and Up</td>
</tr>
<tr>
<td>.col-xs-$</td>
<td>Small Devices</td>
<td>Desktop 992px and Up</td>
</tr>
<tr>
<td>.col-xs-$</td>
<td>Small Devices</td>
<td>Large Desktop 1200px and Up</td>
</tr>
</table>
<p>The numbers in the .col-sm-* classes indicates how many columns the div should span (out of 12). So, .col-sm-1 spans 1 column, .col-sm-4 spans 4 columns, .col-sm-6 spans 6 columns, etc.</p>
<h3>BootStrap Grid System Rules</h3>
<p>Following are points for basic rules:</p>
<ul>
<li>Rows must be placed within a .container (fixed-width) or .container-fluid (full-width) for proper alignment and padding.</li>
<li>Columns create gutters (gaps between column content) via padding. That padding is offset in rows for the first and last column via negative margin on .rows</li>
<li>Predefined classes like .row and .col-sm-4 are available for quickly making grid layouts.</li>
<li>Use rows to create horizontal groups of columns.</li>
<li>Content should be placed within columns, and only columns may be immediate children of rows.</li>
<li>Grid columns are created by specifying the number of 12 available columns you wish to span. For example, three equal columns would use three .col-sm-4</li>
</ul>
<p>Basic structure of bootstrap grid system:</p>
<pre class="brush: xml; title: ; notranslate">&lt;div class=&quot;container&quot;&gt;
&lt;div class=&quot;row&quot;&gt;
&lt;div class=&quot;col-*-*&quot;&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;row&quot;&gt;
&lt;div class=&quot;col-*-*&quot;&gt;&lt;/div&gt;
&lt;div class=&quot;col-*-*&quot;&gt;&lt;/div&gt;
&lt;div class=&quot;col-*-*&quot;&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;row&quot;&gt;
...
&lt;/div&gt;
&lt;/div&gt;</pre>
<p>Create a container (&lt;div class=&#8221;container&#8221;&gt;). Next, create a row (&lt;div class=&#8221;row&#8221;&gt;). Then, add the number of columns which you want to make it (tags with appropriate .col-*-* classes). Note that numbers in .col-*-* should always add up to 12 for each row.</p>
<h3>Basic Elements of Bootstrap Grid System</h3>
<p>Below are the basic elements used in Bootstrap 3 Grid System:</p>
<p><strong>Container</strong></p>
<p>This is the containing element for inner grid elements. Its major properties are:</p>
<pre class="brush: css; title: ; notranslate">Padding-right : 15px;
Padding-left : 15px;
Margin-left : auto;
Margin-right : auto;</pre>
<p>Along with it there are following media queries that apply:</p>
<pre class="brush: css; title: ; notranslate">For min-width : 1200px; then  width : 1170px;
For min-width : 992px;  then  width : 970px;
For min-width : 768px; then  width : 750px;</pre>
<pre class="brush: xml; title: ; notranslate">&lt;div class=&quot;container&quot;&gt;&lt;/div&gt;</pre>
<p><strong>Container-fluid</strong></p>
<p>This is also the containing element for inner grid elements but without media queries. Its major properties are:</p>
<pre class="brush: css; title: ; notranslate">Padding-right : 15px;
Padding-left : 15px;
Margin-left : auto;
Margin-right : auto;</pre>
<pre class="brush: xml; title: ; notranslate">&lt;div class=&quot;container-fluid&quot;&gt;&lt;/div&gt;</pre>
<p><strong>Row</strong></p>
<p>This element represents the horizontal row in a grid system. Its major properties are:</p>
<pre class="brush: css; title: ; notranslate">margin-right : -15px;
margin-left : -15px;
display : block;</pre>
<pre class="brush: xml; title: ; notranslate">&lt;div class=&quot;row&quot;&gt;&lt;/div&gt;</pre>
<p><strong>Column</strong></p>
<p>This element represents the horizontal row in a grid system. Its major properties are:</p>
<pre class="brush: css; title: ; notranslate">padding-right : 15px;
padding-left : 15px;
width : 100%;
min-height : 1px;</pre>
<pre class="brush: xml; title: ; notranslate">&lt;div class=&quot;col-xs-12&quot;&gt;&lt;/div&gt;</pre>
<h3>Columns in details</h3>
<p>In Bootstrap 3, four types of screen resolution are provided. These ranges are:</p>
<p><strong>lg</strong> – for large – This represent large desktop screen resolutions in range of 1200px and above.</p>
<p><strong>md</strong> – for medium – This represent desktop/laptop screens with screen resolution in range of 992px to 1200px</p>
<p><strong>sm</strong> – for small – This represent tablet screens with resolution in range of 768px to 992px.</p>
<p><strong>xs</strong> – for extra small – This represent mobile screens with resolution less than 768px.</p>
<p>Each screen is divided into 12 columns by default. When forming grid, layouts for each range of screen resolution should be kept in consideration and provided in the code.</p>
<h3>Columns Classes with Example</h3>
<p><strong>&lt;div class=&#8221;col-lg-12&#8243;&gt;</strong> &#8211; to create a column covering entire  width of containing element ,for large  resolution screen</p>
<p><strong>&lt;div class=&#8221;col-md-4&#8243;&gt;</strong> &#8211; to create a column covering 4 out of 12 columns of containing element width, for medium  resolution screen</p>
<p><strong>&lt;div class=&#8221;col-sm-3&#8243;&gt;</strong> &#8211; to create a column covering 3 out of 12 columns of containing element width, for small  resolution screen</p>
<p><strong>&lt;div class=&#8221;col-xs-6&#8243;&gt;</strong> &#8211; to create a column covering 6 out of 12 columns of containing element width, for extra small  resolution screen</p>
<p><strong>&lt;div class=&#8221;col-xs-12 col-sm-8 col-md-9 col-lg-6&#8243;&gt;</strong> &#8211; col-xs-12 col-sm-9 col-md-8 col-lg-6 &#8211; covers 100% in extra small screen, 75% in small, 66% in medium and 50% in large resolution screen.</p>
<p>The post <a href="https://jharaphula.com/bootstrap-grid-system-tutorial-examples/">Responsive Bootstrap grid system Tutorial with Examples</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://jharaphula.com/bootstrap-grid-system-tutorial-examples/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			<media:content url="https://jharaphula.com/wp-content/uploads/2016/05/responsive-design.jpg" medium="image" />
	</item>
		<item>
		<title>How to use JavaScript function with ASP.NET CustomValidator?</title>
		<link>https://jharaphula.com/javascript-function-asp-net-customvalidator/</link>
					<comments>https://jharaphula.com/javascript-function-asp-net-customvalidator/#respond</comments>
		
		<dc:creator><![CDATA[Nibedita Panda]]></dc:creator>
		<pubDate>Sun, 15 May 2016 16:35:15 +0000</pubDate>
				<category><![CDATA[Microsoft Technologies]]></category>
		<category><![CDATA[ASP.NET CustomValidator]]></category>
		<category><![CDATA[Compare Field Validator]]></category>
		<category><![CDATA[Form Validation]]></category>
		<category><![CDATA[JavaScript Function]]></category>
		<category><![CDATA[Jquery Email Validation]]></category>
		<category><![CDATA[Required Field Validation]]></category>
		<guid isPermaLink="false">http://box.jharaphula.com/?p=1616</guid>

					<description><![CDATA[<img width="300" height="184" src="https://jharaphula.com/wp-content/uploads/2016/05/asp-net-custom-validation-300x184.png" class="webfeedsFeaturedVisual wp-post-image" alt="How to use JavaScript function with ASP.NET CustomValidator?" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/asp-net-custom-validation-300x184.png 300w, https://jharaphula.com/wp-content/uploads/2016/05/asp-net-custom-validation.png 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>By default under Validations ASP.NET provides 5 Controls. They are Required field validator, Range Validator, Regular Expression Validator, Compare Field Validator &#38; ASP.NET CustomValidator. Using...</p>
<p>The post <a href="https://jharaphula.com/javascript-function-asp-net-customvalidator/">How to use JavaScript function with ASP.NET CustomValidator?</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></description>
										<content:encoded><![CDATA[<img width="300" height="184" src="https://jharaphula.com/wp-content/uploads/2016/05/asp-net-custom-validation-300x184.png" class="webfeedsFeaturedVisual wp-post-image" alt="How to use JavaScript function with ASP.NET CustomValidator?" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/asp-net-custom-validation-300x184.png 300w, https://jharaphula.com/wp-content/uploads/2016/05/asp-net-custom-validation.png 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>By default under Validations ASP.NET provides 5 Controls. They are <strong>Required field validator</strong>, <strong>Range Validator</strong>, <strong>Regular Expression Validator</strong>, <strong>Compare Field Validator</strong> &amp; <strong>ASP.NET CustomValidator</strong>. Using Required field validator we do check whether the field is mandatory to user or not. Range Validator valid a specific range of values. For an example if I am going to valid an IP address in this case I can set the range to 255. Regular Expression validator validates user data using per-defined regular Expressions. Compare field do comparison.</p>
<p>Now tell if some other kind of validation you want in your app then how to do this. In real-time it is ugly to break sequence. I mean if you are using ASP.NET Validation then for all fields it need to same.</p>
<h2>ASP.NET CustomValidator Example</h2>
<p>Let&#8217;s take an example below. Here I am validation password length. What I need is user must need to enter 6 character length password. I did this using asp:CustomValidator &amp; pure JavaScript. I mean CustomVaidator working with Client Script. To do this demo here inside HTML body I have added a ASP.NET Custom Validation control. Using ErrorMessage I am display the message which user will receive if he/she trying enter invalid data. As it is an error message using ForeColor=&#8221;Red&#8221; I am applying style to my Control. In my CustomValidator using ClientValidationFunction I am suplying my javascript function name without parenthesis.</p>
<p>Inside the <a href="https://jharaphula.com/jquery-string-functions/" target="_blank" rel="noopener noreferrer">JavaScript function</a> passwordLength I am getting 2 values. These are function parameters sender and arguments. In argument under run-time I am fetching the txtPassword value and checking its length. Now you must have a query how my password field control is connected to the Custom Validator Control. Look Closely you will watch ControlToValidate=&#8221;txtPassword&#8221; in Vaidator Control. With this I am giving instruction to Custom Validator Control that Validate the input box which id is txtPassword.</p>
<h2>ASP.NET CustomValidator using JavaScript Function</h2>
<pre class="brush: xml; title: ; notranslate">&lt;%@ Page Language=&quot;VB&quot; AutoEventWireup=&quot;false&quot; %&gt;

&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot; &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;&gt;
&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;
&lt;head id=&quot;Head1&quot; runat=&quot;server&quot;&gt;
&lt;title&gt;JavaScript function with ASP.NET CustomValidator&lt;/title&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
/* passwordLength JS Function which I am referring in asp:CustomValidator */
function passwordLength(sender, args) {
debugger;
if (args.Value.length &lt; 6)
/* If password length is less than 6 charecters returning False */
return args.IsValid = false;
else
return args.IsValid = true;
}
&lt;/script&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;form id=&quot;frmDemoApp&quot; runat=&quot;server&quot;&gt;
&lt;div&gt;
Password: &lt;asp:TextBox runat=&quot;server&quot; ID=&quot;txtPassword&quot;&gt;&lt;/asp:TextBox&gt;
&lt;asp:CustomValidator ID=&quot;CustomValidator1&quot; ClientValidationFunction=&quot;passwordLength&quot; ForeColor=&quot;Red&quot; ErrorMessage=&quot;Enter a Password with minimum length of 6 characters.&quot;
ControlToValidate=&quot;txtPassword&quot; runat=&quot;server&quot;&gt;
&lt;/asp:CustomValidator&gt;
&lt;/div&gt;
&lt;/form&gt;
&lt;/body&gt;
&lt;/html&gt;</pre>
<p>The post <a href="https://jharaphula.com/javascript-function-asp-net-customvalidator/">How to use JavaScript function with ASP.NET CustomValidator?</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://jharaphula.com/javascript-function-asp-net-customvalidator/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			<media:content url="https://jharaphula.com/wp-content/uploads/2016/05/asp-net-custom-validation.png" medium="image" />
	</item>
		<item>
		<title>How to Store, Retrieve &#038; Delete data from HTML5 IndexedDB?</title>
		<link>https://jharaphula.com/store-retrieve-delete-html5-indexeddb/</link>
					<comments>https://jharaphula.com/store-retrieve-delete-html5-indexeddb/#respond</comments>
		
		<dc:creator><![CDATA[Nibedita Panda]]></dc:creator>
		<pubDate>Sun, 15 May 2016 16:32:38 +0000</pubDate>
				<category><![CDATA[Learn HTML5 with Examples]]></category>
		<category><![CDATA[Datalist in HTML5]]></category>
		<category><![CDATA[Delete data from IndexedDB]]></category>
		<category><![CDATA[HTML elements]]></category>
		<category><![CDATA[HTML5 IndexedDB]]></category>
		<category><![CDATA[Web SQL vs IndexedDB]]></category>
		<guid isPermaLink="false">http://box.jharaphula.com/?p=1612</guid>

					<description><![CDATA[<img width="300" height="188" src="https://jharaphula.com/wp-content/uploads/2016/05/html5-indexdb-300x188.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="How to Store, Retrieve &amp; Delete data from HTML5 IndexedDB?" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/html5-indexdb-300x188.jpg 300w, https://jharaphula.com/wp-content/uploads/2016/05/html5-indexdb.jpg 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>World is running under Client Server architecture. In real-time Customer interacts to Server through Clients. Server stores data. Depending upon the level of authentication and...</p>
<p>The post <a href="https://jharaphula.com/store-retrieve-delete-html5-indexeddb/">How to Store, Retrieve &#038; Delete data from HTML5 IndexedDB?</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></description>
										<content:encoded><![CDATA[<img width="300" height="188" src="https://jharaphula.com/wp-content/uploads/2016/05/html5-indexdb-300x188.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="How to Store, Retrieve &amp; Delete data from HTML5 IndexedDB?" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/html5-indexdb-300x188.jpg 300w, https://jharaphula.com/wp-content/uploads/2016/05/html5-indexdb.jpg 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>World is running under Client Server architecture. In real-time <strong>Customer interacts to Server through Clients</strong>. Server stores data. Depending upon the level of authentication and type of request Server provides data to Clients. As a common practice <strong>in this response request mechanism generally we use Database to store large amount of data</strong>. Which resides in Server. During http requests if the page contains data from the Database then it takes time to load. Which directly affects performance. How it is if we can operate large amount of data in Client machine? I can say definitely <a href="https://jharaphula.com/best-practices-website-speed-performance/" target="_blank" rel="noopener noreferrer">it will improve the performance</a>.</p>
<p>IndexedDB is a new feature introduced in the 5th revision of HTML. Using IndexedDB we can store large amount of data to the Client Browser. <strong>Compare to a Cookie IndexedDB works faster and stores bigger</strong>. IndexedDB stores data in KEY &amp; VALUE pair. The term has derived from Database. That&#8217;s why by hearing the term &#8220;IndexedDB&#8221; many of us guess SQL. <strong>No it is not like SQL</strong>. IndexedDB doesn&#8217;t support any kind of <a href="https://jharaphula.com/sql-queries-with-example/" rel="noopener noreferrer" target="_blank">SQL query</a>. IndexedDB runs under Single domain only.</p>
<h2>Key Concepts of IndexedDB</h2>
<p><strong>1. Databases</strong></p>
<p>IndexedDB operates on a per-origin basis, meaning each website or application has its own database. A single origin can have multiple databases, each identified by a unique name.</p>
<p><strong>2. Object Stores</strong></p>
<p>An object store is the primary storage mechanism in IndexedDB, similar to tables in relational databases. Each object store contains a collection of key-value pairs where the key must be unique.</p>
<p><strong>3. Indexes</strong></p>
<p>Indexes allow for efficient querying of data within an object store. They enable developers to retrieve records based on properties other than the primary key.</p>
<p><strong>4. Transactions</strong></p>
<p>Transactions ensure that database operations are performed reliably. A transaction can include multiple read and write operations, and if any operation fails, the entire transaction is rolled back.</p>
<p><strong>5. Cursors</strong></p>
<p>Cursors provide a way to iterate over records in an object store or index, enabling efficient traversal of large datasets.</p>
<h3>Getting Started with HTML5 IndexedDB</h3>
<p>To implement IndexedDB in a HTML5 page initially you required to declare the following js scripts.</p>
<pre class="brush: jscript; title: ; notranslate">window.indexedDB = window.indexedDB || window.mozIndexedDB || window.webkitIndexedDB || window.msIndexedDB;
 
window.IDBTransaction = window.IDBTransaction || window.webkitIDBTransaction || window.msIDBTransaction;
window.IDBKeyRange = window.IDBKeyRange || window.webkitIDBKeyRange || window.msIDBKeyRange
 
if (!window.indexedDB) {
window.alert(&quot;Update your browser. Older version is incompatible for IndexedDB.&quot;)
}</pre>
<h3>Prepare Data for IndexedDB</h3>
<p>Before we jump to Create a Database first let us keep some data ready. In below I am presenting few records from my &#8220;Employee_Details&#8221; table. Keep mark the Data Structure I presented below is in JSON form.</p>
<pre class="brush: jscript; title: ; notranslate">const employeeDetails = [
{ emp_id: &quot;01&quot;, name: &quot;Raghav Sukla&quot;, dob: &quot;01/06/1980&quot;, email_id: &quot;raghav@gmail.com&quot; },
{ emp_id: &quot;02&quot;, name: &quot;Hariharan Swain&quot;, dob: &quot;13/11/1972&quot;, email_id: &quot;hariharan@gmail.com&quot; }
{ emp_id: &quot;03&quot;, name: &quot;Satyabrata Panda&quot;, dob: &quot;22/06/1973&quot;, email_id: &quot;satyabrata@gmail.com&quot; }
];</pre>
<h3>Create an IndexedDB Database</h3>
<p>Like we do in SQL or any DBMS here also we required to Create a Database. Look at the below Code here I created a Database. The method I used is &#8220;window.indexedDB.open(&#8220;&lt;Your Database Name&gt;&#8221;). Under Database I handing 3 events onerror for error handling, onsuccess for successful response and onupgradeneeded for adding record during up-gradation.</p>
<pre class="brush: jscript; title: ; notranslate">var mydb;
var request = window.indexedDB.open(&quot;demoDb&quot;, 1);
/* Handling Error */
request.onerror = function(event) {
console.log(&quot;Error Occurred.&quot;);
};
/* Executing after Success */
request.onsuccess = function(event) {
mydb = request.result;
console.log(&quot;success: &quot;+ mydb);
};
/* While Updating */
request.onupgradeneeded = function(event) {
var mydb = event.target.result;
var objectStore = mydb.createObjectStore(&quot;empDetails&quot;, {keyPath: &quot;emp_id&quot;});
            
for (var i in employeeDetails) {
objectStore.add(employeeDetails[i]);
}
}</pre>
<h3>How to Store records to HTML5 IndexedDB?</h3>
<p>Without records Database is meaningless. Let&#8217;s watch the example below. </p>
<pre class="brush: jscript; title: ; notranslate">function insertRecords() {
var request = mydb.transaction([&quot;empDetails&quot;], &quot;readwrite&quot;)
.objectStore(&quot;empDetails&quot;)
.add({ emp_id: &quot;04&quot;, name: &quot;Vratika Viswakarma&quot;, dob: &quot;02/08/1982&quot;, email_id: &quot;vratika@gmail.com&quot; });
request.onsuccess = function(event) {
alert(&quot;Vratika Viswakarma is added to your Database.&quot;);
};
request.onerror = function(event) {
alert(&quot;Getting Errors.&quot;);
}
}</pre>
<p>While adding records I am maintaining the same sequence and key value pairs.</p>
<h3>Function to Read Data from HTML5 IndexedDB</h3>
<p>You must aware of the power of a SQL SELECT Statement. Like the same look at the below code how I am fetching records from IndexedDB. Here I used &#8220;emp_id&#8221; as the WHERE Condition.</p>
<pre class="brush: jscript; title: ; notranslate">function readRecords() {
var trans = mydb.transaction([&quot;empDetails&quot;]);
var objectStore = trans.objectStore(&quot;empDetails&quot;);
var request = objectStore.get(&quot;04&quot;);
/* On Error */        
request.onerror = function(event) {
alert(&quot;Unable to Retrieve Data.&quot;);
};
/* On Success */            
request.onsuccess = function(event) {
// Here you can Operate request.result Data!
if(request.result) {
alert(&quot;Name: &quot; + request.result.name + &quot;, DOB: &quot; + request.result.dob + &quot;, Email: &quot; + request.result.email_id);
}
else {
alert(&quot;Vratika Viswakarma couldn't be found in your database!&quot;);
}
};
}</pre>
<p>In below this an another way to fetch records sequentially. You can say this trick is similar to a SQL Cursor.</p>
<pre class="brush: jscript; title: ; notranslate">function readAllRecords() {
var objectStore = mydb.transaction(&quot;empDetails&quot;).objectStore(&quot;empDetails&quot;);
objectStore.openCursor().onsuccess = function(event) {
var indexeddb_cursor = event.target.result;
if (indexeddb_cursor) {
alert(&quot;Name for id &quot; + indexeddb_cursor.key + &quot; is &quot; + indexeddb_cursor.value.name + &quot;, DOB: &quot; + indexeddb_cursor.value.dob + &quot;, Email: &quot; + indexeddb_cursor.value.email_id);
indexeddb_cursor.continue();
}
else {
alert(&quot;No more entries!&quot;);
}
};
}</pre>
<h3>How to Delete records from HTML5 IndexedDB?</h3>
<p>Delete is a very Common Operation of DBMS. In the below example we are passing &#8220;emp_id&#8221; to Delete a record.</p>
<pre class="brush: jscript; title: ; notranslate">function deleteRecords() {
var request = mydb.transaction([&quot;empDetails&quot;], &quot;readwrite&quot;)
.objectStore(&quot;empDetails&quot;)
.delete(&quot;04&quot;);
request.onsuccess = function(event) {
alert(&quot;Vratika Viswakarma record has been removed from Database.&quot;);
};
}</pre>
<h2>Best Practices</h2>
<p><strong>1. Error Handling</strong>: Always implement error handling to manage database operation failures gracefully.<br />
<strong>2. Transaction Management</strong>: Use transactions efficiently to avoid performance bottlenecks.<br />
<strong>3. Database Versioning</strong>: Handle database upgrades carefully to prevent data loss.<br />
<strong>4. Memory Management</strong>: Close database connections when not in use to free up resources.</p>
<h2>Limitations of IndexedDB</h2>
<p>Despite its advantages, IndexedDB has some limitations:</p>
<p>&#8211; Complex API: The API is more complex compared to localStorage or sessionStorage.<br />
&#8211; Browser Support Variations: While widely supported, some older browsers may have partial or inconsistent implementations.<br />
&#8211; No Built-in Synchronization: Unlike server-side databases, IndexedDB does not provide built-in synchronization mechanisms.</p>
<h2>Conclusion</h2>
<p>HTML5 IndexedDB is a powerful client-side storage solution for web applications requiring large-scale, structured data storage. Its asynchronous nature, transaction support, and indexing capabilities make it ideal for complex applications. While it has a steeper learning curve compared to simpler storage options, mastering IndexedDB enables developers to build more robust and efficient web applications. By following best practices and understanding its core concepts, developers can leverage IndexedDB to enhance user experiences with offline capabilities and fast data access.</p>
<p>The post <a href="https://jharaphula.com/store-retrieve-delete-html5-indexeddb/">How to Store, Retrieve &#038; Delete data from HTML5 IndexedDB?</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://jharaphula.com/store-retrieve-delete-html5-indexeddb/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			<media:content url="https://jharaphula.com/wp-content/uploads/2016/05/html5-indexdb.jpg" medium="image" />
	</item>
		<item>
		<title>Angularjs $watch and Link Function Example to fetch value from View</title>
		<link>https://jharaphula.com/angularjs-watch-link-function-example/</link>
					<comments>https://jharaphula.com/angularjs-watch-link-function-example/#respond</comments>
		
		<dc:creator><![CDATA[Nibedita Panda]]></dc:creator>
		<pubDate>Sun, 15 May 2016 16:30:09 +0000</pubDate>
				<category><![CDATA[AngularJS with Examples]]></category>
		<category><![CDATA[AngularJS]]></category>
		<category><![CDATA[JavaScript Function]]></category>
		<category><![CDATA[Link Function Example]]></category>
		<guid isPermaLink="false">http://box.jharaphula.com/?p=1610</guid>

					<description><![CDATA[<img width="300" height="185" src="https://jharaphula.com/wp-content/uploads/2016/05/angularjs-watch-method-300x185.png" class="webfeedsFeaturedVisual wp-post-image" alt="Angularjs $watch and Link Function Example to fetch value from View" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/angularjs-watch-method-300x185.png 300w, https://jharaphula.com/wp-content/uploads/2016/05/angularjs-watch-method.png 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>During you Create Dynamic Directives in AngularJS $watch method helps to Fetch value from View. In this example I am Creating a Dynamic Tab. The...</p>
<p>The post <a href="https://jharaphula.com/angularjs-watch-link-function-example/">Angularjs $watch and Link Function Example to fetch value from View</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></description>
										<content:encoded><![CDATA[<img width="300" height="185" src="https://jharaphula.com/wp-content/uploads/2016/05/angularjs-watch-method-300x185.png" class="webfeedsFeaturedVisual wp-post-image" alt="Angularjs $watch and Link Function Example to fetch value from View" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/angularjs-watch-method-300x185.png 300w, https://jharaphula.com/wp-content/uploads/2016/05/angularjs-watch-method.png 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>During you Create Dynamic Directives in AngularJS $watch method helps to Fetch value from View. In this example I am <a href="https://jharaphula.com/example-angularjs-dynamic-tabs-bootstrap/" target="_blank" rel="noopener noreferrer">Creating a Dynamic Tab</a>. The directive I named ng-tab. While declaring my directive in HTML body I am passing 2 things length and data. Data is nothing but the tab names in the shape of state and its cities. Now just you think how can we get these values in AngularJS Controller. The same $watch method do.</p>
<p>Look at my app.js file. In scope I am taking length &amp; data as the key. Then in link function fetching those values using $watch method. The key thing you will notice the length is accepting &#8216;=&#8217; when data is accepting &#8216;@&#8217;. This because of Data types. Generally for integer we take &#8216;=&#8217; and &#8216;@&#8217; for string characters.</p>
<h3>Index.htm</h3>
<pre class="brush: xml; title: ; notranslate">&lt;!DOCTYPE html&gt;
&lt;html ng-app=&quot;tabModule&quot;&gt;
&lt;head&gt;
&lt;meta charset=&quot;utf-8&quot;&gt;
&lt;title&gt;Angularjs $watch and Link Function Example&lt;/title&gt;
&lt;!--AngularJS library CDN link--&gt;
&lt;script type=&quot;text/javascript&quot; src=&quot;https://ajax.googleapis.com/ajax/libs/angularjs/1.3.0-rc.0/angular.min.js&quot;&gt;&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot; src=&quot;app.js&quot;&gt;&lt;/script&gt;
&lt;!--Jquery library CDN link--&gt;
&lt;script src=&quot;http://code.jquery.com/jquery-1.11.0.min.js&quot;&gt;&lt;/script&gt;
&lt;!--Jquery UI CDN link--&gt;
&lt;script src=&quot;http://code.jquery.com/ui/1.11.1/jquery-ui.js&quot;&gt;&lt;/script&gt;
&lt;!--BootStrap CDN links--&gt;
&lt;script type=&quot;text/javascript&quot; src=&quot;http://netdna.bootstrapcdn.com/twitter-bootstrap/2.1.1/js/bootstrap.js&quot;&gt;&lt;/script&gt;
&lt;link href=&quot;http://netdna.bootstrapcdn.com/twitter-bootstrap/2.1.1/css/bootstrap.no-icons.min.css&quot; rel=&quot;stylesheet&quot;&gt;
&lt;link href=&quot;http://netdna.bootstrapcdn.com/font-awesome/2.0/css/font-awesome.css&quot; rel=&quot;stylesheet&quot;&gt;
&lt;link rel=&quot;stylesheet&quot; href=&quot;http://netdna.bootstrapcdn.com/twitter-bootstrap/2.1.1/css/bootstrap.min.css&quot; type=&quot;text/css&quot;&gt;
&lt;link rel=&quot;stylesheet&quot; href=&quot;http://netdna.bootstrapcdn.com/twitter-bootstrap/2.1.1/css/bootstrap-theme.min.css&quot; type=&quot;text/css&quot;&gt;
&lt;link rel=&quot;stylesheet&quot; href=&quot;http://code.jquery.com/ui/1.11.1/themes/smoothness/jquery-ui.css&quot;&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;ng-tab length=&quot;4&quot; data='{&quot;Country&quot;:[{&quot;state&quot;:&quot;Maharashtra&quot;, &quot;cities&quot;:&quot;Mumbai, Pune, Nagpur, Thane, Nashik&quot;},{&quot;state&quot;:&quot;Odisha&quot;, &quot;cities&quot;:&quot;Bhubaneswar, Cuttack, Rourkela, Brahmapur, Sambalpur&quot;},{&quot;state&quot;:&quot;Karnataka&quot;, &quot;cities&quot;:&quot;Bellary, Bidar, Gulbarga, Koppal, Raichur&quot;},{&quot;state&quot;:&quot;Chandigarh&quot;, &quot;cities&quot;:&quot;Ludhiana, Amritsar, Jalandhar, Patiala, Bathinda&quot;}]}'&gt;&lt;/ng-tab&gt;
&lt;/body&gt;
&lt;/html&gt;</pre>
<h3>my-tab.htm</h3>
<pre class="brush: xml; title: ; notranslate">&lt;!--ngTab Template--&gt;
&lt;h3&gt;&lt;center&gt;{{ appDetails }}&lt;/center&gt;&lt;/h3&gt;
&lt;div class=&quot;container&quot;&gt;
&lt;div id=&quot;content&quot;&gt;
&lt;ul id=&quot;tabs&quot; class=&quot;nav nav-tabs&quot; data-tabs=&quot;tabs&quot;&gt;
&lt;li ng-class=&quot;{active: $first}&quot; ng-repeat=&quot;item in tempArrTab&quot;&gt;
&lt;a href=&quot;#{{ item }}&quot; data-toggle=&quot;tab&quot;&gt;{{ item }}&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;div id=&quot;my-tab-content&quot; class=&quot;tab-content&quot;&gt;
&lt;div ng-repeat=&quot;item in tempArrTab&quot; class=&quot;tab-pane&quot; ng-class=&quot;{active: $first}&quot; id=&quot;{{ item }}&quot;&gt;
&lt;h2&gt;{{ item }}&lt;/h2&gt;
&lt;p&gt;Welcome to {{ item }}. Visit Us.&lt;/p&gt;
Cities : &lt;input list=&quot;tags-{{ $index }}&quot;&gt;
&lt;/div&gt;

&lt;div ng-repeat=&quot;compitem in tempCompArr&quot;&gt;
&lt;datalist id=&quot;tags-{{ $index }}&quot;&gt;
&lt;option ng-repeat=&quot;items in compitem.split(',')&quot; value=&quot;{{ items }}&quot;&gt;
&lt;/datalist&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;</pre>
<h3>app.js</h3>
<pre class="brush: jscript; title: ; notranslate">/* ng-tab Module */
angular.module('tabModule', []).directive('ngTab', function() {
return {
restrict: 'E',
transclude: true,

scope: {
/* Accepting the number of Tab you want in your app */
&quot;length&quot;: '=',
/* Accepting the data in JSON for Tab */
&quot;data&quot;: '@'
},

link: function (scope, element) {
scope.$watch(&quot;length&quot;, function (arrlen) {
scope.$watch(&quot;data&quot;, function (value) {

var obj = JSON.parse(value);

var lenjson = obj.Country.length;

var arrTab = [];
var autoCompArray = [];

/* Assigning input JSON data to Array */
if (arrlen == lenjson) {
for(i=0; i&amp;lt;lenjson; i++) {
arrTab.push(obj.Country[i].state);
autoCompArray.push(obj.Country[i].cities)
}
} else {
alert('Please provide accurate data length.');
}

scope.tempArrTab = arrTab;
scope.tempCompArr = autoCompArray;
scope.appDetails = 'Create your own ng-tab using AngularJS';

}, false);

}, false);
},

controller: function($scope, $filter) {

$(function() {
$(&quot;#tabs&quot;).tabs();
});
},
templateUrl: 'my-tab.htm'
};
});</pre>
<p>The post <a href="https://jharaphula.com/angularjs-watch-link-function-example/">Angularjs $watch and Link Function Example to fetch value from View</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://jharaphula.com/angularjs-watch-link-function-example/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			<media:content url="https://jharaphula.com/wp-content/uploads/2016/05/angularjs-watch-method.png" medium="image" />
	</item>
		<item>
		<title>How to implement MVC Architecture in AngularJS?</title>
		<link>https://jharaphula.com/mvc-architecture-angularjs/</link>
					<comments>https://jharaphula.com/mvc-architecture-angularjs/#respond</comments>
		
		<dc:creator><![CDATA[Biswabhusan Panda]]></dc:creator>
		<pubDate>Sun, 15 May 2016 15:36:41 +0000</pubDate>
				<category><![CDATA[AngularJS with Examples]]></category>
		<category><![CDATA[AngularJS Library]]></category>
		<category><![CDATA[MVC Architecture]]></category>
		<category><![CDATA[MVC Architecture in Angular]]></category>
		<category><![CDATA[MVVM]]></category>
		<category><![CDATA[MVW]]></category>
		<guid isPermaLink="false">http://box.jharaphula.com/?p=1595</guid>

					<description><![CDATA[<img width="300" height="191" src="https://jharaphula.com/wp-content/uploads/2016/05/AngularJS-Training-300x191.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="How to implement MVC Architecture in AngularJS?" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/AngularJS-Training-300x191.jpg 300w, https://jharaphula.com/wp-content/uploads/2016/05/AngularJS-Training.jpg 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>AngularJS was developed and maintained by Google. As a latest Technology AngularJS comes with many Advanced features. Depending upon its feature rich functionalities today it...</p>
<p>The post <a href="https://jharaphula.com/mvc-architecture-angularjs/">How to implement MVC Architecture in AngularJS?</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></description>
										<content:encoded><![CDATA[<img width="300" height="191" src="https://jharaphula.com/wp-content/uploads/2016/05/AngularJS-Training-300x191.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="How to implement MVC Architecture in AngularJS?" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/AngularJS-Training-300x191.jpg 300w, https://jharaphula.com/wp-content/uploads/2016/05/AngularJS-Training.jpg 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>AngularJS was developed and maintained by Google. As a latest Technology AngularJS comes with many Advanced features. Depending upon its feature rich functionalities today it is one of the most popular JS Framework. It Supports MVVM, MVW and MVC Architecture. Among these Architectures MVC is the most popular one. Before Discuss more into MVC Architecture using <a href="https://jharaphula.com/beginners-learn-angularjs-with-examples/" target="_blank" rel="noopener noreferrer">AngularJS</a> let us Start with what is design pattern. Design pattern is nothing but a structural approach to develop quality codes. Design pattern improves Code reuse-ability.</p>
<p><strong>Model</strong> &#8211; Model is the layer using which we design data inside a Controller. In MVC Architecture model resides in lowest level. Let&#8217;s talk about an Employee Management System. Here we can Create various models like Employee Details, Manager Details or Salary Details. In side a controller we can create models depending upon our data requirement. Model not only helps to Organize data but also it is capable to handle business logics.</p>
<p>To represent model in view AngularJS provides $scope object. Any object assign to $scope it is accessible in view. Look at the below Example of model. Here I am storing some string value to a variable under $Scope object.</p>
<pre class="brush: jscript; title: ; notranslate">$scope.employees =  {
'Name':'Jimmy Jose',
'Address':'New Delhi, India',
'Email':'jimmy_jose@gmail.com'
}</pre>
<p>Model was specially designed to plan structured data. Let&#8217;s take one more example where you want to show list of States depending upon the on change event of a Country dropdown. In this case while creating a data model we have to go like the below example.</p>
<pre class="brush: jscript; title: ; notranslate">$scope.countries =  {
'Country':'India',
'States': { 'Utar Pradesh', 'Andra Pradesh', 'Odhisha', 'Karnatak', 'New Delhi' }
}</pre>
<p><strong>View</strong> &#8211; View is nothing but what user watch. I mean the rendered HTML. AngularJS makes HTML enrich. In Controller AngularJS provides a $scope object. Which is responsible to inter-exchange data in between View and Controller. To display Controller data in view generally we use the following Syntax.</p>
<pre class="brush: xml; title: ; notranslate">{{ variable from Controller }}</pre>
<p><strong>Controller</strong> &#8211; Controller is the unit which Controls application logic. Whether we do an operation in a variable or implement a function Controller handles all that. Controller receives input from view, validates it and performs business operations that modify the state of the data model. To create Controller in AngularJS we use the following Syntax.</p>
<pre class="brush: jscript; title: ; notranslate">CusFilterMod.controller('CusFilterCtrl', ['$scope', '$filter', function($scope, $filter)  ...... });</pre>
<h3>Example of MVC Architecture in AngularJS</h3>
<pre class="brush: xml; title: ; notranslate">&lt;html ng-app=&quot;myModel&quot;&gt;
&lt;head&gt;
&lt;title&gt;Example to implement MVC Design Pattern using AngularJS&lt;/title&gt;
&lt;script SRC=&quot;https://ajax.googleapis.com/ajax/libs/angularjs/1.2.13/angular.js&quot;&gt;
&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
var app = angular.module('myModel', []);
/*Creating Controller Here*/
app.controller('myController', function($scope) {
/*Creating Model Here*/
$scope.employees =  {
'Name':'Jimmy Jose',
'Address':'New Delhi, India',
'Email':'jimi_jose@gmail.com'
}
});
&lt;/script&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;p&gt;Displing model data in view through controller&lt;/p&gt;
&lt;div ng-controller=&quot;myController&quot;&gt;
&lt;h3&gt;{{ employees.Name }} &lt;/h3&gt;
&lt;h3&gt;{{ employees.Address }} &lt;/h3&gt;
&lt;h3&gt;{{ employees.Email }} &lt;/h3&gt;
&lt;/div&gt;
&lt;/body&gt;
&lt;/html&gt;</pre>
<p>The post <a href="https://jharaphula.com/mvc-architecture-angularjs/">How to implement MVC Architecture in AngularJS?</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://jharaphula.com/mvc-architecture-angularjs/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			<media:content url="https://jharaphula.com/wp-content/uploads/2016/05/AngularJS-Training.jpg" medium="image" />
	</item>
		<item>
		<title>How to restrict AngularJS Search Filter to a Specific Column?</title>
		<link>https://jharaphula.com/restrict-angularjs-search-filter/</link>
					<comments>https://jharaphula.com/restrict-angularjs-search-filter/#respond</comments>
		
		<dc:creator><![CDATA[Biswabhusan Panda]]></dc:creator>
		<pubDate>Sun, 15 May 2016 15:29:37 +0000</pubDate>
				<category><![CDATA[AngularJS with Examples]]></category>
		<category><![CDATA[AngularJS Search Filter]]></category>
		<category><![CDATA[Filter to a Specific Column]]></category>
		<category><![CDATA[Filter to Reverse a String]]></category>
		<category><![CDATA[Search Filter in the Column Header]]></category>
		<guid isPermaLink="false">http://box.jharaphula.com/?p=1589</guid>

					<description><![CDATA[<img width="300" height="181" src="https://jharaphula.com/wp-content/uploads/2016/05/search-using-angularjs-300x181.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="How to restrict AngularJS Search Filter to a Specific Column?" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/search-using-angularjs-300x181.jpg 300w, https://jharaphula.com/wp-content/uploads/2016/05/search-using-angularjs.jpg 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>Among many Advanced features of AngularJS Search Filter is One. Like JavaScript we don&#8217;t required to write a Search function. Simply by using the Keyword...</p>
<p>The post <a href="https://jharaphula.com/restrict-angularjs-search-filter/">How to restrict AngularJS Search Filter to a Specific Column?</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></description>
										<content:encoded><![CDATA[<img width="300" height="181" src="https://jharaphula.com/wp-content/uploads/2016/05/search-using-angularjs-300x181.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="How to restrict AngularJS Search Filter to a Specific Column?" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/search-using-angularjs-300x181.jpg 300w, https://jharaphula.com/wp-content/uploads/2016/05/search-using-angularjs.jpg 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>Among many Advanced features of <a href="https://angularjs.org/" rel="noopener noreferrer nofollow" target="_blank">AngularJS</a> Search Filter is One. Like JavaScript we don&#8217;t required to write a Search function. Simply by using the Keyword Filter with directives we can implement Search option in AngularJS.</p>
<p>Look at the below Example. Here I have <a href="https://jharaphula.com/learn-json-tutorial-for-beginners/" target="_blank" rel="noopener noreferrer">JSON</a> formatted data in employees object of $scope. For each employee record there are 5 columns name, dob, designation, gender &amp; salary. What I want is when I will search using a input box I need to filer records depending upon employees names only.</p>
<p>To do so while binding data using ng-repeat I am using &#8220;employee in employees | filter:{name:search}&#8221;. By default filter keyword search all the columns from employees object. To restrict Search to specific column employee name here I am passing name:search as a param to filter option.</p>
<h3>Example to restrict AngularJS Search Option</h3>
<pre class="brush: jscript; title: ; notranslate">&lt;!DOCTYPE html&gt;
&lt;html ng-app=&quot;CusFilterMod&quot;&gt;
&lt;head&gt;
&lt;title&gt;How to restrict AngularJS Search Filter to a specific column?&lt;/title&gt;
&lt;style type=&quot;text/css&quot;&gt;
th { background: #000000; color: #ffffff; border: 1px solid grey; border-collapse: collapse; }
table, td  { border: 1px solid grey; border-collapse: collapse; padding: 5px; }
table tr:nth-child(odd)    { background-color: #f1f1f1; }
table tr:nth-child(even) { background-color: #ffffff; }
&lt;/style&gt;
&lt;script type=&quot;text/javascript&quot; src=&quot;https://ajax.googleapis.com/ajax/libs/angularjs/1.0.1/angular.min.js&quot;&gt;&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
var CusFilterMod = angular.module('CusFilterMod', [])
.controller('CusFilterCtrl', ['$scope', '$filter', function($scope, $filter) {
var employees = [{
name: 'Rishika Malviya',
dob: new Date(&quot;January 20, 1985&quot;),
designation: 'Project Manager',
gender: 'Female',
salary: 25000
}, {
name: 'Niraja Nayak',
dob: new Date(&quot;February 25, 1995&quot;),
designation: 'Manager',
gender: 'Male',
salary: 45000
}, {
name: 'Biswabhusan Panda',
dob: new Date(&quot;December 12, 1970&quot;),
designation: 'Team Leader',
gender: 'Male',
salary: 25500
}, {
name: 'Ravi Sakalkar',
dob: new Date(&quot;October 1, 1985&quot;),
designation: 'Business Head',
gender: 'Female',
salary: 55000
},
{
name: 'Punam Nikam',
dob: new Date(&quot;November 10, 1955&quot;),
designation: 'Graphics Designer',
gender: 'Male',
salary: 75000
}
];
$scope.employees = employees;
}]);
&lt;/script&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;div ng-controller=&quot;CusFilterCtrl&quot;&gt;
Search &lt;input type=&quot;text&quot; ng-model=&quot;search&quot; placeholder=&quot;Search Employees&quot;&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;th&gt;Name&lt;/th&gt;
&lt;th&gt;Date&lt;/th&gt;
&lt;th&gt;Designation&lt;/th&gt;
&lt;th&gt;Gender&lt;/th&gt;
&lt;th&gt;Salary&lt;/th&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr ng-repeat=&quot;employee in employees | filter:{name:search}&quot;&gt;
&lt;td&gt;{{ employee.name | uppercase }}&lt;/td&gt;
&lt;td&gt;{{ employee.dob | date:&quot;MMM dd, yyyy&quot; }}&lt;/td&gt;
&lt;td&gt;{{ employee.designation }}&lt;/td&gt;
&lt;td&gt;{{ employee.gender }}&lt;/td&gt;
&lt;td&gt;{{ employee.salary | currency:&quot;$&quot;:2 }}&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;/body&gt;
&lt;/html&gt;</pre>
<p>The post <a href="https://jharaphula.com/restrict-angularjs-search-filter/">How to restrict AngularJS Search Filter to a Specific Column?</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://jharaphula.com/restrict-angularjs-search-filter/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			<media:content url="https://jharaphula.com/wp-content/uploads/2016/05/search-using-angularjs.jpg" medium="image" />
	</item>
		<item>
		<title>How to bind data to Select tag using AngularJS ng-options?</title>
		<link>https://jharaphula.com/select-control-angularjs-ng-options/</link>
					<comments>https://jharaphula.com/select-control-angularjs-ng-options/#respond</comments>
		
		<dc:creator><![CDATA[Biswabhusan Panda]]></dc:creator>
		<pubDate>Sun, 15 May 2016 15:28:08 +0000</pubDate>
				<category><![CDATA[AngularJS with Examples]]></category>
		<category><![CDATA[AngularJS ng-options]]></category>
		<category><![CDATA[How to Bind Data?]]></category>
		<category><![CDATA[JavaScript Programming]]></category>
		<category><![CDATA[Tag using AngularJS]]></category>
		<guid isPermaLink="false">http://box.jharaphula.com/?p=1587</guid>

					<description><![CDATA[<img width="300" height="186" src="https://jharaphula.com/wp-content/uploads/2016/05/angularjs-tab-300x186.png" class="webfeedsFeaturedVisual wp-post-image" alt="How to bind data to Select tag using AngularJS ng-options?" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/angularjs-tab-300x186.png 300w, https://jharaphula.com/wp-content/uploads/2016/05/angularjs-tab.png 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>While Developing a Web App, its a very common behavior to display list of values in a Select tag. Let&#8217;s discuss about an Employee Management...</p>
<p>The post <a href="https://jharaphula.com/select-control-angularjs-ng-options/">How to bind data to Select tag using AngularJS ng-options?</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></description>
										<content:encoded><![CDATA[<img width="300" height="186" src="https://jharaphula.com/wp-content/uploads/2016/05/angularjs-tab-300x186.png" class="webfeedsFeaturedVisual wp-post-image" alt="How to bind data to Select tag using AngularJS ng-options?" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/angularjs-tab-300x186.png 300w, https://jharaphula.com/wp-content/uploads/2016/05/angularjs-tab.png 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>While Developing a Web App, its a very common behavior to display list of values in a Select tag. Let&#8217;s discuss about an Employee Management System where many times we required to display employee names in a dropdownlist. Assume we have a JSON file which contains employee details &amp; the application architecture is with <a href="https://jharaphula.com/category/programming-solutions/learn-angularjs-with-examples/" target="_blank" rel="noopener noreferrer">AngularJS</a>. Look at the below example here I am binding JSON formatted data from scope object using AngularJS ng-options.</p>
<p>To show list of employee names here I added for loop inside ng-options &#8220;emp.name for emp in empDetails&#8221;. Here empDetails is the object which holds JSON formatted data. Due to security reason outside the scope we can&#8217;t modify scope data directly. The reason I am cloning empDetails data to emp object inside ng-options. Then using embedded for loop binding emp.name.</p>
<h3>Using AngularJS ng-options</h3>
<pre class="brush: xml; title: ; notranslate">&lt;!DOCTYPE html&gt;
&lt;html ng-app=&quot;EmployeeMod&quot;&gt;
&lt;head&gt;
&lt;title&gt;How to bind data to Select Control using ng-options?&lt;/title&gt;
&lt;script src=&quot;https://ajax.googleapis.com/ajax/libs/angularjs/1.0.1/angular.min.js&quot;&gt;&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
/*Declaring the Module*/
var EmployeeMod = angular.module('EmployeeMod', []);
EmployeeMod.controller('EmployeeCtrl', function ($scope) {
/*Declaring JSON formatted Data*/
$scope.empDetails = [
{name:'Rupak Roy', designation:'Assistant Manager'},
{name:'Sujata Malhotra', designation:'Project Manager', notAnOption: true},
{name:'Raghav Setthy', designation:'Team Leader'},
{name:'Mohini Sharma', designation:'Graphics Designer', notAnOption: true},
{name:'Sanjarekha Dash', designation:'Software Engineer', notAnOption: false}
];
});
&lt;/script&gt;
&lt;/head&gt;
&lt;body ng-controller=&quot;EmployeeCtrl&quot;&gt;
&lt;!--Binding Data using ng-options--&gt;
&lt;select ng-model=&quot;empName&quot; ng-options=&quot;emp.name for emp in empDetails&quot;&gt;&lt;/select&gt;
&lt;/body&gt;
&lt;/html&gt;</pre>
<p>The post <a href="https://jharaphula.com/select-control-angularjs-ng-options/">How to bind data to Select tag using AngularJS ng-options?</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://jharaphula.com/select-control-angularjs-ng-options/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			<media:content url="https://jharaphula.com/wp-content/uploads/2016/05/angularjs-tab.png" medium="image" />
	</item>
		<item>
		<title>Web Content Accessibility Guidelines for UI Developers</title>
		<link>https://jharaphula.com/web-content-accessibility-guidelines/</link>
					<comments>https://jharaphula.com/web-content-accessibility-guidelines/#respond</comments>
		
		<dc:creator><![CDATA[Biswabhusan Panda]]></dc:creator>
		<pubDate>Sun, 15 May 2016 15:23:17 +0000</pubDate>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Accessibility Guidelines]]></category>
		<category><![CDATA[Cleaver UI developer]]></category>
		<category><![CDATA[Guidelines for UI Developers]]></category>
		<category><![CDATA[Increasing Accessibility]]></category>
		<category><![CDATA[UI Developer Interview Questions]]></category>
		<category><![CDATA[W3C-Validator]]></category>
		<guid isPermaLink="false">http://box.jharaphula.com/?p=1581</guid>

					<description><![CDATA[<img width="300" height="192" src="https://jharaphula.com/wp-content/uploads/2016/05/Web-Accessibility-300x192.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="Web Content Accessibility Guidelines for UI Developers" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/Web-Accessibility-300x192.jpg 300w, https://jharaphula.com/wp-content/uploads/2016/05/Web-Accessibility.jpg 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>Web is like a stock exchange of information. Looking into this day to day popularity of internet growing rapidly. Including normal viewers physically disabled personalities...</p>
<p>The post <a href="https://jharaphula.com/web-content-accessibility-guidelines/">Web Content Accessibility Guidelines for UI Developers</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></description>
										<content:encoded><![CDATA[<img width="300" height="192" src="https://jharaphula.com/wp-content/uploads/2016/05/Web-Accessibility-300x192.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="Web Content Accessibility Guidelines for UI Developers" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/Web-Accessibility-300x192.jpg 300w, https://jharaphula.com/wp-content/uploads/2016/05/Web-Accessibility.jpg 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>Web is like a stock exchange of information. Looking into this day to day <a href="https://jharaphula.com/when-internet-invented-internet-history/" target="_blank" rel="noopener noreferrer">popularity of internet growing rapidly</a>. Including normal viewers physically disabled personalities are accessing the web. Web Accessibility is the term which was derived for physically disabled users. I mean while a physically disabled person accessing the web what are the technique we can provide in UI that can make his/her browsing easier. Web Content Accessibility Guidelines not only helps disabled persons but also this technique is very helpful for Senior Citizens.</p>
<p>I am having more than 10 plus years experience as a UI developer. But in the day one when I heard about the term &#8220;Web Accessibility&#8221; I did started Goggled. Finally, got to know this is a technique using which we make the web easy accessible for physical disabled personalities. In web this technique gives freedom to equal access &amp; equal opportunity for physically disabled viewers. Then the next Question come to mind is &#8220;As a UI Developer what are the Changes I required to make my web pages Accessibility friendly?&#8221;.</p>
<p>To answer the above query many Countries are with many set of defined rules. Among them 2 rules are popular Section 508 &amp; WCAG. Section 508 is by US government. WCAG is an international Accessibility Guidelines. It has two revisions WCAG1.0 &amp; WCAG2.0.</p>
<h3>Web Content Accessibility Guidelines</h3>
<p><strong>Use Valid HTML</strong> &#8211; While Creating a HTML page make sure that your page is W3C Compatible. To check whether your HTML page is W3C optimized or not you can use this free tool <a href="http://validator.w3.org" target="_blank" rel="noopener noreferrer nofollow">Valid HTML</a>.</p>
<p><img loading="lazy" decoding="async" src="https://jharaphula.com/wp-content/uploads/2016/05/W3C-Validator.jpg" alt="W3C-Validator" width="750" height="309" class="alignnone size-full wp-image-1872" srcset="https://jharaphula.com/wp-content/uploads/2016/05/W3C-Validator.jpg 750w, https://jharaphula.com/wp-content/uploads/2016/05/W3C-Validator-300x124.jpg 300w" sizes="auto, (max-width: 750px) 100vw, 750px" /></p>
<p>In this tool under more options choose &#8220;Show Outline&#8221; option. Then valid the URL to check whether page headings &amp; sub-headings are in right sequence.</p>
<p><strong>Large Fonts</strong> &#8211; Generally Large Fonts helps them those are with week vision. After Creating a HTML page successfully change the browser font size to largest. If you HTML page is responding properly then your page is Optimized.</p>
<p><strong>Check Color Combination &amp; High Contrast mode</strong> &#8211; For viewers those are disabled with vision for them Color Combination &amp; High Contrast helps to view the page. To Change your web page theme to High Contrast always provide short-cut key. After update the theme to High Contrast check properly that your page is not disappearing any important Contents.</p>
<p><strong>Alt &amp; Title attribute in Image</strong> &#8211; It is a <a href="https://jharaphula.com/stop-weaken-serp-rankings/" rel="noopener noreferrer" target="_blank">good SEO practice</a> to use alt &amp; title tag in images. Including SEO this UI Changes helps visually disabled persons to listen the text using Screen reader. Also using this feature on mouse over of an image a disabled person can watch the text like a tooltip.</p>
<p><strong>Allow Keyboard Operations</strong> &#8211; While designing a HTML page to enrich the page with Web Accessibility allow keyboard short-cuts. For an example if you have a Dropdown list in your page make sure user can update its value using up or down arrow key.</p>
<p><strong>While sharing PDF Documents</strong> &#8211; In many website it was noticed to share bulk information we provide a PDF File. According to Accessibility testing before uploading the PDF save the same PDF file in text file format. Then check whether all the contents appearing in that file or not. If every thing goes fine upload the PDF.</p>
<p><strong>Use Captions and Transcripts</strong> &#8211; This features in Web helps them those are hearing disability or can&#8217;t access Audios and Videos. While recording a Video or Audio check with the Audio Company whether your track is with <a href="https://jharaphula.com/how-to-write-good-captions-example/" rel="noopener noreferrer" target="_blank">Captions and Transcripts</a>.</p>
<p><strong>Use Audio &amp; Video when Required</strong> &#8211; After Multimedia web is more Live. To make your web Accessibility Optimize use Audio and Video when required. For an example if a Blind person is accessing your web portal Audio can help him/her to hear the Contents. Similarly use Video when required. Video saves user time and works better then documents.</p>
<p>The post <a href="https://jharaphula.com/web-content-accessibility-guidelines/">Web Content Accessibility Guidelines for UI Developers</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://jharaphula.com/web-content-accessibility-guidelines/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			<media:content url="https://jharaphula.com/wp-content/uploads/2016/05/Web-Accessibility.jpg" medium="image" />
	</item>
		<item>
		<title>JavaScript Function for international Zip Code Validation</title>
		<link>https://jharaphula.com/zip-code-validation-javascript-function/</link>
					<comments>https://jharaphula.com/zip-code-validation-javascript-function/#respond</comments>
		
		<dc:creator><![CDATA[Biswabhusan Panda]]></dc:creator>
		<pubDate>Sun, 15 May 2016 15:21:39 +0000</pubDate>
				<category><![CDATA[JS Functions & Examples]]></category>
		<category><![CDATA[App Developer for your Business]]></category>
		<category><![CDATA[JavaScript Function]]></category>
		<category><![CDATA[Validation Examples]]></category>
		<category><![CDATA[Zip Code Validation]]></category>
		<guid isPermaLink="false">http://box.jharaphula.com/?p=1579</guid>

					<description><![CDATA[<img width="300" height="186" src="https://jharaphula.com/wp-content/uploads/2016/05/usa-zipcode-300x186.png" class="webfeedsFeaturedVisual wp-post-image" alt="JavaScript Function for international Zip Code Validation" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/usa-zipcode-300x186.png 300w, https://jharaphula.com/wp-content/uploads/2016/05/usa-zipcode.png 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>During we write an address you must notice Pin code is there. According to postal Pin code make easy to reach the address. Are you...</p>
<p>The post <a href="https://jharaphula.com/zip-code-validation-javascript-function/">JavaScript Function for international Zip Code Validation</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></description>
										<content:encoded><![CDATA[<img width="300" height="186" src="https://jharaphula.com/wp-content/uploads/2016/05/usa-zipcode-300x186.png" class="webfeedsFeaturedVisual wp-post-image" alt="JavaScript Function for international Zip Code Validation" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/usa-zipcode-300x186.png 300w, https://jharaphula.com/wp-content/uploads/2016/05/usa-zipcode.png 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>During we write an address you must notice Pin code is there. According to postal Pin code make easy to reach the address. Are you in your Contact us page? Looking something like which can validate a pin code entered by the user. In the below <a href="https://jharaphula.com/php-string-functions-with-example/" rel="noopener noreferrer" target="_blank">function</a> I had implemented Zip code validation using JavaScript. You can implement the same logic in any language.</p>
<p>The Control here I used to take input from user is txt_zip. In-case you copy the below code. Update this with your Control Name. The logic I implemented here is so Simple. Using indexOf I am checking all the characters in txt_zip value.</p>
<h3>Zip Code Validation Function</h3>
<pre class="brush: jscript; title: ; notranslate">function zipcode_org(source,arguments)
{
var ValidChars = &quot;0123456789&quot;;
var Char;
var sText=document.getElementById(&quot;txt_zip&quot;).value;
for (i = 0; i &lt; sText.length; i++)
{
Char = sText.charAt(i);
if (ValidChars.indexOf(Char) == -1)
{
arguments.IsValid = false;
return;
}
}
return;
}</pre>
<p>The post <a href="https://jharaphula.com/zip-code-validation-javascript-function/">JavaScript Function for international Zip Code Validation</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://jharaphula.com/zip-code-validation-javascript-function/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			<media:content url="https://jharaphula.com/wp-content/uploads/2016/05/usa-zipcode.png" medium="image" />
	</item>
		<item>
		<title>Cross Browser Compatible JavaScript Bookmark Function</title>
		<link>https://jharaphula.com/cross-browser-javascript-bookmark-function/</link>
					<comments>https://jharaphula.com/cross-browser-javascript-bookmark-function/#respond</comments>
		
		<dc:creator><![CDATA[Biswabhusan Panda]]></dc:creator>
		<pubDate>Sun, 15 May 2016 15:19:45 +0000</pubDate>
				<category><![CDATA[JS Functions & Examples]]></category>
		<category><![CDATA[Cache for Offline Storage]]></category>
		<category><![CDATA[Cross Browser]]></category>
		<category><![CDATA[JavaScript Bookmark Function]]></category>
		<category><![CDATA[JavaScript Function]]></category>
		<category><![CDATA[Using HTML5 Application Cache]]></category>
		<guid isPermaLink="false">http://box.jharaphula.com/?p=1577</guid>

					<description><![CDATA[<img width="300" height="184" src="https://jharaphula.com/wp-content/uploads/2016/05/top-browsers-300x184.png" class="webfeedsFeaturedVisual wp-post-image" alt="Cross Browser Compatiable JavaScript Bookmark Function" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/top-browsers-300x184.png 300w, https://jharaphula.com/wp-content/uploads/2016/05/top-browsers.png 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>During a visitor visit a web page, if he/she like the page he/she do bookmarking for future reference. In such case as a programmer you...</p>
<p>The post <a href="https://jharaphula.com/cross-browser-javascript-bookmark-function/">Cross Browser Compatible JavaScript Bookmark Function</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></description>
										<content:encoded><![CDATA[<img width="300" height="184" src="https://jharaphula.com/wp-content/uploads/2016/05/top-browsers-300x184.png" class="webfeedsFeaturedVisual wp-post-image" alt="Cross Browser Compatiable JavaScript Bookmark Function" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/top-browsers-300x184.png 300w, https://jharaphula.com/wp-content/uploads/2016/05/top-browsers.png 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>During a visitor visit a web page, if he/she like the page he/she do bookmarking for future reference. In such case as a programmer you require a bookmarking script to implement in your app. Look at the below demo app, here I implemented a JavaScript bookmark function. This function is cross browser compatible. By simply copy paste the below code you can easily add bookmarking functionality to your HTML page.</p>
<p>The logic I implemented here is very simple. By using <a href="https://jharaphula.com/learn-javascript-programming-beginners/" target="_blank" rel="noopener noreferrer">JavaScript</a> indexOf() method I am checking which kind of browser client is using. Depending upon the browser I am displaying a message about the shortcut key to bookmark in that browser.</p>
<h3>JavaScript Bookmark Function</h3>
<pre class="brush: jscript; title: ; notranslate">function bookmarkPage(url, title) {
if (!url) { url = window.location }
if (!title) { title = document.title }
var browser = navigator.userAgent.toLowerCase();
if (window.sidebar) { // for Mozilla, Firefox &amp; Netscape
window.sidebar.addPanel(title, url, &quot;&quot;);
} else if (window.external) { // IE or chrome
if (browser.indexOf('chrome') == -1) { // ie
window.external.AddFavorite(url, title);
} else { // for Google Chrome
alert('Please Press CTRL+D (or Command+D for macs) to bookmark this page');
}
}
else if (window.opera &amp;&amp; window.print) { // Opera - automatically adds to sidebar if rel=sidebar in the tag
return true;
}
else if (browser.indexOf('konqueror') != -1) { // for Konqueror
alert('Please press CTRL+B to bookmark this page.');
}
else if (browser.indexOf('webkit') != -1) { // for Safari
alert('Please press CTRL+B (or Command+D for macs) to bookmark this page.');
} else {
alert('Your browser cannot add bookmarks using this link. Please add this link manually.')
}
}</pre>
<p>The post <a href="https://jharaphula.com/cross-browser-javascript-bookmark-function/">Cross Browser Compatible JavaScript Bookmark Function</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://jharaphula.com/cross-browser-javascript-bookmark-function/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			<media:content url="https://jharaphula.com/wp-content/uploads/2016/05/top-browsers.png" medium="image" />
	</item>
		<item>
		<title>JavaScript Date Functions to Add, Subtract &#038; Compare in Days</title>
		<link>https://jharaphula.com/javascript-date-functions/</link>
					<comments>https://jharaphula.com/javascript-date-functions/#comments</comments>
		
		<dc:creator><![CDATA[Nibedita Panda]]></dc:creator>
		<pubDate>Sun, 15 May 2016 15:11:23 +0000</pubDate>
				<category><![CDATA[JS Functions & Examples]]></category>
		<category><![CDATA[Compare in Days]]></category>
		<category><![CDATA[Date Functions to Add]]></category>
		<category><![CDATA[JavaScript Date Functions]]></category>
		<category><![CDATA[JavaScript Function]]></category>
		<category><![CDATA[JavaScript Programming]]></category>
		<guid isPermaLink="false">http://box.jharaphula.com/?p=1575</guid>

					<description><![CDATA[<img width="300" height="195" src="https://jharaphula.com/wp-content/uploads/2016/05/date-in-calendar-300x195.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="JavaScript Date Functions to Add, Subtract &amp; Compare in Days" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/date-in-calendar-300x195.jpg 300w, https://jharaphula.com/wp-content/uploads/2016/05/date-in-calendar-294x190.jpg 294w, https://jharaphula.com/wp-content/uploads/2016/05/date-in-calendar-106x70.jpg 106w, https://jharaphula.com/wp-content/uploads/2016/05/date-in-calendar.jpg 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>JavaScript is one of the most popular Client Scripting language. To make your journey easier in this session we are sharing some functions related to...</p>
<p>The post <a href="https://jharaphula.com/javascript-date-functions/">JavaScript Date Functions to Add, Subtract &#038; Compare in Days</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></description>
										<content:encoded><![CDATA[<img width="300" height="195" src="https://jharaphula.com/wp-content/uploads/2016/05/date-in-calendar-300x195.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="JavaScript Date Functions to Add, Subtract &amp; Compare in Days" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/date-in-calendar-300x195.jpg 300w, https://jharaphula.com/wp-content/uploads/2016/05/date-in-calendar-294x190.jpg 294w, https://jharaphula.com/wp-content/uploads/2016/05/date-in-calendar-106x70.jpg 106w, https://jharaphula.com/wp-content/uploads/2016/05/date-in-calendar.jpg 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>JavaScript is one of the most popular Client Scripting language. To make your journey easier in this session we are sharing some functions related to JavaScript Date Functions. Whether you want to add days or subtract days from a specific date or difference between two dates these functions are very useful.</p>
<p>Here I have 5 functions getDateInMilliseconds, getDifferenceInDays, addDays, subtractDays &amp; compareDate. getDateInMilliseconds function returns date in milliseconds &amp; this function is used in addDays &amp; subtractDays functions. getDifferenceInDays function accepts 2 parameters as date 1 &amp; date 2. It returns the difference in days. addDays &amp; subtractDays <a href="https://jharaphula.com/php-string-functions-with-example/" rel="noopener noreferrer" target="_blank">functions</a> accepts 2 parameters each date &amp; days. The last function compareDate returns true if date 2 is after date 1 else returns false.</p>
<h3>Function to get Date In Milliseconds</h3>
<pre class="brush: jscript; title: ; notranslate">/* Returns Date object expressed as number of milliseconds since January 1, 1970.  This is the internal date format used by JavaScript. */
function getDateInMilliseconds(d) {

var str = new String(d);
var length = str.length;

var month = 0;
var day = 0;
var year = 0;
var dateObj;
var ms = 0;

if (length == 8) {

month = str.substr(0,1);
day = str.substr(2,1);
year = str.substr(4,4);
}

else if (length == 9) {

var regExp = new RegExp(&quot;\\d{2}/\\d{1}/\\d{4}&quot;);
var expResult = regExp.test(str);
if (expResult) {

month = str.substr(0,2);
day = str.substr(3,1);
year = str.substr(5,4);
} else {

month = str.substr(0,1);
day = str.substr(2,2);
year = str.substr(5,4);
}
}

else if (length == 10) {

month = str.substr(0,2);
day = str.substr(3,2);
year = str.substr(6,4);
}

dateObj = new Date(year, (month - 1), day);
ms = dateObj.getTime();
return ms;
}</pre>
<h3>Function to get date difference in Days</h3>
<pre class="brush: jscript; title: ; notranslate">/* Returns the number of days between the two Date arguments.  Assumes the first argument, d1, is the earlier date. */
function getDifferenceInDays(d1,d2) {

var d1ms = getDateInMilliseconds(d1);
var d2ms = getDateInMilliseconds(d2);
var days = (d1ms - d2ms) / (DAY_IN_MILLISECONDS);

return days;
}</pre>
<h3>JavaScript Date Function to add Days</h3>
<pre class="brush: jscript; title: ; notranslate">/* Returns a Date string equivalent to the first parameter (date) plus the number of days specified by the second parameter. */
function addDays(date,days) {

var dateInMs = getDateInMilliseconds(date);
var daysInMs = days * DAY_IN_MILLISECONDS;

var newDateInMs = dateInMs + daysInMs;
var newDate = new Date();
newDate.setTime(newDateInMs);

var year = new String(newDate.getYear());
if (year.length == 2) {
year = &quot;19&quot; + yearStr;
}

var dateString = (newDate.getMonth() + 1) + &quot;/&quot; + newDate.getDate() + &quot;/&quot; + year;
return dateString;
}</pre>
<h3>Function to Subtract Days</h3>
<pre class="brush: jscript; title: ; notranslate">function subtractDays(date,days) {

var dateInMs = getDateInMilliseconds(date);
var daysInMs = days * DAY_IN_MILLISECONDS;

var newDateInMs = dateInMs - daysInMs;
var newDate = new Date();
newDate.setTime(newDateInMs);

var year = new String(newDate.getYear());

if (year.length == 2) {
year = &quot;19&quot; + year;
}
// Assemble Date as a string resembling mm/dd/yyyy format
var dateString = (newDate.getMonth() + 1) + &quot;/&quot; + newDate.getDate() + &quot;/&quot; + year;

return dateString;
}</pre>
<h3>JavaScript Date Function to Compare Dates</h3>
<pre class="brush: jscript; title: ; notranslate">/* Returns true if first date parameter, d1, is earlier than second date parameter, d2.  Otherwise, returns false. */
function compareDate(d1,d2) {

date1 = new Date(d1.value);
date2 = new Date(d2.value);

if (date1 &gt; date2)
{
return false;
}
return true;
}</pre>
<p>The post <a href="https://jharaphula.com/javascript-date-functions/">JavaScript Date Functions to Add, Subtract &#038; Compare in Days</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://jharaphula.com/javascript-date-functions/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			<media:content url="https://jharaphula.com/wp-content/uploads/2016/05/date-in-calendar.jpg" medium="image" />
	</item>
		<item>
		<title>JavaScript Format Currency isCurrency Validator Function</title>
		<link>https://jharaphula.com/javascript-format-currency-validator/</link>
					<comments>https://jharaphula.com/javascript-format-currency-validator/#respond</comments>
		
		<dc:creator><![CDATA[Nibedita Panda]]></dc:creator>
		<pubDate>Sun, 15 May 2016 15:09:45 +0000</pubDate>
				<category><![CDATA[JS Functions & Examples]]></category>
		<category><![CDATA[isCurrency Validator Function]]></category>
		<category><![CDATA[JavaScript Developers]]></category>
		<category><![CDATA[JavaScript Format Currency]]></category>
		<category><![CDATA[List for Currency]]></category>
		<guid isPermaLink="false">http://box.jharaphula.com/?p=1573</guid>

					<description><![CDATA[<img width="300" height="188" src="https://jharaphula.com/wp-content/uploads/2016/05/global-currencies-300x188.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="JavaScript Format Currency isCurrency Validator Function" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/global-currencies-300x188.jpg 300w, https://jharaphula.com/wp-content/uploads/2016/05/global-currencies.jpg 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>This function generally we required while integrating payment system to the website. There are various currencies are available. The below isCurrency function accepts one argument...</p>
<p>The post <a href="https://jharaphula.com/javascript-format-currency-validator/">JavaScript Format Currency isCurrency Validator Function</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></description>
										<content:encoded><![CDATA[<img width="300" height="188" src="https://jharaphula.com/wp-content/uploads/2016/05/global-currencies-300x188.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="JavaScript Format Currency isCurrency Validator Function" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/global-currencies-300x188.jpg 300w, https://jharaphula.com/wp-content/uploads/2016/05/global-currencies.jpg 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>This function generally we required while integrating payment system to the website. There are various currencies are available. The below isCurrency function accepts one argument as string. If the string is in form of Currency it returns true or else the <a href="https://jharaphula.com/php-string-functions-with-example/" rel="noopener noreferrer" target="_blank">function</a> returns false.</p>
<h3>JavaScript Format Currency</h3>
<pre class="brush: jscript; title: ; notranslate">function isCurrency(arg) {

// instantiate argument as a String (for String operations)
var str = new String(arg);

// control-related
var i;
var ch;
var len = str.length;
var offset = 0;
var position = 0;

// counters
var decimals = 0;
var commas = 0;
var dollarsigns = 0;

if (str.length &gt;= 1) {
// Increment counts for commas, decimals, and dollar signs
for (i = 0; i &lt; len; i++) {
ch = str.charAt(i);
if (!isNaN(ch)) {
continue;
} else if (ch == &quot;.&quot;) {
decimals++;
continue;
} else if (ch == &quot;,&quot;) {
commas++;
return false;
} else if (ch == &quot;$&quot;) {
dollarsigns++;
return false;
} else {
return false;
}
}
// If more than 1 dollar sign, invalid
if (dollarsigns &gt; 1) {
return false;
} else if (dollarsigns == 1) {
if (!(str.charAt(0) == &quot;$&quot;)) {
return false;
}
}
// If more than 1 decimal, invalid
if (decimals &gt; 1) {
return false;
// If exactly 1 decimal and in correct position, valid; otherwise, invalid
} else if (decimals == 1) {
ch = str.charAt(len - 3);
if (!(ch == &quot;.&quot;)) {
return false;
}
}

if (commas &gt;= 1) {

if (str.charAt(0) == &quot;,&quot;) {
return false;
}
if (decimals == 1) {
if ((str.charAt(len - 1) == &quot;,&quot;) || (str.charAt(len - 2) == &quot;,&quot;)) {
return false;
}
offset = 3;
}
for (i = ((len - offset) - 1); i &gt;= 0; i--) {
ch = str.charAt(i);

if (position != 3) {
if (ch == &quot;,&quot;) {
return false;
}
position++;
} else {
if (!(ch == &quot;,&quot;)) {
return false;
}
position = 0;
}
}
}
}
// Optimistically assume program flow gets this far . . . !
return true;
}</pre>
<p>The post <a href="https://jharaphula.com/javascript-format-currency-validator/">JavaScript Format Currency isCurrency Validator Function</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://jharaphula.com/javascript-format-currency-validator/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			<media:content url="https://jharaphula.com/wp-content/uploads/2016/05/global-currencies.jpg" medium="image" />
	</item>
		<item>
		<title>JavaScript function to Convert date difference in Milliseconds</title>
		<link>https://jharaphula.com/convert-date-difference-milliseconds/</link>
					<comments>https://jharaphula.com/convert-date-difference-milliseconds/#respond</comments>
		
		<dc:creator><![CDATA[Nibedita Panda]]></dc:creator>
		<pubDate>Sun, 15 May 2016 15:07:16 +0000</pubDate>
				<category><![CDATA[JS Functions & Examples]]></category>
		<category><![CDATA[Client-side Programming Language]]></category>
		<category><![CDATA[Date difference in Milliseconds]]></category>
		<category><![CDATA[JavaScript Function]]></category>
		<category><![CDATA[JavaScript helps]]></category>
		<guid isPermaLink="false">http://box.jharaphula.com/?p=1571</guid>

					<description><![CDATA[<img width="300" height="200" src="https://jharaphula.com/wp-content/uploads/2016/05/time-function-300x200.jpeg" class="webfeedsFeaturedVisual wp-post-image" alt="JavaScript function to Convert date difference in Milliseconds" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/time-function-300x200.jpeg 300w, https://jharaphula.com/wp-content/uploads/2016/05/time-function-182x120.jpeg 182w, https://jharaphula.com/wp-content/uploads/2016/05/time-function-106x70.jpeg 106w, https://jharaphula.com/wp-content/uploads/2016/05/time-function.jpeg 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>JavaScript is one of the most popular Client-side programming language. It is designed for creating network-centric applications. The concept behind Client side script is to...</p>
<p>The post <a href="https://jharaphula.com/convert-date-difference-milliseconds/">JavaScript function to Convert date difference in Milliseconds</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></description>
										<content:encoded><![CDATA[<img width="300" height="200" src="https://jharaphula.com/wp-content/uploads/2016/05/time-function-300x200.jpeg" class="webfeedsFeaturedVisual wp-post-image" alt="JavaScript function to Convert date difference in Milliseconds" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/time-function-300x200.jpeg 300w, https://jharaphula.com/wp-content/uploads/2016/05/time-function-182x120.jpeg 182w, https://jharaphula.com/wp-content/uploads/2016/05/time-function-106x70.jpeg 106w, https://jharaphula.com/wp-content/uploads/2016/05/time-function.jpeg 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>JavaScript is one of the most popular Client-side programming language. It is designed for creating network-centric applications. The concept behind Client side script is to reduce load from the Server. Many Operations is more healthy to operate in Client side. This activity helps to improve performance &#038; speed.</p>
<p>Are you looking for a <a href="https://jharaphula.com/category/programming-solutions/javascript-code-examples/" target="_blank" rel="noopener noreferrer">JavaScript</a> function using which you can Convert date difference in Milliseconds. In the below Function I am passing the date upto which you want to calculate the difference in milliseconds. Here date difference I am calculating from January 1, 1970.</p>
<h3>Convert date difference in Milliseconds</h3>
<pre class="brush: jscript; title: ; notranslate">function getDateInMilliseconds(d) {
var str = new String(d);
var length = str.length;
var month = 0;
var day = 0;
var year = 0;
var dateObj;
var ms = 0;

if (length == 8) {
month = str.substr(0,1);
day = str.substr(2,1);
year = str.substr(4,4);
}
else if (length == 9) {
var regExp = new RegExp(&quot;\\d{2}/\\d{1}/\\d{4}&quot;);
var expResult = regExp.test(str);
if (expResult) {
month = str.substr(0,2);
day = str.substr(3,1);
year = str.substr(5,4);
} else {
month = str.substr(0,1);
day = str.substr(2,2);
year = str.substr(5,4);
}
}
else if (length == 10) {
month = str.substr(0,2);
day = str.substr(3,2);
year = str.substr(6,4);
}

dateObj = new Date(year, (month - 1), day);
ms = dateObj.getTime();
return ms;
}</pre>
<p>The post <a href="https://jharaphula.com/convert-date-difference-milliseconds/">JavaScript function to Convert date difference in Milliseconds</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://jharaphula.com/convert-date-difference-milliseconds/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			<media:content url="https://jharaphula.com/wp-content/uploads/2016/05/time-function.jpeg" medium="image" />
	</item>
		<item>
		<title>JavaScript isDate function to Validate Date formats</title>
		<link>https://jharaphula.com/javascript-isdate-function-validate-date/</link>
					<comments>https://jharaphula.com/javascript-isdate-function-validate-date/#respond</comments>
		
		<dc:creator><![CDATA[Nibedita Panda]]></dc:creator>
		<pubDate>Sun, 15 May 2016 15:06:10 +0000</pubDate>
				<category><![CDATA[JS Functions & Examples]]></category>
		<category><![CDATA[Function in JQuery]]></category>
		<category><![CDATA[isDate Function]]></category>
		<category><![CDATA[JavaScript Function]]></category>
		<category><![CDATA[Validate Date formats]]></category>
		<guid isPermaLink="false">http://box.jharaphula.com/?p=1569</guid>

					<description><![CDATA[<img width="300" height="182" src="https://jharaphula.com/wp-content/uploads/2016/05/date-formats-300x182.png" class="webfeedsFeaturedVisual wp-post-image" alt="JavaScript isDate function to Validate Date formats" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/date-formats-300x182.png 300w, https://jharaphula.com/wp-content/uploads/2016/05/date-formats.png 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>In an Employee Management System dashboard let&#8217;s assume we are fetching Employee Date of Joining from Database. While displaying this date in top left corner...</p>
<p>The post <a href="https://jharaphula.com/javascript-isdate-function-validate-date/">JavaScript isDate function to Validate Date formats</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></description>
										<content:encoded><![CDATA[<img width="300" height="182" src="https://jharaphula.com/wp-content/uploads/2016/05/date-formats-300x182.png" class="webfeedsFeaturedVisual wp-post-image" alt="JavaScript isDate function to Validate Date formats" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/date-formats-300x182.png 300w, https://jharaphula.com/wp-content/uploads/2016/05/date-formats.png 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>In an Employee Management System dashboard let&#8217;s assume we are fetching Employee Date of Joining from <a href="https://jharaphula.com/database-basics-terminologies-definition/" rel="noopener noreferrer" target="_blank">Database</a>. While displaying this date in top left corner what I want is we required to validate the date for a specific format. In the below function I am checking 4 date formats. These are M/D/YYYY, MM/D/YYYY, M/DD/YYYY &amp; MM/DD/YYYY.</p>
<h3>JavaScript isDate function to Validate Date</h3>
<pre class="brush: jscript; title: ; notranslate">/* 24 hrs * 60 mins * 60 seconds * 1000 ms */
var DAY_IN_MILLISECONDS = 86400000;

function isDate(d) {
var val = new String(d.value);
var char, len, i, sub, result, remainder;
var flag = 0;

if ((val.length &gt;= 8) &amp;&amp; (val.length &lt;= 10)) {
len = val.length;

sub = new String(val.substr((len - 4), 4));

if (!(isNumeric(sub))) return false;

char = val.charAt(len - 5);
if (char != '/') return false;

char = val.charAt(len - 6);
if (!(isNumeric(char))) return false;

char = val.charAt(len - 7);
if (!(isNumeric(char))) {
if (char == '/') {
flag = 1;
} else return false;
}

char = val.charAt(len - 8);
if (!(isNumeric(char))) {
if (char != '/') return false;
if ((char == '/') &amp; (flag == 1)) return false;
}

if (len &gt; 8) {
remainder = len - 8;
sub = val.substr(0, remainder);
if (!(isNumeric(sub))) return false;
}
} else {
return false;
}
return true;
}</pre>
<p>The post <a href="https://jharaphula.com/javascript-isdate-function-validate-date/">JavaScript isDate function to Validate Date formats</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://jharaphula.com/javascript-isdate-function-validate-date/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			<media:content url="https://jharaphula.com/wp-content/uploads/2016/05/date-formats.png" medium="image" />
	</item>
		<item>
		<title>How to display various Files icon images in Datagrid rows?</title>
		<link>https://jharaphula.com/icon-images-in-gridview-gatagrid-rows/</link>
					<comments>https://jharaphula.com/icon-images-in-gridview-gatagrid-rows/#respond</comments>
		
		<dc:creator><![CDATA[Nibedita Panda]]></dc:creator>
		<pubDate>Sun, 15 May 2016 15:02:32 +0000</pubDate>
				<category><![CDATA[Microsoft Technologies]]></category>
		<category><![CDATA[Datagrid rows]]></category>
		<category><![CDATA[Fun in Programming]]></category>
		<category><![CDATA[icon images]]></category>
		<category><![CDATA[Icon images in Gridview]]></category>
		<category><![CDATA[Images in Gridview or Datagrid rows]]></category>
		<guid isPermaLink="false">http://box.jharaphula.com/?p=1565</guid>

					<description><![CDATA[<img width="300" height="151" src="https://jharaphula.com/wp-content/uploads/2016/05/gridview-demo-data-binding-300x151.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="How to display icon images in Gridview or Datagrid rows?" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/gridview-demo-data-binding-300x151.jpg 300w, https://jharaphula.com/wp-content/uploads/2016/05/gridview-demo-data-binding.jpg 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>Do you ever worked for any file management system? Where you have word files, excel file or it can be an image file like jpeg...</p>
<p>The post <a href="https://jharaphula.com/icon-images-in-gridview-gatagrid-rows/">How to display various Files icon images in Datagrid rows?</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></description>
										<content:encoded><![CDATA[<img width="300" height="151" src="https://jharaphula.com/wp-content/uploads/2016/05/gridview-demo-data-binding-300x151.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="How to display icon images in Gridview or Datagrid rows?" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/gridview-demo-data-binding-300x151.jpg 300w, https://jharaphula.com/wp-content/uploads/2016/05/gridview-demo-data-binding.jpg 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>Do you ever worked for any file management system? Where you have word files, excel file or it can be an image file like jpeg or png? In .NET Gridview is a popular Control to present tabular data. In this demo app I implemented various icons in each row of the Gridview dynamically by checking the file type.</p>
<p>Logic is so simple, Using FindControl in side the Gridview RowDataBound event I am locating the imgPreview tag from aspx. Then storing its value to a variable. I have icon images are in IMAGES/type_icons folder. By checking file extension I updating the image URL.</p>
<h2>Display icon images in Datagrid</h2>
<pre class="brush: xml; title: ; notranslate">&lt;asp:GridView AllowSorting=&quot;true&quot; DataKeyNames=&quot;CodeID&quot; ID=&quot;grdFileList&quot; runat=&quot;server&quot; AutoGenerateColumns=&quot;False&quot; CellPadding=&quot;0&quot; CellSpacing=&quot;0&quot; ForeColor=&quot;#333333&quot; GridLines=&quot;None&quot; Width=&quot;100%&quot; AllowPaging=&quot;true&quot; PageSize=&quot;20&quot;&gt;

&lt;FooterStyle BackColor=&quot;#1C5E55&quot; Font-Bold=&quot;True&quot; ForeColor=&quot;White&quot; /&gt;

&lt;Columns&gt;

&lt;asp:TemplateField&gt;

&lt;HeaderTemplate&gt;
&lt;input type=&quot;checkbox&quot; onmouseover=if(t1)t1.Show(event,l1) onmouseout=if(t1)t1.Hide(event) style=&quot;width:20px;&quot; name=&quot;chkAll&quot; id=&quot;chkAll&quot; onclick=&quot;javascript:checkAll(this);&quot; /&gt;
&lt;/HeaderTemplate&gt;
&lt;ItemTemplate&gt;
&lt;input type=&quot;checkbox&quot; style=&quot;width:20px;&quot; value='&lt;%# Container.DataItem(&quot;CodeID&quot;) %&gt;' id=&quot;chkSelect&quot; name=&quot;chkSelect&quot; /&gt;
&lt;/ItemTemplate&gt;
&lt;HeaderStyle Width=&quot;35px&quot; /&gt;
&lt;/asp:TemplateField&gt;

&lt;asp:TemplateField HeaderText=&quot;File Name&quot; SortExpression=&quot;CodeFileName&quot;&gt;
&lt;ItemTemplate&gt;
&lt;a style=&quot;cursor:hand;&quot; href='AddCode.aspx?SourceCode=1&amp;CodeID=&lt;%#Container.DataItem(&quot;CodeID&quot;)%&gt;&amp;AttachFile=1' class=&quot;GridLink&quot;&gt;&lt;%# Container.DataItem(&quot;CodeFileName&quot;) %&gt;&lt;/a&gt;&amp;nbsp;&amp;nbsp;
&lt;/ItemTemplate&gt;
&lt;/asp:TemplateField&gt;

&lt;asp:TemplateField HeaderText=&quot;Description&quot; SortExpression=&quot;CodeDescription&quot;&gt;
&lt;ItemTemplate&gt;
&lt;a style=&quot;cursor:default;&quot;&gt;&lt;%# Container.DataItem(&quot;CodeDescription&quot;) %&gt;&lt;/a&gt;&amp;nbsp;&amp;nbsp;
&lt;/ItemTemplate&gt;
&lt;ItemStyle HorizontalAlign=&quot;Left&quot; /&gt;
&lt;/asp:TemplateField&gt;

&lt;asp:TemplateField HeaderText=&quot;SearchKey&quot; SortExpression=&quot;SearchKey&quot;&gt;
&lt;ItemTemplate&gt;
&lt;a style=&quot;cursor:hand;&quot;&gt;&lt;%#Container.DataItem(&quot;SearchKey&quot;)%&gt;&amp;nbsp;&amp;nbsp;
&lt;/ItemTemplate&gt;
&lt;ItemStyle HorizontalAlign=&quot;Left&quot; /&gt;
&lt;/asp:TemplateField&gt;

&lt;asp:TemplateField HeaderText=&quot;File Name&quot; SortExpression=&quot;AttachFileName&quot;&gt;
&lt;ItemTemplate&gt;
&lt;a style=&quot;cursor:hand;&quot;&gt;&lt;%#Container.DataItem(&quot;AttachFileName&quot;)%&gt;&amp;nbsp;&amp;nbsp;
&lt;/ItemTemplate&gt;
&lt;ItemStyle HorizontalAlign=&quot;Left&quot; /&gt;
&lt;/asp:TemplateField&gt;

&lt;asp:TemplateField HeaderText=&quot;File Size&quot; SortExpression=&quot;AttachFileSize&quot;&gt;
&lt;ItemTemplate&gt;
&lt;a style=&quot;cursor:hand;&quot;&gt;&lt;%#Container.DataItem(&quot;AttachFileSize&quot;)%&gt;&amp;nbsp;&amp;nbsp;
&lt;/ItemTemplate&gt;
&lt;ItemStyle HorizontalAlign=&quot;Left&quot; /&gt;
&lt;/asp:TemplateField&gt;

&lt;asp:TemplateField HeaderText=&quot;File Type&quot; SortExpression=&quot;AttachFileType&quot; Visible=&quot;False&quot;&gt;
&lt;ItemTemplate&gt;
&lt;asp:Label ID=&quot;lblAttachmentType&quot; Text='&lt;%#Container.DataItem(&quot;AttachFileName&quot;)%&gt;' runat=&quot;server&quot;&gt;&lt;/asp:Label&gt;
&lt;/ItemTemplate&gt;
&lt;ItemStyle HorizontalAlign=&quot;Left&quot; /&gt;
&lt;/asp:TemplateField&gt;

&lt;asp:TemplateField HeaderText=&quot;File Type&quot; SortExpression=&quot;AttachFileType&quot;&gt;
&lt;ItemTemplate&gt;
&lt;asp:Image ID=&quot;imgPreview&quot; runat=&quot;server&quot; /&gt;
&lt;/ItemTemplate&gt;
&lt;ItemStyle HorizontalAlign=&quot;Left&quot; /&gt;
&lt;/asp:TemplateField&gt;

&lt;asp:TemplateField HeaderText=&quot;Is Shared&quot; SortExpression=&quot;IsShareable&quot;&gt;
&lt;ItemTemplate&gt;
&lt;a style=&quot;cursor:hand;&quot;&gt;&lt;%#Container.DataItem(&quot;IsShareable&quot;)%&gt;&lt;/a&gt;&amp;nbsp;&amp;nbsp;
&lt;/ItemTemplate&gt;
&lt;ItemStyle HorizontalAlign=&quot;Left&quot; /&gt;
&lt;/asp:TemplateField&gt;

&lt;asp:TemplateField HeaderText=&quot;Status&quot; SortExpression=&quot;IsShareable&quot;&gt;
&lt;ItemTemplate&gt;
&lt;a style=&quot;cursor:hand;&quot;&gt;&lt;%# Container.DataItem(&quot;Status&quot;) %&gt;&lt;/a&gt;&amp;nbsp;&amp;nbsp;
&lt;/ItemTemplate&gt;
&lt;ItemStyle HorizontalAlign=&quot;Left&quot; /&gt;
&lt;/asp:TemplateField&gt;
&lt;/Columns&gt;
&lt;RowStyle BackColor=&quot;#E3EAEB&quot; /&gt;
&lt;EditRowStyle BackColor=&quot;#7C6F57&quot; /&gt;
&lt;SelectedRowStyle BackColor=&quot;#C5BBAF&quot; Font-Bold=&quot;True&quot; ForeColor=&quot;#333333&quot; /&gt;
&lt;PagerStyle BackColor=&quot;#D7F6FA&quot; ForeColor=&quot;Black&quot; HorizontalAlign=&quot;Center&quot; /&gt;
&lt;HeaderStyle Height=&quot;22px&quot; BackColor=&quot;#005B90&quot; Font-Bold=&quot;True&quot; ForeColor=&quot;White&quot; HorizontalAlign=&quot;Left&quot; /&gt;
&lt;AlternatingRowStyle BackColor=&quot;White&quot; /&gt;
&lt;/asp:GridView&gt;

&lt;asp:SqlDataSource ID=&quot;SqlDataSource1&quot; runat=&quot;server&quot; ConnectionString=&quot;&lt;%$ ConnectionStrings:connectionString %&gt;&quot;&gt;
&lt;/asp:SqlDataSource&gt;</pre>
<h2>Datagrid rows with various icon images using Code-behind</h2>
<pre class="brush: vb; title: ; notranslate">Protected Sub grdFileList_RowDataBound(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewRowEventArgs) Handles grdFileList.RowDataBound
If e.Row.RowType = DataControlRowType.DataRow Then
Dim lblAttachmentTypeID As Label = CType(e.Row.FindControl(&quot;lblAttachmentType&quot;), Label)

Dim objImg As Image = CType(e.Row.FindControl(&quot;imgPreview&quot;), Image)

Dim AT As String = lblAttachmentTypeID.Text

Dim splitDot As Array = AT.Split(&quot;.&quot;)

Dim Ext As String = splitDot(1)
Ext = Trim(Ext)

'Response.Write(ds.Tables(0).Rows(0).Item(20))

If (Ext = &quot;doc&quot;) Then
objImg.ImageUrl = &quot;../IMAGES/type_icons/doc.gif&quot;
ElseIf (Ext = &quot;docx&quot;) Then
objImg.ImageUrl = &quot;../IMAGES/type_icons/doc.gif&quot;
ElseIf (Ext = &quot;xls&quot;) Then
objImg.ImageUrl = &quot;../IMAGES/type_icons/xls.gif&quot;
ElseIf (Ext = &quot;zip&quot;) Then 'ALLOW USER TO UPLOAD ZIP FILES
objImg.ImageUrl = &quot;../IMAGES/type_icons/zip.gif&quot;
ElseIf (Ext = &quot;sql&quot;) Then
objImg.ImageUrl = &quot;../IMAGES/type_icons/sql.gif&quot;
ElseIf (Ext = &quot;ppt&quot;) Then
objImg.ImageUrl = &quot;../IMAGES/type_icons/ppt.gif&quot;
'ElseIf (Ext = &quot;odt&quot;) Then
'objImg.ImageUrl = &quot;../IMAGES/type_icons/create.gif&quot;
ElseIf (Ext = &quot;txt&quot;) Then
objImg.ImageUrl = &quot;../IMAGES/type_icons/txt.gif&quot;
ElseIf (Ext = &quot;gif&quot;) Then
objImg.ImageUrl = &quot;../IMAGES/type_icons/gif.gif&quot;
ElseIf (Ext = &quot;bmp&quot;) Then
objImg.ImageUrl = &quot;../IMAGES/type_icons/bmp.gif&quot;
ElseIf (Ext = &quot;exe&quot;) Then
objImg.ImageUrl = &quot;../IMAGES/type_icons/exe.gif&quot;
ElseIf (Ext = &quot;dll&quot;) Then
objImg.ImageUrl = &quot;../IMAGES/type_icons/ddl.gif&quot;
ElseIf (Ext = &quot;cs&quot;) Then
objImg.ImageUrl = &quot;../IMAGES/type_icons/cs.gif&quot;
ElseIf (Ext = &quot;fla&quot;) Then
objImg.ImageUrl = &quot;../IMAGES/type_icons/fla.gif&quot;
ElseIf (Ext = &quot;htm&quot;) Then
objImg.ImageUrl = &quot;../IMAGES/type_icons/htm.gif&quot;
ElseIf (Ext = &quot;html&quot;) Then
objImg.ImageUrl = &quot;../IMAGES/type_icons/htm.gif&quot;
ElseIf (Ext = &quot;jpeg&quot;) Then
objImg.ImageUrl = &quot;../IMAGES/type_icons/jpg.gif&quot;
ElseIf (Ext = &quot;jpg&quot;) Then
objImg.ImageUrl = &quot;../IMAGES/type_icons/jpg.gif&quot;
ElseIf (Ext = &quot;image/pjpe&quot;) Then
objImg.ImageUrl = &quot;../IMAGES/type_icons/jpg.gif&quot;
ElseIf (Ext = &quot;png&quot;) Then
objImg.ImageUrl = &quot;../IMAGES/type_icons/png.gif&quot;
ElseIf (Ext = &quot;js&quot;) Then
objImg.ImageUrl = &quot;../IMAGES/type_icons/js.gif&quot;
ElseIf (Ext = &quot;pdf&quot;) Then
objImg.ImageUrl = &quot;../IMAGES/type_icons/pdf.gif&quot;
ElseIf (Ext = &quot;mdb&quot;) Then
objImg.ImageUrl = &quot;../IMAGES/type_icons/mdb.gif&quot;
ElseIf (Ext = &quot;swf&quot;) Then
objImg.ImageUrl = &quot;../IMAGES/type_icons/swf.gif&quot;
ElseIf (Ext = &quot;vsd&quot;) Then
objImg.ImageUrl = &quot;../IMAGES/type_icons/vsd.gif&quot;
ElseIf (Ext = &quot;xml&quot;) Then
objImg.ImageUrl = &quot;../IMAGES/type_icons/xml.gif&quot;
Else
'THIS IS THE GENERAL FILE ICON WHICH NEED TO SHOW ON OVER THE ICON EXTENTION NOT FOUND FROM DB
objImg.ImageUrl = &quot;../IMAGES/type_icons/txt.gif&quot;
End If
End If
'imgSrc.ImageUrl = &quot;IMAGES/AloneLogo.png&quot;
End Sub</pre>
<p>The post <a href="https://jharaphula.com/icon-images-in-gridview-gatagrid-rows/">How to display various Files icon images in Datagrid rows?</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://jharaphula.com/icon-images-in-gridview-gatagrid-rows/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			<media:content url="https://jharaphula.com/wp-content/uploads/2016/05/gridview-demo-data-binding.jpg" medium="image" />
	</item>
		<item>
		<title>Random Password Generator Function using VB.NET</title>
		<link>https://jharaphula.com/random-password-generator-function/</link>
					<comments>https://jharaphula.com/random-password-generator-function/#respond</comments>
		
		<dc:creator><![CDATA[Nibedita Panda]]></dc:creator>
		<pubDate>Sun, 15 May 2016 15:00:28 +0000</pubDate>
				<category><![CDATA[Microsoft Technologies]]></category>
		<category><![CDATA[128 Cryptography functions]]></category>
		<category><![CDATA[Network Security Features]]></category>
		<category><![CDATA[Random Password Generator]]></category>
		<category><![CDATA[VB.NET Function]]></category>
		<guid isPermaLink="false">http://box.jharaphula.com/?p=1563</guid>

					<description><![CDATA[<img width="300" height="171" src="https://jharaphula.com/wp-content/uploads/2016/05/random-string-300x171.png" class="webfeedsFeaturedVisual wp-post-image" alt="Random password generator function using VB.NET" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/random-string-300x171.png 300w, https://jharaphula.com/wp-content/uploads/2016/05/random-string.png 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>During an application development many time we required a random string. Whether it is to make the URL unique or to send a SMS for...</p>
<p>The post <a href="https://jharaphula.com/random-password-generator-function/">Random Password Generator Function using VB.NET</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></description>
										<content:encoded><![CDATA[<img width="300" height="171" src="https://jharaphula.com/wp-content/uploads/2016/05/random-string-300x171.png" class="webfeedsFeaturedVisual wp-post-image" alt="Random password generator function using VB.NET" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/random-string-300x171.png 300w, https://jharaphula.com/wp-content/uploads/2016/05/random-string.png 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>During an application development many time we required a <a href="https://jharaphula.com/javascript-function-random-string/" target="_blank" rel="noopener noreferrer">random string</a>. Whether it is to make the URL unique or to send a SMS for mobile verification or to generate dynamic Cookie random strings are very useful. In the below Random password generator function I am doing so using VB.NET String Builder methods from System.IO Namespace.</p>
<p>Logic I implemented here is so simple. Inside a for loop I am using Convert.ToChar() method against random.NextDouble() Function. Random function is taking care to generate random number. While using Convert.ToChar() I am converting the random number to String and appending that to a StringBuilder variable.</p>
<h3>VB.NET Random password generator</h3>
<pre class="brush: vb; title: ; notranslate">Private Function RandomString(ByVal size As Integer, ByVal lowerCase As Boolean) As String
Dim builder As New StringBuilder()
Dim random As New Random()
Dim ch As Char
Dim i As Integer
For i = 0 To size - 1
ch = Convert.ToChar(Convert.ToInt32((26 * random.NextDouble() + 65)))
builder.Append(ch)
Next i
If lowerCase Then
Return builder.ToString().ToLower()
End If
Return builder.ToString()
End Function</pre>
<p>The post <a href="https://jharaphula.com/random-password-generator-function/">Random Password Generator Function using VB.NET</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://jharaphula.com/random-password-generator-function/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			<media:content url="https://jharaphula.com/wp-content/uploads/2016/05/random-string.png" medium="image" />
	</item>
		<item>
		<title>How to Generate Dynamic HTML Document using VB.NET Codes?</title>
		<link>https://jharaphula.com/create-dynamic-html-document-vb-net/</link>
					<comments>https://jharaphula.com/create-dynamic-html-document-vb-net/#respond</comments>
		
		<dc:creator><![CDATA[Nibedita Panda]]></dc:creator>
		<pubDate>Sun, 15 May 2016 14:58:34 +0000</pubDate>
				<category><![CDATA[Microsoft Technologies]]></category>
		<category><![CDATA[Create Dynamic HTML]]></category>
		<category><![CDATA[Fun in Programming]]></category>
		<category><![CDATA[VB.NET]]></category>
		<category><![CDATA[VB.NET File Operations]]></category>
		<guid isPermaLink="false">http://box.jharaphula.com/?p=1561</guid>

					<description><![CDATA[<img width="300" height="182" src="https://jharaphula.com/wp-content/uploads/2016/05/html-page-300x182.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="How to Create Dynamic HTML document from VB.NET?" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/html-page-300x182.jpg 300w, https://jharaphula.com/wp-content/uploads/2016/05/html-page.jpg 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>Generally while designing a CMS we found this situation (Generate Dynamic HTML) to handle. Let us assume we have records in Database. From those records...</p>
<p>The post <a href="https://jharaphula.com/create-dynamic-html-document-vb-net/">How to Generate Dynamic HTML Document using VB.NET Codes?</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></description>
										<content:encoded><![CDATA[<img width="300" height="182" src="https://jharaphula.com/wp-content/uploads/2016/05/html-page-300x182.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="How to Create Dynamic HTML document from VB.NET?" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/html-page-300x182.jpg 300w, https://jharaphula.com/wp-content/uploads/2016/05/html-page.jpg 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>Generally while designing a CMS we found this situation (Generate Dynamic HTML) to handle. Let us assume we have records in Database. From those records we required to Create <a href="https://jharaphula.com/category/programming-solutions/html5-examples/" target="_blank" rel="noopener noreferrer">HTML</a> pages dynamically. Here I did the same using VB.NET File Operations.</p>
<p>Look at the below Codes from my Code behind file. Here I have 2 functions &amp; page load event. During page load I am calling the function CreatePage(). CreatePage function accepts 3 parameters page title, HTML text here I mean contents for HTML page &amp; The file name I want to create physically.</p>
<h2>VB.NET CreatePage function to Generate Dynamic HTML</h2>
<p>Inside CreatePage function I am concatenating a string with <a href="https://www.w3schools.com/html/html_intro.asp" target="_blank" rel="noopener noreferrer nofollow">HTML</a> format. In head tag I am adding the page title. Then entering a new-line character. Similarly did for title &amp; body content. Not doing the File Operations here. For file operation I have one more separate function SaveTextToFile(). SaveTextToFile accepts 2 parameters. First parameter is the HTML string we concatenating in CreatePage function. Second one is the file path. File path means where to Create the HTML page.</p>
<p>To Create file physically here I referred System.IO &amp; StreamWriter method. After Create Instance I am using Write method. Including this I have a boolean variable. Which helps to know whether the file created successfully or not. This variable default value is false. Just after StreamWriter Write method I am updating this variable.</p>
<h2>Generate Dynamic HTML using VB.NET Codes</h2>
<pre class="brush: vb; title: ; notranslate">Imports System.IO

Partial Class _CreateHtml
Inherits System.Web.UI.Page

Public Sub CreatePage(ByVal HTMLTitle As String, ByVal HTMLText As String, ByVal HTMLFileName As String)
Dim strFile As String
strFile = &quot;&quot;
'Constructing the String strFile
strFile = &quot;&lt;html&gt;&quot; &amp; vbNewLine
strFile = strFile &amp; &quot;&lt;head&gt;&quot; &amp; vbNewLine
strFile = strFile &amp; &quot;&lt;title&gt;&quot; &amp; HTMLTitle &amp; &quot;&lt;/title&gt;&quot; &amp; vbNewLine
strFile = strFile &amp; &quot;&lt;/head&gt;&lt;body&gt;&quot; &amp; vbNewLine
strFile = strFile &amp; HTMLText &amp; vbNewLine
strFile = strFile &amp; &quot;&lt;/body&gt;&lt;/html&gt;&quot;
'Calling SaveTextToFile function for IO Operation
SaveTextToFile(strFile, Server.MapPath(&quot;.&quot;) &amp; &quot;\HTMLFiles\&quot; &amp; HTMLFileName &amp; &quot;.html&quot;)
End Sub

Public Function SaveTextToFile(ByVal strData As String, ByVal FullPath As String, Optional ByVal ErrInfo As String = &quot;&quot;) As Boolean
Dim Contents As String
Dim Saved As Boolean = False
'Using StreamWriter to Create File
Dim objReader As IO.StreamWriter
Try
objReader = New IO.StreamWriter(FullPath)
objReader.Write(strData)
objReader.Close()
Saved = True
Catch Ex As Exception
Response.Write(Ex.Message)
End Try
Return Saved
End Function

Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
CreatePage(&quot;Title goes here&quot;, &quot;Hello world! This is a HTML file Created from Code Behind.&quot;, &quot;Sample&quot;)
End Sub
End Class</pre>
<h2>Introduction to Generate Dynamic HTML (DHTML)</h2>
<p>Unlike static HTML, which presents fixed content, DHTML allows elements on a webpage to change dynamically without requiring a full page reload. This interactivity is achieved through a combination of HTML, Cascading Style Sheets (CSS), JavaScript, and the Document Object Model (DOM).</p>
<p>For example, drop-down menus, form validations, and drag-and-drop interfaces are often powered by DHTML. The key advantage is that content modifications happen on the client side, reducing server requests and improving performance.</p>
<h2>Core Components of DHTML</h2>
<p>1. HTML (HyperText Markup Language) HTML forms the backbone of any webpage, defining the structure and content. In DHTML, HTML elements serve as the foundation upon which dynamic behaviors are applied. Elements like `</p>
<p>`, &#8220;, and forms are frequently manipulated using JavaScript and CSS to create interactive effects.</p>
<p>2. CSS (Cascading Style Sheets) CSS controls the presentation of HTML elements, including layout, colors, fonts, and animations. In DHTML, CSS is used to modify styles dynamically. For instance, JavaScript can change CSS properties to hide or show elements, adjust dimensions, or apply transitions.</p>
<p>3. JavaScript JavaScript is the scripting language that enables dynamic behavior. It interacts with the DOM to manipulate HTML and CSS in real-time. Functions like `document.getElementById()` allow developers to select and modify elements, while event listeners (e.g., `onclick`, `onmouseover`) trigger these changes based on user actions.</p>
<h2>How DHTML Works</h2>
<p>DHTML operates by combining these technologies in the following way:</p>
<p><strong>User Interaction Triggers an Event</strong> – A user action, such as clicking a button or hovering over an element, generates an event.</p>
<p><strong>JavaScript Handles the Event</strong> – An event listener in JavaScript detects the action and executes a corresponding function.</p>
<p><strong>DOM Manipulation Occurs</strong> – The function modifies the DOM, changing HTML content or adjusting CSS properties.</p>
<p><strong>Browser Renders Changes Instantly</strong> – The updated DOM is re-rendered by the browser, displaying the changes to the user.</p>
<h2>Common Applications of DHTML</h2>
<p>1. Drop-Down Menus Navigation menus that expand or collapse based on user clicks are powered by DHTML, improving site usability.</p>
<p>2. Drag-and-Drop Interfaces Web applications like Trello or file uploaders use DHTML to allow users to drag elements across the screen.</p>
<p>3. Dynamic Content Loading Single-page applications (SPAs) use DHTML to load new content without refreshing the page, providing a seamless browsing experience.</p>
<p>4. Animations and Effects Subtle animations, such as fading elements or sliding panels, enhance visual appeal and guide user attention.</p>
<h2>Best Practices for Implementing DHTML</h2>
<p><strong>Optimize Performance</strong> – Excessive DOM manipulation can slow down a webpage. Use efficient selectors and minimize reflows.</p>
<p><strong>Ensure Accessibility</strong> – DHTML elements should remain usable for screen readers and keyboard navigation.</p>
<p><strong>Graceful Degradation</strong> – Design webpages to function even if JavaScript is disabled, ensuring broader compatibility.</p>
<p><strong>Cross-Browser Testing</strong> – Verify that DHTML features work across different browsers and devices.</p>
<p><strong>Use Modern Frameworks</strong> – Libraries like jQuery, React, and Vue.js simplify DHTML implementation and improve maintainability.</p>
<h2>Future of DHTML</h2>
<p>As web technologies evolve, DHTML continues to integrate with modern frameworks and APIs. Web Components, for example, allow reusable custom elements with encapsulated functionality. Additionally, advancements in CSS (like Grid and Flexbox) and JavaScript (ES6+) enable more sophisticated dynamic behaviors.</p>
<p>The rise of progressive web apps (PWAs) and real-time web applications further emphasizes the importance of DHTML in delivering fast, interactive experiences.</p>
<h2>Conclusion</h2>
<p>Dynamic HTML remains a fundamental technology for creating engaging, interactive web applications. By leveraging HTML, CSS, JavaScript, and the DOM, developers can build responsive interfaces that enhance user experience while reducing server dependency. As web standards advance, DHTML will continue to evolve, offering even more powerful tools for modern web development.</p>
<p>The post <a href="https://jharaphula.com/create-dynamic-html-document-vb-net/">How to Generate Dynamic HTML Document using VB.NET Codes?</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://jharaphula.com/create-dynamic-html-document-vb-net/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			<media:content url="https://jharaphula.com/wp-content/uploads/2016/05/html-page.jpg" medium="image" />
	</item>
		<item>
		<title>How to export DataTable to Excel file using VB.NET?</title>
		<link>https://jharaphula.com/export-datatable-to-excel-vb/</link>
					<comments>https://jharaphula.com/export-datatable-to-excel-vb/#respond</comments>
		
		<dc:creator><![CDATA[Nibedita Panda]]></dc:creator>
		<pubDate>Sun, 15 May 2016 14:55:18 +0000</pubDate>
				<category><![CDATA[Microsoft Technologies]]></category>
		<category><![CDATA[DataTable to Excel File]]></category>
		<category><![CDATA[Display Excel File records]]></category>
		<category><![CDATA[How to export DataTable?]]></category>
		<category><![CDATA[VB.NET]]></category>
		<guid isPermaLink="false">http://box.jharaphula.com/?p=1559</guid>

					<description><![CDATA[<img width="300" height="192" src="https://jharaphula.com/wp-content/uploads/2016/05/Export-to-Excel-300x192.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="How to export DataTable to Excel file using VB.NET?" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/Export-to-Excel-300x192.jpg 300w, https://jharaphula.com/wp-content/uploads/2016/05/Export-to-Excel.jpg 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>Excel is very common practice to share data across Network. Recently one of my Customer wants to provide export an excel button in their products...</p>
<p>The post <a href="https://jharaphula.com/export-datatable-to-excel-vb/">How to export DataTable to Excel file using VB.NET?</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></description>
										<content:encoded><![CDATA[<img width="300" height="192" src="https://jharaphula.com/wp-content/uploads/2016/05/Export-to-Excel-300x192.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="How to export DataTable to Excel file using VB.NET?" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/Export-to-Excel-300x192.jpg 300w, https://jharaphula.com/wp-content/uploads/2016/05/Export-to-Excel.jpg 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>Excel is very common practice to <a href="https://jharaphula.com/types-of-network-topology-diagram/" rel="noopener noreferrer" target="_blank">share data across Network</a>. Recently one of my Customer wants to provide export an excel button in their products list page. What I did to implement Export DataTable to Excel functionality sharing the same here.</p>
<p>I added a asp.net server side button with text &#8220;Export to Excel&#8221;. Then inside this button click event I am calling a function Export2Excel. Export2Excel function accepts 2 parameters Select Query &amp; output File Name. Inside the function first I am clearing response object. Then defining Content Type &amp; File Header information. Then fetching data in SQLDataAdapter &amp; Cloning the same data to DataTable. To Create table running loop over TR. According to requirement showing the number of TD&#8217;s. Finally writing the complete string using response.write.</p>
<h3>Button Click</h3>
<pre class="brush: vb; title: ; notranslate">Protected Sub btnExportToExcel_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnExportToExcel.Click
If Request(&quot;Keyword&quot;) = 1 Then
Export2Excel(&quot;SELECT SearchString, DateOfSearch FROM SearchString WHERE FoundNotFound=1 ORDER BY DateOfSearch DESC&quot;, &quot;SearchStrings.xls&quot;)
Else
Export2Excel(&quot;SELECT SearchString, DateOfSearch FROM SearchString WHERE FoundNotFound=0 ORDER BY DateOfSearch DESC&quot;, &quot;SearchStrings.xls&quot;)
End If
End Sub</pre>
<h3>Export DataTable to Excel Function</h3>
<pre class="brush: vb; title: ; notranslate">Private Sub Export2Excel(ByVal SqlQry As String, ByVal FileName As String)
Response.ClearContent()
Response.ContentType = &quot;Application/vnd.ms-excel&quot;
Response.AddHeader(&quot;Content-Disposition&quot;, &quot;attachment; filename=&quot; &amp; FileName &amp; &quot;&quot;)
Response.Flush()

Dim SqlDataAdp As New SqlDataAdapter(SqlQry, sqlConn)
Dim DT As New DataTable
SqlDataAdp.Fill(DT)
sqlConn.Open()

Dim tempTable As String = String.Empty
Dim DTCol As DataColumn
Dim DTRow As DataRow

tempTable = &quot;&lt;table cellpadding='2' cellspacing='2' border='1' width='100%'&gt;&quot;

tempTable = tempTable &amp; &quot;&lt;tr&gt;&quot;
For Each DTCol In DT.Columns
tempTable = tempTable &amp; &quot;&lt;td style='font-weight:bold;'&gt;&quot;
tempTable = tempTable &amp; DTCol.ColumnName.ToString()
tempTable = tempTable &amp; &quot;&lt;/td&gt;&quot;
Next
tempTable = tempTable &amp; &quot;&lt;/tr&gt;&quot;

For Each DTRow In DT.Rows
tempTable = tempTable &amp; &quot;&lt;tr&gt;&quot;
For i = 0 To DT.Columns.Count - 1
tempTable = tempTable &amp; &quot;&lt;td align='left'&gt;&quot;
tempTable = tempTable &amp; DTRow(i).ToString()
tempTable = tempTable &amp; &quot;&lt;/td&gt;&quot;
Next
tempTable = tempTable &amp; &quot;&lt;/tr&gt;&quot;
Next

tempTable = tempTable &amp; &quot;&lt;/table&gt;&quot;

Response.Write(tempTable)
Response.End()
End Sub</pre>
<p>The post <a href="https://jharaphula.com/export-datatable-to-excel-vb/">How to export DataTable to Excel file using VB.NET?</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://jharaphula.com/export-datatable-to-excel-vb/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			<media:content url="https://jharaphula.com/wp-content/uploads/2016/05/Export-to-Excel.jpg" medium="image" />
	</item>
		<item>
		<title>How to Create ASP.NET inline Table using data from a DataReader?</title>
		<link>https://jharaphula.com/asp-net-inline-table-datareader/</link>
					<comments>https://jharaphula.com/asp-net-inline-table-datareader/#respond</comments>
		
		<dc:creator><![CDATA[Nibedita Panda]]></dc:creator>
		<pubDate>Sun, 15 May 2016 14:52:51 +0000</pubDate>
				<category><![CDATA[Microsoft Technologies]]></category>
		<category><![CDATA[ASP.NET inline Table]]></category>
		<category><![CDATA[Bind Data using Datareader]]></category>
		<category><![CDATA[DataReader]]></category>
		<category><![CDATA[Table using data from a DataReader]]></category>
		<guid isPermaLink="false">http://box.jharaphula.com/?p=1557</guid>

					<description><![CDATA[<img width="300" height="190" src="https://jharaphula.com/wp-content/uploads/2016/05/html-Tables-300x190.png" class="webfeedsFeaturedVisual wp-post-image" alt="How to Create ASP.NET inline Table using data from a DataReader?" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/html-Tables-300x190.png 300w, https://jharaphula.com/wp-content/uploads/2016/05/html-Tables.png 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>Customization in a web app is very common. Requirement updates everyday. Depending on this it happens occasionally Gridview is incapable to meet customers demand. In...</p>
<p>The post <a href="https://jharaphula.com/asp-net-inline-table-datareader/">How to Create ASP.NET inline Table using data from a DataReader?</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></description>
										<content:encoded><![CDATA[<img width="300" height="190" src="https://jharaphula.com/wp-content/uploads/2016/05/html-Tables-300x190.png" class="webfeedsFeaturedVisual wp-post-image" alt="How to Create ASP.NET inline Table using data from a DataReader?" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/html-Tables-300x190.png 300w, https://jharaphula.com/wp-content/uploads/2016/05/html-Tables.png 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>Customization in a web app is very common. Requirement updates everyday. Depending on this it happens occasionally Gridview is incapable to meet customers demand. In this case we choose ASP.NET inline Table to present data. Commonly there are 2 ways to fetch data from the database DataSet &amp; DataReader. DataSet is connection less architecture. While DataReader is a pointer. DataReader fetch data faster then DataSet mechanism.</p>
<p>Here in this below example I am fetching data from my table PortalWebLink. In side table tag before start the row (tr) I am with a while loop. The condition is until data read is readable bind data. Inside the td I am binding weblinks using dreaderobj(&#8220;WebLinkTitle&#8221;).ToString().</p>
<h3>Table using data from a DataReader</h3>
<pre class="brush: xml; title: ; notranslate">&lt;table border=&quot;0&quot; cellpadding=&quot;4&quot; cellspacing=&quot;1&quot; width=&quot;100%&quot; bgcolor=&quot;#e3eef6&quot;&gt;
&lt;%
Dim connObj As New SqlConnection(ConfigurationManager.AppSettings.Get(&quot;DBKey&quot;).ToString())
Dim qryStr As String = &quot;SELECT * FROM PortalWebLink WHERE STATUS='ACTIVE' ORDER BY CreatedDate DESC&quot;
'Response.Write(qryStr)
Dim sqlCommObj As New SqlCommand(qryStr, connObj)

Try
connObj.Open()
Dim dreaderobj As SqlDataReader = sqlCommObj.ExecuteReader

While dreaderobj.Read
%&gt;
&lt;tr&gt;
&lt;td bgcolor=&quot;#e3eef6&quot;&gt;
&lt;table border='0' cellpadding='0' cellspacing='0'&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;img src='../IMAGES/old-edit-redo.png' /&gt;
&lt;/td&gt;
&lt;td&gt;
&amp;nbsp;&lt;a href='&lt;%= dreaderobj(&quot;WebLink&quot;).ToString %&gt;' target='blank'&gt;&lt;%=dreaderobj(&quot;WebLinkTitle&quot;).ToString()%&gt;&lt;/a&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;%
End While
Catch ex As Exception
Dim TrackError As New ErrorLog()
TrackError.ErrorLog(ex.Message, ex.ToString(), ex.Source, ex.TargetSite.ToString(), &quot;&quot;, &quot;../Admin/Weblink.aspx&quot;, connObj)
Finally
connObj.Close()
End Try
%&gt;
&lt;%
Dim strChkQry As String = &quot;SELECT Count(*) as CNT FROM PortalWebLink WHERE STATUS='ACTIVE'&quot;
Dim sqlCommandObj As New SqlCommand(strChkQry, connObj)

try
connObj.Open()
Dim str As Object = sqlCommandObj.ExecuteScalar()
Dim i As Integer = str

If i = 0 Then
%&gt;
&lt;table cellpadding=&quot;2&quot; cellspacing=&quot;2&quot; width=&quot;100%&quot; class=&quot;fbox&quot;&gt;
&lt;tr&gt;
&lt;td&gt;
No Record(s) Found.
&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;%
end if
Catch ex As Exception
Dim TrackError As New ErrorLog()
TrackError.ErrorLog(ex.Message, ex.ToString(), ex.Source, ex.TargetSite.ToString(), &quot;&quot;, &quot;../Admin/Weblink.aspx&quot;, connObj)
Finally
connObj.Close()
End Try
%&gt;
&lt;tr&gt;
&lt;td&gt;
&amp;nbsp;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;</pre>
<p>The post <a href="https://jharaphula.com/asp-net-inline-table-datareader/">How to Create ASP.NET inline Table using data from a DataReader?</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://jharaphula.com/asp-net-inline-table-datareader/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			<media:content url="https://jharaphula.com/wp-content/uploads/2016/05/html-Tables.png" medium="image" />
	</item>
		<item>
		<title>How to bind data to a ASP.NET Dropdownlist using DataReader?</title>
		<link>https://jharaphula.com/bind-data-asp-net-dropdownlist-using-datareader/</link>
					<comments>https://jharaphula.com/bind-data-asp-net-dropdownlist-using-datareader/#respond</comments>
		
		<dc:creator><![CDATA[Nibedita Panda]]></dc:creator>
		<pubDate>Sun, 15 May 2016 14:49:50 +0000</pubDate>
				<category><![CDATA[Microsoft Technologies]]></category>
		<category><![CDATA[ASP.NET Dropdownlist using DataReader]]></category>
		<category><![CDATA[ASP.NET Repeater Control]]></category>
		<category><![CDATA[Bind Data using Datareader]]></category>
		<category><![CDATA[ExecuteReader]]></category>
		<category><![CDATA[How to Bind Data?]]></category>
		<guid isPermaLink="false">http://box.jharaphula.com/?p=1555</guid>

					<description><![CDATA[<img width="300" height="173" src="https://jharaphula.com/wp-content/uploads/2016/05/dropdown-data-bind-300x173.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="How to bind data to a ASP.NET Dropdownlist using DataReader?" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/dropdown-data-bind-300x173.jpg 300w, https://jharaphula.com/wp-content/uploads/2016/05/dropdown-data-bind.jpg 704w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>Generally where only one option lefts to Choose from a list of records we use Dropdownlist Control. Let&#8217;s talk about a Country dropdownlist. What you...</p>
<p>The post <a href="https://jharaphula.com/bind-data-asp-net-dropdownlist-using-datareader/">How to bind data to a ASP.NET Dropdownlist using DataReader?</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></description>
										<content:encoded><![CDATA[<img width="300" height="173" src="https://jharaphula.com/wp-content/uploads/2016/05/dropdown-data-bind-300x173.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="How to bind data to a ASP.NET Dropdownlist using DataReader?" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/dropdown-data-bind-300x173.jpg 300w, https://jharaphula.com/wp-content/uploads/2016/05/dropdown-data-bind.jpg 704w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>Generally where only one option lefts to Choose from a list of records we use Dropdownlist Control. Let&#8217;s talk about a Country dropdownlist. What you need to do is need to fetch records from Database. In second step need to <a href="https://jharaphula.com/xmlhttprequest-bind-xml-to-html-table/" rel="noopener noreferrer" target="_blank">bind that data</a> to the data-source of ASP.NET dropdownlist. The same I did in the below example.</p>
<p>The logic here I implement is very simple. Using ExecuteReader I am executing my command object against a DataReader. Then with the conditional check DataReader.read method I am running a while loop. Inside this loop adding new listitems with key &amp; value pair from DataReader.</p>
<p>Compare to DataSet DataReader executes faster. DataReader is like a pointer. While DataSet is Connection less architecture.</p>
<h3>dropdown</h3>
<pre class="brush: xml; title: ; notranslate">&lt;asp:DropDownList ID=&quot;ddlOrgType&quot; runat=&quot;server&quot; TabIndex=&quot;3&quot; ToolTip=&quot;Select your Organization Type&quot; Width=&quot;244px&quot; AutoPostBack=&quot;True&quot;&gt;&lt;/asp:DropDownList&gt;</pre>
<h3>Connection String I Used</h3>
<pre class="brush: vb; title: ; notranslate">Dim connObj As New SqlConnection(ConfigurationManager.AppSettings.Get(&quot;connString&quot;).ToString())</pre>
<p>in web.config:</p>
<pre class="brush: xml; title: ; notranslate">&lt;appSettings&gt;
&lt;add key=&quot;connString&quot; value=&quot;Data Source=localhost; uid=sa; pwd=tiger; database=TRAINNINGMANAGER;&quot;/&gt;
&lt;/appSettings&gt;</pre>
<h3>SelectedIndexChanged event of dropdown</h3>
<pre class="brush: vb; title: ; notranslate">Protected Sub ddlOrgType_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles ddlOrgType.SelectedIndexChanged
ddlDivision.Items.Clear()
'Fill up ddlDivision dropdownlist from DivisionTab
Dim commDivision As New SqlCommand(&quot;SELECT * FROM DivisionTab WHERE divisionStatus='1' and fkTypeOrgID=&quot; &amp; ddlOrgType.SelectedValue.ToString, connObj)

Try
connObj.Open()
Dim Objdr As SqlDataReader = commDivision.ExecuteReader
ddlDivision.Items.Add(New ListItem(&quot;Please Select...&quot;, 0))
While Objdr.Read
ddlDivision.Items.Add(New ListItem(Objdr(1), Objdr(0)))
End While

Catch ex As Exception
Response.Write(ex.ToString())

Finally
connObj.Close()
End Try
End Sub</pre>
<p>The post <a href="https://jharaphula.com/bind-data-asp-net-dropdownlist-using-datareader/">How to bind data to a ASP.NET Dropdownlist using DataReader?</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://jharaphula.com/bind-data-asp-net-dropdownlist-using-datareader/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			<media:content url="https://jharaphula.com/wp-content/uploads/2016/05/dropdown-data-bind.jpg" medium="image" />
	</item>
		<item>
		<title>JavaScript Trim functions (L-Trim, R-Trim) to remove Whilespace</title>
		<link>https://jharaphula.com/javascript-trim-remove-whilespace/</link>
					<comments>https://jharaphula.com/javascript-trim-remove-whilespace/#respond</comments>
		
		<dc:creator><![CDATA[Nibedita Panda]]></dc:creator>
		<pubDate>Sun, 15 May 2016 14:45:44 +0000</pubDate>
				<category><![CDATA[JS Functions & Examples]]></category>
		<category><![CDATA[JavaScript Developers]]></category>
		<category><![CDATA[JavaScript Function]]></category>
		<category><![CDATA[JavaScript Trim functions]]></category>
		<category><![CDATA[L-Trim]]></category>
		<category><![CDATA[R-Trim]]></category>
		<category><![CDATA[Remove Whilespace]]></category>
		<guid isPermaLink="false">http://box.jharaphula.com/?p=1553</guid>

					<description><![CDATA[<img width="300" height="169" src="https://jharaphula.com/wp-content/uploads/2016/05/javascript-trim-300x169.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="JavaScript Trim functions (L-Trim, R-Trim) to remove Whilespace" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/javascript-trim-300x169.jpg 300w, https://jharaphula.com/wp-content/uploads/2016/05/javascript-trim.jpg 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>During String Operation while we found unwanted spaces before or after the string, we apply trim() functions to remove those spaces. Here in this example...</p>
<p>The post <a href="https://jharaphula.com/javascript-trim-remove-whilespace/">JavaScript Trim functions (L-Trim, R-Trim) to remove Whilespace</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></description>
										<content:encoded><![CDATA[<img width="300" height="169" src="https://jharaphula.com/wp-content/uploads/2016/05/javascript-trim-300x169.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="JavaScript Trim functions (L-Trim, R-Trim) to remove Whilespace" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/javascript-trim-300x169.jpg 300w, https://jharaphula.com/wp-content/uploads/2016/05/javascript-trim.jpg 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>During String Operation while we found unwanted spaces before or after the string, we apply trim() functions to remove those spaces. Here in this example I have 4 functions. ltrim, rtrim, trim &amp; isWhitespace.</p>
<p>ltrim function is responsible to <a href="https://jharaphula.com/cure-pimples-unwanted-red-or-black-spots-from-face/" target="_blank" rel="noopener noreferrer">remove unwanted</a> space from left side of the string. Similarly rtrim function removes space from right side of the string. When both these functions come together it acts like trim function.</p>
<p>The logic behind ltrim &amp; rtrim functions is quite simple. While removing space from left side of the string I am increasing counter inside a for loop. For each space it checking the characters with isWhitespace function. Similarly to remove space from right side of the string I am reducing the counter.</p>
<h3>JavaScript Trim Functions</h3>
<pre class="brush: jscript; title: ; notranslate">function ltrim(str) 
{ 
for(var k = 0; k &lt; str.length &amp;&amp; isWhitespace(str.charAt(k)); k++);
return str.substring(k, str.length);
}

function rtrim(str) 
{
for(var j=str.length-1; j&gt;=0 &amp;&amp; isWhitespace(str.charAt(j)) ; j--) ;
return str.substring(0,j+1);
}

function trim(str) 
{
return ltrim(rtrim(str));
}

function isWhitespace(charToCheck) 
{
var whitespaceChars = &quot; \t\n\r\f&quot;;
return (whitespaceChars.indexOf(charToCheck) != -1);
}</pre>
<p>The post <a href="https://jharaphula.com/javascript-trim-remove-whilespace/">JavaScript Trim functions (L-Trim, R-Trim) to remove Whilespace</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://jharaphula.com/javascript-trim-remove-whilespace/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			<media:content url="https://jharaphula.com/wp-content/uploads/2016/05/javascript-trim.jpg" medium="image" />
	</item>
		<item>
		<title>Using LocalStorage Objects vs Web SQL Database in HTML5</title>
		<link>https://jharaphula.com/web-storage-web-sql-in-html5/</link>
					<comments>https://jharaphula.com/web-storage-web-sql-in-html5/#respond</comments>
		
		<dc:creator><![CDATA[Nibedita Panda]]></dc:creator>
		<pubDate>Sun, 15 May 2016 14:43:48 +0000</pubDate>
				<category><![CDATA[Learn HTML5 with Examples]]></category>
		<category><![CDATA[5th revision of HTML]]></category>
		<category><![CDATA[HTML5 Examples]]></category>
		<category><![CDATA[IndexedDB in HTML5]]></category>
		<category><![CDATA[LocalStorage]]></category>
		<category><![CDATA[Web SQL vs IndexedDB]]></category>
		<category><![CDATA[Web Storage]]></category>
		<guid isPermaLink="false">http://box.jharaphula.com/?p=1551</guid>

					<description><![CDATA[<img width="300" height="182" src="https://jharaphula.com/wp-content/uploads/2016/05/web-storage-in-html5-300x182.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="Web Storage (LocalStorage) vs Web SQL vs IndexedDB in HTML5" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/web-storage-in-html5-300x182.jpg 300w, https://jharaphula.com/wp-content/uploads/2016/05/web-storage-in-html5.jpg 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>In the early age of HTML5, application data was stored in cookies &#38; included in every server request. Compare to Cookies with web storage, web...</p>
<p>The post <a href="https://jharaphula.com/web-storage-web-sql-in-html5/">Using LocalStorage Objects vs Web SQL Database in HTML5</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></description>
										<content:encoded><![CDATA[<img width="300" height="182" src="https://jharaphula.com/wp-content/uploads/2016/05/web-storage-in-html5-300x182.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="Web Storage (LocalStorage) vs Web SQL vs IndexedDB in HTML5" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/web-storage-in-html5-300x182.jpg 300w, https://jharaphula.com/wp-content/uploads/2016/05/web-storage-in-html5.jpg 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>In the early age of HTML5, application data was stored in cookies &amp; included in every server request. Compare to Cookies with web storage, web applications can store data locally within the user&#8217;s browser. <a href="https://jharaphula.com/category/programming-solutions/html5-examples/" target="_blank" rel="noopener noreferrer">HTML5</a> Local storage is more secured and performance wise rich. Local Storage limit is larger than cookies &amp; information is not passed on to the server, it is per origin, i.e., per domain and per protocol.</p>
<h2>Using HTML5 LocalStorage Objects</h2>
<p>HTML 5 storage is based on named key-value pairs. The data is stored based on a named key, retrieve using the same key, and the named key will be a string.</p>
<p>HTML provides 2 objects for Web Storage:</p>
<p>1. window.localStorage: stores data without an expiration date. The local storage will be available whenever you would use that page. Local storage will be available in the browser to all windows with the same origin (domain).</p>
<p><em>Example</em>:</p>
<pre class="brush: jscript; title: ; notranslate">localStorage.setItem (&quot;firstname&quot;, &quot;John&quot;);
document.getElementById(&quot;name&quot;).innerHTML = localStorage.getItem(&quot;firstname&quot;);</pre>
<p>2. window.sessionStorage: stores data only for a session (data will be lost when the browser is closed). Multiple windows from the same origin (URL) cannot see others session storage. Using sessionStorage object is same as localStorage object, except that it stores data for only one session.</p>
<p><em>Example</em>: setItem (key, value) to save database key/value</p>
<pre class="brush: jscript; title: ; notranslate">sessionStorage.setItem(&quot;name&quot;, &quot;Picasso&quot;); /* Here name is the key, Picasso is value */
var data = sessionStorage.getItem('name');</pre>
<h2>Using Web SQL Database</h2>
<p>The Web SQL Database API is not a part of <a href="https://www.w3schools.com/html/" rel="nofollow">HTML5</a>, but is a separate specification which has a set of APIs to manipulate client side databases using SQL. It is essentially an embedded SQLite database. You can create a database, tables and run SQL on it.</p>
<h2>HTML5 Web SQL Database Methods</h2>
<p>There are 3 methods in SQL database which are as follows:</p>
<ul>
<li><strong>openDatabase</strong> – This method creates a database object either of the existing database or creating a new one.</li>
<li><strong>transaction</strong> – This method helps to control a transaction and performing either commit or rollback as per the requirement.</li>
<li><strong>executeSql</strong> – This method is used to execute the SQL query.</li>
</ul>
<h3>Opening Database</h3>
<p>The openDatabase method creates a database or helps in opening the existing database. To create and open a database we have to do the following:</p>
<pre class="brush: jscript; title: ; notranslate">var dbs = openDatabase('mydbs', '1.0', 'test1db', 2*1024*1024);</pre>
<p>The above method has 5 parameters – database name, version number, text description, size of database, creation callback. The creation callback parameter will be called when the database is created.</p>
<h3>Executing Queries</h3>
<p>To execute a query the database.transaction () function is used. This function needs a single argument which is a function which executes the query as follows:</p>
<pre class="brush: jscript; title: ; notranslate">dbs.transaction (function(tq)) {
tq.executeSql('CREATE TABLE IF NOT EXISTS LOGS (id unique, log)');
});</pre>
<p>The above query will create a table called LOGS in ‘mydbs’ database.</p>
<h3>INSERT Operation</h3>
<p>To create entries into the database table we add <a href="https://jharaphula.com/sql-queries-with-example/" target="_blank" rel="noopener noreferrer">SQL queries</a> as below:</p>
<pre class="brush: jscript; title: ; notranslate">var dbs = openDatabase('mydbs', '1.0', 'test1db', 2*1024*1024);
dbs.transaction (function(tq)) {
tq.executeSql('CREATE TABLE IF NOT EXISTS LOGS (id unique, log)');
tq.executeSql('INSERT INTO LOGS (id, log) VALUES (1, &quot;Camera&quot;)');
tq.executeSql('INSERT INTO LOGS (id, log) VALUES (2, &quot;Konica&quot;)');
});</pre>
<h3>READ Operation</h3>
<p>To read records from the database we use a callback to capture the results as shown below:</p>
<pre class="brush: jscript; title: ; notranslate">var dbs = openDatabase('mydbs', '1.0', 'test1db', 2*1024*1024);
dbs.transaction(function(tq)) {
tq.executeSql('CREATE TABLE IF NOT EXISTS LOGS (id unique, log)');
tq.executeSql('INSERT INTO LOGS (id, log) VALUES (1, &quot;Camera&quot;)');
tq.executeSql('INSERT INTO LOGS (id, log) VALUES (2, &quot;Konica&quot;)');
});</pre>
<pre class="brush: jscript; title: ; notranslate">dbs.transaction (function(tq)) {
tq.executeSql('SELECT * FROM LOGS', [ ], function(tq, result) {
var length = result.rows.length, i;
msg = &quot;&lt;p&gt; Found rows: &quot;+ length + &quot;&lt;/p&gt;&quot;;
document.querySelector('#status').innerHTML += msg;
for (i=0; i&lt;length; i++) {
alert (result.rows.item (i). log);
}
}, null);
});</pre>
<h2>Web SQL database in HTML5 vs IndexedDB</h2>
<p>The Web SQL database is a deprecated specification since November 2010, the browser vendors are not encouraged to support this technology. The replacement is IndexedDB. It is a ‘NoSQL’ database and lets us create an Object Store for a type of data. Each Object Store can have a collection of Indexes that make it efficient to query and iterate across.</p>
<p>Some of the disadvantages of Web SQL are as follows:</p>
<ul>
<li>Web SQL is not object-driven.</li>
<li>SQL language needs to be mastered and JavaScript objects has to be transformed into relational schema.</li>
<li>Transaction creation is explicit, default is to rollback unless we call commit.</li>
</ul>
<p>Advantages of IndexedDB over Web SQL:</p>
<ul>
<li>Allows fast indexing and searching of objects, so you can manage your data and read/write it fast.</li>
<li>Indexing of JavaScript objects based on your application needs.</li>
<li>Granular locking per transaction, which allows us to work inside the event-driven JavaScript module.</li>
</ul>
<h2>Conclusion</h2>
<p>As Web SQL is deprecated, the web developers are recommended to stop using this technology in new projects, as the spec will not receive new updates. As a ‘NoSQL’ database, IndexedDB provides us a lot of power as it is different from relational database. Web Storage technique provides rich query abilities and is available both in offline and online mode, and can used to store large amount of data.</p>
<p>The post <a href="https://jharaphula.com/web-storage-web-sql-in-html5/">Using LocalStorage Objects vs Web SQL Database in HTML5</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://jharaphula.com/web-storage-web-sql-in-html5/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			<media:content url="https://jharaphula.com/wp-content/uploads/2016/05/web-storage-in-html5.jpg" medium="image" />
	</item>
		<item>
		<title>AngularJS Form Validation (Required, Email, Number &#038; Date) Examples</title>
		<link>https://jharaphula.com/angularjs-form-validation-example/</link>
					<comments>https://jharaphula.com/angularjs-form-validation-example/#comments</comments>
		
		<dc:creator><![CDATA[Nibedita Panda]]></dc:creator>
		<pubDate>Sun, 15 May 2016 14:41:02 +0000</pubDate>
				<category><![CDATA[AngularJS with Examples]]></category>
		<category><![CDATA[AngularJS]]></category>
		<category><![CDATA[Form Validation]]></category>
		<category><![CDATA[Jquery Email Validation]]></category>
		<category><![CDATA[Validation Examples]]></category>
		<guid isPermaLink="false">http://box.jharaphula.com/?p=1549</guid>

					<description><![CDATA[<img width="300" height="187" src="https://jharaphula.com/wp-content/uploads/2016/05/validation-300x187.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="AngularJS Form Validation (Required, Email, Number &amp; Date) Examples" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/validation-300x187.jpg 300w, https://jharaphula.com/wp-content/uploads/2016/05/validation.jpg 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>In web technology validation is used to prevent spam entries. There are various kind of form fields validations. Some of them are Required field validation,...</p>
<p>The post <a href="https://jharaphula.com/angularjs-form-validation-example/">AngularJS Form Validation (Required, Email, Number &#038; Date) Examples</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></description>
										<content:encoded><![CDATA[<img width="300" height="187" src="https://jharaphula.com/wp-content/uploads/2016/05/validation-300x187.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="AngularJS Form Validation (Required, Email, Number &amp; Date) Examples" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/validation-300x187.jpg 300w, https://jharaphula.com/wp-content/uploads/2016/05/validation.jpg 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>In web technology validation is used to prevent spam entries. There are various kind of form fields validations. Some of them are Required field validation, email validation, date field validation or number validation. In this demo app I created these 4 AngularJS Form Validation (<em>Required Field, Email, Number and Date</em>).</p>
<p>In the below app I have 4 form fields Name, Email, Contact Number &amp; Date of Birth. Name is a required field. Without Name an user is not allowed to submit the form. As an <a href="https://jharaphula.com/category/programming-solutions/learn-angularjs-with-examples/" target="_blank" rel="noopener noreferrer">advanced feature AngularJS</a> made validations easy. By simply adding a single line of code <span style="color:brown"><code>ng-show="userForm.name.$error.required"</code><br />
</span> I can easily made Name field as mandatory.</p>
<p>To valid an email here I used pattern. Validating the pattern against email entry using AngularJS ng-pattern directive. Similar thing I did for Number validation is Contact Number field. To validate Date field in the beginning of script block I declared a variable for date pattern with value YYYY-MM-DD. Using ng-pattern in date field validating the date pattern variable.</p>
<h3>AngularJS-Form-Validation.htm</h3>
<pre class="brush: xml; title: ; notranslate">&lt;!Doctype html&gt;
&lt;html lang=&quot;en&quot;&gt;
&lt;head&gt;
&lt;title&gt;AngularJS Form Validation Example&lt;/title&gt;
&lt;script type=&quot;text/javascript&quot; src=&quot;https://ajax.googleapis.com/ajax/libs/angularjs/1.5.0/angular.min.js&quot;&gt;&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
var validateApp=angular.module('validateAngularApp',[]);
validateApp.controller(&quot;validateAngularctrl&quot;,function($scope){
/*Page Title goes Here*/
$scope.title=&quot;Validations using AngularJS&quot;;
/*Date pattern you can update Here*/
$scope.datepattern=&quot;YYYY-MM-DD&quot;;
$scope.userRegester=function(name, email, contact, dob) {
if(name!=null || email!=null || contact!=null || dob!=null)
{
alert(&quot;Registration Successfull !!!&quot;);
}
else
{
alert(&quot;Not Successfull Please try again.&quot;);
}
}
});
&lt;/script&gt;
&lt;/head&gt;
&lt;body ng-app=&quot;validateAngularApp&quot; ng-controller=&quot;validateAngularctrl&quot;&gt;
&lt;div role=&quot;main&quot;&gt;
&lt;header&gt;
&lt;h2&gt;{{title}}&lt;/h2&gt;
&lt;/header&gt;
&lt;section&gt;
&lt;h2&gt;Registration User Form&lt;/h2&gt;
&lt;form role=&quot;form-inline&quot; name=&quot;userForm&quot; action=&quot;&quot; method=&quot;&quot; novalidate&gt;
&lt;div&gt;
&lt;label for=&quot;name&quot;&gt;Name:&lt;/label&gt;
&lt;input type=&quot;text&quot; name=&quot;name&quot; ng-model=&quot;uname&quot; placeholder=&quot;Enter your name&quot; required /&gt;
&lt;!-- show an error if this isn't filled in --&gt;
&lt;span ng-show=&quot;userForm.name.$error.required&quot; ng-style=&quot;{color:'red'}&quot;&gt;Your name is required.&lt;/span&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;label for=&quot;email&quot;&gt;Email:&lt;/label&gt;
&lt;input type=&quot;email&quot; name=&quot;email&quot; ng-model=&quot;uemail&quot; placeholder=&quot;Enter your email&quot; ng-pattern=&quot;/^[a-z]+[a-z0-9._]+@[a-z]+\.[a-z.]{2,5}$/ &quot; required/&gt;
&lt;span ng-show=&quot;userForm.email.$error.required&quot; ng-style=&quot;{color:'red'}&quot;&gt;Your email is required .&lt;/span&gt;
&lt;span ng-show=&quot;userForm.email.$error.pattern&quot; ng-style=&quot;{color:'red'}&quot;&gt;Your email should be in correct format ex abc@gmail.com .&lt;/span&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;label for=&quot;contact Number&quot;&gt;Contact Number:&lt;/label&gt;
&lt;input type=&quot;text&quot; name=&quot;contactNumber&quot; ng-model=&quot;ucontact&quot; placeholder=&quot;Enter your Contact details&quot; ng-pattern=&quot;/^[0-9]{10,10}$/&quot; ng-minlength=&quot;10&quot; ng-maxlength=&quot;10&quot; required /&gt;
&lt;span ng-show=&quot;userForm.contactNumber.$error.required&quot; ng-style=&quot;{color:'red'}&quot;&gt;Your contact is required .&lt;/span&gt;
&lt;span ng-show=&quot;userForm.contactNumber.$error.pattern&quot; ng-style=&quot;{color:'red'}&quot;&gt;Mobile should be numeric&lt;/span&gt;
&lt;span ng-show=&quot;userForm.contactNumber.$error.minlength&quot; ng-style=&quot;{color:'red'}&quot;&gt;contact number should be minimum of 10 digits .&lt;/span&gt;
&lt;span ng-show=&quot;userForm.contactNumber.$error.maxlength&quot; ng-style=&quot;{color:'red'}&quot;&gt;contact number should be maximum of 10 digits .&lt;/span&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;label for=&quot;date_of_birth&quot;&gt;Date of Birth:&lt;/label&gt;
&lt;input type=&quot;text&quot; name=&quot;dob&quot; ng-model=&quot;udob&quot; placeholder=&quot;Enter your date of birth in the format of YYYY-MM-DD&quot; ng-pattern=&quot;datepattern&quot;required /&gt;
&lt;span ng-show=&quot;userForm.dob.$error.required&quot; ng-style=&quot;{color:'red'}&quot;&gt;Your date of birth is required &lt;/span&gt;
&lt;span ng-show=&quot;userForm.dob.$error.pattern&quot; ng-style=&quot;{color:'red'}&quot;&gt;Date of Birth must be in the format of YYYY-MM-DD&lt;/span&gt;
&lt;/div&gt;
&lt;button type=&quot;submit&quot; ng-click=&quot;userRegester(e1,e2,e3,e4)&quot;&gt;Register&lt;/button&gt;
&lt;/form&gt;
&lt;/section&gt;
&lt;footer&gt;&amp;copy; All right reserved&lt;/footer&gt;
&lt;/div&gt;
&lt;/body&gt;
&lt;/html&gt;</pre>
<p>The post <a href="https://jharaphula.com/angularjs-form-validation-example/">AngularJS Form Validation (Required, Email, Number &#038; Date) Examples</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://jharaphula.com/angularjs-form-validation-example/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			<media:content url="https://jharaphula.com/wp-content/uploads/2016/05/validation.jpg" medium="image" />
	</item>
		<item>
		<title>Best Practices to follow during a HTML Mail Template design</title>
		<link>https://jharaphula.com/best-practices-html-mail-template-design/</link>
					<comments>https://jharaphula.com/best-practices-html-mail-template-design/#respond</comments>
		
		<dc:creator><![CDATA[Nibedita Panda]]></dc:creator>
		<pubDate>Sun, 15 May 2016 14:17:23 +0000</pubDate>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Email Marketing Strategy]]></category>
		<category><![CDATA[Email Marketing tools]]></category>
		<category><![CDATA[HTML Mail Template design]]></category>
		<category><![CDATA[Jquery Email Validation]]></category>
		<category><![CDATA[PHP Mail Function]]></category>
		<category><![CDATA[Web Design best practices]]></category>
		<guid isPermaLink="false">http://box.jharaphula.com/?p=1547</guid>

					<description><![CDATA[<img width="300" height="181" src="https://jharaphula.com/wp-content/uploads/2016/05/email-template-300x181.png" class="webfeedsFeaturedVisual wp-post-image" alt="Best Practices to follow during a HTML Mail Template design" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/email-template-300x181.png 300w, https://jharaphula.com/wp-content/uploads/2016/05/email-template.png 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>In our day to day activity we send many mails to Friends, Users OR Customers. The most important thing is the way which we follow...</p>
<p>The post <a href="https://jharaphula.com/best-practices-html-mail-template-design/">Best Practices to follow during a HTML Mail Template design</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></description>
										<content:encoded><![CDATA[<img width="300" height="181" src="https://jharaphula.com/wp-content/uploads/2016/05/email-template-300x181.png" class="webfeedsFeaturedVisual wp-post-image" alt="Best Practices to follow during a HTML Mail Template design" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/email-template-300x181.png 300w, https://jharaphula.com/wp-content/uploads/2016/05/email-template.png 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>In our day to day activity we send many mails to Friends, Users OR Customers. The most important thing is the way which we follow to send an email. There are several devices available in market. User can access their mails from any devices like mobiles, desktops, tablets OR ipads. So our first aim is to create an email which supports to all browsers &amp; resolutions. In this session let us share few best practices to follow during mail template design.</p>
<h3>Developing mail template</h3>
<p><strong>1</strong>. Always make your mail template Simple. Mail templates designing is one of the most important factor in email marketing. The main thing is that your template need to support all <a href="https://jharaphula.com/tips-creating-business-email/" target="_blank" rel="noopener noreferrer">email</a> clients browser &amp; bile. For an example Gmail (Desktop/mobile), Yahoo (Desktop/mobile)&#8230;</p>
<p><strong>2</strong>. Standard way to Create an mail Templates is the use of pure HTML&#8217;s table structure with inline CSS Styles.</p>
<p><strong>3</strong>. The Email Clients has their own HTML rendering system. It is necessary that we have to develop a template which rendering properly in all Email Clients.</p>
<p>i.e. HTML rendering is depending on HTML attributes &amp; CSS properties.</p>
<p>eg. Padding &amp; margin will supports for Gmail &amp; Yahoo but the same properties will create white spacing in Hotmail.</p>
<h3>Difference between Browsers &amp; Email Clients</h3>
<p>Web browsers supports all HTML &amp; CSS properties but Email Clients won’t. It has some limitations. Due to this dependency every Email Client render HTML or CSS in their own way.</p>
<p>For an Example : background property of CSS supports for Gmail, Yahoo but will not support for Outlook.</p>
<h3>Best practices for mail template design</h3>
<ul>
<li>Use pure HTML table structure with inline CSS styling to develop basic layouts;</li>
<li>Fluid layout is the one where we give width in percentage so that design will look good on all devices even if we shrink or expand the browser.</li>
<li>Avoid using DIV elements.</li>
<li>Hotmail won&#8217;t support Padding &amp; Margin. So ignore to use these attributes.</li>
<li>Write your CSS styles in-line.</li>
<li>Don’t use background-images; use basic &#8216;background&#8217; html tags.</li>
<li>Give image dimensions, use &#8216;ALT&#8217; &amp; &#8216;TITLE&#8217; attributes.</li>
<li>The standard width of email template is less than 650 pixels.</li>
<li>While referring an image use absolute path.</li>
<li>Avoid PNG&#8217;s files for email template. It create problem for Lotus Notes.</li>
</ul>
<h3>Limitations on bringing Responsiveness</h3>
<ul>
<li>Many Email Clients not supports Media queries.</li>
<li>Never use JavaScript like Scripting language while creating an mail Template.</li>
<li>Tag get strip down while rendering in some Email Clients.</li>
</ul>
<h3>Developing a Responsive mail Template</h3>
<p>1. Using Media Queries &#8211; Only Apple mail client (in iOS devices) and BlackBerry OS is supporting Media queries fully.</p>
<p>2. Using Fluid Layouts &#8211; Fluid layout is the one where we give width in percentages so that design will look good on all devices even if shrink or expand the browser but that will be not responsive structure it&#8217;s a compressed layout.</p>
<h3>Challenges for fixing text overlay Issue</h3>
<ul>
<li>Use VML Scripts.</li>
<li>VML script is an alternate method to achieve background-image in Outlook Client.</li>
<li>To achieving text over images is a challenge when we have a limitation on using background-image attribute.</li>
</ul>
<p>The post <a href="https://jharaphula.com/best-practices-html-mail-template-design/">Best Practices to follow during a HTML Mail Template design</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://jharaphula.com/best-practices-html-mail-template-design/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			<media:content url="https://jharaphula.com/wp-content/uploads/2016/05/email-template.png" medium="image" />
	</item>
		<item>
		<title>Example of Angular Treeview using Data from a JSON File</title>
		<link>https://jharaphula.com/example-angular-treeview-json/</link>
					<comments>https://jharaphula.com/example-angular-treeview-json/#respond</comments>
		
		<dc:creator><![CDATA[Nibedita Panda]]></dc:creator>
		<pubDate>Sun, 15 May 2016 13:22:33 +0000</pubDate>
				<category><![CDATA[AngularJS with Examples]]></category>
		<category><![CDATA[Example of Angular Treeview]]></category>
		<category><![CDATA[JSON Tutorial for beginners]]></category>
		<category><![CDATA[Treeview Example]]></category>
		<category><![CDATA[Treeview using Data from a JSON File]]></category>
		<guid isPermaLink="false">http://box.jharaphula.com/?p=1518</guid>

					<description><![CDATA[<img width="300" height="174" src="https://jharaphula.com/wp-content/uploads/2016/05/treeview-using-json-records-300x174.png" class="webfeedsFeaturedVisual wp-post-image" alt="Example of Angular Treeview using data from a JSON File" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/treeview-using-json-records-300x174.png 300w, https://jharaphula.com/wp-content/uploads/2016/05/treeview-using-json-records.png 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>JSON is one of the most popular lightweight data inter-exchange platform. It is platform independent and can easily editable without using any specific tool. Simply...</p>
<p>The post <a href="https://jharaphula.com/example-angular-treeview-json/">Example of Angular Treeview using Data from a JSON File</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></description>
										<content:encoded><![CDATA[<img width="300" height="174" src="https://jharaphula.com/wp-content/uploads/2016/05/treeview-using-json-records-300x174.png" class="webfeedsFeaturedVisual wp-post-image" alt="Example of Angular Treeview using data from a JSON File" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/treeview-using-json-records-300x174.png 300w, https://jharaphula.com/wp-content/uploads/2016/05/treeview-using-json-records.png 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>JSON is one of the most popular lightweight data inter-exchange platform. It is platform independent and can easily editable without using any specific tool. Simply using Notepad you can read or write to a JSON file. Looking into this nearly all advanced third-party components supports JSON formatted data. In this regard here I am with a demo app to show you how to create Angular Treeview using data from a JSON file. This example is very helpful for the beginners of AngularJS.</p>
<p>Look at the example below here I have a <a href="https://jharaphula.com/learn-json-tutorial-for-beginners/" target="_blank" rel="noopener noreferrer">JSON</a> file &#8220;treeview.json&#8221; which holds the required data for my Angular Treeview. As you know to design a Treeview we required formatted data. That&#8217;s why here my JSON file has two kind of data nodes &amp; sub-nodes. To display JSON data in a Treeview here I used $http module get() method to fetch data. After successful response from get() method assigning the response data to $scope object &#8220;items&#8221; array. showSubnodes() function is to display sub-nodes under respective parent node. In view to display items I am using UL LI elements. Using ng-repeat here I am looping the data &amp; binding each record to li elements. 2 UL elements I used here. One for parent nodes &amp; other one for Sub-nodes.</p>
<h2>Example of Angular Treeview using Data</h2>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-3511" title="Angular Treeview" src="https://jharaphula.com/wp-content/uploads/2016/05/angularjs-json-treeview.png" alt="Angular Treeview" width="750" height="270" srcset="https://jharaphula.com/wp-content/uploads/2016/05/angularjs-json-treeview.png 750w, https://jharaphula.com/wp-content/uploads/2016/05/angularjs-json-treeview-300x108.png 300w" sizes="auto, (max-width: 750px) 100vw, 750px" /></p>
<h3>index.htm</h3>
<pre class="brush: xml; title: ; notranslate">&lt;!DOCTYPE html&gt;
&lt;html ng-app=&quot;myTreeview&quot;&gt;
&lt;head&gt;
&lt;title&gt;Angular Treeview using data from a JSON File&lt;/title&gt;
&lt;script type=&quot;text/javascript&quot; src=&quot;https://ajax.googleapis.com/ajax/libs/angularjs/1.3.0-rc.0/angular.min.js&quot;&gt;&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
var myTreeview = angular.module('myTreeview', []);
myTreeview.controller('treeviewCtrl', function($scope, $http) {
$http.get(&quot;treeview.json&quot;).success(function (response) {
/*After Successful Response binding the JSON data to items array in Scope object*/
$scope.items = response.treedata;
});
$scope.showSubnodes = function(item){
item.active = !item.active;
};
});
&lt;/script&gt;
&lt;/head&gt;
&lt;body ng-controller=&quot;treeviewCtrl&quot;&gt;
&lt;ul&gt;
&lt;li ng-repeat=&quot;item in items&quot; ng-click=&quot;showSubnodes(item)&quot;&gt;
&lt;span&gt;{{item.node}}&lt;/span&gt;
&lt;ul&gt;
&lt;li ng-repeat=&quot;subItem in item.subnodes&quot; ng-show=&quot;item.active&quot;&gt;
&lt;span&gt;{{subItem.subnode}}&lt;/span&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/body&gt;
&lt;/html&gt;</pre>
<h2>JSON File for Angular Treeview</h2>
<pre class="brush: jscript; title: ; notranslate">{&quot;treedata&quot;:
[
{
&quot;node&quot;: &quot;Company&quot;,
&quot;subnodes&quot;: [
{&quot;subnode&quot;: &quot;About Us&quot;},
{&quot;subnode&quot;: &quot;Press Release&quot;},
{&quot;subnode&quot;: &quot;Contact Us&quot;},
{&quot;subnode&quot;: &quot;Our Blog&quot;},
{&quot;subnode&quot;: &quot;Privacy&quot;}
]
},
{
&quot;node&quot;: &quot;Services&quot;,
&quot;subnodes&quot;: [
{&quot;subnode&quot;: &quot;VOIP&quot;},
{&quot;subnode&quot;: &quot;Web Designing&quot;},
{&quot;subnode&quot;: &quot;Photo Editing&quot;},
{&quot;subnode&quot;: &quot;Audio &amp; Video Processing&quot;},
{&quot;subnode&quot;: &quot;Logo Designing&quot;}
]
},
{
&quot;node&quot;: &quot;Products&quot;,
&quot;subnodes&quot;: [
{&quot;subnode&quot;: &quot;CMS&quot;},
{&quot;subnode&quot;: &quot;Blog Posting&quot;},
{&quot;subnode&quot;: &quot;Forum Marketing&quot;},
{&quot;subnode&quot;: &quot;Template Creation&quot;}
]
}
]
}</pre>
<p>The post <a href="https://jharaphula.com/example-angular-treeview-json/">Example of Angular Treeview using Data from a JSON File</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://jharaphula.com/example-angular-treeview-json/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			<media:content url="https://jharaphula.com/wp-content/uploads/2016/05/treeview-using-json-records.png" medium="image" />
	</item>
		<item>
		<title>Example of Simple Horizontal Bootstrap Responsive Menu</title>
		<link>https://jharaphula.com/example-horizontal-bootstrap-responsive-menu/</link>
					<comments>https://jharaphula.com/example-horizontal-bootstrap-responsive-menu/#respond</comments>
		
		<dc:creator><![CDATA[Nibedita Panda]]></dc:creator>
		<pubDate>Sun, 15 May 2016 13:05:13 +0000</pubDate>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Dynamic Tabs using BootStrap]]></category>
		<category><![CDATA[Horizontal Bootstrap Menu]]></category>
		<category><![CDATA[Horizontal Bootstrap Responsive Menu]]></category>
		<category><![CDATA[menu using pure CSS]]></category>
		<category><![CDATA[Responsive Web Designing]]></category>
		<guid isPermaLink="false">http://box.jharaphula.com/?p=1514</guid>

					<description><![CDATA[<img width="300" height="186" src="https://jharaphula.com/wp-content/uploads/2016/05/responsive-menu-300x186.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="Example of Simple Horizontal Bootstrap Responsive Menu" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/responsive-menu-300x186.jpg 300w, https://jharaphula.com/wp-content/uploads/2016/05/responsive-menu.jpg 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>Whether you do a Corporate portal or an application Dashboard you must required a Horizontal menu. Category wise horizontal menu can be two types. Simple...</p>
<p>The post <a href="https://jharaphula.com/example-horizontal-bootstrap-responsive-menu/">Example of Simple Horizontal Bootstrap Responsive Menu</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></description>
										<content:encoded><![CDATA[<img width="300" height="186" src="https://jharaphula.com/wp-content/uploads/2016/05/responsive-menu-300x186.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="Example of Simple Horizontal Bootstrap Responsive Menu" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/responsive-menu-300x186.jpg 300w, https://jharaphula.com/wp-content/uploads/2016/05/responsive-menu.jpg 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>Whether you do a Corporate portal or an application Dashboard you must required a Horizontal menu. Category wise horizontal menu can be two types. Simple one with navigation &amp; the complex one with sub-menus. There are many front-end <a href="https://jharaphula.com/category/world-of-technologies/" target="_blank" rel="noopener noreferrer">technologies</a> using which you can created a menu. Look at this example below here I created a Horizontal Responsive Menu. This is so simple to implement in your app. Just Copy and Paste the below code and customize as per your requirements.</p>
<h3>Bootstrap-Responsive-Menu.htm</h3>
<pre class="brush: xml; title: ; notranslate">&lt;!DOCTYPE html&gt;
&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;
&lt;head&gt;
&lt;title&gt;Simple Horizontal Bootstrap Responsive Menu&lt;/title&gt;
&lt;meta charset=&quot;utf-8&quot;&gt;
&lt;meta name=&quot;viewport&quot; content=&quot;width=device-width, initial-scale=1&quot;&gt;
&lt;script src=&quot;https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js&quot;&gt;&lt;/script&gt;
&lt;script src=&quot;http://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js&quot;&gt;&lt;/script&gt;
&lt;link rel=&quot;stylesheet&quot; href=&quot;http://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css&quot;&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;nav class=&quot;navbar navbar-inverse&quot;&gt;
&lt;div class=&quot;container-fluid&quot;&gt;
&lt;div class=&quot;navbar-header&quot;&gt;
&lt;a class=&quot;navbar-brand&quot; href=&quot;https://jharaphula.com&quot;&gt;JHARAPHULA&lt;/a&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;ul class=&quot;nav navbar-nav&quot;&gt;
&lt;li class=&quot;dropdown&quot;&gt;
&lt;a class=&quot;dropdown-toggle&quot; data-toggle=&quot;dropdown&quot;&gt;Company
&lt;span class=&quot;caret&quot;&gt;&lt;/span&gt;&lt;/a&gt;
&lt;ul class=&quot;dropdown-menu&quot;&gt;
&lt;li&gt;&lt;a href=&quot;https://jharaphula.com/about-us&quot;&gt;About Us&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://jharaphula.com/contact-us&quot;&gt;Contact Us&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://vedamalhar.com/publish-with-us/&quot;&gt;Publish with Us&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://jharaphula.com/category/blog-board&quot;&gt;Our Blog&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://jharaphula.com/press-release&quot;&gt;Press Release&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://jharaphula.com/sitemap&quot;&gt;Sitemap&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/nav&gt;
&lt;/body&gt;
&lt;/html&gt;</pre>
<p>The post <a href="https://jharaphula.com/example-horizontal-bootstrap-responsive-menu/">Example of Simple Horizontal Bootstrap Responsive Menu</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://jharaphula.com/example-horizontal-bootstrap-responsive-menu/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			<media:content url="https://jharaphula.com/wp-content/uploads/2016/05/responsive-menu.jpg" medium="image" />
	</item>
		<item>
		<title>Using HTML5 Application Cache for Offline Storage</title>
		<link>https://jharaphula.com/html5-application-cache-offline-storage/</link>
					<comments>https://jharaphula.com/html5-application-cache-offline-storage/#respond</comments>
		
		<dc:creator><![CDATA[Nibedita Panda]]></dc:creator>
		<pubDate>Sun, 15 May 2016 13:04:01 +0000</pubDate>
				<category><![CDATA[Learn HTML5 with Examples]]></category>
		<category><![CDATA[Cache for Offline Storage]]></category>
		<category><![CDATA[HTML5 Examples]]></category>
		<category><![CDATA[List of HTML5 new Tags]]></category>
		<category><![CDATA[Using HTML5 Application Cache]]></category>
		<category><![CDATA[What is a Manifest File?]]></category>
		<guid isPermaLink="false">http://box.jharaphula.com/?p=1512</guid>

					<description><![CDATA[<img width="300" height="180" src="https://jharaphula.com/wp-content/uploads/2016/05/html5-topper-300x180.png" class="webfeedsFeaturedVisual wp-post-image" alt="Using HTML5 Application Cache for Offline Storage" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/html5-topper-300x180.png 300w, https://jharaphula.com/wp-content/uploads/2016/05/html5-topper.png 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>How it is for consecutive access of your webpages if the user don&#8217;t need to send a request to the server? Here I mean to...</p>
<p>The post <a href="https://jharaphula.com/html5-application-cache-offline-storage/">Using HTML5 Application Cache for Offline Storage</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></description>
										<content:encoded><![CDATA[<img width="300" height="180" src="https://jharaphula.com/wp-content/uploads/2016/05/html5-topper-300x180.png" class="webfeedsFeaturedVisual wp-post-image" alt="Using HTML5 Application Cache for Offline Storage" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/html5-topper-300x180.png 300w, https://jharaphula.com/wp-content/uploads/2016/05/html5-topper.png 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>How it is for consecutive access of your webpages if the user don&#8217;t need to send a request to the server? Here I mean to say &#8220;we can keep a local copy in the client machine/browser so for consecutive accesses browser will take the data from the local Copy&#8221;. This is what <a href="https://jharaphula.com/category/programming-solutions/html5-examples/" target="_blank" rel="noopener noreferrer">HTML5</a> Application Cache do in HTML5. Advantages of using Application Cache are Offline Browsing, Speed &amp; Reduced Server Load. Google Chrome 4.0, Internet Explorer 10.0, Mozilla Firefox 3.5, Safari 4.0, Opera 12 &amp; all the above versions Supports HTML5 Application Cache.</p>
<h3>What is a Manifest File?</h3>
<p>Generally this file comes with the extension &#8220;.appcache&#8221;. To enable Application Cache for your page you need to declare manifest in html tag.</p>
<pre class="brush: xml; title: ; notranslate">&lt;!DOCTYPE HTML&gt;
&lt;html manifest=&quot;demo.appcache&quot;&gt;
...
&lt;/html&gt;</pre>
<p>Manifest file is simple text file. You can create this using Notepad. It has 3 sections Cache Manifest, Network &amp; Fallback.</p>
<h3>demo.appcache</h3>
<pre class="brush: xml; title: ; notranslate">CACHE MANIFEST
# 2012-02-21 v1.0.0
/theme.css
/logo.gif
/main.js

NETWORK:
login.asp

FALLBACK:
/html/ /offline.html</pre>
<h3>Cache Manifest</h3>
<p>File listed under this block will immediately cache after they downloaded for the first time. Generally images, Static HTML, Common used JS &amp; CSS files we kept in Cache Manifest. This technique gives offline browsing as well better performance.</p>
<h3>Network</h3>
<p>File listed under this block will never Cache. For Consecutive requests these file required server connection.</p>
<h3>Fallback</h3>
<p>Files listed under this block specifies fallback pages if a page is inaccessible.</p>
<p>The post <a href="https://jharaphula.com/html5-application-cache-offline-storage/">Using HTML5 Application Cache for Offline Storage</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://jharaphula.com/html5-application-cache-offline-storage/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			<media:content url="https://jharaphula.com/wp-content/uploads/2016/05/html5-topper.png" medium="image" />
	</item>
		<item>
		<title>Example to Implement HTML5 Drag and Drop with list of Events</title>
		<link>https://jharaphula.com/example-html5-drag-and-drop/</link>
					<comments>https://jharaphula.com/example-html5-drag-and-drop/#respond</comments>
		
		<dc:creator><![CDATA[Nibedita Panda]]></dc:creator>
		<pubDate>Sun, 15 May 2016 13:01:06 +0000</pubDate>
				<category><![CDATA[Learn HTML5 with Examples]]></category>
		<category><![CDATA[Drag and Drop with list of Events]]></category>
		<category><![CDATA[HTML5 Drag and Drop]]></category>
		<category><![CDATA[HTML5 Examples]]></category>
		<category><![CDATA[Introduction to HTML5]]></category>
		<guid isPermaLink="false">http://box.jharaphula.com/?p=1510</guid>

					<description><![CDATA[<img width="300" height="173" src="https://jharaphula.com/wp-content/uploads/2016/05/drop-n-drop-300x173.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="Example to implement html5 drag and drop with list of Events" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/drop-n-drop-300x173.jpg 300w, https://jharaphula.com/wp-content/uploads/2016/05/drop-n-drop.jpg 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>You must remember during the age of HTML4 to implement drag and drop feature generally we do Scripting. This problem is addressed in HTML5. Using...</p>
<p>The post <a href="https://jharaphula.com/example-html5-drag-and-drop/">Example to Implement HTML5 Drag and Drop with list of Events</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></description>
										<content:encoded><![CDATA[<img width="300" height="173" src="https://jharaphula.com/wp-content/uploads/2016/05/drop-n-drop-300x173.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="Example to implement html5 drag and drop with list of Events" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/drop-n-drop-300x173.jpg 300w, https://jharaphula.com/wp-content/uploads/2016/05/drop-n-drop.jpg 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>You must remember during the age of HTML4 to implement drag and drop feature generally we do Scripting. This problem is addressed in <a href="https://jharaphula.com/category/programming-solutions/html5-examples/" target="_blank" rel="noopener noreferrer">HTML5</a>. Using HTML5 you don&#8217;t need to depend upon Scripts. There are per-defined APIs using which we can easily implement HTML5 Drag and Drop feature. Drag and Drop makes life easier. It saves user Time. <strong>Operations like Copy, Reorder &amp; Deletion</strong> can be more user friendly using Drag and Drop.</p>
<p>Let&#8217;s discuss about the scenario where I have 2 divs. In first div there is an image which I want to drag into the 2nd div. Here my 2nd div acts like a container. Look at the example in below:</p>
<h3>Example</h3>
<pre class="brush: xml; title: ; notranslate">&lt;!DOCTYPE html&gt;
&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot; &gt;
&lt;head&gt;
&lt;title&gt;Example of HTML5 Drag n Drop&lt;/title&gt;
&lt;style type=&quot;text/css&quot;&gt;
.container
{
border: 1px solid #aaaaaa;
height: 152px;
padding: 10px;
margin-right: 10px;
width: 150px;
float:left;
}
&lt;/style&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
function allowDrop(ev) {
ev.preventDefault();
}

function dragImage(ev) {
ev.dataTransfer.setData(&quot;text&quot;, ev.target.id);
}

function dropImage(ev) {
ev.preventDefault();
var data = ev.dataTransfer.getData(&quot;text&quot;);
ev.target.appendChild(document.getElementById(data));
}
&lt;/script&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;div class=&quot;container&quot; ondrop=&quot;dropImg(event)&quot; ondragover=&quot;allowDrop(event)&quot;&gt;&lt;/div&gt;
&lt;div class=&quot;container&quot;&gt;
&lt;img id=&quot;dragimg&quot; draggable=&quot;true&quot; src=&quot;drag-pattern.png&quot; ondragstart=&quot;dragImage(event)&quot;&gt;
&lt;/div&gt;
&lt;/body&gt;
&lt;/html&gt;</pre>
<h3>HTML5 Drag and Drop Events</h3>
<p>HTML5 Drag and Drop API provides the following events.</p>
<p><strong>dragstart</strong>: This event occurs when the user starts dragging the object. Generally we use this event to show errors. I mean if an user dragging object into an area where drop facility is not available using dragstart we can show the error message.</p>
<p><strong>dragenter</strong>: Using mouse while you are dragging an object during that time this event occurs.</p>
<p><strong>dragover</strong>: This event occurs as the mouse is moved over an element during dragging.</p>
<p><strong>dragleave</strong>: This event occurs when the mouse leaves an element during dragging.</p>
<p><strong>drag</strong>: This event occurs every time the mouse is moved during the object is being dragged.</p>
<p><strong>drop</strong>: This event occurs at the end of the drag operation.</p>
<p><strong>dragend</strong>: This event occurs when the user releases the mouse button during dragging.</p>
<p>HTML5 Drag and Drop feature was supported by all the major browsers like Google Chrome 4.0, Mozilla FireFox 3.5, Safari 6.0, Internet Explorer 9.0, Opera 12 &amp; above versions.</p>
<p>The post <a href="https://jharaphula.com/example-html5-drag-and-drop/">Example to Implement HTML5 Drag and Drop with list of Events</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://jharaphula.com/example-html5-drag-and-drop/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			<media:content url="https://jharaphula.com/wp-content/uploads/2016/05/drop-n-drop.jpg" medium="image" />
	</item>
		<item>
		<title>Example to Create responsive Bootstrap 5 image Gallery</title>
		<link>https://jharaphula.com/responsive-bootstrap-image-gallery/</link>
					<comments>https://jharaphula.com/responsive-bootstrap-image-gallery/#respond</comments>
		
		<dc:creator><![CDATA[Nibedita Panda]]></dc:creator>
		<pubDate>Sun, 15 May 2016 12:57:24 +0000</pubDate>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Bootstrap image Gallery]]></category>
		<category><![CDATA[CSS in UI designing]]></category>
		<category><![CDATA[CSS Sprite images]]></category>
		<category><![CDATA[Learn Bootstrap]]></category>
		<category><![CDATA[Responsive Design]]></category>
		<guid isPermaLink="false">http://box.jharaphula.com/?p=1506</guid>

					<description><![CDATA[<img width="300" height="171" src="https://jharaphula.com/wp-content/uploads/2016/05/Gridsby-300x171.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="Example to Create responsive Bootstrap image Gallery" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/Gridsby-300x171.jpg 300w, https://jharaphula.com/wp-content/uploads/2016/05/Gridsby.jpg 700w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>To made CSS easier BootStrap is one of the globally popular Framework. If you are using BootStrap in your application you don&#8217;t need to bother...</p>
<p>The post <a href="https://jharaphula.com/responsive-bootstrap-image-gallery/">Example to Create responsive Bootstrap 5 image Gallery</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></description>
										<content:encoded><![CDATA[<img width="300" height="171" src="https://jharaphula.com/wp-content/uploads/2016/05/Gridsby-300x171.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="Example to Create responsive Bootstrap image Gallery" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/Gridsby-300x171.jpg 300w, https://jharaphula.com/wp-content/uploads/2016/05/Gridsby.jpg 700w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>To made CSS easier BootStrap is one of the globally popular Framework. If you are using <a href="https://jharaphula.com/learn-bootstrap-tutorial-beginners/" target="_blank" rel="noopener noreferrer">BootStrap</a> in your application you don&#8217;t need to bother about the type of devices and their resolutions. Let&#8217;s talk about a photo album. Here to gain better user experience you must required a responsive image gallery. In the below Code I created a Bootstrap image Gallery. This image gallery is completely responsive.</p>
<p>To show you a demo here I used 9 images with resolution 150px-150px. These images are png files. To place these images in a matrix view here I used HTML UL element. LI attribute inside UL element contains BootStrap classes. As you know Grid system of bootstrap is divided into 12 columns. To achieve a gallery view here I placed 6 images in a single row. All these columns divided by col-md-2 (12 Col/6 Images). Including col-md-* for medium scale resolution in my LI I included col-lg-* for Large Screen, col-sm-* for Small Screen &amp; col-xs-*.</p>
<p>Depending upon your application template it may required you need a fixed width image gallery. In this case in the below code you just required to set a width for container class. To align images in center I have two additional classes row-centered &amp; col-centered. To maintain a minimum distance between the walls of image here I used margin: 10px under col-centered class. You can upgrade this value depending upon the image size &amp; gallery width.</p>
<h2>Bootstrap 5 image Gallery Example</h2>
<pre class="brush: xml; title: ; notranslate">&lt;!DOCTYPE html&gt;
&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;
&lt;head&gt;
&lt;title&gt;Responsive Bootstrap image Gallery&lt;/title&gt;
&lt;meta name=&quot;viewport&quot; content=&quot;width=device-width, initial-scale=1&quot;&gt;
&lt;link rel=&quot;stylesheet&quot; href=&quot;https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css&quot; /&gt;
&lt;style type=&quot;text/css&quot;&gt;
.container { width: auto; }
.row-centered { text-align: center; }
.col-centered { display: inline-block; float:none; text-align: left; margin: 10px; }
&lt;/style&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;div class=&quot;container row-centered&quot;&gt;
&lt;ul class=&quot;row list-unstyled&quot;&gt;
&lt;li class=&quot;col-lg-2 col-md-2 col-sm-3 col-xs-4 col-centered&quot;&gt;
&lt;img src=&quot;images/1.png&quot; class=&quot;img-pos img-responsive&quot; /&gt;
&lt;/li&gt;
&lt;li class=&quot;col-lg-2 col-md-2 col-sm-3 col-xs-4 col-centered&quot;&gt;
&lt;img src=&quot;images/2.png&quot; class=&quot;img-pos img-responsive&quot; /&gt;
&lt;/li&gt;
&lt;li class=&quot;col-lg-2 col-md-2 col-sm-3 col-xs-4 col-centered&quot;&gt;
&lt;img src=&quot;images/3.png&quot; class=&quot;img-pos img-responsive&quot; /&gt;
&lt;/li&gt;
&lt;li class=&quot;col-lg-2 col-md-2 col-sm-3 col-xs-4 col-centered&quot;&gt;
&lt;img src=&quot;images/4.png&quot; class=&quot;img-pos img-responsive&quot; /&gt;
&lt;/li&gt;
&lt;li class=&quot;col-lg-2 col-md-2 col-sm-3 col-xs-4 col-centered&quot;&gt;
&lt;img src=&quot;images/5.png&quot; class=&quot;img-pos img-responsive&quot; /&gt;
&lt;/li&gt;
&lt;li class=&quot;col-lg-2 col-md-2 col-sm-3 col-xs-4 col-centered&quot;&gt;
&lt;img src=&quot;images/6.png&quot; class=&quot;img-pos img-responsive&quot; /&gt;
&lt;/li&gt;
&lt;li class=&quot;col-lg-2 col-md-2 col-sm-3 col-xs-4 col-centered&quot;&gt;
&lt;img src=&quot;images/7.png&quot; class=&quot;img-pos img-responsive&quot; /&gt;
&lt;/li&gt;
&lt;li class=&quot;col-lg-2 col-md-2 col-sm-3 col-xs-4 col-centered&quot;&gt;
&lt;img src=&quot;images/8.png&quot; class=&quot;img-pos img-responsive&quot; /&gt;
&lt;/li&gt;
&lt;li class=&quot;col-lg-2 col-md-2 col-sm-3 col-xs-4 col-centered&quot;&gt;
&lt;img src=&quot;images/9.png&quot; class=&quot;img-pos img-responsive&quot; /&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;/body&gt;
&lt;/html&gt;</pre>
<h2>Why Use Bootstrap 5 for Image Galleries?</h2>
<p>Bootstrap 5 simplifies the creation of responsive image galleries by providing pre-built components and classes. Its grid system ensures that galleries adapt seamlessly to different screen sizes, from desktops to mobile devices. Additionally, Bootstrap 5 eliminates the need for extensive custom CSS, making it an ideal choice for developers seeking efficiency without sacrificing aesthetics.</p>
<h2>Conclusion</h2>
<p>Bootstrap 5 provides a robust foundation for creating responsive, visually appealing image galleries with minimal effort. By leveraging its grid system, card components, and third-party plugins, developers can build galleries that adapt seamlessly across devices while maintaining performance and accessibility. Whether you&#8217;re designing a portfolio, e-commerce site, or photo blog, Bootstrap 5’s flexibility ensures your image gallery will look professional and function flawlessly.</p>
<p>With these techniques, you can create a responsive Bootstrap 5 image gallery that enhances user experience while maintaining a clean, modern design. By following best practices in performance optimization and accessibility, your gallery will not only look great but also perform efficiently across all platforms.</p>
<p>The post <a href="https://jharaphula.com/responsive-bootstrap-image-gallery/">Example to Create responsive Bootstrap 5 image Gallery</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://jharaphula.com/responsive-bootstrap-image-gallery/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			<media:content url="https://jharaphula.com/wp-content/uploads/2016/05/Gridsby.jpg" medium="image" />
	</item>
		<item>
		<title>Script for PHP upload image file to Server using move_uploaded_file()</title>
		<link>https://jharaphula.com/script-php-upload-image-file-server/</link>
					<comments>https://jharaphula.com/script-php-upload-image-file-server/#respond</comments>
		
		<dc:creator><![CDATA[Nibedita Panda]]></dc:creator>
		<pubDate>Sun, 15 May 2016 12:52:22 +0000</pubDate>
				<category><![CDATA[Learn PHP with Examples]]></category>
		<category><![CDATA[File Upload to Server]]></category>
		<category><![CDATA[move_uploaded_file]]></category>
		<category><![CDATA[PHP Mail Function]]></category>
		<category><![CDATA[PHP upload Image File]]></category>
		<category><![CDATA[Script for PHP]]></category>
		<guid isPermaLink="false">http://box.jharaphula.com/?p=1501</guid>

					<description><![CDATA[<img width="300" height="187" src="https://jharaphula.com/wp-content/uploads/2016/05/php-file-uploading-300x187.png" class="webfeedsFeaturedVisual wp-post-image" alt="Script for PHP upload image file to Server using move_uploaded_file()" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/php-file-uploading-300x187.png 300w, https://jharaphula.com/wp-content/uploads/2016/05/php-file-uploading.png 746w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>PHP is a high level server side programming language. To upload an image file first you need to update the php.ini file. Open the php.ini...</p>
<p>The post <a href="https://jharaphula.com/script-php-upload-image-file-server/">Script for PHP upload image file to Server using move_uploaded_file()</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></description>
										<content:encoded><![CDATA[<img width="300" height="187" src="https://jharaphula.com/wp-content/uploads/2016/05/php-file-uploading-300x187.png" class="webfeedsFeaturedVisual wp-post-image" alt="Script for PHP upload image file to Server using move_uploaded_file()" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/php-file-uploading-300x187.png 300w, https://jharaphula.com/wp-content/uploads/2016/05/php-file-uploading.png 746w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>PHP is a high level server side <a href="https://jharaphula.com/how-to-become-a-programmer/" rel="noopener noreferrer" target="_blank">programming</a> language. To upload an image file first you need to update the php.ini file. Open the php.ini file. Search &#8220;file_uploads&#8221;. Update the line &#8220;file_uploads = On&#8221;.</p>
<p>Then to upload the file you need to Create HTML. Look at the example below. Here I have a input type=&#8221;file&#8221; control &amp; a submit button. Both these controls are inside the form element. With form I am using post method to send my image files to the server. Finally after successful uploading showing File Name, Size &amp; Type to the user using a UL li element.</p>
<p>To restrict user on file type to upload I created an array &#8220;expensions&#8221;. Here you can declare any specific file type you want to allow the user. In this example I allowed &#8220;jpeg&#8221;,&#8221;jpg&#8221;,&#8221;png&#8221;.</p>
<p>During file upload to track the errors I am with one more array &#8220;errorlog&#8221;. In case of a failure I am displaying the error details using echo function.</p>
<h3>Script for PHP upload image</h3>
<pre class="brush: php; title: ; notranslate">&lt;?php
if(isset($_FILES['uploader'])){

$errorlog = array();

$fileSize = $_FILES['uploader']['size'];
$fileType = $_FILES['uploader']['type'];
$fileTemp = $_FILES['uploader']['tmp_name'];
$fileName = $_FILES['uploader']['name'];

$fileExtension = strtolower(end(explode('.',$_FILES['uploader']['name'])));

$expensions= array(&quot;jpeg&quot;,&quot;jpg&quot;,&quot;png&quot;);

if(in_array($fileExtension,$expensions)=== false){
$errorlog[] = &quot;This file type is not allowed, Select a JPEG or PNG file.&quot;;
}

if($fileSize &gt; 2097152){
$errorlog[] = 'Your file size is more than 2 MB. Upload a file less then 2 MB.';
}

if(empty($errors)==true){
move_uploaded_file($fileTemp,&quot;images/&quot;.$fileName);
echo &quot;Successfully Uploaded.&quot;;
}
else {
print_r($errorlog);
}
}
?&gt;
&lt;html&gt;
&lt;body&gt;
&lt;form action=&quot;&quot; method=&quot;POST&quot; enctype=&quot;multipart/form-data&quot;&gt;
&lt;input type=&quot;file&quot; name=&quot;uploader&quot; /&gt;
&lt;input type=&quot;submit&quot;/&gt;
&lt;ul&gt;
&lt;li&gt;Sent File - &lt;?php echo $_FILES['uploader']['name']; ?&gt;&lt;/li&gt;
&lt;li&gt;File Size - &lt;?php echo $_FILES['uploader']['size']; ?&gt;&lt;/li&gt;
&lt;li&gt;File Type - &lt;?php echo $_FILES['uploader']['type']; ?&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/form&gt;
&lt;/body&gt;
&lt;/html&gt;</pre>
<p>The post <a href="https://jharaphula.com/script-php-upload-image-file-server/">Script for PHP upload image file to Server using move_uploaded_file()</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://jharaphula.com/script-php-upload-image-file-server/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			<media:content url="https://jharaphula.com/wp-content/uploads/2016/05/php-file-uploading.png" medium="image" />
	</item>
		<item>
		<title>JSON Tutorial for beginners &#8211; Learn JSON with Examples</title>
		<link>https://jharaphula.com/learn-json-tutorial-for-beginners/</link>
					<comments>https://jharaphula.com/learn-json-tutorial-for-beginners/#respond</comments>
		
		<dc:creator><![CDATA[Nibedita Panda]]></dc:creator>
		<pubDate>Sun, 15 May 2016 12:50:59 +0000</pubDate>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Formatted JSON]]></category>
		<category><![CDATA[How to read JSON]]></category>
		<category><![CDATA[JSON Tutorial for beginners]]></category>
		<category><![CDATA[JSON with Examples]]></category>
		<category><![CDATA[Learn JSON]]></category>
		<category><![CDATA[Syntax Rule for JSON]]></category>
		<guid isPermaLink="false">http://box.jharaphula.com/?p=1499</guid>

					<description><![CDATA[<img width="300" height="197" src="https://jharaphula.com/wp-content/uploads/2016/05/json-for-absolute-beginners-300x197.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="JSON Tutorial for beginners - Learn JSON with Examples" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/json-for-absolute-beginners-300x197.jpg 300w, https://jharaphula.com/wp-content/uploads/2016/05/json-for-absolute-beginners-182x120.jpg 182w, https://jharaphula.com/wp-content/uploads/2016/05/json-for-absolute-beginners-106x70.jpg 106w, https://jharaphula.com/wp-content/uploads/2016/05/json-for-absolute-beginners.jpg 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>JavaScript Object Notation (JSON) is a text-based open standard data exchange platform. It is popular due to its easy to use &#38; lightweight to handle....</p>
<p>The post <a href="https://jharaphula.com/learn-json-tutorial-for-beginners/">JSON Tutorial for beginners &#8211; Learn JSON with Examples</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></description>
										<content:encoded><![CDATA[<img width="300" height="197" src="https://jharaphula.com/wp-content/uploads/2016/05/json-for-absolute-beginners-300x197.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="JSON Tutorial for beginners - Learn JSON with Examples" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/json-for-absolute-beginners-300x197.jpg 300w, https://jharaphula.com/wp-content/uploads/2016/05/json-for-absolute-beginners-182x120.jpg 182w, https://jharaphula.com/wp-content/uploads/2016/05/json-for-absolute-beginners-106x70.jpg 106w, https://jharaphula.com/wp-content/uploads/2016/05/json-for-absolute-beginners.jpg 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>JavaScript Object Notation (JSON) is a text-based open standard data exchange platform. It is popular due to its easy to use &amp; lightweight to handle. <strong>JSON is self-describing &amp; platform independent</strong>. Today nearly all advanced languages &amp; third party components supports JSON for data interchange. To open or edit a JSON file you required only a text-editor. Father of JSON is Douglas Crockford. Extension for a JSON file is .json. <strong>Media type for JSON is application/json</strong>. This JSON Tutorial is special designed for beginners.</p>
<h3>How to Create a JSON file?</h3>
<p>As we speak above it is very easy to create a JSON file. Open a Notepad &amp; type the following codes. Save it as &lt;Your File Name&gt;.json.</p>
<pre class="brush: jscript; title: ; notranslate">{
&quot;employees&quot;: [	
{
&quot;id&quot;:&quot;996782&quot;,
&quot;name&quot;: &quot;Biswabhusan Panda&quot;,
&quot;designation&quot;: &quot;Project Manager&quot;,
&quot;organization&quot;: &quot;InfoSys&quot;
},
{
&quot;id&quot;:&quot;996787&quot;,
&quot;name&quot;: &quot;Manoj Pal&quot;,
&quot;designation&quot;: &quot;Team Lead&quot;,
&quot;organization&quot;: &quot;Wipro&quot;
}
]
}</pre>
<p>In the above example I created a JSON file for employees. Here for each employee <strong>I declared 4 columns id, name, designation &amp; organization</strong>. Employees is an array object. Here employees array contains 2 elements. I mean details of 2 employee. It can be extend further as per your requirements.</p>
<h3>How JSON is different from XML?</h3>
<p>During development experienced programmers also get confused about which one they need to choose for data exchange. XML or JSON. Lets us compare JSON with XML. Both these languages have some similarities. XML &amp; JSON both are self-describing &amp; hierarchical. During data binding we can fetch XML or JSON in similar ways. In the following matter JSON is rich compare to XML.</p>
<ul>
<li>Like XML tags <strong>JSON never required a end tag</strong>.</li>
<li>Compare to XML JSON is more programmer friendly &amp; easy to learn.</li>
<li>JSON can use Arrays.</li>
</ul>
<h3>Syntax Rule for JSON</h3>
<p>JSON Syntax is derived from JAVASCRIPT. To store data in JSON we use key &amp; value pair. <strong>To represent each data unique in JSON we use commas</strong>. To declare an object according to JSON Syntax rule we need to follow Curly braces. Square brackets hold arrays.</p>
<h3>Datatypes JSON Supports</h3>
<p>JSON support Number (Integer or Floating points), String, Boolean, Array &amp; Objects. We can also store null value in a JSON objects.</p>
<h3>What are the Browsers JSON Supports?</h3>
<p>JSON supports Firefox 3.5, Internet Explorer 8, Google Chrome, Opera 10, Safari 4 or above.</p>
<h3>How to display data from JSON to HTML page?</h3>
<p><a href="https://jharaphula.com/xmlhttprequest-bind-xml-to-html-table/" target="_blank" rel="noopener noreferrer">Using XMLHttpRequest object</a> you can easily display JSON data in HTML. Once the request send to the server in response you will receive all data in the shape of an Array. Here to display records I am using a string variable in my JS function. After string concatenation inside the for loop I am displaying str contents to div using innerHTML method.</p>
<pre class="brush: xml; title: ; notranslate">&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;
&lt;body&gt;
&lt;div id=&quot;displayRecords&quot;&gt;&lt;/div&gt;
&lt;script&gt;
var xmlhttp = new XMLHttpRequest();
var url = &quot;demo.txt&quot;;

xmlhttp.onreadystatechange = function() {
if (xmlhttp.readyState == 4 &amp;&amp; xmlhttp.status == 200) {
var paramArr = JSON.parse(xmlhttp.responseText);
myFunction(paramArr);
}
};
xmlhttp.open(&quot;GET&quot;, url, true);
xmlhttp.send();

function myFunction(myArr) {
var str = &quot;&quot;;
var i;
for(i = 0; i &lt; myArr.length; i++) {
str += '&lt;a href=&quot;' + myArr[i].links + '&quot;&gt;' +
myArr[i].tutorial + '&lt;/a&gt;&lt;br&gt;';
}
document.getElementById(&quot;displayRecords&quot;).innerHTML = str;
}
&lt;/script&gt;
&lt;/body&gt;
&lt;/html&gt;</pre>
<p>The post <a href="https://jharaphula.com/learn-json-tutorial-for-beginners/">JSON Tutorial for beginners &#8211; Learn JSON with Examples</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://jharaphula.com/learn-json-tutorial-for-beginners/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			<media:content url="https://jharaphula.com/wp-content/uploads/2016/05/json-for-absolute-beginners.jpg" medium="image" />
	</item>
		<item>
		<title>Different types of Inheritance in OOPs with Example</title>
		<link>https://jharaphula.com/types-of-inheritance-oops-example/</link>
					<comments>https://jharaphula.com/types-of-inheritance-oops-example/#respond</comments>
		
		<dc:creator><![CDATA[Nibedita Panda]]></dc:creator>
		<pubDate>Sun, 15 May 2016 12:32:54 +0000</pubDate>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Importance of Inheritance]]></category>
		<category><![CDATA[Inheritance in OOPs]]></category>
		<category><![CDATA[Multiple Inheritance]]></category>
		<category><![CDATA[Object Oriented Programming (OPPs)]]></category>
		<category><![CDATA[OOPs with Example]]></category>
		<category><![CDATA[Single Inheritance]]></category>
		<category><![CDATA[Types of Inheritance]]></category>
		<guid isPermaLink="false">http://box.jharaphula.com/?p=1488</guid>

					<description><![CDATA[<img width="300" height="191" src="https://jharaphula.com/wp-content/uploads/2016/05/oops-300x191.png" class="webfeedsFeaturedVisual wp-post-image" alt="Different types of Inheritance in OOPs with Example" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/oops-300x191.png 300w, https://jharaphula.com/wp-content/uploads/2016/05/oops.png 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>Purpose of this session is to share importance of Inheritance. We will discuss about C++ inheritance in short. Also we will discuss the importance different...</p>
<p>The post <a href="https://jharaphula.com/types-of-inheritance-oops-example/">Different types of Inheritance in OOPs with Example</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></description>
										<content:encoded><![CDATA[<img width="300" height="191" src="https://jharaphula.com/wp-content/uploads/2016/05/oops-300x191.png" class="webfeedsFeaturedVisual wp-post-image" alt="Different types of Inheritance in OOPs with Example" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/oops-300x191.png 300w, https://jharaphula.com/wp-content/uploads/2016/05/oops.png 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>Purpose of this session is to share importance of Inheritance. We will <a href="https://jharaphula.com/oops-concepts-with-examples/" target="_blank" rel="noopener noreferrer">discuss about C++</a> inheritance in short. Also we will discuss the importance different types of inheritance with Example.</p>
<h2>What is Inheritance?</h2>
<p>Process of inheritance is, “Object of one class can acquire the properties of another class.”. Lets take an example I have a base class &#8220;birds&#8221;. It has some properties &amp; methods. If I want to distinguish between flying &amp; non-flying birds then these classes can be derived from birds class (As the base class). Because common methods &amp; properties for flying birds &amp; non-flying birds must be there is birds class.</p>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-3497" src="https://jharaphula.com/wp-content/uploads/2016/05/inheritance.png" alt="inheritance" width="757" height="343" srcset="https://jharaphula.com/wp-content/uploads/2016/05/inheritance.png 757w, https://jharaphula.com/wp-content/uploads/2016/05/inheritance-300x136.png 300w" sizes="auto, (max-width: 757px) 100vw, 757px" /><br />
<em>Fig: Example of Inheritance</em></p>
<h2>Example of Inheritance</h2>
<p>Inheritance supported by high level languages like c++, java, c sharp, javascript or python. Here to present you a real-time example I am sharing inheritance in js. In the below Codes I have a person class with 4 properties. I am inheriting Teacher class from the base class person. Teacher class has 5 properties. 4 properties from person class and 1 additional property salary.</p>
<pre class="brush: jscript; title: ; notranslate">// Constructor Class
function person(firstname, lastname, age, gender) {
this.name = { firstname, lastname };
this.age = age;
this.gender = gender;
};
// Prototyping Person Class
person.prototype.greeting = function() {
alert('Hi! I\'m ' + this.name.firstname + '.');
};
var personInstance = new person(&quot;Bikash&quot;, &quot;Dash&quot;, 27, &quot;M&quot;, 20000);
personInstance.greeting();
// Teacher Class inherits from Person Class
function Teacher(firstname, lastname, age, gender, salary) {
person.call(this, firstname, lastname, age, gender);
this.salary = salary;
}
// To assign Person prototype we have to Create Prototype for Teacher
Teacher.prototype = Object.create(person.prototype);
var newTeacher = new Teacher(&quot;Baby&quot;, &quot;Roy&quot;, 26, &quot;F&quot;, 30000);
alert(newTeacher.name[&quot;firstname&quot;]);
alert(newTeacher.gender);
// After Teacher.Prototype only this will work
newTeacher.greeting();</pre>
<p>Here if we alert(Teacher.prototype.constructor); it will show Person Class Constructor. To display Teacher Class Constructor we have to execute the following line of Code.</p>
<pre class="brush: jscript; title: ; notranslate">Teacher.prototype.constructor = Teacher;</pre>
<h2>Types of Inheritance</h2>
<p>There are 5 types of Inheritance available in Object Oriented Programming (OPPs), Those are as below:</p>
<ul>
<li>Single Inheritance</li>
<li>Multilevel Inheritance</li>
<li>Multiple Inheritance</li>
<li>Hierarchical Inheritance</li>
<li>Hybrid Inheritance</li>
</ul>
<h2>1. Single Inheritance</h2>
<p>Single inheritance is very much easy to understand. One class that is derived class extends another class or base class this mechanism is Single inheritance.</p>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-3498" src="https://jharaphula.com/wp-content/uploads/2016/05/single-inheritance.png" alt="single-inheritance" width="757" height="237" srcset="https://jharaphula.com/wp-content/uploads/2016/05/single-inheritance.png 757w, https://jharaphula.com/wp-content/uploads/2016/05/single-inheritance-300x94.png 300w" sizes="auto, (max-width: 757px) 100vw, 757px" /><br />
<em>Fig: Single Inheritance</em></p>
<p>Refer to the above example think you have a base class Office. While Creating an Employee Class for Office related properties you can get in Office class. Here two things comes into picture base class &amp; derived class. This scenario is called Single Inheritance.</p>
<h2>2. Multilevel Inheritance</h2>
<p>One derived class extends from another derived class this mechanism is known as Multilevel Inheritance.</p>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-3500" src="https://jharaphula.com/wp-content/uploads/2016/05/multilevel-inheritance.png" alt="multilevel-inheritance" width="750" height="327" srcset="https://jharaphula.com/wp-content/uploads/2016/05/multilevel-inheritance.png 750w, https://jharaphula.com/wp-content/uploads/2016/05/multilevel-inheritance-300x131.png 300w" sizes="auto, (max-width: 750px) 100vw, 750px" /><br />
<em>Fig: Multilevel Inheritance</em></p>
<p>Sometime it happens a derived class brings property from parent of parent class. Lets talk about your Grand Father here your parents are the derived class for your grand father &amp; you are the derived class for your parents. But you have some properties of your Grand Father.</p>
<h2>3. Multiple Inheritance</h2>
<p>In Multiple Inheritance, there are several base classes with single derived class. The issue with this inheritance is that more than one base class will have to manage by single derived class.</p>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-3501" src="https://jharaphula.com/wp-content/uploads/2016/05/multiple-inheritance.png" alt="multiple-inheritance" width="750" height="327" srcset="https://jharaphula.com/wp-content/uploads/2016/05/multiple-inheritance.png 750w, https://jharaphula.com/wp-content/uploads/2016/05/multiple-inheritance-300x131.png 300w" sizes="auto, (max-width: 750px) 100vw, 750px" /><br />
<em>Fig: Multiple Inheritance</em></p>
<p>In the software projects, Multiple Inheritance is very rarely used. C++ supported the Multiple Inheritance.</p>
<h2>4. Hierarchical Inheritance</h2>
<p>In Hierarchical Inheritance, one class is inherited by more than one class.</p>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-3502" src="https://jharaphula.com/wp-content/uploads/2016/05/hierarchical-inheritance.png" alt="hierarchical-inheritance" width="795" height="404" srcset="https://jharaphula.com/wp-content/uploads/2016/05/hierarchical-inheritance.png 795w, https://jharaphula.com/wp-content/uploads/2016/05/hierarchical-inheritance-300x152.png 300w" sizes="auto, (max-width: 795px) 100vw, 795px" /><br />
<em>Fig: Hierarchical Inheritance</em></p>
<h2>5. Hybrid Inheritance</h2>
<p>Combination of Single Inheritance and Multiple Inheritance are called as Hybrid Inheritance. More than one type of inheritance is used in the different design.</p>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-3503" src="https://jharaphula.com/wp-content/uploads/2016/05/hybrid-inheritance.png" alt="hybrid-inheritance" width="784" height="365" srcset="https://jharaphula.com/wp-content/uploads/2016/05/hybrid-inheritance.png 784w, https://jharaphula.com/wp-content/uploads/2016/05/hybrid-inheritance-300x140.png 300w" sizes="auto, (max-width: 784px) 100vw, 784px" /><br />
<em>Fig: Hybrid Inheritance</em></p>
<h2>Advantages of Inheritance</h2>
<ul>
<li>One of the most important advantage of inheritance is “Re-usability”. Don&#8217;t need to write similar classes for several instances.</li>
<li>Data hiding mechanism. Functionality Oriented rather rotate around Codes.</li>
<li>Inheritance makes application code more flexible to change or update.</li>
<li>Overriding – We can able to override the base class methods.</li>
</ul>
<p>The post <a href="https://jharaphula.com/types-of-inheritance-oops-example/">Different types of Inheritance in OOPs with Example</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://jharaphula.com/types-of-inheritance-oops-example/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			<media:content url="https://jharaphula.com/wp-content/uploads/2016/05/oops.png" medium="image" />
	</item>
		<item>
		<title>Introduction to HTML5 Web Workers with Example</title>
		<link>https://jharaphula.com/html5-web-workers/</link>
					<comments>https://jharaphula.com/html5-web-workers/#respond</comments>
		
		<dc:creator><![CDATA[Nibedita Panda]]></dc:creator>
		<pubDate>Sun, 15 May 2016 12:26:16 +0000</pubDate>
				<category><![CDATA[Learn HTML5 with Examples]]></category>
		<category><![CDATA[5th revision of HTML]]></category>
		<category><![CDATA[Document Object Model]]></category>
		<category><![CDATA[HTML5 Web Workers]]></category>
		<category><![CDATA[Introduction to HTML5]]></category>
		<category><![CDATA[List of HTML5 new Tags]]></category>
		<category><![CDATA[Web Workers with Example]]></category>
		<guid isPermaLink="false">http://box.jharaphula.com/?p=1484</guid>

					<description><![CDATA[<img width="300" height="186" src="https://jharaphula.com/wp-content/uploads/2016/05/html5-web-wroker-example-300x186.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="Introduction to HTML5 Web Workers with Example" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/html5-web-wroker-example-300x186.jpg 300w, https://jharaphula.com/wp-content/uploads/2016/05/html5-web-wroker-example.jpg 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>You must noticed about the execution of JavaScript in a HTML page. Unless until the execution get finish page act like unresponsive. Some time it...</p>
<p>The post <a href="https://jharaphula.com/html5-web-workers/">Introduction to HTML5 Web Workers with Example</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></description>
										<content:encoded><![CDATA[<img width="300" height="186" src="https://jharaphula.com/wp-content/uploads/2016/05/html5-web-wroker-example-300x186.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="Introduction to HTML5 Web Workers with Example" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/html5-web-wroker-example-300x186.jpg 300w, https://jharaphula.com/wp-content/uploads/2016/05/html5-web-wroker-example.jpg 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>You must noticed about the execution of JavaScript in a HTML page. Unless until the execution get finish page act like unresponsive. Some time <strong>it also hang your browser where CPU utilization is high</strong>. To overtake this problem <a href="https://jharaphula.com/category/programming-solutions/html5-examples/" target="_blank" rel="noopener noreferrer">HTML5</a> Introduced Web Workers. Using HTML5 web workers we can execute any number of scripts <strong>independently in background without affecting the page performance</strong>. While a script is executing inside a Web Workers, it cannot access the properties of Document Object Model (DOM). Web Workers allow for long-running scripts that are not interrupted by scripts that respond to clicks or other user interactions.</p>
<h3>Example of Web Workers</h3>
<pre class="brush: xml; title: ; notranslate">&lt;!DOCTYPE html&gt;
&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot; &gt;
&lt;head&gt;
&lt;title&gt;Example of HTML5 Web Worker&lt;/title&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;div&gt;Count numbers: &lt;output id=&quot;showResult&quot;&gt;&lt;/output&gt;&lt;/div&gt;
&lt;button onclick=&quot;startWebWorker()&quot;&gt;Start Web Worker&lt;/button&gt;
&lt;button onclick=&quot;stopWebWorker()&quot;&gt;Stop Web Worker&lt;/button&gt;

&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; IE 9 &amp;amp; pervious versions don't support HTML5 Web Workers.&lt;/p&gt;

&lt;script type=&quot;text/javascript&quot;&gt;
var w;

function startWebWorker() {
if(typeof(Worker) !== &quot;undefined&quot;) {
if(typeof(w) == &quot;undefined&quot;) {
w = new Worker(&quot;web_workers.js&quot;);
}
w.onmessage = function(event) {
document.getElementById(&quot;showResult&quot;).innerHTML = event.data;
};
} else {
document.getElementById(&quot;showResult&quot;).innerHTML = &quot;Sorry, Please update your Browser...&quot;;
}
}

function stopWebWorker() {
w.terminate();
w = undefined;
}
&lt;/script&gt;
&lt;/body&gt;
&lt;/html&gt;</pre>
<h3>How Web Workers Work?</h3>
<p>Using new keyword to initiate a web worker we required the path of a JavaScript file. Which file contains the actual code for operations. In your application if has multiple supporting javascript files, you can import them <strong>importScripts()</strong> method. Communication between web worker and its parent page is done using the postMessage() method. <strong>postMessage()</strong> can accept either a JSON object or string as the argument. Message passed by Web Worker is accessible in main page using <strong>onmessage</strong> event. To stop web worker you can use <strong>terminate()</strong> method.</p>
<h3>How to Create a HTML5 Web Workers File?</h3>
<p>Refer to the above example I have the web worker file is web_workers.js. Look at the below example how I created this js file. Normally we use web workers for more CPU intensive tasks not for simple scripts.</p>
<pre class="brush: jscript; title: ; notranslate">var i = 0;
function countDown() {
    i = i + 1;
    postMessage(i);
    setTimeout(&quot;countDown()&quot;,500);
}
countDown();</pre>
<h3>Which Browsers does it Supports?</h3>
<p>HTML5 Web Workers supported by IE 10, Chrome 4.0, Mozilla Firefox 3.5, Safari 4.0, Opera 11.5 &amp; above versions.</p>
<p>The post <a href="https://jharaphula.com/html5-web-workers/">Introduction to HTML5 Web Workers with Example</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://jharaphula.com/html5-web-workers/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			<media:content url="https://jharaphula.com/wp-content/uploads/2016/05/html5-web-wroker-example.jpg" medium="image" />
	</item>
		<item>
		<title>How to Email large file (more than 32KB) using Oracle?</title>
		<link>https://jharaphula.com/email-large-contents-oracle/</link>
					<comments>https://jharaphula.com/email-large-contents-oracle/#respond</comments>
		
		<dc:creator><![CDATA[Nibedita Panda]]></dc:creator>
		<pubDate>Sun, 15 May 2016 11:36:08 +0000</pubDate>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Email Marketing Strategy]]></category>
		<category><![CDATA[Function to Send Email]]></category>
		<category><![CDATA[How to Email large File?]]></category>
		<category><![CDATA[SMTP Server]]></category>
		<category><![CDATA[UTL_SMTP in Oracle]]></category>
		<guid isPermaLink="false">http://box.jharaphula.com/?p=1446</guid>

					<description><![CDATA[<img width="300" height="183" src="https://jharaphula.com/wp-content/uploads/2016/05/oracle-db-300x183.png" class="webfeedsFeaturedVisual wp-post-image" alt="How to Email large file (more than 32KB) using Oracle?" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/oracle-db-300x183.png 300w, https://jharaphula.com/wp-content/uploads/2016/05/oracle-db.png 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>This document briefly explains about how to send an email with Email with large file more than 32KB of data using oracle. Emails can be...</p>
<p>The post <a href="https://jharaphula.com/email-large-contents-oracle/">How to Email large file (more than 32KB) using Oracle?</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></description>
										<content:encoded><![CDATA[<img width="300" height="183" src="https://jharaphula.com/wp-content/uploads/2016/05/oracle-db-300x183.png" class="webfeedsFeaturedVisual wp-post-image" alt="How to Email large file (more than 32KB) using Oracle?" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/oracle-db-300x183.png 300w, https://jharaphula.com/wp-content/uploads/2016/05/oracle-db.png 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>This document briefly explains about how to send an email with Email with large file more than 32KB of data using oracle. Emails can be sent using built in UTL_SMTP package in Oracle. The mail recipient, subject of the mail and the contents has to be provided. This can be done by the following methods using UTL_SMTP in Oracle.</p>
<p><strong>Opening a new connection for an SMTP server.</strong><br />
UTL_SMTP.OPEN_CONNECTION ();<br />
E.g.  v_conn:= UTL_SMTP.OPEN_CONNECTION (‘smtpconnection’); </p>
<p><strong>Initializing the connection.</strong><br />
UTL_SMTP.helo :=();<br />
E.g.  UTL_SMTP.helo :=( v_conn,’jharaphula.com’); </p>
<p><strong>Initiates the mail transaction within the SMTP server.</strong><br />
UTL_SMTP.mail :=();<br />
E.g.  UTL_SMTP.mail :=( v_conn,’test@jharaphula.com’);</p>
<p><strong>Specifies the recipient of an email message.</strong><br />
UTL_SMTP.rcpt ();<br />
E.g.  UTL_SMTP.rcpt (‘to@jharaphula.com’);</p>
<p><strong>Creating a new session to write an email.</strong><br />
UTL_SMTP.open_data ();<br />
E.g.   UTL_SMTP.open_data (v_conn);</p>
<p><strong>Writing an e-mail message using the above session.</strong><br />
UTL_SMTP.write_data ();<br />
E.g.  UTL_SMTP.write_data (v_conn, ’body’);</p>
<p><strong>Closing the session once the email message has finished writing.</strong><br />
UTL_SMTP.close_data ();<br />
E.g. UTL_SMTP.close_data (v_conn);</p>
<p><strong>Closes the SMTP Connection.</strong><br />
UTL_SMTP.quit ();<br />
E.g. UTL_SMTP.quit (v_conn);</p>
<h3>During Email large file Problem Faced</h3>
<p>The content of the email is stored in a variable with VARCHAR data type. The length of varchar is 32kb. If the <a href="https://jharaphula.com/content-writing-tips-seo-friendly/" rel="noopener noreferrer" target="_blank">content exceeds</a> more than 32Kb the following error occurs “ORA-06502: PL/SQL: numeric or value error: character string buffer too small” error.</p>
<p>We can use CLOB data type which can hold data up to 4 GB. Using CLOB, we will be able to write the email with the content of 4 GB without any errors.  However <a href="https://jharaphula.com/intermediate-guide-email-writing/" rel="noopener noreferrer" target="_blank">while sending an email</a> using UTL_SMTP.write method, the same error occurs. (“ORA-06502: PL/SQL: numeric or value error: character string buffer too small”). This is because, UTL_SMTP.write method does not allow to write the content of the size more than 32kb at a time.</p>
<h3>Resolution</h3>
<p>The below steps will help us to avoid the issue.</p>
<p>When an email body content exceeds 32kb, it can be split and stored in an array variable of varchar data type. Then the array count can be used to loop the same and data can be written into the email using UTL_SMTP.write method.</p>
<p>The UTL_SMTP.write method allows to write 32kb of data at a time and it will concatenate the content of the email before sending.</p>
<pre class="brush: sql; title: ; notranslate">// declaring array variable
DECLARE  
TYPE arr IS VARRAY (5) of VARCHAR (32000);
V_body                 VARCHAR (32000);
V_body_array        arr: = arr (5);
V_count                NUMBER;
V_counter             NUMBER: =1;
V_conn                 UTL_SMTP.CONNECTION;
V_arrlen               NUMBER;

// Split the mail content to store it in an array variable when the limit exceeds 32KB.
FOR CONDITION 
LOOP
V_body=&amp;lt;email content&amp;gt;;
V_count:=V_body. Length;
IF V_count &amp;gt;= 30000 THEN
V_body_array. Extend;
V_body_array (v_counter):= v_body;
V_counter:= v_counter +1;
V_count:=0;
V_body:= null;
END IF;
END LOOP;

//initializing the counter
V_counter:=1;
//get array count to assign the variable
V_arrlen:= V_body_array. Count;

//Using while loop to write the data to the UTL_SMTP based on the array count.
WHILE V_arrlen &amp;gt;0  
LOOP
UTL_SMTP.write_data (V_conn, V_body_array (V_counter));
V_counter:= V_counter +1;
V_arrlen:= V_arrlen -1;
END LOOP;</pre>
<p>The post <a href="https://jharaphula.com/email-large-contents-oracle/">How to Email large file (more than 32KB) using Oracle?</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://jharaphula.com/email-large-contents-oracle/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			<media:content url="https://jharaphula.com/wp-content/uploads/2016/05/oracle-db.png" medium="image" />
	</item>
		<item>
		<title>JQuery String Functions (Replace, Substr, IndexOf, lastIndexOf, Substring, &#8230;)</title>
		<link>https://jharaphula.com/jquery-string-functions/</link>
					<comments>https://jharaphula.com/jquery-string-functions/#comments</comments>
		
		<dc:creator><![CDATA[Nibedita Panda]]></dc:creator>
		<pubDate>Sun, 15 May 2016 08:04:48 +0000</pubDate>
				<category><![CDATA[Learn JQuery with Examples]]></category>
		<category><![CDATA[Function in JQuery]]></category>
		<category><![CDATA[IndexOf]]></category>
		<category><![CDATA[JQuery String Functions]]></category>
		<category><![CDATA[lastIndexOf]]></category>
		<category><![CDATA[Substr]]></category>
		<category><![CDATA[toUpperCase]]></category>
		<guid isPermaLink="false">http://box.jharaphula.com/?p=1359</guid>

					<description><![CDATA[<img width="300" height="198" src="https://jharaphula.com/wp-content/uploads/2016/05/jquery-300x198.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="JQuery String Functions (Replace, Substr, IndexOf, lastIndexOf, Substring, ...)" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/jquery-300x198.jpg 300w, https://jharaphula.com/wp-content/uploads/2016/05/jquery-1024x677.jpg 1024w, https://jharaphula.com/wp-content/uploads/2016/05/jquery-182x120.jpg 182w, https://jharaphula.com/wp-content/uploads/2016/05/jquery-106x70.jpg 106w, https://jharaphula.com/wp-content/uploads/2016/05/jquery.jpg 1280w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>Strings are a fundamental data type in programming, and manipulating them efficiently is crucial for web development. jQuery, a fast and concise JavaScript library, simplifies...</p>
<p>The post <a href="https://jharaphula.com/jquery-string-functions/">JQuery String Functions (Replace, Substr, IndexOf, lastIndexOf, Substring, &#8230;)</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></description>
										<content:encoded><![CDATA[<img width="300" height="198" src="https://jharaphula.com/wp-content/uploads/2016/05/jquery-300x198.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="JQuery String Functions (Replace, Substr, IndexOf, lastIndexOf, Substring, ...)" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/jquery-300x198.jpg 300w, https://jharaphula.com/wp-content/uploads/2016/05/jquery-1024x677.jpg 1024w, https://jharaphula.com/wp-content/uploads/2016/05/jquery-182x120.jpg 182w, https://jharaphula.com/wp-content/uploads/2016/05/jquery-106x70.jpg 106w, https://jharaphula.com/wp-content/uploads/2016/05/jquery.jpg 1280w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>Strings are a fundamental data type in programming, and manipulating them efficiently is crucial for web development. jQuery, a fast and concise JavaScript library, simplifies string operations by providing built-in methods and utilities. While jQuery itself does not introduce new string functions, it leverages JavaScript’s native string methods and enhances DOM manipulation, making string handling more intuitive. This article explores common string operations in jQuery, their applications, and best practices.</p>
<p>I remember those day when I am a fresher to programming. To complete my assignments related to string operations I always take help from Google. Sometime to find out a Syntax or Sometime for an Examples. In my view string operations are little bit confusing to freshers. During programming there are several possibilities to do with a string. Some of them are String Concatenation, Finding the position of a Character in a String, Split or retrieve few part of the String.</p>
<p>Let me explain a senario here where you need string operation. Assume from your database you are fetching product descriptions for each products in a HTML page. During this you don&#8217;t want to show whole the product description texts. As per the customer you need to show first 40 charecters from product description string. In this case you need to go for string operations using string functions like substr or substring to extract a part of the string.</p>
<h2>List of JQuery String Functions</h2>
<p>In this session for <a href="https://jharaphula.com/top-jquery-interview-questions-with-answers/" target="_blank" rel="noopener noreferrer">beginner of Jquery</a> to make their journey easier I am explaining all the Jquery String Functions in details. The programming language I used here is Jquery. But keep remember theoretically fundamentals of String Operations are same for all languages. In implementation only Syntax&#8217;s are differ.</p>
<h2>charAt(n)</h2>
<p>In a String array to know the Character of a specific index we use charAt() function. Let&#8217;s take an example you have a string &#8220;THIS IS A TABLE.&#8221;. In this String if I want to know the Character of index 3 charAt() function can did that. Look the example below.</p>
<pre class="brush: jscript; title: ; notranslate">var myStr = &quot;THIS IS A TABLE.&quot;;
var ch = myStr.charAt(3);</pre>
<p><em>Output will be</em> : S</p>
<p>charAt() function accepts integer value as the param &amp; returns String Character. charAt(n) calculates index starting from 0.</p>
<h2>String Function charCodeAt(n)</h2>
<p>charCodeAt() works similarly like chatAt() function. The only difference is while charAt() returns Character of a specific index charCodeAt() returns Unicode of the Character. Look at the example below.</p>
<pre class="brush: jscript; title: ; notranslate">var myStr = &quot;THIS IS A TABLE.&quot;;
var ch = myStr.charCodeAt(1);</pre>
<p><em>Output will be</em> : 72</p>
<p>72 is the Unicode for Capital H. charCodeAt() accepts integer as the param &amp; returns Unicode value.</p>
<h2>concat(string1, string2, .., stringN)</h2>
<p>String Concatenation is a very common used String operation. Let&#8217;s take a case where in two variables you are getting name of a person. First Name &amp; Last Name. In this case to display the whole name we required to do string Concatenation operation. Look at the example below.</p>
<pre class="brush: jscript; title: ; notranslate">var strFirstName = &quot;Biswabhusan &quot;;
var strLastName = &quot;Panda&quot;;
var wlcmMsg = &quot;You are welcome!&quot;;
var ch = strFirstName.concat(strLastName, &quot; &quot;, wlcmMsg);</pre>
<p><em>Output will be</em> : Biswabhusan Panda You are welcome!</p>
<p>Using Jquery concat() method (<em>Originally derived from JavaScript</em> ) you can concatenate n number of strings. This method accepts n number of strings as parameters. To apply this method choose the first string variable &amp; then concatenate others.</p>
<h2>fromCharCode(n1, n2, &#8230;, nX)</h2>
<p>Refer to the method name fromCharCode() it Converts Unicode value to Character. This is a static method of String object. To use this method you can use String.fromCharCode(). Look at the example below.</p>
<pre class="brush: jscript; title: ; notranslate">var ch = String.fromCharCode(67);</pre>
<p><em>Output will be</em> : C</p>
<p>This function accepts n number of Unicode values.</p>
<h2>String Function indexOf(searchvalue, [start])</h2>
<p>indexOf() method returns the position of a specific value in a string. It return -1 if the value not found in string. While checking the value in string this method considers uppercase &amp; lowercase characters. Using this method we can know whether a specific word exist in the string or not. Look at the example below.</p>
<pre class="brush: jscript; title: ; notranslate">var myStr=&quot;Hello, You are welcome to the my blog.&quot;;
var ch=myStr.indexOf(&quot;welcome&quot;);</pre>
<p><em>Output will be</em> : 14</p>
<p>indexOf() accepts 2 parameters. First parameter is the keyword you want to search in the string. Second parameter is from which index you want to search rest of the string. By default this is 0. 0 means you are searching the string from the beginning.</p>
<h2>lastIndexOf(searchvalue, [start])</h2>
<p>lastIndexOf() method work in similar fashion of indexOf() method. The only difference is it shows the searched value position at the last occurrence of the string. For an example if in a String &#8220;welcome&#8221; appears two times lastIndexOf() method returns the 2nd occurrence of welcome. If searched value not exist in the string it returns -1. This is case sensitive. Welcome is not equal to welcome. While returning the index it counts from the beginning of the string.</p>
<pre class="brush: jscript; title: ; notranslate">var myStr=&quot;This is Biswabhusan Panda, You can only Call Biswabhusan.&quot;;
var ch=myStr.lastIndexOf(&quot;Biswabhusan&quot;);</pre>
<p><em>Output will be</em> : 44</p>
<p>lastIndexOf() accepts 2 parameters like indexOf() method. First parameter is the keyword you want to search in the string. Second parameter is from which index you want to search rest of the string. By default this is 0. 0 means you are searching the string from the beginning.</p>
<h2>substr(start, [length])</h2>
<p>substr() string function used to retrieve part of a string. This function accepts 2 parameters start &amp; length in integer value. Start says from which index you want the part of the string. Length is the number of characters you want from the start index. Let&#8217;s take an example. I have a string &#8220;My Car is blue.&#8221;. In this string if I am applying substr(2, 3) it will return Car.</p>
<pre class="brush: jscript; title: ; notranslate">var myStr=&quot;My Car is blue.&quot;;
var ch=myStr.substr(2, 3);</pre>
<p><em>Output will be</em> : Car</p>
<h2>Popular String Function substring(from, [to])</h2>
<p>substring() works similarly like substr(). But while substr() accepts Start &amp; Length as the parameters substring() accepts From &amp; To. From is the index from which you want your part of the string. To is the index upto which you want to retrieve in part of the string. Let&#8217;s take the same example as shown in substr. You can see the difference while substr(2, 3) return &#8220;Car&#8221; substring(2, 3) will return &#8220;C&#8221;.</p>
<pre class="brush: jscript; title: ; notranslate">var myStr=&quot;My Car is blue.&quot;;
var ch=myStr.substring(2, 3);</pre>
<p><em>Output will be</em> : C</p>
<h2>toLowerCase()</h2>
<p>toLowerCase() converts uppercase letters to lowercase. If in a string you have mix of upper &amp; lower case letter this function will return that string in lowercase only.</p>
<pre class="brush: jscript; title: ; notranslate">var myStr=&quot;Biswabhusan&quot;;
var ch = myStr.toLowerCase();</pre>
<p><em>Output will be</em> : biswabhusan</p>
<h2>toUpperCase()</h2>
<p>toUpperCase() converts lowercase letters to uppercase. If in a string you have mix of upper &amp; lower case letter this function will return that string in uppercase only.</p>
<pre class="brush: jscript; title: ; notranslate">var myStr=&quot;Biswabhusan&quot;;
var ch = myStr.toUpperCase();</pre>
<p><em>Output will be</em> : BISWABHUSAN</p>
<h2>match(regexp)</h2>
<p>match() function accepts regular expression &amp; returns the matches as an Array Object. Look at the example below.</p>
<pre class="brush: jscript; title: ; notranslate">var myStr=&quot;The rain in SPAIN stays mainly in the plain&quot;;
var ch=myStr.match(/ain/g);</pre>
<p><em>Output will be</em> : ain, ain, ain</p>
<h2>replace(searchvalue, newvalue)</h2>
<p>replace() function is one more <a href="https://jharaphula.com/rc2-md5-byte-128-cryptography-functions/" target="_blank" rel="noopener noreferrer">very useful function</a> of string operation. In-case in a string if you want to replace some characters with another characters this function helps. It accepts 2 parameters. First parameter is the search value &amp; second parameter is the replacement for search value. Look at the example below.</p>
<pre class="brush: jscript; title: ; notranslate">var myStr=&quot;This is an awesome Blog.&quot;;
var ch = myStr.replace(&quot;awesome &quot;,&quot;interesting &quot;);</pre>
<p><em>Output will be</em> : This is an interesting Blog.</p>
<h2>search(searchvalue)</h2>
<p>search() method help to search a specific value in a string. If search value exists in the string it returns the index or else if string doesn&#8217;t contain the value it returns -1.</p>
<pre class="brush: jscript; title: ; notranslate">var myStr = &quot;Welcome to my Blog!&quot;;
var ch = myStr.search(&quot;my&quot;);</pre>
<p><em>Output will be</em> : 11</p>
<h2>slice(start, [end])</h2>
<p>slice() method extract part of the string in a new string. It accepts 2 parameters start &amp; end. Depending upon start &amp; end value it returns the new string.</p>
<pre class="brush: jscript; title: ; notranslate">var myStr = &quot;Visit Jquery Blog!&quot;;
var n = myStr.slice(6, 12);</pre>
<p><em>Output will be</em> : Jquery</p>
<h2>String Function split(separator, [limit])</h2>
<p>split() method used to divide a string from a specific character. It returns sub-strings in array. Split method accepts 2 parameters. Separator &amp; limit. In separator if you use empty char &#8220;&#8221; it will divide all characters individually as a sub-string. Limit is always an integer value which specifies the number of splits.</p>
<pre class="brush: jscript; title: ; notranslate">var myStr = &quot;How are you doing today?&quot;;
var arr = myStr.split(&quot; &quot;,3);</pre>
<p><em>Output will be</em> : How,are,you</p>
<h2>Best Practices</h2>
<p>1. Use Native JavaScript Methods – jQuery does not replace JavaScript’s string functions.<br />
2. Sanitize Inputs – Prevent XSS by escaping user-generated content.<br />
3. Optimize Loops – Avoid excessive string operations in loops.<br />
4. Leverage ES6 Features – Use template literals for cleaner code.</p>
<h2>Conclusion</h2>
<p>jQuery enhances string manipulation by simplifying DOM interactions, but it relies on JavaScript’s native string methods. Understanding these functions—such as `substring()`, `trim()`, and regex—enables efficient text processing in web applications. By combining jQuery’s DOM utilities with JavaScript’s string capabilities, developers can build dynamic, user-friendly interfaces. Mastering these techniques ensures robust and maintainable code for modern web development.</p>
<p>The post <a href="https://jharaphula.com/jquery-string-functions/">JQuery String Functions (Replace, Substr, IndexOf, lastIndexOf, Substring, &#8230;)</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://jharaphula.com/jquery-string-functions/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			<media:content url="https://jharaphula.com/wp-content/uploads/2016/05/jquery-1024x677.jpg" medium="image" />
	</item>
		<item>
		<title>Jquery Mobile Tutorial for Beginners with Examples</title>
		<link>https://jharaphula.com/jquery-mobile-tutorial-beginners-examples/</link>
					<comments>https://jharaphula.com/jquery-mobile-tutorial-beginners-examples/#respond</comments>
		
		<dc:creator><![CDATA[Nibedita Panda]]></dc:creator>
		<pubDate>Sun, 15 May 2016 08:02:01 +0000</pubDate>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Advantages using Jquery]]></category>
		<category><![CDATA[Jquery Mobile Tutorial]]></category>
		<category><![CDATA[Jquery UI]]></category>
		<category><![CDATA[Tutorial for Beginners]]></category>
		<guid isPermaLink="false">http://box.jharaphula.com/?p=1355</guid>

					<description><![CDATA[<img width="300" height="179" src="https://jharaphula.com/wp-content/uploads/2016/05/mobile-programming-300x179.jpeg" class="webfeedsFeaturedVisual wp-post-image" alt="Jquery Mobile Tutorial for Beginners with Examples" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/mobile-programming-300x179.jpeg 300w, https://jharaphula.com/wp-content/uploads/2016/05/mobile-programming.jpeg 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>As a web developer you must aware of today web is more friendly to mobile users. Refer to Google Analytics reports more number of users...</p>
<p>The post <a href="https://jharaphula.com/jquery-mobile-tutorial-beginners-examples/">Jquery Mobile Tutorial for Beginners with Examples</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></description>
										<content:encoded><![CDATA[<img width="300" height="179" src="https://jharaphula.com/wp-content/uploads/2016/05/mobile-programming-300x179.jpeg" class="webfeedsFeaturedVisual wp-post-image" alt="Jquery Mobile Tutorial for Beginners with Examples" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/mobile-programming-300x179.jpeg 300w, https://jharaphula.com/wp-content/uploads/2016/05/mobile-programming.jpeg 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>As a web developer you must aware of today web is more friendly to mobile users. Refer to <a href="https://jharaphula.com/google-analytics-reports-help/" target="_blank" rel="noopener noreferrer">Google Analytics</a> reports more number of users are using mobile devices to visit web. On way of web optimization mobile friendly behavior is mandatory. To look into the above team of JQuery developers come with <a href="https://jquerymobile.com/" target="_blank" rel="nofollow noopener noreferrer">JQuery Mobile framework</a>. The mantra &#8220;Write less, Do more.&#8221; is application to JQuery Mobile. JQuery Mobile is a HTML5 based UI framework to develop mobile friendly responsive web pages. Read below Jquery Mobile Tutorial to get started with Jquery Mobile Framework.</p>
<h2>Advantages of Jquery Mobile</h2>
<p>One of the primary benefits of jQuery Mobile is its efficiency. With fewer lines of code required to achieve desirable functionalities, developers can save significant time without sacrificing quality. This streamlined approach not only speeds up the development process but also allows for easier debugging and maintenance. The simpler the code, the more manageable it is to fix bugs and make updates, which ultimately leads to a more robust final product.</p>
<p>Another notable feature of jQuery Mobile is its strong support for all the latest browsers. In today’s diverse technological landscape, users access applications across a wide range of platforms and devices. jQuery Mobile ensures that developers can create applications that look and function beautifully on any modern browser, enhancing accessibility and user satisfaction. This cross-browser compatibility helps reduce the workload, as developers do not have to create separate versions of an application for each browser.</p>
<ul>
<li>With less line of Code you achieve dream functionalities.</li>
<li>Easy to debug &amp; maintain.</li>
<li>Supports all latest browsers.</li>
<li>Qualified with responsive behaviors.</li>
<li>Jquery mobile is a Touch Optimized mobile framework.</li>
<li>Jquery mobile works for all popular tablets &amp; smartphones.</li>
<li>Available to million Global users &amp; programmer friendly forums.</li>
<li>Plenty of Queries are resolved in Stack Overflow.</li>
</ul>
<p>To get started with Jquery Mobile you need to download Jquery Mobile library from <a href="https://jquerymobile.com/" target="_blank" rel="nofollow noopener noreferrer">https://jquerymobile.com</a>. Or else you can use CDN links as below.</p>
<pre class="brush: xml; title: ; notranslate">&lt;link rel=&quot;stylesheet&quot; href=&quot;http://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.css&quot; /&gt;
&lt;script src=&quot;http://code.jquery.com/jquery-1.11.1.min.js&quot;&gt;&lt;/script&gt;
&lt;script src=&quot;http://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.js&quot;&gt;&lt;/script&gt;</pre>
<p><em>N.B.</em> In script tag I ignored to use type=&#8221;text/javascript&#8221;. This is because of in HTML5 default script language is javascript. We don&#8217;t need to declare this manually.</p>
<h2>Get Started with Jquery Mobile Tutorial</h2>
<p>The wide adoption of jQuery Mobile is also backed by its thriving community. As an open-source project, it boasts a vast number of global users and a community of developers willing to share insights and solutions. Places like Stack Overflow serve as valuable resources, where developers can ask questions and find answers to a plethora of common queries. This collaborative environment not only enriches individual learning experiences but also accelerates problem-solving, leading to higher-quality applications.</p>
<p>To write your first Jquery mobile app you need to refer Jquery mobile CSS, JS &amp; Jquery libraries in the head section of HTML. Including this to ensure proper rendering for touch &amp; zooming functionalities you required to add the following meta tag.</p>
<pre class="brush: xml; title: ; notranslate">&lt;meta name=&quot;viewport&quot; content=&quot;width=device-width, initial-scale=1&quot;&gt;</pre>
<p>This meta tag says content width by default must be equal to the resolution of device &amp; initial-scale make confirm the initial zoom must be 100%.</p>
<h2>Structure of a JQuery Mobile Page</h2>
<pre class="brush: xml; title: ; notranslate">&lt;html&gt;
&lt;head&gt;
&lt;meta name=&quot;viewport&quot; content=&quot;width=device-width, initial-scale=1&quot;&gt;
&lt;link rel=&quot;stylesheet&quot; href=&quot;http://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.css&quot;&gt;
&lt;script src=&quot;http://code.jquery.com/jquery-1.11.1.min.js&quot;&gt;&lt;/script&gt;
&lt;script src=&quot;http://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.js&quot;&gt;&lt;/script&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;div data-role=&quot;page&quot;&gt;
&lt;div data-role=&quot;header&quot;&gt;
&lt;h2&gt;Mobile Homepage&lt;/h2&gt;
&lt;/div&gt;
&lt;div data-role=&quot;main&quot; class=&quot;ui-content&quot;&gt;
&lt;p&gt;My First JQuery Mobile App!&lt;/p&gt;
&lt;/div&gt;
&lt;div data-role=&quot;footer&quot;&gt;
&lt;h2&gt;Footer&lt;/h2&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/body&gt;
&lt;/html&gt;</pre>
<p>In the above code data-role is used to describe the portion of the page. data-role=&#8221;header&#8221; says the block of code we required to write for header part of the page. Similarly body contents the content &amp; footer contains the footer message like copy rights. In Jquery mobile <strong>data-* attribute is used to make &#8220;touch-friendly&#8221; web pages</strong>. To use a <strong>page as dialog we need to declare data-dialog=&#8221;true&#8221;</strong>.</p>
<h2>JQuery Mobile Transition Effects</h2>
<p>In the world of mobile web development, user experience is paramount. A key to fostering smooth navigation is through the use of transition effects. jQuery Mobile, a popular framework for developing mobile-friendly websites, offers an array of transition effects that can significantly enhance the way users interact with your application. In this article, we will explore what jQuery Mobile transition effects are, the types available, and how to implement them for a better user experience.</p>
<p>Transition effects serve to provide visual cues as users navigate from one page to another. They help make the interaction feel seamless, allowing users to understand that they are moving in and out of content. When implemented correctly, these effects can make your application feel more dynamic and engaging.</p>
<p>During we travel from one page to other page transition effects are very useful. Jquery mobile supports various kind of Transition effects. These are <strong>fade</strong>, <strong>flip</strong>, <strong>flow</strong>, <strong>pop</strong>, <strong>slide</strong>, <strong>slidefade</strong>, <strong>slideup</strong>, <strong>slidedown</strong>, <strong>turn</strong> &amp; <strong>none</strong>. To implement transition effect in Jquery Mobile we need to <strong>add data-transition attribute with effect types</strong>. For an example:</p>
<pre class="brush: xml; title: ; notranslate">&lt;div data-role=&quot;main&quot; class=&quot;ui-content&quot;&gt;
&lt;p&gt;Click on the link to watch flip effect.&lt;/p&gt;
&lt;a href=&quot;#secondpage&quot; data-transition=&quot;flip&quot;&gt;Flip to second Page&lt;/a&gt;
&lt;/div&gt;</pre>
<h2>JQuery Mobile Buttons</h2>
<p>JQuery mobile buttons can be created in 3 ways. Using HTML input type, Using button tag with CSS Class &#8220;ui-btn&#8221; &amp; anchor tag with CSS Class &#8220;ui-btn&#8221;. Look at the sample buttons below.</p>
<pre class="brush: xml; title: ; notranslate">&lt;input type=&quot;button&quot; value=&quot;Button Label&quot;&gt;
&lt;button class=&quot;ui-btn&quot;&gt;Button Label&lt;/button&gt;
&lt;a href=&quot;#link&quot; class=&quot;ui-btn&quot;&gt;Button Label&lt;/a&gt;</pre>
<p>ui-btn is a per-defined class of Jquery Mobile. To create group of buttons using jquery mobile you required to keep all your buttons inside a div. For that div add an attribute data-role=&#8221;controlgroup&#8221;.</p>
<p>To create a back button in Jquery mobile you can refer data-rel=&#8221;back&#8221; attribute. Look at the example below.</p>
<pre class="brush: xml; title: ; notranslate">&lt;a href=&quot;#&quot; class=&quot;ui-btn&quot; data-rel=&quot;back&quot;&gt;Go Back&lt;/a&gt;</pre>
<p>Similarly to create inline buttons you need to add class=&#8221;ui-btn ui-btn-inline&#8221; with your anchor link.</p>
<h2>JQuery Mobile Buttons Icons</h2>
<p>Incorporating icons into buttons using the jQuery Mobile framework not only enhances the visual aesthetics of your mobile application but also improves the overall user experience. By utilizing the `ui-icon` class, developers can create intuitive, user-friendly interfaces that are easy to navigate. Whether you’re building an app for a small business or a large enterprise, leveraging jQuery Mobile’s icon capabilities can make a significant difference in how users interact with your application. So, start experimenting with button icons in your next project and see the positive impact they can have!</p>
<p>Like BootStrap vector graphics Jquery mobile framework provides various icons for buttons. To add an icon with your button you need to refer ui-icon class. Look at the example below.</p>
<pre class="brush: xml; title: ; notranslate">&lt;a href=&quot;#link&quot; class=&quot;ui-btn ui-icon-search&quot;&gt;Search&lt;/a&gt;</pre>
<p>Please find the list of common used icons &amp; there class names in Jquery Mobile.</p>
<table>
<tbody>
<tr>
<td><strong>Class Name</strong></td>
<td><strong>Description</strong></td>
</tr>
<tr>
<td>ui-icon-arrow-r</td>
<td>Right Arrow</td>
</tr>
<tr>
<td>ui-icon-arrow-l</td>
<td>Left Arrow</td>
</tr>
<tr>
<td>ui-icon-delete</td>
<td>Delete</td>
</tr>
<tr>
<td>ui-icon-info</td>
<td>Information</td>
</tr>
<tr>
<td>ui-icon-back</td>
<td>Back</td>
</tr>
<tr>
<td>ui-icon-home</td>
<td>Home</td>
</tr>
<tr>
<td>ui-icon-grid</td>
<td>Grid</td>
</tr>
<tr>
<td>ui-icon-alert</td>
<td>Alert</td>
</tr>
<tr>
<td>ui-icon-search</td>
<td>Search</td>
</tr>
<tr>
<td>ui-icon-lock</td>
<td>Lock Symbol</td>
</tr>
<tr>
<td>ui-icon-audio</td>
<td>Speaker</td>
</tr>
</tbody>
</table>
<p>To position icons you can use ui-btn-icon-top, ui-btn-icon-right, ui-btn-icon-left &amp; ui-btn-icon-bottom classes.</p>
<h2>JQuery Mobile Navigation Bar</h2>
<p>Creating a navigation bar in jQuery Mobile is straightforward thanks to the `data-role=&#8221;navbar&#8221;` attribute. With just a few lines of code, you can create an interactive and user-friendly navigation interface for your mobile web application. Understanding and implementing this feature will not only improve your app’s usability but also enhance the overall user experience. As you become more familiar with jQuery Mobile, you&#8217;ll find numerous other ways to optimize your projects effectively.</p>
<p>By simply adding data-role=&#8221;navbar&#8221; attribute you can create navigation bar in Jquery mobile. Look at the example below.</p>
<pre class="brush: xml; title: ; notranslate">&lt;div data-role=&quot;header&quot;&gt;
&lt;div data-role=&quot;navbar&quot;&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;#homelink&quot;&gt;Home&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#secodnpagelink&quot;&gt;Second Page&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#search&quot;&gt;Search&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;/div&gt;</pre>
<p>As a beginner these are the basics to get started with JQuery Mobile framework. If you want to read more in details please refer <a href="http://jquerymobile.com/demos/" target="_blank" rel="noopener noreferrer nofollow">http://jquerymobile.com/demos/</a>.</p>
<p>The post <a href="https://jharaphula.com/jquery-mobile-tutorial-beginners-examples/">Jquery Mobile Tutorial for Beginners with Examples</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://jharaphula.com/jquery-mobile-tutorial-beginners-examples/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			<media:content url="https://jharaphula.com/wp-content/uploads/2016/05/mobile-programming.jpeg" medium="image" />
	</item>
		<item>
		<title>PHP Mail Function to Send Email &#038; Encoded attachments</title>
		<link>https://jharaphula.com/php-mail-send-email-attachments/</link>
					<comments>https://jharaphula.com/php-mail-send-email-attachments/#respond</comments>
		
		<dc:creator><![CDATA[Nibedita Panda]]></dc:creator>
		<pubDate>Sun, 15 May 2016 07:58:57 +0000</pubDate>
				<category><![CDATA[Learn PHP with Examples]]></category>
		<category><![CDATA[Email with Encoded attachments]]></category>
		<category><![CDATA[Function to Send Email]]></category>
		<category><![CDATA[PHP Mail Function]]></category>
		<category><![CDATA[Web Designers]]></category>
		<guid isPermaLink="false">http://box.jharaphula.com/?p=1351</guid>

					<description><![CDATA[<img width="300" height="186" src="https://jharaphula.com/wp-content/uploads/2016/05/send-an-email-300x186.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="PHP mail function to Send email &amp; Encoded attachments" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/send-an-email-300x186.jpg 300w, https://jharaphula.com/wp-content/uploads/2016/05/send-an-email.jpg 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>Email is a cost effective solution to send &#38; receive massages faster &#38; secure. In web application development sending mail is a very common activity....</p>
<p>The post <a href="https://jharaphula.com/php-mail-send-email-attachments/">PHP Mail Function to Send Email &amp; Encoded attachments</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></description>
										<content:encoded><![CDATA[<img width="300" height="186" src="https://jharaphula.com/wp-content/uploads/2016/05/send-an-email-300x186.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="PHP mail function to Send email &amp; Encoded attachments" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/send-an-email-300x186.jpg 300w, https://jharaphula.com/wp-content/uploads/2016/05/send-an-email.jpg 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>Email is a cost effective solution to send &amp; receive massages faster &amp; secure. In web application development sending mail is a very common activity. Whether a on-line job consultancy or an employee management system every where you required email facility. Email is a derived technology of postal service. To send an mail we required To, From at minimum. To means who is going to receive the mail &amp; from is the sender.</p>
<p>Among many web development <a href="https://jharaphula.com/category/programming-solutions/php-demo-apps/" target="_blank" rel="noopener noreferrer">programming languages PHP</a> is popular. It required open source environment to execute. The cause the server cost is less in PHP, compare to other web development technologies. In PHP to send a mail there is a mail() function. Look at the syntax below.</p>
<pre class="brush: xml; title: ; notranslate">mail(to,subject,message,headers,parameters);</pre>
<p>PHP mail() function accepts 5 parameters. First parameter is to whom you want to send the mail. This value is an email id. Next parameter is subject, here you can mention the Title of your message. This param accepts String value. Third parameter is the real message. These 3 parameters are mandatory. Rest 2 headers &amp; parameters are optional. Headers specify the additional headers like Content-type, From, CC &amp; BCC. Last param specify additional parameters to send mail function.</p>
<p>Normally two types of mails we send Text &amp; HTML based. To send text mail when declaring message for mail() function you need to add pure texts like $message = &#8220;This mail body contains simple text message.&#8221;;. But in case you want to send a mail with HTML format in this case if you have a small message you can do in-line HTML while declaring $message. If your message is bigger it was advisable to define a string variable &amp; concatenate HTML entries with message characters. Additionally in header declare content-type to text/html. Look at the example below.</p>
<h3>Example to send HTML format Mail using PHP</h3>
<pre class="brush: php; title: ; notranslate">&lt;html&gt;
&lt;head&gt;
&lt;title&gt;Send HTML format mail using PHP&lt;/title&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;?php
$to = &quot;admin@jharaphula.com&quot;;
$subject = &quot;Demo PHP mail Function&quot;;
$message = &quot;&lt;b&gt;I am a regular reader of jharaphula.&lt;/b&gt;&quot;;
$message .= &quot;&lt;h2&gt;This is the Header.&lt;/h2&gt;&quot;;
$header = &quot;From:customer@yourdomain.com \r\n&quot;;
$header = &quot;Cc:panda.biswabhusan@gmail.com \r\n&quot;;
$header .= &quot;MIME-Version: 1.0\r\n&quot;;
$header .= &quot;Content-type: text/html\r\n&quot;;
$sendMail = mail ($to, $subject, $message, $header);
if($sendMail == true)
{
echo &quot;Your email sent successfully.&quot;;
}
else
{
echo &quot;Email could not be sent.&quot;;
}
?&gt;
&lt;/body&gt;
&lt;/html&gt;</pre>
<h3>Example to send text Mail using PHP</h3>
<pre class="brush: php; title: ; notranslate">&lt;html&gt;
&lt;head&gt;
&lt;title&gt;Send text mail using PHP&lt;/title&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;?php
$to = &quot;admin@jharaphula.com&quot;;
$subject = &quot;Demo PHP mail Function&quot;;
$message = &quot;I am a regular reader of jharaphula. This is a text msg.&quot;;
$header = &quot;From:customer@yourdomain.com \r\n&quot;;
$sendMail = mail ($to, $subject, $message, $header);
if($sendMail == true)
{
echo &quot;Your email sent successfully.&quot;;
}
else
{
echo &quot;Email could not be sent.&quot;;
}
?&gt;
&lt;/body&gt;
&lt;/html&gt;</pre>
<p>During we send a mail we not only send the content but also some time we required to send attachments. Your attachment can be a file or an image too. So let us know how to send attachment using php mail() function.</p>
<p>To send an attachment first thing is to define is the content-type to <strong>multipart/mixed</strong>. Using this mail function will know that the email you are going to send is with an attachment. Then the next thing is when send a file over network to make the file transfer secure you can use php base64_encode() function. Look at the below example.</p>
<h3>Sending attachment using PHP mail function</h3>
<pre class="brush: php; title: ; notranslate">&lt;html&gt;
&lt;head&gt;
&lt;title&gt;Send attachment based email using PHP&lt;/title&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;?php
$to = &quot;admin@jharaphula.com&quot;;
$subject = &quot;This is a demo mail&quot;;
$message = &quot;This message contents file attachment.&quot;;
# Using PHP file funtion Open the file.
$file = fopen( &quot;/tmp/demo.txt&quot;, &quot;r&quot; );
if($file == false)
{
echo &quot;Error in file. Unable to Open.&quot;;
exit();
}
# Read the file and store the content into a variable
$fsize = filesize(&quot;/tmp/demo.txt&quot;);
$fcontent = fread($file, $fsize);

# encode the data for secure transaction and insert \r\n after every 76 chars.
$encoded_Con = chunk_split(base64_encode($fcontent));

# Generate a random 32 bit number using time() function and md5 algorithm.
$number = md5(time());

$header = &quot;From:customer@yourdomain.com\r\n&quot;;
$header .= &quot;MIME-Version: 1.0\r\n&quot;;
$header .= &quot;Content-Type: multipart/mixed; &quot;;
$header .= &quot;boundary=$number\r\n&quot;;
$header .= &quot;--$number\r\n&quot;;

# Define the header information for message section
$header .= &quot;Content-Type: text/plain\r\n&quot;;
$header .= &quot;Content-Transfer-Encoding:8bit\r\n\n&quot;;
$header .= &quot;$message\r\n&quot;;
$header .= &quot;--$number\r\n&quot;;

# Define the header information for attachment section
$header .= &quot;Content-Type:  multipart/mixed; &quot;;
$header .= &quot;name=\&quot;demo.txt\&quot;\r\n&quot;;
$header .= &quot;Content-Transfer-Encoding:base64\r\n&quot;;
$header .= &quot;Content-Disposition:attachment; &quot;;
$header .= &quot;filename=\&quot;demo.txt\&quot;\r\n\n&quot;;
$header .= &quot;$encoded_Con\r\n&quot;;
$header .= &quot;--$number--&quot;;

$sendMail = mail ($to, $subject, &quot;&quot;, $header);
if($sendMail == true)
{
echo &quot;Your email sent successfully.&quot;;
}
else
{
echo &quot;Email could not be sent.&quot;;
}
?&gt;
&lt;/body&gt;
&lt;/html&gt;</pre>
<p>The post <a href="https://jharaphula.com/php-mail-send-email-attachments/">PHP Mail Function to Send Email &amp; Encoded attachments</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://jharaphula.com/php-mail-send-email-attachments/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			<media:content url="https://jharaphula.com/wp-content/uploads/2016/05/send-an-email.jpg" medium="image" />
	</item>
		<item>
		<title>How to use Twitter BootStrap Glyphicons Vector Graphics?</title>
		<link>https://jharaphula.com/use-twitter-bootstrap-glyphicons/</link>
					<comments>https://jharaphula.com/use-twitter-bootstrap-glyphicons/#respond</comments>
		
		<dc:creator><![CDATA[Nibedita Panda]]></dc:creator>
		<pubDate>Sun, 15 May 2016 07:57:18 +0000</pubDate>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[BootStrap]]></category>
		<category><![CDATA[Glyphicons Vector Graphics]]></category>
		<category><![CDATA[JavaScript Framework]]></category>
		<category><![CDATA[Twitter BootStrap Glyphicons]]></category>
		<guid isPermaLink="false">http://box.jharaphula.com/?p=1349</guid>

					<description><![CDATA[<img width="300" height="183" src="https://jharaphula.com/wp-content/uploads/2016/05/bootstrap-logo-300x183.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="How to use Twitter BootStrap Glyphicons vector graphics?" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/bootstrap-logo-300x183.jpg 300w, https://jharaphula.com/wp-content/uploads/2016/05/bootstrap-logo.jpg 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>Twitter BootStrap is an advanced HTML, CSS &#38; JAVASCRIPT framework to develop responsive &#38; mobile friendly web-pages. It is open source &#38; free to use...</p>
<p>The post <a href="https://jharaphula.com/use-twitter-bootstrap-glyphicons/">How to use Twitter BootStrap Glyphicons Vector Graphics?</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></description>
										<content:encoded><![CDATA[<img width="300" height="183" src="https://jharaphula.com/wp-content/uploads/2016/05/bootstrap-logo-300x183.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="How to use Twitter BootStrap Glyphicons vector graphics?" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/bootstrap-logo-300x183.jpg 300w, https://jharaphula.com/wp-content/uploads/2016/05/bootstrap-logo.jpg 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>Twitter BootStrap is an advanced HTML, CSS &amp; JAVASCRIPT framework to develop responsive &amp; mobile friendly web-pages. It is open source &amp; free to use Commercially. To <a href="https://jharaphula.com/learn-bootstrap-tutorial-beginners/" target="_blank" rel="noopener noreferrer">Getting Started with BootStrap</a> you can download the latest version from <a href="http://getbootstrap.com" target="_blank" rel="noopener noreferrer nofollow">http://getbootstrap.com</a>. Do you explored the file structures of BootStrap? It contain 3 major folders CSS, Fonts &amp; JS.</p>
<h3>CSS</h3>
<p>Inside CSS folder you can found bootstrap.css. This is the file where many per-defined CSS classes are there. These classes are Optimized to render on any resolution. Generally when we develop an application we create a main.css file. Which contains 90% common &amp; random used CSS classes. The same concept is reflected on bootstrap.css.</p>
<h3>JS</h3>
<p>JS folder contains bootstrap.js file. Like CSS file this JS file contains some per-defined JAVASCRIPT functions. Using BootStrap JS you can do Transitions, Modal, Dropdown, Scrollspy, Tab, Tooltip etc.</p>
<h3>FONTS</h3>
<p>In this section Glyphicons comes into picture. Bootstrap included 245 more glyphs from the Glyphicon Halflings set to use in developing RWD (Responsive Web Design), mobile-first web pages &amp; Web applications.</p>
<p>A native approach built into bootstrap Glyphicons are useful in develop of the smoothly front-end web development but attractive and rich visual interface. Normally web developers are uses the hard-coded images on front end it causes the page loading &amp; page size. Compare to image use of these vector graphics give better performance. Glyphicons in UI development gives better quality deliverable icon set which renders in all the cross browsers &amp; devices.</p>
<p>Glyphicons comes inside fonts folder of BootStrap. BootStrap provides following types of Glyphicons font files.</p>
<pre class="brush: xml; title: ; notranslate">glyphicons-halflings-regular.eot
glyphicons-halflings-regular.svg
glyphicons-halflings-regular.ttf
glyphicons-halflings-regular.woff
glyphicons-halflings-regular.woff2</pre>
<p>To use the Glyphicons, simply use the following class. Keep remember for an example you want to show an search icon near a text box. In this place to use &#8220;glyphicon-search&#8221; class first use &#8220;glyphicon&#8221; as the parent class then refer to parent class using the child class glyphicon-search. Else only glyphicon-search will not work.</p>
<h3>Example to use BootStrap Glyphicon classes</h3>
<pre class="brush: xml; title: ; notranslate">&lt;span Class=&quot;glyphicon glyphicon-search&quot;&gt;&lt;/span&gt;</pre>
<p>* Mostly recommended html tag for Glyphicons is &lt;span&gt;.</p>
<h3>The disadvantages of image methods</h3>
<ul>
<li>We couldn&#8217;t change the color of the icons.</li>
<li>We couldn&#8217;t change the background-color of the icons.</li>
<li>We couldn&#8217;t change the icon size.</li>
<li>It may causes in the page loading and becomes heavy in page size.</li>
</ul>
<p>So instead of image method web developers moved to use Font-based icons, as this used SVG vector icons which don’t having such circumstances. Glyphicons use the font based icons method.</p>
<h3>BootStrap Glyphicons key advantages</h3>
<ul>
<li>Scalable &#8211; works nicely regardless of client device&#8217;s resolution.</li>
<li>Can change the color with CSS.</li>
<li>Can make animation using CSS.</li>
<li>Can add blow, gloom, and any other CSS property.</li>
<li>Can increase the icon size by increasing the font-size.</li>
<li>Can change icons font by changing font-family in CSS.</li>
</ul>
<pre class="brush: css; title: ; notranslate">@font-face {
font-family: 'Glyphicons Halflings';
src: url('../fonts/glyphicons-halflings-regular.eot'#mz);
src: url('../fonts/glyphicons-halflings-regular.eot?#iefix') format('embedded-opentype'), url('../fonts/glyphicons-halflings-regular.woff'#mz) format('woff'), url('../fonts/glyphicons-halflings-regular.ttf') format('truetype'), url('../fonts/glyphicons-halflings-regular.svg#glyphicons_halflingsregular') format('svg');
}</pre>
<p>CSS connects to font as &#8220;.glyphicon&#8221; base class.</p>
<pre class="brush: css; title: ; notranslate">.glyphicon {
position: relative;
top: 1px;
display: inline-block;
font-family: 'Glyphicons Halflings';
font-style: normal;
font-weight: normal;
}</pre>
<p>it uses an separate base class which connect to a Uni-code.</p>
<pre class="brush: css; title: ; notranslate">.glyphicon-envelop:before {
content: &quot;\2709&quot;;
}</pre>
<p>Note: Internet Explorer 8 and 9 are works, however, please be aware that some CSS3 properties and HTML5 elements are not fully working by these browsers. In addition, Internet Explorer 8 need to add of Respond.js to allow to bear with CSS media queries.</p>
<pre class="brush: xml; title: ; notranslate">&lt;!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries --&gt;
&lt;!-- WARNING: Respond.js doesn't work if you view the page via file:// --&gt;
&lt;!--[if lt IE 9]&gt;
&lt;script src=&quot;https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js&quot;&gt;&lt;/script&gt;
&lt;script src=&quot;https://oss.maxcdn.com/respond/1.4.2/respond.min.js&quot;&gt;&lt;/script&gt;
&lt;![endif]--&gt;</pre>
<p>The post <a href="https://jharaphula.com/use-twitter-bootstrap-glyphicons/">How to use Twitter BootStrap Glyphicons Vector Graphics?</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://jharaphula.com/use-twitter-bootstrap-glyphicons/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			<media:content url="https://jharaphula.com/wp-content/uploads/2016/05/bootstrap-logo.jpg" medium="image" />
	</item>
		<item>
		<title>Using XMLHttpRequest How to Bind Data from XML to HTML Table?</title>
		<link>https://jharaphula.com/xmlhttprequest-bind-xml-to-html-table/</link>
					<comments>https://jharaphula.com/xmlhttprequest-bind-xml-to-html-table/#comments</comments>
		
		<dc:creator><![CDATA[Nibedita Panda]]></dc:creator>
		<pubDate>Sun, 15 May 2016 07:36:40 +0000</pubDate>
				<category><![CDATA[Learn HTML5 with Examples]]></category>
		<category><![CDATA[Bind Data from XML to HTML]]></category>
		<category><![CDATA[How to Bind Data?]]></category>
		<category><![CDATA[JavaScript Developers]]></category>
		<category><![CDATA[Learn XML]]></category>
		<category><![CDATA[XML to HTML Table]]></category>
		<guid isPermaLink="false">http://box.jharaphula.com/?p=1344</guid>

					<description><![CDATA[<img width="300" height="188" src="https://jharaphula.com/wp-content/uploads/2016/05/data-binding-from-xml-300x188.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="Using XMLHttpRequest how to bind data from XML to HTML table" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/data-binding-from-xml-300x188.jpg 300w, https://jharaphula.com/wp-content/uploads/2016/05/data-binding-from-xml.jpg 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>XML is a lightweight platform independent technology to describe data &#38; HTML is responsible to display data as per the user demand. Let&#8217;s take a...</p>
<p>The post <a href="https://jharaphula.com/xmlhttprequest-bind-xml-to-html-table/">Using XMLHttpRequest How to Bind Data from XML to HTML Table?</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></description>
										<content:encoded><![CDATA[<img width="300" height="188" src="https://jharaphula.com/wp-content/uploads/2016/05/data-binding-from-xml-300x188.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="Using XMLHttpRequest how to bind data from XML to HTML table" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/data-binding-from-xml-300x188.jpg 300w, https://jharaphula.com/wp-content/uploads/2016/05/data-binding-from-xml.jpg 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p><a href="https://jharaphula.com/learn-xml-online-tutorial-beginners/" target="_blank" rel="noopener noreferrer">XML is a lightweight platform independent technology</a> to describe data &amp; HTML is responsible to display data as per the user demand. Let’s take a case where you have your employee’s data in a XML file. During development in a HTML page you want to display details of your employees in html table. Here JavaScript &amp; XMLHttpRequest object comes into picture. Yes using JavaScript we can easily bind data from XML to HTML table.</p>
<p>Look at the below example here I have an xml file “employeeDetails.xml” which contain data related employees. In index.html I want to display these data’s in html table. To do show in index.html I implemented some JavaScript. In side script block first I am creating an object for XMLHttpRequest then using its open method fetching data from the xml file. Then from the response object to get each record I am using getElementsByTagName method. Where tag name is the employeeDetails attribute from XML file. After getting employee details executing a loop to fetch all the records. To create table using document.write method &amp; inside the respective tr &amp; td added XML node values.</p>
<h3>xml-to-html-table.htm</h3>
<pre class="brush: xml; title: ; notranslate">&lt;html&gt;
&lt;head&gt;
&lt;style&gt;
table, th, td {
border: thin solid gray;
padding: 5px;
text-align: left;
border-collapse: collapse;
}
&lt;/style&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
if (window.XMLHttpRequest)
{
// for IE7+, Firefox, Google Chrome &amp; Safari
xmlhttp=new XMLHttpRequest();
}
else
{
// for IE6, IE5.
xmlhttp=new ActiveXObject(&quot;Microsoft.XMLHTTP&quot;);
}
xmlhttp.open(&quot;GET&quot;,&quot;employeeDetails.xml&quot;,false);
xmlhttp.send();
xmlDoc=xmlhttp.responseXML;
&amp;nbsp;
document.write(&quot;&lt;table&gt;&lt;tr&gt;&lt;th&gt;Name&lt;/th&gt;&lt;th&gt;Designation&lt;/th&gt;&lt;th&gt;Salary&lt;/th&gt;&lt;/tr&gt;&quot;);
var records=xmlDoc.getElementsByTagName(&quot;employee&quot;);
for (i=0;i&lt;records.length;i++)
{
document.write(&quot;&lt;tr&gt;&lt;td&gt;&quot;);
document.write(records[i].getElementsByTagName(&quot;Name&quot;)[0].childNodes[0].nodeValue);
document.write(&quot;&lt;/td&gt;&lt;td&gt;&quot;);
document.write(records[i].getElementsByTagName(&quot;Designation&quot;)[0].childNodes[0].nodeValue);
document.write(&quot;&lt;/td&gt;&lt;td&gt;&quot;);
document.write(records[i].getElementsByTagName(&quot;Salary&quot;)[0].childNodes[0].nodeValue);
document.write(&quot;&lt;/td&gt;&lt;/tr&gt;&quot;);
}
document.write(&quot;&lt;/table&gt;&quot;);
&lt;/script&gt;
&amp;nbsp;
&lt;/body&gt;
&lt;/html&gt;
&amp;nbsp;</pre>
<h3>employeeDetails.xml</h3>
<pre class="brush: xml; title: ; notranslate">&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
&lt;company&gt;
&lt;employee&gt;
&lt;Name&gt;Biswabhusan Panda&lt;/Name&gt;
&lt;Age&gt;32&lt;/Age&gt;
&lt;Designation&gt;Sr. Process Lead&lt;/Designation&gt;
&lt;Salary&gt;56000&lt;/Salary&gt;
&lt;/ employee&gt;
&lt; employee&gt;
&lt;Name&gt;Shilpa Ghose&lt;/Name&gt;
&lt;Age&gt;23&lt;/Age&gt;
&lt;Designation&gt;HRM&lt;/Designation&gt;
&lt;Salary&gt;26000&lt;/Salary&gt;
&lt;/ employee&gt;
&lt; employee&gt;
&lt;Name&gt;Jaya Mishra&lt;/Name&gt;
&lt;Age&gt;35&lt;/Age&gt;
&lt;Designation&gt;Sr. Technical Lead&lt;/Designation&gt;
&lt;Salary&gt;76000&lt;/Salary&gt;
&lt;/ employee&gt;
&lt;/ company &gt;</pre>
<p>The post <a href="https://jharaphula.com/xmlhttprequest-bind-xml-to-html-table/">Using XMLHttpRequest How to Bind Data from XML to HTML Table?</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://jharaphula.com/xmlhttprequest-bind-xml-to-html-table/feed/</wfw:commentRss>
			<slash:comments>2</slash:comments>
		
		
			<media:content url="https://jharaphula.com/wp-content/uploads/2016/05/data-binding-from-xml.jpg" medium="image" />
	</item>
		<item>
		<title>Learn XML with our Online free XML Tutorial for beginners</title>
		<link>https://jharaphula.com/learn-xml-online-tutorial-beginners/</link>
					<comments>https://jharaphula.com/learn-xml-online-tutorial-beginners/#respond</comments>
		
		<dc:creator><![CDATA[Nibedita Panda]]></dc:creator>
		<pubDate>Sun, 15 May 2016 07:31:37 +0000</pubDate>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Introduction to XML Syntax]]></category>
		<category><![CDATA[Learn XML]]></category>
		<category><![CDATA[Online free XML Tutorial]]></category>
		<category><![CDATA[Tutorial with Example]]></category>
		<category><![CDATA[XML DTD]]></category>
		<category><![CDATA[XML Tutorial for beginners]]></category>
		<guid isPermaLink="false">http://box.jharaphula.com/?p=1339</guid>

					<description><![CDATA[<img width="300" height="191" src="https://jharaphula.com/wp-content/uploads/2016/05/get-started-300x191.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="Learn XML with our Online XML Tutorial for beginners" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/get-started-300x191.jpg 300w, https://jharaphula.com/wp-content/uploads/2016/05/get-started.jpg 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>XML stands for Extensible Markup Language. Extensible means user can defined his own tag. XML was designed by W3C (World Wide Web Consortium). XML is...</p>
<p>The post <a href="https://jharaphula.com/learn-xml-online-tutorial-beginners/">Learn XML with our Online free XML Tutorial for beginners</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></description>
										<content:encoded><![CDATA[<img width="300" height="191" src="https://jharaphula.com/wp-content/uploads/2016/05/get-started-300x191.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="Learn XML with our Online XML Tutorial for beginners" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/get-started-300x191.jpg 300w, https://jharaphula.com/wp-content/uploads/2016/05/get-started.jpg 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>XML stands for <strong>Extensible Markup Language</strong>. Extensible means user can defined his own tag. XML was designed by W3C (<em>World Wide Web Consortium</em>). XML is not a <a href="https://jharaphula.com/category/programming-solutions/" rel="noopener noreferrer" target="_blank">programming</a> language it is a text based markup language to store &amp; define data. <strong>XML was derived from Standard Generalized Markup Language (SGML)</strong>. It is open standard &amp; free to use commercially. For beginners here we are presenting Online XML Tutorial. Learn XML, it&#8217;s easy.</p>
<h3>Use &amp; Advantages of XML</h3>
<ul>
<li>For large websites XML work behind the scene to simplify the creation of HTML documents.</li>
<li>XML is flexible to store &amp; organize data.</li>
<li>Style-sheet can easily merge with XML to create any kind of look n feel.</li>
<li>XML can be used for reloading &amp; off-loading data from databases.</li>
<li>Any kind of data type can be presented using XML.</li>
<li>XML is a lightweight &amp; platform independent technology.</li>
</ul>
<h3>Introduction to XML Syntax</h3>
<p>To start with a XML document the first statement is declaration. In declaration you need to define the version &amp; encoding type for XML. Keep remember <strong>XML is case-sensitive</strong>. &lt;?xml&gt; is not same as &lt;?XML&gt;.</p>
<pre class="brush: xml; title: ; notranslate">&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;</pre>
<p>Then in body you have tags &amp; elements. Look at the example below.</p>
<pre class="brush: xml; title: ; notranslate">&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
&lt;employee&gt;
&lt;name&gt;Biswabhusan Panda&lt;/name&gt;
&lt;organization&gt;Vijayshanti Infotech (p) Ltd.&lt;/organization&gt;
&lt;mobile&gt;9096266548&lt;/mobile&gt;
&lt;/employee&gt;</pre>
<p>Here you can notice there are two kind of information. One is tag &amp; other one is data. I mean under employee tag we have 3 elements name, organization &amp; mobile. Each element contains some data. While reading XML this root node relationship helps in data binding.</p>
<h3>Syntax Rule for XML</h3>
<p><strong>1</strong>. <em>Element Syntax</em> &#8211; While creating a element like tag <strong>never forget to close the tag</strong>. Always check start &amp; end tag must be identical. For an example for element &lt;name&gt; there must be &lt;/name&gt;. XML element name can contain any alphanumeric characters.</p>
<p><strong>2</strong>. <em>Nested Elements</em> &#8211; XML <strong>supports nested elements</strong>. While creating maintain correct hierarchy.</p>
<p><strong>3</strong>. <em>Root Element</em> &#8211; An <strong>XML document can have only one root element</strong>. Inside the root element you can have nested elements. Root Element is similar like database name. This is the unique entry through which you can retrieve data from your XML document.</p>
<p><strong>4</strong>. <em>Case-Sensitive</em> &#8211; XML is case-sensitive. &lt;name&gt; is not equal to &lt;Name&gt;.</p>
<p><strong>5</strong>. <em>Rule for Attributes</em> &#8211; Attribute specify single property of an element. Same attribute can&#8217;t have more then one value. Attributes comes with key value pair. While assigning a value to attribute use quotation mark. For an example encoding=&#8221;UTF-8&#8243;.</p>
<p><strong>6</strong>. <em>XML Text</em> &#8211; To avoid character encoding problems don&#8217;t forget to declare encoding type in your XML file. Whitespace characters (line-breaks, blanks &amp; tabs) must be ignored. Few characters are reserved by the XML syntax itself. So they cannot be used directly. For example &lt; in place of this you can use &amp; lt;.</p>
<p><strong>7</strong>. <em>Comments in XML</em> &#8211; To add comment in your XML file you can use <span style="color: brown"><code>&lt;-- Your Comments --&gt;</code></span>.</p>
<h3>XML Tree</h3>
<p>To prepare a valid XML document its mandatory to follow XML tree structure. Any XML document must contains a parent element which is called root. Followed by root element child &amp; sub-child elements can be added. For an example if I want to display a persona information you can do like the below.</p>
<pre class="brush: xml; title: ; notranslate">&lt;person&gt;
&lt;name&gt;Biswabhusan&lt;/name&gt;
&lt;designation&gt;Sr. Process Lead&lt;/designation&gt;
&lt;address&gt;
&lt;city&gt;Pune&lt;/city&gt;
&lt;state&gt;Maharashtra&lt;/state&gt;
&lt;country&gt;India&lt;/country&gt;
&lt;/address&gt;
&lt;/person&gt;</pre>
<p>Here person is the root element. Name, Designation &amp; Address are the child elements. Under Address City, State &amp; Country are the sub-child elements.</p>
<h3>XML DTD (Document Type Definition)</h3>
<p>XML is a data exchange platform. During data exchange DTD is the technique which helps to validate data for a well formatted XML. DTD can be declare in 2 ways Internally with a XML Document or Externally using a *.dtd file. Using DTD you can verify input data for your XML file. Look at the example below.</p>
<p><em>Internal DTD</em></p>
<pre class="brush: xml; title: ; notranslate">&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
&lt;!DOCTYPE employee [
&lt;!ELEMENT employee (name,age,salary,description)&gt;
&lt;!ELEMENT name (#PCDATA)&gt;
&lt;!ELEMENT age (#PCDATA)&gt;
&lt;!ELEMENT salary (#PCDATA)&gt;
&lt;!ELEMENT description (#PCDATA)&gt;
]&gt;
&lt;employee&gt;
&lt;name&gt;Biswabhusan&lt;/name&gt;
&lt;age&gt;32&lt;/age&gt;
&lt;salary&gt;45,000&lt;/salary&gt;
&lt;description&gt;This is only for Sr. Team Leads.&lt;/description&gt;
&lt;/employee&gt;</pre>
<p>#PCDATA means parse-able text data.</p>
<p><em>External DTD</em></p>
<pre class="brush: xml; title: ; notranslate">&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
&lt;!DOCTYPE note SYSTEM &quot;external.dtd&quot;&gt;
&lt;employee&gt;
&lt;name&gt;Biswabhusan&lt;/name&gt;
&lt;age&gt;32&lt;/age&gt;
&lt;salary&gt;45,000&lt;/salary&gt;
&lt;description&gt;This is only for Sr. Team Leads.&lt;/description&gt;
&lt;/employee&gt;</pre>
<p><strong>external.dtd</strong></p>
<pre class="brush: xml; title: ; notranslate">&lt;!ELEMENT employee (name,age,salary,description)&gt;
&lt;!ELEMENT name (#PCDATA)&gt;
&lt;!ELEMENT age (#PCDATA)&gt;
&lt;!ELEMENT salary (#PCDATA)&gt;
&lt;!ELEMENT description (#PCDATA)&gt;</pre>
<p>The post <a href="https://jharaphula.com/learn-xml-online-tutorial-beginners/">Learn XML with our Online free XML Tutorial for beginners</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://jharaphula.com/learn-xml-online-tutorial-beginners/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			<media:content url="https://jharaphula.com/wp-content/uploads/2016/05/get-started.jpg" medium="image" />
	</item>
		<item>
		<title>How to use Firebug Addon to Monitor, Debug or Edit any Webpage?</title>
		<link>https://jharaphula.com/how-to-use-firebug-addon/</link>
					<comments>https://jharaphula.com/how-to-use-firebug-addon/#respond</comments>
		
		<dc:creator><![CDATA[Nibedita Panda]]></dc:creator>
		<pubDate>Sun, 15 May 2016 07:29:29 +0000</pubDate>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Addon in Mozilla Firefox]]></category>
		<category><![CDATA[Addon to Debug]]></category>
		<category><![CDATA[Addon to Monitor]]></category>
		<category><![CDATA[Firebug]]></category>
		<category><![CDATA[Use Firebug Addon]]></category>
		<guid isPermaLink="false">http://box.jharaphula.com/?p=1337</guid>

					<description><![CDATA[<img width="300" height="191" src="https://jharaphula.com/wp-content/uploads/2016/05/firebug-for-firefox-300x191.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="How to use Firebug addon to monitor, debug or edit any Webpage?" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/firebug-for-firefox-300x191.jpg 300w, https://jharaphula.com/wp-content/uploads/2016/05/firebug-for-firefox.jpg 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>Tools are helpful to save developers time. Looking into the demand of web technology everyday many new tools comes into the market. Among these tools...</p>
<p>The post <a href="https://jharaphula.com/how-to-use-firebug-addon/">How to use Firebug Addon to Monitor, Debug or Edit any Webpage?</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></description>
										<content:encoded><![CDATA[<img width="300" height="191" src="https://jharaphula.com/wp-content/uploads/2016/05/firebug-for-firefox-300x191.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="How to use Firebug addon to monitor, debug or edit any Webpage?" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/firebug-for-firefox-300x191.jpg 300w, https://jharaphula.com/wp-content/uploads/2016/05/firebug-for-firefox.jpg 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>Tools are helpful to save developers time. Looking into the demand of web technology everyday many new tools comes into the market. Among these tools Firebug is a popular one. <strong>Using Firebug a web developers can easily monitor, debug or edit HTML, CSS, JAVASCRIPT or Jquery codes</strong>. To install Firebug you can download the latest version from <a href="https://getfirebug.com/downloads/" target="_blank" rel="noopener noreferrer nofollow">https://getfirebug.com/downloads/</a>. Also you can install Firebug as an addon in Mozilla Firefox. To do this go to Tools &gt; Addons or press CTRL + ALT + A. Search Firebug &amp; install. After successful installation restart your browser. Then press <strong>F12 to open Firebug</strong>. In below read our manual to get started.</p>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-3474" src="https://jharaphula.com/wp-content/uploads/2016/05/Firebug.png" alt="Firebug" width="770" height="235" srcset="https://jharaphula.com/wp-content/uploads/2016/05/Firebug.png 770w, https://jharaphula.com/wp-content/uploads/2016/05/Firebug-300x92.png 300w" sizes="auto, (max-width: 770px) 100vw, 770px" /></p>
<p>There are various tabs available in default window of Firebug. Console, HTML, CSS, Script, DOM &amp; NET. Using Console you can see the error or you can watch value of a print statement. HTML tab will show you the current page HTML source code. Here you can add or edit HTML in real-time. CSS &amp; Script tabs is similar to HTML tab functionality. Using this tabs you can watch related CSS &amp; JS files. If multiple CSS or JS files attached to your page you can use dropdownlist (shown in top bar) to select the required file. DOM tab presents Document object model hierarchy. Net tab is useful to track network related responses.</p>
<h3>How to use Firebug?</h3>
<p>Firebug was a powerful web development tool that allowed developers to inspect, edit, and debug HTML, CSS, and JavaScript in real time. Integrated as a browser add-on for Mozilla Firefox, it provided a crucial set of utilities for front-end developers, enabling them to analyze and optimize their web applications efficiently.</p>
<p><span style="color: red;"><strong>1</strong></span>. Without interacting with the real source code you can use inspect elements to edit HTML &amp; CSS. This process saves lot of time &amp; efforts. Also it reduces the chance of risk to work directly with files. In case you want to test some <strong>HTML or CSS related changes you can do</strong> this <strong>in real-time using Firebug</strong>. Once changes are done properly you can copy the codes to related files.</p>
<p>Let&#8217;s take a case where you want to adjust a div height just similar to an image height. In this case without using Firebug you need to measure the image height &amp; then you will update the height for the div. But using firebug you can update the height attribute in real-time. When the height will look similar you can copy that value to your code file. This approach is programmers friendly &amp; saves time.</p>
<p><span style="color: red;"><strong>2</strong></span>. During development some time it is difficult to know where CSS boxes are located. In this case Firebug is very helpful. Firebug has its <a href="https://jharaphula.com/foods-to-improve-eyesight-healthy-eyes/" target="_blank" rel="noopener noreferrer">own eyes</a>. While you select the block of code it will show you how much areas the CSS box model affects in your HTML. Look at the below image you will get idea how it works.</p>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-3475" title="Firebug to Edit Codes" src="http://box.jharaphula.com/wp-content/uploads/2016/05/Firebug-Sel.png" alt="Firebug to Edit Codes" width="761" height="465" srcset="https://jharaphula.com/wp-content/uploads/2016/05/Firebug-Sel.png 761w, https://jharaphula.com/wp-content/uploads/2016/05/Firebug-Sel-300x183.png 300w" sizes="auto, (max-width: 761px) 100vw, 761px" /></p>
<p><span style="color: red;"><strong>3</strong></span>. To optimize a web page it is mandatory to observe network activity. I mean which process or resource takes how much memory &amp; time to load. Firebug is rich with this facility. Using its network monitoring tool you can easily know which thread breaks performance. To guide you how to perform network checking look at the below image.</p>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-3477" title="Monitor performance using Firebug" src="https://jharaphula.com/wp-content/uploads/2016/05/Firebug-Network.png" alt="Monitor performance using Firebug" width="761" height="382" srcset="https://jharaphula.com/wp-content/uploads/2016/05/Firebug-Network.png 761w, https://jharaphula.com/wp-content/uploads/2016/05/Firebug-Network-300x151.png 300w" sizes="auto, (max-width: 761px) 100vw, 761px" /></p>
<p>Using Firebug network observation tool you can know the Status (Request is Fail or Passed), From which domain response backs, Size of the file &amp; Timeline (How much time the resource need to load).</p>
<p><span style="color: red;"><strong>4</strong></span>. <strong>One more advanced feature of Firebug is it provides JAVASCRIPT &amp; Jquery debugger</strong>. While you run a HTML file this tool will show you how many JAVASCRIPT files are related to that particular HTML page. If in any JS file you want to know the execution you can set breakpoints &amp; debug like a professional debugger.</p>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-3478" title="Firebug to Debug" src="https://jharaphula.com/wp-content/uploads/2016/05/Firebug-JS.png" alt="Firebug to Debug" width="805" height="280" srcset="https://jharaphula.com/wp-content/uploads/2016/05/Firebug-JS.png 805w, https://jharaphula.com/wp-content/uploads/2016/05/Firebug-JS-300x104.png 300w" sizes="auto, (max-width: 805px) 100vw, 805px" /></p>
<p><span style="color: red;"><strong>5</strong></span>. During web development unknowingly we left many errors in page. Thanks to Firebug which helps to detect all those error for a error free web page. To know about the list of errors you page has. Go to Console window &amp; all errors tab.</p>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-3479" title="Error handling Firebug" src="https://jharaphula.com/wp-content/uploads/2016/05/Firebug-Error.png" alt="Error handling Firebug" width="753" height="115" srcset="https://jharaphula.com/wp-content/uploads/2016/05/Firebug-Error.png 753w, https://jharaphula.com/wp-content/uploads/2016/05/Firebug-Error-300x46.png 300w" sizes="auto, (max-width: 753px) 100vw, 753px" /></p>
<p><span style="color: red;"><strong>6</strong></span>. The Document Object Model (DOM) is a great big hierarchy of objects &amp; functions just waiting to be tickled by JavaScript. Firebug helps you find DOM objects quickly and then edit them on the fly.</p>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-3480" title="Firebug Document Object Model" src="https://jharaphula.com/wp-content/uploads/2016/05/Firebug-DOM.png" alt="Firebug Document Object Model" width="768" height="267" srcset="https://jharaphula.com/wp-content/uploads/2016/05/Firebug-DOM.png 768w, https://jharaphula.com/wp-content/uploads/2016/05/Firebug-DOM-300x104.png 300w" sizes="auto, (max-width: 768px) 100vw, 768px" /></p>
<h3>Features of Firebug</h3>
<p>1. <strong>HTML Inspection and Editing</strong> Firebug allowed users to inspect and modify HTML elements on a live webpage. By hovering over elements in the browser, developers could see the corresponding HTML structure in the Firebug panel. They could also edit HTML on the fly, with changes reflected immediately in the browser.</p>
<p>2. <strong>CSS Debugging and Live Editing</strong> The add-on provided a detailed view of CSS rules applied to any element. Developers could modify styles in real time, enabling quick experimentation without altering the source files. This feature was particularly useful for fine-tuning layouts and troubleshooting styling issues.</p>
<p>3. <strong>JavaScript Debugging</strong> Firebug included a robust JavaScript debugger with breakpoints, step-through execution, and variable inspection. Developers could pause script execution, examine call stacks, and identify errors efficiently, making it easier to diagnose and fix bugs.</p>
<p>4. <strong>Network Monitoring</strong> The Net panel in Firebug displayed all HTTP requests made by a webpage, including load times, response codes, and data sizes. This helped developers optimize performance by identifying slow-loading resources or unnecessary requests.</p>
<p>5. <strong>DOM Inspection</strong> The Document Object Model (DOM) panel provided a structured view of the webpage’s DOM tree. Developers could explore properties and methods of JavaScript objects, aiding in debugging and scripting.</p>
<p>6. <strong>Console for Logging and Testing</strong> Firebug’s console allowed developers to log messages, run JavaScript commands, and test snippets of code directly within the browser. It also displayed errors and warnings, making it easier to track issues.</p>
<h2>Advantages of using Firebug</h2>
<h4><strong>Real-Time Feedback</strong></h4>
<p>One of the most significant advantages of Firebug is its ability to provide real-time feedback during web development. Unlike traditional debugging tools that require constant page refreshes, Firebug allows developers to inspect and modify HTML, CSS, and JavaScript on the fly. This immediate feedback loop accelerates the development process by enabling quick identification and resolution of issues. For instance, changes made to CSS properties in the Firebug panel are instantly reflected on the webpage, eliminating the need for manual refreshes. This feature is particularly useful for front-end developers who need to fine-tune layouts, test different design elements, or troubleshoot rendering inconsistencies efficiently.</p>
<p>Additionally, Firebug’s real-time console logs JavaScript errors, network requests, and other runtime data, allowing developers to monitor application behavior without interrupting their workflow. This capability ensures that errors are caught early, reducing debugging time and improving overall code quality.</p>
<h4><strong>User-Friendly Interface</strong></h4>
<p>Firebug’s intuitive and well-organized interface makes it accessible to both novice and experienced developers. The tool is seamlessly integrated into the Firefox browser, providing a familiar environment for users. Its tab-based layout categorizes functionalities such as HTML inspection, CSS editing, JavaScript debugging, and network monitoring, making it easy to navigate between different aspects of web development.</p>
<p>The HTML panel, for example, presents a clean, hierarchical view of the DOM, allowing developers to expand or collapse elements for better readability. Similarly, the CSS panel displays all applied styles in a structured manner, with the ability to toggle individual properties to see their effects. The console panel offers autocomplete suggestions for JavaScript commands, reducing the likelihood of syntax errors and speeding up the coding process.</p>
<p>This user-centric design minimizes the learning curve, enabling developers to focus on problem-solving rather than struggling with complex tool navigation.</p>
<h4><strong>Enhanced Debugging Capabilities</strong></h4>
<p>Firebug excels in providing advanced debugging features that streamline the troubleshooting process. Its JavaScript debugger includes breakpoints, step-through execution, and variable inspection, allowing developers to analyze code execution in detail. By setting breakpoints at critical points in the script, developers can pause execution and examine variable states, call stacks, and scope chains, making it easier to identify logic errors.</p>
<p>The tool also offers a powerful console for executing JavaScript commands directly, which is invaluable for testing snippets of code or experimenting with APIs. Error messages in the console are detailed and often include line numbers, helping developers quickly locate and fix issues.</p>
<p>Another standout feature is the network monitor, which tracks all HTTP requests made by the webpage. Developers can analyze request headers, response headers, payloads, and loading times, which is essential for optimizing performance and diagnosing server-related issues.</p>
<h4><strong>Extensibility</strong></h4>
<p>Firebug’s extensibility is another major advantage, as it supports a wide range of plugins and extensions that enhance its functionality. Developers can customize the tool to suit their specific needs by adding features like color pickers, code validators, or performance analyzers. This modular approach ensures that Firebug remains relevant as web technologies evolve.</p>
<p>The open-source nature of Firebug encourages community contributions, leading to a rich ecosystem of add-ons. Whether it’s integrating with version control systems, supporting new frameworks, or adding accessibility checks, Firebug’s extensibility makes it a versatile tool for diverse development scenarios.</p>
<h2>Legacy and Alternatives</h2>
<p>Firebug played a pivotal role in shaping modern web development tools. Many of its features inspired the developer tools now found in Chrome, Edge, and Safari. Today, tools like Chrome DevTools and Firefox Developer Tools offer even more advanced capabilities, but Firebug remains a milestone in web development history.</p>
<p>For those looking for similar functionality, modern alternatives include:</p>
<p><strong>Chrome DevTools</strong> – A comprehensive suite for debugging and profiling web applications.<br />
<strong>Firefox Developer Tools</strong> – The successor to Firebug, integrated directly into Firefox.<br />
<strong>Microsoft Edge DevTools</strong> – Offers powerful debugging and performance analysis.</p>
<h2>Conclusion</h2>
<p>Firebug revolutionized web development by providing an all-in-one solution for debugging and inspecting web pages. While it is no longer actively maintained, its influence persists in today’s browser-based developer tools. Understanding its features and legacy helps developers appreciate the evolution of web debugging tools and the convenience they now offer. The transition from Firebug to integrated browser tools marks a significant progress in making web development more efficient and accessible.</p>
<p>The post <a href="https://jharaphula.com/how-to-use-firebug-addon/">How to use Firebug Addon to Monitor, Debug or Edit any Webpage?</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://jharaphula.com/how-to-use-firebug-addon/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			<media:content url="https://jharaphula.com/wp-content/uploads/2016/05/firebug-for-firefox.jpg" medium="image" />
	</item>
		<item>
		<title>Create, Remove or Read a PHP Cookie using Setcookie method</title>
		<link>https://jharaphula.com/php-setcookie-remove-check-cookie/</link>
					<comments>https://jharaphula.com/php-setcookie-remove-check-cookie/#comments</comments>
		
		<dc:creator><![CDATA[Nibedita Panda]]></dc:creator>
		<pubDate>Sun, 15 May 2016 07:27:58 +0000</pubDate>
				<category><![CDATA[Learn PHP with Examples]]></category>
		<category><![CDATA[PHP Check Cookie Example]]></category>
		<category><![CDATA[PHP Cookie Examples]]></category>
		<category><![CDATA[PHP Remove Cookies]]></category>
		<category><![CDATA[setcookie]]></category>
		<guid isPermaLink="false">http://box.jharaphula.com/?p=1335</guid>

					<description><![CDATA[<img width="300" height="190" src="https://jharaphula.com/wp-content/uploads/2016/05/php-programming-300x190.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="Create, Remove or Read a PHP Cookie using Setcookie method" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/php-programming-300x190.jpg 300w, https://jharaphula.com/wp-content/uploads/2016/05/php-programming.jpg 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>HTTP is a stateless protocol. During Client Server communication to maintain state we use some techniques. Cookie is one of them. Generally we use Cookies...</p>
<p>The post <a href="https://jharaphula.com/php-setcookie-remove-check-cookie/">Create, Remove or Read a PHP Cookie using Setcookie method</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></description>
										<content:encoded><![CDATA[<img width="300" height="190" src="https://jharaphula.com/wp-content/uploads/2016/05/php-programming-300x190.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="Create, Remove or Read a PHP Cookie using Setcookie method" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/php-programming-300x190.jpg 300w, https://jharaphula.com/wp-content/uploads/2016/05/php-programming.jpg 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>HTTP is a stateless protocol. During Client Server communication to maintain state we use some techniques. Cookie is one of them. Generally we use Cookies to identify an user. When first time user send request to the server in response server sends a set of Cookies. Which browser stores in Client machine. Next time when the same user request again browser send the information store in Cookies. Through which server get to identify the user.</p>
<p>Cookie is a text file. It can store maximum upto 4mb data. While creating a Cookie its mandatory to provide Expiry date. Compare to session Cookies is not secured. <a href="https://jharaphula.com/category/programming-solutions/" target="_blank" rel="noopener noreferrer">For programmers</a> it is advisable to not store secured data in Cookies. PHP is a server side programming language. In this session let us share Cookie related operations using PHP.</p>
<h2>What are Cookies?</h2>
<p>Cookies are small pieces of data stored on a user&#8217;s device by a web browser while browsing a website. They are used to remember user preferences, track sessions, and enhance user experience. In PHP, cookies are a fundamental tool for maintaining state between page loads, as HTTP is a stateless protocol.</p>
<p>In PHP to create a Cookie there is a <strong>setcookie()</strong> method. setcookie accepts 6 parameters. The syntax to create Cookie in PHP is as below.</p>
<pre class="brush: php; title: ; notranslate">setcookie(name, value, expire, path, domain, security);</pre>
<h2>PHP setcookie() method parameters</h2>
<table>
<tbody>
<tr>
<td>name</td>
<td>Using this parameter you can set the name of the Cookie. In future if you want to access value of the Cookie name is required. Physically Cookie name stored in an environment variable HTTP_COOKIE_VARS.</td>
</tr>
<tr>
<td>value</td>
<td>Cookie stores data in key value pair. Key is the name where value is the real data.</td>
</tr>
<tr>
<td>expire</td>
<td>While creating a Cookies we need to decide how long the cookie need to reside in Client machine. This can be set using expire property. By default if you will not set expire time cookie will get destroy after browser get close.</td>
</tr>
<tr>
<td>path</td>
<td>Path specifies the physical directories for which the cookie is valid. Using single forward slash permits the cookie to be valid for all directories.</td>
</tr>
<tr>
<td>domain</td>
<td>Using this property you can specify the domain name in very large domains. By default all cookies are only valid for the host &amp; domain which created them.</td>
</tr>
<tr>
<td>security</td>
<td>This parameter accepts 2 values 1 or 0. By passing 1 you can specify that cookie need to travel only by secure transmission (HTTPS). By passing 0 cookie can be travel using regular HTTP.</td>
</tr>
</tbody>
</table>
<h2>PHP Write Cookie Example using Setcookie</h2>
<pre class="brush: php; title: ; notranslate">&lt;?php
setcookie(&quot;empName&quot;, &quot;Baby Roy&quot;, time()+3600, &quot;/&quot;,&quot;&quot;, 0);
setcookie(&quot;empID&quot;, &quot;996782&quot;, time()+3600, &quot;/&quot;, &quot;&quot;,  0);
?&gt;</pre>
<h2>Read a PHP Cookie?</h2>
<p>There are 2 methods to access Cookies in PHP. $_COOKIE &amp; $HTTP_COOKIE_VARS.</p>
<pre class="brush: php; title: ; notranslate">&lt;?php
echo $HTTP_COOKIE_VARS[&quot;empName&quot;];
echo $_COOKIE[&quot;empID&quot;];
?&gt;</pre>
<h2>PHP Check Cookie Example</h2>
<p>In PHP there is a method <strong>isset()</strong> using this you can know whether there is a Cookie exists or not. Look at the example below.</p>
<pre class="brush: php; title: ; notranslate">&lt;?php
if( isset($_COOKIE[&quot;empName&quot;]))
echo &quot;Welcome &quot; . $_COOKIE[&quot;empName&quot;];
else
echo &quot;No Cookies&quot;;
?&gt;</pre>
<h2>PHP Remove Cookies Example</h2>
<p>To delete a Cookie in PHP you required to set expiry time less than the current time. For an example refer to above we have two cookies empName &amp; empID. To delete these cookies we required to call setcookie() method with expiry time less than the Current time. Look at the example below.</p>
<pre class="brush: php; title: ; notranslate">&lt;?php
setcookie(&quot;empName&quot;, &quot;Baby Roy&quot;, time()-60, &quot;/&quot;,&quot;&quot;, 0);
setcookie(&quot;empID&quot;, &quot;996782&quot;, time()-60, &quot;/&quot;, &quot;&quot;,  0);
?&gt;</pre>
<h2>Common Use Cases for PHP Cookies</h2>
<p>1. Session Management Cookies are often used to maintain user sessions. For example, an e-commerce site might use cookies to keep track of a user’s shopping cart.</p>
<p>2. Personalization Websites use cookies to remember user preferences, such as language settings or theme choices.</p>
<p>3. Tracking and Analytics Cookies help websites gather data on user behavior, enabling improvements in content and marketing strategies.</p>
<h2>Security Considerations</h2>
<p>1. Cross-Site Scripting (XSS) If a cookie is not set with `HttpOnly`, JavaScript can access it, making it vulnerable to XSS attacks.</p>
<p>2. Cross-Site Request Forgery (CSRF) Attackers can manipulate cookies to perform unauthorized actions. Using secure tokens helps mitigate this risk.</p>
<p>3. Data Privacy Compliance Regulations like GDPR require websites to obtain user consent before storing non-essential cookies.</p>
<h2>Best Practices for Using PHP Cookies</h2>
<p>1. Use &#8216;HttpOnly&#8217; and &#8216;Secure&#8217; Flags: Prevent JavaScript access and ensure cookies are transmitted securely.<br />
2. Limit Cookie Lifespan: Avoid setting excessively long expiration times.<br />
3. Encrypt Sensitive Data: Never store passwords or personal information directly in cookies.<br />
4. Validate and Sanitize Input: Prevent malicious data from being stored in cookies.</p>
<h2>Alternatives to PHP Cookies</h2>
<p>1. Sessions PHP sessions store data on the server, making them more secure than cookies. However, they still rely on a session ID stored in a cookie.</p>
<p>2. LocalStorage and SessionStorage JavaScript-based storage options that persist data on the client side but are not sent to the server with every request.</p>
<h2>Conclusion</h2>
<p>PHP cookies are essential for maintaining user state and improving website functionality. By understanding their usage, security implications, and best practices, developers can implement cookies effectively while safeguarding user data. Whether for session management, personalization, or analytics, cookies remain a vital tool in web development when used responsibly.</p>
<p>The post <a href="https://jharaphula.com/php-setcookie-remove-check-cookie/">Create, Remove or Read a PHP Cookie using Setcookie method</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://jharaphula.com/php-setcookie-remove-check-cookie/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			<media:content url="https://jharaphula.com/wp-content/uploads/2016/05/php-programming.jpg" medium="image" />
	</item>
		<item>
		<title>CSS3 Animation Examples using Keyframe and its Properties</title>
		<link>https://jharaphula.com/css3-animation-examples-properties/</link>
					<comments>https://jharaphula.com/css3-animation-examples-properties/#respond</comments>
		
		<dc:creator><![CDATA[Nibedita Panda]]></dc:creator>
		<pubDate>Sun, 15 May 2016 07:26:10 +0000</pubDate>
				<category><![CDATA[CSS Tricks with Examples]]></category>
		<category><![CDATA[Advanced CSS3]]></category>
		<category><![CDATA[CSS3 Animation]]></category>
		<category><![CDATA[CSS3 Animation Examples]]></category>
		<category><![CDATA[CSS3 Animations and Transitions]]></category>
		<category><![CDATA[Examples using keyframe]]></category>
		<guid isPermaLink="false">http://box.jharaphula.com/?p=1333</guid>

					<description><![CDATA[<img width="300" height="181" src="https://jharaphula.com/wp-content/uploads/2016/05/css3-animation-300x181.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="CSS3 Animation Examples using keyframe &amp; Properties" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/css3-animation-300x181.jpg 300w, https://jharaphula.com/wp-content/uploads/2016/05/css3-animation.jpg 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>As you know in the early age of web programming generally we generally do animation using JavaScript, Jquery or Flash. But these methods are having...</p>
<p>The post <a href="https://jharaphula.com/css3-animation-examples-properties/">CSS3 Animation Examples using Keyframe and its Properties</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></description>
										<content:encoded><![CDATA[<img width="300" height="181" src="https://jharaphula.com/wp-content/uploads/2016/05/css3-animation-300x181.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="CSS3 Animation Examples using keyframe &amp; Properties" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/css3-animation-300x181.jpg 300w, https://jharaphula.com/wp-content/uploads/2016/05/css3-animation.jpg 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>As you know in the early age of web programming generally we generally do animation using JavaScript, Jquery or Flash. But these methods are having some limitation. Using JavaScript or Jquery it is required that Client machine need to allow Scripts to run. Similarly using Flash animations frames are not <a href="https://jharaphula.com/category/free-seo-training-tools/" target="_blank" rel="noopener noreferrer">SEO friendly</a>. These problems are addressed in CSS3 animation. Compare to JavaScript &amp; Flash animation CSS3 animation results better performance. To get started with CSS3 animation look at the below CSS3 Animation Examples.</p>
<h3>Examples.htm</h3>
<pre class="brush: xml; title: ; notranslate">&lt;!DOCTYPE html&gt;
&lt;html&gt;
&lt;title&gt;CSS3 Animation Examples using Keyframe&lt;/title&gt;
&lt;head&gt;
&lt;style&gt;
div {
width: 200px;
height: 100px;
background-color: green;
-webkit-animation-name: animationDemo; /* for Google Chrome, Safari, Opera */
-webkit-animation-duration: 4s; /* for Google Chrome, Safari, Opera */
animation-name: animationDemo;
animation-duration: 4s;
}

/* Syntax for Chrome, Safari, Opera */
@-webkit-keyframes animationDemo {
from {background-color: green;}
to {background-color: red;}
}

/* Standard browser syntax */
@keyframes animationDemo {
from {background-color: green;}
to {background-color: red;}
}
&lt;/style&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;div&gt;&lt;/div&gt;
&lt;/body&gt;
&lt;/html&gt;</pre>
<p>In the above block of code I did a small animation using CSS3. I have a div in my HTML page. Initially it has its background color green. Later using CSS3 @keyframes I am updating background color to red. To apply @keyframe on my div I added the animation-name &#8220;animationDemo&#8221;. Then followed by @keyframes I am assigning From &amp; To properties of animationDemo class. In From block I declared the initial state as background color green. Then in To block I am updating background color to red. This example is for demo purpose. Using From &amp; To properties of @keyframes you can implement any kind of animation in CSS3.</p>
<h3>List of CSS3 Animation Properties</h3>
<p>To know more about CSS3 Animation here in below I am describing all its properties. Starting from Animation direction to Speed of animation these properties will help you.</p>
<table>
<tbody>
<tr>
<th>Properties</th>
<th>Description</th>
</tr>
<tr>
<td>@keyframes</td>
<td>@Keyframe comes with From &amp; To parts. To do an animation in this block we can specify the required CSS. From generally contains the default state. Where To contains the final state of animation.</td>
</tr>
<tr>
<td>animation</td>
<td>A shorthand property for setting all the animation properties.</td>
</tr>
<tr>
<td>animation-delay</td>
<td>Some time we required some interval to start animation. For an example after successful submission I want to show a green flag in my page. In this case using animation-delay property we can specifies the interval to start the animation. The default value for this property is 0.</td>
</tr>
<tr>
<td>animation-direction</td>
<td>Animation can occur in any direction. It can be top to bottom or left to right. In case you want reverse, I mean bottom to top or right to left this property helps. Using animation-direction property we can reverse direction or alternate cycles of an animation. Animation direction comes with the following properties normal, reverse, alternate, alternate-reverse, initial &amp; inherit. To know more about these properties you can refer animation-direction properties.</td>
</tr>
<tr>
<td>animation-duration</td>
<td>An animation can be a single cycle or can be repeated cycle. Using animation-duration you can defines how many seconds or milliseconds an animation takes to complete one cycle.</td>
</tr>
<tr>
<td>animation-fill-mode</td>
<td>In case some where you want to stop your animation in this case animation-fill-mode works. This property help to specify a specific style for the element when the animation is not playing.</td>
</tr>
<tr>
<td>animation-iteration-count</td>
<td>In case you want you animation need to repeat for certain number of time in this case you can use this property. Here if you specify the number of times an animation need to play, that animation will repeat this much time.</td>
</tr>
<tr>
<td>animation-name</td>
<td>Defines the name of animation. Which we use for @keyframes.</td>
</tr>
<tr>
<td>animation-play-state</td>
<td>Assume in your animation you want to provide pause button. I mean in between the animation you want to give a facility to the customer that he can pause the animation in any point of time. For this case animation-play-state property is useful. Using this property you can define whether the animation is running or paused.</td>
</tr>
<tr>
<td>animation-timing-function</td>
<td>Specifies the speed curve of the animation.</td>
</tr>
</tbody>
</table>
<p>The post <a href="https://jharaphula.com/css3-animation-examples-properties/">CSS3 Animation Examples using Keyframe and its Properties</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://jharaphula.com/css3-animation-examples-properties/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			<media:content url="https://jharaphula.com/wp-content/uploads/2016/05/css3-animation.jpg" medium="image" />
	</item>
		<item>
		<title>How to Create your Own Jquery Custom plugin using $.fn?</title>
		<link>https://jharaphula.com/how-create-jquery-custom-plugin/</link>
					<comments>https://jharaphula.com/how-create-jquery-custom-plugin/#respond</comments>
		
		<dc:creator><![CDATA[Nibedita Panda]]></dc:creator>
		<pubDate>Sun, 15 May 2016 07:24:41 +0000</pubDate>
				<category><![CDATA[Learn JQuery with Examples]]></category>
		<category><![CDATA[Chaining]]></category>
		<category><![CDATA[Create your Own plugin]]></category>
		<category><![CDATA[Function in JQuery]]></category>
		<category><![CDATA[Jquery Custom plugin]]></category>
		<guid isPermaLink="false">http://box.jharaphula.com/?p=1331</guid>

					<description><![CDATA[<img width="300" height="185" src="https://jharaphula.com/wp-content/uploads/2016/05/custom-jquery-plugin-300x185.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="How to Create your Own Jquery Custom plugin using $.fn?" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/custom-jquery-plugin-300x185.jpg 300w, https://jharaphula.com/wp-content/uploads/2016/05/custom-jquery-plugin.jpg 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>In programming reuse of codes is a best practice. If the similar functionality you are going to use several times in an application it is...</p>
<p>The post <a href="https://jharaphula.com/how-create-jquery-custom-plugin/">How to Create your Own Jquery Custom plugin using $.fn?</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></description>
										<content:encoded><![CDATA[<img width="300" height="185" src="https://jharaphula.com/wp-content/uploads/2016/05/custom-jquery-plugin-300x185.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="How to Create your Own Jquery Custom plugin using $.fn?" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/custom-jquery-plugin-300x185.jpg 300w, https://jharaphula.com/wp-content/uploads/2016/05/custom-jquery-plugin.jpg 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>In programming <strong>reuse of codes is a best practice</strong>. If the similar functionality you are going to use several times in an application it is suggested to create a common function. Modular approach saves programmers time, easy to maintain, debug as well as help to <a href="https://jharaphula.com/best-practices-website-speed-performance/" target="_blank" rel="noopener noreferrer">improves performance of application</a>. The above concept in JQuery is called Plugin. In this session let us explore How to Create your Own Jquery Custom plugin.</p>
<h3>Example of Jquery Custom plugin</h3>
<pre class="brush: jscript; title: ; notranslate">$.fn.bgcolor = function() {
this.css(&quot;background-color&quot;, &quot;#00FF00&quot;);
};
 
$(&quot;div&quot;).bgcolor();</pre>
<p>Refer to the above example here I created a function bgcolor. Inside this function I am updating background color. To implement this after selector you just need to put a dot &amp; the method name. As a advice if you are looking to create your own plugin related to trigonometry calculations, first create a js file with suitable name &amp; there using $.fn add your required functions one by one. This method saves time as well as easy to debug.</p>
<h3>Chaining</h3>
<p>During development sometimes we required to implement 5 to 6 methods for one selector. In this case return this; statement is useful. To make your plugin more friendly with real world it is better to add return this; statement at the end of your functionalities. Look at the example below to know how Chaining works in JQuery.</p>
<pre class="brush: jscript; title: ; notranslate">$.fn.bgcolor = function() {
this.css(&quot;background-color&quot;, &quot;#00FF00&quot;);
return this;
};
 
$(&quot;div&quot;).bgcolor().addClass(&quot;updateBgColor&quot;);</pre>
<h3>Protecting the $ Alias</h3>
<p>$ is a common used variable in JQuery. Some time it conflicts with other libraries. To avoid this while writing your own JQuery plugin keep remember to use like the following example.</p>
<pre class="brush: jscript; title: ; notranslate">(function ( $ ) { $.fn.bgcolor = function() {
this.css(&quot;background-color&quot;, &quot;#00FF00&quot;);
return this;
}; }(jquery));</pre>
<h3>Minimizing repetition of $.fn in your Plugin</h3>
<p>To improve performance of your own plugin it is better to reduce repetition of $.fn as much as you can. Let&#8217;s talk about the below example here from you can know how to avoid unwanted $.fn.</p>
<pre class="brush: jscript; title: ; notranslate">(function($) {
$.fn.whileTrue = function() {
// To Do stuffs while True.
};
$.fn.whileFlase = function() {
// To Do stuffs while False.
};
}(jquery));</pre>
<p>Compare to above it is more better to use the following.</p>
<pre class="brush: jscript; title: ; notranslate">(function($) {
$.fn.WhileAction = function(action) {
if (action === &quot;True&quot;) {
// To Do stuffs while True.
}
if (action === &quot;False&quot;) {
// To Do stuffs while False.
}
};
}(jquery));</pre>
<h3>Use each() Method</h3>
<p>While writing your own plugin if you want to do any manipulating with specific elements then prefer to use .each() to loop through the elements. Look at the example below.</p>
<pre class="brush: jscript; title: ; notranslate">$.fn.myPlugin = function() {
return this.each(function() {
// To Do something for each element here.
});
};</pre>
<p>The post <a href="https://jharaphula.com/how-create-jquery-custom-plugin/">How to Create your Own Jquery Custom plugin using $.fn?</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://jharaphula.com/how-create-jquery-custom-plugin/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			<media:content url="https://jharaphula.com/wp-content/uploads/2016/05/custom-jquery-plugin.jpg" medium="image" />
	</item>
		<item>
		<title>Example of SASS Mixin, Variables, Partials, Inheritance &#038; Nesting</title>
		<link>https://jharaphula.com/example-of-sass-mixin-variables-partials-nesting/</link>
					<comments>https://jharaphula.com/example-of-sass-mixin-variables-partials-nesting/#respond</comments>
		
		<dc:creator><![CDATA[Nibedita Panda]]></dc:creator>
		<pubDate>Sun, 15 May 2016 06:48:41 +0000</pubDate>
				<category><![CDATA[CSS Tricks with Examples]]></category>
		<category><![CDATA[Advanced Features of SASS]]></category>
		<category><![CDATA[Example of SASS]]></category>
		<category><![CDATA[SASS Mixin]]></category>
		<category><![CDATA[SASS Nesting]]></category>
		<category><![CDATA[SASS Variables]]></category>
		<category><![CDATA[Steps to install SASS]]></category>
		<guid isPermaLink="false">http://box.jharaphula.com/?p=1311</guid>

					<description><![CDATA[<img width="300" height="192" src="https://jharaphula.com/wp-content/uploads/2016/05/SASS-in-Windows-300x192.png" class="webfeedsFeaturedVisual wp-post-image" alt="Example of SASS Mixin, Variables, Partials, Inheritance &amp; Nesting" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/SASS-in-Windows-300x192.png 300w, https://jharaphula.com/wp-content/uploads/2016/05/SASS-in-Windows.png 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>Technology updates everyday. I am a UI developer, first time when I heard about SASS I started searching in Google to know &#8220;What is SASS?&#8221;....</p>
<p>The post <a href="https://jharaphula.com/example-of-sass-mixin-variables-partials-nesting/">Example of SASS Mixin, Variables, Partials, Inheritance &#038; Nesting</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></description>
										<content:encoded><![CDATA[<img width="300" height="192" src="https://jharaphula.com/wp-content/uploads/2016/05/SASS-in-Windows-300x192.png" class="webfeedsFeaturedVisual wp-post-image" alt="Example of SASS Mixin, Variables, Partials, Inheritance &amp; Nesting" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/SASS-in-Windows-300x192.png 300w, https://jharaphula.com/wp-content/uploads/2016/05/SASS-in-Windows.png 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>Technology updates everyday. I am a UI developer, first time when I heard about SASS I started searching in Google to know &#8220;What is SASS?&#8221;. Off course I am an expert in CSS but how SASS is different from CSS? What are the advanced feature SASS provides compare to CSS? When CSS is here why SASS is introduced? Like plenty of queries I have at the Starting. Then I explore few advanced features of SASS such as SASS Mixin, SASS Variables, SASS Partials or SASS Nesting. In below sharing all those experiences with Example of SASS features.</p>
<p>The full name of SASS is &#8220;<strong>Syntactically Awesome Stylesheets</strong>&#8220;. It is a <a href="https://jharaphula.com/css3-new-features-gradients-webfonts/" target="_blank" rel="noopener noreferrer">CSS</a> extension language in run-time which is compiled into CSS. Large style sheets can easily maintain by SASS. SCSS is one of two syntax&#8217;s of SASS which uses block formatting like CSS. The extension for SASS file is .scss.</p>
<h3>Steps to install SASS</h3>
<p>To Getting Started with SASS, we need to install it first. Installer version of SASS is SASS gem. In Windows Operating System to run SASS we required <a href="https://www.ruby-lang.org" target="_blank" rel="nofollow noopener noreferrer">Ruby</a> at a min.</p>
<p>From Command line to install Sass gem run the following Command:</p>
<p><em>gem install sass</em></p>
<p>During installation if you found downloading issue, you can download the setup file manually from <a href="https://rubygems.org/gems/sass" target="_blank" rel="noopener noreferrer nofollow">https://rubygems.org/gems/sass</a>.</p>
<p>To run SASS from command line:</p>
<p><em>sass input.scss output.css</em></p>
<p>Sass can watch the changes in the Sass file and update the CSS using the following Command:</p>
<p><em>sass &#8211;watch input.scss:output.css</em></p>
<h3>Advanced Features of SASS</h3>
<p>Sass has introduced the following advanced features:</p>
<ul>
<li>Nesting</li>
<li>Variables</li>
<li>Mixin</li>
<li>Inheritance</li>
<li>Partials</li>
</ul>
<h3>SASS Nesting</h3>
<p>Nesting improves readability by visually representing the HTML structure, reducing redundancy, and making it easier to manage complex styles. However, over-nesting can lead to overly specific selectors, so it should be used judiciously.</p>
<p>In SASS we can able to nest selectors in the same hierarchy as of HTML.</p>
<p><strong>Example of SASS Nesting</strong>:</p>
<table>
<tbody>
<tr>
<td>SCSS code</td>
<td>Output CSS</td>
</tr>
<tr>
<td>
<pre class="brush: css; title: ; notranslate">ul {
list-style: none;
li {
display: inline-block; 
a {
padding: 15px 20px;
}
}
}</pre>
</td>
<td>
<pre class="brush: css; title: ; notranslate">ul {
list-style: none; }
ul li {
display: inline-block; }
ul li a {
padding: 15px 20px; }</pre>
</td>
</tr>
</tbody>
</table>
<h3>SASS Variables</h3>
<p>Variables in SASS allow developers to store reusable values such as colors, fonts, and spacing, making stylesheets more maintainable. In CSS, variables were introduced later (CSS Custom Properties), but SASS has supported them for much longer with broader browser compatibility.</p>
<p>SASS variables are compiled into static values, making them more predictable in older browsers. They also support mathematical operations and can be scoped within selectors, providing greater flexibility.</p>
<p>Using SASS it can possible to store any CSS values to variables. Variable name begins with a dollar($) sign and assignment uses a colon (:). We can do arithmetic operations to variables also.</p>
<p><strong>Example of SASS Variables</strong>:</p>
<table>
<tbody>
<tr>
<td>SCSS code</td>
<td>Output CSS</td>
</tr>
<tr>
<td>
<pre class="brush: css; title: ; notranslate">/*Sass Variables*/
$font-normal: Arial, Verdana;
$primary-color: #DDDDDD;
/*Class*/
body {
font-family:  $font-normal;
background: $primary-color;
}</pre>
</td>
<td>
<pre class="brush: css; title: ; notranslate">body {
font-family:  Arial, Verdana;
background: #DDDDDD; }</pre>
</td>
</tr>
</tbody>
</table>
<h3>SASS Mixin</h3>
<p>In SASS using Mixin technique we can define styles &amp; the same styles can re-used throughout the stylesheet. To make more programmer friendly we can also pass arguments to Mixin.</p>
<p><strong>Example of SASS Mixin</strong>:</p>
<table>
<tbody>
<tr>
<td>SASS code</td>
<td>Output CSS</td>
</tr>
<tr>
<td>
<pre class="brush: css; title: ; notranslate">@mixin border-radius($value) {
-webkit-border-radius: $value;
-moz-border-radius: $value;
-ms-border-radius: $value;
border-radius: $value; }

.button { 
@include border-radius(12px); 
}</pre>
</td>
<td>
<pre class="brush: css; title: ; notranslate">.button {
-webkit-border-radius: 12px;
-moz-border-radius: 12px;
-ms-border-radius: 12px;
border-radius: 12px; }</pre>
</td>
</tr>
</tbody>
</table>
<h3>SASS Inheritance</h3>
<p>SASS inheritance, using `@extend`, allows selectors to inherit styles from another, promoting DRY (Don’t Repeat Yourself) principles. Unlike CSS, where inheritance is limited to native cascading, SASS enables explicit style sharing.</p>
<p>Using @extend selector in SASS we can inherit the styles from an another selector.</p>
<p><strong>Example of SASS Inheritance</strong>:</p>
<table>
<tbody>
<tr>
<td>SASS code</td>
<td>Output CSS</td>
</tr>
<tr>
<td>
<pre class="brush: css; title: ; notranslate">.color-yellow {
color: #fc0;
}
.button {
@extend .color-yellow;
}</pre>
</td>
<td>
<pre class="brush: css; title: ; notranslate">.color-yellow, .button {
color: #fc0; }</pre>
</td>
</tr>
</tbody>
</table>
<h3>SASS Partials</h3>
<p>To made modularization easy SASS introduced partial SASS files technique. A partial SASS file is named with a leading underscore, like _tempvariables.scss. This file is not converted to a CSS file. But we can import partial SASS files with the @import directive.</p>
<p><strong>Example of SASS Partials</strong>:</p>
<pre class="brush: css; title: ; notranslate">@import &quot;tempvariables&quot;;
@import &quot;modules&quot;;</pre>
<h2>Conclusion</h2>
<p>SASS provides significant advantages over traditional CSS with features like nesting, variables, mixins, inheritance, and partials. These tools enhance code maintainability, reduce redundancy, and streamline development workflows. While CSS is essential for web styling, SASS’s advanced functionalities make it a powerful extension for modern developers. By leveraging these features, teams can write cleaner, more efficient, and scalable stylesheets.</p>
<p>The post <a href="https://jharaphula.com/example-of-sass-mixin-variables-partials-nesting/">Example of SASS Mixin, Variables, Partials, Inheritance &#038; Nesting</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://jharaphula.com/example-of-sass-mixin-variables-partials-nesting/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			<media:content url="https://jharaphula.com/wp-content/uploads/2016/05/SASS-in-Windows.png" medium="image" />
	</item>
		<item>
		<title>CSS3 New Features (Gradients, Webfonts, Transitions, Shadow Effects&#8230;)</title>
		<link>https://jharaphula.com/css3-new-features-gradients-webfonts/</link>
					<comments>https://jharaphula.com/css3-new-features-gradients-webfonts/#respond</comments>
		
		<dc:creator><![CDATA[Nibedita Panda]]></dc:creator>
		<pubDate>Sun, 15 May 2016 06:23:45 +0000</pubDate>
				<category><![CDATA[CSS Tricks with Examples]]></category>
		<category><![CDATA[Advanced CSS3]]></category>
		<category><![CDATA[Calc() Function]]></category>
		<category><![CDATA[CSS3 Animations and Transitions]]></category>
		<category><![CDATA[CSS3 Media Queries]]></category>
		<category><![CDATA[CSS3 New Features]]></category>
		<category><![CDATA[Webfonts using CSS3]]></category>
		<guid isPermaLink="false">http://box.jharaphula.com/?p=1286</guid>

					<description><![CDATA[<img width="300" height="190" src="https://jharaphula.com/wp-content/uploads/2016/05/css3-coding-300x190.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="CSS3 New Features (Gradients, Webfonts, Transitions, Shadow Effects...)" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/css3-coding-300x190.jpg 300w, https://jharaphula.com/wp-content/uploads/2016/05/css3-coding.jpg 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>In the world of Software Development more revisions means more features. What ever the Software you develop in the initial stage you need to prepare...</p>
<p>The post <a href="https://jharaphula.com/css3-new-features-gradients-webfonts/">CSS3 New Features (Gradients, Webfonts, Transitions, Shadow Effects&#8230;)</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></description>
										<content:encoded><![CDATA[<img width="300" height="190" src="https://jharaphula.com/wp-content/uploads/2016/05/css3-coding-300x190.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="CSS3 New Features (Gradients, Webfonts, Transitions, Shadow Effects...)" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/css3-coding-300x190.jpg 300w, https://jharaphula.com/wp-content/uploads/2016/05/css3-coding.jpg 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>In the world of Software Development <strong>more revisions means more features</strong>. What ever the Software you develop in the initial stage you need to prepare the basic version. Later depending upon the Customers feedback you need to enhance your Software. The same story happened here, <strong>CSS3 is the third revision of Cascading Style Sheets</strong> (CSS). Initial version of Cascading Style Sheets (CSS V.1) was developed by Bert Bos, Hakon Wium Lie &amp; World Wide Web Consortium (W3C) &amp; released on 17th December 1996. Later further versions (CSS V.2 &amp; CSS V.2.1) released to stay update with market demand. CSS2 run over the market for several years. During this period it was observed that there are some areas where CSS2 can be update. These updates will save programmers time &amp; can help to improve performance in web designing. Let us discuss those CSS3 New Features.</p>
<h3>Calc() Function</h3>
<p>Calc() is a mathematical function. In CSS3 it is used to Calculate values. Let&#8217;s talk about a case where I want a div with width 100% but from right side of browser window I required a gap of 50 pixels. In this case using CSS2 you can do this by declaring div width to 100% &amp; additional you need to set margin for right side of the div. The same you can achieve in CSS3 without setting margin. Here calc() function helps. Look at the class below.</p>
<pre class="brush: css; title: ; notranslate">.myDiv {
/* Using Calc() function to Calculate the width */
width: calc(100% - 50px);
background-color: #DDD;
}</pre>
<h3>Gradients</h3>
<p>You may remember the early age of programming, where to achieve a Gradient horizontal bar we generally do create an image with 1px width &amp; Gradients background colors as we required. Then repeating that image as a background of the div. If any time we required to update the Gradients color, first we need to update that image. Do you don&#8217;t feel this is little bit time consuming job &amp; required more focus to maintain. That&#8217;s why CSS3 introduced a new feature Gradients. Using this you can easily create a Gradient background with a single line of code.</p>
<p>Generally CSS3 <strong>Gradients are 2 types Linear &amp; Radial Gradient</strong>. Linear Gradient by default is Top to Bottom. You can customize linear gradient in various ways. Look at the examples below.</p>
<p>Example of Linear Gradient from Top to Bottom (By Default):</p>
<pre class="brush: css; title: ; notranslate">.li-grad {
background: linear-gradient(#0A65D4, #98BAE2); /* Default One */
background: -webkit-linear-gradient(#0A65D4, #98BAE2); /* For Safari &amp;amp; Google Chrome */
background: -o-linear-gradient(#0A65D4, #98BAE2); /* For Opera */
background: -moz-linear-gradient(#0A65D4, #98BAE2); /* For Firefox */
}</pre>
<p>Example of Linear Gradient from Left to Right:</p>
<pre class="brush: css; title: ; notranslate">background: linear-gradient(left, #0A65D4, #98BAE2); /* Default One */
background: -webkit-linear-gradient(left, #0A65D4, #98BAE2); /* For Safari &amp;amp; Google Chrome */
background: -o-linear-gradient(left, #0A65D4, #98BAE2); /* For Opera */
background: -moz-linear-gradient(left, #0A65D4, #98BAE2); /* For Firefox */</pre>
<p>Example of Linear Gradient Diagonally:</p>
<pre class="brush: css; title: ; notranslate">background: linear-gradient(left top, #0A65D4, #98BAE2); /* Default One */
background: -webkit-linear-gradient(left top, #0A65D4, #98BAE2); /* For Safari &amp;amp; Google Chrome */
background: -o-linear-gradient(left top, #0A65D4, #98BAE2); /* For Opera */
background: -moz-linear-gradient(left top, #0A65D4, #98BAE2); /* For Firefox */</pre>
<p>OR</p>
<pre class="brush: css; title: ; notranslate">background: linear-gradient(bottom right, #0A65D4, #98BAE2); /* Default One */
background: -webkit-linear-gradient(bottom right, #0A65D4, #98BAE2); /* For Safari &amp;amp; Google Chrome */
background: -o-linear-gradient(bottom right, #0A65D4, #98BAE2); /* For Opera */
background: -moz-linear-gradient(bottom right, #0A65D4, #98BAE2); /* For Firefox */</pre>
<p>Example of Linear Gradient using Angles:</p>
<pre class="brush: css; title: ; notranslate">background: linear-gradient(180deg, #0A65D4, #98BAE2); /* Default One */
background: -webkit-linear-gradient(180deg, #0A65D4, #98BAE2); /* For Safari &amp;amp; Google Chrome */
background: -o-linear-gradient(180deg, #0A65D4, #98BAE2); /* For Opera */
background: -moz-linear-gradient(180deg, #0A65D4, #98BAE2); /* For Firefox */</pre>
<p>Example of Linear Gradient using Multi-Color:</p>
<pre class="brush: css; title: ; notranslate">background: linear-gradient(red, green, yellow, white, blue); /* Default One */
background: -webkit-linear-gradient(red, green, yellow, white, blue); /* For Safari &amp;amp; Google Chrome */
background: -o-linear-gradient(red, green, yellow, white, blue); /* For Opera */
background: -moz-linear-gradient(red, green, yellow, white, blue); /* For Firefox */</pre>
<p>Example of Radial Gradient:</p>
<pre class="brush: css; title: ; notranslate">.ra-grad {
background: radial-gradient(to bottom, #0A65D4, #98BAE2); /* Default One */
background: -webkit-radial-gradient(#0A65D4, #98BAE2); /* For Safari &amp;amp; Google Chrome */
background: -o-radial-gradient(#0A65D4, #98BAE2); /* For Opera */
background: -moz-radial-gradient(#0A65D4, #98BAE2); /* For Firefox */
}</pre>
<h3>Rounded Corners</h3>
<p>Followed by Customer Demand many times we required to implement round corner content area. You may recall those days when we use images to achieve this. This difficulty is addressed in CSS3. To round corner of a div you required only one CSS property border-radius. Look at the example below:</p>
<pre class="brush: css; title: ; notranslate">.myDiv {
border: 2px solid #000000;
border-radius: 15px; /* Default One */
-webkit-border-radius: 15px; /* For Safari &amp;amp; Google Chrome */
-o-border-radius: 15px; /* For Opera */
-moz-border-radius: 15px; /* For Firefox */
width: 100px;
}</pre>
<h3>Webfonts using CSS3</h3>
<p>Year back in web programming we have limited web-safe fonts. How this is if we have a central store from where we can add any kind of fonts to our application? The same thing CSS3 did. Using CSS3 web-fonts you can use fonts from On-line. Few popular font directories are <a href="https://jharaphula.com/how-to-add-font-awesome-icons-to-svg-based-d3-js-graphs/" target="_blank" rel="noopener noreferrer">Google Fonts</a> and <a href="https://typekit.com" target="_blank" rel="noopener noreferrer nofollow">typekit</a>. Integrating fonts using CSS3 webfonts is very easy. Morden web-fonts comes with vector graphics. On the way of better performance these icons helps a grate. It reduces http requests &amp; load time. Look at the examples below how to use CSS3 webfonts.</p>
<p>In HTML Head:</p>
<pre class="brush: xml; title: ; notranslate">&lt;link href=&quot;http://fonts.googleapis.com/css?family=Satisfy&quot; rel=&quot;stylesheet&quot; /&gt;
&lt;div class=&quot;webfonts&quot;&gt;This is the example of using webfonts in CSS3.&lt;/div&gt;</pre>
<p>CSS Class:</p>
<pre class="brush: css; title: ; notranslate">.webfonts {
font-family: Satisfy, cursive;
font-weight: normal;
font-size: 14px;
}</pre>
<h3>Border Images</h3>
<p>In the previous versions of CSS3 you can&#8217;t set image for border. Only border color you can define. It was found in many places programers required to add image around. To full fill this CSS3 introduced border-image property. Using this you can easily set border image. The only trick you need to follow is according to your image height you need to set border-width &amp; make border transparent. Look at the example below.</p>
<pre class="brush: css; title: ; notranslate">border:40px solid transparent;
border-image: url(img/decoration.png) 40 40 round;</pre>
<h3>CSS3 Media Queries</h3>
<p>Today there are several devices from where users are accessing web. To make a web page compatible for any resolution &amp; various devices CSS3 introduced Media Queries. Media Queries are the technique using which you can write CSS for any specific media. Let&#8217;s talk about a mobile device with resolution 320px. In this case to optimize your web page for this resolution you can use media queries. To know more about CSS3 Media Queries please refer our another release <a href="https://jharaphula.com/css3-media-queries-tutorial/" target="_blank" rel="noopener noreferrer">Introduction to CSS3 Media Queries</a>.</p>
<p>Example:</p>
<pre class="brush: css; title: ; notranslate">@media screen and (min-width: 768px) and (max-width: 1024px) {
/* Styles for Screen Resolution 768px to 1024px */
}

@media screen and (max-width: 600px) {
/* Styles for Screen Resolution up to 600px */
}</pre>
<h3>Advanced Selectors</h3>
<p>Selector is a key in CSS. Using Selector in CSS we do categories the HTML elements for specific Style. You must aware of various of selectors using CSS2. Still in the real-world of programming programmers found various scenarios where they required some additional selectors. That all is introduced in the latest revision of CSS. From the following examples you can track advanced CSS3 selectors.</p>
<p>Example:</p>
<pre class="brush: css; title: ; notranslate">/* CSS3 Selector to select first letter from span's: */
span::first-letter {
background-color: #DDD;
font-size: 14px;
font-style:normal;
color: #FF0000;
}</pre>
<pre class="brush: css; title: ; notranslate">/* CSS3 Selector to select first line from span's: */
span::first-line {
font-style: bold;
font-size: 16px;
font-family: Arial;
}</pre>
<pre class="brush: css; title: ; notranslate">/* CSS3 selector to select first and last elements */
.elem:first-child, .elem:last-child {
background-color:#DDDDDD;
}</pre>
<pre class="brush: css; title: ; notranslate">/* From nth elements how to set style for only odd elements */
.elem:nth-child(odd){
border-radius:30%;
}</pre>
<pre class="brush: css; title: ; notranslate">/* Target elements by attribute */
.elem[data-foo=bar1] {
background-color: #DDD;
}</pre>
<h3>CSS3 Animations &amp; Transitions</h3>
<p>Compare to Flash or JavaScript animation CSS3 animation render faster. Animation is a new feature introduced in CSS3. Performance wise CSS3 animations are more programmers friendly. In this session let us make you clear about the trick to use CSS3 animation.</p>
<p>In CSS3 animation 2 major properties are “animation” &amp; “@keyframes”. Refer to the below example I have a div with a class “animation”. To apply animation on this div I created a class animation. Inside the class I added CSS3 property animation: demoAnimation 5s;. Here demoAnimation is controlled by keyframes. Using @keyframes we need to define from &amp; to properties. As in this example I am moving a div from left to right, I positioned the div to absolute and applying left property from 0 to 200px. <a href="https://jharaphula.com/move-div-left-right-using-css3-animation/" target="_blank" rel="noopener noreferrer">Read more&#8230;</a></p>
<pre class="brush: css; title: ; notranslate">&lt;style type=&quot;text/css&quot;&gt;
.animation {
/* IE &amp; FireFox */
animation: demoAnimation 5s;
/* Chrome, Safari &amp; Opera */
-webkit-animation: demoAnimation 5s;
position: absolute;
}

/* IE &amp; FireFox */
@keyframes demoAnimation {
from {left: 0px; background: red;}
to {left: 200px; background: yellow;}
}

/* Chrome, Safari &amp; Opera */
@-webkit-keyframes demoAnimation {
from {left: 0px; background: red;}
to {left: 200px; background: yellow;}
}
&lt;/style&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;div class=&quot;animation&quot;&gt;This is a Div.&lt;/div&gt;
&lt;/body&gt;</pre>
<h3>CSS3 Shadow Effects</h3>
<p>Using Shadow effects we can get 3D look. If you worked for various Customers &amp; their requirements you must observed in many places Customer wants to use shadow effect. Lets take an example of a login page. Generally login page comes with a central panel. To make this more attractive Customer ask us to put shadow effects. This problem is noted down by CSS3 &amp; in CSS3 they addressed this problem. Using one property in CSS3 you can easily add shadow effect to any HTML element. CSS3 shadow is two types Text Shadow &amp; Box Shadow. Look at the example below.</p>
<p>Text Shadow:</p>
<pre class="brush: css; title: ; notranslate">p { 
text-shadow: 3px 3px 6px green;
}</pre>
<p>Box Shadow:</p>
<pre class="brush: css; title: ; notranslate">span {
box-shadow: 6px 6px 6px green;
}</pre>
<p>The post <a href="https://jharaphula.com/css3-new-features-gradients-webfonts/">CSS3 New Features (Gradients, Webfonts, Transitions, Shadow Effects&#8230;)</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://jharaphula.com/css3-new-features-gradients-webfonts/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			<media:content url="https://jharaphula.com/wp-content/uploads/2016/05/css3-coding.jpg" medium="image" />
	</item>
		<item>
		<title>How to implement Paging and Sorting in ASP.NET Gridview Example?</title>
		<link>https://jharaphula.com/paging-sorting-asp-net-gridview-example/</link>
					<comments>https://jharaphula.com/paging-sorting-asp-net-gridview-example/#respond</comments>
		
		<dc:creator><![CDATA[Nibedita Panda]]></dc:creator>
		<pubDate>Sun, 15 May 2016 06:22:08 +0000</pubDate>
				<category><![CDATA[Microsoft Technologies]]></category>
		<category><![CDATA[ASP.NET Gridview Example]]></category>
		<category><![CDATA[HeaderTemplate]]></category>
		<category><![CDATA[ItemTemplate]]></category>
		<category><![CDATA[Paging and Sorting]]></category>
		<category><![CDATA[Paging in ASP.NET Gridview]]></category>
		<category><![CDATA[Sorting in ASP.NET Gridview]]></category>
		<category><![CDATA[TemplateField]]></category>
		<guid isPermaLink="false">http://box.jharaphula.com/?p=1284</guid>

					<description><![CDATA[<img width="300" height="190" src="https://jharaphula.com/wp-content/uploads/2016/05/pagination-n-sorting-300x190.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="How to implement Paging &amp; Sorting in ASP.NET Gridview Example?" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/pagination-n-sorting-300x190.jpg 300w, https://jharaphula.com/wp-content/uploads/2016/05/pagination-n-sorting.jpg 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>Among Server side web programming ASP.NET is so popular. It was found in ASP.NET applications Gridview is a key element to present data in tabular...</p>
<p>The post <a href="https://jharaphula.com/paging-sorting-asp-net-gridview-example/">How to implement Paging and Sorting in ASP.NET Gridview Example?</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></description>
										<content:encoded><![CDATA[<img width="300" height="190" src="https://jharaphula.com/wp-content/uploads/2016/05/pagination-n-sorting-300x190.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="How to implement Paging &amp; Sorting in ASP.NET Gridview Example?" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/pagination-n-sorting-300x190.jpg 300w, https://jharaphula.com/wp-content/uploads/2016/05/pagination-n-sorting.jpg 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>Among Server side web programming ASP.NET is so popular. It was found in ASP.NET applications Gridview is a key element to present data in tabular shape. Above 90% ASP.NET web application uses Gridview. While presenting data in a Gridview to make this more user friendly Customer like to implement Paging and Sorting. Pagination helps to load data faster. Rather loading all records in one turn pagination loads data page wise. Similarly sorting give flexibility to sort the <a href="https://jharaphula.com/database-basics-terminologies-definition/" rel="noopener noreferrer" target="_blank">data</a> alphabetically. Sorting also helps for search.</p>
<p>In this session I am sharing an example from my application, where I did implemented pagination &amp; sorting in a Gridview. Look at the Code below how I did this.</p>
<h3>Paging and Sorting in ASP.NET Gridview</h3>
<pre class="brush: xml; title: ; notranslate">&lt;asp:GridView DataKeyNames=&quot;AdvID&quot; CssClass=&quot;bodytext&quot; AutoGenerateColumns=&quot;False&quot; PageSize=&quot;25&quot;
AllowPaging=&quot;True&quot; AllowSorting=&quot;True&quot; ID=&quot;grdEditViewAll&quot; runat=&quot;server&quot;
Width=&quot;100%&quot; CellPadding=&quot;4&quot; BackColor=&quot;White&quot; BorderColor=&quot;#CCCCCC&quot;
BorderStyle=&quot;None&quot; BorderWidth=&quot;1px&quot;&gt;
&lt;Columns&gt;
&lt;asp:TemplateField ItemStyle-HorizontalAlign=&quot;Center&quot;&gt;
&lt;HeaderTemplate&gt;
&lt;img src=&quot;../../IMAGES/input_arrow_down.gif&quot; /&gt;
&lt;/HeaderTemplate&gt;
&lt;ItemTemplate&gt;
&lt;img src=&quot;../../IMAGES/icn_paper.gif&quot; /&gt;
&lt;/ItemTemplate&gt;
&lt;HeaderStyle Width=&quot;25px&quot; /&gt;
&lt;ItemStyle HorizontalAlign=&quot;Center&quot;&gt;&lt;/ItemStyle&gt;
&lt;/asp:TemplateField&gt;

&lt;asp:TemplateField ItemStyle-CssClass=&quot;bodytext&quot; HeaderStyle-HorizontalAlign=&quot;Left&quot; HeaderText=&quot;Title&quot; SortExpression=&quot;AdvTitle&quot;&gt;
&lt;ItemTemplate&gt;
&lt;span onmouseover=&quot;Tip('Click to preview &lt;%# Container.DataItem(&quot;AdvTitle&quot;) %&gt;')&quot; onmouseout=&quot;UnTip()&quot;&gt;
&lt;asp:HyperLink ID=&quot;hypPreview&quot; runat=&quot;server&quot; Text=&lt;%# Container.DataItem(&quot;AdvTitle&quot;) %&gt;&gt;&lt;/asp:HyperLink&gt;
&lt;/span&gt;
&lt;/ItemTemplate&gt;
&lt;HeaderStyle HorizontalAlign=&quot;Left&quot;&gt;&lt;/HeaderStyle&gt;
&lt;ItemStyle CssClass=&quot;bodytext&quot; HorizontalAlign=&quot;Left&quot;&gt;&lt;/ItemStyle&gt;
&lt;/asp:TemplateField&gt;

&lt;asp:BoundField ItemStyle-CssClass=&quot;bodytext&quot; HeaderStyle-HorizontalAlign=&quot;Left&quot;
DataField=&quot;AdvCompany&quot; HeaderText=&quot;Company&quot; SortExpression=&quot;AdvCompany&quot;&gt;
&lt;HeaderStyle HorizontalAlign=&quot;Left&quot;&gt;&lt;/HeaderStyle&gt;
&lt;ItemStyle CssClass=&quot;bodytext&quot; HorizontalAlign=&quot;Left&quot;&gt;&lt;/ItemStyle&gt;
&lt;/asp:BoundField&gt;
&lt;asp:BoundField ItemStyle-CssClass=&quot;bodytext&quot; HeaderStyle-HorizontalAlign=&quot;Left&quot;
DataField=&quot;AdResolution&quot; HeaderText=&quot;Resolution&quot; SortExpression=&quot;AdResolution&quot;&gt;
&lt;HeaderStyle HorizontalAlign=&quot;Left&quot;&gt;&lt;/HeaderStyle&gt;
&lt;ItemStyle CssClass=&quot;bodytext&quot; HorizontalAlign=&quot;Left&quot;&gt;&lt;/ItemStyle&gt;
&lt;/asp:BoundField&gt;
&lt;asp:BoundField Visible=&quot;false&quot; ItemStyle-CssClass=&quot;bodytext&quot; HeaderStyle-HorizontalAlign=&quot;Left&quot;
DataField=&quot;NewCopyNPaste&quot; HeaderText=&quot;Flag&quot; SortExpression=&quot;NewCopyNPaste&quot;&gt;
&lt;HeaderStyle HorizontalAlign=&quot;Left&quot;&gt;&lt;/HeaderStyle&gt;
&lt;ItemStyle CssClass=&quot;bodytext&quot; HorizontalAlign=&quot;Left&quot;&gt;&lt;/ItemStyle&gt;
&lt;/asp:BoundField&gt;
&lt;asp:BoundField Visible=&quot;false&quot; ItemStyle-CssClass=&quot;bodytext&quot; HeaderStyle-HorizontalAlign=&quot;Left&quot;
DataField=&quot;textColor&quot; HeaderText=&quot;textColor&quot; SortExpression=&quot;textColor&quot;&gt;
&lt;HeaderStyle HorizontalAlign=&quot;Left&quot;&gt;&lt;/HeaderStyle&gt;
&lt;ItemStyle CssClass=&quot;bodytext&quot; HorizontalAlign=&quot;Left&quot;&gt;&lt;/ItemStyle&gt;
&lt;/asp:BoundField&gt;
&lt;asp:BoundField Visible=&quot;false&quot; ItemStyle-CssClass=&quot;bodytext&quot; HeaderStyle-HorizontalAlign=&quot;Left&quot;
DataField=&quot;Backgroundcolor&quot; HeaderText=&quot;Backgroundcolor&quot; SortExpression=&quot;Backgroundcolor&quot;&gt;
&lt;HeaderStyle HorizontalAlign=&quot;Left&quot;&gt;&lt;/HeaderStyle&gt;
&lt;ItemStyle CssClass=&quot;bodytext&quot; HorizontalAlign=&quot;Left&quot;&gt;&lt;/ItemStyle&gt;
&lt;/asp:BoundField&gt;
&lt;asp:TemplateField ItemStyle-CssClass=&quot;bodytext&quot; HeaderStyle-HorizontalAlign=&quot;Left&quot;
HeaderText=&quot;Edit&quot;&gt;
&lt;ItemTemplate&gt;
&lt;asp:HyperLink ID=&quot;hypEdit&quot; runat=&quot;server&quot; ImageUrl=&quot;../../Images/grdEdit.png&quot;&gt;&lt;/asp:HyperLink&gt;
&lt;/ItemTemplate&gt;
&lt;HeaderStyle HorizontalAlign=&quot;Left&quot;&gt;&lt;/HeaderStyle&gt;
&lt;ItemStyle CssClass=&quot;bodytext&quot; HorizontalAlign=&quot;Left&quot;&gt;&lt;/ItemStyle&gt;
&lt;/asp:TemplateField&gt;
&lt;asp:TemplateField ItemStyle-CssClass=&quot;bodytext&quot; HeaderStyle-HorizontalAlign=&quot;Left&quot;
HeaderText=&quot;Delete&quot;&gt;
&lt;ItemTemplate&gt;
&lt;asp:HyperLink ID=&quot;hypDelete&quot; runat=&quot;server&quot; ImageUrl=&quot;../../Images/grdDelete.png&quot;&gt;&lt;/asp:HyperLink&gt;
&lt;/ItemTemplate&gt;
&lt;HeaderStyle HorizontalAlign=&quot;Left&quot;&gt;&lt;/HeaderStyle&gt;
&lt;ItemStyle CssClass=&quot;bodytext&quot; HorizontalAlign=&quot;Left&quot;&gt;&lt;/ItemStyle&gt;
&lt;/asp:TemplateField&gt;
&lt;asp:TemplateField ItemStyle-CssClass=&quot;bodytext&quot; HeaderStyle-HorizontalAlign=&quot;Left&quot;
HeaderText=&quot;Code&quot;&gt;
&lt;ItemTemplate&gt;
&lt;a href='javascript:popupPageWH(&quot;../../AdManager/GenerateCode.aspx?AdvID=&lt;%# Container.DataItem(&quot;AdvID&quot;) %&gt;&quot;,&quot;theWindow&quot;,&quot;750&quot;,&quot;250&quot;)'
style=&quot;cursor: hand;&quot;&gt;&lt;img src=&quot;../../Images/arrow_circle_double.png&quot; style=&quot;border:0px;&quot; /&gt;&lt;/a&gt;
&lt;/ItemTemplate&gt;
&lt;HeaderStyle HorizontalAlign=&quot;Left&quot;&gt;&lt;/HeaderStyle&gt;
&lt;ItemStyle CssClass=&quot;bodytext&quot; HorizontalAlign=&quot;Left&quot;&gt;&lt;/ItemStyle&gt;
&lt;/asp:TemplateField&gt;
&lt;/Columns&gt;
&lt;RowStyle Height=&quot;20px&quot; ForeColor=&quot;#000066&quot; /&gt;
&lt;FooterStyle BackColor=&quot;White&quot; ForeColor=&quot;#000066&quot; /&gt;
&lt;PagerStyle BackColor=&quot;White&quot; ForeColor=&quot;#000066&quot; HorizontalAlign=&quot;Left&quot; /&gt;
&lt;SelectedRowStyle BackColor=&quot;#669999&quot; Font-Bold=&quot;True&quot; ForeColor=&quot;White&quot; /&gt;
&lt;HeaderStyle BackColor=&quot;#005b90&quot; Font-Bold=&quot;True&quot; ForeColor=&quot;White&quot; /&gt;
&lt;/asp:GridView&gt;</pre>
<p>To enable pagination &amp; sorting first add these attribute to your Gridview control AllowPaging=&#8221;True&#8221; AllowSorting=&#8221;True&#8221;. Define DataKeyNames to your Gridview.</p>
<h3>from Code-Behind</h3>
<p>In your Code-Behind file first declare two variables ASCENDING &amp; DESCENDING.</p>
<pre class="brush: vb; title: ; notranslate">Dim ASCENDING As String = &quot; ASC&quot;
Dim DESCENDING As String = &quot; DESC&quot;</pre>
<p>Then to Create PageIndexChanging event for your Gridview &amp; add the below Code. Directly don&#8217;t Copy the below Code. First Create event then Copy the Code Inside.</p>
<pre class="brush: vb; title: ; notranslate">Protected Sub grdEditViewAll_PageIndexChanging(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewPageEventArgs) Handles grdEditViewAll.PageIndexChanging
grdEditViewAll.PageIndex = e.NewPageIndex
grdEditViewAll.DataBind()
End Sub</pre>
<p>Then to implement Sorting implement the following. Here I created events for my Gridview while implementing make sure you updated correctly.</p>
<pre class="brush: vb; title: ; notranslate">Protected Sub grdEditViewAll_Sorting(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewSortEventArgs) Handles grdEditViewAll.Sorting
Dim sortExpression As String = e.SortExpression
If GridViewSortDirection = SortDirection.Ascending Then
GridViewSortDirection = SortDirection.Descending
SortGridView(sortExpression, DESCENDING)
Else
GridViewSortDirection = SortDirection.Ascending
SortGridView(sortExpression, ASCENDING)
End If
End Sub

Public Sub SortGridView(ByVal sortExpression As String, ByVal direction As String)
Dim dtable As DataTable = ds.Tables(0)
Dim dview As New DataView(dtable)
dview.Sort = sortExpression &amp; direction
grdEditViewAll.DataSource = dview
grdEditViewAll.DataBind()
End Sub

Private Property GridViewSortDirection() As SortDirection
Get
If ViewState(&quot;sortDirection&quot;) Is Nothing Then
ViewState(&quot;sortDirection&quot;) = SortDirection.Ascending
End If
Return CType(ViewState(&quot;sortDirection&quot;), SortDirection)
End Get
Set(ByVal Value As SortDirection)
ViewState(&quot;sortDirection&quot;) = Value
End Set
End Property</pre>
<p>The post <a href="https://jharaphula.com/paging-sorting-asp-net-gridview-example/">How to implement Paging and Sorting in ASP.NET Gridview Example?</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://jharaphula.com/paging-sorting-asp-net-gridview-example/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			<media:content url="https://jharaphula.com/wp-content/uploads/2016/05/pagination-n-sorting.jpg" medium="image" />
	</item>
		<item>
		<title>In a dynamic ASP.NET Gridview Delete row example</title>
		<link>https://jharaphula.com/asp-net-gridview-delete-row-example/</link>
					<comments>https://jharaphula.com/asp-net-gridview-delete-row-example/#respond</comments>
		
		<dc:creator><![CDATA[Nibedita Panda]]></dc:creator>
		<pubDate>Sun, 15 May 2016 06:20:47 +0000</pubDate>
				<category><![CDATA[Microsoft Technologies]]></category>
		<category><![CDATA[ASP.NET Gridview]]></category>
		<category><![CDATA[Datagrid]]></category>
		<category><![CDATA[Datagrid Delete row example]]></category>
		<category><![CDATA[Gridview Delete row example]]></category>
		<guid isPermaLink="false">http://box.jharaphula.com/?p=1282</guid>

					<description><![CDATA[<img width="300" height="193" src="https://jharaphula.com/wp-content/uploads/2016/05/gridview-records-300x193.png" class="webfeedsFeaturedVisual wp-post-image" alt="In a dynamic ASP.NET Gridview Delete row example" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/gridview-records-300x193.png 300w, https://jharaphula.com/wp-content/uploads/2016/05/gridview-records-294x190.png 294w, https://jharaphula.com/wp-content/uploads/2016/05/gridview-records.png 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>During we display data in a Gridview in many places Customer wants to implement checkbox in the grid for Select all &#38; individual rows. Using...</p>
<p>The post <a href="https://jharaphula.com/asp-net-gridview-delete-row-example/">In a dynamic ASP.NET Gridview Delete row example</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></description>
										<content:encoded><![CDATA[<img width="300" height="193" src="https://jharaphula.com/wp-content/uploads/2016/05/gridview-records-300x193.png" class="webfeedsFeaturedVisual wp-post-image" alt="In a dynamic ASP.NET Gridview Delete row example" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/gridview-records-300x193.png 300w, https://jharaphula.com/wp-content/uploads/2016/05/gridview-records-294x190.png 294w, https://jharaphula.com/wp-content/uploads/2016/05/gridview-records.png 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>During we display data in a Gridview in many places Customer wants to implement checkbox in the grid for Select all &amp; individual rows. Using this feature user can edit or delete records. Expected behavior is like user can select the rows which one he/she want to edit or delete. For edit purpose only one row need to select. While for delete multiple rows can be OK. During delete we need to ask confirmation. After confirmation we can go for delete records. The same I implemented in my App. Sharing you the code from there. Hope it will help you to implement your own.</p>
<h3>ASP.NET Gridview</h3>
<pre class="brush: xml; title: ; notranslate">&lt;asp:GridView DataKeyNames=&quot;VisitorTrackingID&quot; CssClass=&quot;bodytext&quot; AutoGenerateColumns=&quot;false&quot; PageSize=&quot;18&quot;
AllowPaging=&quot;True&quot; AllowSorting=&quot;True&quot; ID=&quot;grdVisitorTracking&quot; runat=&quot;server&quot;
Width=&quot;100%&quot; CellPadding=&quot;2&quot; BackColor=&quot;White&quot; BorderColor=&quot;#CCCCCC&quot;
BorderStyle=&quot;None&quot; BorderWidth=&quot;1px&quot;&gt;
&lt;Columns&gt;
&lt;asp:TemplateField&gt;
&lt;HeaderTemplate&gt;
&lt;input type=&quot;checkbox&quot; style=&quot;width: 20px;&quot; id=&quot;chkAll&quot; onclick=&quot;javascript:checkAll(this);&quot; /&gt;
&lt;/HeaderTemplate&gt;
&lt;ItemTemplate&gt;
&lt;input type=&quot;checkbox&quot; style=&quot;width: 20px;&quot; id=&quot;chkSelect&quot; runat=&quot;server&quot; name=&quot;chkSelect&quot; /&gt;
&lt;/ItemTemplate&gt;
&lt;HeaderStyle Width=&quot;25px&quot;/&gt;
&lt;/asp:TemplateField&gt;
&lt;asp:BoundField ItemStyle-CssClass=&quot;bodytext&quot; HeaderStyle-HorizontalAlign=&quot;Left&quot;
DataField=&quot;TrackingID&quot; HeaderText=&quot;Tracking ID&quot; SortExpression=&quot;TrackingID&quot;&gt;
&lt;HeaderStyle HorizontalAlign=&quot;Left&quot;&gt;&lt;/HeaderStyle&gt;
&lt;ItemStyle HorizontalAlign=&quot;Left&quot;&gt;&lt;/ItemStyle&gt;
&lt;/asp:BoundField&gt;
&lt;asp:BoundField ItemStyle-CssClass=&quot;bodytext&quot; HeaderStyle-HorizontalAlign=&quot;Left&quot;
DataField=&quot;TrackingCompany&quot; HeaderText=&quot;Company&quot; SortExpression=&quot;TrackingCompany&quot;&gt;
&lt;HeaderStyle HorizontalAlign=&quot;Left&quot;&gt;&lt;/HeaderStyle&gt;
&lt;ItemStyle HorizontalAlign=&quot;Left&quot;&gt;&lt;/ItemStyle&gt;
&lt;/asp:BoundField&gt;

&lt;asp:TemplateField HeaderStyle-HorizontalAlign=&quot;Left&quot; HeaderText=&quot;Weblink&quot; SortExpression=&quot;TrackingUrl&quot;&gt;
&lt;ItemTemplate&gt;
&lt;a href='&lt;%# Container.DataItem(&quot;TrackingUrl&quot;) %&gt;' target=&quot;_blank&quot; style=&quot;cursor: hand;&quot;&gt;
&lt;%# Container.DataItem(&quot;TrackingUrl&quot;) %&gt;&lt;/a&gt;
&lt;/ItemTemplate&gt;
&lt;HeaderStyle HorizontalAlign=&quot;Left&quot;&gt;&lt;/HeaderStyle&gt;
&lt;ItemStyle HorizontalAlign=&quot;Left&quot;&gt;&lt;/ItemStyle&gt;
&lt;/asp:TemplateField&gt;

&lt;asp:TemplateField ItemStyle-CssClass=&quot;bodytext&quot; HeaderStyle-HorizontalAlign=&quot;Left&quot; HeaderText=&quot;Edit&quot;&gt;
&lt;ItemTemplate&gt;
&lt;asp:HyperLink ID=&quot;hypEdit&quot; runat=&quot;server&quot; ImageUrl=&quot;../Images/grdEdit.png&quot;&gt;&lt;/asp:HyperLink&gt;
&lt;/ItemTemplate&gt;
&lt;HeaderStyle HorizontalAlign=&quot;Left&quot;&gt;&lt;/HeaderStyle&gt;
&lt;ItemStyle CssClass=&quot;bodytext&quot; HorizontalAlign=&quot;Left&quot;&gt;&lt;/ItemStyle&gt;
&lt;/asp:TemplateField&gt;
&lt;/Columns&gt;
&lt;RowStyle Height=&quot;20px&quot; ForeColor=&quot;#000066&quot; /&gt;
&lt;FooterStyle BackColor=&quot;White&quot; ForeColor=&quot;#000066&quot; /&gt;
&lt;PagerStyle BackColor=&quot;White&quot; ForeColor=&quot;#000066&quot; HorizontalAlign=&quot;Left&quot; /&gt;
&lt;SelectedRowStyle BackColor=&quot;#669999&quot; Font-Bold=&quot;True&quot; ForeColor=&quot;White&quot; /&gt;
&lt;HeaderStyle BackColor=&quot;#005b90&quot; Font-Bold=&quot;True&quot; ForeColor=&quot;White&quot; /&gt;
&lt;%--&lt;AlternatingRowStyle BackColor=&quot;#E1F0FF&quot; /&gt;--%&gt;
&lt;/asp:GridView&gt;</pre>
<p>To implement delete functionality depending upon those rows we selected, here I added checkbox in the TemplateField of my Grid. For Select All I added a checkbox in HeaderTemplate &amp; for rows I added another checkbox (HTML Control) in ItemTemplate. To make Select All operate on its onClick event I am calling a JavaScript function checkAll(this).</p>
<h3>CheckAll() Function</h3>
<pre class="brush: jscript; title: ; notranslate">function checkAll(obj)
{
if(obj.checked) markAllState = true;
else markAllState = false;
frm = document.forms[0];
for(i=0;i&lt; frm.elements.length;i++)
{
e = frm.elements[i];
//GridView2$ctl01$check&quot; type=&quot;checkbox&quot; id=&quot;GridView2_ctl01_check
if (e.type == 'checkbox' &amp;&amp; e.name != 'GridView2$ctl01$check')
{
temp='e.checked = '+markAllState;
eval(temp);
}
}
}</pre>
<p>This function is responsible to Check all rows in the grid. The logic I implemented here is first I am getting all the checkbox from the form. Then to identify grid related checkbox I am doing a conditional checking if (e.type == &#8216;checkbox&#8217; &amp;&amp; e.name != &#8216;GridView2$ctl01$check&#8217;).</p>
<p>Once rows are selected to proceed ahead delete operation we need to show a confirmation to the user. To handle this I implemented the below <a href="https://jharaphula.com/javascript-function-random-string/" rel="noopener noreferrer" target="_blank">JavaScript function</a>.</p>
<h3>Delete User Confirmation Function</h3>
<pre class="brush: jscript; title: ; notranslate">function deluser()
{
var j= 0;
frm = document.forms[0];
for(i=0;i&lt; frm.elements.length;i++)
{
e = frm.elements[i];

if (e.type == 'checkbox')
{
if(e.checked==true)
j=j+1;
}
}
//if(j&gt;1 || j&lt;1)
if(j&lt;1)
{
alert(&quot;Please select a Visitor Tracking to Delete.&quot;)
return false;
}
//return true;
var con = confirm(&quot;Are you sure, You want to delete this Visitor Tracking.&quot;);
if(con) return true;
else return false;
}</pre>
<p>This function checks state of the Check-boxes. If checkbox is checked it means user selected that row for delete. To get the confirmation from user showing a confirmation window with message &#8220;Are you sure, You want to delete this Visitor Tracking.&#8221;.</p>
<p>This is all about front-end. After user confirmation we need to fire delete query from code behind. Look at the Code below.</p>
<h3>Code-Behind Delete Query</h3>
<pre class="brush: vb; title: ; notranslate">Protected Sub btnDel_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnDel.Click
Dim i As Integer
For i = 0 To grdVisitorTracking.Rows.Count - 1
Dim row As GridViewRow = grdVisitorTracking.Rows(i)
Dim ischecked As Boolean = (CObj(row).FindControl(&quot;chkSelect&quot;)).Checked
If (ischecked) Then
aDel.Add(grdVisitorTracking.DataKeys.Item(i).Value)
End If
Next
If Not aDel.Count &lt;&gt; 0 Then
'Do Nothing
Else
'Dim confirm = MsgBox(&quot;Are you sure you want to delete this item&quot;, MsgBoxStyle.OkCancel)
'If confirm = 1 Then
For i = 0 To aDel.Count - 1

Dim sDelStr As String = &quot;DELETE FROM VisitorsTracking WHERE VisitorTrackingID=&quot; &amp; aDel(i)
Dim oDelComm As New SqlCommand(sDelStr, sqlConn)
sqlConn.Open()
oDelComm.ExecuteNonQuery()
sqlConn.Close()

grdVisitorTracking.DataBind()
Next
End If

Response.Redirect(&quot;../ADMIN/EditVisitorTracking.aspx&quot;)
End Sub</pre>
<p>Finally for delete operation in Code-behind I am detecting chkSelect state. If it returns true I am storing its value to an array &#8220;aDel&#8221;. In next phase checking the count of aDel if it is greater then zero then executing SQL Delete command against that particular record id.</p>
<p>The post <a href="https://jharaphula.com/asp-net-gridview-delete-row-example/">In a dynamic ASP.NET Gridview Delete row example</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://jharaphula.com/asp-net-gridview-delete-row-example/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			<media:content url="https://jharaphula.com/wp-content/uploads/2016/05/gridview-records.png" medium="image" />
	</item>
		<item>
		<title>How to Execute a Stored Procedure from VB.NET Code behind File?</title>
		<link>https://jharaphula.com/execute-stored-procedure-vb-net-code-behind/</link>
					<comments>https://jharaphula.com/execute-stored-procedure-vb-net-code-behind/#respond</comments>
		
		<dc:creator><![CDATA[Nibedita Panda]]></dc:creator>
		<pubDate>Sun, 15 May 2016 06:19:32 +0000</pubDate>
				<category><![CDATA[Microsoft Technologies]]></category>
		<category><![CDATA[ConvertDataReaderToDataSet]]></category>
		<category><![CDATA[Execute a Stored Procedure]]></category>
		<category><![CDATA[ExecuteReader]]></category>
		<category><![CDATA[Stored Procedure from VB.NET]]></category>
		<category><![CDATA[VB.NET Code behind File]]></category>
		<guid isPermaLink="false">http://box.jharaphula.com/?p=1280</guid>

					<description><![CDATA[<img width="300" height="194" src="https://jharaphula.com/wp-content/uploads/2016/05/database-300x194.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="How to Execute a Stored Procedure from VB.NET Code behind File?" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/database-300x194.jpg 300w, https://jharaphula.com/wp-content/uploads/2016/05/database-294x190.jpg 294w, https://jharaphula.com/wp-content/uploads/2016/05/database-106x70.jpg 106w, https://jharaphula.com/wp-content/uploads/2016/05/database.jpg 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>Stored procedures are precompiled SQL statements stored in a database, offering improved performance, security, and maintainability. In VB.NET, executing a stored procedure from a code-behind...</p>
<p>The post <a href="https://jharaphula.com/execute-stored-procedure-vb-net-code-behind/">How to Execute a Stored Procedure from VB.NET Code behind File?</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></description>
										<content:encoded><![CDATA[<img width="300" height="194" src="https://jharaphula.com/wp-content/uploads/2016/05/database-300x194.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="How to Execute a Stored Procedure from VB.NET Code behind File?" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/database-300x194.jpg 300w, https://jharaphula.com/wp-content/uploads/2016/05/database-294x190.jpg 294w, https://jharaphula.com/wp-content/uploads/2016/05/database-106x70.jpg 106w, https://jharaphula.com/wp-content/uploads/2016/05/database.jpg 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>Stored procedures are precompiled SQL statements stored in a database, offering improved performance, security, and maintainability. In VB.NET, executing a stored procedure from a code-behind file involves connecting to the database, setting up command objects, and handling parameters. This guide provides a step-by-step approach to executing stored procedures efficiently.</p>
<p>Experienced programmers prefer to use stored procedures in place of inline SQL Query. There are several advantages of using stored procedure. First of all stored procedure provides security &amp; it helps to improve performance. Once a stored procedure execute it cached on the server. Stored procedure are easy to maintain &amp; debug like a separate unit. Stored procedure can be tested independent of the application. In this session let us show you in <a href="https://jharaphula.com/category/programming-solutions/microsoft-technologies/" rel="noopener noreferrer" target="_blank">Microsoft Technology</a> VB.NET how to execute a stored procedure from the Code behind file. </p>
<p>In the below example I am using the stored procedure &#8220;USP_SearchLogo&#8221;. This stored procedure accepts 4 parameters. To execute this stored procedure here I am creating a new instance (SearchLogoCmd) of SqlCommand object by passing the stored procedure name &amp; connection details (Connection String). Then to make compiler know that we are using stored procedure in command object in place of SQL Query, I defined command type to StoredProcedure. Now I need to pass parameter values before execute the procedure. To do that I am using SearchLogoCmd.Parameters.Add method. In this method I am passing parameter name with the data type depending upon the Stored procedure. Finally executing the Command object using ExecuteReader.</p>
<h3>Execute a Stored Procedure from VB.NET Example</h3>
<pre class="brush: vb; title: ; notranslate">Dim SearchLogoCmd As New SqlCommand(&quot;USP_SearchLogo&quot;, sqlConn)

SearchLogoCmd.CommandType = CommandType.StoredProcedure

SearchLogoCmd.Parameters.Add(&quot;@NativeFlag&quot;, SqlDbType.NVarChar).Value = Request(&quot;NativeFlag&quot;)
SearchLogoCmd.Parameters.Add(&quot;@LogoName&quot;, SqlDbType.NVarChar).Value = Trim(txtLogoName.Text)
SearchLogoCmd.Parameters.Add(&quot;@LogoFileName&quot;, SqlDbType.NVarChar).Value = Trim(txtFileName.Text)
SearchLogoCmd.Parameters.Add(&quot;@Status&quot;, SqlDbType.NVarChar).Value = ddlStatus.SelectedValue

Try
sqlConn.Open()
ds = ConvertDataReaderToDataSet(SearchLogoCmd.ExecuteReader())

grdImageFiles.DataSource = ds
grdImageFiles.DataBind()

Catch ex As Exception
Response.Write(ex.ToString())
Finally
sqlConn.Close()
End Try</pre>
<p>You may noticed here I used a function ConvertDataReaderToDataSet(). This is because of here my Stored procedure returns reader specific data. To bind those data to my gridview &#8220;grdImageFiles&#8221; using a DataSet I used this function.</p>
<h2>Best Practices</h2>
<p>1. Use Parameterized Queries – Avoid SQL injection by always using parameters.<br />
2. Dispose Objects – Utilize `Using` statements to ensure proper disposal of `SqlConnection` and `SqlCommand`.<br />
3. Connection Pooling – Let ADO.NET manage connections efficiently.<br />
4. Error Logging – Log exceptions for debugging and monitoring.</p>
<h2>Conclusion</h2>
<p>Executing a stored procedure from VB.NET involves setting up a database connection, configuring a `SqlCommand` object, passing parameters, and handling results. Following these steps ensures secure and efficient database operations. By adhering to best practices, developers can maintain robust and scalable applications.</p>
<p>The post <a href="https://jharaphula.com/execute-stored-procedure-vb-net-code-behind/">How to Execute a Stored Procedure from VB.NET Code behind File?</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://jharaphula.com/execute-stored-procedure-vb-net-code-behind/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			<media:content url="https://jharaphula.com/wp-content/uploads/2016/05/database.jpg" medium="image" />
	</item>
		<item>
		<title>SqlDataReader to DataSet Converter VB.NET Function</title>
		<link>https://jharaphula.com/sqldatareader-to-dataset-converter-function/</link>
					<comments>https://jharaphula.com/sqldatareader-to-dataset-converter-function/#comments</comments>
		
		<dc:creator><![CDATA[Biswabhusan Panda]]></dc:creator>
		<pubDate>Sat, 14 May 2016 18:56:08 +0000</pubDate>
				<category><![CDATA[Microsoft Technologies]]></category>
		<category><![CDATA[DataReader]]></category>
		<category><![CDATA[SqlDataReader]]></category>
		<category><![CDATA[SqlDataReader to DataSet Converter]]></category>
		<category><![CDATA[VB.NET Function]]></category>
		<guid isPermaLink="false">http://box.jharaphula.com/?p=1238</guid>

					<description><![CDATA[<img width="300" height="193" src="https://jharaphula.com/wp-content/uploads/2016/05/visual-basic-framework-300x193.bmp" class="webfeedsFeaturedVisual wp-post-image" alt="SqlDataReader to DataSet Converter VB.NET Function" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/visual-basic-framework-300x193.bmp 300w, https://jharaphula.com/wp-content/uploads/2016/05/visual-basic-framework-294x190.bmp 294w, https://jharaphula.com/wp-content/uploads/2016/05/visual-basic-framework.bmp 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>During application development sometime we fetch data from the database using DataReader. Later to do some other operations we required that DataReader data in a...</p>
<p>The post <a href="https://jharaphula.com/sqldatareader-to-dataset-converter-function/">SqlDataReader to DataSet Converter VB.NET Function</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></description>
										<content:encoded><![CDATA[<img width="300" height="193" src="https://jharaphula.com/wp-content/uploads/2016/05/visual-basic-framework-300x193.bmp" class="webfeedsFeaturedVisual wp-post-image" alt="SqlDataReader to DataSet Converter VB.NET Function" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/visual-basic-framework-300x193.bmp 300w, https://jharaphula.com/wp-content/uploads/2016/05/visual-basic-framework-294x190.bmp 294w, https://jharaphula.com/wp-content/uploads/2016/05/visual-basic-framework.bmp 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>During application development sometime we fetch data from the database using DataReader. Later to do some other operations we required that DataReader data in a DataSet. In this case the below function can help you. Here I created the <a href="https://jharaphula.com/php-string-functions-with-example/" rel="noopener noreferrer" target="_blank">function</a> which will accept a DataReader &amp; will return DataSet for you.</p>
<p>The Logic I implemented here is very simple. After receiving DataReader as a parameter to the function I am storing its schema to a DataTable. Then using a for loop I am adding row &amp; columns definition to the DataTable. After define the row &amp; column adding DataTable to DataSet using dataSet.Tables.Add method. Now to fill data in DataTable executing a while loop until reader.Read(). Creating an instance for new row &amp; using a for loop adding DataRow dynamically. To store value from DataReader here I am using GetValue() method. Finally using dataTable.Rows.Add method adding all rows to the DataTable. Already before binding rows data, my DataTable is added to DataSet. Now by just using return dataSet I am getting DataSet with DataReader values.</p>
<p>While Creating this function create it as public shared function so that you can easily use this with your executeReader method like ds = convertDataReaderToDataSet(cmd.ExecuteReader()).</p>
<h3>DataReader to DataSet Converter Function</h3>
<pre class="brush: vb; title: ; notranslate">Public Shared Function convertDataReaderToDataSet(ByVal reader As SqlDataReader) As DataSet
Dim dataSet As New DataSet()
Do
' Create a New Data Table to store DataReader data temporarily
Dim tblSchema As DataTable = reader.GetSchemaTable()
Dim dataTable As New DataTable()

If tblSchema IsNot Nothing Then
For i As Integer = 0 To tblSchema.Rows.Count - 1
Dim dataRow As DataRow = tblSchema.Rows(i)
' Creating unique Column name to Data Table
Dim columnName As String = DirectCast(dataRow(&quot;ColumnName&quot;), String)
Dim column As New DataColumn(columnName, DirectCast(dataRow(&quot;DataType&quot;), Type))
dataTable.Columns.Add(column)
Next

dataSet.Tables.Add(dataTable)

' Fill the data table from Data Reader
While reader.Read()
Dim dataRow As DataRow = dataTable.NewRow()

For i As Integer = 0 To reader.FieldCount - 1
dataRow(i) = reader.GetValue(i)
Next

dataTable.Rows.Add(dataRow)
End While
Else
' No records to Return
Dim column As New DataColumn(&quot;AffectedRows&quot;)
dataTable.Columns.Add(column)
dataSet.Tables.Add(dataTable)
Dim dataRow As DataRow = dataTable.NewRow()
dataRow(0) = reader.RecordsAffected
dataTable.Rows.Add(dataRow)
End If
Loop While reader.NextResult()
Return dataSet
End Function</pre>
<p>The post <a href="https://jharaphula.com/sqldatareader-to-dataset-converter-function/">SqlDataReader to DataSet Converter VB.NET Function</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://jharaphula.com/sqldatareader-to-dataset-converter-function/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			<media:content url="https://jharaphula.com/wp-content/uploads/2016/05/visual-basic-framework.bmp" medium="image" />
	</item>
		<item>
		<title>HTML5 Video Player with Play, Forward, Rewind &#038; Pause buttons</title>
		<link>https://jharaphula.com/html5-video-player-with-play-forward-rewind-pause-buttons/</link>
					<comments>https://jharaphula.com/html5-video-player-with-play-forward-rewind-pause-buttons/#comments</comments>
		
		<dc:creator><![CDATA[Biswabhusan Panda]]></dc:creator>
		<pubDate>Sat, 14 May 2016 18:53:42 +0000</pubDate>
				<category><![CDATA[Learn HTML5 with Examples]]></category>
		<category><![CDATA[5th revision of HTML]]></category>
		<category><![CDATA[HTML5 Video Player]]></category>
		<category><![CDATA[List of HTML5 new Tags]]></category>
		<guid isPermaLink="false">http://box.jharaphula.com/?p=1234</guid>

					<description><![CDATA[<img width="300" height="184" src="https://jharaphula.com/wp-content/uploads/2016/05/video-player-300x184.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="HTML5 video player with play, forward, rewind &amp; pause buttons" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/video-player-300x184.jpg 300w, https://jharaphula.com/wp-content/uploads/2016/05/video-player.jpg 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>As we know HTML5 is rich with media elements. Using HTML5 media elements we can easily embed any Audio or Video to our web pages....</p>
<p>The post <a href="https://jharaphula.com/html5-video-player-with-play-forward-rewind-pause-buttons/">HTML5 Video Player with Play, Forward, Rewind &amp; Pause buttons</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></description>
										<content:encoded><![CDATA[<img width="300" height="184" src="https://jharaphula.com/wp-content/uploads/2016/05/video-player-300x184.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="HTML5 video player with play, forward, rewind &amp; pause buttons" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/video-player-300x184.jpg 300w, https://jharaphula.com/wp-content/uploads/2016/05/video-player.jpg 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>As we know HTML5 is rich with media elements. Using HTML5 media elements we can easily embed any Audio or Video to our web pages. HTML5 supports 2 kind of video and audio formats .ogg and .mpeg. If your video is in other formats you can use any online or offline tools to convert your video. In this example here I created a Video Player using <a href="https://jharaphula.com/category/programming-solutions/html5-examples/" target="_blank" rel="noopener noreferrer">HTML5</a> Video element. To operate the video in this player <strong>I did implemented play, forward, rewind and pause buttons functionalities using JavaScript functions</strong>. Logic I implemented is very simple. In HTML body I have a video element with source video file (<em>laugh-vid.mp4</em>) path. Including this 4 buttons are there Reload, Rewind, Play &amp; Forward. On click of these buttons I am calling the respective js functions.</p>
<p>Play button behaves dynamically. Once you click on this video it starts playing. While running video the same button works like a pause button. You can stop you video in-between using pause functionality. Reload button is responsible to start video from beginning. <strong>About rewind &amp; forward buttons I have a function forwardRewind(), it accepts param as parameter</strong>. In case user click on rewind button I am passing -7 to back the track. Similarly for forward button I am passing +7. You can change this value depending your video length. To play the video here in JS function I am using .play method.</p>
<h2>HTML5 Video Player Demo App</h2>
<pre class="brush: xml; title: ; notranslate">&lt;!DOCTYPE html&gt;
&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;
&lt;head&gt;
&lt;title&gt;HTML5 video player with play, forward, rewind &amp; pause buttons&lt;/title&gt;
&lt;!--Embed the below JS Script here--&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;video id=&quot;videoPlayer&quot;&gt;
&lt;source src=&quot;laugh-vid.mp4&quot; type=&quot;video/mp4&quot; /&gt;
&lt;/video&gt;
&lt;!--Buttons for Video Player--&gt;
&lt;div id=&quot;playerButtons&quot;&gt;
&lt;button id=&quot;btnReload&quot; onclick=&quot;reloadVideo();&quot;&gt;[]&lt;/button&gt;
&lt;button id=&quot;btnRewind&quot; onclick=&quot;forwardRewind(-7)&quot;&gt;&lt;&lt;&lt;/button&gt;
&lt;button id=&quot;btnPlay&quot; onclick=&quot;play()&quot;&gt;&gt;&lt;/button&gt;
&lt;button id=&quot;btnForward&quot; onclick=&quot;forwardRewind(7)&quot;&gt;&gt;&gt;&lt;/button&gt;
&lt;/div&gt;
&lt;/body&gt;
&lt;/html&gt;</pre>
<h2>JS Functions for HTML5 Video Player</h2>
<p>The major advantages of using HTML5 Video element is it is browser friendly and can be operate using the popular Client-side script Javascript. As we discussed above here for 4 buttons I am using few JS functions. Sharing the code below. While placing the above Code inside your HTML file use script tag.</p>
<pre class="brush: jscript; title: ; notranslate">
/*Function for Play &amp;amp; Pause Buttons*/
function play() {
var videoPlayer = document.getElementById(&quot;videoPlayer&quot;);
var btnPlay = document.getElementById(&quot;btnPlay&quot;);
if (videoPlayer.paused) {
videoPlayer.play();
btnPlay.textContent = &quot;||&quot;;
} else {
videoPlayer.pause();
btnPlay.textContent = &quot;&amp;gt;&quot;;
}
}
/*Function to Reload video from Beginning*/
function reloadVideo() {
var videoPlayer = document.getElementById(&quot;videoPlayer&quot;);
videoPlayer.currentTime = 0;
}
/*Function to Forward &amp;amp; Rewind*/
function forwardRewind(param) {
var videoPlayer = document.getElementById(&quot;videoPlayer&quot;);
videoPlayer.currentTime += param;
}
</pre>
<h2>HTML5 Video tag Attributes</h2>
<p><strong>autoplay</strong>: This is a boolean attribute. Using this you can play your video after the page loaded successfully. User don&#8217;t need to click on play button.</p>
<p><strong>autobuffer</strong>: Using this attribute video will automatically begin buffering even if it&#8217;s not set to automatically play.</p>
<p><strong>controls</strong>: Using controls attribute user can control video settings like playback, including decreasing or increasing volume, seeking, and pause or resume playback. If you don&#8217;t specify the controls attribute, the video won&#8217;t include the browser&#8217;s default controls.</p>
<p><strong>height</strong>: This attribute helps to Set height of the video area using CSS pixels.</p>
<p><strong>width</strong>: This attribute helps to Set width of the video area using CSS pixels.</p>
<p><strong>loop</strong>: If you want your video need to play n number of times until or unless user toggle an event. You can set loop to &#8220;true&#8221;.</p>
<p><strong>src</strong>: src stands for source. Here you need to place your video or audio link. In the place of URL you can use your local drive path or a link.</p>
<p><strong>poster</strong>: Until your video start playing this attribute helps to show a static image in the player.</p>
<p>Using HTML5 video element you can use your youtube videos. Just place the link as a value to src attribute. As a technical tips for any resolution you are going to place your video player keep width 100%. Height varies from place to place.</p>
<p>The post <a href="https://jharaphula.com/html5-video-player-with-play-forward-rewind-pause-buttons/">HTML5 Video Player with Play, Forward, Rewind &amp; Pause buttons</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://jharaphula.com/html5-video-player-with-play-forward-rewind-pause-buttons/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			<media:content url="https://jharaphula.com/wp-content/uploads/2016/05/video-player.jpg" medium="image" />
	</item>
		<item>
		<title>AngularJS Assessment Questionnaires for Trainees to Evaluate</title>
		<link>https://jharaphula.com/angularjs-assessment-questionnaires/</link>
					<comments>https://jharaphula.com/angularjs-assessment-questionnaires/#respond</comments>
		
		<dc:creator><![CDATA[Biswabhusan Panda]]></dc:creator>
		<pubDate>Sat, 14 May 2016 18:51:07 +0000</pubDate>
				<category><![CDATA[AngularJS with Examples]]></category>
		<category><![CDATA[Ajax using Angular]]></category>
		<category><![CDATA[AngularJS]]></category>
		<category><![CDATA[AngularJS Search Filter]]></category>
		<category><![CDATA[Data Binding in Angular]]></category>
		<category><![CDATA[Single page Application]]></category>
		<guid isPermaLink="false">http://box.jharaphula.com/?p=1230</guid>

					<description><![CDATA[<img width="300" height="178" src="https://jharaphula.com/wp-content/uploads/2016/05/assesment-angularjs-300x178.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="AngularJS Assessment Questionnaires for Trainees to evaluate" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/assesment-angularjs-300x178.jpg 300w, https://jharaphula.com/wp-content/uploads/2016/05/assesment-angularjs.jpg 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>As a Corporate Trainer unless until I evaluate my trainees I don&#8217;t think I did completed the Training session. Recently looking in to the growing...</p>
<p>The post <a href="https://jharaphula.com/angularjs-assessment-questionnaires/">AngularJS Assessment Questionnaires for Trainees to Evaluate</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></description>
										<content:encoded><![CDATA[<img width="300" height="178" src="https://jharaphula.com/wp-content/uploads/2016/05/assesment-angularjs-300x178.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="AngularJS Assessment Questionnaires for Trainees to evaluate" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/assesment-angularjs-300x178.jpg 300w, https://jharaphula.com/wp-content/uploads/2016/05/assesment-angularjs.jpg 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>As a Corporate Trainer unless until I evaluate my trainees I don&#8217;t think I did completed the Training session. Recently looking in to the growing demand of AngularJS I instructed to provide training on the same. Nearly 4 to 5 batches I did trained. Including all the batches there are more then 300 IT professionals. After completion of training to evaluate all those trainees whether they grab required knowledge or not I prepared the following AngularJS Assessment Questionnaires.</p>
<p>In this Set of Questions to evaluate a trainee I covered all the possible scenarios a programmer required to <a href="https://jharaphula.com/getting-started-with-angularjs-for-absolute-beginners/" target="_blank" rel="noopener noreferrer">begin with AngularJS</a>. If your training session is for intermediate level you can refer this Questionnaires for evaluation.</p>
<p>To Design the following apps please follow <a href="https://jharaphula.com/mvc-architecture-angularjs/" target="_blank" rel="noopener noreferrer">AngularJS MVC design pattern</a>.</p>
<h3>AngularJS Search Filter</h3>
<p><strong>Qus</strong>. In a HTML page below the Search box you need to display name of your 10 colleagues. While I will start search using last name of your colleague it need to display the similar records. To store names of your colleagues you can use a $scope object with JSON formatted data.</p>
<h3>Data Binding in AngularJS</h3>
<p><strong>Qus</strong>. I have a JSON file with 10 Customers details. For each Customer I have the following three fields.</p>
<p><strong>1</strong>. Customer Name<br />
<strong>2</strong>. Email<br />
<strong>3</strong>. Customer Care Number</p>
<p>What I want is I want to display all the Customers Details in a tabular form using DIV structure. To design the Customers JSON file you can use dummy data.</p>
<h3>Conditional Checking</h3>
<p><strong>Qus</strong>. In a HTML page I have two dropdown lists. First one need to show list of Country names (4 to 5 Countries max). On change of Country dropdown list I want to show respective states for that Country in the second dropdown list. Initially the default country is the first item of Country dropdown list &amp; the default values for second dropdown list are the states for default country. For better performance I want to use switch case in place of if else.</p>
<p><strong>Qus</strong>. In Controller I have a $scope object “employees” with two fields for each record “Name” &amp; “Gender”. In HTML I want show male &amp; female employees in two different lists. Use ng-show &amp; ng-hide for showing &amp; hiding the records.</p>
<h3>Validations in AngularJS</h3>
<p><strong>Qus</strong>. To register a user in my Social Media application I need to design a form which will accept Name, Email, Contact Number &amp; Date of Birth for registration. In this form Name is a mandatory field. Email must be a valid one. Contact Number filed will accept only numbers of 10 digits &amp; Date of Birth must be in the format of YYYY-MM-DD. In case user is entering invalid data I need to show proper error message without submitting the form.</p>
<h3>Single page Application</h3>
<p><strong>Qus</strong>. In a simple HTML page I have only three links Home, About Us &amp; Contact Us. During I open this HTML file Home page is the default page with a single line Welcome message (Welcome to my Blog). When I will click on About Us link it need to show me the about us page with some dummy text. Similarly while I will click on Contact Us link it need to show Contact US page with dummy Contact Information. To make bookmark easy I want all these pages URL’s are different but during I visit from one page to other I don’t want to refresh the page. Physically Home, About Us &amp; Contact us are three different HTML files. So that it is easier for me to maintain the app.</p>
<h3>Ajax using AngularJS</h3>
<p><strong>Qus</strong>. Prepare a simple telephone directory with only 2 fields “Name” &amp; “Number”. When I will submit the page it need to post the data into a php file for database operation. Provide a link in the bottom of this page. So that when I want to watch the list of members I can visit this link. You can fetch the list of members using $http get method.</p>
<h3>Directive &amp; Templates</h3>
<p><strong>Qus</strong>. In an App I have more than 100 of pages to show Tabular Data. What I need is I want a Custom Directive “my-table”. About the look n feel of the table I want the header background color dark blue &amp; header texts in white color. For better user experience implement even &amp; odd rows with light alternate colors. Table border width you can keep thin.</p>
<h3>Service &amp; Factory</h3>
<p><strong>Qus</strong>. Create a simple calculator which will have 4 functions Addition, Subtraction, Multiplication &amp; Division.</p>
<p>The post <a href="https://jharaphula.com/angularjs-assessment-questionnaires/">AngularJS Assessment Questionnaires for Trainees to Evaluate</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://jharaphula.com/angularjs-assessment-questionnaires/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			<media:content url="https://jharaphula.com/wp-content/uploads/2016/05/assesment-angularjs.jpg" medium="image" />
	</item>
		<item>
		<title>How to Create div based CSS3 Table without using HTML5 Table tag?</title>
		<link>https://jharaphula.com/create-div-based-css-table/</link>
					<comments>https://jharaphula.com/create-div-based-css-table/#respond</comments>
		
		<dc:creator><![CDATA[Biswabhusan Panda]]></dc:creator>
		<pubDate>Sat, 14 May 2016 18:41:27 +0000</pubDate>
				<category><![CDATA[CSS Tricks with Examples]]></category>
		<category><![CDATA[Advanced CSS3]]></category>
		<category><![CDATA[CSS Table]]></category>
		<category><![CDATA[div based CSS Table]]></category>
		<category><![CDATA[How to Create]]></category>
		<guid isPermaLink="false">http://box.jharaphula.com/?p=1221</guid>

					<description><![CDATA[<img width="300" height="191" src="https://jharaphula.com/wp-content/uploads/2016/05/css-table.gif" class="webfeedsFeaturedVisual wp-post-image" alt="How to Create div based CSS Table without using HTML Table tag?" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" /><p>Assume in your HTML page you are going to display 5000 records using a Table. In this case HTML table tag creates problem during loading....</p>
<p>The post <a href="https://jharaphula.com/create-div-based-css-table/">How to Create div based CSS3 Table without using HTML5 Table tag?</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></description>
										<content:encoded><![CDATA[<img width="300" height="191" src="https://jharaphula.com/wp-content/uploads/2016/05/css-table.gif" class="webfeedsFeaturedVisual wp-post-image" alt="How to Create div based CSS Table without using HTML Table tag?" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" /><p>Assume in your HTML page you are going to display 5000 records using a Table. In this case HTML table tag creates problem during loading. Until 5000 records fetched from the database, table will not render. This delay creates <a href="https://jharaphula.com/best-practices-website-speed-performance/" target="_blank" rel="noopener noreferrer">performance issue in web</a> development. To avoid this scenario div is introduced. Div loads faster then a table. Partial loading feature supported by div. While all the row &amp; columns of a table comes with in the single control div presents each row &amp; column independently. Let us share the example how to create div based CSS table.</p>
<p>Look at the example below here I did created similar to table structure using Div &amp; CSS. To make this simple I used only 3 CSS classes tableHeader, row &amp; column. In HTML followed by the basic principle creating the row &amp; inside row creating columns. To separate tableHeader in place of row class I used tableHeader.</p>
<h2>div based CSS Table Example</h2>
<pre class="brush: xml; title: ; notranslate">&lt;!DOCTYPE html&gt;
&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;
&lt;head&gt;
&lt;title&gt;How to Create div based CSS3 Table?&lt;/title&gt;
&lt;style type=&quot;text/css&quot;&gt;
.tableHeader
{
background: #000;
color: #fff;
display: table-row;
font-weight: bold;
}
/* CSS styles of table Rows */
.row
{
display: table-row;
}
/* CSS styles of table Columns */
.column
{
display: table-cell;
border: thin solid #000;
padding: 6px 6px 6px 6px;
}
&lt;/style&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;div class=&quot;tableHeader&quot;&gt;
&lt;div class=&quot;column&quot;&gt;Employee Name&lt;/div&gt;
&lt;div class=&quot;column&quot;&gt;Designation&lt;/div&gt;
&lt;div class=&quot;column&quot;&gt;Salary&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;row&quot;&gt;
&lt;div class=&quot;column&quot;&gt;Biswabhusan Panda&lt;/div&gt;
&lt;div class=&quot;column&quot;&gt;Sr. Team Lead&lt;/div&gt;
&lt;div class=&quot;column&quot;&gt;80000 INR&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;row&quot;&gt;
&lt;div class=&quot;column&quot;&gt;Supriti Kabi&lt;/div&gt;
&lt;div class=&quot;column&quot;&gt;Software Engineer&lt;/div&gt;
&lt;div class=&quot;column&quot;&gt;60000 INR&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;row&quot;&gt;
&lt;div class=&quot;column&quot;&gt;Nibedita Panda&lt;/div&gt;
&lt;div class=&quot;column&quot;&gt;Jr. Software Engineer&lt;/div&gt;
&lt;div class=&quot;column&quot;&gt;45000 INR&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;row&quot;&gt;
&lt;div class=&quot;column&quot;&gt;Ragini Sahoo&lt;/div&gt;
&lt;div class=&quot;column&quot;&gt;Mechanical Engineer&lt;/div&gt;
&lt;div class=&quot;column&quot;&gt;25000 USD&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;row&quot;&gt;
&lt;div class=&quot;column&quot;&gt;Sonam Panda&lt;/div&gt;
&lt;div class=&quot;column&quot;&gt;Jr. Software Engineer&lt;/div&gt;
&lt;div class=&quot;column&quot;&gt;1500 USD&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;row&quot;&gt;
&lt;div class=&quot;column&quot;&gt;Subha Roy&lt;/div&gt;
&lt;div class=&quot;column&quot;&gt;Software Engineer&lt;/div&gt;
&lt;div class=&quot;column&quot;&gt;17000 INR&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;row&quot;&gt;
&lt;div class=&quot;column&quot;&gt;Mohini Srivastab&lt;/div&gt;
&lt;div class=&quot;column&quot;&gt;Mechanical Engineer&lt;/div&gt;
&lt;div class=&quot;column&quot;&gt;25000 INR&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;row&quot;&gt;
&lt;div class=&quot;column&quot;&gt;Manjulata Panda&lt;/div&gt;
&lt;div class=&quot;column&quot;&gt;Business Head&lt;/div&gt;
&lt;div class=&quot;column&quot;&gt;5000 USD&lt;/div&gt;
&lt;/div&gt;
&lt;/body&gt;
&lt;/html&gt;</pre>
<h2>Another way to Create div based CSS3 Table</h2>
<p>You must aware of 2 most wanted CSS3 properties float: left and float: right. Generally we use these syntax to place 2 or more div&#8217;s side-by-side. Using these properties you can create HTML Table like structue using div. Additionally, in this method you have to take care of clearfix. clearfix is a CSS class which comes with &#8220;clear: both;&#8221;.</p>
<p>The post <a href="https://jharaphula.com/create-div-based-css-table/">How to Create div based CSS3 Table without using HTML5 Table tag?</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://jharaphula.com/create-div-based-css-table/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			<media:content url="https://jharaphula.com/wp-content/uploads/2016/05/css-table.gif" medium="image" />
	</item>
		<item>
		<title>Responsive Design best practices for professional Web designers</title>
		<link>https://jharaphula.com/responsive-design-best-practices/</link>
					<comments>https://jharaphula.com/responsive-design-best-practices/#respond</comments>
		
		<dc:creator><![CDATA[Biswabhusan Panda]]></dc:creator>
		<pubDate>Sat, 14 May 2016 18:38:49 +0000</pubDate>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Responsive Design]]></category>
		<category><![CDATA[Screen Resolutions]]></category>
		<category><![CDATA[Web Design best practices]]></category>
		<category><![CDATA[Web Designing]]></category>
		<guid isPermaLink="false">http://box.jharaphula.com/?p=1217</guid>

					<description><![CDATA[<img width="300" height="180" src="https://jharaphula.com/wp-content/uploads/2016/05/responsive-web-page-300x180.png" class="webfeedsFeaturedVisual wp-post-image" alt="Responsive Design best practices for Professional web designers" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/responsive-web-page-300x180.png 300w, https://jharaphula.com/wp-content/uploads/2016/05/responsive-web-page.png 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>Compare to Classical age of web design today designing a successful web page is not so easy. During we develop a web page we have...</p>
<p>The post <a href="https://jharaphula.com/responsive-design-best-practices/">Responsive Design best practices for professional Web designers</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></description>
										<content:encoded><![CDATA[<img width="300" height="180" src="https://jharaphula.com/wp-content/uploads/2016/05/responsive-web-page-300x180.png" class="webfeedsFeaturedVisual wp-post-image" alt="Responsive Design best practices for Professional web designers" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/responsive-web-page-300x180.png 300w, https://jharaphula.com/wp-content/uploads/2016/05/responsive-web-page.png 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>Compare to Classical age of web design today designing a successful web page is not so easy. <strong>During we develop a web page we have to think variety of devices &amp; their resolutions</strong>. As you know web is available from mobile devices to television media. Practically it is difficult to maintain several web applications for several devices. That&#8217;s why <a href="https://jharaphula.com/responsive-design-best-practices/" target="_blank" rel="noopener noreferrer">Responsive Web Design</a> introduced in UI development. <strong>Responsive web design (RWD) is nothing but the tricks using which we can handle several resolutions</strong> in a single web page. As an UI Developer off course you know how to design a responsive web page but few things are there which comes with experience. Let us share those Responsive Design best practices to make your job easy.</p>
<h3>Responsive Design Best Practices</h3>
<p><span style="color:red">1.</span> Before designing a responsive web page <strong>first noted down the targeted resolution</strong> you are going to handle. Depending upon those resolutions plan your layout. Sit with UX Designer to discuss the mockup &amp; how to handle this in real-time. Some time it happens UX designer creates some kind of design which may not possible to achieve during certain resolution. By Discussion you can rectify this before into real-time implementation.</p>
<p><span style="color:red">2.</span> <strong>Decide which type of layout (Fluid or Fixed) you need to implement</strong> for basic template design. If you are going to implement fluid layout set width of your container div to 100%. Inside container handle pans in percentage ratio. Don&#8217;t ever take a fixed width unless until it is a small static object. In case you are creating fixed layout template, Define a CSS class (wrapper) to your container div with fixed width. Inside the container similar to fluid layout use percentage ratio to divide pans.</p>
<p><span style="color:red">3.</span> Images are very common is web page design. Keep remember <strong>to make your image responsive don&#8217;t ever apply image as a background to any div</strong>. In this case you have to define height. About width it can be handled using 100% but height creates problem. That&#8217;s why <strong>during responsive web page design use HTML image tag to place images</strong> like banner or ads. Advantages of using image in image tag is during user resize the page image tag will automatically take care of image to resize depending upon the screen resolutions.</p>
<p><span style="color:red">4.</span> Some time it was found <strong>using percentage also for certain resolutions layout breaks</strong>. In this case practice to handle this scenarios using media queries.</p>
<p><span style="color:red">5.</span> Use <strong>easy navigation pattern for mobiles</strong> compare to desktop view. If any effects you added in desktop version like slider or carousel try to avoid that in mobile view. Always remember <strong>mobile view need to light weight</strong>. Then only you web page can mobile friendly.</p>
<p><span style="color:red">6.</span> To develop Responsive Design faster as a professional UI Developer <strong>learn Responsive CSS frameworks</strong> like BootStrap or Foundation. <strong>Responsive design is a technique rather then a programming language</strong>. During development use both in-built CSS Framework classes &amp; your own tricks.</p>
<p><strong>BootStrap</strong>: Bootstrap is majorly used for UI development in applications because of the incredible amount of UI options it provides like type, head or media objects. It is easy for front-end designers to get started by providing a host of html templates showcasing some of the base functionality and layouts available, including some neat ones such as sticky footers and login pages.</p>
<p>Includes responsive grid framework, a fixed and fluid grid framework, typography styles, a variety of button and form styles, nav bars and tabs, plus other UI elements like breadcrumbs, breadcrumbs, tooltips and progress bars. Bootstrap truly shines in the JavaScript area. It offers a programmatic API that allow developers to use Bootstrap plugins purely through the JavaScript API.</p>
<p><strong>Foundation</strong>: Generally used in blogs, marketing and informational sites, etc. The markup is a little more intuitive, and the base styles require less manipulation. Foundation makes it easy for front-end designers to get started by providing a host of html templates showcasing some of the base functionality and layouts available in Foundation.</p>
<p>Includes responsive grid framework, responsive typography styles, a variety of well-designed button and form layouts, navigation and tabs galore (all responsive), and a slew of other UI elements like alerts, labels, tooltips and accordions. Foundation shines in the Jquery plugin area with snippets that are handy and more easy to implement.</p>
<p><span style="color:red">7.</span> Clear your fundamentals about <a href="https://jharaphula.com/css-div-position-property/" target="_blank" rel="noopener noreferrer">position attribute of CSS</a>. <strong>Where to use absolute &amp; where to use relative or static</strong>. This has a very strong effect in responsive web design. Bugs related to wrong use of position settings takes long time for fixation. Even some time it required to updated code structure. Learn this well before Getting Started.</p>
<p><span style="color:red">8.</span> While implementing Media Queries <strong>maintain smooth ratio for resizing form elements</strong>. For an example if you want to reduce font size of a specific label depending upon the screen resolution from 1200 pixels to 900 pixels. Reduce the font size slowly. If earlier font size is 22 pixels reduce this to 20 pixels not 12 pixels. By reducing a large difference generates breaking in sequence &amp; look odd.</p>
<p><span style="color:red">9.</span> <strong>Avoid of using scripts to design UI</strong>. Try best to handle all situations using CSS only. If finally you found the problem is not achievable using CSS you can use scripts. But in UI design it is a bad practice.</p>
<p>The above tricks will help you to achieve better Responsive web pages. Share us to your Colleagues. Let us learn from Experience.</p>
<p>The post <a href="https://jharaphula.com/responsive-design-best-practices/">Responsive Design best practices for professional Web designers</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://jharaphula.com/responsive-design-best-practices/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			<media:content url="https://jharaphula.com/wp-content/uploads/2016/05/responsive-web-page.png" medium="image" />
	</item>
		<item>
		<title>Responsive AngularJS Image Gallery with thumbnails</title>
		<link>https://jharaphula.com/angularjs-image-gallery-thumbnails/</link>
					<comments>https://jharaphula.com/angularjs-image-gallery-thumbnails/#comments</comments>
		
		<dc:creator><![CDATA[Biswabhusan Panda]]></dc:creator>
		<pubDate>Sat, 14 May 2016 18:37:25 +0000</pubDate>
				<category><![CDATA[AngularJS with Examples]]></category>
		<category><![CDATA[AngularJS]]></category>
		<category><![CDATA[AngularJS Image Gallery]]></category>
		<category><![CDATA[Image Gallery Example]]></category>
		<category><![CDATA[Image Gallery with thumbnails]]></category>
		<guid isPermaLink="false">http://box.jharaphula.com/?p=1215</guid>

					<description><![CDATA[<img width="300" height="188" src="https://jharaphula.com/wp-content/uploads/2016/05/responsive-image-gallery-300x188.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="Responsive AngularJS Image Gallery with thumbnails" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/responsive-image-gallery-300x188.jpg 300w, https://jharaphula.com/wp-content/uploads/2016/05/responsive-image-gallery.jpg 724w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>During I searched for a responsive AngularJS image gallery I found many third party paid components. But sorry to say my Customer wants some thing...</p>
<p>The post <a href="https://jharaphula.com/angularjs-image-gallery-thumbnails/">Responsive AngularJS Image Gallery with thumbnails</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></description>
										<content:encoded><![CDATA[<img width="300" height="188" src="https://jharaphula.com/wp-content/uploads/2016/05/responsive-image-gallery-300x188.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="Responsive AngularJS Image Gallery with thumbnails" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/responsive-image-gallery-300x188.jpg 300w, https://jharaphula.com/wp-content/uploads/2016/05/responsive-image-gallery.jpg 724w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>During I searched for a responsive AngularJS image gallery I found many third party paid components. But sorry to say my Customer wants some thing free. In this regard I did suggest the customer to implement a responsive image gallery with thumbnail using <a href="https://jharaphula.com/category/programming-solutions/learn-angularjs-with-examples/" target="_blank" rel="noopener noreferrer">AngularJS</a>. It is easy &amp; less time consuming. Finally, the Customer get agree to my proposal &amp; order me to develop the POC. I did that &amp; sharing the same script in below for your reference.</p>
<p>Here I have a html file &amp; in the root directory I have an images folder. Which contains all the thumbnail &amp; original images. Inside the AngularJS controller I declared a scope object imageDetails. In this object I am keeping number of images &amp; image file names. For SEO purpose here I added alt &amp; title tag for each images. To bind the images in HTML I am using ul li elements. By CSS controlling it&#8217;s responsiveness. I used as minimum styles I can. According to your mockup you can configure the classes for desire look n feel.</p>
<p>To show the popup for individual thumbnail view I am calling a function popupOriginal() in the click event of thumbnail image. Where I am passing the file name from scope imageDetails object. During popup if user will click the body area popup is getting hide. This image gallery is capable to display any number of images. To achieve more number of images you just need to add image details in scope imageDetails object. This demo app is responsive to handle any resolution.</p>
<h3>AngularJS Image Gallery Example</h3>
<pre class="brush: xml; title: ; notranslate">&lt;!DOCTYPE html&gt;
&lt;html ng-app=&quot;imgGallery&quot;&gt;
&lt;head&gt;
&lt;title&gt;Create your own AngularJS Image Gallery&lt;/title&gt;
&lt;script type=&quot;text/javascript&quot; src=&quot;https://ajax.googleapis.com/ajax/libs/angularjs/1.3.14/angular.min.js&quot;&gt;&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot; src=&quot;http://code.jquery.com/jquery-2.1.4.min.js&quot;&gt;&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
var imgGalleryModule = angular.module('imgGallery', []);
imgGalleryModule.controller('imageGalleryController', function ($scope) {
/*Developed by https://jharaphula.com*/
/*Folder path where all the images are stored*/
$scope.imgFolderPath = &quot;images/&quot;;
/*Image details like File Name &amp; SEO related alt &amp; title tags for each image*/
$scope.imageDetails = [
{'thumbnail': 'image-1.png', 'realImage': 'original-image-1.png', 'alt': 'label on Mouse Over', 'title': 'label on Mouse Over'},
{'thumbnail': 'image-2.png', 'realImage': 'original-image-2.png', 'alt': 'label on Mouse Over', 'title': 'label on Mouse Over'},
{'thumbnail': 'image-3.png', 'realImage': 'original-image-3.png', 'alt': 'label on Mouse Over', 'title': 'label on Mouse Over'},
{'thumbnail': 'image-4.png', 'realImage': 'original-image-4.png', 'alt': 'label on Mouse Over', 'title': 'label on Mouse Over'},
{'thumbnail': 'image-5.png', 'realImage': 'original-image-5.png', 'alt': 'label on Mouse Over', 'title': 'label on Mouse Over'},
{'thumbnail': 'image-6.png', 'realImage': 'original-image-6.png', 'alt': 'label on Mouse Over', 'title': 'label on Mouse Over'},
{'thumbnail': 'image-7.png', 'realImage': 'original-image-7.png', 'alt': 'label on Mouse Over', 'title': 'label on Mouse Over'},
{'thumbnail': 'image-8.png', 'realImage': 'original-image-8.png', 'alt': 'label on Mouse Over', 'title': 'label on Mouse Over'},
{'thumbnail': 'image-9.png', 'realImage': 'original-image-9.png', 'alt': 'label on Mouse Over', 'title': 'label on Mouse Over'},
{'thumbnail': 'image-10.png', 'realImage': 'original-image-10.png', 'alt': 'label on Mouse Over', 'title': 'label on Mouse Over'},
{'thumbnail': 'image-11.png', 'realImage': 'original-image-11.png', 'alt': 'label on Mouse Over', 'title': 'label on Mouse Over'},
{'thumbnail': 'image-12.png', 'realImage': 'original-image-12.png', 'alt': 'label on Mouse Over', 'title': 'label on Mouse Over'}
];
/*Function to assign real image path*/
$scope.popupOriginal = function(originalImagePath) {
$(&quot;#popupDiv&quot;).show();
$(&quot;#popupDiv&quot;).html(&quot;&lt;img src='images/&quot; + originalImagePath + &quot;' /&gt;&quot;);
};
});
/*Developed by https://jharaphula.com*/
/*Closing the popup in body click*/
$(document).mouseup(function (e)
{
var container = $(&quot;#popupDiv&quot;);
if (!container.is(e.target) &amp;&amp; container.has(e.target).length === 0) {
container.hide();
}
});
&lt;/script&gt;

&lt;style type=&quot;text/css&quot;&gt;
/*Styles related to ul li elements*/
.imgGallery { text-align:center; }
.imgGallery ul { padding: 0; margin: 0; }
.imgGallery ul li { display: inline; cursor: pointer; }
.imgStyle { margin: 10px; }
/*Style related to popup window*/
#popupDiv {
display: none;
position:fixed;
top: 50%;
left: 50%;
width: 640px;
height: 400px;
margin-top: -12em;
margin-left: -20em;
border: 1px solid #ddd;
}
&lt;/style&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;div class=&quot;imgGallery&quot; ng-controller=&quot;imageGalleryController&quot;&gt;
&lt;ul&gt;
&lt;li ng-repeat=&quot;image in imageDetails&quot;&gt;
&lt;img ng-click=&quot;popupOriginal(image.realImage);&quot; class=&quot;imgStyle&quot; alt=&quot;{{ image.alt }}&quot; title=&quot;{{ image.title }}&quot; src=&quot;{{ imgFolderPath }}{{ image.thumbnail }}&quot; /&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;!--Popup Div to show original Images--&gt;
&lt;div id=&quot;popupDiv&quot;&gt;&lt;/div&gt;
&lt;/body&gt;
&lt;/html&gt;</pre>
<p>In this above example I used 12 sample images to show the Gallery. You can save as the below image &amp; create more 11 images with the name declared above. Just update the slide number or even you can use your images with same resolution.</p>
<p><em>image-1.png</em><br />
<img loading="lazy" decoding="async" src="https://jharaphula.com/wp-content/uploads/2016/05/image-1.png" alt="image-1" width="150" height="150" class="alignnone size-full wp-image-3460" srcset="https://jharaphula.com/wp-content/uploads/2016/05/image-1.png 150w, https://jharaphula.com/wp-content/uploads/2016/05/image-1-100x100.png 100w" sizes="auto, (max-width: 150px) 100vw, 150px" /></p>
<p><em>original-image-1.png</em><br />
<img loading="lazy" decoding="async" src="https://jharaphula.com/wp-content/uploads/2016/05/original-image-1.png" alt="original-image-1" width="640" height="400" class="alignnone size-full wp-image-3461" srcset="https://jharaphula.com/wp-content/uploads/2016/05/original-image-1.png 640w, https://jharaphula.com/wp-content/uploads/2016/05/original-image-1-300x188.png 300w" sizes="auto, (max-width: 640px) 100vw, 640px" /></p>
<p>The post <a href="https://jharaphula.com/angularjs-image-gallery-thumbnails/">Responsive AngularJS Image Gallery with thumbnails</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://jharaphula.com/angularjs-image-gallery-thumbnails/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			<media:content url="https://jharaphula.com/wp-content/uploads/2016/05/responsive-image-gallery.jpg" medium="image" />
	</item>
		<item>
		<title>How to change heading background color of Bootstrap Accordion?</title>
		<link>https://jharaphula.com/heading-background-color-bootstrap-accordion/</link>
					<comments>https://jharaphula.com/heading-background-color-bootstrap-accordion/#comments</comments>
		
		<dc:creator><![CDATA[Biswabhusan Panda]]></dc:creator>
		<pubDate>Sat, 14 May 2016 18:29:01 +0000</pubDate>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Bootstrap Accordion]]></category>
		<category><![CDATA[color of Bootstrap Accordion]]></category>
		<category><![CDATA[Example of Simple Accordion]]></category>
		<category><![CDATA[heading background color]]></category>
		<guid isPermaLink="false">http://box.jharaphula.com/?p=1209</guid>

					<description><![CDATA[<img width="300" height="195" src="https://jharaphula.com/wp-content/uploads/2016/05/bootstrap-demo-app-300x195.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="How to change heading background color of Bootstrap Accordion?" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/bootstrap-demo-app-300x195.jpg 300w, https://jharaphula.com/wp-content/uploads/2016/05/bootstrap-demo-app-294x190.jpg 294w, https://jharaphula.com/wp-content/uploads/2016/05/bootstrap-demo-app-106x70.jpg 106w, https://jharaphula.com/wp-content/uploads/2016/05/bootstrap-demo-app.jpg 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>During I implemented a BootStrap Accordion in my application I found it is difficult to achieve the header background color in the toggle event of...</p>
<p>The post <a href="https://jharaphula.com/heading-background-color-bootstrap-accordion/">How to change heading background color of Bootstrap Accordion?</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></description>
										<content:encoded><![CDATA[<img width="300" height="195" src="https://jharaphula.com/wp-content/uploads/2016/05/bootstrap-demo-app-300x195.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="How to change heading background color of Bootstrap Accordion?" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/bootstrap-demo-app-300x195.jpg 300w, https://jharaphula.com/wp-content/uploads/2016/05/bootstrap-demo-app-294x190.jpg 294w, https://jharaphula.com/wp-content/uploads/2016/05/bootstrap-demo-app-106x70.jpg 106w, https://jharaphula.com/wp-content/uploads/2016/05/bootstrap-demo-app.jpg 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>During I implemented a <a href="https://jharaphula.com/learn-bootstrap-tutorial-beginners/" target="_blank" rel="noopener noreferrer">BootStrap</a> Accordion in my application I found it is difficult to achieve the header background color in the toggle event of anchor tag. I tried nearly 2 to 3 hours for its correct solution. Thanks lord I did this. To achieve this I used my logic in JQUERY. Hope if you are in the same page the below app will help you.</p>
<p>To achieve header background color for the toggled tab I added an additional class to the anchor tag &#8220;accordion-toggle&#8221;. Then in Jquery document.ready() method created its click event. Inside this first I am resetting all the background colors &amp; padding to hack the BootStrap look &amp; feel. <strong>Later depending upon the expand &amp; collapse panel for respective header anchor I am checking the visibility</strong>. If it is visible changing the background color or else maintaining the default color.</p>
<p>To run the below example you just need to copy this code to a html file. Then open it under internet access. In the below code I am using CDN link for BootStrap &amp; JQuery.</p>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-3458" src="https://jharaphula.com/wp-content/uploads/2016/05/bs-accordion.png" alt="bs-accordion" width="748" height="308" srcset="https://jharaphula.com/wp-content/uploads/2016/05/bs-accordion.png 748w, https://jharaphula.com/wp-content/uploads/2016/05/bs-accordion-300x124.png 300w" sizes="auto, (max-width: 748px) 100vw, 748px" /></p>
<h2>change heading background color of Accordion</h2>
<pre class="brush: xml; title: ; notranslate">&lt;!DOCTYPE html&gt;
&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;
&lt;head&gt;
&lt;title&gt;How to change heading background color?&lt;/title&gt;
&lt;meta name=&quot;viewport&quot; content=&quot;width=device-width, initial-scale=1&quot; /&gt;
&lt;link rel=&quot;stylesheet&quot; href=&quot;http://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css&quot; /&gt;
&lt;script type=&quot;text/javascript&quot; src=&quot;http://code.jquery.com/jquery-2.1.4.min.js&quot;&gt;&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot; src=&quot;http://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/js/bootstrap.min.js&quot;&gt;&lt;/script&gt;

&lt;style type=&quot;text/css&quot;&gt;
/*Making the accordion full screen*/
.container {
width: 100% !important;
}
/*Active class for the default open tab background color*/
.active {
background-color: red !important;
}
&lt;/style&gt;

&lt;script type=&quot;text/javascript&quot;&gt;
/*Implemented by: https://jharaphula.com, Dated:19th May 2015*/
$(document).ready(function() {
/*All header links Click events*/
$('.accordion-toggle').click(function() {
/*In Anchor tag Click first resetting all the background colors &amp; padding to hack the BootStrap look n feel*/
$('.accordion-toggle').parent().css('background-color', '#f5f5f5');
$('.accordion-toggle').parent().parent().removeClass('panel-heading');
$('.accordion-toggle').parent().css('padding', '10px 15px');
/*If the respective content panel is visible, updating its background color*/
if (!$($(this).attr('href')).is(':visible')) {
$(this).parent().css('background-color', 'red');
} else {
$(this).parent().css('background-color', '#f5f5f5');
}
});
});
&lt;/script&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;div class=&quot;container&quot;&gt;
&lt;h2&gt;Accordion using BootStrap&lt;/h2&gt;
&lt;div class=&quot;panel-group&quot; id=&quot;accordion&quot;&gt;
&lt;div class=&quot;panel panel-default&quot;&gt;
&lt;div class=&quot;panel-heading active&quot;&gt;
&lt;h4 class=&quot;panel-title&quot;&gt;
&lt;a class=&quot;accordion-toggle&quot; data-toggle=&quot;collapse&quot; data-parent=&quot;#accordion&quot; href=&quot;#panel-1&quot;&gt;Health Tips&lt;/a&gt;
&lt;/h4&gt;
&lt;/div&gt;
&lt;div id=&quot;panel-1&quot; class=&quot;panel-collapse collapse in&quot;&gt;
&lt;div class=&quot;panel-body&quot;&gt;
Health is wealth. Good health brings peace of living. For every individual it's must required to know basic Health care tips. Awareness to health care keeps us free from many diseases. What ever it may be don't ever compromise in the matter of your health. If you lost property day will come you will get it again but if you lost your health, who knows what is next?
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;panel panel-default&quot;&gt;
&lt;div class=&quot;panel-heading&quot;&gt;
&lt;h4 class=&quot;panel-title&quot;&gt;
&lt;a class=&quot;accordion-toggle&quot; data-toggle=&quot;collapse&quot; data-parent=&quot;#accordion&quot; href=&quot;#panel-2&quot;&gt;Tips for your Kids&lt;/a&gt;
&lt;/h4&gt;
&lt;/div&gt;
&lt;div id=&quot;panel-2&quot; class=&quot;panel-collapse collapse&quot;&gt;
&lt;div class=&quot;panel-body&quot;&gt;
Kids are our next Generation. In this world the most difficult job is to build a Kids. From education to food you need to take care all. Minor mistake in the matter of your Kids can destroy them. Teach them behavior, manners, attitude and how to be a successful social element. Education is the eyes for Kids. Prepare your Kids such a way that he or she to be an ideal for others.
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;panel panel-default&quot;&gt;
&lt;div class=&quot;panel-heading&quot;&gt;
&lt;h4 class=&quot;panel-title&quot;&gt;
&lt;a class=&quot;accordion-toggle&quot; data-toggle=&quot;collapse&quot; data-parent=&quot;#accordion&quot; href=&quot;#panel-3&quot;&gt;Beauty Tips&lt;/a&gt;
&lt;/h4&gt;
&lt;/div&gt;
&lt;div id=&quot;panel-3&quot; class=&quot;panel-collapse collapse&quot;&gt;
&lt;div class=&quot;panel-body&quot;&gt;
Today Beauty Tips are on demand. A beauty always want to look more n more beautiful. From makeup to costume beauties are thirsty. There some techniques using which you can look gorgeous. Experts know this. If you are interested to know such brilliant beauty tip read latest beauty tips related sections. This habits give better idea to decorate you better. Beauty tips is also helpful to take care of your skin. While you do apply beauty tips on you always give first priority to take care of your Skin.
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/body&gt;
&lt;/html&gt;</pre>
<h2>How Bootstrap Accordion Works</h2>
<p>An accordion consists of multiple panels, each containing a header and a content section. By default, only one panel is expanded at a time, though this behavior can be customized. When a user clicks on a panel&#8217;s header, its content becomes visible while other panels collapse. This interaction is managed using JavaScript and CSS transitions, ensuring smooth animations.</p>
<h2>Key Features of Bootstrap Accordion</h2>
<p>Bootstrap Accordion is a powerful component that allows developers to create collapsible content sections, improving user experience by organizing information in a compact and interactive manner. Built on top of Bootstrap’s robust framework, the accordion is widely used in web development due to its flexibility, ease of implementation, and adaptability across different devices. Below, we explore the key features that make Bootstrap Accordion an essential tool for modern web design.</p>
<h4>Responsive Design</h4>
<p>One of the standout features of the Bootstrap Accordion is its inherent responsiveness. The component automatically adjusts to different screen sizes, ensuring a seamless experience across desktops, tablets, and mobile devices. This responsiveness is achieved through Bootstrap’s grid system and CSS media queries, which dynamically resize and reposition accordion elements based on the viewport dimensions.</p>
<p>For instance, on smaller screens, the accordion collapses into a vertical stack, preventing horizontal overflow and maintaining readability. This eliminates the need for additional JavaScript or custom CSS to handle responsiveness, saving development time and effort. Whether users access the website on a smartphone or a large desktop monitor, the accordion remains functional and visually consistent.</p>
<h4>Customizable Styling</h4>
<p>Bootstrap Accordion offers extensive customization options, allowing developers to tailor its appearance to match the website’s design language. The default styling is clean and minimal, but with Bootstrap’s utility classes and SASS variables, it can be easily modified.</p>
<p>Developers can adjust colors, borders, spacing, and animations to create a unique look. For example, the background color of the accordion header or the transition effects when expanding and collapsing sections can be customized using predefined classes or custom CSS. Additionally, Bootstrap’s theming capabilities enable the accordion to align with brand-specific color schemes effortlessly.</p>
<p>For those who require more advanced styling, overriding default styles via SASS or CSS ensures complete control over the component’s visual presentation. This flexibility makes the accordion suitable for a wide range of applications, from corporate websites to creative portfolios.</p>
<h4>Accessibility</h4>
<p>Accessibility is a critical consideration in modern web development, and Bootstrap Accordion is designed with inclusivity in mind. The component adheres to WAI-ARIA (Web Accessibility Initiative – Accessible Rich Internet Applications) standards, ensuring compatibility with screen readers and keyboard navigation.</p>
<p>Key accessibility features include proper ARIA attributes such as `aria-expanded` and `aria-controls`, which provide context to assistive technologies. The accordion also supports keyboard interactions, allowing users to navigate between sections using the Tab key and expand or collapse content with the Enter or Spacebar keys.</p>
<p>Furthermore, Bootstrap ensures that focus states are clearly visible, enhancing usability for individuals who rely on keyboard navigation. By following these best practices, developers can create accordions that are accessible to all users, including those with disabilities.</p>
<h4>Easy Implementation</h4>
<p>Bootstrap Accordion is designed for simplicity, making it easy to integrate into any project. The component leverages Bootstrap’s pre-built classes and JavaScript plugins, reducing the need for extensive coding. A basic accordion can be set up with just a few lines of HTML and minimal configuration.</p>
<p>The structure consists of a parent container with the `.accordion` class, followed by individual accordion items containing a header and a collapsible body. Bootstrap’s JavaScript handles the toggle functionality automatically, eliminating the need for custom scripts. For more advanced implementations, developers can use the Bootstrap JavaScript API to control accordion behavior programmatically.</p>
<p>Additionally, Bootstrap’s comprehensive documentation provides clear examples and code snippets, enabling even beginners to implement accordions quickly. This ease of use makes it an ideal choice for projects with tight deadlines or limited development resources.</p>
<h2>Conclusion</h2>
<p>The Bootstrap Accordion is a powerful tool for organizing content in a user-friendly manner. Its flexibility, ease of use, and responsiveness make it a preferred choice for developers. By following best practices and leveraging customization options, you can create efficient and visually appealing accordions that enhance the overall user experience. Whether for FAQs, product descriptions, or complex navigation, the Bootstrap Accordion remains a reliable solution for modern web development.</p>
<p>The post <a href="https://jharaphula.com/heading-background-color-bootstrap-accordion/">How to change heading background color of Bootstrap Accordion?</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://jharaphula.com/heading-background-color-bootstrap-accordion/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			<media:content url="https://jharaphula.com/wp-content/uploads/2016/05/bootstrap-demo-app.jpg" medium="image" />
	</item>
		<item>
		<title>Best way for beginners to learn AngularJS with Examples</title>
		<link>https://jharaphula.com/beginners-learn-angularjs-with-examples/</link>
					<comments>https://jharaphula.com/beginners-learn-angularjs-with-examples/#respond</comments>
		
		<dc:creator><![CDATA[Biswabhusan Panda]]></dc:creator>
		<pubDate>Sat, 14 May 2016 18:26:17 +0000</pubDate>
				<category><![CDATA[AngularJS with Examples]]></category>
		<category><![CDATA[AngularJS]]></category>
		<category><![CDATA[beginners to learn AngularJS]]></category>
		<category><![CDATA[MVC in AngularJS]]></category>
		<category><![CDATA[Scope in AngularJS Controller]]></category>
		<guid isPermaLink="false">http://box.jharaphula.com/?p=1207</guid>

					<description><![CDATA[<img width="300" height="210" src="https://jharaphula.com/wp-content/uploads/2016/05/getting-started-with-angularjs-300x210.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="Best way for beginners to learn AngularJS with Examples" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/getting-started-with-angularjs-300x210.jpg 300w, https://jharaphula.com/wp-content/uploads/2016/05/getting-started-with-angularjs.jpg 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>Before Getting Started with this knowledge sharing session first let me know &#8220;Are you one among them who is interested to learn AngularJS?&#8221; if so...</p>
<p>The post <a href="https://jharaphula.com/beginners-learn-angularjs-with-examples/">Best way for beginners to learn AngularJS with Examples</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></description>
										<content:encoded><![CDATA[<img width="300" height="210" src="https://jharaphula.com/wp-content/uploads/2016/05/getting-started-with-angularjs-300x210.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="Best way for beginners to learn AngularJS with Examples" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/getting-started-with-angularjs-300x210.jpg 300w, https://jharaphula.com/wp-content/uploads/2016/05/getting-started-with-angularjs.jpg 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>Before Getting Started with this knowledge sharing session first let me know &#8220;Are you one among them who is interested to learn AngularJS?&#8221; if so you are in the correct page. <strong>Here my intention is to teach you AngularJS Programming from the the scratch</strong>. AngularJS is an open source advanced JavaScript framework. It was first introduced in 2009 by two developers &#8220;<strong>Adam Abrons</strong>&#8221; &amp; &#8220;<strong>Misko Hevery</strong>&#8221; from Google. Later by looking into it&#8217;s brilliant features &amp; growing demand AngularJS is finally take over by Google. In 2012 the first version of AngularJS get released.</p>
<h3>Why AngularJS is more popular compare to other Frameworks?</h3>
<p>As a developer this question comes in to mind when many times you heard the term AngularJS. In replay I can say there are many key features AngularJS introduced compare to other Frameworks like <a href="http://emberjs.com" target="_blank" rel="nofollow noopener noreferrer">ember.js</a> or <a href="http://backbonejs.org" target="_blank" rel="noopener noreferrer nofollow">backbone.js</a> which made AngularJS so popular. I know you are a beginner to AngularJS but still let you note down the key features.</p>
<ul>
<li>AngularJS supports Single page Application Design.</li>
<li>MVC &amp; MVVM both Design pattern supported by AngularJS.</li>
<li>In-built Directives &amp; facility to create Custom Directives.</li>
<li>AngularJS Handles Dependencies.</li>
<li>AngularJS helps to extend HTML Vocabulary.</li>
<li>Parallel Development supports by AngularJS.</li>
<li>AngularJS supports JSON.</li>
<li>Two way Data binding.</li>
<li>Supporting Ajax.</li>
</ul>
<h3>Getting Started with AngularJS Programming</h3>
<p>To start your first &#8220;Hallo World!&#8221; program in AngularJS you need to download the AngularJS library from <a href="https://angularjs.org" target="_blank" rel="nofollow noopener noreferrer">https://angularjs.org</a> or even you can use AngularJS library <a href="http://ajax.googleapis.com/ajax/libs/angularjs/1.3.14/angular.min.js" target="_blank" rel="nofollow noopener noreferrer">CDN link</a>. To <strong>get an idea about your first AngularJS app</strong> look at the example below.</p>
<p><strong>Example of my first AngularJS app</strong></p>
<pre class="brush: xml; title: ; notranslate">&lt;!DOCTYPE html&gt;
&lt;html ng-app=&quot;&quot;&gt;
&lt;script type=&quot;text/javascript&quot; src=&quot;http://ajax.googleapis.com/ajax/libs/angularjs/1.3.14/angular.min.js&quot;&gt;&lt;/script&gt;
&lt;body&gt;
Your Name: &lt;input type=&quot;text&quot; ng-model=&quot;yourname&quot;&gt;
&lt;br /&gt;
&lt;h2&gt;Hello {{yourname}}&lt;/h2&gt;
&lt;/body&gt;
&lt;/html&gt;</pre>
<p>In the above Example for demo purposed I used AngularJS CDN link. Do mark one thing <strong>in html tag I used an additional tag ng-app</strong>. This is an <a href="https://jharaphula.com/restrict-option-custom-directive/" target="_blank" rel="noopener noreferrer">AngularJS Directive</a>. <strong>To make the HTML know that we are using AngularJS ng-app is responsible</strong>. From this example if you will remove ng-app from html tag this app will not run. Like ng-app one more AngularJS directive ng-model which I used in body tag to display your name from input box to inside h2 tag. Similar to ng-app or ng-model AngularJS provides many useful Directives. For Beginners later in this session I will explain you some of the most used AngularJS directives. One more thing I want to tell you about our first AngularJS app is <strong>to display value in HTML AngularJS uses {{ &#8230; }} this Syntax</strong>.</p>
<h3>Model, View &amp; Controller (MVC) in AngularJS</h3>
<p>In software industry Codes are the Property. To maintain Codes well in a structured way there are several design patterns. Among them <strong>popular design patterns are MVC</strong> (Model View Controller) &amp; <strong>MVVM</strong> (Model View View Model). AngularJS Programming supports both these design patterns. For Beginners let us explorer AngularJS MVC design pattern in below.</p>
<p><strong>Model</strong></p>
<p>Model supply data to view. Always the Current states of application reflects in Model layer. While creating a model in AngularJS it can be string, number, boolean or object data type. The syntax we use is <span style="color: brown"><code>var myModule = angular.module('myApp', []);</code></span>.</p>
<p><strong>View</strong></p>
<p>View is nothing but the part user watch. To display data from the Controller we need to put AngularJS expression in view. As AngularJS supports two way data binding there is a continuous communication between view &amp; model. Where templates just pointing to View.</p>
<p><strong>Controller</strong></p>
<p>Controller is the area where we do implement application business logic. Refer to it&#8217;s name it act like a junction point between Model &amp; View. In AngularJS controllers are inside model. To create a controller we the following syntax.</p>
<pre class="brush: jscript; title: ; notranslate">var myApp = angular.module('myModel', []);
myModel.controller('myController', function($scope) {
$scope.Name = &quot;Ravi Meheta&quot;;
$scope.Email = &quot;ravi_meheta@infosys.com&quot;;
});</pre>
<p><strong>Example of AngularJS MVC Design Pattern</strong></p>
<pre class="brush: xml; title: ; notranslate">&lt;!DOCTYPE html&gt;
&lt;html ng-app=&quot;demoApp&quot;&gt;
&lt;script src= &quot;http://ajax.googleapis.com/ajax/libs/angularjs/1.3.14/angular.min.js&quot;&gt;&lt;/script&gt;
&lt;body&gt;
&lt;div ng-controller=&quot;empController&quot;&gt;
Name: &lt;input type=&quot;text&quot; ng-model=&quot;name&quot;&gt;&lt;br&gt;
Email: &lt;input type=&quot;text&quot; ng-model=&quot;email&quot;&gt;&lt;br&gt;

Welcome Message: {{ welcomeMsg() }}
&lt;/div&gt;
&lt;script&gt;
var demoapp = angular.module('demoApp', []);
demoapp.controller('empController', function($scope) {
$scope.name = &quot;Ravi Meheta&quot;;
$scope.email = &quot;ravi_meheta@infosys.com&quot;;
$scope.welcomeMsg = function() {
return &quot;Welcome to &quot; + $scope.name + &quot;. Email ID you submitted is &quot; + $scope.email;
}
});
&lt;/script&gt;
&lt;/body&gt;
&lt;/html&gt;</pre>
<p>The above Code is an example of how to implement AngularJS MVC pattern. In this example I created &#8220;demoApp&#8221; as my model, inside this I have a Controller &#8220;empController&#8221;. empController contains two objects name &amp; email of employee with a function welcomeMsg(). Now I think you got the idea how to write function in AngularJS Controller. The tricky thing here is $scope. Let us discuss about this in Details.</p>
<h3>$scope in AngularJS Controller</h3>
<p>$scope acts like a glue between controller &amp; view. I mean which property or method is a part of the $scope object that is accessible in view. In $scope object you can define JSON formatted data &amp; it can be used in view.</p>
<p>The post <a href="https://jharaphula.com/beginners-learn-angularjs-with-examples/">Best way for beginners to learn AngularJS with Examples</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://jharaphula.com/beginners-learn-angularjs-with-examples/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			<media:content url="https://jharaphula.com/wp-content/uploads/2016/05/getting-started-with-angularjs.jpg" medium="image" />
	</item>
		<item>
		<title>Project Management Skills for Happy Customer Relationship</title>
		<link>https://jharaphula.com/project-management-skills/</link>
					<comments>https://jharaphula.com/project-management-skills/#respond</comments>
		
		<dc:creator><![CDATA[Biswabhusan Panda]]></dc:creator>
		<pubDate>Sat, 14 May 2016 18:25:07 +0000</pubDate>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Customer Rewards Program]]></category>
		<category><![CDATA[Happy Customer Relationship]]></category>
		<category><![CDATA[Project Management Skills]]></category>
		<category><![CDATA[Skills for Happy Customer]]></category>
		<guid isPermaLink="false">http://box.jharaphula.com/?p=1205</guid>

					<description><![CDATA[<img width="300" height="188" src="https://jharaphula.com/wp-content/uploads/2016/05/program-manager-300x188.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="Project Management Skills for happy Customer relationship" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/program-manager-300x188.jpg 300w, https://jharaphula.com/wp-content/uploads/2016/05/program-manager.jpg 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>In the Chapter of Project Management escalation is a dirty lesson. Experienced Project Managers hate escalation to hear. They know how to avoid this. I...</p>
<p>The post <a href="https://jharaphula.com/project-management-skills/">Project Management Skills for Happy Customer Relationship</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></description>
										<content:encoded><![CDATA[<img width="300" height="188" src="https://jharaphula.com/wp-content/uploads/2016/05/program-manager-300x188.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="Project Management Skills for happy Customer relationship" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/program-manager-300x188.jpg 300w, https://jharaphula.com/wp-content/uploads/2016/05/program-manager.jpg 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>In the Chapter of Project Management <strong>escalation is a dirty lesson</strong>. Experienced Project Managers hate escalation to hear. They know how to avoid this. I have more then 12 years experience in IT. I worked for various corporates starting from mid-level to large scale industries. But nearly <strong>in every organization I found escalation</strong>. Not only to small scale organizations <strong>but also escalation is open to level companies</strong>. Truly speaking yet we have all that processes using which we can avoid escalation. But it depends up on Project Management Skills how Project Manager manage the flow. Make sure <strong>if we will follow correct processes to execute our job escalation will never hit us</strong>.</p>
<p>There are several causes those creates escalation. Software development is a never ending process. It&#8217;s a royal job. Don&#8217;t be in hurry, Do cool divide the project works to phase by phase. Keep remember requirements never going to end. So, &#8220;How to avoid escalation?&#8221;, &#8220;What are the processes we need to follow?&#8221; during a project development. Let us discuss one by one in below paragraphs.</p>
<h3>Always accept requirements with written proofs</h3>
<p>As I told above Software Development is a never ending process. Customer can change his/her requirements at any point of time. So before decide a time-line or project plan make sure all the requirement details you received from your Customer in format of an email or signed documents. This activity helps to save us from UN-planned additional requirements. During the initial phase of a project there are many things which even Customer don&#8217;t expect to face. During real-time when those things come Customer think to add those features. While for you this is a phase II item.</p>
<h3>Before send the Estimation take Approval from Experts</h3>
<p>Missing Deadline is a high level of escalation. Generally we miss deadline because of wrong planning. Before send Estimation &amp; Deadline take approval from experts. Always keep buffer time in hand. In case of any thing will go wrong buffer time can save you. From my personal experience I can suggest during you prepare the estimation analyze the resources well. Know their capabilities &amp; planned leaves in advance. Never prepare an estimation by thinking we will work late night to complete this. This creates problem in real-time.</p>
<h3>Give priority to Employee Satisfaction</h3>
<p>Many time it was found to achieve deadline we put pressure on employees to work late night. It is OK if the employee not rendered his regular duty. But after regular duty if you are pressurizing your employee to work late night in long run it creates UN-favorable conditions. During you prepare resource planning think well about the Skills &amp; Capability of the resources you are going to use in your project. To have a successful organization employee satisfaction matters.</p>
<h3>Proper Time Management &amp; Correct Decision Making</h3>
<p>Time management is a key pillar or successful project management. Who knows how to manage time no body in the world can defeat him. To be a ideal project manager give priority to successful time management. Prepare planning &amp; choose the tasks in priority basis. To know more on Time Management you can refer our release <a href="https://jharaphula.com/time-management-skills/" target="_blank" rel="noopener noreferrer">Time Management is the first stair to your Success</a>.</p>
<p>On the way of Time Management, Correct Decision making helps to save time. Be a quick decision maker. While working in a team during a decision if required you can also take the help of your team members.</p>
<h3>Follow process oriented Development Guidelines</h3>
<p>During you develop a Software always follow processes. For an example if more then one developers are working in your project always use code repository. It helps to protect code loss &amp; saves time from code merging. While doing testing list out the issue in a formatted way. Here you can refer any on-line tools like JIRA or you can even maintain the list in MS-Excel. During issue fixation after verification from QA team update the sheet &amp; share it with Customer.</p>
<p>Like the above there are some key points by following them we can avoid escalation in Project Management. I am grateful to you for you time you shared to read the above. From your experience if you have any inputs addition to the above please feel free to share a comment. We welcome your experiences.</p>
<p>The post <a href="https://jharaphula.com/project-management-skills/">Project Management Skills for Happy Customer Relationship</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://jharaphula.com/project-management-skills/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			<media:content url="https://jharaphula.com/wp-content/uploads/2016/05/program-manager.jpg" medium="image" />
	</item>
		<item>
		<title>Learn Bootstrap &#8211; Bootstrap Tutorial for absolute Beginners</title>
		<link>https://jharaphula.com/learn-bootstrap-tutorial-beginners/</link>
					<comments>https://jharaphula.com/learn-bootstrap-tutorial-beginners/#respond</comments>
		
		<dc:creator><![CDATA[Biswabhusan Panda]]></dc:creator>
		<pubDate>Sat, 14 May 2016 18:19:52 +0000</pubDate>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[BootStrap]]></category>
		<category><![CDATA[BootStrap Grid System]]></category>
		<category><![CDATA[BootStrap Table]]></category>
		<category><![CDATA[Learn Bootstrap]]></category>
		<category><![CDATA[Web Designing]]></category>
		<guid isPermaLink="false">http://box.jharaphula.com/?p=1201</guid>

					<description><![CDATA[<img width="300" height="191" src="https://jharaphula.com/wp-content/uploads/2016/05/getting-started-with-bootstrap-300x191.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="Learn Bootstrap - Bootstrap Tutorial for absolute Beginners" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/getting-started-with-bootstrap-300x191.jpg 300w, https://jharaphula.com/wp-content/uploads/2016/05/getting-started-with-bootstrap.jpg 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>On the way of responsive web-designing BootStrap is a popular Framework. Bootstrap is open source &#38; maintained in Github. It comes with many in-built classes....</p>
<p>The post <a href="https://jharaphula.com/learn-bootstrap-tutorial-beginners/">Learn Bootstrap &#8211; Bootstrap Tutorial for absolute Beginners</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></description>
										<content:encoded><![CDATA[<img width="300" height="191" src="https://jharaphula.com/wp-content/uploads/2016/05/getting-started-with-bootstrap-300x191.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="Learn Bootstrap - Bootstrap Tutorial for absolute Beginners" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/getting-started-with-bootstrap-300x191.jpg 300w, https://jharaphula.com/wp-content/uploads/2016/05/getting-started-with-bootstrap.jpg 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>On the way of responsive web-designing BootStrap is a popular Framework. Bootstrap is open source &amp; maintained in Github. It comes with many in-built classes. BootStrap is easy to use &amp; saves programmer time to implement device <a href="https://jharaphula.com/tips-to-optimize-your-website-for-better-ranking/" rel="noopener noreferrer" target="_blank">optimized web</a>. Whether it&#8217;s a mobile device or laptop BootStrap is capable to deal with any resolution. BootStrap supports all devices across the globe. You can download BootStrap from <a href="http://getbootstrap.com" target="_blank" rel="noopener noreferrer nofollow">getbootstrap.com</a>. To Getting Started with BootStrap read our Learn Bootstrap Tutorial.</p>
<h3>BootStrap File Structure &amp; How to Use them?</h3>
<p>Downloaded version of BootStrap comes with CSS, Fonts &amp; JS files. CSS Folder contains bootstrap.css, bootstrap-theme.css &amp; their minified versions. Fonts folder contains glyph icons &amp; JS folder contains bootstrap.js &amp; it&#8217;s minified version. To Getting Started you can also use BootStrap CDN links. Look at the example below.</p>
<p><em>CDN link for BootStrap</em> &#8211; <a href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css" target="_blank" rel="nofollow noopener noreferrer">CSS</a>, <a href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/js/bootstrap.min.js" target="_blank" rel="nofollow noopener noreferrer">JavaScript</a> &amp; <a href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap-theme.min.css" target="_blank" rel="nofollow noopener noreferrer">Theme</a>.</p>
<p><em>BootStrap Hello World!</em></p>
<pre class="brush: xml; title: ; notranslate">&lt;!DOCTYPE html&gt;
&lt;html lang=&quot;en&quot;&gt;
&lt;head&gt;
&lt;title&gt;Bootstrap Hallo World!&lt;/title&gt;
&lt;meta charset=&quot;utf-8&quot;&gt;
&lt;meta name=&quot;viewport&quot; content=&quot;width=device-width, initial-scale=1&quot;&gt;
&lt;link rel=&quot;stylesheet&quot; href=&quot;https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css&quot;&gt;
&lt;script src=&quot;https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js&quot;&gt;&lt;/script&gt;
&lt;script src=&quot;http://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/js/bootstrap.min.js&quot;&gt;&lt;/script&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;div class=&quot;container&quot;&gt;
&lt;h2&gt;Getting Started with BootStrap&lt;/h2&gt;
&lt;div class=&quot;row&quot;&gt;
&lt;div class=&quot;col-sm-6&quot;&gt;
Hallo World!
&lt;/div&gt;
&lt;div class=&quot;col-sm-6&quot;&gt;
This screen is divided into two sections.
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/body&gt;
&lt;/html&gt;</pre>
<p>While writing your first BootStrap application don&#8217;t forget to add viewport meta tag with initial-scale value to 1. Here 1 means 100% or you can say the original resolution.</p>
<h3>BootStrap Grid System</h3>
<p>To design a fluid layout Bootstrap divides each row in to 12 columns. For each column there is a specific class defined in BootStrap. For an example if you want to divide your screen into two panel left (25%) &amp; right (75%). You can declare col-md-3 &amp; col-md-9 to respective parallel div&#8217;s. As a basic rows must need to be inside a .container (fixed-width) or .container-fluid (full-screen) class. Followed by row columns need to declare inside.</p>
<pre class="brush: xml; title: ; notranslate">&lt;div class=&quot;row&quot;&gt;
&lt;div class=&quot;col-md-3&quot;&gt;.col-md-3&lt;/div&gt;
&lt;div class=&quot;col-md-9&quot;&gt;.col-md-9&lt;/div&gt;
&lt;/div&gt;</pre>
<p>In BootStrap Grid system Columns are in 4 Categories col-xs-* (Extra Small for phones), col-sm-* (Small for tablets), col-md-* (Medium for desktops) &amp; col-lg-* (Large for larger desktops).</p>
<p>For an example if you want to implement 4 equal columns you can do the following.</p>
<pre class="brush: xml; title: ; notranslate">&lt;div class=&quot;row&quot;&gt;
&lt;div class=&quot;col-md-3&quot;&gt;Column i&lt;/div&gt;
&lt;div class=&quot;col-md-3&quot;&gt;Column ii&lt;/div&gt;
&lt;div class=&quot;col-md-3&quot;&gt;Column iii&lt;/div&gt;
&lt;div class=&quot;col-md-3&quot;&gt;Column iv&lt;/div&gt;
&lt;/div&gt;</pre>
<h3>BootStrap Table</h3>
<p>From the classical days of web <a href="https://jharaphula.com/category/programming-solutions/" rel="noopener noreferrer" target="_blank">programming</a> we do implement table to present data. Do you remember to adjust a table with various of resolution what we do. Generally we declare table width 100%. Similarly to alternate row colors we add some odd or even CSS classes. Like this many problems related to table is addressed in BootStrap. By simply declaring the class table you can make your table responsive. Look at the example below.</p>
<pre class="brush: xml; title: ; notranslate">&lt;div class=&quot;container&quot;&gt;
&lt;h2&gt;BootStrap Table Demo&lt;/h2&gt;
&lt;table class=&quot;table&quot;&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Employee Name&lt;/th&gt;
&lt;th&gt;Email ID&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Somanath Pradhan&lt;/td&gt;
&lt;td&gt;pradhan@demoemailid.com&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Rakesh Srivastab&lt;/td&gt;
&lt;td&gt;rakesh@demoemailid.com&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Supriti Kabi&lt;/td&gt;
&lt;td&gt;supriti@demoemailid.com&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;</pre>
<p><em>Other BootStrap Classes for Table</em></p>
<table>
<tr>
<td>.table-striped</td>
<td>This class helps to highlight alternate rows.</td>
</tr>
<tr>
<td>.table-bordered</td>
<td>Using this class you can add border to your table.</td>
</tr>
<tr>
<td>.table-hover</td>
<td>On mouse over of each row this class help to highlight that row.</td>
</tr>
<tr>
<td>.table-condensed</td>
<td>This class make tables more compact by cutting cell padding in half.</td>
</tr>
</table>
<p>To add these classes you need to follow parent class table. I mean if you want to add border to your table you can add class=&#8221;table table-bordered&#8221;.</p>
<p><em>Contextual classes to color table rows or individual cells</em></p>
<table>
<tr>
<td>.active</td>
<td>Using class active you can put hover color to a particular row or cell.</td>
</tr>
<tr>
<td>.success</td>
<td>Using class success you can highlight a positive action.</td>
</tr>
<tr>
<td>.info</td>
<td>Using info class you can neutral informative change or action.</td>
</tr>
<tr>
<td>.warning</td>
<td>Helps highlight warning data in a table.</td>
</tr>
<tr>
<td>.danger</td>
<td>Using this class you can show indication for negative actions.</td>
</tr>
</table>
<h3>Text Related BootStrap Classes</h3>
<table>
<tr>
<td>.text-left</td>
<td>Using this class you can align text to left.</td>
</tr>
<tr>
<td>.text-center</td>
<td>Using this class you can align text to center.</td>
</tr>
<tr>
<td>.text-right</td>
<td>Using this class you can align text to right.</td>
</tr>
<tr>
<td>.text-justify</td>
<td>Using this class you can justify you paragraph text lines.</td>
</tr>
<tr>
<td>.text-nowrap</td>
<td>Using this class you can protect your text to break into new line.</td>
</tr>
<tr>
<td>.text-lowercase</td>
<td>This class will convert all text to lower case.</td>
</tr>
<tr>
<td>.text-uppercase</td>
<td>This class will convert all text to upper case.</td>
</tr>
<tr>
<td>.text-capitalize</td>
<td>Using this class you can capitalize text.</td>
</tr>
</table>
<h3>Button Related BootStrap Classes</h3>
<table>
<tr>
<td>.btn</td>
<td>This is the parent class.</td>
</tr>
<tr>
<td>.btn-default</td>
<td>Using this class you can show Standard button.</td>
</tr>
<tr>
<td>.btn-primary</td>
<td>Provides extra weight to the button.</td>
</tr>
<tr>
<td>.btn-success</td>
<td>In case of a positive action will take place we can use this button class.</td>
</tr>
<tr>
<td>.btn-info</td>
<td>Contextual button for informational alert messages.</td>
</tr>
<tr>
<td>.btn-warning</td>
<td>In case of some warning need to show you can use this button class.</td>
</tr>
<tr>
<td>.btn-danger</td>
<td>If something will happen negative in that case you can use this.</td>
</tr>
<tr>
<td>.btn-link</td>
<td>This class will show link in place of button.</td>
</tr>
</table>
<p>These are the basics to Getting Started with BootStrap. If you are looking more in depth please refer <a href="http://getbootstrap.com/css/" target="_blank" rel="nofollow noopener noreferrer">getbootstrap.com</a></p>
<p>The post <a href="https://jharaphula.com/learn-bootstrap-tutorial-beginners/">Learn Bootstrap &#8211; Bootstrap Tutorial for absolute Beginners</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://jharaphula.com/learn-bootstrap-tutorial-beginners/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			<media:content url="https://jharaphula.com/wp-content/uploads/2016/05/getting-started-with-bootstrap.jpg" medium="image" />
	</item>
		<item>
		<title>Best way to learn JavaScript programming for beginners</title>
		<link>https://jharaphula.com/learn-javascript-programming-beginners/</link>
					<comments>https://jharaphula.com/learn-javascript-programming-beginners/#respond</comments>
		
		<dc:creator><![CDATA[Biswabhusan Panda]]></dc:creator>
		<pubDate>Sat, 14 May 2016 18:15:57 +0000</pubDate>
				<category><![CDATA[JS Functions & Examples]]></category>
		<category><![CDATA[JavaScript Data Types]]></category>
		<category><![CDATA[JavaScript helps]]></category>
		<category><![CDATA[JavaScript Operators]]></category>
		<category><![CDATA[JavaScript Programming]]></category>
		<guid isPermaLink="false">http://box.jharaphula.com/?p=1197</guid>

					<description><![CDATA[<img width="300" height="190" src="https://jharaphula.com/wp-content/uploads/2016/05/javascript-for-IT-freshers-300x190.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="Best way to learn JavaScript programming for beginners" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/javascript-for-IT-freshers-300x190.jpg 300w, https://jharaphula.com/wp-content/uploads/2016/05/javascript-for-IT-freshers.jpg 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>JavaScript is a popular client-side programming language. It is also known as ECMAScript. ECMAScript was first introduced in 1997. Before we explore more into JavaScript...</p>
<p>The post <a href="https://jharaphula.com/learn-javascript-programming-beginners/">Best way to learn JavaScript programming for beginners</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></description>
										<content:encoded><![CDATA[<img width="300" height="190" src="https://jharaphula.com/wp-content/uploads/2016/05/javascript-for-IT-freshers-300x190.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="Best way to learn JavaScript programming for beginners" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/javascript-for-IT-freshers-300x190.jpg 300w, https://jharaphula.com/wp-content/uploads/2016/05/javascript-for-IT-freshers.jpg 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>JavaScript is a <strong>popular client-side programming language</strong>. It is also known as ECMAScript. ECMAScript was first introduced in 1997. Before we explore more into JavaScript first let us know how JavaScript help in web development. In client server architecture <strong>JavaScript helps to reduce http requests</strong> by performing possible operations in client end. Let&#8217;s talk about an employee registration form. Using this form to register an employee we need to provide valid data before form submission. It can possible user will submit the form with blank fields or invalid data. To protect this we need to check user data before form submission.</p>
<p>It can be done using server. But to do this we have to play with response &amp; request mechanism. Which is time consuming &amp; can increase server load. That&#8217;s why client script, to check whether data filed or user trying to submit the form with blank fields it is better to use client resource rather then sending a request to server. Like this there are several cases where client-script is more useful then server-script. Are you looking to learn such a powerful client-script? If so, this is the right place for you. Let us learn JavaScript. I know you will enjoy while learning.</p>
<h3>How to write JavaScript in a HTML page?</h3>
<p>In a HTML page JavaScript can wrote using 2 ways. One is inside &lt;script&gt; tag &amp; other one is using js file. Look at the examples below.</p>
<pre class="brush: jscript; title: ; notranslate">&lt;script type=&quot;text/javascript&quot;&gt;
document.write('JavaScript Hello World Program');
&lt;/script&gt;</pre>
<p>OR</p>
<pre class="brush: jscript; title: ; notranslate">&lt;script type=&quot;text/javascript&quot; src=&quot;hello-world.js&quot;&gt;&lt;/script&gt;</pre>
<p>Keep remember if you will not add type=&#8221;text/javascript&#8221; still your script will run. But it is a best practice to use type with script tag. Compare to script block using js files you can modularize your code. I mean if you are designing a form validation related scripts you can keep in validation.js &amp; dynamic theme related scripts you can keep in theme.js.</p>
<h3>How to comment in JavaScript?</h3>
<p>During development code commenting is an essential skill. Think once in a thousand line program how much time you required to understand the flow. In this matter comment helps. By looking comments you can take less time to understand where which changes are required. In JavaScript we can do comment using 2 ways. To comment a single line of text we need to add two back slash (//). To comment multiple lines syntax is /* &#8230;&#8230;. */. Look at the example below.</p>
<pre class="brush: jscript; title: ; notranslate">&lt;script type=&quot;text/javascript&quot;&gt;
// This is a Single line Comment.
document.write('JavaScript Single line Comment.');
/* This is a Multi-line Comment.
You can add more Comments here... */
document.write('JavaScript Multi-line Comment.');
&lt;/script&gt;</pre>
<h3>How to display data using JavaScript?</h3>
<p>JavaScript doesn&#8217;t have any in-built print or display function. There are 4 ways through which you can display data to outside from a JavaScript function. window.alert(), document.write(), innerHTML &amp; console.log().</p>
<h3>JavaScript Data Types, Variable &amp; Scope</h3>
<p>JavaScript is a loosely coupled programming language. It has three primitive data types. Number, String &amp; Boolean. To declare a variable in JavaScript we use syntax var. For an example if we are declaring var x = 6; then here x belongs to Number data type. In case we are declaring var x = &#8220;6&#8221;; here x belongs to String data type. In the similar way if we declare var x = true or var x = false, here data type of x is Boolean.</p>
<p>JavaScript is a case sensitive programming language. While declaring a variable stay aware variable names are case sensitive. variable &#8220;MyVar&#8221; is not same as &#8220;myVar&#8221;.</p>
<p>JavaScript variables are only two scope Local &amp; Global. Global variable is accessible to all functions while Local variable is specific for that function inside which it is declared. Look at the example below.</p>
<pre class="brush: jscript; title: ; notranslate">&lt;script type=&quot;text/javascript&quot;&gt;
&lt;!--
//Global variable
var myVar = &quot;this is a global variable.&quot;;
function variablescope( ) {
//Local variable
var myVar = &quot;this is a local variable.&quot;;
document.write(myVar);
}
//--&gt;
&lt;/script&gt;</pre>
<h3>JavaScript Operators</h3>
<p>JavaScript supports various types of operators. These are Arithmetic Operators, Comparison Operators, Logical Operators, Assignment Operators &amp; Conditional Operators.</p>
<p><strong>Arithmetic Operators</strong></p>
<p>Arithmetic Operators are used to perform arithmetic operations. In JavaScript arithmetic operators are + (Addition), &#8211; (Subtraction), * (Multiplication), / (Division), % (Modulus Division), ++ (Increment) &amp; &#8211; &#8211; (Decrement). Addition used to add two integer values. Similarly subtraction, multiplication &amp; division works for numeric values. Modulus Operator and remainder of after an integer division. Increment operator increase the value by one. If the value of variable A is 5 by adding increment operator A++ value is equal to 6. Similar to increment operator decrement operator decrease the value by one.</p>
<p><strong>Comparison Operators</strong></p>
<p>JavaScript supports 6 Comparison Operators. These are == (Equal), != (Not Equal), &lt; (Less than), &gt; (Greater than), &lt;= (Less then Equal to) &amp; &gt;= (Greater then Equal to). Let&#8217;s talk about two variable X &amp; Y. I assigned their values X = 10 &amp; Y = 20. In this case equal operator (X == Y) returns false. X != Y returns true. X &lt; Y returns true. X &gt; Y returns false &amp; So on. Keep remember Comparison Operators returns Boolean results.</p>
<p><strong>Logical Operators</strong></p>
<p>JavaScript supports 3 logical operators AND (&amp;&amp;), OR (||) &amp; NOT(!). Where both the conditions need to valid we can use AND operator, if from both conditions at least one condition need to valid in this scenario we can use OR. While the condition is not valid in this case we can use NOT operator.</p>
<p><strong>Assignment Operators</strong></p>
<p>There are 6 Assignment Operators available in JavaScript =, +=, -=, *=, /= &amp; %=. = operator helps to assign values from right side operand to left side operand. For an example if var Y = X; then during execution Y will hold X value. += It adds right operand value to the left operand &amp; store the result to left operand. -= It subtracts right operand value from the left operand &amp; store the result to left operand. *= It multiplies right operand value with the left operand &amp; store the result to left operand. /= It divides left operand value with the right operand &amp; store the result to left operand. %= It takes modulus using two operands &amp; assign the result to left operand.</p>
<p><strong>Conditional Operators</strong></p>
<p>Conditional Operator is generally the ?:. The syntax is If Condition is true ? Then value X : Otherwise value Y.</p>
<h3>If&#8230;Else Statement in JavaScript programming</h3>
<p>I can say if else is the primary conditional statement for any programing language. Let&#8217;s assume you have a variable X which hold the value of employee age. How can you display a message for employees greater then 50 plus. Here if else helps to take the decision. Look at the example below how to use if else in JavaScript program.</p>
<pre class="brush: jscript; title: ; notranslate">&lt;script type=&quot;text/javascript&quot;&gt;
&lt;!--
var age = 52;
if( age &gt; 50 ) {
document.write(&quot;&lt;b&gt;This is an old Employee.&lt;/b&gt;&quot;);
}
//--&gt;
&lt;/script&gt;</pre>
<p><em>Note:</em> JavaScript supports nested if else.</p>
<h3>Switch Case in JavaScript programming</h3>
<p>Compare to nested if else switch case is a very similar conditional statement. If you have less then 8 to 10 conditions in this matter it&#8217;s not a problem which conditional statement you prefer to use. You can choose if else or <a href="https://jharaphula.com/example-angularjs-switch-case/" rel="noopener noreferrer" target="_blank">switch case</a>. But if you have more then 10 conditions in your function it is better to choose switch case. Compare to if else switch case gives better performance. Look at the example below how to use switch case in a JavaScript program.</p>
<pre class="brush: jscript; title: ; notranslate">&lt;script type=&quot;text/javascript&quot;&gt;
&lt;!--
var level='A';
document.write(&quot;Example of switch case&lt;br /&gt;&quot;);
switch (level)
{
case 'A': document.write(&quot;This is a Good job.&lt;br /&gt;&quot;);
break;
case 'B': document.write(&quot;This is a Pretty good job.&lt;br /&gt;&quot;);
break;
case 'C': document.write(&quot;You are Passed.&lt;br /&gt;&quot;);
break;
default: document.write(&quot;Default level for unknown value.&lt;br /&gt;&quot;)
}
//--&gt;
&lt;/script&gt;</pre>
<p>A switch case comes with cases. Refer to the above example Case &#8216;A&#8217;: mean when the level is A at that time this condition will execute. After each block of case execution switch case restricted to provide break so the next block of code will not execute. Finally if no condition will satisfy switch case provides a default case. I mean in the above example if the level value is not equal to A, B or C then the default: part will execute.</p>
<h3>While Statement in JavaScript programming</h3>
<p>During writing a program some time we required until the condition is satisfied we need iterations. In this case while is useful. Look at the example below how to use while statement in JavaScript program.</p>
<pre class="brush: jscript; title: ; notranslate">&lt;script type=&quot;text/javascript&quot;&gt;
&lt;!--
var count = 0;
document.write(&quot;Example of while Loop&quot; + &quot;&lt;br /&gt;&quot;);
while (count &lt; 12){
document.write(&quot;Print Current Count : &quot; + count + &quot;&lt;br /&gt;&quot;);
count++;
}
//--&gt;
&lt;/script&gt;</pre>
<h3>For loop in JavaScript programming</h3>
<p>For loop starts from a value we initialize &amp; the iterations goes up to the condition satisfied. Using for loop we can increase or decrease the conditional value from the initial value. Syntax for for loop is as below.</p>
<pre class="brush: jscript; title: ; notranslate">for (initialization; test condition; iteration statement){
//Statement(s) to be executed if test condition is true
}</pre>
<p>Let&#8217;s talk about a case where I want a loop where count will start from 0 &amp; it will go up to less then 10. Look how I did this using for loop JavaScript.</p>
<pre class="brush: jscript; title: ; notranslate">&lt;script type=&quot;text/javascript&quot;&gt;
&lt;!--
var count;
document.write(&quot;Example of for Loop&quot; + &quot;&lt;br /&gt;&quot;);
for(count = 0; count &lt; 10; count++){
document.write(&quot;Printing the Count value : &quot; + count );
document.write(&quot;&lt;br /&gt;&quot;);
}
//--&gt;
&lt;/script&gt;</pre>
<p>The post <a href="https://jharaphula.com/learn-javascript-programming-beginners/">Best way to learn JavaScript programming for beginners</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://jharaphula.com/learn-javascript-programming-beginners/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			<media:content url="https://jharaphula.com/wp-content/uploads/2016/05/javascript-for-IT-freshers.jpg" medium="image" />
	</item>
		<item>
		<title>Why CSS3 Media Queries are beneficial for Responsive Web Designing?</title>
		<link>https://jharaphula.com/css3-media-queries-tutorial/</link>
					<comments>https://jharaphula.com/css3-media-queries-tutorial/#respond</comments>
		
		<dc:creator><![CDATA[Biswabhusan Panda]]></dc:creator>
		<pubDate>Sat, 14 May 2016 18:10:45 +0000</pubDate>
				<category><![CDATA[CSS Tricks with Examples]]></category>
		<category><![CDATA[Advanced CSS3]]></category>
		<category><![CDATA[CSS3 Interview Questions]]></category>
		<category><![CDATA[CSS3 Media Queries]]></category>
		<category><![CDATA[Responsive Web Designing]]></category>
		<category><![CDATA[RWD]]></category>
		<guid isPermaLink="false">http://box.jharaphula.com/?p=1191</guid>

					<description><![CDATA[<img width="300" height="192" src="https://jharaphula.com/wp-content/uploads/2016/05/media-queries-300x192.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="How Media Queries are beneficial for Responsive Layout?" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/media-queries-300x192.jpg 300w, https://jharaphula.com/wp-content/uploads/2016/05/media-queries.jpg 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>Today web is one of the fastest data media in the world. Everyday more than millions of people are searching various information in web. I...</p>
<p>The post <a href="https://jharaphula.com/css3-media-queries-tutorial/">Why CSS3 Media Queries are beneficial for Responsive Web Designing?</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></description>
										<content:encoded><![CDATA[<img width="300" height="192" src="https://jharaphula.com/wp-content/uploads/2016/05/media-queries-300x192.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="How Media Queries are beneficial for Responsive Layout?" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/media-queries-300x192.jpg 300w, https://jharaphula.com/wp-content/uploads/2016/05/media-queries.jpg 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>Today web is one of the fastest data media in the world. Everyday more than millions of people are searching various information in web. I can say web is the dictionary for information. Looking into this demand today web is not only available to computers but also <strong>you can access web from several devices</strong>. Technically speaking several devices means several resolutions. As an experienced UI developer you need to consider all those devices &amp; their resolutions while <a href="https://jharaphula.com/web-content-accessibility-guidelines/" target="_blank" rel="noopener noreferrer">design a web-page</a>. I mean to say while the end-user will fetch your web-page from any device, your web-page must need to compatible for that resolution depending upon the devices. This is called Responsive web designing.</p>
<p>On the way of responsive web designing <strong>CSS3 introduced Media Queries</strong>. Those are very powerful to handle any resolution related CSS styles. Let&#8217;s talk about some standard devices before move into media queries.</p>
<h2>Standard Devices</h2>
<table width="100%">
<tbody>
<tr>
<th>Devices</th>
<th>Resolution (In Width)</th>
<th>Pixels Ratio</th>
</tr>
<tr>
<td>iPhones 4 &amp; 4S</td>
<td>320px &#8211; 420px</td>
<td>2</td>
</tr>
<tr>
<td>iPhones 5 &amp; 5S</td>
<td>320px &#8211; 568px</td>
<td>2</td>
</tr>
<tr>
<td>iPhones 6</td>
<td>375px &#8211; 667px</td>
<td>2</td>
</tr>
<tr>
<td>iPhones 6+</td>
<td>414px &#8211; 736px</td>
<td>3</td>
</tr>
<tr>
<td>Galaxy S3</td>
<td>320px &#8211; 640px</td>
<td>2</td>
</tr>
<tr>
<td>Galaxy S4</td>
<td>320px &#8211; 640px</td>
<td>3</td>
</tr>
<tr>
<td>HTC Phones</td>
<td>360px &#8211; 640px</td>
<td>3</td>
</tr>
<tr>
<td>iPad mini</td>
<td>768px &#8211; 1024px</td>
<td>1</td>
</tr>
<tr>
<td>iPad 1 &amp; 2</td>
<td>768px &#8211; 1024px</td>
<td>1</td>
</tr>
<tr>
<td>iPad 3 &amp; 4</td>
<td>768px &#8211; 1024px</td>
<td>2</td>
</tr>
<tr>
<td>Galaxy Tablets</td>
<td>800px &#8211; 1280px</td>
<td>NA</td>
</tr>
<tr>
<td>Nexus Tablets</td>
<td>601px &#8211; 906px</td>
<td>1.332</td>
</tr>
<tr>
<td>Kindle Fire HD 7&#8243;</td>
<td>800px &#8211; 1280px</td>
<td>1.5</td>
</tr>
<tr>
<td>Kindle Fire HD 8.9&#8243;</td>
<td>1200px &#8211; 1600px</td>
<td>1.5</td>
</tr>
<tr>
<td>Laptops</td>
<td>1200px &#8211; 1600px</td>
<td>1 &amp; 2</td>
</tr>
<tr>
<td>Apple Watch</td>
<td>42mm &#8211; 38mm</td>
<td>NA</td>
</tr>
<tr>
<td>Moto 360 Watch</td>
<td>218px &#8211; 281px</td>
<td>NA</td>
</tr>
</tbody>
</table>
<p>Now from the above list you can understood how resolution varies from device to device. To optimize our web for various resolutions let us discuss how media queries are helpful.</p>
<h2>Introduction to CSS3 Media Queries</h2>
<p>Media Queries are CSS3 techniques through which we can detect width, height, aspect ratio, color, orientation or media types of any device. It helps to separate specific device depended style blocks. Look at the example below.</p>
<pre class="brush: css; title: ; notranslate">@media screen and (min-width: 768px) and (max-width: 1024px) {   
/* Styles for Screen Resolution 768px to 1024px */
}

@media screen and (max-width: 600px) {
/* Styles for Screen Resolution up to 600px */
}</pre>
<p>In this two block of code first block is for the screen resolution 768px to 1024px &amp; the second one is for screen width 600px or less.</p>
<h2>Syntax for CSS3 Media Queries</h2>
<p>There are two ways to write media queries. One is &#8220;Embed CSS&#8221; &amp; the other one is &#8220;Linked CSS&#8221;.</p>
<p>Embed CSS Syntax:</p>
<pre class="brush: css; title: ; notranslate">@media not|only mediatype and (media feature) {
/* Required Styles */
}</pre>
<p>Linked CSS Syntax:</p>
<pre class="brush: xml; title: ; notranslate">&lt;link rel=&quot;stylesheet&quot; media=&quot;mediatype and|not|only (media feature)&quot; href=&quot;deviceSpecific.css&quot;&gt;</pre>
<p>Using linked CSS you need to create separate style sheet files for respective devices. To refer those files you can use link tag with conditional media types &amp; features.</p>
<h2>Media Types</h2>
<table width="100%">
<tbody>
<tr>
<th>Value</th>
<th>Description</th>
</tr>
<tr>
<td>All</td>
<td>Used for all media type devices.</td>
</tr>
<tr>
<td>print</td>
<td>Used for printers.</td>
</tr>
<tr>
<td>screen</td>
<td>Used for computers, laptop, tablets, phones etc.</td>
</tr>
</tbody>
</table>
<h3>Common used Media Features</h3>
<table width="100%">
<tbody>
<tr>
<th>Value</th>
<th>Description</th>
</tr>
<tr>
<td>aspect-ratio</td>
<td>Aspect Ratio is nothing but the ratio between between width &amp; height of the Screen.</td>
</tr>
<tr>
<td>color</td>
<td>Defines the number of bits per color component for the Screen.</td>
</tr>
<tr>
<td>width</td>
<td>Define the width of Screen.</td>
</tr>
<tr>
<td>height</td>
<td>Define the height of Screen.</td>
</tr>
<tr>
<td>max-width</td>
<td>Defines the maximum width of the Screen.</td>
</tr>
<tr>
<td>min-width</td>
<td>Defines the minimum width of the Screen.</td>
</tr>
<tr>
<td>max-height</td>
<td>Defines the maximum height of the Screen.</td>
</tr>
<tr>
<td>min-height</td>
<td>Defines the minimum height of the Screen.</td>
</tr>
<tr>
<td>resolution</td>
<td>Defines the resolution of device, using dpi or dpcm.</td>
</tr>
<tr>
<td>orientation</td>
<td>Defines whether the Screen is in landscape mode or in portrait mode.</td>
</tr>
</tbody>
</table>
<p>The post <a href="https://jharaphula.com/css3-media-queries-tutorial/">Why CSS3 Media Queries are beneficial for Responsive Web Designing?</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://jharaphula.com/css3-media-queries-tutorial/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			<media:content url="https://jharaphula.com/wp-content/uploads/2016/05/media-queries.jpg" medium="image" />
	</item>
		<item>
		<title>User Interface (UI) Design Strategies using SDLC Lifecycle</title>
		<link>https://jharaphula.com/user-interface-design-sdlc-phases/</link>
					<comments>https://jharaphula.com/user-interface-design-sdlc-phases/#comments</comments>
		
		<dc:creator><![CDATA[Biswabhusan Panda]]></dc:creator>
		<pubDate>Sat, 14 May 2016 18:08:46 +0000</pubDate>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Block Diagram]]></category>
		<category><![CDATA[Design Strategy]]></category>
		<category><![CDATA[Requirement Analysis]]></category>
		<category><![CDATA[SDLC Phases]]></category>
		<category><![CDATA[User Interface Design]]></category>
		<guid isPermaLink="false">http://box.jharaphula.com/?p=1189</guid>

					<description><![CDATA[<img width="300" height="182" src="https://jharaphula.com/wp-content/uploads/2016/05/SDLC-Life-Cycle-300x182.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="User Interface Design Strategy using SDLC Phases" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/SDLC-Life-Cycle-300x182.jpg 300w, https://jharaphula.com/wp-content/uploads/2016/05/SDLC-Life-Cycle.jpg 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>In an Application User Interface is the area through which end-user interact with the system. User Interface includes document, forms, validations, images, icons, fonts, style...</p>
<p>The post <a href="https://jharaphula.com/user-interface-design-sdlc-phases/">User Interface (UI) Design Strategies using SDLC Lifecycle</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></description>
										<content:encoded><![CDATA[<img width="300" height="182" src="https://jharaphula.com/wp-content/uploads/2016/05/SDLC-Life-Cycle-300x182.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="User Interface Design Strategy using SDLC Phases" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/SDLC-Life-Cycle-300x182.jpg 300w, https://jharaphula.com/wp-content/uploads/2016/05/SDLC-Life-Cycle.jpg 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>In an Application User Interface is the area through which end-user interact with the system. User Interface includes document, forms, <a href="https://jharaphula.com/javascript-function-asp-net-customvalidator/" target="_blank" rel="noopener noreferrer">validations</a>, images, icons, fonts, style &amp; animations. Let’s discuss about an employee management system (EMS) here business logics &amp; Database are in the core. To interact with them User required <a href="https://jharaphula.com/ui-developer-interview-questions/" target="_blank" rel="noopener noreferrer">User Interface (UI)</a>. User interface is the first step to operate an application. In the cause user interface is also known as front-end.</p>
<h2>User Interface (UI) Design Strategies</h2>
<p>To register an employee in EMS we required few data’s like First Name, Last Name, Date of Birth &amp; so on. Until these data’s are not entered to our database we can’t considered that person as an employee. Here User Interface comes into picture. So, how we can register an employee in the System? To do so we provide a form in <a href="https://jharaphula.com/list-of-html5-new-tags/" target="_blank" rel="noopener noreferrer">HTML</a> where we have controls like input fields, dropdown lists or text areas. On form submission these controls are responsible to bring data from a user to database. With this example I think now you can understood well about the role of User interface in application designing.</p>
<p>Think about a non-technical user, who is completely blind about the anatomy of the application. What he know is, he know how to play with User Interface. Better user interface brings better user experience. From a developer point of view it may user interface is less prior then core development but in a customer point of view user interface is the application what he/she wants.</p>
<p>So, when User Interface directly interact with Customers &amp; their requirements I can say we need sufficient planning to develop user interface. Of course to design the core we need planning but in this session let us explore more into UI development process.</p>
<p>According to my experience I divided UX + UI development process to 9 stages.</p>
<h2>SDLC Lifecycle Phases</h2>
<ul>
<li>Requirement Analysis</li>
<li>User Analysis</li>
<li>Blueprint &amp; Block Diagram</li>
<li>Customer Approval</li>
<li>FSD Preparation</li>
<li>Prototype</li>
<li>Customer Approval</li>
<li>Implementation</li>
<li>Testing</li>
</ul>
<h2>Requirement Analysis</h2>
<p>This is the initial phase to collect information about Customer requirements. According to this analysis we can proceed further stages of development. In this phase basically plenty of questions arises. Why they want to design a software? How they are managing their System? Which problem they need to shut out by implementing software? What are the modules they required? Which departments they targeted to connect? Like so on…</p>
<p>Keep remember with <a href="https://jharaphula.com/agile-development-methodology-scrum-manager/" target="_blank" rel="noopener noreferrer">latest methodologies</a> Requirement Analysis can happen in between the designing too. But in the initial phase we need to collect as many information as we can. This helps to generate a clear picture about the application Customer wants.</p>
<h2>User Analysis</h2>
<p>To prepare a successful software it is mandatory to know its users. User analysis gives picture about the level of access, types of users, role &amp; permission info. For an example if your customer required to design an Employee Management System here users can be Employees, Administration &amp; Super Admin. Depending upon the facilities or modules in your software you need give access &amp; roles for type of users. During this phase try to get a clear picture on type of users &amp; their level of access. In design phase correct user analysis saves time &amp; reduce the chance of re-work.</p>
<h2>Blueprint &amp; Block Diagram</h2>
<p>Developing a Software in Expensive. Once you are clear with the requirements &amp; its users don’t jump directly to designing. It may during requirement &amp; <a href="https://jharaphula.com/competitor-analysis-keyword-research/" target="_blank" rel="noopener noreferrer">user analysis</a> there can be a communication gap between you &amp; your customer. If you are going to design the software which is out of scope it will take more man power &amp; investments. That’s why before developing codes prefer to prepare blueprints &amp; block diagrams refer to your analysis &amp; customer requirements. In blueprint design each &amp; every form clear with type of controls. To architect the flow use block diagrams. Many time customer wants a specific look &amp; feel. In this case blueprints are very useful.</p>
<h2>Customer Approval</h2>
<p>Blueprints &amp; Block Diagrams are enough to understand the goal of application. Before proceed ahead towards real designing present this to your Customer &amp; take approval from them. In this way you will get confirm that what information we collected during analysis phase these are correct &amp; genuine. In-case customer required any changes it can happen here. So, in feature this process will save unwanted re-works &amp; resource utilization.</p>
<h2>FSD Preparation</h2>
<p>After completion of Customer Approval process you have a clear picture about the functionalities customer required in their application. To keep track of them before development prepare Functional Specification Documents (FSD). FSD helps in three major cases.</p>
<ul>
<li>If some of your team member left the job others will not depend on his/her absence. At the same end if a new employee join your team he/she can know about the project by referring these documents.</li>
<li>FSD makes development easier.</li>
<li>During project documentation &amp; help manual FSD helps to guide &amp; saves time.</li>
</ul>
<h2>Prototype</h2>
<p>In UI development Prototyping is the key area. Before developing a functionality rich application it is wise to design the skeleton first. During the phase of prototyping first prepare color palates &amp; <a href="https://jharaphula.com/photoshop-tutorial-beginners/" target="_blank" rel="noopener noreferrer">PSD files</a> for feature reference. Depending upon the PSD files code your HTML templates. Maintain a Single CSS file for your common styles. Then if required create separate CSS files depending upon your templates.</p>
<h2>Customer Approval</h2>
<p>Once your team is completed with Prototyping it is wise to present a demo to the Customer &amp; take approval from them. So that in feature while you do start designing the real application you will not miss out anything. In-case any changes you found after demo make them fixed in this phase only.</p>
<h2>Implementation</h2>
<p>Here I am not talking about the business logic or <a href="https://jharaphula.com/database-design-for-beginners/" target="_blank" rel="noopener noreferrer">database related implementations</a>. As we are discussing about the UI development process in this phase let you complete the dynamic parts of your UI templates. Here you can make your templates responsive, implement validations, animations or can bind static data’s to your controls.</p>
<h2>Testing</h2>
<p>Before Delivering the UI templates to other division for core development ask your QA engineer to test the UI templates well. In this way we can divide testing into phases. Which help to produce more quality software’s. In case the tester found some issues with your UI stuffs fix them in high priority or else freeze the code to release.</p>
<p>The post <a href="https://jharaphula.com/user-interface-design-sdlc-phases/">User Interface (UI) Design Strategies using SDLC Lifecycle</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://jharaphula.com/user-interface-design-sdlc-phases/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			<media:content url="https://jharaphula.com/wp-content/uploads/2016/05/SDLC-Life-Cycle.jpg" medium="image" />
	</item>
		<item>
		<title>How to Display JSON Data in a Table using AngularJS?</title>
		<link>https://jharaphula.com/how-to-display-json-data-table-angularjs/</link>
					<comments>https://jharaphula.com/how-to-display-json-data-table-angularjs/#respond</comments>
		
		<dc:creator><![CDATA[Biswabhusan Panda]]></dc:creator>
		<pubDate>Sat, 14 May 2016 17:25:59 +0000</pubDate>
				<category><![CDATA[AngularJS with Examples]]></category>
		<category><![CDATA[AngularJS]]></category>
		<category><![CDATA[CSS Styles]]></category>
		<category><![CDATA[How to Display JSON Data?]]></category>
		<category><![CDATA[JSON Data in a Table]]></category>
		<category><![CDATA[Table using AngularJS]]></category>
		<guid isPermaLink="false">http://box.jharaphula.com/?p=1181</guid>

					<description><![CDATA[<img width="300" height="187" src="https://jharaphula.com/wp-content/uploads/2016/05/AngularJS-binding-data-from-JSON-300x187.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="How to display JSON data in a Table using AngularJS?" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/AngularJS-binding-data-from-JSON-300x187.jpg 300w, https://jharaphula.com/wp-content/uploads/2016/05/AngularJS-binding-data-from-JSON.jpg 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>JSON is a lightweight data-interchange platform. During development sometimes we required to bind JSON file data to controls. In this session I am showing how...</p>
<p>The post <a href="https://jharaphula.com/how-to-display-json-data-table-angularjs/">How to Display JSON Data in a Table using AngularJS?</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></description>
										<content:encoded><![CDATA[<img width="300" height="187" src="https://jharaphula.com/wp-content/uploads/2016/05/AngularJS-binding-data-from-JSON-300x187.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="How to display JSON data in a Table using AngularJS?" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/AngularJS-binding-data-from-JSON-300x187.jpg 300w, https://jharaphula.com/wp-content/uploads/2016/05/AngularJS-binding-data-from-JSON.jpg 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p><strong>JSON is a lightweight data-interchange platform</strong>. During development sometimes we required to bind <a href="https://jharaphula.com/learn-json-tutorial-for-beginners/" target="_blank" rel="noopener noreferrer">JSON</a> file data to controls. In this session I am showing how to create a table in AngularJS using JSON data. Here I have 2 files one is AngularJS-table.htm &amp; insured.json. insured.json is the JSON file which contains data for insured members of my family. In AngularJS-table.htm file I am showing all the members name &amp; their relationship with me in tabular structure.</p>
<p>Trick I used here to bind data is so simple. Using <a href="https://jharaphula.com/angularjs-ajax-http-service/" target="_blank" rel="noopener noreferrer">AngularJS $http.get()</a> method I am fetching data from insured.json file. Over success I am getting all JSON file data in response object. Then to bind these data in HTML table I am assigning response.insureds (parent node of JSON data) to $scope.members object. In HTML I have a table which contains two rows header &amp; a dynamic row. Header I defined manually but for the next row I am <a href="https://jharaphula.com/ng-repeat-conditional-filter-angularjs/" target="_blank" rel="noopener noreferrer">using ng-repeat directive of AngularJS</a>. During execution according to the number of records ng-repeat will generate that number of rows for the table. To display this table more professional here I used CSS styles.</p>
<h3>AngularJS-table.htm</h3>
<pre class="brush: xml; title: ; notranslate">&lt;!DOCTYPE html&gt;
&lt;html ng-app=&quot;myInsured&quot;&gt;
&lt;head&gt;
&lt;title&gt;Example to display JSON data in a Table using AngularJS?&lt;/title&gt;
&lt;script type=&quot;text/javascript&quot; src=&quot;https://ajax.googleapis.com/ajax/libs/angularjs/1.3.0-rc.0/angular.min.js&quot;&gt;&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
var myInsured = angular.module('myInsured', []);
myInsured.controller('insuredCtrl', function($scope, $http) {
$http.get(&quot;insured.json&quot;).success(function (response) {
/*After Successfully fetch the data from JSON file assigning these data to $scope object variable*/
$scope.members = response.insureds;
});
});
&lt;/script&gt;
&lt;style type=&quot;text/css&quot;&gt;
/*Style for Table*/
table, th , td {
border: 1px solid grey;
border-collapse: collapse;
padding: 4px;
font-family: arial;
}
/*Style for Table Header*/
th {
background: darkblue;
color: white;
text-align: left;
}
/*Style for Alternate Rows*/
table tr:nth-child(odd) {
background-color: #C2EBC3;
}
table tr:nth-child(even) {
background-color: #FFFFFF;
}
&lt;/style&gt;
&lt;/head&gt;
&lt;body ng-controller=&quot;insuredCtrl&quot;&gt;
&lt;table&gt;
&lt;tr&gt;
&lt;th&gt;Name&lt;/th&gt;
&lt;th&gt;Relationship&lt;/th&gt;
&lt;/tr&gt;
&lt;tr ng-repeat=&quot;indivisual in members&quot;&gt;
&lt;td&gt;{{ indivisual.Name }}&lt;/td&gt;
&lt;td&gt;{{ indivisual.Relation }}&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;/body&gt;
&lt;/html&gt;</pre>
<h3>insured.json</h3>
<pre class="brush: jscript; title: ; notranslate">{&quot;insureds&quot;:
[
{
&quot;Name&quot;: &quot;Aparmita Dash&quot;,
&quot;Relation&quot;: &quot;Spouse&quot;
},
{
&quot;Name&quot;: &quot;Angurbala Dash&quot;,
&quot;Relation&quot;: &quot;Mother&quot;
},
{
&quot;Name&quot;: &quot;Surendra Dash&quot;,
&quot;Relation&quot;: &quot;Father&quot;
},
{
&quot;Name&quot;: &quot;Nirupama Dash&quot;,
&quot;Relation&quot;: &quot;Daughter&quot;
},
{
&quot;Name&quot;: &quot;Sanjarekha Dash&quot;,
&quot;Relation&quot;: &quot;Daughter&quot;
}
]
}</pre>
<p>The post <a href="https://jharaphula.com/how-to-display-json-data-table-angularjs/">How to Display JSON Data in a Table using AngularJS?</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://jharaphula.com/how-to-display-json-data-table-angularjs/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			<media:content url="https://jharaphula.com/wp-content/uploads/2016/05/AngularJS-binding-data-from-JSON.jpg" medium="image" />
	</item>
		<item>
		<title>How to add Google Map to Website? &#8211; Google Map API</title>
		<link>https://jharaphula.com/add-google-map-to-website/</link>
					<comments>https://jharaphula.com/add-google-map-to-website/#respond</comments>
		
		<dc:creator><![CDATA[Biswabhusan Panda]]></dc:creator>
		<pubDate>Sat, 14 May 2016 17:02:41 +0000</pubDate>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Add Google Map]]></category>
		<category><![CDATA[Chicago]]></category>
		<category><![CDATA[Google Map API]]></category>
		<category><![CDATA[Information Technology]]></category>
		<guid isPermaLink="false">http://box.jharaphula.com/?p=1175</guid>

					<description><![CDATA[<img width="300" height="180" src="https://jharaphula.com/wp-content/uploads/2016/05/google-map-300x180.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="How to add Google Map to Website? - Google Map API" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/google-map-300x180.jpg 300w, https://jharaphula.com/wp-content/uploads/2016/05/google-map.jpg 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>Few days back during I worked for a Corporate website designing I found to integrate Google Map in their contact us page. Their office location...</p>
<p>The post <a href="https://jharaphula.com/add-google-map-to-website/">How to add Google Map to Website? &#8211; Google Map API</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></description>
										<content:encoded><![CDATA[<img width="300" height="180" src="https://jharaphula.com/wp-content/uploads/2016/05/google-map-300x180.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="How to add Google Map to Website? - Google Map API" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/google-map-300x180.jpg 300w, https://jharaphula.com/wp-content/uploads/2016/05/google-map.jpg 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>Few days back during I worked for a Corporate website designing I found to integrate Google Map in their contact us page. Their office location is in Chicago, US. According to latitude &amp; longitude this location (Latitude &amp; Longitude) is coming under 40.446947, -90.878906. According to the Customer here they required to add Google Map to Website using simple JavaScript. I did so &amp; sharing the same example here.</p>
<p>Technically it is very simple to embed Google Map API in <a href="https://jharaphula.com/list-of-html5-new-tags/" rel="noopener noreferrer" target="_blank">HTML5</a>. To do so here I have a container div &#8220;mapView&#8221; in HTML body. To refer Google Map API here I integrated the script file from <a target="_blank" href="http://maps.googleapis.com/maps/api/js" rel="noopener noreferrer">http://maps.googleapis.com/maps/api/js</a>. Using a simple JavaScript function initGoogleMap() I am configuring the Google Map properties. Basically in the below example I used 3 properties to configure the Google Map. Center, Zoom &amp; mapTypeId. Center is accepting latitude &amp; longitude to show that point in the center of the map view. Using zoom I am passing 6 to show the map more closer to the user. mapTypeId is useful to display the map in various views. Basically there are 4 types of views provided by Google Map. These are ROADMAP (the default 2D view), SATELLITE (photographic view), HYBRID (photographic view + roadmap), TERRAIN (map with mountains, rivers, temples etc.).</p>
<p>Finally to initialize the Google Map API I am assigning the new instance of the Google Map API to a variable &#8220;newMap&#8221;. On window load to display the map in Contact us page I am adding the function initGoogleMap() to an event of Google Map using DOM listener method.</p>
<h3>embedGoogleMap.htm</h3>
<pre class="brush: xml; title: ; notranslate">&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot; &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;&gt;
&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot; &gt;
&lt;head&gt;
&lt;title&gt;How to add Google Map to Website?&lt;/title&gt;
&lt;!--Google Map API--&gt;
&lt;script type=&quot;text/javascript&quot; src=&quot;http://maps.googleapis.com/maps/api/js&quot;&gt;&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
/*Funtion to assign properties for map view*/
function initGoogleMap() {
var mapProperties = {
center: new google.maps.LatLng(40.446947, -90.878906),
zoom: 6,
mapTypeId: google.maps.MapTypeId.ROADMAP
};
/*Creating a new instance for Google Map*/
var newMap = new google.maps.Map(document.getElementById(&quot;mapView&quot;), mapProperties);
}
/*On window load showing Google Map*/
google.maps.event.addDomListener(window, 'load', initGoogleMap);
&lt;/script&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;div id=&quot;mapView&quot; style=&quot;width:600px; height:420px;&quot;&gt;&lt;/div&gt;
&lt;/body&gt;
&lt;/html&gt;</pre>
<p>The post <a href="https://jharaphula.com/add-google-map-to-website/">How to add Google Map to Website? &#8211; Google Map API</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://jharaphula.com/add-google-map-to-website/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			<media:content url="https://jharaphula.com/wp-content/uploads/2016/05/google-map.jpg" medium="image" />
	</item>
		<item>
		<title>Tool to unzip tar file in Windows Operating System? &#8211; 7-Zip</title>
		<link>https://jharaphula.com/tool-unzip-tar-file-windows/</link>
					<comments>https://jharaphula.com/tool-unzip-tar-file-windows/#respond</comments>
		
		<dc:creator><![CDATA[Nibedita Panda]]></dc:creator>
		<pubDate>Sat, 14 May 2016 14:50:27 +0000</pubDate>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[7-Zip]]></category>
		<category><![CDATA[tar.gz]]></category>
		<category><![CDATA[Tool to unzip tar Files]]></category>
		<category><![CDATA[Windows Operating System]]></category>
		<guid isPermaLink="false">http://box.jharaphula.com/?p=1125</guid>

					<description><![CDATA[<img width="300" height="190" src="https://jharaphula.com/wp-content/uploads/2016/05/zip-unzip-300x190.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="Tool to unzip tar file in Windows Operating System? - 7-Zip" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/zip-unzip-300x190.jpg 300w, https://jharaphula.com/wp-content/uploads/2016/05/zip-unzip.jpg 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>I am a webmaster. My hosting agency is HostGator.com. Everyday I am taking regular backup of my website using their backup facilities. I noticed for...</p>
<p>The post <a href="https://jharaphula.com/tool-unzip-tar-file-windows/">Tool to unzip tar file in Windows Operating System? &#8211; 7-Zip</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></description>
										<content:encoded><![CDATA[<img width="300" height="190" src="https://jharaphula.com/wp-content/uploads/2016/05/zip-unzip-300x190.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="Tool to unzip tar file in Windows Operating System? - 7-Zip" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/zip-unzip-300x190.jpg 300w, https://jharaphula.com/wp-content/uploads/2016/05/zip-unzip.jpg 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>I am a webmaster. My hosting agency is HostGator.com. Everyday I am taking regular backup of my website using their backup facilities. I noticed for backup they generates a file with tar.gz extension. One day I suddenly found due to some accidental delete few records get deleted from my <a href="https://jharaphula.com/database-basics-terminologies-definition/" rel="noopener noreferrer" target="_blank">database</a>. What to do next? Wop let me restore my previous backup.</p>
<p>I downloaded the backup file with extension tar.gz. Now to restore my database I need the sql file. Which locates inside the tar.gz file. I tried many methods using windows to unzip the backup tar.gz file but sorry to say windows can&#8217;t help me. I asked few of my friends &#8220;How to unzip tar.gz file in windows?&#8221;. Few of them suggest me that tar.gz is a linux format file system. To unzip this I need a linux machine.</p>
<p>Finally, I can&#8217;t satisfied with their answers. How can it possible? There must be some ways. Then I shared the same question in Yahoo Answer. Wop. My Good luck one of the technical member get back to me with the following answer.</p>
<p>&#8220;<em>Windows itself not supports tar.gz file to unzip. You have to use one third party zip unzip tool. Please take a look into <a href="http://www.7-zip.org/" target="_blank" rel="noopener noreferrer nofollow">7-zip</a> (Open source Windows utility for manipulating archives).</em>&#8221;</p>
<p>Followed by the above answer I searched 7-zip in Google &amp; found the link <a href="http://www.7-zip.org/" target="_blank" rel="nofollow noopener noreferrer">http://www.7-zip.org</a>. Downloaded the 7-zip app. Installed it in my Windows machine. Then selected my tar.gz file, right click on it followed by the trick of other unzip tools. Great, I found an option 7-zip in my dialog. On mouse over it show me option to convert tar.gz to tar.</p>
<p><strong>Keep remember during we apply multiple zip for any file we can unzip the file in reverse sequence. I mean tar &amp; gz are two zip formats. To get the unzip version of tar.gz file we need to first convert tar.gz to tar file. Then tar file to normal.</strong></p>
<p>So using 7-zip I able to convert my tar.gz file to tar file now I repeat the same procedure. Right click on the tar file &amp; found the option to extract tar file to normal. Did this &amp; thanks 7-zip I got my files. Selected the sql file &amp; uploaded it to the backup management system of HostGator. Issue get fixed. Now my site is live again. You may face the same issue that&#8217;s why feel free to share this story.</p>
<p>The post <a href="https://jharaphula.com/tool-unzip-tar-file-windows/">Tool to unzip tar file in Windows Operating System? &#8211; 7-Zip</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://jharaphula.com/tool-unzip-tar-file-windows/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			<media:content url="https://jharaphula.com/wp-content/uploads/2016/05/zip-unzip.jpg" medium="image" />
	</item>
		<item>
		<title>JQuery Treeview example using HTML Ul li elements</title>
		<link>https://jharaphula.com/jquery-treeview-example/</link>
					<comments>https://jharaphula.com/jquery-treeview-example/#respond</comments>
		
		<dc:creator><![CDATA[Nibedita Panda]]></dc:creator>
		<pubDate>Sat, 14 May 2016 12:22:09 +0000</pubDate>
				<category><![CDATA[Learn JQuery with Examples]]></category>
		<category><![CDATA[hierarchy]]></category>
		<category><![CDATA[HTML elements]]></category>
		<category><![CDATA[HTML Ul li elements]]></category>
		<category><![CDATA[JQuery Treeview example]]></category>
		<guid isPermaLink="false">http://box.jharaphula.com/?p=1055</guid>

					<description><![CDATA[<img width="300" height="184" src="https://jharaphula.com/wp-content/uploads/2016/05/jquery-treeview-300x184.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="JQuery Treeview example using HTML Ul li elements" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/jquery-treeview-300x184.jpg 300w, https://jharaphula.com/wp-content/uploads/2016/05/jquery-treeview.jpg 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>To display large number of data we prefer to use Treeview. Let&#8217;s take an example where we want to show all those countries &#38; their...</p>
<p>The post <a href="https://jharaphula.com/jquery-treeview-example/">JQuery Treeview example using HTML Ul li elements</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></description>
										<content:encoded><![CDATA[<img width="300" height="184" src="https://jharaphula.com/wp-content/uploads/2016/05/jquery-treeview-300x184.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="JQuery Treeview example using HTML Ul li elements" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/jquery-treeview-300x184.jpg 300w, https://jharaphula.com/wp-content/uploads/2016/05/jquery-treeview.jpg 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>To display large number of data we prefer to use Treeview. Let&#8217;s take an example where we want to show all those countries &amp; their respective states where we have our customers. In the below jQuery Treeview example I implemented the Same. This Treeview is simply created using Jquery. Using this Treeview you can show any level of data in hierarchy manner.</p>
<p><a href="https://jharaphula.com/category/programming-solutions/learn-jquery-with-examples/" target="_blank" rel="noopener noreferrer">Jquery is an advanced programming language</a>. For a Jquery professional it is very simple to create a Treeview. Look at the example below here I used only 5 to 6 lines of codes to create a Treeview. The logic I implemented here is so straight forward. In HTML I have ul &amp; li elements which represents data for my Treeview. UL elements inside li elements are sub nodes. Using Jquery document.ready method initially I am tracking all the li elements &amp; inside the li elements which ul elements length is greater than zero I am adding a class &#8220;node&#8221; for them.</p>
<h2>Introduction to jQuery Treeview</h2>
<p>A treeview is a hierarchical data structure that organizes elements in a parent-child relationship, resembling the branches of a tree. In web development, jQuery Treeview is a popular plugin that simplifies the creation and management of interactive tree structures. It allows users to expand, collapse, and navigate through nested items efficiently.</p>
<h2>Key Features of jQuery Treeview</h2>
<p>1. Dynamic Loading jQuery Treeview supports dynamic loading of nodes, enabling efficient handling of large datasets. Only the necessary nodes are loaded when expanded, reducing initial page load time.</p>
<p>2. Customizable Appearance Developers can easily customize the tree’s appearance using CSS. Icons, colors, and spacing can be adjusted to match the website’s design.</p>
<p>3. Interactive Controls Users can expand and collapse nodes with a single click, making navigation intuitive. Some implementations support drag-and-drop functionality for reordering nodes.</p>
<p>4. Ajax Support The plugin can fetch data asynchronously from a server using Ajax, ensuring seamless updates without full page reloads.</p>
<p>5. Event Handling jQuery Treeview provides event callbacks for actions like node selection, expansion, and collapse, allowing developers to trigger custom functions.</p>
<p>Then in the next loop I am detecting the li elements with class &#8220;node&#8221; and for their anchor tags click event binding toggle class &#8220;active&#8221;. To show the expand &amp; collapsible feature smooth I used slideToggle with slow.</p>
<h2>JQuery Treeview Example</h2>
<pre class="brush: xml; title: ; notranslate">&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot; &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;&gt;
&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot; &gt;
&lt;head&gt;
&lt;title&gt;JQuery Treeview example&lt;/title&gt;
&lt;script type=&quot;text/javascript&quot; src=&quot;http://code.jquery.com/jquery-1.9.1.js&quot;&gt;&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
$(document).ready(function() {
$('.treeview li').each(function() {
if($(this).children('ul').length &gt; 0) {
$(this).addClass('node');
}
});

$('.treeview li.node &gt; a').click(function() {
$(this).parent().toggleClass('active');
$(this).parent().children('ul').slideToggle('slow');
});
});
&lt;/script&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;div class=&quot;treeview&quot;&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;#&quot;&gt;Pakistan&lt;/a&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;#&quot;&gt;Faisalabad&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#&quot;&gt;Karachi&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#&quot;&gt;Gujranwala&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#&quot;&gt;India&lt;/a&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;#&quot;&gt;Odisha&lt;/a&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;#&quot;&gt;Bhubaneswar&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#&quot;&gt;Cuttuck&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#&quot;&gt;Balasore&lt;/a&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;#&quot;&gt;Balasore Golei&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#&quot;&gt;MPC College Road&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#&quot;&gt;FM University Road&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#&quot;&gt;West Bengal&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#&quot;&gt;Nepal&lt;/a&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;#&quot;&gt;Kathmandu&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#&quot;&gt;Bharatpur&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;/body&gt;
&lt;/html&gt;</pre>
<h2>Treeview CSS Styles for Ul li elements</h2>
<pre class="brush: css; title: ; notranslate">ul, #myUL { list-style-type: none; }
#myUL { margin: 0px; padding: 0px; }
.box { cursor: pointer; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; }
.box::before { content: &quot;\2610&quot;; color: black; display: inline-block; margin-right: 7px; }
.check-box::before { content: &quot;\2611&quot;; color: lightblue; }
.nested { display: none; }
.active { display: block; }</pre>
<h2>Common Use Cases</h2>
<p>1. File Browsers – Navigate directory structures.<br />
2. Navigation Menus – Create multi-level dropdown menus.<br />
3. Data Organization – Display hierarchical data like categories or organizational charts.</p>
<h2>Best Practices</h2>
<p>&#8211; Optimize Performance<br />
– Use lazy loading for large trees.<br />
&#8211; Ensure Accessibility – Add ARIA attributes for screen readers.<br />
&#8211; Test Cross-Browser Compatibility – Verify functionality across browsers.</p>
<h2>Conclusion</h2>
<p>jQuery Treeview is a versatile tool for creating interactive, hierarchical structures in web applications. Its ease of customization, dynamic loading capabilities, and event-driven architecture make it a preferred choice for developers. By following best practices, you can implement efficient and user-friendly treeviews that enhance navigation and data organization. Whether for file browsers, menus, or data visualization, jQuery Treeview simplifies complex hierarchies with minimal code.</p>
<p>The post <a href="https://jharaphula.com/jquery-treeview-example/">JQuery Treeview example using HTML Ul li elements</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://jharaphula.com/jquery-treeview-example/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			<media:content url="https://jharaphula.com/wp-content/uploads/2016/05/jquery-treeview.jpg" medium="image" />
	</item>
		<item>
		<title>Example of JQuery Slideshow using Images with Description</title>
		<link>https://jharaphula.com/jquery-slideshow-images-description/</link>
					<comments>https://jharaphula.com/jquery-slideshow-images-description/#respond</comments>
		
		<dc:creator><![CDATA[Nibedita Panda]]></dc:creator>
		<pubDate>Sat, 14 May 2016 10:13:22 +0000</pubDate>
				<category><![CDATA[Learn JQuery with Examples]]></category>
		<category><![CDATA[Example of JQuery Slideshow]]></category>
		<category><![CDATA[JQuery Slideshow]]></category>
		<category><![CDATA[JQuery Slideshow using Images]]></category>
		<category><![CDATA[Slideshow using Images with Description]]></category>
		<guid isPermaLink="false">http://box.jharaphula.com/?p=994</guid>

					<description><![CDATA[<img width="300" height="200" src="https://jharaphula.com/wp-content/uploads/2016/05/film-reels-300x200.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="Example of JQuery Slideshow using Images with Description" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/film-reels-300x200.jpg 300w, https://jharaphula.com/wp-content/uploads/2016/05/film-reels-182x120.jpg 182w, https://jharaphula.com/wp-content/uploads/2016/05/film-reels-106x70.jpg 106w, https://jharaphula.com/wp-content/uploads/2016/05/film-reels.jpg 600w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>Slideshow is very useful for fancy websites. Recently I worked for a Bollywood portal. There I have to show top 10 actresses of Bollywood with...</p>
<p>The post <a href="https://jharaphula.com/jquery-slideshow-images-description/">Example of JQuery Slideshow using Images with Description</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></description>
										<content:encoded><![CDATA[<img width="300" height="200" src="https://jharaphula.com/wp-content/uploads/2016/05/film-reels-300x200.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="Example of JQuery Slideshow using Images with Description" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/film-reels-300x200.jpg 300w, https://jharaphula.com/wp-content/uploads/2016/05/film-reels-182x120.jpg 182w, https://jharaphula.com/wp-content/uploads/2016/05/film-reels-106x70.jpg 106w, https://jharaphula.com/wp-content/uploads/2016/05/film-reels.jpg 600w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>Slideshow is very useful for fancy websites. Recently I worked for a Bollywood portal. There I have to show <a href="https://jharaphula.com/highest-paid-celebrities-bollywood/" target="_blank" rel="noopener noreferrer">top 10 actresses of Bollywood</a> with little description about them. I did this using JQuery. Here to show you the demo I used only 3 images (<em>Image-A.png, Image-B.png &amp; Image-C.png</em>). Resolution for these images are 500 x 257. You can customize the below code as per your requirements. If you are changing size of images you just need to update related CSS classes.</p>
<p>Technically speaking to implement JQuery Slideshow is very easy. Refer to the below example after HTML &amp; CSS i wrote a small Jquery function. In side the function I am tracking each slide &amp; storing them to a temporary div. To move the slides I have the updatePosition() function which called in each 3 seconds using setInterval();</p>
<p>To show description with image in this demo I added one transBg.png image which will show you the transparent background over each slide. In HTML for each slide I have div with the class eachSlide. In side this I have image &amp; one more div for description. To set margin for description here I used paragraph inside the description div. You can add any kind of HTML in this div as your description.</p>
<p>To run this example Copy the following code to a file jquery-slideshow.htm. Then save the below 4 images in the same folder &amp; Run. Keep remember in this demo I used Jquery CDN link.</p>
<h3>JQuery-Slideshow.htm</h3>
<pre class="brush: xml; title: ; notranslate">&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;
&lt;head&gt;
&lt;title&gt;Example of JQuery Slideshow&lt;/title&gt;
&lt;script type=&quot;text/javascript&quot; src=&quot;http://code.jquery.com/jquery-1.9.1.js&quot;&gt;&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
$(function() {
var presentPosition = 0;
var slideWidth = 500;
var inSlide = $('.eachSlide');
var totalNoSlides = inSlide.length;
setInterval(updatePosition, 3000);
inSlide.wrapAll('&lt;div id=&quot;tempHolder&quot;&gt;&lt;/div&gt;');
inSlide.css({ 'float': 'left' });
$('#tempHolder').css('width', slideWidth * totalNoSlides);
function updatePosition() {
if (presentPosition == totalNoSlides - 1) {
presentPosition = 0;
}
else {
presentPosition++;
}
moveSlide();
}
function moveSlide() {
$('#tempHolder').animate({ 'marginLeft': slideWidth * (-presentPosition) });
}
});
&lt;/script&gt;
&lt;style type=&quot;text/css&quot;&gt;
#slideshow {
position: relative;
}
#slideshow #showArea {
height: 257px;
margin: 0;
overflow: hidden;
padding: 0;
position: relative;
width: 500px;
}
#slideshow #showArea .eachSlide {
height: 257px;
margin: 0;
padding: 0;
position: relative;
width: 500px;
}
/*Class for Description*/
.description {
background: url(&quot;transBg.png&quot;) repeat scroll 0 0 rgba(0, 0, 0, 0);
position: absolute;
color: #FFFFFF;
font-family: Arial,sans-serif,verdana;
height: 70px;
left: 0px;
top: 190px;
width: 100%;
margin: 0px;
padding: 0px;
}
/*Setting margin for Description Paragraph*/
.description p {
margin: 10px 0px 0px 10px;
}
&lt;/style&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;!--Slideshow main Div--&gt;
&lt;div id=&quot;slideshow&quot;&gt;
&lt;div id=&quot;showArea&quot;&gt;
&lt;!--Slideshow indivisual Div--&gt;
&lt;div class=&quot;eachSlide&quot;&gt;
&lt;img title=&quot;&quot; alt=&quot;&quot; src=&quot;Image-A.png&quot; /&gt;
&lt;div class=&quot;description&quot;&gt;&lt;p&gt;From the heart beats of Millions, You are going to read about the Queen of Bollywood. The real name Katrina Turquotte...&lt;/p&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;eachSlide&quot;&gt;
&lt;img title=&quot;&quot; alt=&quot;&quot; src=&quot;Image-B.png&quot; /&gt;
&lt;div class=&quot;description&quot;&gt;&lt;p&gt;From our recent study we found Sunny Leone as one of the most searched actress from Film Industry...&lt;/p&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;eachSlide&quot;&gt;
&lt;img title=&quot;&quot; alt=&quot;&quot; src=&quot;Image-C.png&quot; /&gt;
&lt;div class=&quot;description&quot;&gt;&lt;p&gt;Priyanka Chopra is an Indian Celebrity. She was born on 18th July 1982 at Jamshedpur...&lt;/p&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/body&gt;
&lt;/html&gt;</pre>
<h3>Images</h3>
<p><img loading="lazy" decoding="async" src="https://jharaphula.com/wp-content/uploads/2016/05/transBg.png" alt="transBg" width="13" height="19" class="alignnone size-full wp-image-3763" /><br />
<em>transBg.png</em></p>
<p><img loading="lazy" decoding="async" src="https://jharaphula.com/wp-content/uploads/2016/05/Image-A.png" alt="Image-A" width="500" height="257" class="alignnone size-full wp-image-3764" srcset="https://jharaphula.com/wp-content/uploads/2016/05/Image-A.png 500w, https://jharaphula.com/wp-content/uploads/2016/05/Image-A-300x154.png 300w" sizes="auto, (max-width: 500px) 100vw, 500px" /><br />
<em>Image-A.png</em></p>
<p><img loading="lazy" decoding="async" src="https://jharaphula.com/wp-content/uploads/2016/05/Image-B.jpg" alt="" width="500" height="257" class="alignnone size-full wp-image-7597" srcset="https://jharaphula.com/wp-content/uploads/2016/05/Image-B.jpg 500w, https://jharaphula.com/wp-content/uploads/2016/05/Image-B-300x154.jpg 300w" sizes="auto, (max-width: 500px) 100vw, 500px" /><br />
<em>Image-B.png</em></p>
<p><img loading="lazy" decoding="async" src="https://jharaphula.com/wp-content/uploads/2016/05/Image-C.png" alt="Image-C" width="500" height="257" class="alignnone size-full wp-image-3766" srcset="https://jharaphula.com/wp-content/uploads/2016/05/Image-C.png 500w, https://jharaphula.com/wp-content/uploads/2016/05/Image-C-300x154.png 300w" sizes="auto, (max-width: 500px) 100vw, 500px" /><br />
<em>Image-C.png</em></p>
<p>The post <a href="https://jharaphula.com/jquery-slideshow-images-description/">Example of JQuery Slideshow using Images with Description</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://jharaphula.com/jquery-slideshow-images-description/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			<media:content url="https://jharaphula.com/wp-content/uploads/2016/05/film-reels.jpg" medium="image" />
	</item>
		<item>
		<title>Simple Jquery Carousel without using any third-party plugin</title>
		<link>https://jharaphula.com/simple-jquery-carousel-plugin/</link>
					<comments>https://jharaphula.com/simple-jquery-carousel-plugin/#respond</comments>
		
		<dc:creator><![CDATA[Nibedita Panda]]></dc:creator>
		<pubDate>Sat, 14 May 2016 10:10:41 +0000</pubDate>
				<category><![CDATA[Learn JQuery with Examples]]></category>
		<category><![CDATA[Carousel]]></category>
		<category><![CDATA[Jquery Carousel Slider]]></category>
		<category><![CDATA[Simple Jquery Carousel]]></category>
		<category><![CDATA[third-party plugin]]></category>
		<guid isPermaLink="false">http://box.jharaphula.com/?p=992</guid>

					<description><![CDATA[<img width="300" height="194" src="https://jharaphula.com/wp-content/uploads/2016/05/carosel-effect-without-plugin-300x194.png" class="webfeedsFeaturedVisual wp-post-image" alt="Simple Jquery Carousel Slider without using any plugin" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/carosel-effect-without-plugin-300x194.png 300w, https://jharaphula.com/wp-content/uploads/2016/05/carosel-effect-without-plugin-294x190.png 294w, https://jharaphula.com/wp-content/uploads/2016/05/carosel-effect-without-plugin-106x70.png 106w, https://jharaphula.com/wp-content/uploads/2016/05/carosel-effect-without-plugin.png 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>To display number of images with independent captions Carousel effect helps a great. Recently I worked for a shopping cart application which is used by...</p>
<p>The post <a href="https://jharaphula.com/simple-jquery-carousel-plugin/">Simple Jquery Carousel without using any third-party plugin</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></description>
										<content:encoded><![CDATA[<img width="300" height="194" src="https://jharaphula.com/wp-content/uploads/2016/05/carosel-effect-without-plugin-300x194.png" class="webfeedsFeaturedVisual wp-post-image" alt="Simple Jquery Carousel Slider without using any plugin" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/carosel-effect-without-plugin-300x194.png 300w, https://jharaphula.com/wp-content/uploads/2016/05/carosel-effect-without-plugin-294x190.png 294w, https://jharaphula.com/wp-content/uploads/2016/05/carosel-effect-without-plugin-106x70.png 106w, https://jharaphula.com/wp-content/uploads/2016/05/carosel-effect-without-plugin.png 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>To display number of images with independent captions Carousel effect helps a great. Recently I worked for a shopping cart application which is used by more then 22 global costume manufactures of America. During I designed their landing page few Customers suggested me to use Carousel effects. They want to display their <a href="https://jharaphula.com/popular-midnight-hot-fashion-shows-of-states/" rel="noopener noreferrer" target="_blank">Fashion weeks</a> top models with two lines of text in each slide. According to forward &amp; backward button slides need to scroll horizontally. My Customers knows that I am an expert in Jquery. When I ask them can I use free plugins to implement Carousel? Simply they said &#8220;No, please design a Simple jQuery Carousel.&#8221;. I did that and presenting the same codes here. Only in place of images here I am using 14 slides with Alphabets to identify each. You can update them as per your requirements.</p>
<p>The logic I implemented in the below example is very simple &amp; straight forward. To keep each slide independent here I used HTML ul &amp; li elements. Total I have 14 slides named as A, B, C, &#8230;, M, N. Including this in body I have 2 more links Backward &amp; Forward. Intention of these two links are when user will click on backward link it will show the slides available in left side &amp; on click of forward button it will show the right side slides. After slide A slide N will show like a Circular Order.</p>
<p>To control width, height &amp; color here I used CSS. Slide movement Logic is implemented in Jquery. On click of each link I am updating the CSS left property value for last item.</p>
<h3>Simple-Jquery-Carousel.htm</h3>
<pre class="brush: xml; title: ; notranslate">&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot; &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;&gt;
&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot; &gt;
&lt;head&gt;
&lt;title&gt;Simple Jquery Carousel Slider&lt;/title&gt;
&lt;script type=&quot;text/javascript&quot; src=&quot;http://code.jquery.com/jquery-1.9.1.js&quot;&gt;&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
$(function(){
var carSlide = $('.jquery-carousel ul');
var carSlideChild = carSlide.find('li');
var NumberOfClick = 0;
var isClick = true;
/*Adding 1px margin to Carousel Slide*/
itemLength = carSlide.find('li:first').width() + 1;

carSlide.width(itemLength*carSlideChild.length);
refreshPosition();

$('.btnForward').click(function(){
if(isClick){
isClick = false;
NumberOfClick++;

carSlide.stop(false, true).animate({
left : '-='+itemLength
},300, function(){
lastItem = carSlide.find('li:first');
lastItem.remove().appendTo(carSlide);
lastItem.css('left', ((carSlideChild.length-1)*(itemLength))+(NumberOfClick*itemLength));
isClick = true;
});
}
});

$('.btnBackward').click(function(){
if(isClick){
isClick = false;
NumberOfClick--;
lastItem = carSlide.find('li:last');
lastItem.remove().prependTo(carSlide);

lastItem.css('left', itemLength*NumberOfClick);
carSlide.finish(true).animate({
left: '+='+itemLength
},300, function(){
isClick = true;
});
}
});

function refreshPosition(){
carSlideChild.each(function(){
$(this).css('left', itemLength*carSlideChild.index($(this)));
});
}
});
&lt;/script&gt;
&lt;style type=&quot;text/css&quot;&gt;
.jquery-carousel {
position: relative;
padding-top: 20px;
overflow: hidden;
width: 306px;
height: 50px;
}
.jquery-carousel ul {
position: relative;
height: 50px;
list-style: none;
list-style-type: none;
margin: 0px;
padding: 0px;
}
.jquery-carousel ul li {
position: absolute;
float: left;
margin-right: 1px;
background: #CCCCCC;
width: 50px;
height: 25px;
text-align: center;
padding-top: 25px;
}
&lt;/style&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;a href=&quot;javascript:void(0);&quot; class=&quot;btnBackward&quot;&gt;Backward&lt;/a&gt;
&lt;a href=&quot;javascript:void(0);&quot; class=&quot;btnForward&quot;&gt;Forward&lt;/a&gt;
&lt;div class=&quot;jquery-carousel&quot;&gt;
&lt;ul&gt;
&lt;li&gt;A&lt;/li&gt;
&lt;li&gt;B&lt;/li&gt;
&lt;li&gt;C&lt;/li&gt;
&lt;li&gt;D&lt;/li&gt;
&lt;li&gt;E&lt;/li&gt;
&lt;li&gt;F&lt;/li&gt;
&lt;li&gt;G&lt;/li&gt;
&lt;li&gt;H&lt;/li&gt;
&lt;li&gt;I&lt;/li&gt;
&lt;li&gt;J&lt;/li&gt;
&lt;li&gt;K&lt;/li&gt;
&lt;li&gt;L&lt;/li&gt;
&lt;li&gt;M&lt;/li&gt;
&lt;li&gt;N&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;/body&gt;
&lt;/html&gt;</pre>
<p>The post <a href="https://jharaphula.com/simple-jquery-carousel-plugin/">Simple Jquery Carousel without using any third-party plugin</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://jharaphula.com/simple-jquery-carousel-plugin/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			<media:content url="https://jharaphula.com/wp-content/uploads/2016/05/carosel-effect-without-plugin.png" medium="image" />
	</item>
		<item>
		<title>Example of Simple Accordion Jquery menu without using Jquery UI</title>
		<link>https://jharaphula.com/example-simple-accordion-jquery-menu/</link>
					<comments>https://jharaphula.com/example-simple-accordion-jquery-menu/#comments</comments>
		
		<dc:creator><![CDATA[Nibedita Panda]]></dc:creator>
		<pubDate>Sat, 14 May 2016 10:09:19 +0000</pubDate>
				<category><![CDATA[Learn JQuery with Examples]]></category>
		<category><![CDATA[Example of Simple Accordion]]></category>
		<category><![CDATA[Jquery Menu]]></category>
		<category><![CDATA[Jquery UI]]></category>
		<category><![CDATA[Simple Accordion Jquery]]></category>
		<guid isPermaLink="false">http://box.jharaphula.com/?p=990</guid>

					<description><![CDATA[<img width="300" height="195" src="https://jharaphula.com/wp-content/uploads/2016/05/jquery-ui-300x195.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="Example of Simple Accordion Jquery menu without using Jquery UI" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/jquery-ui-300x195.jpg 300w, https://jharaphula.com/wp-content/uploads/2016/05/jquery-ui-294x190.jpg 294w, https://jharaphula.com/wp-content/uploads/2016/05/jquery-ui-106x70.jpg 106w, https://jharaphula.com/wp-content/uploads/2016/05/jquery-ui.jpg 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>In some scenario we required to design expand &#38; collapsible control using pure Jquery. Let&#8217;s assume the application for which we are going to design...</p>
<p>The post <a href="https://jharaphula.com/example-simple-accordion-jquery-menu/">Example of Simple Accordion Jquery menu without using Jquery UI</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></description>
										<content:encoded><![CDATA[<img width="300" height="195" src="https://jharaphula.com/wp-content/uploads/2016/05/jquery-ui-300x195.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="Example of Simple Accordion Jquery menu without using Jquery UI" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/jquery-ui-300x195.jpg 300w, https://jharaphula.com/wp-content/uploads/2016/05/jquery-ui-294x190.jpg 294w, https://jharaphula.com/wp-content/uploads/2016/05/jquery-ui-106x70.jpg 106w, https://jharaphula.com/wp-content/uploads/2016/05/jquery-ui.jpg 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>In some scenario we required to design expand &amp; collapsible control using pure Jquery. Let&#8217;s assume the application for which we are going to design Accordion is not using Jquery UI. Jquery UI is having its own in-build Accordion <a href="https://jharaphula.com/php-string-functions-with-example/" rel="noopener noreferrer" target="_blank">function</a>. Using this it is a line of code to implement accordion. In this example let me show you how to create an accordion Jquery menu without using jQuery UI library.</p>
<p>In the below example I have 4 div&#8217;s. Div id&#8217;s with header-A &amp; header-B are the header tabs for my accordion. On click of this headers I need to show the body-A &amp; body-B div&#8217;s respectively. Referring a Jquery CDN library here inside the document.ready() method initially I am hiding all the body div&#8217;s. Then on click of each header div I am checking whether the respective body div is visible or not. If the div is hidden then I am applying Jquery show method to display the relative body div. If the div is visible then I am hiding the respective body div. To make the accordion collapse &amp; expand features smooth I used slow as a parameter to show() &amp; hide() methods.</p>
<h3>Accordion-Jquery.htm</h3>
<pre class="brush: xml; title: ; notranslate">&lt;!Doctype html&gt;
&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot; &gt;
&lt;head&gt;
&lt;title&gt;Example of Simple Accordion Jquery menu&lt;/title&gt;
&lt;script type=&quot;text/javascript&quot; src=&quot;http://code.jquery.com/jquery-1.9.1.js&quot;&gt;&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
$(document).ready(function(){
/*Initially hiding all sub div*/
$(&quot;.AccordionBody&quot;).hide();
/*For Accordion A*/
$(&quot;#header-A&quot;).click(function() {
/*Checking is sub div is hidden*/
if($(&quot;#body-A&quot;).is(':hidden')) {
$(&quot;#body-A&quot;).show('slow');
} else {
$(&quot;#body-A&quot;).hide('slow');
}
});
/*For Accordion B*/
$(&quot;#header-B&quot;).click(function() {
/*Checking is sub div is hidden*/
if($(&quot;#body-B&quot;).is(':hidden')) {
$(&quot;#body-B&quot;).show('slow');
} else {
$(&quot;#body-B&quot;).hide('slow');
}
});
});
&lt;/script&gt;
&lt;style type=&quot;text/css&quot;&gt;
.AccordionHeader {
background: none repeat scroll 0 0 #0A567D;
color: #FFFFFF;
padding: 10px;
font-family: arial,sans-serif,verdana;
cursor: pointer;
margin-bottom: 1px;
}
.AccordionBody {
background: none repeat scroll 0 0 #bde8f4;
font-family: arial,sans-serif,verdana;
padding: 10px;
}
&lt;/style&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;div class=&quot;AccordionHeader&quot; id=&quot;header-A&quot;&gt;About our Company&lt;/div&gt;
&lt;div class=&quot;AccordionBody&quot; id=&quot;body-A&quot;&gt;Welcome to Vijayshanti Infotech. We are a group of highly experienced professionals working together to make your web better.&lt;/div&gt;
&lt;div class=&quot;AccordionHeader&quot; id=&quot;header-B&quot;&gt;Service we Sale&lt;/div&gt;
&lt;div class=&quot;AccordionBody&quot; id=&quot;body-B&quot;&gt;We do provide Responsive Web Application Development, Fancy Web Designing, Graphics, High-end Search Engine Optimization &amp; Digtal Marketing.&lt;/div&gt;
&lt;/body&gt;
&lt;/html&gt;</pre>
<p>The post <a href="https://jharaphula.com/example-simple-accordion-jquery-menu/">Example of Simple Accordion Jquery menu without using Jquery UI</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://jharaphula.com/example-simple-accordion-jquery-menu/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			<media:content url="https://jharaphula.com/wp-content/uploads/2016/05/jquery-ui.jpg" medium="image" />
	</item>
		<item>
		<title>How to Check is Browser Cookie enabled or disabled using PHP?</title>
		<link>https://jharaphula.com/check-is-browser-cookie-enabled-php/</link>
					<comments>https://jharaphula.com/check-is-browser-cookie-enabled-php/#comments</comments>
		
		<dc:creator><![CDATA[Nibedita Panda]]></dc:creator>
		<pubDate>Sat, 14 May 2016 10:07:51 +0000</pubDate>
				<category><![CDATA[Learn PHP with Examples]]></category>
		<category><![CDATA[Browser Cookie enabled]]></category>
		<category><![CDATA[Check is Browser Cookie]]></category>
		<category><![CDATA[create a cookie]]></category>
		<category><![CDATA[setcookie]]></category>
		<guid isPermaLink="false">http://box.jharaphula.com/?p=988</guid>

					<description><![CDATA[<img width="300" height="210" src="https://jharaphula.com/wp-content/uploads/2016/05/HTTP-Cookie-300x210.png" class="webfeedsFeaturedVisual wp-post-image" alt="How to Check is Browser Cookie enabled or disabled using PHP?" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/HTTP-Cookie-300x210.png 300w, https://jharaphula.com/wp-content/uploads/2016/05/HTTP-Cookie.png 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>As we know HTTP is a stateless protocol. In web during Client Server communication to identify a particular user it is required to maintain state....</p>
<p>The post <a href="https://jharaphula.com/check-is-browser-cookie-enabled-php/">How to Check is Browser Cookie enabled or disabled using PHP?</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></description>
										<content:encoded><![CDATA[<img width="300" height="210" src="https://jharaphula.com/wp-content/uploads/2016/05/HTTP-Cookie-300x210.png" class="webfeedsFeaturedVisual wp-post-image" alt="How to Check is Browser Cookie enabled or disabled using PHP?" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/HTTP-Cookie-300x210.png 300w, https://jharaphula.com/wp-content/uploads/2016/05/HTTP-Cookie.png 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>As we know HTTP is a stateless protocol. In web during Client Server communication to identify a particular user it is required to maintain state. In this cause there are several state management techniques. State management techniques are available for both the side client &amp; server. Cookie is a client side state management technique.</p>
<p>A Cookie is a simple text file. It can store maximum 4MB data. Due to cookies are resides in client machine in text format storing data in a cookie is not secured. Cookies are two types session cookies &amp; persistent cookies. Session cookies are available for only that time user is interacting. Once the user close the instance of browser session cookies get destroyed. Where persistent cookies having an expiry time. During we create a cookie we have to set the expiry time for persistent cookies. Expiry time can be a day, month or a year too. Cookies are generally used for websites that have huge databases, having signup &amp; login, have customization themes other advanced features.</p>
<p>Before create a cookie using any <a href="https://jharaphula.com/category/programming-solutions/" rel="noopener noreferrer" target="_blank">programming language</a> we need to check first is Cookies enabled in the client browser or not. Programmatically to check this here I wrote a small php script. Which will tell you is in your machine cookies are enabled or disabled.</p>
<p>The logic I implemented in below script is so simple. Using setcookie() method in php I am creating a cookie with the name demo-cookie. Later using php count() function I am counting the number of cookies available in your machine. If it is greater then 0 then my cookie demo-cookie is created successfully. It means in your browser cookies are enabled. In reverse case if count is not grater then 0 then in your browser cookies are disabled. To enable cookies in your browser go to the browser setting.</p>
<p><strong>is-Cookie-enabled.php</strong></p>
<pre class="brush: php; title: ; notranslate">&lt;?php
setcookie(&quot;demo-cookie&quot;, &quot;demo-data&quot;, time() + 3600, '/');
?&gt;
&lt;html&gt;
&lt;body&gt;
&lt;?php
if(count($_COOKIE) &gt; 0) {
echo &quot;Cookies are enabled in your Browser.&quot;;
} else {
echo &quot;Cookies are disabled in your Browser.&quot;;
}
?&gt;
&lt;/body&gt;
&lt;/html&gt;</pre>
<p>The post <a href="https://jharaphula.com/check-is-browser-cookie-enabled-php/">How to Check is Browser Cookie enabled or disabled using PHP?</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://jharaphula.com/check-is-browser-cookie-enabled-php/feed/</wfw:commentRss>
			<slash:comments>3</slash:comments>
		
		
			<media:content url="https://jharaphula.com/wp-content/uploads/2016/05/HTTP-Cookie.png" medium="image" />
	</item>
		<item>
		<title>ASP.NET File Upload to Server using FileUpload Control Example</title>
		<link>https://jharaphula.com/asp-net-file-upload-to-server-example/</link>
					<comments>https://jharaphula.com/asp-net-file-upload-to-server-example/#respond</comments>
		
		<dc:creator><![CDATA[Nibedita Panda]]></dc:creator>
		<pubDate>Sat, 14 May 2016 09:52:52 +0000</pubDate>
				<category><![CDATA[Microsoft Technologies]]></category>
		<category><![CDATA[ASP.NET File Upload]]></category>
		<category><![CDATA[File Upload to Server]]></category>
		<category><![CDATA[FileUpload Control Example]]></category>
		<guid isPermaLink="false">http://box.jharaphula.com/?p=976</guid>

					<description><![CDATA[<img width="300" height="192" src="https://jharaphula.com/wp-content/uploads/2016/05/file-uploading-300x192.png" class="webfeedsFeaturedVisual wp-post-image" alt="ASP.NET File Upload to Server using FileUpload Control Example" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/file-uploading-300x192.png 300w, https://jharaphula.com/wp-content/uploads/2016/05/file-uploading.png 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>During web application design some time we required to upload local files to server. Let&#8217;s talk about a job portal, where candidates need to upload...</p>
<p>The post <a href="https://jharaphula.com/asp-net-file-upload-to-server-example/">ASP.NET File Upload to Server using FileUpload Control Example</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></description>
										<content:encoded><![CDATA[<img width="300" height="192" src="https://jharaphula.com/wp-content/uploads/2016/05/file-uploading-300x192.png" class="webfeedsFeaturedVisual wp-post-image" alt="ASP.NET File Upload to Server using FileUpload Control Example" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/file-uploading-300x192.png 300w, https://jharaphula.com/wp-content/uploads/2016/05/file-uploading.png 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>During web application design some time we required to upload local files to server. Let&#8217;s talk about a job portal, where candidates need to upload their career profiles. To provide this facility we need to implement file uploading in our application. If your application is designed using <a href="https://jharaphula.com/category/programming-solutions/microsoft-technologies/" rel="noopener noreferrer" target="_blank">Microsoft Technology</a> ASP.NET compare to other languages in web it is very easy to implement File uploading. In the below example I created a sample application to implement ASP.NET File Upload to Server.</p>
<p>To implement ASP.NET File Uploading Create a new web project using Visual Studio. Then in the root folder add a folder &#8220;upload&#8221;. Look at the code below in my Default.aspx.vb file I used Server.MapPath to generate the path for file uploading. Here I used the folder upload, where user file will store. You can update this as per your folder structure.</p>
<h2>Understanding the FileUpload Control</h2>
<p>The FileUpload control is a powerful tool that provides an easy way to allow users to send files from their local system to a web server. With this control, developers can efficiently handle file uploads while also ensuring they meet security standards. The control enables applications to collect essential information from users, which can be critical for operations like applying for jobs.</p>
<p><img loading="lazy" decoding="async" src="https://jharaphula.com/wp-content/uploads/2016/05/file-uploading-demo.png" alt="file-uploading-demo" width="750" height="239" class="alignnone size-full wp-image-2923" srcset="https://jharaphula.com/wp-content/uploads/2016/05/file-uploading-demo.png 750w, https://jharaphula.com/wp-content/uploads/2016/05/file-uploading-demo-300x96.png 300w" sizes="auto, (max-width: 750px) 100vw, 750px" /></p>
<p>Look at my aspx file to make this presentation simple I used one ASP.NET file uploader control &amp; a button. On click of my button btnUpload I am calling the file uploader SaveAs method with the parameter file path. By declaring fileUploader.FileName I am uploading the file with similar name. If you want to generate different file name for uploaded files you can implement your logic here.</p>
<p>Keep remember by default file uploading supports the maximum size 4096 (4 MB) file. To upload larger file you need to update your web.config file as below.</p>
<pre class="brush: xml; title: ; notranslate">&lt;configuration&gt;
&lt;system.web&gt;
&lt;httpRuntime maxRequestLength=&quot;Size in KB&quot; /&gt;
&lt;/system.web&gt;
&lt;/configuration&gt;</pre>
<h3>Default.aspx</h3>
<pre class="brush: xml; title: ; notranslate">&lt;%@ Page Language=&quot;VB&quot; AutoEventWireup=&quot;false&quot; CodeFile=&quot;Default.aspx.vb&quot; Inherits=&quot;_Default&quot; %&gt;

&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot; &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;&gt;

&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot; &gt;
&lt;head runat=&quot;server&quot;&gt;
&lt;title&gt;ASP.NET File Upload to Server Example&lt;/title&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;form id=&quot;frmUpload&quot; runat=&quot;server&quot;&gt;
&lt;asp:FileUpload ID=&quot;fileUploader&quot; runat=&quot;server&quot; /&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;asp:Button ID=&quot;btnUpload&quot; runat=&quot;server&quot; Text=&quot;Upload File&quot; /&gt;&amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
&lt;asp:Label ID=&quot;lblStatus&quot; runat=&quot;server&quot;&gt;&lt;/asp:Label&gt;
&lt;/form&gt;
&lt;/body&gt;
&lt;/html&gt;</pre>
<h3>Default.aspx.vb</h3>
<pre class="brush: vb; title: ; notranslate">Partial Class _Default
Inherits System.Web.UI.Page

Protected Sub btnUpload_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnUpload.Click
'Checking is file uploader control has any file.
If fileUploader.HasFile Then
Try
'Using SaveAs method to upload the file.
fileUploader.SaveAs(Server.MapPath(&quot;upload/&quot;) &amp; fileUploader.FileName)
'After Successfully file uploaded show msg to user.
lblStatus.Text = &quot;File name: &quot; &amp; fileUploader.PostedFile.FileName &amp; &quot;&lt;br&gt;&quot; &amp; &quot;File Size: &quot; &amp; fileUploader.PostedFile.ContentLength &amp; &quot; kb&lt;br&gt;&quot; &amp; &quot;Content type: &quot; &amp; fileUploader.PostedFile.ContentType()
Catch ex As Exception
'Handling exception if any.
lblStatus.Text = &quot;ERROR: &quot; &amp; ex.Message.ToString()
End Try
Else
'Showing msg if user hit on upload button without selected a valid file.
lblStatus.Text = &quot;You have not specified a file.&quot;
End If
End Sub
End Class</pre>
<h2>Conclusion</h2>
<p>The capability to upload files in a web application is essential, especially for platforms like job portals where candidates frequently submit their resumes. By using the FileUpload control, developers can create a seamless experience for users while ensuring the application remains secure and efficient. Implementing proper validation and feedback mechanisms will further enhance the effectiveness of file uploads, making them a vital feature of any job application platform.</p>
<p>The post <a href="https://jharaphula.com/asp-net-file-upload-to-server-example/">ASP.NET File Upload to Server using FileUpload Control Example</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://jharaphula.com/asp-net-file-upload-to-server-example/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			<media:content url="https://jharaphula.com/wp-content/uploads/2016/05/file-uploading.png" medium="image" />
	</item>
		<item>
		<title>On Mouseover how to Highlight ASP.NET Gridview Selected Row</title>
		<link>https://jharaphula.com/highlight-asp-net-gridview-selected-row/</link>
					<comments>https://jharaphula.com/highlight-asp-net-gridview-selected-row/#respond</comments>
		
		<dc:creator><![CDATA[Nibedita Panda]]></dc:creator>
		<pubDate>Sat, 14 May 2016 09:09:46 +0000</pubDate>
				<category><![CDATA[Microsoft Technologies]]></category>
		<category><![CDATA[CSS in UI designing]]></category>
		<category><![CDATA[Gridview]]></category>
		<category><![CDATA[Gridview Selected Row]]></category>
		<category><![CDATA[On Mouseover]]></category>
		<guid isPermaLink="false">http://box.jharaphula.com/?p=943</guid>

					<description><![CDATA[<img width="300" height="176" src="https://jharaphula.com/wp-content/uploads/2016/05/gridview-alternate-rows-300x176.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="On Mouseover how to Highlight ASP.NET Gridview Selected Row" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/gridview-alternate-rows-300x176.jpg 300w, https://jharaphula.com/wp-content/uploads/2016/05/gridview-alternate-rows.jpg 748w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>To present data in tabular form in ASP.NET Gridview is so popular. Nearly 90% ASP.NET Developers love to work with Gridview. In a Gridview we...</p>
<p>The post <a href="https://jharaphula.com/highlight-asp-net-gridview-selected-row/">On Mouseover how to Highlight ASP.NET Gridview Selected Row</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></description>
										<content:encoded><![CDATA[<img width="300" height="176" src="https://jharaphula.com/wp-content/uploads/2016/05/gridview-alternate-rows-300x176.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="On Mouseover how to Highlight ASP.NET Gridview Selected Row" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/gridview-alternate-rows-300x176.jpg 300w, https://jharaphula.com/wp-content/uploads/2016/05/gridview-alternate-rows.jpg 748w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>To present data in tabular form in ASP.NET Gridview is so popular. Nearly 90% ASP.NET Developers love to work with Gridview. In a Gridview we can bind several <a href="https://jharaphula.com/database-basics-terminologies-definition/" target="_blank" rel="noopener noreferrer">data sources</a>. Gridview is easy &amp; take less time to implement. Any time of Customization we required to show in a tabular data it is possible using Gridview. In this example let us discuss a situation where On mouse over I want to Highlight Gridview Selected Row. To do this here I used a XML data source to display records in Gridview. On over the mouse event I am binding 2 different CSS classes to highlight the row.</p>
<p>From several events of a Gridview control RowCreated is fired when a row created programmatically. To add my CSS classes for highlight feature inside grdDemo_RowCreated() event I added 2 events onmouseover &amp; onmouseout to each row of the Grid. In onmouseover event I am assigning the CSS class hightlighrow with background-color:#CCCCCC;. While when user remove his mouse from the row to revert back into previous background color I added onmouseout event with CSS class normalrow. normalrow CSS class contains the default background color white. Look at the demo code below.</p>
<h3>Default.aspx</h3>
<pre class="brush: xml; title: ; notranslate">&lt;%@ Page Language=&quot;VB&quot; AutoEventWireup=&quot;false&quot; CodeFile=&quot;Default.aspx.vb&quot; Inherits=&quot;_Default&quot; %&gt;

&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot; &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;&gt;

&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot; &gt;
&lt;head runat=&quot;server&quot;&gt;
&lt;title&gt;On Mouseover how to Highlight ASP.NET Gridview Selected Row&lt;/title&gt;
&lt;style type=&quot;text/css&quot;&gt;
.normalrow
{
background-color:white;
}
.hightlighrow
{
background-color:#cccccc;
}
&lt;/style&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;form id=&quot;frmGridview&quot; runat=&quot;server&quot;&gt;
&lt;asp:GridView ID=&quot;grdDemo&quot; runat=&quot;server&quot;&gt;
&lt;/asp:GridView&gt;
&lt;/form&gt;
&lt;/body&gt;
&lt;/html&gt;</pre>
<h3>Default.aspx.vb</h3>
<pre class="brush: vb; title: ; notranslate">Imports System.Data

Partial Class _Default
Inherits System.Web.UI.Page

Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
If Not Page.IsPostBack Then
Dim employeelog = New DataSet
employeelog.ReadXml(MapPath(&quot;employees.xml&quot;))
grdDemo.DataSource = employeelog
grdDemo.DataBind()
End If
End Sub

Protected Sub grdDemo_RowCreated(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewRowEventArgs) Handles grdDemo.RowCreated
If e.Row.RowType = DataControlRowType.DataRow Then
e.Row.Attributes.Add(&quot;onmouseover&quot;, &quot;this.className='hightlighrow'&quot;)
e.Row.Attributes.Add(&quot;onmouseout&quot;, &quot;this.className='normalrow'&quot;)
End If
End Sub
End Class</pre>
<h3>employees.xml</h3>
<pre class="brush: xml; title: ; notranslate">&lt;?xml version=&quot;1.0&quot; encoding=&quot;ISO-8859-1&quot;?&gt;
&lt;employees&gt;
&lt;emp&gt;
&lt;name&gt;Abhishek Srivastab&lt;/name&gt;
&lt;designation&gt;Technical Head&lt;/designation&gt;
&lt;company&gt;Cognizant Solution&lt;/company&gt;
&lt;salary&gt;75,000&lt;/salary&gt;
&lt;/emp&gt;
&lt;emp&gt;
&lt;name&gt;Biswabhusan Panda&lt;/name&gt;
&lt;designation&gt;Project Manager&lt;/designation&gt;
&lt;company&gt;TATA Technology&lt;/company&gt;
&lt;salary&gt;86,000&lt;/salary&gt;
&lt;/emp&gt;
&lt;emp&gt;
&lt;name&gt;Sunanda Patnayak&lt;/name&gt;
&lt;designation&gt;Team Leader&lt;/designation&gt;
&lt;company&gt;Wipro&lt;/company&gt;
&lt;salary&gt;82,000&lt;/salary&gt;
&lt;/emp&gt;
&lt;emp&gt;
&lt;name&gt;Raghav Roy&lt;/name&gt;
&lt;designation&gt;Sr. UI Developer&lt;/designation&gt;
&lt;company&gt;Persistent System&lt;/company&gt;
&lt;salary&gt;61,000&lt;/salary&gt;
&lt;/emp&gt;
&lt;/employees&gt;</pre>
<p>The post <a href="https://jharaphula.com/highlight-asp-net-gridview-selected-row/">On Mouseover how to Highlight ASP.NET Gridview Selected Row</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://jharaphula.com/highlight-asp-net-gridview-selected-row/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			<media:content url="https://jharaphula.com/wp-content/uploads/2016/05/gridview-alternate-rows.jpg" medium="image" />
	</item>
		<item>
		<title>How to Fetch Data from a XML File using ASP.NET Repeater Control?</title>
		<link>https://jharaphula.com/bind-xml-data-asp-net-repeater-control/</link>
					<comments>https://jharaphula.com/bind-xml-data-asp-net-repeater-control/#respond</comments>
		
		<dc:creator><![CDATA[Nibedita Panda]]></dc:creator>
		<pubDate>Sat, 14 May 2016 08:25:20 +0000</pubDate>
				<category><![CDATA[Microsoft Technologies]]></category>
		<category><![CDATA[ASP.NET Repeater Control]]></category>
		<category><![CDATA[Bind XML Data]]></category>
		<category><![CDATA[How to Bind XML?]]></category>
		<guid isPermaLink="false">http://box.jharaphula.com/?p=927</guid>

					<description><![CDATA[<img width="300" height="186" src="https://jharaphula.com/wp-content/uploads/2016/05/repeater-control-data-bind-300x186.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="How to bind XML data to ASP.NET repeater control?" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/repeater-control-data-bind-300x186.jpg 300w, https://jharaphula.com/wp-content/uploads/2016/05/repeater-control-data-bind.jpg 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>To present data from several data source ASP.NET introduced controls like datagrid, datalist &#38; repeater. Compare to datagrid repeater is connection oriented &#38; gives faster...</p>
<p>The post <a href="https://jharaphula.com/bind-xml-data-asp-net-repeater-control/">How to Fetch Data from a XML File using ASP.NET Repeater Control?</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></description>
										<content:encoded><![CDATA[<img width="300" height="186" src="https://jharaphula.com/wp-content/uploads/2016/05/repeater-control-data-bind-300x186.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="How to bind XML data to ASP.NET repeater control?" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/repeater-control-data-bind-300x186.jpg 300w, https://jharaphula.com/wp-content/uploads/2016/05/repeater-control-data-bind.jpg 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>To present data from several data source ASP.NET introduced controls like datagrid, datalist &amp; repeater. Compare to datagrid repeater is connection oriented &amp; gives faster access to data. Inner logic of repeater is similar to pointer. During data bind for custom structure repeater control is very useful. In this example I created a demo app to display a <a href="https://jharaphula.com/learn-xml-online-tutorial-beginners/" target="_blank" rel="noopener noreferrer">XML</a> file data in tabular shape using ASP.NET repeater control.</p>
<h2>Fetch Data from a XML File</h2>
<p>In the below example I have a employees.xml file which contains name, designation, company &amp; salary of several employees. What I want is, I want to display these data in a HTML Table using ASP.NET repeater control. To achieve this in code-behind file &#8220;Default.aspx.vb&#8221; page_load event I am creating an instance of new DataSet as employeelog. Then using ReadXml() method I am assigning the XML file data to the DataSet employeelog. Later to bind these data in repeater control I pointed the repeater control DataSource to DataSet employeelog. Finally calling emplog.DataBind() to bind XML data.</p>
<p>Now in Default.aspx page I have my repeater control is with data. To show these data in particular table rows &amp; columns here I used &lt;%#Container.DataItem(&#8220;Respective Field Name&#8221;)%&gt; inside ItemTemplate of repeater control. To make each data rows user friendly here with ItemTemplate I used AlternatingItemTemplate with background color #e8e8e8.</p>
<h2>Data from a XML File using ASP.NET Repeater</h2>
<pre class="brush: xml; title: ; notranslate">&lt;%@ Page Language=&quot;VB&quot; AutoEventWireup=&quot;false&quot; CodeFile=&quot;Default.aspx.vb&quot; Inherits=&quot;_Default&quot; %&gt;

&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot; &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;&gt;

&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot; &gt;
&lt;head runat=&quot;server&quot;&gt;
&lt;title&gt;How to bind XML data to ASP.NET repeater control?&lt;/title&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;form id=&quot;frmRepeater&quot; runat=&quot;server&quot;&gt;
&lt;asp:Repeater id=&quot;emplog&quot; runat=&quot;server&quot;&gt;

&lt;HeaderTemplate&gt;
&lt;table border=&quot;1&quot; width=&quot;100%&quot;&gt;
&lt;tr&gt;
&lt;th&gt;Employee Name&lt;/th&gt;
&lt;th&gt;Designation&lt;/th&gt;
&lt;th&gt;Company&lt;/th&gt;
&lt;th&gt;Monthly Salary&lt;/th&gt;
&lt;/tr&gt;
&lt;/HeaderTemplate&gt;

&lt;ItemTemplate&gt;
&lt;tr&gt;
&lt;td&gt;&lt;%#Container.DataItem(&quot;name&quot;)%&gt; &lt;/td&gt;
&lt;td&gt;&lt;%#Container.DataItem(&quot;designation&quot;)%&gt; &lt;/td&gt;
&lt;td&gt;&lt;%#Container.DataItem(&quot;company&quot;)%&gt; &lt;/td&gt;
&lt;td&gt;&lt;%#Container.DataItem(&quot;salary&quot;)%&gt; &lt;/td&gt;
&lt;/tr&gt;
&lt;/ItemTemplate&gt;

&lt;AlternatingItemTemplate&gt;
&lt;tr bgcolor=&quot;#e8e8e8&quot;&gt;
&lt;td&gt;&lt;%#Container.DataItem(&quot;name&quot;)%&gt; &lt;/td&gt;
&lt;td&gt;&lt;%#Container.DataItem(&quot;designation&quot;)%&gt; &lt;/td&gt;
&lt;td&gt;&lt;%#Container.DataItem(&quot;company&quot;)%&gt; &lt;/td&gt;
&lt;td&gt;&lt;%#Container.DataItem(&quot;salary&quot;)%&gt; &lt;/td&gt;
&lt;/tr&gt;
&lt;/AlternatingItemTemplate&gt;

&lt;FooterTemplate&gt;
&lt;/table&gt;
&lt;/FooterTemplate&gt;

&lt;/asp:Repeater&gt;
&lt;/form&gt;
&lt;/body&gt;
&lt;/html&gt;</pre>
<h3>Default.aspx.vb</h3>
<pre class="brush: vb; title: ; notranslate">Imports System.Data

Partial Class _Default
Inherits System.Web.UI.Page

Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
If Not Page.IsPostBack Then
Dim employeelog = New DataSet
employeelog.ReadXml(MapPath(&quot;employees.xml&quot;))
emplog.DataSource = employeelog
emplog.DataBind()
End If
End Sub
End Class</pre>
<h2>XML File to Fetch Data (employees.xml)</h2>
<pre class="brush: xml; title: ; notranslate">&lt;?xml version=&quot;1.0&quot; encoding=&quot;ISO-8859-1&quot;?&gt;
&lt;employees&gt;
&lt;emp&gt;
&lt;name&gt;Sujata Panigraphi&lt;/name&gt;
&lt;designation&gt;Chief Business Officer&lt;/designation&gt;
&lt;company&gt;Infosys&lt;/company&gt;
&lt;salary&gt;92,000&lt;/salary&gt;
&lt;/emp&gt;
&lt;emp&gt;
&lt;name&gt;Abhishek Srivastab&lt;/name&gt;
&lt;designation&gt;Technical Head&lt;/designation&gt;
&lt;company&gt;Cognizant Solution&lt;/company&gt;
&lt;salary&gt;75,000&lt;/salary&gt;
&lt;/emp&gt;
&lt;emp&gt;
&lt;name&gt;Biswabhusan Panda&lt;/name&gt;
&lt;designation&gt;Project Manager&lt;/designation&gt;
&lt;company&gt;TATA Technology&lt;/company
&lt;salary&gt;86,000&lt;/salary&gt;
&lt;/emp&gt;
&lt;emp&gt;
&lt;name&gt;Sunanda Patnayak&lt;/name&gt;
&lt;designation&gt;Team Leader&lt;/designation&gt;
&lt;company&gt;Wipro&lt;/company&gt;
&lt;salary&gt;82,000&lt;/salary&gt;
&lt;/emp&gt;
&lt;emp&gt;
&lt;name&gt;Raghav Roy&lt;/name&gt;
&lt;designation&gt;Sr. UI Developer&lt;/designation&gt;
&lt;company&gt;Persistent System&lt;/company&gt;
&lt;salary&gt;61,000&lt;/salary&gt;
&lt;/emp&gt;
&lt;emp&gt;
&lt;name&gt;John Markoni&lt;/name&gt;
&lt;designation&gt;QA Developer&lt;/designation&gt;
&lt;company&gt;Intel Corporation&lt;/company&gt;
&lt;salary&gt;32,000&lt;/salary&gt;
&lt;/emp&gt;
&lt;emp&gt;
&lt;name&gt;Megha Srivastab&lt;/name&gt;
&lt;designation&gt;HTML5 Developer&lt;/designation&gt;
&lt;company&gt;Synechron Technologies&lt;/company&gt;
&lt;salary&gt;22,000&lt;/salary&gt;
&lt;/emp&gt;
&lt;emp&gt;
&lt;name&gt;Manjulata Panda&lt;/name&gt;
&lt;designation&gt;Sr. UI Developer&lt;/designation&gt;
&lt;company&gt;Dell Technology&lt;/company&gt;
&lt;salary&gt;72,000&lt;/salary&gt;
&lt;/emp&gt;
&lt;emp&gt;
&lt;name&gt;Bidyadhara Panda&lt;/name&gt;
&lt;designation&gt;Sr. Oracle Developer&lt;/designation&gt;
&lt;company&gt;InfoSys BPO&lt;/company&gt;
&lt;salary&gt;45,000&lt;/salary&gt;
&lt;/emp&gt;
&lt;emp&gt;
&lt;name&gt;Sinha Malhotra&lt;/name&gt;
&lt;designation&gt;Front-end Developer&lt;/designation&gt;
&lt;company&gt;ESSPL&lt;/company&gt;
&lt;salary&gt;32,000&lt;/salary&gt;
&lt;/emp&gt;
&lt;/employees&gt;</pre>
<p>The post <a href="https://jharaphula.com/bind-xml-data-asp-net-repeater-control/">How to Fetch Data from a XML File using ASP.NET Repeater Control?</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://jharaphula.com/bind-xml-data-asp-net-repeater-control/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			<media:content url="https://jharaphula.com/wp-content/uploads/2016/05/repeater-control-data-bind.jpg" medium="image" />
	</item>
		<item>
		<title>CSS based Jquery vertical menu with Submenu Example</title>
		<link>https://jharaphula.com/example-jquery-vertical-menu-submenu/</link>
					<comments>https://jharaphula.com/example-jquery-vertical-menu-submenu/#respond</comments>
		
		<dc:creator><![CDATA[Nibedita Panda]]></dc:creator>
		<pubDate>Sat, 14 May 2016 08:18:32 +0000</pubDate>
				<category><![CDATA[Learn JQuery with Examples]]></category>
		<category><![CDATA[CSS in UI designing]]></category>
		<category><![CDATA[Jquery vertical menu]]></category>
		<category><![CDATA[make navigation better]]></category>
		<category><![CDATA[Submenu Example]]></category>
		<category><![CDATA[Web Designing]]></category>
		<guid isPermaLink="false">http://box.jharaphula.com/?p=919</guid>

					<description><![CDATA[<img width="300" height="186" src="https://jharaphula.com/wp-content/uploads/2016/05/vertical-menu-example-300x186.png" class="webfeedsFeaturedVisual wp-post-image" alt="Example of CSS based Jquery vertical menu with Submenu" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/vertical-menu-example-300x186.png 300w, https://jharaphula.com/wp-content/uploads/2016/05/vertical-menu-example.png 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>During web designing to make navigation better we do implement menu system. Generally there are two type of menu Horizontal menu &#38; Vertical menu. Horizontal...</p>
<p>The post <a href="https://jharaphula.com/example-jquery-vertical-menu-submenu/">CSS based Jquery vertical menu with Submenu Example</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></description>
										<content:encoded><![CDATA[<img width="300" height="186" src="https://jharaphula.com/wp-content/uploads/2016/05/vertical-menu-example-300x186.png" class="webfeedsFeaturedVisual wp-post-image" alt="Example of CSS based Jquery vertical menu with Submenu" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/vertical-menu-example-300x186.png 300w, https://jharaphula.com/wp-content/uploads/2016/05/vertical-menu-example.png 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>During web designing to make navigation better we do implement menu system. Generally there are two type of menu <a href="https://jharaphula.com/example-horizontal-bootstrap-responsive-menu/" target="_blank" rel="noopener noreferrer">Horizontal menu</a> &amp; Vertical menu. Horizontal menu&#8217;s are place in header or footer while vertical menu can placed aside the content pan. In this example I designed a jquery vertical menu for my Corporate website. It has tabs like Home, About Us, Service, News &amp; Career. This menu is designed using JQuery &amp; CSS. You can easily configure it as per your requirements.</p>
<p>To design this menu I added UL element in HTML. All the tabs are place in side ul &gt; li. Sub menu&#8217;s are places with nested ul element inside the corresponding li element. During click to expand sub-menus I used JQuery. To select ul &amp; li elements I used CSS selector in JQuery. Using a toggle function I am adding &amp; replacing the class &#8216;enable&#8217;. While the class enable is added to li element, sub-menu for that node is getting visible. Initial all sub-menu&#8217;s are hided.</p>
<p>To run this example, Copy the below file vertical.htm &amp; open with your browser. Here I used JQuery CDN link. Make sure you are running this example in presence of internet. For off-line version please replace the JQuery CDN link with local reference.</p>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-2664" src="https://jharaphula.com/wp-content/uploads/2016/05/vertical-menu.png" alt="vertical-menu" width="223" height="422" srcset="https://jharaphula.com/wp-content/uploads/2016/05/vertical-menu.png 223w, https://jharaphula.com/wp-content/uploads/2016/05/vertical-menu-159x300.png 159w" sizes="auto, (max-width: 223px) 100vw, 223px" /></p>
<h3>jquery-vertical-menu.htm</h3>
<pre class="brush: xml; title: ; notranslate">&lt;!DOCTYPE html&gt;
&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;
&lt;head&gt;
&lt;title&gt;Vertical Menu with Sub-Menu using JQuery &amp; CSS&lt;/title&gt;
&lt;style type=&quot;text/css&quot;&gt;
#vertical-menu {
float: left;
padding: 0px;
margin: 0px;
width: 210px;
list-style: outside none none;
font-family: arial;
}
#vertical-menu li {
list-style: none;
}
#vertical-menu li a {
display: block;
border-top: 1px solid #eee;
padding: 10px 15px;
background: #197DCB;
text-decoration: none;
color: #ffffff;
}
#vertical-menu li a:hover, #nav li a.enable {
background: #999;
color: #ffffff;
}
#vertical-menu li ul {
background: none repeat scroll 0 0 red;
display: none;
margin: 0;
padding: 0 0 0 15px;
}
#vertical-menu li ul li a {
background: none repeat scroll 0 0 #04bdce;
border-bottom: medium none;
}
&lt;/style&gt;
&lt;script type=&quot;text/javascript&quot; src=&quot;https://code.jquery.com/jquery-2.1.3.min.js&quot;&gt;&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
$(document).ready(function () {
$('#vertical-menu &gt; li &gt; a').click(function(){
if ($(this).attr('class') != 'enable'){
$('#vertical-menu li ul').slideUp();
$(this).next().slideToggle();
$('#vertical-menu li a').removeClass('enable');
$(this).addClass('enable');
}
});
});
&lt;/script&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;ul id=&quot;vertical-menu&quot;&gt;
&lt;li&gt;&lt;a href=&quot;#&quot;&gt;Home&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;
&lt;a href=&quot;#&quot;&gt;About Us&lt;/a&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;#&quot;&gt;Our Mission&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#&quot;&gt;Technology&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#&quot;&gt;Success Stories&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a href=&quot;#&quot;&gt;Services&lt;/a&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;#&quot;&gt;CMS&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#&quot;&gt;UI Designing&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#&quot;&gt;Logo Designing&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#&quot;&gt;WordPress&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#&quot;&gt;SEO Optimization&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#&quot;&gt;News&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#&quot;&gt;Career&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/body&gt;
&lt;/html&gt;</pre>
<p>The post <a href="https://jharaphula.com/example-jquery-vertical-menu-submenu/">CSS based Jquery vertical menu with Submenu Example</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://jharaphula.com/example-jquery-vertical-menu-submenu/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			<media:content url="https://jharaphula.com/wp-content/uploads/2016/05/vertical-menu-example.png" medium="image" />
	</item>
		<item>
		<title>Horizontal Navigation menu with sub-menu using pure CSS Source Code</title>
		<link>https://jharaphula.com/responsive-horizontal-menu-pure-css/</link>
					<comments>https://jharaphula.com/responsive-horizontal-menu-pure-css/#respond</comments>
		
		<dc:creator><![CDATA[Nibedita Panda]]></dc:creator>
		<pubDate>Sat, 14 May 2016 07:41:04 +0000</pubDate>
				<category><![CDATA[CSS Tricks with Examples]]></category>
		<category><![CDATA[Advanced CSS3]]></category>
		<category><![CDATA[horizontal navigation menu]]></category>
		<category><![CDATA[menu using pure CSS]]></category>
		<category><![CDATA[Responsive horizontal menu]]></category>
		<guid isPermaLink="false">http://box.jharaphula.com/?p=900</guid>

					<description><![CDATA[<img width="300" height="184" src="https://jharaphula.com/wp-content/uploads/2016/05/menu-demo-300x184.png" class="webfeedsFeaturedVisual wp-post-image" alt="Responsive horizontal navigation menu using pure CSS" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/menu-demo-300x184.png 300w, https://jharaphula.com/wp-content/uploads/2016/05/menu-demo.png 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>Compare to JavaScript or a JQuery menu pure CSS menu gives better performance. Are you looking to create a horizontal menu with sub-menu for your...</p>
<p>The post <a href="https://jharaphula.com/responsive-horizontal-menu-pure-css/">Horizontal Navigation menu with sub-menu using pure CSS Source Code</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></description>
										<content:encoded><![CDATA[<img width="300" height="184" src="https://jharaphula.com/wp-content/uploads/2016/05/menu-demo-300x184.png" class="webfeedsFeaturedVisual wp-post-image" alt="Responsive horizontal navigation menu using pure CSS" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/menu-demo-300x184.png 300w, https://jharaphula.com/wp-content/uploads/2016/05/menu-demo.png 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>Compare to JavaScript or a JQuery menu <strong>pure CSS menu gives better performance</strong>. Are you looking to create a horizontal menu with sub-menu for your web applications without using any third-party plugins? If so this example will help you. In this demo app we Created a responsive horizontal navigation menu using pure CSS. This menu works for all browsers like Google Chrome, Firefox and Safari. You can customize this source codes as per your business need.</p>
<p><em>Desktop View</em>:<br />
<img loading="lazy" decoding="async" class="alignnone size-full wp-image-2957" src="https://jharaphula.com/wp-content/uploads/2016/05/menu.png" alt="menu" width="746" height="256" srcset="https://jharaphula.com/wp-content/uploads/2016/05/menu.png 746w, https://jharaphula.com/wp-content/uploads/2016/05/menu-300x103.png 300w" sizes="auto, (max-width: 746px) 100vw, 746px" /></p>
<p><em>Mobile View</em>:<br />
<img loading="lazy" decoding="async" class="alignnone size-full wp-image-2958" src="https://jharaphula.com/wp-content/uploads/2016/05/responsive-view.png" alt="responsive-view" width="310" height="407" srcset="https://jharaphula.com/wp-content/uploads/2016/05/responsive-view.png 310w, https://jharaphula.com/wp-content/uploads/2016/05/responsive-view-229x300.png 229w" sizes="auto, (max-width: 310px) 100vw, 310px" /></p>
<h2>Example of Menu with Sub-menu using pure CSS</h2>
<p>In this example I have tabs like Home, About Us, Services, News &amp; Career. You can add or update tags as you want. This menu is supporting sub menu feature. Under About Us &amp; Services I added some sub menu items for demo purpose.</p>
<p>Technically to design this horizontal menu I used UL element of HTML. Using pure CSS I am defining color &amp; theme to the menu. For responsive I used <a href="https://jharaphula.com/css3-media-queries-tutorial/" target="_blank" rel="noopener noreferrer">CSS3 media queries</a>. In media query I configured the menu max-width to 750px. 750px is nothing but the total width of my horizontal menu (including all tabs).</p>
<p>This menu is designed using pure CSS, so according to your requirement <strong>you can Configure this menu easily</strong>. You can change width, height, font style, font color or font size as you want. To update colors &amp; theme you can update background for li &amp; anchor elements. To present mouse over effect here I used CSS hover. To update hover related changes you need to update li:hover related classes.</p>
<h2>Horizontal Navigation menu with sub-menu</h2>
<pre class="brush: xml; title: ; notranslate">&lt;!DOCTYPE html&gt;
&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;
&lt;head&gt;
&lt;title&gt;Responsive horizontal menu using CSS&lt;/title&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;label for=&quot;display-menu&quot; class=&quot;our-menu&quot;&gt;Our Menu&lt;/label&gt;
&lt;input type=&quot;checkbox&quot; id=&quot;display-menu&quot; role=&quot;button&quot; /&gt;
&lt;ul id=&quot;hor-menu&quot;&gt;
&lt;li&gt;&lt;a href=&quot;#&quot;&gt;Home&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;
&lt;a href=&quot;#&quot;&gt;About Us&lt;/a&gt;
&lt;ul class=&quot;sub-menu&quot;&gt;
&lt;li&gt;&lt;a href=&quot;#&quot;&gt;Our Mission&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#&quot;&gt;Technology&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#&quot;&gt;Success Stories&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a href=&quot;#&quot;&gt;Services&lt;/a&gt;
&lt;ul class=&quot;sub-menu&quot;&gt;
&lt;li&gt;&lt;a href=&quot;#&quot;&gt;CMS&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#&quot;&gt;UI Designing&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#&quot;&gt;Logo Designing&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#&quot;&gt;WordPress&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#&quot;&gt;SEO Optimization&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#&quot;&gt;News&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#&quot;&gt;Career&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;
&lt;a href=&quot;#&quot;&gt;Products&lt;/a&gt;
&lt;ul class=&quot;sub-menu&quot;&gt;
&lt;li&gt;&lt;a href=&quot;#&quot;&gt;Off-page Optimization&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#&quot;&gt;Blog Writing&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#&quot;&gt;MyCMS&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#&quot;&gt;WordPress Blogs&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#&quot;&gt;Mobile Apps&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/body&gt;
&lt;/html&gt;</pre>
<h2>CSS Source Code for Navigation menu</h2>
<pre class="brush: css; title: ; notranslate">&lt;style type=&quot;text/css&quot;&gt;
.our-menu { font-family: Arial, &quot;Times New Roman&quot;, Georgia; text-decoration: none; color: #ffffff; background: #054372; text-align: center; padding: 6px 0; display: none; }
#display-menu { display: none; }
#display-menu:checked ~ #hor-menu{ display: block; }

/*Style for horizontal CSS menu*/
ul { list-style-type:none; position: absolute; margin:0px; padding:0px; }
li { float: left; margin-right: 1px; display:inline-block; }
li a { display: block; text-decoration: none; height: 35px; min-width: 145px; text-align: center; line-height: 35px; font-family: Arial, &quot;Times New Roman&quot;, Georgia; color: #ffffff; background: #197DCB; }
li:hover a { background: #054372; }
li:hover ul a { background: #f3f3f3; color: #2f3036; line-height: 35px; height: 35px; }
li:hover ul a:hover { background: #054372; color: #ffffff; }
li ul { display: none; }
li ul li { display: block; float: none; }
li ul li a { width: auto; min-width: 120px; padding: 0 15px; }
ul li a:hover + .sub-menu, .sub-menu:hover { display: block; }

/*Media Query for Responsive Design*/
@media screen and (max-width : 750px){
.our-menu { display:block; }
ul { position: static; display: none; }
li { margin-bottom: 1px; }
ul li, li a { width: 100%; }
}
&lt;/style&gt;</pre>
<h2>Benefits of Horizontal Navigation</h2>
<p>1. <strong>Space Efficiency</strong> Horizontal menus occupy minimal vertical space, allowing more room for content. This is particularly useful for landing pages and blogs where screen real estate is valuable.</p>
<p>2. <strong>User-Friendly Design</strong> Users are accustomed to horizontal menus, as they mimic traditional reading patterns (left to right). This familiarity enhances usability and reduces cognitive load.</p>
<p>3. <strong>Mobile Responsiveness</strong> With proper design techniques, horizontal menus can adapt to smaller screens, often transforming into hamburger menus on mobile devices.</p>
<p>4. <strong>Aesthetic Appeal</strong> A well-designed horizontal menu contributes to a clean, professional layout, reinforcing brand identity and visual hierarchy.</p>
<h2>Best Practices for Designing Horizontal Navigation</h2>
<p>1. <strong>Keep It Simple</strong> Limit the number of menu items to avoid clutter. Seven or fewer links are ideal for optimal usability.</p>
<p>2. <strong>Prioritize Important Links</strong> Place high-priority pages (e.g., Home, About, Contact) on the far left, as users typically scan from left to right.</p>
<p>3. <strong>Use Clear Labels</strong> Avoid jargon—menu labels should be concise and descriptive (e.g., &#8220;Services&#8221; instead of &#8220;What We Offer&#8221;).</p>
<p>4. <strong>Ensure Responsiveness</strong> Test the menu on various devices to ensure it collapses or adjusts appropriately on smaller screens.</p>
<p>5. <strong>Highlight Active Pages</strong> Use visual cues (e.g., bold text, underlines) to indicate the current page, helping users orient themselves.</p>
<h2>Common Horizontal Navigation Styles</h2>
<p>Navigation menus are a critical component of web design, guiding users through a website efficiently. Among the various navigation styles, horizontal navigation remains one of the most popular due to its simplicity and ease of use. Several horizontal navigation styles serve different purposes, each with its own benefits and ideal use cases. The most common types include the Standard Menu, Mega Menu, Sticky Menu, and Centered Menu. Understanding these styles helps designers create intuitive and user-friendly interfaces.</p>
<h3>1. Standard Menu</h3>
<p>The Standard Menu consists of text-based links arranged in a single row, typically placed at the top of a webpage. This style is straightforward, making it ideal for websites with a limited number of pages or sections.</p>
<p><strong>Key Features</strong> </p>
<p>&#8211; Space-Efficient: Fits neatly in the header without overwhelming the layout.<br />
&#8211; Clear Hierarchy: Directly displays primary navigation options.</p>
<p>Best Use Cases Standard menus work well for small business websites, portfolios, and blogs where navigation requirements are minimal. They ensure quick access to essential pages without unnecessary complexity.</p>
<p><strong>Limitations</strong> </p>
<p>&#8211; Not suitable for websites with numerous categories or subcategories.<br />
&#8211; Limited space may require dropdowns for additional links, which can complicate usability.</p>
<p>Despite its simplicity, the Standard Menu remains a reliable choice for many websites due to its familiarity and ease of navigation.</p>
<h3>2. Mega Menu</h3>
<p>A Mega Menu is an expanded version of a dropdown menu, displaying multiple columns of navigation links and sometimes additional content like images or featured products. Unlike traditional dropdowns, Mega Menus provide a broader overview of a website’s structure, making them ideal for large e-commerce sites or content-heavy platforms.</p>
<p><strong>Key Features</strong> </p>
<p>&#8211; Multi-Column Layout: Organizes links into categories and subcategories efficiently.<br />
&#8211; Rich Media Support: Can include images, icons, or promotional banners.<br />
&#8211; Enhanced Usability: Reduces clicks by displaying more options at once.</p>
<p>Best Use Cases Mega Menus are commonly used by online retailers, news websites, and enterprise platforms where multiple sections need quick access. They improve user experience by minimizing the need for excessive scrolling or page changes.</p>
<p><strong>Limitations</strong> </p>
<p>&#8211; Requires ample space and careful design to avoid visual clutter.</p>
<p>When implemented effectively, Mega Menus enhance discoverability and streamline navigation for complex websites.</p>
<h3>3. Sticky Menu</h3>
<p>A Sticky Menu, also known as a fixed or floating menu, remains visible at the top of the screen even as users scroll down the page.</p>
<p><strong>Key Features</strong> </p>
<p>&#8211; Persistent Visibility: Always available regardless of scrolling position.<br />
&#8211; Improved Accessibility: Users don’t need to scroll back to the top to navigate.<br />
&#8211; Space Optimization: Maintains navigation without taking up excessive screen real estate.</p>
<p>Best Use Cases Sticky Menus are beneficial for e-commerce sites, blogs, and single-page applications where continuous access to navigation improves the browsing experience.</p>
<p><strong>Limitations</strong> </p>
<p>&#8211; Can obstruct content if not designed with adequate spacing.<br />
&#8211; May not be necessary for short pages where scrolling is minimal.</p>
<p>For websites prioritizing user convenience, the Sticky Menu is an effective solution to keep navigation within reach.</p>
<h3>4. Centered Menu</h3>
<p>A Centered Menu aligns navigation links in the middle of the header rather than the traditional left or right orientation. This style is often used for minimalist or modern designs, creating a balanced and aesthetically pleasing layout.</p>
<p><strong>Key Features</strong> </p>
<p>&#8211; Visual Appeal: Creates a symmetrical and clean look.<br />
&#8211; Design Flexibility: Works well with logos placed on either side.<br />
&#8211; Unique Branding: Differentiates from conventional navigation styles.</p>
<p>Best Use Cases Centered Menus are ideal for creative agencies, personal portfolios, and luxury brands looking for a distinctive and elegant navigation solution.</p>
<p><strong>Limitations</strong> </p>
<p>&#8211; Limited space may restrict the number of links.<br />
&#8211; Can appear awkward if too many items are forced into the center.</p>
<p>When executed properly, the Centered Menu adds a touch of sophistication to a website’s design while maintaining functionality.</p>
<h2>Conclusion</h2>
<p>Horizontal navigation menus remain a staple in web design due to their efficiency, familiarity, and adaptability. By following best practices in design and development, they can significantly enhance user experience while maintaining a sleek, professional appearance. Whether for a corporate site or a personal blog, a well-structured horizontal menu ensures seamless navigation and engagement.</p>
<p>The post <a href="https://jharaphula.com/responsive-horizontal-menu-pure-css/">Horizontal Navigation menu with sub-menu using pure CSS Source Code</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://jharaphula.com/responsive-horizontal-menu-pure-css/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			<media:content url="https://jharaphula.com/wp-content/uploads/2016/05/menu-demo.png" medium="image" />
	</item>
		<item>
		<title>CSS3 Sprite images Example to reduce HTTP Requests</title>
		<link>https://jharaphula.com/css-sprite-images-example/</link>
					<comments>https://jharaphula.com/css-sprite-images-example/#comments</comments>
		
		<dc:creator><![CDATA[Nibedita Panda]]></dc:creator>
		<pubDate>Sat, 14 May 2016 07:40:02 +0000</pubDate>
				<category><![CDATA[CSS Tricks with Examples]]></category>
		<category><![CDATA[Advanced CSS3]]></category>
		<category><![CDATA[CSS attributes]]></category>
		<category><![CDATA[CSS Sprite images]]></category>
		<category><![CDATA[reduce HTTP Requests]]></category>
		<guid isPermaLink="false">http://box.jharaphula.com/?p=898</guid>

					<description><![CDATA[<img width="300" height="194" src="https://jharaphula.com/wp-content/uploads/2016/05/css-sprite-example-300x194.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="CSS Sprite images Example to reduce HTTP Requests" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/css-sprite-example-300x194.jpg 300w, https://jharaphula.com/wp-content/uploads/2016/05/css-sprite-example-294x190.jpg 294w, https://jharaphula.com/wp-content/uploads/2016/05/css-sprite-example-106x70.jpg 106w, https://jharaphula.com/wp-content/uploads/2016/05/css-sprite-example.jpg 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>CSS3 Sprite is neither a method nor an attribute in CSS. CSS Sprite is a simple trick to load multiple images with a single http...</p>
<p>The post <a href="https://jharaphula.com/css-sprite-images-example/">CSS3 Sprite images Example to reduce HTTP Requests</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></description>
										<content:encoded><![CDATA[<img width="300" height="194" src="https://jharaphula.com/wp-content/uploads/2016/05/css-sprite-example-300x194.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="CSS Sprite images Example to reduce HTTP Requests" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/css-sprite-example-300x194.jpg 300w, https://jharaphula.com/wp-content/uploads/2016/05/css-sprite-example-294x190.jpg 294w, https://jharaphula.com/wp-content/uploads/2016/05/css-sprite-example-106x70.jpg 106w, https://jharaphula.com/wp-content/uploads/2016/05/css-sprite-example.jpg 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>CSS3 Sprite is neither a method nor an attribute in CSS. CSS Sprite is a simple trick to load multiple images with a single http request. This is the cause CSS Sprite helps to <a href="https://jharaphula.com/best-practices-website-speed-performance/" target="_blank" rel="noopener noreferrer">improve performance of a web application</a> by reducing the loading time for several images. To implement CSS Sprite we need CSS attributes like Width, Height, Background, Position Left &amp; Right.</p>
<p>Look at the example below. Here I have a single png file (demoImg.png) with 4 sub images. Sub images are cloud, clock, message &amp; love symbols. Using CSS3 Sprite I am showing all these 4 sub images to each individual HTML image tags. To identify image tags I used id&#8217;s (#cloud, #clock, #message &amp; #love) for each img tag. By setting image src=&#8221;trans.gif&#8221; I am loading an transparent image similar to the width &amp; height of sub image. To show each image individually with respective image tag I am applying CSS attributes background, width &amp; height to the image using id selector.</p>
<h2>How CSS3 Sprite works?</h2>
<p>Inside the id selector I am applying background (background: url(&#8220;demoImg.png&#8221;) no-repeat scroll 0 0 rgba(0, 0, 0, 0);) for img tag. Look at this line of code here after scroll 0 0 is the position of background image. First 0 is indicating &#8220;Left&#8221; &amp; the second one is &#8220;Top&#8221;. To display the first image &#8220;cloud&#8221;, I have left:0px &amp; top:0px. While for the second image &#8220;clock&#8221; (background: url(&#8220;demoImg.png&#8221;) no-repeat scroll -194px 0 rgba(0, 0, 0, 0);) I have left:-194px &amp; top:0px;. For each image selector url of the background is pointing to the same image demoImg.png. But by setting position I am showing each individual image independently. This trick is called CSS Sprite. Keep remember after positioning the required image from the total image file set the width &amp; height similar to the width &amp; height of image you are going to show in HTML image tag.</p>
<h2>CSS3 Sprite images Example</h2>
<p>To run the below example Copy this HTML code to an index.html file. Then save below 2 images (trans.gif &amp; demoImg.png) to the same folder &amp; Open the index.html.</p>
<h3>Index.htm</h3>
<pre class="brush: xml; title: ; notranslate">&lt;!DOCTYPE html&gt;
&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;
&lt;head&gt;
&lt;title&gt;CSS Sprite images Example&lt;/title&gt;
&lt;style type=&quot;text/css&quot;&gt;
#cloud {
background: url(&quot;demoImg.png&quot;) no-repeat scroll 0 0 rgba(0, 0, 0, 0);
height: 132px;
width: 184px;
}
#clock {
background: url(&quot;demoImg.png&quot;) no-repeat scroll -194px 0 rgba(0, 0, 0, 0);
height: 132px;
width: 184px;
}
#message {
background: url(&quot;demoImg.png&quot;) no-repeat scroll -391px 0 rgba(0, 0, 0, 0);
height: 132px;
width: 184px;
}
#love {
background: url(&quot;demoImg.png&quot;) no-repeat scroll -585px 0 rgba(0, 0, 0, 0);
height: 132px;
width: 184px;
}
&lt;/style&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;img id=&quot;cloud&quot; src=&quot;trans.gif&quot; alt=&quot;Cloud&quot; title=&quot;Cloud&quot; /&gt;&lt;br /&gt;
&lt;img id=&quot;clock&quot; src=&quot;trans.gif&quot; alt=&quot;Clock&quot; title=&quot;Clock&quot; /&gt;&lt;br /&gt;
&lt;img id=&quot;message&quot; src=&quot;trans.gif&quot; alt=&quot;Message&quot; title=&quot;Message&quot; /&gt;&lt;br /&gt;
&lt;img id=&quot;love&quot; src=&quot;trans.gif&quot; alt=&quot;Love&quot; title=&quot;Love&quot; /&gt;
&lt;/body&gt;
&lt;/html&gt;</pre>
<p><strong>CSS3 Sprite demo app images to Download</strong></p>
<p><em>trans.gif</em></p>
<div style="width: 184px; height: 132px; border: 1px solid gray;"><img loading="lazy" decoding="async" class="alignnone size-full wp-image-3424" src="https://jharaphula.com/wp-content/uploads/2016/05/trans.gif" alt="trans" width="184" height="132" /></div>
<div style="padding-bottom: 20px;"></div>
<p><em>demoImg.png</em></p>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-3425" src="https://jharaphula.com/wp-content/uploads/2016/05/demoImg.png" alt="demoImg" width="768" height="131" srcset="https://jharaphula.com/wp-content/uploads/2016/05/demoImg.png 768w, https://jharaphula.com/wp-content/uploads/2016/05/demoImg-300x51.png 300w" sizes="auto, (max-width: 768px) 100vw, 768px" /></p>
<p>The post <a href="https://jharaphula.com/css-sprite-images-example/">CSS3 Sprite images Example to reduce HTTP Requests</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://jharaphula.com/css-sprite-images-example/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			<media:content url="https://jharaphula.com/wp-content/uploads/2016/05/css-sprite-example.jpg" medium="image" />
	</item>
		<item>
		<title>How to Move a DIV from Left to Right using CSS3 Animation?</title>
		<link>https://jharaphula.com/move-div-left-right-using-css3-animation/</link>
					<comments>https://jharaphula.com/move-div-left-right-using-css3-animation/#respond</comments>
		
		<dc:creator><![CDATA[Nibedita Panda]]></dc:creator>
		<pubDate>Sat, 14 May 2016 07:38:45 +0000</pubDate>
				<category><![CDATA[CSS Tricks with Examples]]></category>
		<category><![CDATA[CSS3 Animation]]></category>
		<category><![CDATA[DIV from Left to Right]]></category>
		<category><![CDATA[JavaScript Animation]]></category>
		<guid isPermaLink="false">http://box.jharaphula.com/?p=895</guid>

					<description><![CDATA[<img width="300" height="187" src="https://jharaphula.com/wp-content/uploads/2016/05/css-animation-300x187.png" class="webfeedsFeaturedVisual wp-post-image" alt="How to move a div from left to right using CSS3 Animation?" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/css-animation-300x187.png 300w, https://jharaphula.com/wp-content/uploads/2016/05/css-animation.png 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>Compare to Flash or JavaScript animation CSS3 animation render faster. Animation is a new feature introduced in CSS3. Performance wise CSS3 is more programmers friendly....</p>
<p>The post <a href="https://jharaphula.com/move-div-left-right-using-css3-animation/">How to Move a DIV from Left to Right using CSS3 Animation?</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></description>
										<content:encoded><![CDATA[<img width="300" height="187" src="https://jharaphula.com/wp-content/uploads/2016/05/css-animation-300x187.png" class="webfeedsFeaturedVisual wp-post-image" alt="How to move a div from left to right using CSS3 Animation?" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/css-animation-300x187.png 300w, https://jharaphula.com/wp-content/uploads/2016/05/css-animation.png 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>Compare to Flash or JavaScript animation CSS3 animation render faster. Animation is a new feature <a href="https://jharaphula.com/category/programming-solutions/css-code-tutorials/" rel="noopener noreferrer" target="_blank">introduced in CSS3</a>. Performance wise CSS3 is more programmers friendly. In this session let us make you clear about the trick to use CSS animation.</p>
<p>In CSS3 2 major properties are &#8220;animation&#8221; &amp; &#8220;@keyframes&#8221;. Refer to the below example I have a div with a class &#8220;animation&#8221;. To apply animation on this div I created a class animation. Inside the class I added CSS3 property animation: demoAnimation 5s;. Here demoAnimation is controlled by keyframes. Using @keyframes we need to define from &amp; to properties. As in this example I am moving a div from left to right, I positioned the div to absolute and applying left property from 0 to 200px.</p>
<p>To support animation in all browser here I used animation property for IE &amp; FireFox. To render the same in Google Chrome, Safari &amp; Opera I used -webkit-animation. The similar I did for @keyframes.</p>
<p>CSS animation comes with some major properties like animation, @keyframes, animation-delay, animation-direction, animation-duration, animation-fill-mode, animation-iteration-count, animation-name, animation-play-state &amp; animation-timing-function.</p>
<h2>Move a DIV from Left to Right Example</h2>
<pre class="brush: xml; title: ; notranslate">&lt;!DOCTYPE html&gt;
&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;
&lt;head&gt;
&lt;title&gt;How to move a div from left to right?&lt;/title&gt;
&lt;style type=&quot;text/css&quot;&gt;
.animation {
/* IE &amp; FireFox */
animation: demoAnimation 5s;
/* Chrome, Safari &amp; Opera */
-webkit-animation: demoAnimation 5s;
position: absolute;
}

/* IE &amp; FireFox */
@keyframes demoAnimation {
from {left: 0px; background: red;}
to {left: 200px; background: yellow;}
}

/* Chrome, Safari &amp; Opera */
@-webkit-keyframes demoAnimation {
from {left: 0px; background: red;}
to {left: 200px; background: yellow;}
}
&lt;/style&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;div class=&quot;animation&quot;&gt;This is a Div.&lt;/div&gt;
&lt;/body&gt;
&lt;/html&gt;</pre>
<h2>CSS3 Animation</h2>
<p>CSS3 has revolutionized web design by introducing powerful animation capabilities that allow developers to create smooth, engaging, and interactive experiences without relying on JavaScript or Flash. With CSS3 animations, designers can bring elements to life through transitions, transforms, and keyframe-based animations, enhancing user engagement and visual appeal.</p>
<p>At its core, CSS3 animation includes three primary techniques: transitions, transforms, and keyframe animations. Each of these techniques serves its purpose, allowing designers to choose the most effective means of delivering their message.</p>
<p><strong>Transitions</strong></p>
<p>**Transitions** are the simplest form of CSS animation. They enable property changes in CSS to occur smoothly over a specified duration. For instance, if a user hovers over a button, a transition can make the button change color or size gradually rather than instantaneously. This subtle effect enhances interactivity, providing visual feedback that guides users as they navigate.</p>
<p><strong>Transforms</strong></p>
<p>**Transforms** take this a step further. They allow elements to be moved, scaled, rotated, or skewed without affecting the surrounding elements. For example, a designer can create a card that rotates slightly when a user hovers over it, drawing attention and creating an interactive feel. This type of animation is also hardware-accelerated, ensuring that the experience remains smooth even on devices with lower performance capabilities.</p>
<h2>Understanding CSS3 Animation</h2>
<p>CSS3 animations enable the gradual change of an element’s style from one state to another. Unlike CSS transitions, which are limited to simple property changes, animations provide greater control over intermediate steps using keyframes. This makes them ideal for complex, multi-step effects.</p>
<p>One of the most significant advantages of CSS3 animation is its efficiency. Animations created with CSS are often lighter than those utilizing JavaScript or Flash, leading to faster load times and improved user experience. Additionally, CSS animations are more accessible; they can be executed with just a few lines of code, making them highly usable for developers of all skill levels.</p>
<p>Another critical aspect of CSS3 animation is responsiveness. As web design increasingly shifts towards mobile-first approaches, it’s essential for animations to be functional and elegant across various devices. CSS3 is inherently responsive; designers can use media queries to modify animations based on screen size, ensuring a consistent experience for all users.</p>
<p>Key Components of CSS3 Animation</p>
<p><strong>1. Keyframes</strong> – The foundation of CSS3 animation, keyframes define the styles at various points during the animation sequence. Using `@keyframes`, developers specify how an element should appear at specific intervals (e.g., 0%, 50%, 100%).</p>
<p><strong>2. Animation Properties</strong> – CSS provides several properties to control animations: &#8211; `animation-name` – Specifies the keyframe rule to use. &#8211; `animation-duration` – Sets how long the animation lasts.</p>
<h2>Conclusion</h2>
<p>CSS3 animations offer a powerful, lightweight way to enhance web interactivity and aesthetics. By mastering keyframes, animation properties, and performance optimization, developers can create visually compelling experiences that captivate users. Whether for subtle micro-interactions or complex motion graphics, CSS3 animations remain an essential tool in modern web design.</p>
<p>The post <a href="https://jharaphula.com/move-div-left-right-using-css3-animation/">How to Move a DIV from Left to Right using CSS3 Animation?</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://jharaphula.com/move-div-left-right-using-css3-animation/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			<media:content url="https://jharaphula.com/wp-content/uploads/2016/05/css-animation.png" medium="image" />
	</item>
		<item>
		<title>Web Design best practices to improve Website Speed &#038; Performance</title>
		<link>https://jharaphula.com/web-design-best-practices-website-speed-performance/</link>
					<comments>https://jharaphula.com/web-design-best-practices-website-speed-performance/#respond</comments>
		
		<dc:creator><![CDATA[Nibedita Panda]]></dc:creator>
		<pubDate>Sat, 14 May 2016 07:11:05 +0000</pubDate>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[improve performance of a server]]></category>
		<category><![CDATA[improve Website Speed]]></category>
		<category><![CDATA[Programming Skills]]></category>
		<category><![CDATA[Recursive Function]]></category>
		<category><![CDATA[Web Design best practices]]></category>
		<guid isPermaLink="false">http://box.jharaphula.com/?p=871</guid>

					<description><![CDATA[<img width="300" height="180" src="https://jharaphula.com/wp-content/uploads/2016/05/tips-to-improve-performace-of-a-web-app-300x180.png" class="webfeedsFeaturedVisual wp-post-image" alt="Web design best practices to improve Website Speed &amp; Performance" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/tips-to-improve-performace-of-a-web-app-300x180.png 300w, https://jharaphula.com/wp-content/uploads/2016/05/tips-to-improve-performace-of-a-web-app.png 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>Today web is more popular then Television. Million of peoples are searching several information&#8217;s in web. Looking into this there are many IT Companies working...</p>
<p>The post <a href="https://jharaphula.com/web-design-best-practices-website-speed-performance/">Web Design best practices to improve Website Speed &#038; Performance</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></description>
										<content:encoded><![CDATA[<img width="300" height="180" src="https://jharaphula.com/wp-content/uploads/2016/05/tips-to-improve-performace-of-a-web-app-300x180.png" class="webfeedsFeaturedVisual wp-post-image" alt="Web design best practices to improve Website Speed &amp; Performance" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/tips-to-improve-performace-of-a-web-app-300x180.png 300w, https://jharaphula.com/wp-content/uploads/2016/05/tips-to-improve-performace-of-a-web-app.png 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>Today web is more popular then Television. Million of peoples are searching several information&#8217;s in web. Looking into this there are many <a href="https://jharaphula.com/top-cmm-level-it-companies-in-hinjewadi/" rel="noopener noreferrer" target="_blank">IT Companies</a> working on several web applications to make the web better. Origin of Web Design stands on Client Server mechanism. I mean there is a server where resources are stored. According to the client request server response the data. Here speed &amp; performance comes. In this session we will not discuss how to improve performance of a server rather we will focus on best practices to improve Website Speed &amp; Performance.</p>
<p>Generally we do web development using HTML, CSS, JAVASCRIPT, JQUERY &amp; any one of the SERVER SIDE programming skill. While designing the application let us share few key points which can help a programmer to design high performance web application.</p>
<h3>Best practices to improve Website Speed &amp; Performance</h3>
<p><strong>1</strong>. Always during web development try to reduce http requests as much as you can. <strong>Implement Cache feature while designing a web application</strong>. With the new version of HTML5 Application Cache helps a lot to improve performance of web. For the first time when user will request your webpage cache the common used static elements in client browser. For further consecutive requests load only dynamic things from server. This activity reduce http requests &amp; improves the performance.</p>
<p><strong>2</strong>. During web development we required to add many images to make our web page attractive. In this case I will suggest <strong>practice to use web optimized images in place of normal images</strong>. If you have a JPEG image convert it to PNG. PNG image files are less size compare to JPEG images. While displaying a large image prefer to load the image partially. Always remember to cache static images in browser memory.</p>
<p><strong>3</strong>. Use of icon is very common in web development. If you are using icons for your application prefer optimized lightweight images. If possible <strong>replace the images with vector graphics fonts</strong>. Compare to images vector graphics icon provides better performance &amp; reduces loading time. An example of vector graphics font icons are &#8220;font-awesome&#8221;.</p>
<p><strong>4</strong>. <strong>Try to handle all those operations which can possible to do at client end</strong>. I mean validations, simple calculations, graphics etc. About client script if you are using JAVASCRIPT replace this with advanced JQUERY library. <strong>Compare to JAVASCRIPT JQUERY helps to improve better performance</strong>.</p>
<p><strong>5</strong>. If you are using JAVASCRIPT files convert them to minify version. <strong>Minify version of JAVASCRIPT loads faster compare to simple js files</strong>.</p>
<p><strong>6</strong>. Use of <strong>Ajax technology helps to improve the web better</strong>. Let&#8217;s talk about a case where user want to know the total number of T-shirts available in the store using your shopping cart application. Here when user click on the button to display total number of T-shirts avoid to request the whole page again. Only update the number by implementing an Ajax call. Effective use of Ajax makes web real-time.</p>
<p><strong>7.</strong> Before deploy into production server <strong>always optimize your CSS files</strong>. Use minify version in place of normal one. Combine media queries &amp; print style sheets in single file. Avoid to use @import statement in your CSS files.</p>
<h3>As a Programmer</h3>
<p><strong>1</strong>. In case of a error avoid throwing exceptions. This process reduce performance. Show errors manually.</p>
<p><strong>2</strong>. Avoid to use Recursive Functions or Nested Loops. This makes delay in page loading.</p>
<p><strong>3</strong>. Always give priority to use client side validations. Ignore to implement server side validations.</p>
<p><strong>4</strong>. While writing JAVASCRIPT practice to implement functions with return value. Functions are pre-compiled.</p>
<p><strong>5</strong>. While possible use for each in place of normal for loop. For each takes less compiling time compare to for loop.</p>
<p><strong>6</strong>. While doing string concatenation in JAVASCRIPT prefer to use StringBuffer method.</p>
<p><strong>7</strong>. If you are using multiple images use CSS Sprites technique. It reduces http requests.</p>
<p><strong>8</strong>. For animation prefer to use CSS rather then JavaScript or Flash.</p>
<p><strong>9</strong>. If you found more then 4 to 5 conditional checking replace if &amp; else if with switch case.</p>
<p><strong>10</strong>. Reduce the number of third-party plugins you embed in your application.</p>
<p>From my experience I found the above listed techniques will help you to develop fastest web applications. I know you are also aware of many techniques to improve the web application faster. Feel free to share them here with your comments.</p>
<p>&#8220;Let us make our web faster n better.&#8221;</p>
<p>The post <a href="https://jharaphula.com/web-design-best-practices-website-speed-performance/">Web Design best practices to improve Website Speed &#038; Performance</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://jharaphula.com/web-design-best-practices-website-speed-performance/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			<media:content url="https://jharaphula.com/wp-content/uploads/2016/05/tips-to-improve-performace-of-a-web-app.png" medium="image" />
	</item>
		<item>
		<title>How to export Data from SQL tables to a Excel file using VB.NET?</title>
		<link>https://jharaphula.com/how-to-export-sql-query-to-excel/</link>
					<comments>https://jharaphula.com/how-to-export-sql-query-to-excel/#respond</comments>
		
		<dc:creator><![CDATA[Nibedita Panda]]></dc:creator>
		<pubDate>Sat, 14 May 2016 07:06:54 +0000</pubDate>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Excel file using VB.NET]]></category>
		<category><![CDATA[SQL Query]]></category>
		<category><![CDATA[SQL Query to Excel Function]]></category>
		<category><![CDATA[VB.NET]]></category>
		<guid isPermaLink="false">http://box.jharaphula.com/?p=867</guid>

					<description><![CDATA[<img width="300" height="182" src="https://jharaphula.com/wp-content/uploads/2016/05/ms-excel-300x182.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="How to Export SQL Query to Excel file using VB.NET?" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/ms-excel-300x182.jpg 300w, https://jharaphula.com/wp-content/uploads/2016/05/ms-excel.jpg 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>In application development generally during report generation Customer wants to add a button which can create an excel file from the filtered report grid. Recently...</p>
<p>The post <a href="https://jharaphula.com/how-to-export-sql-query-to-excel/">How to export Data from SQL tables to a Excel file using VB.NET?</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></description>
										<content:encoded><![CDATA[<img width="300" height="182" src="https://jharaphula.com/wp-content/uploads/2016/05/ms-excel-300x182.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="How to Export SQL Query to Excel file using VB.NET?" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/ms-excel-300x182.jpg 300w, https://jharaphula.com/wp-content/uploads/2016/05/ms-excel.jpg 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>In application development generally during report generation Customer wants to add a button which can create an excel file from the filtered report grid. Recently during I worked for a filter page where I wrote a function (Export2Excel) related to this export excel. The environment where I wrote the function is in VB.NET. About the function Export2Excel() it accepts 2 parameters. SQL Query to extract data from the database and Name of the Excel file which you want to create. Look at the function below.</p>
<p>Under .NET Framework normally to fetch data from a database to code-behind we use SqlDataAdapter. SqlDataAdapter accepts 2 parameters. First one is SQL Query and database Connection String. Using popular data adapter Fill method here I am binding data from adapter to data table.</p>
<h3>Export SQL Query to Excel Function</h3>
<pre class="brush: vb; title: ; notranslate">Private Sub Export2Excel(ByVal SqlQry As String, ByVal FileName As String)
Response.ClearContent()
Response.ContentType = &quot;Application/vnd.ms-excel&quot;
Response.AddHeader(&quot;Content-Disposition&quot;, &quot;attachment; filename=&quot; &amp;amp; FileName &amp;amp; &quot;&quot;)
Response.Flush()
Dim SqlDataAdp As New SqlDataAdapter(SqlQry, sqlConn)
Dim DT As New DataTable
SqlDataAdp.Fill(DT)
sqlConn.Open()
Dim tempTable As String = String.Empty
Dim DTCol As DataColumn
Dim DTRow As DataRow
tempTable = &quot;&lt;table cellpadding='2' cellspacing='2' border='1' width='100%'&gt;&quot;
tempTable = tempTable &amp;amp; &quot;&lt;tr&gt;&quot;
For Each DTCol In DT.Columns
tempTable = tempTable &amp;amp; &quot;&lt;td valign='top' style='font-weight:bold'&gt;&quot;
tempTable = tempTable &amp;amp; DTCol.ColumnName.ToString()
tempTable = tempTable &amp;amp; &quot;&lt;/td&gt;&quot;
Next
tempTable = tempTable &amp;amp; &quot;&lt;/tr&gt;&quot;
For Each DTRow In DT.Rows
tempTable = tempTable &amp;amp; &quot;&lt;tr&gt;&quot;
For i = 0 To DT.Columns.Count - 1
tempTable = tempTable &amp;amp; &quot;&lt;td valign='top' align='left'&gt;&quot;
tempTable = tempTable &amp;amp; DTRow(i).ToString()
tempTable = tempTable &amp;amp; &quot;&lt;/td&gt;&quot;
Next
tempTable = tempTable &amp;amp; &quot;&lt;/tr&gt;&quot;
Next
tempTable = tempTable &amp;amp; &quot;&lt;/table&gt;&quot;
Response.Write(tempTable)
Response.End()
End Sub</pre>
<p>In the above function I am fetching SQL data using a Data Adapter. Named as SqlDataAdp. Then assigning data from Data Adapter to a Data Table. Using a variable tempTable I am creating the tabular structure of data from data table. To do this here I used for loops for data table columns and rows. To run the <a href="https://jharaphula.com/php-string-functions-with-example/" target="_blank" rel="noopener noreferrer">function</a> I am calling it from the button click event of &#8220;Export to Excel&#8221; button.</p>
<h3>btnExportToExcel Click</h3>
<pre class="brush: vb; title: ; notranslate">Protected Sub btnExportToExcel_Click(ByVal sender As Object, ByVal e AsSystem.EventArgs) Handles btnExportToExcel.Click
Export2Excel(&quot;SELECT * FROM EmployeeTable&quot;, &quot;Employees.xls&quot;)
End Sub</pre>
<p>Set the connectiong String in your web.config file as below.</p>
<pre class="brush: xml; title: ; notranslate">&lt;connectionStrings&gt;
    &lt;add name=&quot;sqlConn&quot;
         connectionString=&quot;Data Source=(LocalDB)\v11.0;AttachDbFilename=|DataDirectory|\gadgetDatabase.mdf;Integrated Security=True&quot; /&gt;
&lt;/connectionStrings&gt;</pre>
<p>You must noticed here I added below 3 lines inside my button click event. The first line Response.ClearContent() helps to create a new excel file. If there is a existing file on same name it helps to clear the file before append a new table.</p>
<pre class="brush: vb; title: ; notranslate">Response.ClearContent()
Response.ContentType = &quot;Application/vnd.ms-excel&quot;
Response.AddHeader(&quot;Content-Disposition&quot;, &quot;attachment; filename=&quot; &amp;amp; FileName &amp;amp; &quot;&quot;)</pre>
<p>Response.ContentType = &#8220;Application/vnd.ms-excel&#8221; this line helps to generate the file type excel. Without using this line of Code its not possible to Create an excel file using VB.NET. AddHeader helps to write file header information.</p>
<p>The post <a href="https://jharaphula.com/how-to-export-sql-query-to-excel/">How to export Data from SQL tables to a Excel file using VB.NET?</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://jharaphula.com/how-to-export-sql-query-to-excel/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			<media:content url="https://jharaphula.com/wp-content/uploads/2016/05/ms-excel.jpg" medium="image" />
	</item>
		<item>
		<title>Simple JavaScript Captcha Example (Client Side Captcha)</title>
		<link>https://jharaphula.com/simple-javascript-captcha-example/</link>
					<comments>https://jharaphula.com/simple-javascript-captcha-example/#respond</comments>
		
		<dc:creator><![CDATA[Nibedita Panda]]></dc:creator>
		<pubDate>Sat, 14 May 2016 07:04:14 +0000</pubDate>
				<category><![CDATA[JS Functions & Examples]]></category>
		<category><![CDATA[Client Side Captcha]]></category>
		<category><![CDATA[Generating Captcha]]></category>
		<category><![CDATA[JavaScript Captcha Example]]></category>
		<category><![CDATA[Simple JavaScript Captcha]]></category>
		<category><![CDATA[Validating Captcha]]></category>
		<guid isPermaLink="false">http://box.jharaphula.com/?p=865</guid>

					<description><![CDATA[<img width="300" height="187" src="https://jharaphula.com/wp-content/uploads/2016/05/twitter_capcha-300x187.png" class="webfeedsFeaturedVisual wp-post-image" alt="Simple JavaScript Captcha Example (Client Side Captcha)" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/twitter_capcha-300x187.png 300w, https://jharaphula.com/wp-content/uploads/2016/05/twitter_capcha.png 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>Captcha is a technique to protect web forms from auto submission. Hackers use various tools to insert spam records in to your business. Validating Captcha...</p>
<p>The post <a href="https://jharaphula.com/simple-javascript-captcha-example/">Simple JavaScript Captcha Example (Client Side Captcha)</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></description>
										<content:encoded><![CDATA[<img width="300" height="187" src="https://jharaphula.com/wp-content/uploads/2016/05/twitter_capcha-300x187.png" class="webfeedsFeaturedVisual wp-post-image" alt="Simple JavaScript Captcha Example (Client Side Captcha)" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/twitter_capcha-300x187.png 300w, https://jharaphula.com/wp-content/uploads/2016/05/twitter_capcha.png 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>Captcha is a technique to protect web forms from auto submission. Hackers use various tools to insert spam records in to your business. Validating Captcha is a proof that the user is a real human. Today inside this growing network many hackers are sitting around the world. They have several tools to hack your blog or business websites.</p>
<p>It plays a critical role in preventing spam, unauthorized access, and automated attacks on websites. While traditional CAPTCHAs rely on server-side validation, client-side CAPTCHA has emerged as an alternative approach that processes verification directly in the user’s browser. This article explores the concept, advantages, challenges, and implementation of client-side CAPTCHA.</p>
<h2>Where we need JavaScript Captcha?</h2>
<p>Let&#8217;s talk about a simple login form. In a login form basically we have 2 input fields (username &amp; password) with 1 submit button. To hack if we will pass <a href="https://jharaphula.com/javascript-function-random-string/" target="_blank" rel="noopener noreferrer">random strings</a> to username &amp; password using a program there can be a chance in some point of time submit will successful. While manually it is quite difficult. Another scenario where let you have a signup form. If you are not taking protection 1000+ spammers can signup per day. Which is practically brings difficulties in maintainance. That&#8217;s why JavaScript Captcha. Captcha protects our forms from illegal submission.</p>
<p>Captcha is generating a code in the format of an image or string. Something like &#8220;DSERTT&#8221; or &#8220;D9K22A&#8221; or &#8220;325889&#8221;. User need to provide Captcha code before submitting a Form online. Here my intention to tell you adding Captcha to reduce the chance of unnatural form submissions. Captcha can be created at both the end server-side and client side. Compare to server-side captcha client-side captcha is much good for your websites. Client-side captcha reduce network load as well as performance rich.</p>
<p>In this example I <strong>created a Simple JavaScript Captcha</strong>. Client side Captcha helps to reduce http requests. It gives better performance compair to other type of Captcha techniques.</p>
<p>In the below code using math class I am generating 7 numeric characters randomly. Concatenating them with space in-between. Then assigning this value to txtCaptcha value. While user entering the text to txtCaptcha I am comparing these two values. If it is equal I am returning true or else returning false.</p>
<h2>Simple JavaScript Captcha Example</h2>
<pre class="brush: xml; title: ; notranslate">&lt;!DOCTYPE html&gt;
&lt;html&gt;
&lt;head&gt;
&lt;title&gt;Simple JavaScript Captcha Example&lt;/title&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
/* Function to Generat Captcha */
function GenerateCaptcha() {
var chr1 = Math.ceil(Math.random() * 10)+ '';
var chr2 = Math.ceil(Math.random() * 10)+ '';
var chr3 = Math.ceil(Math.random() * 10)+ '';
var chr4 = Math.ceil(Math.random() * 10)+ '';
var chr5 = Math.ceil(Math.random() * 10)+ '';
var chr6 = Math.ceil(Math.random() * 10)+ '';
var chr7 = Math.ceil(Math.random() * 10)+ '';

var captchaCode = chr1 + ' ' + chr2 + ' ' + chr3 + ' ' + chr4 + ' ' + chr5 + ' '+ chr6 + ' ' + chr7;
document.getElementById(&quot;txtCaptcha&quot;).value = captchaCode
}

/* Validating Captcha Function */
function ValidCaptcha() {
var str1 = removeSpaces(document.getElementById('txtCaptcha').value);
var str2 = removeSpaces(document.getElementById('txtCompare').value);

if (str1 == str2) return true;
return false;
}

/* Remove spaces from Captcha Code */
function removeSpaces(string) {
return string.split(' ').join('');
}
&lt;/script&gt;
&lt;/head&gt;
&lt;body onload=&quot;GenerateCaptcha();&quot;&gt;
&lt;h2&gt;Generating Captcha Demo&lt;/h2&gt;
&lt;input type=&quot;text&quot; id=&quot;txtCaptcha&quot; style=&quot;text-align: center; border: none; font-weight: bold; font-family: Modern&quot; /&gt;
&lt;input type=&quot;button&quot; id=&quot;btnrefresh&quot; value=&quot;Refresh&quot; onclick=&quot;GenerateCaptcha();&quot; /&gt;
&lt;input type=&quot;text&quot; id=&quot;txtCompare&quot; /&gt;
&lt;input id=&quot;btnValid&quot; type=&quot;button&quot; value=&quot;Check&quot; onclick=&quot;alert(ValidCaptcha());&quot; /&gt;
&lt;/body&gt;
&lt;/html&gt;</pre>
<h2>What is Client-Side CAPTCHA?</h2>
<p>Client-side CAPTCHA refers to CAPTCHA mechanisms that perform validation on the user&#8217;s device rather than sending data to a server for verification. Unlike traditional server-side CAPTCHAs, which require a round-trip communication with a backend system, client-side solutions process the user’s response locally, reducing latency and server load.</p>
<h2>Types of Client-Side CAPTCHA</h2>
<p>1. JavaScript-Based CAPTCHA – These rely on JavaScript to generate and validate challenges without requiring server interaction. Examples include puzzle-solving tasks, drag-and-drop verifications, or simple math problems.</p>
<p>2. Invisible CAPTCHA – Uses behavioral analysis (mouse movements, keystrokes, etc.) to determine if the user is human without explicit challenges. Google’s reCAPTCHA v3 is a popular example.</p>
<p>3. Local Hash Verification – Some implementations use cryptographic hashes stored on the client side to verify responses without server dependencies.</p>
<h2>Advantages of Client-Side CAPTCHA</h2>
<p>1. Improved User Experience By eliminating server round-trip delays, client-side CAPTCHAs provide faster verification, reducing frustration for legitimate users.</p>
<p>2. Reduced Server Load Since validation occurs locally, the server does not need to process CAPTCHA requests, freeing up resources for other critical tasks.</p>
<p>3. Enhanced Privacy Some client-side CAPTCHAs minimize data exposure by keeping user interactions within the browser, reducing the risk of sensitive information being transmitted to third-party servers.</p>
<p>4. Offline Functionality Certain implementations allow verification even when the user has limited or no internet connectivity, making them useful for progressive web apps (PWAs).</p>
<h2>Challenges of Client-Side CAPTCHA</h2>
<p>1. Security Vulnerabilities Client-side validation can be bypassed if attackers manipulate JavaScript or reverse-engineer the verification logic. Unlike server-side CAPTCHAs, which rely on secret keys, client-side solutions may expose validation rules.</p>
<p>2. Limited Complexity To ensure smooth execution in the browser, client-side CAPTCHAs often use simpler challenges, making them potentially easier for bots to crack compared to advanced server-side counterparts.</p>
<p>3. Dependency on JavaScript If a user disables JavaScript, client-side CAPTCHAs may fail, forcing fallback mechanisms that could be less secure or more cumbersome.</p>
<p>4. Inconsistent Bot Detection Behavioral analysis CAPTCHAs (like reCAPTCHA v3) may incorrectly flag legitimate users as bots based on unusual but harmless interactions.</p>
<h2>Best Practices for Client-Side CAPTCHA</h2>
<p>1. Combine with Server-Side Validation – For higher security, use client-side CAPTCHA as a first layer and perform secondary validation on the server.</p>
<p>2. Regularly Update Mechanisms – Rotate challenge logic periodically to prevent bots from learning patterns.</p>
<p>3. Monitor Performance – Track false positives/negatives to adjust sensitivity levels.</p>
<p>4. Provide Fallback Options – Offer alternative verification methods for users with JavaScript disabled.</p>
<h2>Future of Client-Side CAPTCHA</h2>
<p>Advancements in AI and machine learning pose challenges for CAPTCHA systems, as bots grow more sophisticated. However, client-side CAPTCHAs are evolving with techniques like biometric verification (e.g., fingerprint scanning) and adaptive behavioral analysis.</p>
<h2>Conclusion</h2>
<p>Client-side CAPTCHA role in modern web security continues to expand as developers seek frictionless yet effective bot-detection methods. By understanding its strengths and limitations, businesses can implement client-side CAPTCHA solutions that enhance both protection and user experience.</p>
<p>The post <a href="https://jharaphula.com/simple-javascript-captcha-example/">Simple JavaScript Captcha Example (Client Side Captcha)</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://jharaphula.com/simple-javascript-captcha-example/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			<media:content url="https://jharaphula.com/wp-content/uploads/2016/05/twitter_capcha.png" medium="image" />
	</item>
		<item>
		<title>How to implement AJAX using JavaScript? &#8211; AJAX Examples</title>
		<link>https://jharaphula.com/javascript-ajax-example/</link>
					<comments>https://jharaphula.com/javascript-ajax-example/#respond</comments>
		
		<dc:creator><![CDATA[Nibedita Panda]]></dc:creator>
		<pubDate>Sat, 14 May 2016 06:46:44 +0000</pubDate>
				<category><![CDATA[JS Functions & Examples]]></category>
		<category><![CDATA[Ajax Call]]></category>
		<category><![CDATA[AJAX using JavaScript]]></category>
		<category><![CDATA[How to implement AJAX?]]></category>
		<category><![CDATA[JavaScript AJAX Example]]></category>
		<guid isPermaLink="false">http://box.jharaphula.com/?p=861</guid>

					<description><![CDATA[<img width="300" height="200" src="https://jharaphula.com/wp-content/uploads/2016/05/ajax-in-js-300x200.png" class="webfeedsFeaturedVisual wp-post-image" alt="How to implement AJAX using JavaScript? - JavaScript AJAX Example" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/ajax-in-js-300x200.png 300w, https://jharaphula.com/wp-content/uploads/2016/05/ajax-in-js-182x120.png 182w, https://jharaphula.com/wp-content/uploads/2016/05/ajax-in-js-106x70.png 106w, https://jharaphula.com/wp-content/uploads/2016/05/ajax-in-js.png 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>As we know Ajax (Asynchronous JavaScript and XML) is a technology to implement partial loading. The idea is in place of sending request to load...</p>
<p>The post <a href="https://jharaphula.com/javascript-ajax-example/">How to implement AJAX using JavaScript? &#8211; AJAX Examples</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></description>
										<content:encoded><![CDATA[<img width="300" height="200" src="https://jharaphula.com/wp-content/uploads/2016/05/ajax-in-js-300x200.png" class="webfeedsFeaturedVisual wp-post-image" alt="How to implement AJAX using JavaScript? - JavaScript AJAX Example" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/ajax-in-js-300x200.png 300w, https://jharaphula.com/wp-content/uploads/2016/05/ajax-in-js-182x120.png 182w, https://jharaphula.com/wp-content/uploads/2016/05/ajax-in-js-106x70.png 106w, https://jharaphula.com/wp-content/uploads/2016/05/ajax-in-js.png 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>As we know Ajax (<strong>Asynchronous JavaScript and XML</strong>) is a <strong>technology to implement partial loading</strong>. The idea is in place of sending request to load whole the page from server we can fetch the line of changes we required in our page. This process helps to <a href="https://jharaphula.com/on-page-optimization-bounce-rate/" target="_blank" rel="noopener noreferrer">reduces network load</a>. The result we have better performance &amp; faster web.</p>
<h2>Understanding AJAX: The Foundation of Asynchronous Web Requests</h2>
<h3>What is AJAX?</h3>
<p>AJAX allows web pages to send and receive data in the background without reloading. Think of it as a way to fetch data without stopping everything else. Unlike old websites that load entire pages, AJAX updates parts of a page on the fly. It uses JavaScript to send requests and jQuery or vanilla JavaScript to process responses. XML was once popular for data transfer, but JSON is now king because it&#8217;s easier to use and lighter.</p>
<h3>How AJAX Works in Web Development?</h3>
<p>The process begins when a user does something—like clicking a button or scrolling. JavaScript then creates a request to the server. This request runs in the background, so the user doesn’t see the page refresh. When the server responds, JavaScript updates only the affected parts of the website. Here&#8217;s a simple visual flow:</p>
<p>User interacts with the page.<br />
JavaScript sends an AJAX request.<br />
Server processes and responds.<br />
JavaScript updates the web page without reloading.</p>
<p>Modern browsers support AJAX smoothly, making it reliable for web apps, mobile sites, and more.</p>
<h2>Benefits of Using AJAX</h2>
<p>Using AJAX offers many advantages:</p>
<p>Real-time updates keep users engaged.<br />
Less server load since only data, not entire pages, are transferred.<br />
Faster, more responsive websites improve user satisfaction.<br />
Reduced bandwidth consumption means less data usage for users.</p>
<p>In short, AJAX makes websites feel more like apps — fast, interactive, and user-friendly.</p>
<p>Today we have many ready-made libraries are available to make an Ajax Call easier &amp; programmer friendly. But as a core engineer it is required to know what is the <strong>basics of an Ajax Call</strong>. That&#8217;s why I am presenting this topic here. It is also <strong>very useful for fresher</strong>.</p>
<p>In the below example I am implementing JavaScript AJAX Example, no third-party libraries I used here. Ajax-Demo.html is the file where from I am doing an Ajax Call to Demo-Ajax.txt file to fetch its text contents. To do so on button click I am calling a function demoAjaxCall(). In side this function I <strong>created an instance xmlhttpObj for the XMLHttpRequest object</strong>. Then using open method I am instructing xmlhttpObj to locate the demo-ajax.txt file. Here in xmlhttpObj.open I am using get method. Finally using send method I am sending request to the server.</p>
<p>Later in xmlhttpObj.onreadystatechange() I am checking readyState &amp; status. If readyState is equal to 4 &amp; status is equal to 200, it mean my Ajax Call is successful. To display the response from Ajax Call here I used xmlhttpObj.responseText to the inner html of the div demoAjax.</p>
<p><strong>JavaScript-AJAX-Example.html</strong></p>
<pre class="brush: xml; title: ; notranslate">&lt;!DOCTYPE html&gt;
&lt;html&gt;
&lt;head&gt;
&lt;title&gt;JavaScript AJAX Example&lt;/title&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
function demoAjaxCall()
{
var xmlhttpObj;
if (window.XMLHttpRequest)
{
/* Compatiable for IE7+, Mozilla Firefox, Google Chrome, Opera &amp;amp; Safari */
xmlhttpObj=new XMLHttpRequest();
}

xmlhttpObj.onreadystatechange=function()
{
if (xmlhttpObj.readyState==4 &amp;amp;&amp;amp; xmlhttpObj.status==200)
{
document.getElementById(&quot;demoAjax&quot;).innerHTML='&lt;h2&gt;' + xmlhttpObj.responseText + '&lt;/h2&gt;';
}
}
xmlhttpObj.open(&quot;GET&quot;,&quot;demo-ajax.txt&quot;,true);
xmlhttpObj.send();
}
&lt;/script&gt;
&lt;/head&gt;
&lt;body&gt;

&lt;div id=&quot;demoAjax&quot;&gt;&lt;h2&gt;On below button click this label will show you text from demo-ajax.txt using Ajax Call&lt;/h2&gt;&lt;/div&gt;
&lt;button type=&quot;button&quot; onclick=&quot;demoAjaxCall()&quot;&gt;Trigger an Ajax Call&lt;/button&gt;

&lt;/body&gt;
&lt;/html&gt;</pre>
<p><strong>Demo-Ajax.txt</strong></p>
<pre class="brush: xml; title: ; notranslate">This is the text from demo-ajax.txt file. Your Ajax Call is Successful.</pre>
<h2>Conclusion</h2>
<p>AJAX is a game changer for modern web development. It makes websites faster, more responsive, and more interactive. Whether you&#8217;re building simple features like live search or complex real-time systems, understanding AJAX is essential. Start experimenting with the Fetch API and practice integrating AJAX into your projects. As web technology advances, combining AJAX techniques with WebSockets and serverless solutions will unlock even bigger possibilities for dynamic websites. Keep pushing your skills and create websites users love to use.</p>
<p>The post <a href="https://jharaphula.com/javascript-ajax-example/">How to implement AJAX using JavaScript? &#8211; AJAX Examples</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://jharaphula.com/javascript-ajax-example/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			<media:content url="https://jharaphula.com/wp-content/uploads/2016/05/ajax-in-js.png" medium="image" />
	</item>
		<item>
		<title>Example of ng-repeat Conditional Filter to bind data in AngularJS</title>
		<link>https://jharaphula.com/ng-repeat-conditional-filter-angularjs/</link>
					<comments>https://jharaphula.com/ng-repeat-conditional-filter-angularjs/#respond</comments>
		
		<dc:creator><![CDATA[Nibedita Panda]]></dc:creator>
		<pubDate>Sat, 14 May 2016 05:58:55 +0000</pubDate>
				<category><![CDATA[AngularJS with Examples]]></category>
		<category><![CDATA[bind data in AngularJS]]></category>
		<category><![CDATA[Conditional Filter to bind data]]></category>
		<category><![CDATA[Example of ng-repeat]]></category>
		<category><![CDATA[ng-repeat Conditional Filter]]></category>
		<guid isPermaLink="false">http://box.jharaphula.com/?p=828</guid>

					<description><![CDATA[<img width="300" height="186" src="https://jharaphula.com/wp-content/uploads/2016/05/ng-repeat-in-angularjs-300x186.png" class="webfeedsFeaturedVisual wp-post-image" alt="Example of ng-repeat Conditional Filter to bind data in AngularJS" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/ng-repeat-in-angularjs-300x186.png 300w, https://jharaphula.com/wp-content/uploads/2016/05/ng-repeat-in-angularjs.png 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>In AngularJS ng-repeat is a frequently used Directive. Like a For loop this Directive works. I mean if you are looking to bind list of...</p>
<p>The post <a href="https://jharaphula.com/ng-repeat-conditional-filter-angularjs/">Example of ng-repeat Conditional Filter to bind data in AngularJS</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></description>
										<content:encoded><![CDATA[<img width="300" height="186" src="https://jharaphula.com/wp-content/uploads/2016/05/ng-repeat-in-angularjs-300x186.png" class="webfeedsFeaturedVisual wp-post-image" alt="Example of ng-repeat Conditional Filter to bind data in AngularJS" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/ng-repeat-in-angularjs-300x186.png 300w, https://jharaphula.com/wp-content/uploads/2016/05/ng-repeat-in-angularjs.png 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>In AngularJS ng-repeat is a frequently used Directive. Like a For loop this Directive works. I mean if you are looking to bind list of records to a HTML Control this directive helps. You must noticed in many case during we binding data using iterations, many times we required to Filter them Conditionally. In such case how we can implement ng-repeat Conditional Filter we are showing this demo in below example.</p>
<p>Here I Created a Customer list inside my controller CustomersCon. <strong>$scope.Customers comes with Name &amp; Status fields. Name is the name of Customer &amp; Status is it&#8217;s state Active or Inactive</strong>. In HTML body I am showing separately Active &amp; Inactive Customers list using ng-repeat directive. To Filter both these status type (Active &amp; Inactive) separately here I used ng-show &amp; ng-hide <a href="https://jharaphula.com/restrict-option-custom-directive/" target="_blank" rel="noopener noreferrer">directives from AngularJS</a>.</p>
<p>For Active customers list here inside ng-repeat I used ng-show=&#8221;Customer.Status==&#8217;Active'&#8221;. <strong>Similarly for inactive Customers list I used ng-hide=&#8221;Customer.Status==&#8217;Active'&#8221;</strong>. Also the same Filter can be done using ng-if. ng-show, ng-hide or ng-if can be called Conditional Filters in AngularJS. All the three ng-show, ng-hide &amp; ng-if accepts boolean values as True or False. If the value is True it will execute the statement else not. To run this demo copy the below codes to a Notepad file &amp; Save it as a HTML file. Then Open the File in your Browser.</p>
<h3>ng-repeat Conditional Filter Demo App</h3>
<pre class="brush: xml; title: ; notranslate">&lt;html ng-app=&quot;CustomersMod&quot;&gt;
&lt;head&gt;
&lt;title&gt;Example of using conditional filter with ng-repeat?&lt;/title&gt;
&lt;script src=&quot;https://ajax.googleapis.com/ajax/libs/angularjs/1.0.1/angular.min.js&quot;&gt;&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
var CustomersMod = angular.module('CustomersMod', []);
CustomersMod.controller('CustomersCon', function ($scope) {
$scope.Customers = [
{'Name': 'Airtel', 'Status': 'Active'},
{'Name': 'Vodafone', 'Status': 'inActive'},
{'Name': 'Aircel', 'Status': 'Active'},
{'Name': 'Microsoft Corporation', 'Status': 'Active'},
{'Name': 'Covansys', 'Status': 'inActive'},
{'Name': 'Infosys', 'Status': 'Active'},
{'Name': 'Intel', 'Status': 'Active'},
{'Name': 'Capgemini', 'Status': 'inActive'},
{'Name': 'Dell', 'Status': 'Active'},
{'Name': 'Intex', 'Status': 'Active'},
{'Name': 'Samsung', 'Status': 'inActive'},
{'Name': 'Nokia', 'Status': 'inActive'},
{'Name': 'Motorola', 'Status': 'Active'}
];
});
&lt;/script&gt;
&lt;/head&gt;
&lt;body ng-controller=&quot;CustomersCon&quot;&gt;
List of Customers
&lt;hr /&gt;
&lt;b&gt;Active...&lt;/b&gt;
&lt;ul&gt;
&lt;li ng-repeat=&quot;Customer in Customers&quot; ng-show=&quot;Customer.Status=='Active'&quot;&gt;{{Customer.Name}}&lt;/li&gt;
&lt;/ul&gt;
&lt;b&gt;inActive...&lt;/b&gt;
&lt;ul&gt;
&lt;li ng-repeat=&quot;Customer in Customers&quot; ng-hide=&quot;Customer.Status=='Active'&quot;&gt;{{Customer.Name}}&lt;/li&gt;
&lt;/ul&gt;
&lt;/body&gt;
&lt;/html&gt;</pre>
<p>The post <a href="https://jharaphula.com/ng-repeat-conditional-filter-angularjs/">Example of ng-repeat Conditional Filter to bind data in AngularJS</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://jharaphula.com/ng-repeat-conditional-filter-angularjs/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			<media:content url="https://jharaphula.com/wp-content/uploads/2016/05/ng-repeat-in-angularjs.png" medium="image" />
	</item>
		<item>
		<title>Using CSS how to disable selection on double Click</title>
		<link>https://jharaphula.com/css-disable-selection-double-click/</link>
					<comments>https://jharaphula.com/css-disable-selection-double-click/#respond</comments>
		
		<dc:creator><![CDATA[Nibedita Panda]]></dc:creator>
		<pubDate>Sat, 14 May 2016 05:49:15 +0000</pubDate>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[dashboard designing]]></category>
		<category><![CDATA[disable selection]]></category>
		<category><![CDATA[Selection on Double Click]]></category>
		<guid isPermaLink="false">http://box.jharaphula.com/?p=817</guid>

					<description><![CDATA[<img width="300" height="199" src="https://jharaphula.com/wp-content/uploads/2016/05/highlight-text-300x199.png" class="webfeedsFeaturedVisual wp-post-image" alt="Using CSS how to disable selection on double Click" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/highlight-text-300x199.png 300w, https://jharaphula.com/wp-content/uploads/2016/05/highlight-text-182x120.png 182w, https://jharaphula.com/wp-content/uploads/2016/05/highlight-text-106x70.png 106w, https://jharaphula.com/wp-content/uploads/2016/05/highlight-text.png 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>Recently during a portal dashboard designing I fetched this issue. In dashboard I have insights. On double click of insights heading I need to show...</p>
<p>The post <a href="https://jharaphula.com/css-disable-selection-double-click/">Using CSS how to disable selection on double Click</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></description>
										<content:encoded><![CDATA[<img width="300" height="199" src="https://jharaphula.com/wp-content/uploads/2016/05/highlight-text-300x199.png" class="webfeedsFeaturedVisual wp-post-image" alt="Using CSS how to disable selection on double Click" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/highlight-text-300x199.png 300w, https://jharaphula.com/wp-content/uploads/2016/05/highlight-text-182x120.png 182w, https://jharaphula.com/wp-content/uploads/2016/05/highlight-text-106x70.png 106w, https://jharaphula.com/wp-content/uploads/2016/05/highlight-text.png 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>Recently during a portal dashboard designing I fetched this issue. In dashboard I have insights. On double click of insights heading I need to show insight details. While I implemented this using Jquery I found the problem during double click to expand the insights the heading part text of insights getting highlighted as a selected element.</p>
<p>To prevent this I did searched many solutions in Google. But finally to look into performance I decided to implement <a href="https://jharaphula.com/cross-browser-compatibility-css-hacks/" target="_blank" rel="noopener noreferrer">CSS hack</a>. In the below example I am presenting the same situation what I have. Here I have two div&#8217;s with id header &amp; description. On double click of header div I am expanding description div using show method of Jquery. But the problem is, while I double click on header div the last element of header div text label is getting highlighted. I don&#8217;t want this. I need only expand of description div.</p>
<p>This can be done using Jquery but to maintain performance of the app it is better to use CSS hacks in place of Jquery scripting. It improves performance. Here ondouble click event of header div I am <strong>showing the description div using Jquery show method</strong>. To prevent highlight of header div text in double click event of header div I simply added a CSS class &#8220;no-selection&#8221; to my header div. The class no-selection I implemented here is <strong>Compatible to FireFox (FF), Google Chrome &amp; Internet Explorer 10 or above</strong>.</p>
<p>To run the below example just copy the following code to a Notepad file &amp; save it as a html file. Run this to see the demo.</p>
<h3>Using CSS how to disable selection &#8211; Demo App</h3>
<pre class="brush: xml; title: ; notranslate">&lt;!Doctype html&gt;
&lt;html&gt;
&lt;head&gt;
&lt;title&gt;How to disable selection on double Click?&lt;/title&gt;
&lt;script src=&quot;http://code.jquery.com/jquery-1.10.2.js&quot;&gt;&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
$(document).ready(function() {
/* Initially hiding the description div */
$('#description').hide();
/* On double click event of header div expanding description div */
$('#header').dblclick(function () {
$('#description').show(&quot;slow&quot;);
});
});
&lt;/script&gt;
&lt;style type=&quot;text/css&quot;&gt;
.no-selection {
-webkit-user-select: none; /* for safari &amp; chrome browsers */
-moz-user-select: none; /* for mozilla browsers */
-khtml-user-select: none; /* for konqueror browsers */
-ms-user-select: none; /* for IE10+ */
}
&lt;/style&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;div id=&quot;header&quot; class=&quot;no-selection&quot;&gt;Double Click Expand&lt;/div&gt;
&lt;div id=&quot;description&quot;&gt;In this demo we are showing this content in the double click event of header div.&lt;/div&gt;
&lt;/body&gt;
&lt;/html&gt;</pre>
<p>The post <a href="https://jharaphula.com/css-disable-selection-double-click/">Using CSS how to disable selection on double Click</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://jharaphula.com/css-disable-selection-double-click/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			<media:content url="https://jharaphula.com/wp-content/uploads/2016/05/highlight-text.png" medium="image" />
	</item>
		<item>
		<title>How to Add Font-Awesome Icons to SVG based D3.js Graphs?</title>
		<link>https://jharaphula.com/how-to-add-font-awesome-icons-to-svg-based-d3-js-graphs/</link>
					<comments>https://jharaphula.com/how-to-add-font-awesome-icons-to-svg-based-d3-js-graphs/#respond</comments>
		
		<dc:creator><![CDATA[Biswabhusan Panda]]></dc:creator>
		<pubDate>Fri, 13 May 2016 19:58:04 +0000</pubDate>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Add Font-Awesome Icons]]></category>
		<category><![CDATA[CDN links]]></category>
		<category><![CDATA[D3.js]]></category>
		<category><![CDATA[D3.js Graphs]]></category>
		<category><![CDATA[SVG based D3.js Graphs]]></category>
		<guid isPermaLink="false">http://box.jharaphula.com/?p=808</guid>

					<description><![CDATA[<img width="300" height="201" src="https://jharaphula.com/wp-content/uploads/2016/05/d3js-300x201.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="How to add font-awesome icons to SVG based D3.js Graphs?" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/d3js-300x201.jpg 300w, https://jharaphula.com/wp-content/uploads/2016/05/d3js-106x70.jpg 106w, https://jharaphula.com/wp-content/uploads/2016/05/d3js.jpg 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>Font-Awesome is a popular fonts on-line. Including font styles font-awesome provides various salable vector icons. These icons are easily customization. We can add any colors...</p>
<p>The post <a href="https://jharaphula.com/how-to-add-font-awesome-icons-to-svg-based-d3-js-graphs/">How to Add Font-Awesome Icons to SVG based D3.js Graphs?</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></description>
										<content:encoded><![CDATA[<img width="300" height="201" src="https://jharaphula.com/wp-content/uploads/2016/05/d3js-300x201.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="How to add font-awesome icons to SVG based D3.js Graphs?" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/d3js-300x201.jpg 300w, https://jharaphula.com/wp-content/uploads/2016/05/d3js-106x70.jpg 106w, https://jharaphula.com/wp-content/uploads/2016/05/d3js.jpg 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>Font-Awesome is a popular fonts on-line. Including font styles font-awesome provides various salable vector icons. These icons are easily customization. We can add any colors &amp; size to these icons. Performance wise it is more better to use font-family based icons rather then an icon image file. In the below example I am showing the trick How to use font-awesome icon in a SVG graph.</p>
<p>In this example I referred the <strong>CDN link of font-awesome.css</strong>. Using D3.js here I am appending SVG to my div with id &#8220;d3svg&#8221;. <strong>To add font-awesome user icon (fa-user) in SVG we need to append foreignObject</strong> to our svg element. Here I did this using &#8220;<code>svg.append('svg:foreignObject')</code>&#8220;. To set the attributes to this foreignObject I used .attr(key, value). To implement an icon <code>&lt;i&gt; tag</code> is must required. In this cause I added <code>.html('&lt;i class="fa fa-user"&gt;&lt;/i&gt;');</code>.</p>
<p>fa-user is the class for User icon. To implement fa-user you need to write &#8220;fa fa-user&#8221;. Here fa acts like the parent class. To run the below example you just need to copy the codes to a notepad file &amp; save it as <a href="https://jharaphula.com/list-of-html5-new-tags/" target="_blank" rel="noopener noreferrer">html</a>. Open it you can see the demo.</p>
<h2>How to add Font-Awesome Icons?</h2>
<pre class="brush: xml; title: ; notranslate">
&lt;title&gt;How to add font-awesome icons to SVG?&lt;/title&gt;
&lt;script src=&quot;http://d3js.org/d3.v3.min.js&quot;&gt;&lt;/script&gt;
&lt;link rel=&quot;stylesheet&quot; href=&quot;http://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css&quot;&gt;
&lt;div id=&quot;d3svg&quot;&gt;&lt;/div&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
/* Appening svg to topology Div */
var svg = d3.select(&quot;#d3svg&quot;)
.append(&quot;svg&quot;)
.attr(&quot;width&quot;, &quot;100%&quot;)
.attr(&quot;height&quot;, &quot;500px&quot;)
&lt;wp-p&gt;&lt;span style=&quot;color:brown&quot;&gt;&lt;code&gt;svg.append('svg:foreignObject')
.attr(&quot;width&quot;, 50)
.attr(&quot;height&quot;, 50)
.append(&quot;xhtml:body&quot;)
.html('&lt;i class=&quot;fa fa-user&quot;&gt;&lt;/i&gt;');
&lt;/script&gt;
</pre>
<p>The post <a href="https://jharaphula.com/how-to-add-font-awesome-icons-to-svg-based-d3-js-graphs/">How to Add Font-Awesome Icons to SVG based D3.js Graphs?</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://jharaphula.com/how-to-add-font-awesome-icons-to-svg-based-d3-js-graphs/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			<media:content url="https://jharaphula.com/wp-content/uploads/2016/05/d3js.jpg" medium="image" />
	</item>
		<item>
		<title>How to draw Network Topology graph using D3.js?</title>
		<link>https://jharaphula.com/how-to-draw-network-topology-graph-using-d3-js/</link>
					<comments>https://jharaphula.com/how-to-draw-network-topology-graph-using-d3-js/#respond</comments>
		
		<dc:creator><![CDATA[Biswabhusan Panda]]></dc:creator>
		<pubDate>Fri, 13 May 2016 19:35:36 +0000</pubDate>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[D3.js]]></category>
		<category><![CDATA[draw Topology view]]></category>
		<category><![CDATA[Network Topology graph]]></category>
		<category><![CDATA[SVG]]></category>
		<category><![CDATA[Topology]]></category>
		<guid isPermaLink="false">http://box.jharaphula.com/?p=788</guid>

					<description><![CDATA[<img width="300" height="191" src="https://jharaphula.com/wp-content/uploads/2016/05/network-topology-300x191.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="How to draw Network Topology graph using D3" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/network-topology-300x191.jpg 300w, https://jharaphula.com/wp-content/uploads/2016/05/network-topology.jpg 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>During Network related web application development some time we required to draw Topology view. Recently I worked for the Customer Vodafone to design their mobile...</p>
<p>The post <a href="https://jharaphula.com/how-to-draw-network-topology-graph-using-d3-js/">How to draw Network Topology graph using D3.js?</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></description>
										<content:encoded><![CDATA[<img width="300" height="191" src="https://jharaphula.com/wp-content/uploads/2016/05/network-topology-300x191.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="How to draw Network Topology graph using D3" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/network-topology-300x191.jpg 300w, https://jharaphula.com/wp-content/uploads/2016/05/network-topology.jpg 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>During Network related web application development some time we required to draw Topology view. Recently I worked for the <strong>Customer Vodafone to design their mobile tracking system</strong>. Here I got an opportunity to create node &amp; traffic related topology view. To achieve this in the app I used D3.js. <a href="http://d3js.org/" target="_blank" rel="noopener noreferrer nofollow">D3</a>.js is a popular JavaScript library to <strong>draw graphs using SVG</strong>. It accepts JSON formatted data. Due to the customer database is with <a href="https://jharaphula.com/how-to-install-run-mongodb-in-windows/" target="_blank" rel="noopener noreferrer">MongoDB</a> I preferred to use D3.js to draw their Network Topology.</p>
<p>In the below example I am not using any database to fetch the data from server. To show you how to create a Network Topology graph using D3.js here I declared some <a href="https://jharaphula.com/database-design-for-beginners/" rel="noopener noreferrer" target="_blank">demo data</a> in data variable. Which is in JSON format. To start with here I referred D3.js CDN link in head part of the HTML. In body part I have a <strong>div with id &#8220;topology&#8221;</strong>. Using D3.js <strong>select method I am appending SVG to the topology div</strong>. Width &amp; Height are the parameters of the SVG. In this example not only I implemented topology view but also I <strong>added features like drag, zoom &amp; tooltip</strong>.</p>
<p><img loading="lazy" decoding="async" src="https://jharaphula.com/wp-content/uploads/2016/05/topology.png" alt="topology" width="750" height="366" class="alignnone size-full wp-image-2992" srcset="https://jharaphula.com/wp-content/uploads/2016/05/topology.png 750w, https://jharaphula.com/wp-content/uploads/2016/05/topology-300x146.png 300w" sizes="auto, (max-width: 750px) 100vw, 750px" /></p>
<p>To run this sample application copy the following code to a Notepad file &amp; save it as html. Then open the HTML file. Make sure before run the file you are connected to internet. For nodes images here I added imageByType. You need to update image paths refer to your images.</p>
<h3>Network Topology graph using D3.js</h3>
<pre class="brush: xml; title: ; notranslate">&lt;!DOCTYPE html&gt;
&lt;html&gt;
&lt;head&gt;
&lt;title&gt;Network Topology graph using D3.js&lt;/title&gt;
&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html;charset=utf-8&quot;/&gt;
&lt;script src=&quot;https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.3/d3.min.js&quot;&gt;&lt;/script&gt;
&lt;style type=&quot;text/css&quot;&gt;
.online-color {
stroke: #01ACC6;
stroke-width: 1px;
stroke-opacity: 1.0;
}
&lt;/style&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;div id=&quot;topology&quot;&gt;&lt;/div&gt;
&lt;script type=&quot;text/javascript&quot;&gt;

var data = {
&quot;status&quot;: 200,
&quot;content&quot;: {
&quot;directed&quot;: false,
&quot;links&quot;: [
{
&quot;status&quot;: &quot;online&quot;,
&quot;source&quot;: 1,
&quot;target&quot;: 2
},
{
&quot;status&quot;: &quot;online&quot;,
&quot;source&quot;: 2,
&quot;target&quot;: 5
},
{
&quot;status&quot;: &quot;online&quot;,
&quot;source&quot;: 3,
&quot;target&quot;: 4
},
{
&quot;status&quot;: &quot;online&quot;,
&quot;source&quot;: 3,
&quot;target&quot;: 6
}
],
&quot;multigraph&quot;: false,
&quot;graph&quot;: [],
&quot;nodes&quot;: [
{
&quot;status&quot;: &quot;online&quot;,
&quot;forwarding_policy&quot;: &quot;0&quot;,
&quot;type&quot;: &quot;switch&quot;,
&quot;id&quot;: &quot;00:00:00:00:00:00:00:01&quot;,
&quot;type_of_switch&quot;: &quot;OF&quot;
},
{
&quot;status&quot;: &quot;offline&quot;,
&quot;_id&quot;: &quot;54af98aea1234b06bbac8d5d&quot;,
&quot;type&quot;: &quot;host&quot;,
&quot;id&quot;: &quot;10.0.0.4&quot;
},
{
&quot;status&quot;: &quot;online&quot;,
&quot;forwarding_policy&quot;: &quot;0&quot;,
&quot;type&quot;: &quot;switch&quot;,
&quot;id&quot;: &quot;00:00:00:00:00:00:00:03&quot;,
&quot;type_of_switch&quot;: &quot;OF&quot;
},
{
&quot;status&quot;: &quot;online&quot;,
&quot;forwarding_policy&quot;: &quot;0&quot;,
&quot;type&quot;: &quot;switch&quot;,
&quot;id&quot;: &quot;00:00:00:00:00:00:00:02&quot;,
&quot;type_of_switch&quot;: &quot;OF&quot;
},
{
&quot;status&quot;: &quot;offline&quot;,
&quot;_id&quot;: &quot;54af98aea1234b06bbac8d5e&quot;,
&quot;type&quot;: &quot;host&quot;,
&quot;id&quot;: &quot;10.0.0.1&quot;
},
{
&quot;status&quot;: &quot;offline&quot;,
&quot;_id&quot;: &quot;54af98aea1234b06bbac8d5f&quot;,
&quot;type&quot;: &quot;host&quot;,
&quot;id&quot;: &quot;10.0.0.3&quot;
},
{
&quot;status&quot;: &quot;offline&quot;,
&quot;_id&quot;: &quot;54af98aea1234b06bbac8d60&quot;,
&quot;type&quot;: &quot;host&quot;,
&quot;id&quot;: &quot;10.0.0.2&quot;
}
],
&quot;last_seen&quot;: &quot;1421832648.22&quot;
},
&quot;message&quot;: &quot;success&quot;
};

var width = 1013,
height = 578,
linkedByIndex = {},
node=null,
link=null,
force=null,
nodelinks = null,
sourceStatus=&quot;&quot;,
imageByType = {
&quot;host_online&quot; : &quot;images/ap.png&quot;,
&quot;switch_online&quot; : &quot;images/laptop.png&quot;,
&quot;host_offline&quot; : &quot;images/ipad.png&quot;,
&quot;switch_offline&quot; : &quot;images/ipad.png&quot;
};

function drawNetworkTopology(data) {
force = d3.layout.force()
.nodes(data.content.nodes)
.links(data.content.links)
.linkDistance(100)
.charge(-600)
.size([width, height])
.start();

//add zoom behavior to nodes
var zoom = d3.behavior.zoom()
.scaleExtent([1, 3])
.on(&quot;zoom&quot;, zoomed);

//add drag behavior to nodes
var drag = d3.behavior.drag()
.on(&quot;dragstart&quot;, dragstarted)
.on(&quot;drag&quot;, dragged)
.on(&quot;dragend&quot;, dragended);

//create svg element using d3
var svg = d3.select(&quot;div#topology&quot;).append(&quot;svg&quot;)
.attr(&quot;viewBox&quot;, &quot;0 0 &quot; + width + &quot; &quot; + height )
.attr(&quot;preserveAspectRatio&quot;, &quot;xMidYMid meet&quot;)
.call(zoom);

//append container lable to bounding box
svg.append(&quot;text&quot;)
.text(&quot;&quot;)
.attr({
'x' : width-70,
'y' : height-5,
&quot;text-anchor&quot; : &quot;middle&quot;,
});

//add bounding box
svg.append(&quot;rect&quot;)
.attr({
&quot;width&quot; : width,
&quot;height&quot; : height,
})
.style({
&quot;fill&quot; : &quot;none&quot;,
});

//add container
var containerGrp = svg.append(&quot;g&quot;);

//add group of all lines
link = containerGrp
.selectAll(&quot;line&quot;)
.data(data.content.links)
.enter().append(&quot;line&quot;)
.attr({
&quot;class&quot; : function (data) {
return data.status+&quot;-color&quot;;
}
});

//add group of all nodes
node = containerGrp
.selectAll(&quot;.node&quot;)
.data(data.content.nodes)
.enter().append(&quot;g&quot;)
.attr({
&quot;class&quot; : &quot;nodes&quot;,
&quot;cx&quot; : function (d) {
return d.x;
},
&quot;cy&quot; : function (d) {
return d.y;
},
})
.call(drag);

//add image to node dynamically
node.append(&quot;image&quot;)
.attr({
&quot;xlink:href&quot; : function (d) {
if(d.status === ('online').toLocaleLowerCase() &amp;&amp; d.forwarding_policy == 1)
return &quot;images/proactive_forward.png&quot;;
else
return imageByType[d.type+&quot;_&quot;+d.status];
},
&quot;x&quot; : -15,
&quot;y&quot; : -15,
&quot;width&quot; : 30,
&quot;height&quot; : 30,
})
.on(&quot;click&quot;,function(d){
if (d3.event.defaultPrevented) return; // click suppressed
})
.on(&quot;mouseover&quot;, mouseOverFunction)
.on(&quot;mouseout&quot;, mouseOutFunction);
//add labeled text to each node
node.append(&quot;text&quot;)
.attr({
&quot;y&quot; : 25,
&quot;text-anchor&quot; : &quot;middle&quot;
})
.text(function (d) {
return d.id;
});

//tick event of network node
force
.on(&quot;tick&quot;, tick);

//map of all connected nodes index
data.content.links.forEach(function (d) {
linkedByIndex[d.source.index + &quot;,&quot; + d.target.index] = true;
});

var tooltip = d3.select(&quot;body&quot;).append(&quot;div&quot;)
.attr(&quot;class&quot;, &quot;tooltip&quot;)
.style(&quot;opacity&quot;, 0);
/**
* Event - mouseover for network nodes
* @param data
*/
function mouseOverFunction(d, i) {
if (d3.event.defaultPrevented) return;
tooltip.transition().duration(200).style(&quot;opacity&quot;, 1);
tooltip.html(&quot;&lt;B&gt;Properties&lt;/B&gt;&lt;BR/&gt;&lt;b&gt;ID:&lt;/b&gt;&quot; + data.content.nodes[i].id + &quot;&lt;BR/&gt;&lt;b&gt;Type:&lt;/b&gt;&quot; + data.content.nodes[i].type+&quot;&lt;BR/&gt;&lt;b&gt;Status:&lt;/b&gt;&quot; + data.content.nodes[i].status)
.style({
&quot;left&quot; : (d3.event.pageX - 130) + &quot;px&quot;,
&quot;top&quot; : (d3.event.pageY + 10) + &quot;px&quot;
});
}

/**
* Event-mouseout for network nodes
*/
function mouseOutFunction() {
if (d3.event.defaultPrevented) return;
tooltip.transition().duration(500).style(&quot;opacity&quot;, 0);
}
/**
* check for nodes connection
* @param a
* @param b
* @returns {Boolean}
*/
function isConnected(a, b) {
return isConnectedAsTarget(a, b) || isConnectedAsSource(a, b) || a.index == b.index;
}

/**
* check for node connection as soure
* @param a
* @param b
* @returns{boolean}
*/
function isConnectedAsSource(a, b) {
return linkedByIndex[a.index + &quot;,&quot; + b.index];
}

/**
* check for node connection as target
* @param a
* @param b
* @returns {boolean}
*/
function isConnectedAsTarget(a, b) {
return linkedByIndex[b.index + &quot;,&quot; + a.index];
}

/**
* This method can be used in conjunction with force.start() and force.stop() to compute a static layout.
*/
function tick() {
node
.attr({
&quot;cx&quot; : function (d) {
return d.x = Math.max(15, Math.min(width - 15, d.x));
},
&quot;cy&quot; : function (d) {
return d.y = Math.max(15, Math.min(height - 15, d.y));
},
&quot;transform&quot; : function (d) {
return &quot;translate(&quot; + d.x + &quot;,&quot; + d.y + &quot;)&quot;;
}
});
link
.attr({
&quot;x1&quot; : function (d) {
return d.source.x;
},
&quot;y1&quot; : function (d) {
return d.source.y;
},
&quot;x2&quot; : function (d) {
return d.target.x;
},
&quot;y2&quot; : function (d) {
return d.target.y;
},
});
}

/**
* zoomed function
*/
function zoomed() {
var e = d3.event,
tx = Math.min(0, Math.max(e.translate[0], width - width * e.scale)),
ty = Math.min(0, Math.max(e.translate[1], height - height * e.scale));
zoom.translate([tx, ty]);
containerGrp.attr(&quot;transform&quot;, [&quot;translate(&quot; + [tx, ty] + &quot;)&quot;, &quot;scale(&quot; + e.scale + &quot;)&quot;].join(&quot; &quot;));
}

&lt;span style=&quot;color:brown&quot;&gt;&lt;code&gt;function dragstarted(d, i) {
force.stop(); // stops the force auto positioning before you start dragging
}

function dragged(d, i) {
d.px += d3.event.dx;
d.py += d3.event.dy;
d.x += d3.event.dx;
d.y += d3.event.dy;
tick(); // this is the key to make it work together with updating both px,py,x,y on d !
}

function dragended(d, i) {
d.fixed = true; // of course set the node to fixed so the force doesn't include the node in its auto positioning stuff
tick();
force.resume();
}
};// drawNetworkTopology() closed

drawNetworkTopology(data);

&lt;span style=&quot;color:brown&quot;&gt;
&lt;/body&gt;
&lt;/html&gt;</pre>
<h2>Types of Network Topologies</h2>
<p>Network topologies can be broadly categorized into physical and logical topologies. Physical topology refers to the actual layout of cables and devices, while logical topology defines how data travels through the network, regardless of physical connections.</p>
<p>1. Ring Topology In a ring topology, nodes are connected in a closed loop, where each device is linked to two others, forming a continuous pathway for data. While ring topology minimizes data collisions, a single node failure can break the entire loop.</p>
<p>2. Mesh topology provides redundant paths between nodes, ensuring high reliability. In a full mesh, every node connects to every other node, while in a partial mesh, only critical nodes have multiple connections. This topology is robust but expensive and complex to implement due to the high number of connections.</p>
<p>3. Tree topology combines characteristics of bus and star topologies. Nodes are arranged hierarchically, with branches connecting multiple star networks to a central bus backbone. This structure is scalable and supports large networks but becomes inefficient if the backbone fails.</p>
<p>4. Hybrid topology integrates two or more different topologies to leverage their advantages. For example, a network might combine star and ring topologies to balance cost, performance, and reliability. While flexible, hybrid topologies can be complex to design and maintain.</p>
<h2>Importance of Network Topology Graphs</h2>
<p>Network Design and Planning A well-designed topology graph helps network engineers optimize performance, minimize latency, and ensure efficient data routing. By visualizing connections, they can identify potential bottlenecks and plan for future expansions.</p>
<p>Troubleshooting and Maintenance When network issues arise, a topology graph serves as a diagnostic tool. Administrators can trace data paths, isolate faulty components, and implement fixes without disrupting the entire network.</p>
<p>Security and Compliance Understanding network topology is crucial for implementing security measures. By mapping connections, administrators can identify vulnerable points, enforce access controls, and comply with regulatory standards.</p>
<h2>Conclusion</h2>
<p>A network topology graph is an indispensable tool for visualizing and managing complex networks. By selecting the appropriate topology and maintaining accurate diagrams, organizations can enhance performance, security, and scalability. As technology progresses, adaptive and intelligent network designs will continue to shape the future of connectivity.</p>
<p>The post <a href="https://jharaphula.com/how-to-draw-network-topology-graph-using-d3-js/">How to draw Network Topology graph using D3.js?</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://jharaphula.com/how-to-draw-network-topology-graph-using-d3-js/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			<media:content url="https://jharaphula.com/wp-content/uploads/2016/05/network-topology.jpg" medium="image" />
	</item>
		<item>
		<title>How to Install and Configure MongoDB in Windows?</title>
		<link>https://jharaphula.com/how-to-install-run-mongodb-in-windows/</link>
					<comments>https://jharaphula.com/how-to-install-run-mongodb-in-windows/#respond</comments>
		
		<dc:creator><![CDATA[Biswabhusan Panda]]></dc:creator>
		<pubDate>Fri, 13 May 2016 19:13:30 +0000</pubDate>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Configure MongoDB]]></category>
		<category><![CDATA[Install and Configure]]></category>
		<category><![CDATA[MongoDB]]></category>
		<category><![CDATA[MongoDB in Windows]]></category>
		<category><![CDATA[MongoDB using Robomongo]]></category>
		<guid isPermaLink="false">http://box.jharaphula.com/?p=773</guid>

					<description><![CDATA[<img width="300" height="189" src="https://jharaphula.com/wp-content/uploads/2016/05/mongodb-installation-300x189.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="How to Install and Configure MongoDB in Windows?" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/mongodb-installation-300x189.jpg 300w, https://jharaphula.com/wp-content/uploads/2016/05/mongodb-installation.jpg 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>MongoDB is a no SQL Database. Like SQL here we don&#8217;t need to Create schema. MongoDB is a document based database. Table &#38; Relationship between...</p>
<p>The post <a href="https://jharaphula.com/how-to-install-run-mongodb-in-windows/">How to Install and Configure MongoDB in Windows?</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></description>
										<content:encoded><![CDATA[<img width="300" height="189" src="https://jharaphula.com/wp-content/uploads/2016/05/mongodb-installation-300x189.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="How to Install and Configure MongoDB in Windows?" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/mongodb-installation-300x189.jpg 300w, https://jharaphula.com/wp-content/uploads/2016/05/mongodb-installation.jpg 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>MongoDB is a no SQL Database. Like SQL here we don&#8217;t need to Create schema. MongoDB is a document based database. Table &amp; Relationship between tables are not available with MongoDB. MongoDB is also ignored Complex Joins. It is simple &amp; easy to use. MongoDB uses internal memory for storing. The cause MongoDB provides faster access to data. The format MongoDB follows to store data is JSON style documents. This <a href="https://jharaphula.com/database-basics-terminologies-definition/" rel="noopener noreferrer" target="_blank">database</a> mechanism is rich with Replication &amp; High Availability. To operate MongoDB it provides simple query structure. The best place to use MongoDB are like Big Data or Data Hub. Backup database is so simple using MongoDB. These are the causes MongoDB is getting popular day by day.</p>
<p>In this session let us describe step by step how to install &amp; run MongoDB in Windows Operating System. Compare to SQL database installation MongoDB takes very less time to install.</p>
<h3>Download MongoDB Installer</h3>
<p>To start installation of MongoDB for Windows download Windows installer (msi) from <a href="http://www.mongodb.org/downloads" target="_blank" rel="noopener noreferrer nofollow">http://www.mongodb.org/downloads</a>. Depending upon your machine configuration download the respective msi installer (64 bit or 32 bit).</p>
<h3>Install the MongoDB msi</h3>
<p>Once the download is complete. Go to your download folder. Install the msi installer in your machine. During installation set installation path to C:/Program Files/MongoDB.</p>
<h3>Configure MongoDB Data Directory</h3>
<p>To run MongoDB you need to provide DB path. To do this right click on Command Prompt &amp; open it as &#8220;Run as Administrator&#8221;. Create a directory where you want to keep your database. Here let us assume we want to store our database in C:/db. Issue the command &#8220;md db&#8221;. It will create a folder db in your C drive. Now to run MongoDB in command mode change directory to C:/Program File/MongoDB/Bin. Then issue the following command.</p>
<p><em>mongod.exe &#8211;dbpath C:/db</em></p>
<h3>Run MongoDB using Robomongo</h3>
<p>To run MongoDB you need to install Robomongo. Download the Windows version of Robomongo from <a href="http://robomongo.org" target="_blank" rel="nofollow noopener noreferrer">http://robomongo.org</a>. Robomongo is a shell-centric cross-platform open source MongoDB management tool. With the help of this tool you can operate your MongoDB from Admin UI. To run with Robomongo you need to start MongoDB. Once MongoDB started Open Robomongo &amp; Connect to MongoDB. Using Robomongo you can easily create Databases or can execute Queries.</p>
<p>The post <a href="https://jharaphula.com/how-to-install-run-mongodb-in-windows/">How to Install and Configure MongoDB in Windows?</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://jharaphula.com/how-to-install-run-mongodb-in-windows/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			<media:content url="https://jharaphula.com/wp-content/uploads/2016/05/mongodb-installation.jpg" medium="image" />
	</item>
		<item>
		<title>Tricks to Draw CSS Triangle using DIV without Images</title>
		<link>https://jharaphula.com/tricks-draw-css-triangle-div/</link>
					<comments>https://jharaphula.com/tricks-draw-css-triangle-div/#respond</comments>
		
		<dc:creator><![CDATA[Biswabhusan Panda]]></dc:creator>
		<pubDate>Fri, 13 May 2016 19:10:40 +0000</pubDate>
				<category><![CDATA[CSS Tricks with Examples]]></category>
		<category><![CDATA[Cleaver UI developer]]></category>
		<category><![CDATA[CSS in UI designing]]></category>
		<category><![CDATA[CSS Triangle using DIV]]></category>
		<category><![CDATA[Draw CSS Triangle]]></category>
		<guid isPermaLink="false">http://box.jharaphula.com/?p=771</guid>

					<description><![CDATA[<img width="300" height="183" src="https://jharaphula.com/wp-content/uploads/2016/05/triangle-300x183.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="Tricks to draw CSS Triangle using Div without images" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/triangle-300x183.jpg 300w, https://jharaphula.com/wp-content/uploads/2016/05/triangle.jpg 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>As a cleaver UI developer you must need to know the Tricks how to use CSS in UI designing. CSS provides plenty of tricks to...</p>
<p>The post <a href="https://jharaphula.com/tricks-draw-css-triangle-div/">Tricks to Draw CSS Triangle using DIV without Images</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></description>
										<content:encoded><![CDATA[<img width="300" height="183" src="https://jharaphula.com/wp-content/uploads/2016/05/triangle-300x183.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="Tricks to draw CSS Triangle using Div without images" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/triangle-300x183.jpg 300w, https://jharaphula.com/wp-content/uploads/2016/05/triangle.jpg 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>As a cleaver UI developer you must need to know the <strong>Tricks how to use CSS in UI designing</strong>. CSS provides plenty of tricks to make our web development easier &amp; faster. Recently during a Login page design I instructed to implement a triangle below the Login box header (<em>As shown in the below image</em>) using Div &amp; CSS. The same can be done using an arrow image but the <a href="https://jharaphula.com/css3-new-features-gradients-webfonts/" target="_blank" rel="noopener noreferrer">benefits of using CSS</a> is to make the application lightweight &amp; more programmer friendly. In place of image if we are using Div &amp; CSS in feature if required the triangle can be easily update to any shape &amp; size rather than generating a new arrow image. Also this technique of drawing a triangle is more compatible to control by programming. Look at the Code below here I am with an example of CSS Triangle. You can customize it as per your requirements.</p>
<p><img loading="lazy" decoding="async" src="https://jharaphula.com/wp-content/uploads/2016/05/login-screen.png" alt="login-screen" width="762" height="237" class="alignnone size-full wp-image-3003" srcset="https://jharaphula.com/wp-content/uploads/2016/05/login-screen.png 762w, https://jharaphula.com/wp-content/uploads/2016/05/login-screen-300x93.png 300w" sizes="auto, (max-width: 762px) 100vw, 762px" /></p>
<p>As per the above requirement for Login UI I need a triangle with Up direction. But here in the below example to make your understanding clear, I did draw 4 triangles with 4 directions (<em>Up Arrow Triangle, Down Arrow Triangle, Left Arrow Triangle &amp; Right Arrow Triangle</em>).</p>
<p><strong>Tricks I used</strong> to draw triangle using Div &amp; CSS are as below.</p>
<p><strong>1.</strong> In HTML body Declare a Div with a CSS Class.</p>
<p><strong>2.</strong> In the Class set width &amp; height to zero for the Div.</p>
<p><strong>3.</strong> If you are looking to draw an Up arrow triangle including width &amp; height in your CSS class add borders (<em>boder-left, border-right &amp; border-bottom</em>) except the border-top. I mean which is the direction for the triangle ignore that border settings.</p>
<p><strong>4.</strong> Now we have three border settings except border-top. The opposite of border-top is border-bottom. For border-bottom declare border-width, border-style &amp; border-color (<em>10px solid #000000;</em>). For other two border-left &amp; border-right replace border-color with transparent (<em>10px solid transparent;</em>).</p>
<h3>Code to draw Triangle</h3>
<pre class="brush: xml; title: ; notranslate">&lt;!DOCTYPE html&gt;
&lt;html&gt;
&lt;head&gt;
&lt;title&gt;Tricks to draw CSS Triangle&lt;/title&gt;
&lt;style type=&quot;text/css&quot;&gt;
/* CSS Class for Up Direction Arrow */
.upArrow {
width: 0px;
height: 0px;
border-left: 10px solid transparent;
border-right: 10px solid transparent;
border-bottom: 10px solid #000000;
}
/* CSS Class for Down Direction Arrow */
.downArrow {
width: 0px;
height: 0px;
border-left: 10px solid transparent;
border-right: 10px solid transparent;
border-top: 10px solid #000000;
}
/* CSS Class for Left Direction Arrow */
.leftArrow {
width: 0px;
height: 0px;
border-top: 10px solid transparent;
border-bottom: 10px solid transparent;
border-right:10px solid #000000;
}
/* CSS Class for Right Direction Arrow */
.rightArrow {
width: 0px;
height: 0px;
border-top: 10px solid transparent;
border-bottom: 10px solid transparent;
border-left: 10px solid #000000;
}
&lt;/style&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;!-- Div to Draw Arrow with Up direction --&gt;
&lt;div class=&quot;upArrow&quot;&gt;&lt;/div&gt;&lt;br /&gt;
&lt;!-- Div to Draw Arrow with Down direction --&gt;
&lt;div class=&quot;downArrow&quot;&gt;&lt;/div&gt;&lt;br /&gt;
&lt;!-- Div to Draw Arrow with Left direction --&gt;
&lt;div class=&quot;leftArrow&quot;&gt;&lt;/div&gt;&lt;br /&gt;
&lt;!-- Div to Draw Arrow with Right direction --&gt;
&lt;div class=&quot;rightArrow&quot;&gt;&lt;/div&gt;
&lt;/body&gt;
&lt;/html&gt;</pre>
<p>The post <a href="https://jharaphula.com/tricks-draw-css-triangle-div/">Tricks to Draw CSS Triangle using DIV without Images</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://jharaphula.com/tricks-draw-css-triangle-div/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			<media:content url="https://jharaphula.com/wp-content/uploads/2016/05/triangle.jpg" medium="image" />
	</item>
		<item>
		<title>Angularjs Routing Example using ng-view &#038; routeProvider</title>
		<link>https://jharaphula.com/angularjs-routing-example-routeprovider/</link>
					<comments>https://jharaphula.com/angularjs-routing-example-routeprovider/#respond</comments>
		
		<dc:creator><![CDATA[Biswabhusan Panda]]></dc:creator>
		<pubDate>Fri, 13 May 2016 18:58:12 +0000</pubDate>
				<category><![CDATA[AngularJS with Examples]]></category>
		<category><![CDATA[AngularJS]]></category>
		<category><![CDATA[Angularjs Routing Example]]></category>
		<category><![CDATA[routeProvider]]></category>
		<category><![CDATA[using ng-view]]></category>
		<guid isPermaLink="false">http://box.jharaphula.com/?p=761</guid>

					<description><![CDATA[<img width="300" height="179" src="https://jharaphula.com/wp-content/uploads/2016/05/routing-300x179.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="Angularjs routing example using ng-view &amp; routeProvider" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/routing-300x179.jpg 300w, https://jharaphula.com/wp-content/uploads/2016/05/routing.jpg 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>AngularJS Routing is the technique using which in a web application we can render multiple pages in a Single page without refresh the page. This...</p>
<p>The post <a href="https://jharaphula.com/angularjs-routing-example-routeprovider/">Angularjs Routing Example using ng-view &#038; routeProvider</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></description>
										<content:encoded><![CDATA[<img width="300" height="179" src="https://jharaphula.com/wp-content/uploads/2016/05/routing-300x179.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="Angularjs routing example using ng-view &amp; routeProvider" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/routing-300x179.jpg 300w, https://jharaphula.com/wp-content/uploads/2016/05/routing.jpg 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>AngularJS Routing is the technique using which in a web application we can render multiple pages in a Single page without refresh the page. This technique is popular as &#8220;Single page Application&#8221; designing. To clarify your queries related to routing &#038; routeProvider here I am with AngularJS routing example. In the below app I am with 3 pages Template-A.html, Template-B.html &amp; Template-Param.html. In my Index.html I created an <a href="https://jharaphula.com/category/programming-solutions/learn-angularjs-with-examples/" target="_blank" rel="noopener noreferrer">AngularJS</a> module &#8220;routingApp&#8221;. Inside the module I am configuring the module for Angularjs routeProvider.</p>
<p>Using $routeProvider I am showing my three pages Template-A.html, Template-B.html &amp; Template-Param.html in ng-view div. $routeProvider.when is used to detect the browser url &amp; loads the respective html Template. Here in the below example I have 3 links in html body. Depending upon their href values the when statement works in routeProvider. For the first link I am sending Template-A to the browser like /Template-A. While the user click the first link inside $routeProvider function he will conditionally forcing the ng-view div to load Template-A.html. This is declared in templateUrl of $routeProvider.when. Including templateUrl here I am assigning the specific Controller for the specific template. For an example for Template-A I created Controller-A.</p>
<p><img loading="lazy" decoding="async" src="https://jharaphula.com/wp-content/uploads/2016/05/ng-routing.png" alt="ng-routing" width="751" height="230" class="alignnone size-full wp-image-3043" srcset="https://jharaphula.com/wp-content/uploads/2016/05/ng-routing.png 751w, https://jharaphula.com/wp-content/uploads/2016/05/ng-routing-300x92.png 300w" sizes="auto, (max-width: 751px) 100vw, 751px" /></p>
<p>To show you the Complete features of AngularJS Routing here I created two more pages Template-B.html &amp; Template-Param.html. Template-B is an example to show you how to pass Custom data using AngularJS Routing. In Template-Param you can found the example How to pass parameters using AngularJS Routing. First let us talk about Template-B. While use click on Template-B link including templateUrl &amp; Controller details here I added one customData attribute. Using this way you can pass custom data in your routing mechanism. To show this custom data in Template-B.html inside the Controller-B I am assigning this data to a scope variable $scope.customData. In the next phase I am just printing this $scope.customData variable to my Template-B.html.</p>
<p>In Template-C I am showing the example how to pass parameters using AngularJS Routing. During the click of &#8220;Template Param&#8221; link in body I am calling a URL &#8220;Template-Param&#8221; with an id value 237. During $routeProvider.when using /Template-Param/:id I am sending the id value to the Template-Param controller. In Controller-Param I am using $routeParams to assign the id to a scope variable using $scope.paramId = $routeParams.id;.</p>
<p>In this example you can found How to use AngularJS Routing with How to pass parameters in AngularJS Routing &amp; How to pass custom data in AngularJS Routing. To run this example in your local desk copy the below four files in their respective name. Store them in a folder &amp; open Index.html.</p>
<h3>angularjs-routing-example.htm</h3>
<pre class="brush: xml; title: ; notranslate">&lt;!DOCTYPE html&gt;
&lt;html&gt;
&lt;head&gt;
&lt;title&gt;Example to show how to use AngularJS Routing&lt;/title&gt;
&lt;script src=&quot;http://ajax.googleapis.com/ajax/libs/angularjs/1.0.7/angular.min.js&quot;&gt;&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
/* Angular module */
var routingApp = angular.module('routingApp', []);

/* Define Routing */
routingApp.config(['$routeProvider',
function($routeProvider) {
$routeProvider.
when('/Template-A', {
templateUrl: 'Template-A.htm',
controller: 'Controller-A'
}).
when('/Template-B', {
templateUrl: 'Template-B.htm',
controller: 'Controller-B',
customData: 'Template B Custom Data'
}).
when('/Template-Param/:id', {
templateUrl: 'Template-Param.htm',
controller: 'Controller-Param'
}).
otherwise({
redirectTo: '/Template-A'
});
}]);

/* Controller for Template A */
routingApp.controller('Controller-A', function($scope) {
$scope.message = 'Message from Controller A. Using Routing showing in Template A.';
});

/* Controller for Template B */
routingApp.controller('Controller-B', function($scope, $route) {
$scope.message = 'Message from Controller B. Using Routing showing in Template B.';
$scope.customData = $route.current.customData;
});

/* Controller for Template Param */
routingApp.controller('Controller-Param', function($scope, $routeParams) {
$scope.message = 'Message from Controller Param. Using Routing showing in Template Param.';
$scope.paramId = $routeParams.id;
});

&lt;/script&gt;
&lt;/head&gt;
&lt;body ng-app=&quot;routingApp&quot;&gt;
&lt;a href=&quot;#Template-A&quot;&gt;Template A&lt;/a&gt;
&lt;a href=&quot;#Template-B&quot;&gt;Template B&lt;/a&gt;
&lt;a href=&quot;#Template-Param/237&quot;&gt;Template Param&lt;/a&gt;
&lt;!--ng-view to show different Templates--&gt;
&lt;div ng-view&gt;&lt;/div&gt;
&lt;/body&gt;
&lt;/html&gt;</pre>
<h3>Template-A.htm</h3>
<pre class="brush: xml; title: ; notranslate">&lt;h2&gt;Template A&lt;/h2&gt;
{{ message }}</pre>
<h3>Template-B.htm</h3>
<pre class="brush: xml; title: ; notranslate">&lt;h2&gt;Template B&lt;/h2&gt;
{{ message }}
&lt;br /&gt;
{{ customData }}</pre>
<h3>Template-Param.htm</h3>
<pre class="brush: xml; title: ; notranslate">&lt;h2&gt;Template Param&lt;/h2&gt;
{{ message }}
&lt;br /&gt;
{{ paramId }}</pre>
<p>The post <a href="https://jharaphula.com/angularjs-routing-example-routeprovider/">Angularjs Routing Example using ng-view &#038; routeProvider</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://jharaphula.com/angularjs-routing-example-routeprovider/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			<media:content url="https://jharaphula.com/wp-content/uploads/2016/05/routing.jpg" medium="image" />
	</item>
		<item>
		<title>Example of Switch Case in AngularJS using ng-switch Directive</title>
		<link>https://jharaphula.com/example-angularjs-switch-case/</link>
					<comments>https://jharaphula.com/example-angularjs-switch-case/#respond</comments>
		
		<dc:creator><![CDATA[Biswabhusan Panda]]></dc:creator>
		<pubDate>Fri, 13 May 2016 18:53:54 +0000</pubDate>
				<category><![CDATA[AngularJS with Examples]]></category>
		<category><![CDATA[Example of Switch Case]]></category>
		<category><![CDATA[Switch Case in AngularJS]]></category>
		<category><![CDATA[Using ng-switch Directive]]></category>
		<guid isPermaLink="false">http://box.jharaphula.com/?p=757</guid>

					<description><![CDATA[<img width="300" height="191" src="https://jharaphula.com/wp-content/uploads/2016/05/Switch-Case-in-AngularJS-300x191.png" class="webfeedsFeaturedVisual wp-post-image" alt="Example of Switch Case in AngularJS using ng-switch Directive" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/Switch-Case-in-AngularJS-300x191.png 300w, https://jharaphula.com/wp-content/uploads/2016/05/Switch-Case-in-AngularJS.png 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>As a good programmer you need to know the advantages of using Switch Case in place of If and Else. Modern Programming languages compiles switch...</p>
<p>The post <a href="https://jharaphula.com/example-angularjs-switch-case/">Example of Switch Case in AngularJS using ng-switch Directive</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></description>
										<content:encoded><![CDATA[<img width="300" height="191" src="https://jharaphula.com/wp-content/uploads/2016/05/Switch-Case-in-AngularJS-300x191.png" class="webfeedsFeaturedVisual wp-post-image" alt="Example of Switch Case in AngularJS using ng-switch Directive" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/Switch-Case-in-AngularJS-300x191.png 300w, https://jharaphula.com/wp-content/uploads/2016/05/Switch-Case-in-AngularJS.png 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>As a good programmer you need to know the advantages of using Switch Case in place of If and Else. <strong>Modern Programming languages compiles switch case more faster than if &amp; else</strong>. During application development using switch case we can achieve better performance for Conditional statements. It&#8217;s no matter if you are using if &amp; else for 4 to 5 conditional statements. But in-case you are handling more then 4 to 5 Conditional statements to Compare values in such case prefer to use Switch Case in AngularJS in place of if and else.</p>
<p>In the below example I am showing <a href="https://jharaphula.com/category/programming-solutions/learn-angularjs-with-examples/" target="_blank" rel="noopener noreferrer">how to use AngularJS</a> Switch Case. Look at the Codes below. Here inside the Controller I declared an options object to the $Scope. Options array contains six items. In html body I have a dropdownlist which shows me the list of values from this options array. Depending upon the selected value from dropdownlist I am showing a div with appropriate message. In the primary div of switch cases messages I am <strong>using ng-switch on=&#8221;selection&#8221; to instruct on which values</strong> switch case will occur. Here &#8220;selection&#8221; is my ng-model. Which is declared in my select control. To check each case from options array I am using ng-switch-when &amp; for default value like &#8216;Others&#8217; from options array I am <strong>using ng-switch-default to show the default massage</strong>.</p>
<p>To run the below example copy the codes to a Notepad file. Save it as a html File. Then open the HTML file with internet Connectivity. This demo app contains CDN links. Without Internet this will not work.</p>
<h3>Switch Case in AngularJS Example</h3>
<pre class="brush: xml; title: ; notranslate">&lt;!DOCTYPE html&gt;
&lt;html&gt;
&lt;head&gt;
&lt;title&gt;How to use Switch Case in AngularJS?&lt;/title&gt;
&lt;!--AngularJS CDN Link--&gt;
&lt;script src=&quot;https://ajax.googleapis.com/ajax/libs/angularjs/1.3.8/angular.min.js&quot;&gt;&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
(function(angular) {
angular.module('modSwitch', [])
.controller('ControllerSwitch', ['$scope', function($scope) {
$scope.options = ['Blog', 'Business', 'Fashion', 'Career', 'Education', 'Others'];
$scope.selection = $scope.options[0];
}]);
})(window.angular);
&lt;/script&gt;
&lt;/head&gt;
&lt;body ng-app=&quot;modSwitch&quot;&gt;
&lt;div ng-controller=&quot;ControllerSwitch&quot;&gt;
&lt;select ng-model=&quot;selection&quot; ng-options=&quot;item for item in options&quot;&gt;
&lt;/select&gt;
&lt;hr/&gt;
&lt;div ng-switch on=&quot;selection&quot;&gt;
&lt;div ng-switch-when=&quot;Blog&quot;&gt;Blog is a Business.&lt;/div&gt;
&lt;div ng-switch-when=&quot;Business&quot;&gt;Business is a Busy Game.&lt;/div&gt;
&lt;div ng-switch-when=&quot;Fashion&quot;&gt;Fashion updates Everyday.&lt;/div&gt;
&lt;div ng-switch-when=&quot;Career&quot;&gt;Career is Like a Ladder.&lt;/div&gt;
&lt;div ng-switch-when=&quot;Education&quot;&gt;Education Never Ends.&lt;/div&gt;
&lt;div ng-switch-default&gt;This is the Default value for Switch Case.&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/body&gt;
&lt;/html&gt;</pre>
<h3>Alternatives to *ngSwitch</h3>
<p>While `*ngSwitch` is useful, there are alternative approaches:</p>
<p><strong>`ngIf` with Else</strong> – For simple binary conditions, `ngIf` may be more straightforward.<br />
<strong>Custom Directive</strong> – For complex scenarios, a custom structural directive can provide more flexibility.<br />
<strong>Component Binding</strong> – Sometimes, passing inputs to a single component is cleaner than switching between multiple templates.</p>
<h3>Conclusion</h3>
<p>The `ngSwitch` directive in Angular provides a clean and efficient way to handle conditional rendering based on different values. By understanding its syntax, use cases, and best practices, developers can create more dynamic and maintainable applications. Whether displaying role-based content, switching between views, or handling enums, `ngSwitch` is a powerful tool in the Angular developer’s toolkit. Always ensure proper case handling and consider alternatives when dealing with highly complex scenarios.</p>
<p>The post <a href="https://jharaphula.com/example-angularjs-switch-case/">Example of Switch Case in AngularJS using ng-switch Directive</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://jharaphula.com/example-angularjs-switch-case/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			<media:content url="https://jharaphula.com/wp-content/uploads/2016/05/Switch-Case-in-AngularJS.png" medium="image" />
	</item>
		<item>
		<title>Example of responsive AngularJS Dynamic Tabs using BootStrap 5</title>
		<link>https://jharaphula.com/example-angularjs-dynamic-tabs-bootstrap/</link>
					<comments>https://jharaphula.com/example-angularjs-dynamic-tabs-bootstrap/#respond</comments>
		
		<dc:creator><![CDATA[Biswabhusan Panda]]></dc:creator>
		<pubDate>Fri, 13 May 2016 18:48:08 +0000</pubDate>
				<category><![CDATA[AngularJS with Examples]]></category>
		<category><![CDATA[AngularJS Dynamic Tabs]]></category>
		<category><![CDATA[BootStrap]]></category>
		<category><![CDATA[Dynamic Tabs using BootStrap]]></category>
		<guid isPermaLink="false">http://box.jharaphula.com/?p=754</guid>

					<description><![CDATA[<img width="300" height="195" src="https://jharaphula.com/wp-content/uploads/2016/05/tab-view-300x195.png" class="webfeedsFeaturedVisual wp-post-image" alt="Example to Create responsive AngularJS Dynamic Tabs using BootStrap" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/tab-view-300x195.png 300w, https://jharaphula.com/wp-content/uploads/2016/05/tab-view-294x190.png 294w, https://jharaphula.com/wp-content/uploads/2016/05/tab-view-106x70.png 106w, https://jharaphula.com/wp-content/uploads/2016/05/tab-view.png 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>During web application development many times we required to implement dynamic tab for better user experience. In this example I am sharing the codes to...</p>
<p>The post <a href="https://jharaphula.com/example-angularjs-dynamic-tabs-bootstrap/">Example of responsive AngularJS Dynamic Tabs using BootStrap 5</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></description>
										<content:encoded><![CDATA[<img width="300" height="195" src="https://jharaphula.com/wp-content/uploads/2016/05/tab-view-300x195.png" class="webfeedsFeaturedVisual wp-post-image" alt="Example to Create responsive AngularJS Dynamic Tabs using BootStrap" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/tab-view-300x195.png 300w, https://jharaphula.com/wp-content/uploads/2016/05/tab-view-294x190.png 294w, https://jharaphula.com/wp-content/uploads/2016/05/tab-view-106x70.png 106w, https://jharaphula.com/wp-content/uploads/2016/05/tab-view.png 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>During web application development many times we required to implement dynamic tab for better user experience. In this example I am sharing the codes to create AngularJS Dynamic Tabs using <a href="https://jharaphula.com/learn-bootstrap-tutorial-beginners/" target="_blank" rel="noopener noreferrer">BootStrap</a>. Here to show you a demo I created 4 states of India as the tabs. Under each tab I am showing the cities for that for that particular state dynamically.</p>
<h2>AngularJS directive</h2>
<p>The <a href="https://jharaphula.com/restrict-option-custom-directive/" target="_blank" rel="noopener noreferrer">AngularJS directive</a> here I create for my tab control is ngTab. Which <strong>accepts two parameters length &amp; data</strong>. Length is the number of tabs we required. When data is the states &amp; it&#8217;s cities. Data is in JSON format. You can replace this data as per your requirements. <strong>To get these parameters values in AngularJS ngTab directive I am using scope: { &#8220;length&#8221;: &#8216;=&#8217;, &#8220;data&#8221;: &#8216;@&#8217; }</strong>. You can watch this in the below app.js file. To create responsive Tabs I used BootStrap here. my-tab.html is my template for ngTab. In template file I am binding the state &amp; cities values (In form of array) from the scope object of TabModule.</p>
<p>To run this demo application you need to create 3 files as index.html, app.js &amp; my-tab.html. Copy the below codes to the respective files. With internet connection run the index.html. It will show you the result like the below screen.</p>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-3080" src="https://jharaphula.com/wp-content/uploads/2016/05/tab.png" alt="tab" width="943" height="278" srcset="https://jharaphula.com/wp-content/uploads/2016/05/tab.png 943w, https://jharaphula.com/wp-content/uploads/2016/05/tab-300x88.png 300w" sizes="auto, (max-width: 943px) 100vw, 943px" /></p>
<h3>AngularJS Dynamic Tabs using BootStrap</h3>
<pre class="brush: xml; title: ; notranslate">&lt;!DOCTYPE html&gt;
&lt;html ng-app=&quot;tabModule&quot;&gt;
&lt;head&gt;
&lt;meta charset=&quot;utf-8&quot;&gt;
&lt;title&gt;Example to Create responsive AngularJS Dynamic Tabs&lt;/title&gt;
&lt;!--AngularJS library CDN link--&gt;
&lt;script type=&quot;text/javascript&quot; src=&quot;https://ajax.googleapis.com/ajax/libs/angularjs/1.3.0-rc.0/angular.min.js&quot;&gt;&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot; src=&quot;app.js&quot;&gt;&lt;/script&gt;
&lt;!--Jquery library CDN link--&gt;
&lt;script src=&quot;http://code.jquery.com/jquery-1.11.0.min.js&quot;&gt;&lt;/script&gt;
&lt;!--Jquery UI CDN link--&gt;
&lt;script src=&quot;http://code.jquery.com/ui/1.11.1/jquery-ui.js&quot;&gt;&lt;/script&gt;
&lt;!--BootStrap CDN links--&gt;
&lt;script type=&quot;text/javascript&quot; src=&quot;http://netdna.bootstrapcdn.com/twitter-bootstrap/2.1.1/js/bootstrap.js&quot;&gt;&lt;/script&gt;
&lt;link href=&quot;http://netdna.bootstrapcdn.com/twitter-bootstrap/2.1.1/css/bootstrap.no-icons.min.css&quot; rel=&quot;stylesheet&quot;&gt;
&lt;link href=&quot;http://netdna.bootstrapcdn.com/font-awesome/2.0/css/font-awesome.css&quot; rel=&quot;stylesheet&quot;&gt;
&lt;link rel=&quot;stylesheet&quot; href=&quot;http://netdna.bootstrapcdn.com/twitter-bootstrap/2.1.1/css/bootstrap.min.css&quot; type=&quot;text/css&quot;&gt;
&lt;link rel=&quot;stylesheet&quot; href=&quot;http://netdna.bootstrapcdn.com/twitter-bootstrap/2.1.1/css/bootstrap-theme.min.css&quot; type=&quot;text/css&quot;&gt;
&lt;link rel=&quot;stylesheet&quot; href=&quot;http://code.jquery.com/ui/1.11.1/themes/smoothness/jquery-ui.css&quot;&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;ng-tab length=&quot;4&quot; data='{&quot;Country&quot;:[{&quot;state&quot;:&quot;Maharashtra&quot;, &quot;cities&quot;:&quot;Mumbai, Pune, Nagpur, Thane, Nashik&quot;},{&quot;state&quot;:&quot;Odisha&quot;, &quot;cities&quot;:&quot;Bhubaneswar, Cuttack, Rourkela, Brahmapur, Sambalpur&quot;},{&quot;state&quot;:&quot;Karnataka&quot;, &quot;cities&quot;:&quot;Bellary, Bidar, Gulbarga, Koppal, Raichur&quot;},{&quot;state&quot;:&quot;Chandigarh&quot;, &quot;cities&quot;:&quot;Ludhiana, Amritsar, Jalandhar, Patiala, Bathinda&quot;}]}'&gt;&lt;/ng-tab&gt;
&lt;/body&gt;
&lt;/html&gt;</pre>
<h3>my-tab.htm</h3>
<pre class="brush: xml; title: ; notranslate">&lt;!--ngTab Template--&gt;
&lt;h3&gt;&lt;center&gt;{{ appDetails }}&lt;/center&gt;&lt;/h3&gt;
&lt;div class=&quot;container&quot;&gt;
&lt;div id=&quot;content&quot;&gt;
&lt;ul id=&quot;tabs&quot; class=&quot;nav nav-tabs&quot; data-tabs=&quot;tabs&quot;&gt;
&lt;li ng-class=&quot;{active: $first}&quot; ng-repeat=&quot;item in tempArrTab&quot;&gt;
&lt;a href=&quot;#{{ item }}&quot; data-toggle=&quot;tab&quot;&gt;{{ item }}&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;div id=&quot;my-tab-content&quot; class=&quot;tab-content&quot;&gt;
&lt;div ng-repeat=&quot;item in tempArrTab&quot; class=&quot;tab-pane&quot; ng-class=&quot;{active: $first}&quot; id=&quot;{{ item }}&quot;&gt;
&lt;h2&gt;{{ item }}&lt;/h2&gt;
&lt;p&gt;Welcome to {{ item }}. Visit Us.&lt;/p&gt;
Cities : &lt;input list=&quot;tags-{{ $index }}&quot;&gt;
&lt;/div&gt;

&lt;div ng-repeat=&quot;compitem in tempCompArr&quot;&gt;
&lt;datalist id=&quot;tags-{{ $index }}&quot;&gt;
&lt;option ng-repeat=&quot;items in compitem.split(',')&quot; value=&quot;{{ items }}&quot;&gt;
&lt;/datalist&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;</pre>
<h3>app.js</h3>
<pre class="brush: jscript; title: ; notranslate">/* ng-tab Module */
angular.module('tabModule', []).directive('ngTab', function() {
return {
restrict: 'E',
transclude: true,

scope: {
/* Accepting the number of Tab you want in your app */
&quot;length&quot;: '=',
/* Accepting the data in JSON for Tab */
&quot;data&quot;: '@'
},

link: function (scope, element) {
scope.$watch(&quot;length&quot;, function (arrlen) {
scope.$watch(&quot;data&quot;, function (value) {

var obj = JSON.parse(value);

var lenjson = obj.Country.length;

var arrTab = [];
var autoCompArray = [];

/* Assigning input JSON data to Array */
if (arrlen == lenjson) {
for(i=0; i&lt;lenjson; i++) {
arrTab.push(obj.Country[i].state);
autoCompArray.push(obj.Country[i].cities)
}
} else {
alert('Please provide accurate data length.');
}

scope.tempArrTab = arrTab;
scope.tempCompArr = autoCompArray;
scope.appDetails = 'Create your own ng-tab using AngularJS';

}, false);

}, false);
},

controller: function($scope, $filter) {

$(function() {
$(&quot;#tabs&quot;).tabs();
});
},
templateUrl: 'my-tab.htm'
};
});</pre>
<p>The post <a href="https://jharaphula.com/example-angularjs-dynamic-tabs-bootstrap/">Example of responsive AngularJS Dynamic Tabs using BootStrap 5</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://jharaphula.com/example-angularjs-dynamic-tabs-bootstrap/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			<media:content url="https://jharaphula.com/wp-content/uploads/2016/05/tab-view.png" medium="image" />
	</item>
		<item>
		<title>How to Save image Offline using HTML5 Local Storage?</title>
		<link>https://jharaphula.com/save-image-offline-html5-local-storage/</link>
					<comments>https://jharaphula.com/save-image-offline-html5-local-storage/#respond</comments>
		
		<dc:creator><![CDATA[Biswabhusan Panda]]></dc:creator>
		<pubDate>Fri, 13 May 2016 18:43:40 +0000</pubDate>
				<category><![CDATA[Learn HTML5 with Examples]]></category>
		<category><![CDATA[How to Save image?]]></category>
		<category><![CDATA[HTML5 Local Storage]]></category>
		<category><![CDATA[image to Base 64 data url]]></category>
		<category><![CDATA[Save image Offline]]></category>
		<guid isPermaLink="false">http://box.jharaphula.com/?p=752</guid>

					<description><![CDATA[<img width="300" height="192" src="https://jharaphula.com/wp-content/uploads/2016/05/html5-web-300x192.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="How to save image offline using HTML5 Local Storage?" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/html5-web-300x192.jpg 300w, https://jharaphula.com/wp-content/uploads/2016/05/html5-web.jpg 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>To improve performance of a web application we need to reduce server &#38; client communication as much as we can. This technique helps to improve...</p>
<p>The post <a href="https://jharaphula.com/save-image-offline-html5-local-storage/">How to Save image Offline using HTML5 Local Storage?</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></description>
										<content:encoded><![CDATA[<img width="300" height="192" src="https://jharaphula.com/wp-content/uploads/2016/05/html5-web-300x192.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="How to save image offline using HTML5 Local Storage?" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/html5-web-300x192.jpg 300w, https://jharaphula.com/wp-content/uploads/2016/05/html5-web.jpg 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>To improve performance of a web application we need to reduce server &amp; client communication as much as we can. This technique helps to <a href="https://jharaphula.com/best-practices-website-speed-performance/" target="_blank" rel="noopener noreferrer">improve performance of a web application</a>. Always it&#8217;s wise for a programmer to store static data in client browser. Except for the first time but every time while user will request the same page from the serve we need to check whether the similar data exists in the client memory or not. If the similar data exist in the client memory we need to load this data to reduce server &amp; client communication. In this way to achieve this we need to store our static data in the client browser memory. To make this process easier HTML5 introduced Local Storage. Which stores data in client browser for the unlimited time we want. Compare to session storage html5 local storage stored data after user interaction. I can say html5 local storage is like a offline data store.</p>
<p>During web application development we do integrate many images to our application to make our application more user attractive. Here images are static data. If the user is requesting the similar page 10 times from his/her browser we need to avoid server interaction for nine times rather then for the first one. So in this session let us know how to save image in html5 local storage.</p>
<p>In the below example I am storing an image to HTML5 local storage. In HTML body here I have 2 images imageToLoadInLocalStorage &amp; imageToShowFromLocalStorage. The first image has a src attribute which loads a png image (<em>global-img.png</em>) from server. Second image is having blank src attribute. Using client script here I am storing the first image to local storage &amp; fetching the similar image from local storage to my second image. The mechanism I used here is I am fetching the first image using DOM object method getElementById. Converting the image to Base 64 data url format &amp; storing it to local storage using localStorage.setItem() method. Then fetching the image from local storage using localStorage.getItem() method &amp; assign the image to my second image control.</p>
<p>To run the below example copy the codes into a notepad file. Save it as HTML. Then open the file using any browser which supports HTML5 storage. Before run the below app make sure you are with internet connectivity.</p>
<h3>Example to save image using HTML5 Local Storage</h3>
<pre class="brush: xml; title: ; notranslate">
&lt;title&gt;Demo app to save image using HTML5 Local Storage&lt;/title&gt;
&lt;!--CDN link of Jquery--&gt;
&lt;script src=&quot;http://code.jquery.com/jquery-1.10.2.js&quot;&gt;&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot;&gt;&lt;br /&gt;
/* Function to Convert image into Base64 */&lt;br /&gt;
function ConvertImageToBase64(imageToConvertBase64) {&lt;br /&gt;
/* Creating a Canvas in HTML5 */&lt;br /&gt;
var drawCanvas = document.createElement(&quot;canvas&quot;);&lt;br /&gt;
/* Setting the Canvas width &amp; height as refer to the Image */&lt;br /&gt;
drawCanvas.width = imageToConvertBase64.width;&lt;br /&gt;
drawCanvas.height = imageToConvertBase64.height;&lt;br /&gt;
/* Copy the image to Canvas */&lt;br /&gt;
var copyImageToCanvas = drawCanvas.getContext(&quot;2d&quot;);&lt;br /&gt;
copyImageToCanvas.drawImage(imageToConvertBase64, 0, 0);&lt;br /&gt;
/* Converting Image to Data URL */&lt;br /&gt;
var dataUrlOfImage = drawCanvas.toDataURL(&quot;image/png&quot;);&lt;br /&gt;
/* Returning Data URL of the Image */&lt;br /&gt;
return dataUrlOfImage.replace(/^data:image\/(png|jpg);base64,/, &quot;&quot;);&lt;br /&gt;
}&lt;/p&gt;
&lt;p&gt;$(document).ready(function() {&lt;br /&gt;
/* Fetching the image using JavaScript getElementById */&lt;br /&gt;
var imageToLoadInLocalStorage = document.getElementById('imageToLoadInLocalStorage');&lt;br /&gt;
/* Calling the function ConvertImageToBase64 to convert the Image to Base 64 */&lt;br /&gt;
var imageDataUrl = ConvertImageToBase64(imageToLoadInLocalStorage);&lt;br /&gt;
/* Storing the image in Local Storage using setItem() method */&lt;br /&gt;
localStorage.setItem(&quot;imageData&quot;, imageDataUrl);&lt;/p&gt;
&lt;p&gt;/* Using getItem() fetching the image from Local Storage */&lt;br /&gt;
var dataImageUrl = localStorage.getItem('imageData');&lt;br /&gt;
/* Using getElementById to detect the image control for loading local storage image */&lt;br /&gt;
var imageToShow = document.getElementById('imageToShowFromLocalStorage');&lt;br /&gt;
/* Assigning source to a blank image with id imageToShowFromLocalStorage */&lt;br /&gt;
imageToShow.src = &quot;data:image/png;base64,&quot; + dataImageUrl;&lt;br /&gt;
});&lt;br /&gt;
&lt;/script&gt;

&lt;!--Image with Source--&gt;
&lt;img src=&quot;global-img.png&quot; id=&quot;imageToLoadInLocalStorage&quot; /&gt;
&lt;!--Image with no Source to grab from Local Storage--&gt;
&lt;img src=&quot;&quot; id=&quot;imageToShowFromLocalStorage&quot; /&gt;
</pre>
<p>The post <a href="https://jharaphula.com/save-image-offline-html5-local-storage/">How to Save image Offline using HTML5 Local Storage?</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://jharaphula.com/save-image-offline-html5-local-storage/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			<media:content url="https://jharaphula.com/wp-content/uploads/2016/05/html5-web.jpg" medium="image" />
	</item>
		<item>
		<title>Design MS-Excel like Table using KineticJS on HTML5 Canvas?</title>
		<link>https://jharaphula.com/how-to-design-a-table-using-kineticjs-on-html5-canvas/</link>
					<comments>https://jharaphula.com/how-to-design-a-table-using-kineticjs-on-html5-canvas/#respond</comments>
		
		<dc:creator><![CDATA[Biswabhusan Panda]]></dc:creator>
		<pubDate>Fri, 13 May 2016 18:41:19 +0000</pubDate>
				<category><![CDATA[KineticJS Examples]]></category>
		<category><![CDATA[HTML5 Canvas]]></category>
		<category><![CDATA[KineticJS on HTML5 Canvas]]></category>
		<category><![CDATA[MS-Excel like Table]]></category>
		<category><![CDATA[Table using KineticJS]]></category>
		<guid isPermaLink="false">http://box.jharaphula.com/?p=750</guid>

					<description><![CDATA[<img width="300" height="184" src="https://jharaphula.com/wp-content/uploads/2016/05/simple-css-tables-300x184.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="Design MS-Excel like Table using KineticJS on HTML5 Canvas?" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/simple-css-tables-300x184.jpg 300w, https://jharaphula.com/wp-content/uploads/2016/05/simple-css-tables.jpg 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>During my software development experiences I never faced such a challenging stuff to design a table like Microsoft word or excel. Recently with my Ex-employer...</p>
<p>The post <a href="https://jharaphula.com/how-to-design-a-table-using-kineticjs-on-html5-canvas/">Design MS-Excel like Table using KineticJS on HTML5 Canvas?</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></description>
										<content:encoded><![CDATA[<img width="300" height="184" src="https://jharaphula.com/wp-content/uploads/2016/05/simple-css-tables-300x184.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="Design MS-Excel like Table using KineticJS on HTML5 Canvas?" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/simple-css-tables-300x184.jpg 300w, https://jharaphula.com/wp-content/uploads/2016/05/simple-css-tables.jpg 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>During my software development experiences I never faced such a challenging stuff to design a table like Microsoft word or excel. Recently with my Ex-employer in a project I found me to design a table like MS-Word. The skills I used here are KineticJS, HTML5 &amp; Jquery.</p>
<p>A table looks very easy to Operate but during the development of a table I faced many critical logical games to handle. In this article I am sharing the complete class for creating a table. The JavaScript <a href="https://jharaphula.com/object-oriented-programming-concepts-with-examples/" rel="noopener noreferrer" target="_blank">class</a> I am sharing here is TableShape which accepts row &amp; column numbers with KineticJS stage &amp; layer. In real-time this class is capable to draw table for you depending upon the row &amp; column values. To implement this you need to copy this js file to your application &amp; while creating the instance for the class TableShape you need to pass parameters only.</p>
<p>In the below TableShape class I have all the ready mate method to do operation with a table. createCell is the method which creates cell for table. Used Splitters to handle cells &amp; rows adjustments. To insert a row into the table we created a function insertRow(). Where by passing the index you can add a row to your table. To delete a row in this class we implemented deleteRow() function. This function accepts index of the row which one you want to delete. Depending upon the index this external function is capable to delete row from your table. Similar to insertRow() &amp; deleteRow() we have insertColumn() &amp; deleteColumn() method. Using getHeight() &amp; getWidth() external function you can retrieve table width &amp; height in your class. During operations to retrieve the x &amp; y positions of table in this class we declared two additional methods getX() &amp; getY(). These methods are added to the exports array of this method. Which you can easily access from your class. Using setWidth() &amp; setHeight() functions you can set table width &amp; height from your external class. To select the table or it&#8217;s cells this class contains Select &amp; Deselect methods. You just need to call them from your class to use. Like this there are plenty of functionality you can get with this class.</p>
<p>This class is well tested by our QA team. I don&#8217;t think you will get any problems to implement this class. What problems we faced during a table design I don&#8217;t want to give you the same pain. Let us reuse the code.</p>
<p><strong>tableShape.js</strong></p>
<p><code><span style="color:brown">/*Table Cell related default values*/<br />
var DEFAULT_CELL_STROKE_WIDTH = 1;<br />
var DEFAULT_CELL_WIDTH = 200;<br />
var DEFAULT_CELL_HEIGHT = 100;<br />
var MIN_CELL_DIM = 25;<br />
var DEFAULT_SPANNER_WIDTH = 5;<br />
/*Table Slitter Default Stroke &amp; Width*/<br />
var DEFAULT_SPLITTER_STROKE = "#000000";<br />
var DEFAULT_SPLITTER_WIDTH = 3;</span></p>
<p><span style="color:brown">var DEFAULT_SPANNER_STROKE = "darkgray";<br />
/*Table default cell settings*/<br />
var DEFAULT_CELL_FILL = "#FFFFFF";<br />
var DEFAULT_CELL_STROKE = "#000000";<br />
var DEFAULT_CELL_STROKE_SELECTED = "#000000";</span></p>
<p><span style="color:brown">var TableShape = function (totalRows, totalColumns, stage, layer) {</span></p>
<p><span style="color:brown">var exports = {};<br />
var _rows = null;<br />
var _columns = null;<br />
var _stage = null;<br />
var _tbllayer = null;<br />
var _tblgroup = null;<br />
var _embeddedShapes = [];<br />
var _tableIndex = [];</span></p>
<p><span style="color:brown">/* Initial values related to Table */<br />
function init() {</span></p>
<p><span style="color:brown">_tbllayer = layer;<br />
_tblgroup = new Kinetic.Group({<br />
x: -(_columns / 2) * DEFAULT_CELL_WIDTH,<br />
y: -(_rows / 2) * DEFAULT_CELL_HEIGHT,<br />
width: _columns * DEFAULT_CELL_WIDTH,<br />
height: _rows * DEFAULT_CELL_HEIGHT,<br />
draggable: true<br />
});</span></p>
<p><span style="color:brown">var xDisp = (2 * DEFAULT_CELL_STROKE_WIDTH + DEFAULT_SPANNER_WIDTH);<br />
var yDisp = (2 * DEFAULT_CELL_STROKE_WIDTH + DEFAULT_SPANNER_WIDTH);</span></p>
<p><span style="color:brown">for (var row = 0; row &lt; _rows; row++) {</span></p>
<p><span style="color:brown">_tableIndex[row] = new Array();</span></p>
<p><span style="color:brown">for (var col = 0; col &lt; _columns; col++) {</span></p>
<p><span style="color:brown">var box = createCell((col == 0) ? (2 * DEFAULT_CELL_STROKE_WIDTH) : (col * DEFAULT_CELL_WIDTH) + (col * xDisp),<br />
(row == 0) ? (2 * DEFAULT_CELL_STROKE_WIDTH) : (row * DEFAULT_CELL_HEIGHT) + (row * yDisp),<br />
DEFAULT_CELL_WIDTH, DEFAULT_CELL_HEIGHT);</span></p>
<p><span style="color:brown">_tblgroup.add(box);<br />
_tableIndex[row][col] = box;<br />
}<br />
}</span></p>
<p><span style="color:brown">//nameCells();<br />
createSpanners(true);</span></p>
<p><span style="color:brown">_tblgroup.on('mouseout', function (e) {<br />
document.body.style.cursor = 'default';<br />
});</span></p>
<p><span style="color:brown">_tblgroup.on('click', function (e) {</span></p>
<p><span style="color:brown">if (e.shape.getId() != "tableCell" &amp;&amp;<br />
e.shape.getId() != "vSplitter" &amp;&amp; e.shape.getId() != "hSplitter" &amp;&amp;<br />
e.shape.getName() != "spanLineCol" &amp;&amp; e.shape.getName() != "spanLineRow" &amp;&amp;<br />
event.shiftKey) {<br />
e.shape.parent.setX(_tblgroup.parent.getX() + e.shape.parent.getX() - _tblgroup.parent.getOffset().x);<br />
e.shape.parent.setY(_tblgroup.parent.getY() + e.shape.parent.getY() - _tblgroup.parent.getOffset().y);<br />
e.shape.parent.moveTo(_tbllayer);<br />
e.shape.parentTable = null;<br />
}<br />
else {<br />
// table in table<br />
if (e.shape.getId() == "tableCell" &amp;&amp; e.shape.parent != _tblgroup &amp;&amp; event.shiftKey) {<br />
//Nothing ToDo<br />
}<br />
else {<br />
groupEmbeddedShapes();<br />
}<br />
}<br />
});<br />
_tblgroup.on('dblclick', function (e) {<br />
});</span></p>
<p><span style="color:brown">_tbllayer.add(_tblgroup);<br />
_tblgroup._id = exports._id;<br />
selectCell(_tableIndex[0][0]);<br />
_stage.draw();<br />
}</span></p>
<p><span style="color:brown">/* Funtion to Create Cells in Table */<br />
function createCell(cellX, cellY, cellWidth, cellHeight, cellName) {</span></p>
<p><span style="color:brown">var cell = new Kinetic.Rect({<br />
id: "tableCell",<br />
name: cellName ? cellName : randomString(5),<br />
x: cellX,<br />
y: cellY,<br />
width: cellWidth,<br />
height: cellHeight,<br />
fill: DEFAULT_CELL_FILL,<br />
stroke: DEFAULT_CELL_STROKE,<br />
strokeWidth: DEFAULT_CELL_STROKE_WIDTH<br />
});</span></p>
<p><span style="color:brown">cell.on('click', function (evt) {<br />
selectCell(this);</span></p>
<p><span style="color:brown">if (event.ctrlLeft) {<br />
addSplitter(cell, "vertical");<br />
}</span></p>
<p><span style="color:brown">if (event.altLeft) {<br />
addSplitter(cell, "horizontal");<br />
}<br />
});</span></p>
<p><span style="color:brown">cell.on('mouseover', function (e) {<br />
document.body.style.cursor = 'crosshair';<br />
});</span></p>
<p><span style="color:brown">return cell;<br />
}</span></p>
<p><span style="color:brown">function updateSplitters(cell) {</span></p>
<p><span style="color:brown">if (cell.vSplitters) {</span></p>
<p><span style="color:brown">for (var i = 0; i &lt; cell.vSplitters.length; i++) {<br />
var vSplit = cell.vSplitters[i];<br />
var points = vSplit.getPoints();</span></p>
<p><span style="color:brown">var curSpltrX = points[0].x + vSplit.getX();</span></p>
<p><span style="color:brown">if (curSpltrX &lt; cell.getX()) {<br />
vSplit.setX(cell.getX() - points[0].x + DEFAULT_SPANNER_WIDTH);<br />
}</span></p>
<p><span style="color:brown">if (curSpltrX &gt; cell.getX() + cell.getWidth()) {<br />
vSplit.setX(cell.getX() + cell.getWidth() - points[0].x - DEFAULT_SPANNER_WIDTH);<br />
}<br />
points[0].y = cell.getY();<br />
points[1].y = cell.getY() + cell.getHeight();<br />
vSplit.setPoints(points);<br />
vSplit.setY(cell.getY() - points[0].y);<br />
}<br />
}</span></p>
<p><span style="color:brown">if (cell.hSplitters) {<br />
for (var i = 0; i &lt; cell.hSplitters.length; i++) {<br />
var hSplit = cell.hSplitters[i];<br />
var points = hSplit.getPoints();</span></p>
<p><span style="color:brown">var curSpltrY = points[0].y + hSplit.getY();</span></p>
<p><span style="color:brown">if (curSpltrY &lt; cell.getY()) {<br />
hSplit.setY(cell.getY() - points[0].y + DEFAULT_SPANNER_WIDTH);<br />
}</span></p>
<p><span style="color:brown">if (curSpltrY &gt; cell.getY() + cell.getHeight()) {<br />
hSplit.setY(cell.getY() + cell.getHeight() - points[0].y - DEFAULT_SPANNER_WIDTH);<br />
}<br />
points[0].x = cell.getX();<br />
points[1].x = cell.getX() + cell.getWidth();<br />
hSplit.setPoints(points);<br />
hSplit.setX(cell.getX() - points[0].x);<br />
}<br />
}<br />
}</span></p>
<p><span style="color:brown">function addSplitter(cell, type, evt) {</span></p>
<p><span style="color:brown">switch (type) {<br />
case "vertical":<br />
var x, y;</span></p>
<p><span style="color:brown">if (evt &amp;&amp; evt.x) {<br />
transformEventCoordsToCellCoords(cell, evt);<br />
x = cell.getX() + evt.x;<br />
y = cell.getY();<br />
}<br />
else {<br />
x = cell.getX() + cell.getWidth() / 2;<br />
y = cell.getY();<br />
}</span></p>
<p><span style="color:brown">var lineVSplitter = new Kinetic.Line({<br />
id: "vSplitter",<br />
name: cell.getName() + "vSplitter",<br />
points: [x, y, x, y + cell.getHeight()],<br />
stroke: cell.getStroke(),<br />
strokeWidth: DEFAULT_SPLITTER_WIDTH,<br />
draggable: true,<br />
dragOnTop: false<br />
});</span></p>
<p><span style="color:brown">lineVSplitter.on('mouseover', function (e) {<br />
$("body").css("cursor", "col-resize");<br />
});</span></p>
<p><span style="color:brown">lineVSplitter.on('dragmove', function (e) {<br />
this.setY(0);</span></p>
<p><span style="color:brown">var curSpltrX = this.getPoints()[0].x + this.getX();</span></p>
<p><span style="color:brown">if (curSpltrX &lt; cell.getX()) {<br />
this.setX(cell.getX() - this.getPoints()[0].x + DEFAULT_SPANNER_WIDTH);<br />
return;<br />
}</span></p>
<p><span style="color:brown">if (curSpltrX &gt; cell.getX() + cell.getWidth()) {<br />
this.setX(cell.getX() + cell.getWidth() - this.getPoints()[0].x - DEFAULT_SPANNER_WIDTH);<br />
return;<br />
}<br />
});</span></p>
<p><span style="color:brown">lineVSplitter.on('mouseout', function (e) {<br />
$("body").css("cursor", "default");<br />
});</span></p>
<p><span style="color:brown">lineVSplitter.on("mousedown dragstart", function () {<br />
_tblgroup.setDraggable(false);<br />
_tblgroup.parent.setDraggable(false);<br />
});</span></p>
<p><span style="color:brown">lineVSplitter.on("mouseup dragend", function () {<br />
_tblgroup.setDraggable(true);<br />
_tblgroup.parent.setDraggable(true);<br />
});</span></p>
<p><span style="color:brown">_tblgroup.add(lineVSplitter);<br />
if (!cell.vSplitters) cell.vSplitters = [];<br />
cell.vSplitters.push(lineVSplitter);<br />
break;</span></p>
<p><span style="color:brown">case "horizontal":<br />
var x, y;</span></p>
<p><span style="color:brown">if (evt &amp;&amp; evt.y) {<br />
transformEventCoordsToCellCoords(cell, evt);<br />
x = cell.getX();<br />
y = cell.getY() + evt.y;<br />
}<br />
else {<br />
x = cell.getX();<br />
y = cell.getY() + cell.getHeight() / 2;<br />
}</span></p>
<p><span style="color:brown">var lineHSplitter = new Kinetic.Line({<br />
id: "hSplitter",<br />
name: cell.getName() + "hSplitter",<br />
points: [x, y, x + cell.getWidth(), y],<br />
stroke: cell.getStroke(),<br />
strokeWidth: DEFAULT_SPLITTER_WIDTH,<br />
draggable: true,<br />
dragOnTop: false<br />
});</span></p>
<p><span style="color:brown">lineHSplitter.on('mouseover', function (e) {<br />
$("body").css("cursor", "row-resize");<br />
});</span></p>
<p><span style="color:brown">lineHSplitter.on('dragmove', function (e) {<br />
this.setX(0);</span></p>
<p><span style="color:brown">var curSpltrY = this.getPoints()[0].y + this.getY();</span></p>
<p><span style="color:brown">if (curSpltrY &lt; cell.getY()) {<br />
this.setY(cell.getY() - this.getPoints()[0].y + DEFAULT_SPANNER_WIDTH);<br />
return;<br />
}</span></p>
<p><span style="color:brown">if (curSpltrY &gt; cell.getY() + cell.getHeight()) {<br />
this.setY(cell.getY() + cell.getHeight() - this.getPoints()[0].y - DEFAULT_SPANNER_WIDTH);<br />
return;<br />
}<br />
});</span></p>
<p><span style="color:brown">lineHSplitter.on('mouseout', function (e) {<br />
$("body").css("cursor", "default");<br />
});</span></p>
<p><span style="color:brown">lineHSplitter.on("mousedown dragstart", function () {<br />
_tblgroup.setDraggable(false);<br />
_tblgroup.parent.setDraggable(false);<br />
});</span></p>
<p><span style="color:brown">lineHSplitter.on("mouseup dragend", function () {<br />
_tblgroup.setDraggable(true);<br />
_tblgroup.parent.setDraggable(true);<br />
});</span></p>
<p><span style="color:brown">_tblgroup.add(lineHSplitter);<br />
if (!cell.hSplitters) cell.hSplitters = [];<br />
cell.hSplitters.push(lineHSplitter);<br />
break;</span></p>
<p><span style="color:brown">default:<br />
break;<br />
}<br />
}</span></p>
<p><span style="color:brown">function removeSplitters(cell, type, evt) {</span></p>
<p><span style="color:brown">switch (type) {<br />
case "vertical":</span></p>
<p><span style="color:brown">if (cell.vSplitters) {<br />
if (evt &amp;&amp; evt.x) {<br />
transformEventCoordsToCellCoords(cell, evt);<br />
var nearest = 0;</span></p>
<p><span style="color:brown">for (var i = 1; i &lt; cell.vSplitters.length; i++) {<br />
var vSplit = cell.vSplitters[i];<br />
var vSplitNearest = cell.vSplitters[nearest];<br />
var splitX = vSplit.getPoints()[0].x + vSplit.getX();<br />
var splitXnearest = vSplitNearest.getPoints()[0].x + vSplitNearest.getX();</span></p>
<p><span style="color:brown">if (Math.abs(evt.x - splitXnearest) &gt; Math.abs(evt.x - splitX)) {<br />
nearest = i;<br />
}<br />
}</span></p>
<p><span style="color:brown">cell.vSplitters[nearest].remove();<br />
cell.vSplitters.splice(nearest, 1);<br />
if (0 == cell.vSplitters.length) cell.vSplitters = null;<br />
}<br />
else {<br />
for (var i = 0; i &lt; cell.vSplitters.length; i++) {<br />
cell.vSplitters[i].remove();<br />
}</span></p>
<p><span style="color:brown">cell.vSplitters = null;<br />
}<br />
}<br />
break;</span></p>
<p><span style="color:brown">case "horizontal":<br />
if (cell.hSplitters) {</span></p>
<p><span style="color:brown">if (evt &amp;&amp; evt.y) {<br />
transformEventCoordsToCellCoords(cell, evt);<br />
var nearest = 0;</span></p>
<p><span style="color:brown">for (var i = 1; i &lt; cell.hSplitters.length; i++) {<br />
var hSplit = cell.hSplitters[i];<br />
var hSplitNearest = cell.hSplitters[nearest];<br />
var splitY = hSplit.getPoints()[0].y + hSplit.getY();<br />
var splitYnearest = hSplitNearest.getPoints()[0].y + hSplitNearest.getY();</span></p>
<p><span style="color:brown">if (Math.abs(evt.y - splitYnearest) &gt; Math.abs(evt.y - splitY)) {<br />
nearest = i;<br />
}<br />
}</span></p>
<p><span style="color:brown">cell.hSplitters[nearest].remove();<br />
cell.hSplitters.splice(nearest, 1);<br />
if (0 == cell.hSplitters.length) cell.hSplitters = null;<br />
}<br />
else {<br />
for (var i = 0; i &lt; cell.hSplitters.length; i++) {<br />
cell.hSplitters[i].remove();<br />
}</span></p>
<p><span style="color:brown">cell.hSplitters = null;<br />
}<br />
}<br />
break;</span></p>
<p><span style="color:brown">default:<br />
break;<br />
}<br />
}</span></p>
<p><span style="color:brown">function moveSplitters(cell, disp) {</span></p>
<p><span style="color:brown">if (cell.vSplitters) {<br />
for (var i = 0; i &lt; cell.vSplitters.length; i++) {<br />
cell.vSplitters[i].move(disp.x, disp.y);<br />
}<br />
}</span></p>
<p><span style="color:brown">if (cell.hSplitters) {<br />
for (var i = 0; i &lt; cell.hSplitters.length; i++) {<br />
cell.hSplitters[i].move(disp.x, disp.y);<br />
}<br />
}</span></p>
<p><span style="color:brown">updateSplitters(cell);<br />
}</span></p>
<p><span style="color:brown">function createSpanners(init) {</span></p>
<p><span style="color:brown">if (!init) {<br />
// remove previous ones<br />
var rowSpans = _tblgroup.get(".spanLineRow");</span></p>
<p><span style="color:brown">for (var i = 0; i &lt; rowSpans.length; i++) {<br />
rowSpans[i].remove();<br />
}</span></p>
<p><span style="color:brown">var colSpans = _tblgroup.get(".spanLineCol");</span></p>
<p><span style="color:brown">for (var i = 0; i &lt; colSpans.length; i++) {<br />
colSpans[i].remove();<br />
}<br />
}</span></p>
<p><span style="color:brown">var row = 0;<br />
for (var col = 1; col &lt; _tableIndex[row].length; col++) {</span></p>
<p><span style="color:brown">var cell = _tableIndex[row][col];</span></p>
<p><span style="color:brown">var lineCol = new Kinetic.Line({<br />
name: "spanLineCol",<br />
id: col,<br />
points: [cell.getX() - DEFAULT_SPANNER_WIDTH + (2 * DEFAULT_CELL_STROKE_WIDTH), cell.getY(),<br />
cell.getX() - DEFAULT_SPANNER_WIDTH + (2 * DEFAULT_CELL_STROKE_WIDTH), exports.getHeight()],</span></p>
<p><span style="color:brown">stroke: DEFAULT_SPANNER_STROKE,<br />
strokeWidth: DEFAULT_SPANNER_WIDTH,<br />
dashArray: [DEFAULT_SPANNER_WIDTH, DEFAULT_SPANNER_WIDTH, DEFAULT_SPANNER_WIDTH, DEFAULT_SPANNER_WIDTH],<br />
lineCap: 'round',<br />
lineJoin: 'round',<br />
draggable: true,<br />
dragOnTop: false<br />
});</span></p>
<p><span style="color:brown">lineCol.on('mouseover', function (e) {<br />
$("body").css("cursor", "col-resize");<br />
});</span></p>
<p><span style="color:brown">lineCol.on('dragmove', function (e) {<br />
this.setY(0);<br />
spanColumn(e.shape);<br />
});</span></p>
<p><span style="color:brown">lineCol.on('mouseout', function (e) {<br />
$("body").css("cursor", "default");<br />
});</span></p>
<p><span style="color:brown">lineCol.on("mousedown dragstart", function () {<br />
_tblgroup.setDraggable(false);<br />
_tblgroup.parent.setDraggable(false);<br />
});</span></p>
<p><span style="color:brown">lineCol.on("mouseup dragend", function () {<br />
_tblgroup.setDraggable(true);<br />
_tblgroup.parent.setDraggable(true);<br />
});</span></p>
<p><span style="color:brown">_tblgroup.add(lineCol);<br />
}</span></p>
<p><span style="color:brown">var col = 0;<br />
for (var row = 1; row &lt; _tableIndex.length; row++) {</span></p>
<p><span style="color:brown">var cell = _tableIndex[row][col];</span></p>
<p><span style="color:brown">var lineRow = new Kinetic.Line({<br />
name: "spanLineRow",<br />
id: row,<br />
points: [cell.getX(), cell.getY() - DEFAULT_SPANNER_WIDTH + (2 * DEFAULT_CELL_STROKE_WIDTH),<br />
exports.getWidth(), cell.getY() - DEFAULT_SPANNER_WIDTH + (2 * DEFAULT_CELL_STROKE_WIDTH)],<br />
stroke: DEFAULT_SPANNER_STROKE,<br />
strokeWidth: DEFAULT_SPANNER_WIDTH,<br />
dashArray: [DEFAULT_SPANNER_WIDTH, DEFAULT_SPANNER_WIDTH, DEFAULT_SPANNER_WIDTH, DEFAULT_SPANNER_WIDTH],<br />
lineCap: 'round',<br />
lineJoin: 'round',<br />
draggable: true,<br />
dragOnTop: false<br />
});</span></p>
<p><span style="color:brown">lineRow.on('mouseover', function (e) {<br />
$("body").css("cursor", "row-resize");<br />
});</span></p>
<p><span style="color:brown">lineRow.on('dragmove', function (e) {<br />
this.setX(0);<br />
spanRow(e.shape);<br />
});</span></p>
<p><span style="color:brown">lineRow.on('mouseout', function (e) {<br />
$("body").css("cursor", "default");<br />
});</span></p>
<p><span style="color:brown">lineRow.on("mousedown dragstart", function () {<br />
_tblgroup.setDraggable(false);<br />
_tblgroup.parent.setDraggable(false);<br />
});</span></p>
<p><span style="color:brown">lineRow.on("mouseup dragend", function () {<br />
_tblgroup.setDraggable(true);<br />
_tblgroup.parent.setDraggable(true);<br />
});</span></p>
<p><span style="color:brown">_tblgroup.add(lineRow);<br />
}</span></p>
<p><span style="color:brown">if (exports.selectedCell) {<br />
exports.selectedCell.show();<br />
}<br />
}</span></p>
<p><span style="color:brown">function spanColumn(spanner) {</span></p>
<p><span style="color:brown">var col = Number(spanner.getId());<br />
var curSpanX = spanner.getPoints()[0].x + spanner.getX();</span></p>
<p><span style="color:brown">for (var row = 0; row &lt; _tableIndex.length; row++) {</span></p>
<p><span style="color:brown">var lCell = _tableIndex[row][col - 1];<br />
var rCell = _tableIndex[row][col];</span></p>
<p><span style="color:brown">if (lCell.getWidth() &lt;= MIN_CELL_DIM &amp;&amp; (curSpanX - DEFAULT_SPANNER_WIDTH) &lt;= (lCell.getX() + lCell.getWidth())) {<br />
spanner.setX((lCell.getX() + lCell.getWidth() + (4 * DEFAULT_CELL_STROKE_WIDTH)) - spanner.getPoints()[0].x);<br />
return;<br />
}</span></p>
<p><span style="color:brown">if (rCell.getWidth() &lt;= MIN_CELL_DIM &amp;&amp; curSpanX &gt;= rCell.getX()) {<br />
spanner.setX((rCell.getX() - (4 * DEFAULT_CELL_STROKE_WIDTH)) - spanner.getPoints()[0].x);<br />
return;<br />
}</span></p>
<p><span style="color:brown">var diff = curSpanX - rCell.getX() + (4 * DEFAULT_CELL_STROKE_WIDTH);</span></p>
<p><span style="color:brown">lCell.setWidth(lCell.getWidth() + diff);<br />
rCell.setWidth(rCell.getWidth() - diff);</span></p>
<p><span style="color:brown">var embShapes = _tblgroup.get("." + rCell.getName());</span></p>
<p><span style="color:brown">for (var i = 0; i &lt; embShapes.length; i++) {<br />
embShapes[i].setX(embShapes[i].getX() + diff);<br />
}</span></p>
<p><span style="color:brown">updateSplitters(lCell);<br />
updateSplitters(rCell);<br />
}<br />
}</span></p>
<p><span style="color:brown">function spanRow(spanner) {</span></p>
<p><span style="color:brown">var row = Number(spanner.getId());<br />
var curSpanY = spanner.getPoints()[0].y + spanner.getY();</span></p>
<p><span style="color:brown">for (var col = 0; col &lt; _tableIndex[row].length; col++) {</span></p>
<p><span style="color:brown">var tCell = _tableIndex[row - 1][col];<br />
var bCell = _tableIndex[row][col];</span></p>
<p><span style="color:brown">if (tCell.getHeight() &lt;= MIN_CELL_DIM &amp;&amp; (curSpanY - DEFAULT_SPANNER_WIDTH) &lt;= (tCell.getY() + tCell.getHeight())) {<br />
spanner.setY((tCell.getY() + tCell.getHeight() + (4 * DEFAULT_CELL_STROKE_WIDTH)) - spanner.getPoints()[0].y);<br />
return;<br />
}</span></p>
<p><span style="color:brown">if (bCell.getHeight() &lt;= MIN_CELL_DIM &amp;&amp; curSpanY &gt;= bCell.getY()) {<br />
spanner.setY((bCell.getY() - (4 * DEFAULT_CELL_STROKE_WIDTH)) - spanner.getPoints()[0].y);<br />
return;<br />
}</span></p>
<p><span style="color:brown">var diff = curSpanY - bCell.getY() + (4 * DEFAULT_CELL_STROKE_WIDTH);</span></p>
<p><span style="color:brown">tCell.setHeight(tCell.getHeight() + diff);<br />
bCell.setHeight(bCell.getHeight() - diff);</span></p>
<p><span style="color:brown">var embShapes = _tblgroup.get("." + bCell.getName());</span></p>
<p><span style="color:brown">for (var i = 0; i &lt; embShapes.length; i++) {<br />
embShapes[i].setY(embShapes[i].getY() + diff);<br />
}</span></p>
<p><span style="color:brown">updateSplitters(tCell);<br />
updateSplitters(bCell);<br />
}<br />
}</span></p>
<p><span style="color:brown">/* Function to Select Indivisual Cell in Table*/<br />
function selectCell(cell) {</span></p>
<p><span style="color:brown">if (exports.selectedCell &amp;&amp; exports.selectedCell.sCell() == cell) return;</span></p>
<p><span style="color:brown">if (exports.selectedCell) {<br />
exports.selectedCell.hide();<br />
}<br />
exports.selectedCell = new SelectedCell(cell, null);<br />
exports.selectedCell.show();<br />
_stage.draw();<br />
}</span></p>
<p><span style="color:brown">function selectTable() {</span></p>
<p><span style="color:brown">if (exports.selectedCell) {<br />
exports.selectedCell.hide();<br />
}</span></p>
<p><span style="color:brown">exports.selectedCell = new SelectedCell(null, _tableIndex);<br />
exports.selectedCell.show();<br />
_stage.draw();<br />
}</span></p>
<p><span style="color:brown">function resizeRowSpanners(diff, bLeft) {</span></p>
<p><span style="color:brown">var rowSpans = _tblgroup.get(".spanLineRow");</span></p>
<p><span style="color:brown">for (var i = 0; i &lt; rowSpans.length; i++) {<br />
rowSpans[i].attrs.points[1].x += diff;<br />
}</span></p>
<p><span style="color:brown">if (bLeft) {<br />
var colSpans = _tblgroup.get(".spanLineCol");</span></p>
<p><span style="color:brown">for (var i = 0; i &lt; colSpans.length; i++) {<br />
colSpans[i].attrs.points[0].x += diff;<br />
colSpans[i].attrs.points[1].x += diff;<br />
}<br />
}</span></p>
<p><span style="color:brown">_tblgroup.setWidth(_tblgroup.getWidth() + diff);<br />
}</span></p>
<p><span style="color:brown">function resizeColSpanners(diff, bTop) {<br />
var colSpans = _tblgroup.get(".spanLineCol");</span></p>
<p><span style="color:brown">for (var i = 0; i &lt; colSpans.length; i++) {<br />
colSpans[i].attrs.points[1].y += diff;<br />
}</span></p>
<p><span style="color:brown">if (bTop) {<br />
var rowSpans = _tblgroup.get(".spanLineRow");</span></p>
<p><span style="color:brown">for (var i = 0; i &lt; rowSpans.length; i++) {<br />
rowSpans[i].attrs.points[0].y += diff;<br />
rowSpans[i].attrs.points[1].y += diff;<br />
}<br />
}</span></p>
<p><span style="color:brown">_tblgroup.setHeight(_tblgroup.getHeight() + diff);<br />
}</span></p>
<p><span style="color:brown">function groupEmbeddedShapes() {</span></p>
<p><span style="color:brown">var oldRot = _tblgroup.parent.getRotation();<br />
_tblgroup.parent.setRotation(0);</span></p>
<p><span style="color:brown">for (var key in _embeddedShapes) {</span></p>
<p><span style="color:brown">if (_embeddedShapes.hasOwnProperty(key)) {<br />
var shape = _embeddedShapes[key];<br />
var oldChld = _tblgroup.children.length;</span></p>
<p><span style="color:brown">shape.moveTo(_tblgroup);</span></p>
<p><span style="color:brown">if (oldChld != _tblgroup.children.length) {</span></p>
<p><span style="color:brown">shape.setX(shape.getX() - _tblgroup.parent.getX() + _tblgroup.parent.getOffset().x);<br />
shape.setY(shape.getY() - _tblgroup.parent.getY() + _tblgroup.parent.getOffset().y);</span></p>
<p><span style="color:brown">shape.setName("");<br />
bInside = false;</span></p>
<p><span style="color:brown">for (var row = 0; row &lt; _tableIndex.length &amp;&amp; bInside == false; row++) {<br />
for (var col = 0; col &lt; _tableIndex[row].length; col++) {<br />
cell = _tableIndex[row][col];<br />
if (exports.areShapesOverlapping(cell, shape)) {<br />
shape.setName(cell.getName());<br />
bInside = true;<br />
break;<br />
}<br />
}<br />
}<br />
}</span></p>
<p><span style="color:brown">if (!bInside) {<br />
shape.setX(_tblgroup.parent.getX() + shape.getX() - _tblgroup.parent.getOffset().x);<br />
shape.setY(_tblgroup.parent.getY() + shape.getY() - _tblgroup.parent.getOffset().y);<br />
shape.moveTo(_tbllayer);<br />
}<br />
}<br />
}</span></p>
<p><span style="color:brown">_tblgroup.parent.setRotation(oldRot);<br />
}</span></p>
<p><span style="color:brown">function transformEventCoordsToCellCoords(cell, evt) {</span></p>
<p><span style="color:brown">if (cell &amp;&amp; evt) {<br />
var m = cell.getAbsoluteTransform();<br />
var n = new Kinetic.Transform();<br />
n.multiply(m);<br />
n.invert();<br />
n.translate(evt.x, evt.y)<br />
evt.x = n.getMatrix()[4];<br />
evt.y = n.getMatrix()[5];<br />
}<br />
}</span></p>
<p><span style="color:brown">/* Function to insert Row into the Table */<br />
exports.insertRow = function (index) {</span></p>
<p><span style="color:brown">if (index &lt; 0) index = 0;<br />
if (index == undefined || index &gt;= _rows) index = _rows;</span></p>
<p><span style="color:brown">var row = new Array();</span></p>
<p><span style="color:brown">if (index &gt;= _tableIndex.length) {<br />
for (var col = 0; col &lt; _tableIndex[index - 1].length; col++) {<br />
var refCell = _tableIndex[index - 1][col];<br />
var cell = createCell(refCell.getX(), refCell.getY() + DEFAULT_SPANNER_WIDTH + refCell.getHeight(), refCell.getWidth(), DEFAULT_CELL_HEIGHT);<br />
row.push(cell);<br />
_tblgroup.add(cell);<br />
}</span></p>
<p><span style="color:brown">_tableIndex.splice(index, 0, row);<br />
}<br />
else {<br />
for (var col = 0; col &lt; _tableIndex[index].length; col++) {<br />
var refCell = _tableIndex[index][col];<br />
var cell = createCell(refCell.getX(), refCell.getY(), refCell.getWidth(), DEFAULT_CELL_HEIGHT);<br />
row.push(cell);<br />
_tblgroup.add(cell);<br />
}</span></p>
<p><span style="color:brown">_tableIndex.splice(index, 0, row);</span></p>
<p><span style="color:brown">for (var rowInd = index + 1; rowInd &lt; _tableIndex.length; rowInd++) {<br />
for (var col = 0; col &lt; _tableIndex[rowInd].length; col++) {<br />
var cell = _tableIndex[rowInd][col];</span></p>
<p><span style="color:brown">// move linked shapes too<br />
var embShapes = _tblgroup.get("." + cell.getName());</span></p>
<p><span style="color:brown">for (var i = 0; i &lt; embShapes.length; i++) {<br />
embShapes[i].move(0, DEFAULT_CELL_HEIGHT + DEFAULT_CELL_STROKE_WIDTH + DEFAULT_SPANNER_WIDTH);<br />
}</span></p>
<p><span style="color:brown">moveSplitters(cell, { x: 0, y: DEFAULT_CELL_HEIGHT + DEFAULT_CELL_STROKE_WIDTH + DEFAULT_SPANNER_WIDTH });<br />
}<br />
}<br />
}</span></p>
<p><span style="color:brown">_rows++;</span></p>
<p><span style="color:brown">createSpanners();<br />
_stage.draw();<br />
}</span></p>
<p><span style="color:brown">/* Function to delete Row from the Table */<br />
exports.deleteRow = function (index) {</span></p>
<p><span style="color:brown">if (_rows == 1) return;</span></p>
<p><span style="color:brown">if (index == undefined) index = _rows - 1;</span></p>
<p><span style="color:brown">var diff = _tableIndex[index][0].getHeight();</span></p>
<p><span style="color:brown">for (var row = index; row &lt; _tableIndex.length; row++) {<br />
for (var col = 0; col &lt; _tableIndex[row].length; col++) {</span></p>
<p><span style="color:brown">var cell = _tableIndex[row][col];<br />
var embShapes = _tblgroup.get("." + cell.getName());</span></p>
<p><span style="color:brown">if (row == index) {<br />
// delete linked shapes too<br />
for (var i = 0; i &lt; embShapes.length; i++) {<br />
embShapes[i].remove();<br />
}</span></p>
<p><span style="color:brown">removeSplitters(cell, "vertical");<br />
removeSplitters(cell, "horizontal");<br />
}<br />
else {<br />
for (var i = 0; i &lt; embShapes.length; i++) {<br />
embShapes[i].move(0, -(diff + DEFAULT_CELL_STROKE_WIDTH + DEFAULT_SPANNER_WIDTH));<br />
}</span></p>
<p><span style="color:brown">moveSplitters(cell, { x: 0, y: -(diff + DEFAULT_CELL_STROKE_WIDTH + DEFAULT_SPANNER_WIDTH) });<br />
}<br />
}<br />
}</span></p>
<p><span style="color:brown">_tableIndex.splice(index, 1);<br />
_rows--;</span></p>
<p><span style="color:brown">createSpanners();<br />
_stage.draw();<br />
}</span></p>
<p><span style="color:brown">/* Function to insert Column into the Table */<br />
exports.insertColumn = function (index) {</span></p>
<p><span style="color:brown">if (index &lt; 0) index = 0;<br />
if (index == undefined || index &gt;= _columns) index = _columns;</span></p>
<p><span style="color:brown">for (var row = 0; row &lt; _tableIndex.length; row++) {</span></p>
<p><span style="color:brown">if (index &gt;= _tableIndex[row].length) {</span></p>
<p><span style="color:brown">var refCell = _tableIndex[row][index - 1];<br />
var cell = createCell(refCell.getX() + refCell.getWidth() + DEFAULT_CELL_STROKE_WIDTH + DEFAULT_SPANNER_WIDTH, refCell.getY(), DEFAULT_CELL_WIDTH, refCell.getHeight());<br />
_tableIndex[row].push(cell);<br />
_tblgroup.add(cell);<br />
}<br />
else {<br />
var refCell = _tableIndex[row][index];<br />
var newCell = createCell(refCell.getX(), refCell.getY(), DEFAULT_CELL_WIDTH, refCell.getHeight());<br />
_tableIndex[row].splice(index, 0, newCell);<br />
_tblgroup.add(newCell);</span></p>
<p><span style="color:brown">for (var colInd = index + 1; colInd &lt; _tableIndex[row].length; colInd++) {<br />
var cell = _tableIndex[row][colInd];</span></p>
<p><span style="color:brown">// move linked shapes too<br />
var embShapes = _tblgroup.get("." + cell.getName());</span></p>
<p><span style="color:brown">for (var i = 0; i &lt; embShapes.length; i++) {<br />
embShapes[i].move(DEFAULT_CELL_WIDTH + DEFAULT_CELL_STROKE_WIDTH + DEFAULT_SPANNER_WIDTH, 0);<br />
}</span></p>
<p><span style="color:brown">moveSplitters(cell, { x: DEFAULT_CELL_WIDTH + DEFAULT_CELL_STROKE_WIDTH + DEFAULT_SPANNER_WIDTH, y: 0 });<br />
}<br />
}<br />
}</span></p>
<p><span style="color:brown">_columns++;<br />
createSpanners();<br />
_stage.draw();<br />
}</span></p>
<p><span style="color:brown">/* Function to delete column from the Table */<br />
exports.deleteColumn = function (index) {</span></p>
<p><span style="color:brown">if (_columns == 1) return;</span></p>
<p><span style="color:brown">if (index == undefined) index = _columns - 1;</span></p>
<p><span style="color:brown">var diff = _tableIndex[0][index].getWidth();</span></p>
<p><span style="color:brown">for (var row = 0; row &lt; _tableIndex.length; row++) {<br />
for (var col = index; col &lt; _tableIndex[row].length; col++) {</span></p>
<p><span style="color:brown">var cell = _tableIndex[row][col];</span></p>
<p><span style="color:brown">var embShapes = _tblgroup.get("." + cell.getName());</span></p>
<p><span style="color:brown">if (col == index) {<br />
// delete linked shapes too<br />
for (var i = 0; i &lt; embShapes.length; i++) {<br />
embShapes[i].remove();<br />
}</span></p>
<p><span style="color:brown">removeSplitters(cell, "vertical");<br />
removeSplitters(cell, "horizontal");<br />
}<br />
else {<br />
for (var i = 0; i &lt; embShapes.length; i++) {<br />
embShapes[i].move(-(diff + DEFAULT_CELL_STROKE_WIDTH + DEFAULT_SPANNER_WIDTH), 0);<br />
}</span></p>
<p><span style="color:brown">moveSplitters(cell, { x: -(diff + DEFAULT_CELL_STROKE_WIDTH + DEFAULT_SPANNER_WIDTH), y: 0 });<br />
}<br />
}</span></p>
<p><span style="color:brown">_tableIndex[row].splice(index, 1);<br />
}</span></p>
<p><span style="color:brown">_columns--;<br />
createSpanners();<br />
_stage.draw();<br />
}</span></p>
<p><span style="color:brown">exports.rows = function () {<br />
return _rows;<br />
}</span></p>
<p><span style="color:brown">exports.columns = function () {<br />
return _columns;<br />
}</span></p>
<p><span style="color:brown">exports.group = function () {<br />
return _tblgroup;<br />
}</span></p>
<p><span style="color:brown">exports.getCell = function (row, col) {<br />
if (row &gt;= 0 &amp;&amp; row &lt; _rows &amp;&amp; col &gt;= 0 &amp;&amp; col &lt; _columns) {<br />
return _tableIndex[row][col];<br />
}<br />
}</span></p>
<p><span style="color:brown">exports.addShape = function (shape) {</span></p>
<p><span style="color:brown">_embeddedShapes[shape._id] = shape;</span></p>
<p><span style="color:brown">shape.parentTable = exports;<br />
}</span></p>
<p><span style="color:brown">exports.removeShape = function (shape) {</span></p>
<p><span style="color:brown">if (_embeddedShapes[shape._id]) {<br />
delete _embeddedShapes[shape._id]<br />
}<br />
}</span></p>
<p><span style="color:brown">exports.getSelectedIndex = function () {</span></p>
<p><span style="color:brown">var cell = exports.selectedCell.sCell();</span></p>
<p><span style="color:brown">if (cell) {<br />
for (var row = 0; row &lt; _tableIndex.length; row++) {<br />
for (var col = 0; col &lt; _tableIndex[row].length; col++) {<br />
if (_tableIndex[row][col] == cell) {<br />
return { row: row, column: col };<br />
}<br />
}<br />
}<br />
}</span></p>
<p><span style="color:brown">return null;<br />
}</span></p>
<p><span style="color:brown">exports.update = function () {<br />
groupEmbeddedShapes();<br />
}</span></p>
<p><span style="color:brown">exports.initDone = function () {</span></p>
<p><span style="color:brown">if (_tblgroup.parent &amp;&amp; _tblgroup.parent.getId() == "marquee") {<br />
var borderLine = _tblgroup.parent.get(".borderLines")[0];</span></p>
<p><span style="color:brown">if (borderLine) {<br />
borderLine.on("click", function (e) {<br />
selectTable();<br />
});<br />
}<br />
}<br />
}</span></p>
<p><span style="color:brown">exports.splitCellVertical = function (row, col, evt) {<br />
if (row &gt;= 0 &amp;&amp; row &lt; _rows &amp;&amp; col &gt;= 0 &amp;&amp; col &lt; _columns) {<br />
var cell = _tableIndex[row][col];</span></p>
<p><span style="color:brown">addSplitter(cell, "vertical", evt);<br />
}<br />
}</span></p>
<p><span style="color:brown">exports.mergeCellVertical = function (row, col, evt) {<br />
if (row &gt;= 0 &amp;&amp; row &lt; _rows &amp;&amp; col &gt;= 0 &amp;&amp; col &lt; _columns) {<br />
var cell = _tableIndex[row][col];</span></p>
<p><span style="color:brown">removeSplitters(cell, "vertical", evt);<br />
}<br />
}</span></p>
<p><span style="color:brown">exports.splitCellHorizontal = function (row, col, evt) {<br />
if (row &gt;= 0 &amp;&amp; row &lt; _rows &amp;&amp; col &gt;= 0 &amp;&amp; col &lt; _columns) {<br />
var cell = _tableIndex[row][col];</span></p>
<p><span style="color:brown">addSplitter(cell, "horizontal", evt);<br />
}<br />
}</span></p>
<p><span style="color:brown">exports.mergeCellHorizontal = function (row, col, evt) {<br />
if (row &gt;= 0 &amp;&amp; row &lt; _rows &amp;&amp; col &gt;= 0 &amp;&amp; col &lt; _columns) {<br />
var cell = _tableIndex[row][col];</span></p>
<p><span style="color:brown">removeSplitters(cell, "horizontal", evt);<br />
}<br />
}</span></p>
<p><span style="color:brown">exports.hasVertSplitters = function (row, col) {<br />
if (row &gt;= 0 &amp;&amp; row &lt; _rows &amp;&amp; col &gt;= 0 &amp;&amp; col &lt; _columns) {<br />
var cell = _tableIndex[row][col];</span></p>
<p><span style="color:brown">if (cell.vSplitters) return true;<br />
}</span></p>
<p><span style="color:brown">return false;<br />
}</span></p>
<p><span style="color:brown">exports.hasHorizSplitters = function (row, col) {<br />
if (row &gt;= 0 &amp;&amp; row &lt; _rows &amp;&amp; col &gt;= 0 &amp;&amp; col &lt; _columns) {<br />
var cell = _tableIndex[row][col];</span></p>
<p><span style="color:brown">if (cell.hSplitters) return true;<br />
}<br />
return false;<br />
}</span></p>
<p><span style="color:brown">// getters<br />
exports.getId = function () {<br />
return null;<br />
}</span></p>
<p><span style="color:brown">exports.getName = function () {<br />
return null;<br />
}</span></p>
<p><span style="color:brown">exports.getLayer = function () {<br />
return _tbllayer;<br />
}</span></p>
<p><span style="color:brown">exports.getStage = function () {<br />
return _stage;<br />
}</span></p>
<p><span style="color:brown">exports.getZIndex = function () {<br />
return _tblgroup.getZIndex();<br />
}</span></p>
<p><span style="color:brown">exports.getOffset = function () {<br />
if (_tblgroup.parent &amp;&amp; _tblgroup.parent.getId() == "marquee") {<br />
return _tblgroup.parent.getOffset();<br />
}<br />
else {<br />
return _tblgroup.getOffset();<br />
}<br />
}</span></p>
<p><span style="color:brown">exports.getScale = function () {<br />
return _tblgroup.getScale();<br />
}</span></p>
<p><span style="color:brown">/* Function to get width of the Table */<br />
exports.getWidth = function () {<br />
var row = _rows - 1;<br />
var width = 0 - (2 * DEFAULT_CELL_STROKE_WIDTH);</span></p>
<p><span style="color:brown">for (var i = 0; i &lt; _tableIndex[row].length; i++) {<br />
width += _tableIndex[row][i].getWidth() + DEFAULT_CELL_STROKE_WIDTH + DEFAULT_SPANNER_WIDTH;<br />
}</span></p>
<p><span style="color:brown">_tblgroup.setWidth(width);</span></p>
<p><span style="color:brown">return width;<br />
}</span></p>
<p><span style="color:brown">/* Function to get height of the Table */<br />
exports.getHeight = function () {<br />
var col = _columns - 1<br />
var height = 0 - (2 * DEFAULT_CELL_STROKE_WIDTH);</span></p>
<p><span style="color:brown">for (var i = 0; i &lt; _tableIndex.length; i++) {<br />
height += _tableIndex[i][col].getHeight() + DEFAULT_CELL_STROKE_WIDTH + DEFAULT_SPANNER_WIDTH;<br />
}</span></p>
<p><span style="color:brown">_tblgroup.setHeight(height);</span></p>
<p><span style="color:brown">return height;<br />
}</span></p>
<p><span style="color:brown">exports.getX = function () {<br />
if (_tblgroup.parent &amp;&amp; _tblgroup.parent.getId() == "marquee") {<br />
return _tblgroup.parent.getX();<br />
}<br />
else {<br />
return _tblgroup.getX();<br />
}<br />
}</span></p>
<p><span style="color:brown">exports.getY = function () {<br />
if (_tblgroup.parent &amp;&amp; _tblgroup.parent.getId() == "marquee") {<br />
return _tblgroup.parent.getY();<br />
}<br />
else {<br />
return _tblgroup.getY();<br />
}<br />
}</span></p>
<p><span style="color:brown">// setters<br />
exports.setX = function (val) {<br />
_tblgroup.setX(val);<br />
}</span></p>
<p><span style="color:brown">exports.setY = function (val) {<br />
_tblgroup.setY(val);<br />
}</span></p>
<p><span style="color:brown">exports.moveTo = function (shp) {<br />
_tblgroup.moveTo(shp);<br />
}</span></p>
<p><span style="color:brown">exports.setDraggable = function (val) {<br />
_tblgroup.setDraggable(val);<br />
}</span></p>
<p><span style="color:brown">exports.setWidth = function (val, anchor) {</span></p>
<p><span style="color:brown">var diff = val - exports.getWidth();</span></p>
<p><span style="color:brown">if (anchor) {<br />
var anchorName = anchor.getName();</span></p>
<p><span style="color:brown">switch (anchorName) {</span></p>
<p><span style="color:brown">case "cpLeft":<br />
for (var row = 0; row &lt; _tableIndex.length; row++) {<br />
for (var col = 0; col &lt; _tableIndex[row].length; col++) {</span></p>
<p><span style="color:brown">var cell = _tableIndex[row][col];</span></p>
<p><span style="color:brown">if (col == 0) {<br />
var newWidth = cell.getWidth() + diff;</span></p>
<p><span style="color:brown">if (newWidth &gt; MIN_CELL_DIM) {<br />
cell.setWidth(newWidth);<br />
if (row == 0) resizeRowSpanners(diff, true);<br />
}<br />
else {<br />
_tblgroup.parent.move(diff, 0);<br />
diff = 0;<br />
}<br />
}<br />
else {<br />
var embShapes = _tblgroup.get("." + cell.getName());</span></p>
<p><span style="color:brown">for (var i = 0; i &lt; embShapes.length; i++) {<br />
embShapes[i].move(diff, 0);<br />
}<br />
}</span></p>
<p><span style="color:brown">updateSplitters(cell);<br />
}<br />
}<br />
break;</span></p>
<p><span style="color:brown">case "cpRight":<br />
var col = _columns - 1;</span></p>
<p><span style="color:brown">for (var row = 0; row &lt; _tableIndex.length; row++) {<br />
var cell = _tableIndex[row][col];<br />
var newWidth = cell.getWidth() + diff;</span></p>
<p><span style="color:brown">if (newWidth &gt; MIN_CELL_DIM) {<br />
cell.setWidth(newWidth);<br />
if (row == 0) resizeRowSpanners(diff, false);<br />
}</span></p>
<p><span style="color:brown">updateSplitters(cell);<br />
}<br />
break;</span></p>
<p><span style="color:brown">case "cpTopRight":<br />
case "cpBottomRight":<br />
case "cpTopLeft":<br />
case "cpBottomLeft":<br />
var frac = diff / _columns;<br />
var action = false;</span></p>
<p><span style="color:brown">for (var row = 0; row &lt; _tableIndex.length; row++) {<br />
for (var col = 0; col &lt; _tableIndex[row].length; col++) {</span></p>
<p><span style="color:brown">var cell = _tableIndex[row][col];<br />
var newWidth = cell.getWidth() + frac;</span></p>
<p><span style="color:brown">if (newWidth &gt; MIN_CELL_DIM) {<br />
action = true;<br />
cell.setWidth(newWidth);</span></p>
<p><span style="color:brown">for (var cc = col + 1; cc &lt; _tableIndex[row].length; cc++) {<br />
var nCell = _tableIndex[row][cc];</span></p>
<p><span style="color:brown">var embShapes = _tblgroup.get("." + nCell.getName());</span></p>
<p><span style="color:brown">for (var i = 0; i &lt; embShapes.length; i++) {<br />
embShapes[i].move(frac, 0);<br />
}<br />
}<br />
}</span></p>
<p><span style="color:brown">updateSplitters(cell);<br />
}<br />
}</span></p>
<p><span style="color:brown">if (action) {<br />
createSpanners();<br />
}<br />
else {<br />
if (anchorName != "cpBottomRight" &amp;&amp; anchorName != "cpTopRight") {<br />
_tblgroup.parent.move(diff, 0);<br />
}<br />
}</span></p>
<p><span style="color:brown">break;</span></p>
<p><span style="color:brown">default:<br />
break;<br />
}<br />
}<br />
}</span></p>
<p><span style="color:brown">exports.setHeight = function (val, anchor) {</span></p>
<p><span style="color:brown">var diff = val - exports.getHeight();</span></p>
<p><span style="color:brown">if (anchor) {<br />
var anchorName = anchor.getName();</span></p>
<p><span style="color:brown">switch (anchorName) {</span></p>
<p><span style="color:brown">case "cpTop":</span></p>
<p><span style="color:brown">for (var row = 0; row &lt; _tableIndex.length; row++) {<br />
for (var col = 0; col &lt; _tableIndex[row].length; col++) {<br />
var cell = _tableIndex[row][col];</span></p>
<p><span style="color:brown">if (row == 0) {<br />
var newHeight = cell.getHeight() + diff;</span></p>
<p><span style="color:brown">if (newHeight &gt; MIN_CELL_DIM) {<br />
cell.setHeight(newHeight);<br />
if (col == 0) resizeColSpanners(diff, true);<br />
}<br />
else {<br />
_tblgroup.parent.move(0, diff);<br />
diff = 0;<br />
}<br />
}<br />
else {<br />
var embShapes = _tblgroup.get("." + cell.getName());</span></p>
<p><span style="color:brown">for (var i = 0; i &lt; embShapes.length; i++) {<br />
embShapes[i].move(0, diff);<br />
}<br />
}</span></p>
<p><span style="color:brown">updateSplitters(cell);<br />
}<br />
}<br />
break;</span></p>
<p><span style="color:brown">case "cpBottom":<br />
var row = _rows - 1;</span></p>
<p><span style="color:brown">for (var col = 0; col &lt; _tableIndex[row].length; col++) {<br />
var cell = _tableIndex[row][col];<br />
var newHeight = cell.getHeight() + diff;</span></p>
<p><span style="color:brown">if (newHeight &gt; MIN_CELL_DIM) {<br />
cell.setHeight(newHeight);<br />
if (col == 0) resizeColSpanners(diff, false);<br />
}</span></p>
<p><span style="color:brown">updateSplitters(cell);<br />
}<br />
break;</span></p>
<p><span style="color:brown">case "cpBottomRight":<br />
case "cpBottomLeft":<br />
case "cpTopLeft":<br />
case "cpTopRight":<br />
var frac = diff / _rows;<br />
var action = false;</span></p>
<p><span style="color:brown">for (var row = 0; row &lt; _tableIndex.length; row++) {<br />
for (var col = 0; col &lt; _tableIndex[row].length; col++) {</span></p>
<p><span style="color:brown">var cell = _tableIndex[row][col];<br />
var newHeight = cell.getHeight() + frac;</span></p>
<p><span style="color:brown">if (newHeight &gt; MIN_CELL_DIM) {<br />
action = true;<br />
cell.setHeight(newHeight);</span></p>
<p><span style="color:brown">for (var rr = row + 1; rr &lt; _tableIndex.length; rr++) {<br />
var nCell = _tableIndex[rr][col];</span></p>
<p><span style="color:brown">var embShapes = _tblgroup.get("." + nCell.getName());</span></p>
<p><span style="color:brown">for (var i = 0; i &lt; embShapes.length; i++) {<br />
embShapes[i].move(0, frac);<br />
}<br />
}<br />
}</span></p>
<p><span style="color:brown">updateSplitters(cell);<br />
}<br />
}</span></p>
<p><span style="color:brown">if (action) {<br />
createSpanners();<br />
}<br />
else {<br />
if (anchorName != "cpBottomLeft" &amp;&amp; anchorName != "cpBottomRight") {<br />
_tblgroup.parent.move(0, diff);<br />
}<br />
}</span></p>
<p><span style="color:brown">break;</span></p>
<p><span style="color:brown">default:<br />
break;<br />
}<br />
}<br />
}</span></p>
<p><span style="color:brown">exports.deSelect = function () {<br />
exports.selectedCell.hide();<br />
_stage.draw();<br />
}</span></p>
<p><span style="color:brown">exports.select = function () {<br />
exports.selectedCell.show();<br />
_stage.draw();<br />
}</span></p>
<p><span style="color:brown">function randomString() {<br />
var chars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz";<br />
var string_length = 3;<br />
var randomstring = '';</span></p>
<p><span style="color:brown">for (var i = 0; i &lt; string_length; i++) {<br />
var rnum = Math.floor(Math.random() * chars.length);<br />
randomstring += chars.substring(rnum, rnum + 1);<br />
}</span></p>
<p><span style="color:brown">return randomstring;<br />
}</span></p>
<p><span style="color:brown">exports.checkTableIntersections = function(marquees, shape, core) {</span></p>
<p><span style="color:brown">if (core &amp;&amp; core.shapeType == "Table") {<br />
return;<br />
}</span></p>
<p><span style="color:brown">for (var key in marquees) {<br />
if (marquees.hasOwnProperty(key) &amp;&amp; marquees[key].shape().shapeType == "Table") {<br />
var tab = marquees[key].shape();</span></p>
<p>if (exports.areShapesOverlapping(shape, tab)) {<br />
tab.addShape(shape);<br />
}<br />
else {<br />
tab.removeShape(shape);<br />
}<br />
}<br />
}<br />
}</span></p>
<p><span style="color:brown">exports.areShapesOverlapping = function(shape1, shape2) {</span></p>
<p><span style="color:brown">var shape1Width = shape1.getWidth();<br />
var shape1Height = shape1.getHeight();<br />
var shape1X = shape1.getX() - shape1.getOffset().x;<br />
var shape1XW = shape1X + shape1Width;<br />
var shape1Y = shape1.getY() - shape1.getOffset().y;<br />
var shape1YH = shape1Y + shape1Height;</span></p>
<p><span style="color:brown">var shape2Width = shape2.getWidth();<br />
var shape2Height = shape2.getHeight();<br />
var shape2X = shape2.getX() - shape2.getOffset().x;<br />
var shape2XW = shape2X + shape2Width;<br />
var shape2Y = shape2.getY() - shape2.getOffset().y;<br />
var shape2YH = shape2Y + shape2Height;</span></p>
<p><span style="color:brown">// any part of shape on the table<br />
if (((shape1X &gt; shape2X &amp;&amp; shape1X &lt; shape2XW) || (shape2X &gt; shape1X &amp;&amp; shape2X &lt; shape1XW)) &amp;&amp;<br />
((shape1Y &gt; shape2Y &amp;&amp; shape1Y &lt; shape2YH) || (shape2Y &gt; shape1Y &amp;&amp; shape2Y &lt; shape1YH))) {<br />
return true;<br />
}<br />
else {<br />
return false;<br />
}<br />
}</span></p>
<p><span style="color:brown">exports.shapeType = "Table";<br />
exports._id = randomString(3);<br />
exports.selectedCell = null;</span></p>
<p><span style="color:brown">_rows = totalRows;<br />
_columns = totalColumns;<br />
_stage = stage;</span></p>
<p><span style="color:brown">init();</span></p>
<p><span style="color:brown">exports.parent = _tblgroup;<br />
return exports;<br />
}</span></p>
<p><span style="color:brown">var SelectedCell = function (cell, tblIndex) {<br />
var exports = {};<br />
var _selectedCell = cell;<br />
var _tableIndex = tblIndex;</span></p>
<p><span style="color:brown">exports.getFill = function () {<br />
if (_selectedCell) {<br />
return _selectedCell.getFill();<br />
}</span></p>
<p><span style="color:brown">if (_tableIndex) {<br />
return _tableIndex[0][0].getFill();<br />
}<br />
}</span></p>
<p><span style="color:brown">exports.getStroke = function () {<br />
if (_selectedCell) {<br />
return _selectedCell.getStroke();<br />
}</span></p>
<p><span style="color:brown">if (_tableIndex) {<br />
return _tableIndex[0][0].getStroke();<br />
}<br />
}</span></p>
<p><span style="color:brown">exports.getStrokeWidth = function () {<br />
if (_selectedCell) {<br />
return _selectedCell.getStrokeWidth();<br />
}</span></p>
<p><span style="color:brown">if (_tableIndex) {<br />
return _tableIndex[0][0].getStrokeWidth();<br />
}<br />
}</span></p>
<p><span style="color:brown">exports.setFill = function (val) {<br />
if (_selectedCell) {<br />
_selectedCell.setFill(val);<br />
return;<br />
}</span></p>
<p><span style="color:brown">if (_tableIndex) {<br />
for (var row = 0; row &lt; _tableIndex.length; row++) {<br />
for (var col = 0; col &lt; _tableIndex[row].length; col++) {<br />
_tableIndex[row][col].setFill(val);<br />
}<br />
}<br />
}<br />
}</span></p>
<p><span style="color:brown">/* Funtion to set stroke for selected table cell */<br />
exports.setStroke = function (val) {<br />
if (_selectedCell) {<br />
_selectedCell.setStroke(val);</span></p>
<p><span style="color:brown">if (_selectedCell.vSplitters) {<br />
for (var i = 0; i &lt; _selectedCell.vSplitters.length; i++) {<br />
_selectedCell.vSplitters[i].setStroke(val);<br />
}<br />
}</span></p>
<p><span style="color:brown">if (_selectedCell.hSplitters) {<br />
for (var i = 0; i &lt; _selectedCell.hSplitters.length; i++) {<br />
_selectedCell.hSplitters[i].setStroke(val);<br />
}<br />
}<br />
return;<br />
}</span></p>
<p><span style="color:brown">if (_tableIndex) {<br />
for (var row = 0; row &lt; _tableIndex.length; row++) {<br />
for (var col = 0; col &lt; _tableIndex[row].length; col++) {<br />
var cell = _tableIndex[row][col];<br />
cell.setStroke(val);</span></p>
<p><span style="color:brown">if (cell.vSplitters) {<br />
for (var i = 0; i &lt; cell.vSplitters.length; i++) {<br />
cell.vSplitters[i].setStroke(val);<br />
}<br />
}</span></p>
<p><span style="color:brown">if (cell.hSplitters) {<br />
for (var i = 0; i &lt; cell.hSplitters.length; i++) {<br />
cell.hSplitters[i].setStroke(val);<br />
}<br />
}<br />
}<br />
}<br />
}<br />
}</span></p>
<p><span style="color:brown">exports.setStrokeWidth = function (val) {<br />
if (_selectedCell) {<br />
_selectedCell.setStrokeWidth(val);<br />
return;<br />
}</span></p>
<p><span style="color:brown">if (_tableIndex) {<br />
for (var row = 0; row &lt; _tableIndex.length; row++) {<br />
for (var col = 0; col &lt; _tableIndex[row].length; col++) {<br />
_tableIndex[row][col].setStrokeWidth(val);<br />
}<br />
}<br />
}<br />
}</span></p>
<p><span style="color:brown">exports.sCell = function () {<br />
return _selectedCell;<br />
}</span></p>
<p><span style="color:brown">exports.show = function () {</span></p>
<p><span style="color:brown">if (_selectedCell) {</span></p>
<p><span style="color:brown">_selectedCell.setStrokeWidth(DEFAULT_CELL_STROKE_WIDTH * 4);<br />
_selectedCell.setStroke(_selectedCell.getStroke());<br />
}<br />
else {</span></p>
<p><span style="color:brown">for (var row = 0; row &lt; _tableIndex.length; row++) {<br />
for (var col = 0; col &lt; _tableIndex[row].length; col++) {<br />
cl = _tableIndex[row][col];<br />
cl.setStrokeWidth(DEFAULT_CELL_STROKE_WIDTH * 4);<br />
cl.setStroke(cl.getStroke());<br />
}<br />
}<br />
}<br />
}</span></p>
<p><span style="color:brown">exports.hide = function () {</span></p>
<p><span style="color:brown">if (_selectedCell) {</span></p>
<p><span style="color:brown">_selectedCell.setStrokeWidth(DEFAULT_CELL_STROKE_WIDTH);<br />
_selectedCell.setStroke(_selectedCell.getStroke());<br />
}<br />
else {</span></p>
<p><span style="color:brown">for (var row = 0; row &lt; _tableIndex.length; row++) {<br />
for (var col = 0; col &lt; _tableIndex[row].length; col++) {<br />
cl = _tableIndex[row][col];<br />
cl.setStrokeWidth(DEFAULT_CELL_STROKE_WIDTH);<br />
cl.setStroke(cl.getStroke());<br />
}<br />
}<br />
}<br />
}</span></p>
<p><span style="color:brown">return exports;<br />
}</span></code></p>
<p>The post <a href="https://jharaphula.com/how-to-design-a-table-using-kineticjs-on-html5-canvas/">Design MS-Excel like Table using KineticJS on HTML5 Canvas?</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://jharaphula.com/how-to-design-a-table-using-kineticjs-on-html5-canvas/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			<media:content url="https://jharaphula.com/wp-content/uploads/2016/05/simple-css-tables.jpg" medium="image" />
	</item>
		<item>
		<title>How to Draw Grid on KineticJS Stage?</title>
		<link>https://jharaphula.com/how-to-draw-grid-on-kineticjs-stage/</link>
					<comments>https://jharaphula.com/how-to-draw-grid-on-kineticjs-stage/#respond</comments>
		
		<dc:creator><![CDATA[Biswabhusan Panda]]></dc:creator>
		<pubDate>Fri, 13 May 2016 18:39:11 +0000</pubDate>
				<category><![CDATA[KineticJS Examples]]></category>
		<category><![CDATA[Example to draw Grid]]></category>
		<category><![CDATA[How to Draw Grid?]]></category>
		<category><![CDATA[KineticJS Stage]]></category>
		<guid isPermaLink="false">http://box.jharaphula.com/?p=748</guid>

					<description><![CDATA[<img width="300" height="188" src="https://jharaphula.com/wp-content/uploads/2016/05/grid-300x188.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="How to Draw Grid on KineticJS Stage?" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/grid-300x188.jpg 300w, https://jharaphula.com/wp-content/uploads/2016/05/grid.jpg 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>Like a chess board sometime we need to Draw grids on the Stage of KineticJS. During I worked with a MNC for an Application &#8220;Policy...</p>
<p>The post <a href="https://jharaphula.com/how-to-draw-grid-on-kineticjs-stage/">How to Draw Grid on KineticJS Stage?</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></description>
										<content:encoded><![CDATA[<img width="300" height="188" src="https://jharaphula.com/wp-content/uploads/2016/05/grid-300x188.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="How to Draw Grid on KineticJS Stage?" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/grid-300x188.jpg 300w, https://jharaphula.com/wp-content/uploads/2016/05/grid.jpg 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>Like a chess board sometime we need to Draw grids on the Stage of KineticJS. During I worked with a MNC for an Application &#8220;Policy Designer&#8221; I faced the above situation. I have the KineticJS stage with width 800px &amp; height 600px. On over the stage I have a layer. To make stage visible I draw a rectangle with same width &amp; height as refer to the stage. Now as per our requirement I have to draw grids for stage. The intention is where I can drag various shapes to draw a policy flow.</p>
<p>The same example I am presenting in the below code. Here I declared a div with id container. Which is the container for KineticJS stage. pagerectangle is the rectangle which covers stage to display. To draw grids on the stage I called a function in the document.ready() method of jquery. In drawGrid() function I have 3 variables gridLineColor, gridLineCell &amp; gridStroke. Using these setting you can set the grid details. gridLineColor is for the color of line. gridLineCell defines the width &amp; height of individual grid cells. gridStroke is the width of grid lines. Here to draw a grid I created to KineticJS lines gridHorizontalLine &amp; gridVerticalLine. Points for these lines I calculated mathematically to draw the grid. To make my grid dotted line here I used dash : [ 10, 5 ] from the line params of KineticJS. Finally I am adding my both the lines configuration variables (gridHorizontalLine &amp; gridVerticalLine) to layer. Before draw the stage Adding the <a href="https://jharaphula.com/tcpip-model-layers-beginners/" rel="noopener noreferrer" target="_blank">layer</a> to stage.</p>
<p>To run the below example copy the codes to a notepad file. Save it as a html file. Stay Connected to internet &amp; run the file to watch the Demo.</p>
<h3>Example to draw grid on KineticJS Stage</h3>
<pre class="brush: xml; title: ; notranslate">&lt;!DOCTYPE html&gt;
&lt;html&gt;
&lt;head&gt;
&lt;title&gt;Example to draw grid on KineticJS Stage?&lt;/title&gt;
&lt;script type=&quot;text/javascript&quot; src=&quot;http://d3lp1msu2r81bx.cloudfront.net/kjs/js/lib/kinetic-v4.4.3.min.js&quot;&gt;&lt;/script&gt;
&lt;script src=&quot;http://code.jquery.com/jquery-1.10.2.js&quot;&gt;&lt;/script&gt;
&lt;/head&gt;
&lt;body&gt;

&lt;div id=&quot;container&quot;&gt;&lt;/div&gt;

&lt;script type=&quot;text/jscript&quot;&gt;
/* KineticJS Stage */
var stage = new Kinetic.Stage({
container : 'container',
width : 800,
height : 600,
draggable : false
});

/* The Primary Layer */
var layer = new Kinetic.Layer({
name : 'layer'
});

/* Rectangle over Stage to Show Visible Area */
var pagerectangle = new Kinetic.Rect({
x : 0,
y : 0,
width : 800,
height : 600,
fill : '#CEF6F5',
id : 'mainpage'
});

/* Adding base Rectangle to layer */
layer.add(pagerectangle);

/* Adding layer to Stage */
stage.add(layer);
stage.draw();

$(document).ready(function() {
/* Draw Grid Function */
drawGrid();
});

/* Function to Draw Grid on Stage */
var drawGrid = function() {

/* Configuration Settings for Grid Lines */
var gridLineColor = 'gray';
var gridLineCell = 50;
var gridStroke = 0.5;

/* Horizontal Line Draw */
var gridHorizontalLine = new Kinetic.Line({
id : 'hline',
points : [ 0, 0, 0, gridLineCell, pagerectangle.getWidth(),
gridLineCell, pagerectangle.getWidth(), 2 * gridLineCell, 0,
2 * gridLineCell, 0, 3 * gridLineCell, 0, 3 * gridLineCell,
pagerectangle.getWidth(), 3 * gridLineCell,
pagerectangle.getWidth(), 4 * gridLineCell,
pagerectangle.getWidth(), 4 * gridLineCell, 0,
4 * gridLineCell, 0, 5 * gridLineCell, 0, 5 * gridLineCell,
pagerectangle.getWidth(), 5 * gridLineCell,
pagerectangle.getWidth(), 6 * gridLineCell,
pagerectangle.getWidth(), 6 * gridLineCell, 0,
6 * gridLineCell, 0, 7 * gridLineCell, 0, 7 * gridLineCell,
pagerectangle.getWidth(), 7 * gridLineCell,
pagerectangle.getWidth(), 8 * gridLineCell,
pagerectangle.getWidth(), 8 * gridLineCell, 0,
8 * gridLineCell, 0, 9 * gridLineCell, 0, 9 * gridLineCell,
pagerectangle.getWidth(), 9 * gridLineCell,
pagerectangle.getWidth(), 10 * gridLineCell,
pagerectangle.getWidth(), 10 * gridLineCell, 0,
10 * gridLineCell, 0, 11 * gridLineCell, 0, 11 * gridLineCell,
pagerectangle.getWidth(), 11 * gridLineCell,
pagerectangle.getWidth(), 12 * gridLineCell,
pagerectangle.getWidth(), 12 * gridLineCell, 0,
12 * gridLineCell, 0, 13 * gridLineCell, 0, 13 * gridLineCell,
pagerectangle.getWidth(), 13 * gridLineCell,
pagerectangle.getWidth(), 14 * gridLineCell,
pagerectangle.getWidth(), 14 * gridLineCell, 0,
14 * gridLineCell, 0, 15 * gridLineCell, 0, 15 * gridLineCell,
pagerectangle.getWidth(), 15 * gridLineCell,
pagerectangle.getWidth(), 16 * gridLineCell,
pagerectangle.getWidth(), 16 * gridLineCell, 0,
16 * gridLineCell, 0
],
stroke : gridLineColor,
strokeWidth : gridStroke,
lineJoin : 'round',
dash : [ 15, 5 ]
});

layer.add(gridHorizontalLine);

/* Vertical Line Draw */
var gridVerticalLine = new Kinetic.Line({
id : 'vline',
points : [ 0, 0, gridLineCell, 0, gridLineCell,
pagerectangle.getHeight(), 2 * gridLineCell,
pagerectangle.getHeight(), 2 * gridLineCell, 0,
3 * gridLineCell, 0, 3 * gridLineCell,
pagerectangle.getHeight(), 4 * gridLineCell,
pagerectangle.getHeight(), 4 * gridLineCell, 0,
5 * gridLineCell, 0, 5 * gridLineCell,
pagerectangle.getHeight(), 6 * gridLineCell,
pagerectangle.getHeight(), 6 * gridLineCell, 0,
7 * gridLineCell, 0, 7 * gridLineCell,
pagerectangle.getHeight(), 8 * gridLineCell,
pagerectangle.getHeight(), 8 * gridLineCell, 0,
9 * gridLineCell, 0, 9 * gridLineCell,
pagerectangle.getHeight(), 10 * gridLineCell,
pagerectangle.getHeight(), 10 * gridLineCell, 0,
11 * gridLineCell, 0, 11 * gridLineCell,
pagerectangle.getHeight(), 12 * gridLineCell,
pagerectangle.getHeight(), 12 * gridLineCell, 0,
13 * gridLineCell, 0, 13 * gridLineCell,
pagerectangle.getHeight(), 14 * gridLineCell,
pagerectangle.getHeight(), 14 * gridLineCell, 0,
15 * gridLineCell, 0, 15 * gridLineCell,
pagerectangle.getHeight(), 16 * gridLineCell,
pagerectangle.getHeight(), 16 * gridLineCell, 0
],
stroke : gridLineColor,
strokeWidth : gridStroke,
lineJoin : 'round',
dash : [ 10, 5 ]
});

layer.add(gridVerticalLine);
stage.add(layer);
stage.draw();
};

&lt;/script&gt;
&lt;/body&gt;
&lt;/html&gt;</pre>
<p>The post <a href="https://jharaphula.com/how-to-draw-grid-on-kineticjs-stage/">How to Draw Grid on KineticJS Stage?</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://jharaphula.com/how-to-draw-grid-on-kineticjs-stage/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			<media:content url="https://jharaphula.com/wp-content/uploads/2016/05/grid.jpg" medium="image" />
	</item>
		<item>
		<title>Function to Generate Random String using pre-defined Characters</title>
		<link>https://jharaphula.com/javascript-function-random-string/</link>
					<comments>https://jharaphula.com/javascript-function-random-string/#respond</comments>
		
		<dc:creator><![CDATA[Biswabhusan Panda]]></dc:creator>
		<pubDate>Fri, 13 May 2016 18:36:10 +0000</pubDate>
				<category><![CDATA[JS Functions & Examples]]></category>
		<category><![CDATA[Generate Random String]]></category>
		<category><![CDATA[String using pre-defined Characters]]></category>
		<guid isPermaLink="false">http://box.jharaphula.com/?p=746</guid>

					<description><![CDATA[<img width="300" height="188" src="https://jharaphula.com/wp-content/uploads/2016/05/random-string-300x188.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="JavaScript function to Generate Random String" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/random-string-300x188.jpg 300w, https://jharaphula.com/wp-content/uploads/2016/05/random-string.jpg 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>Let&#8217;s talk about mobile verification code where we need to send a six digit random string to the user device for verify his/her mobile number....</p>
<p>The post <a href="https://jharaphula.com/javascript-function-random-string/">Function to Generate Random String using pre-defined Characters</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></description>
										<content:encoded><![CDATA[<img width="300" height="188" src="https://jharaphula.com/wp-content/uploads/2016/05/random-string-300x188.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="JavaScript function to Generate Random String" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/random-string-300x188.jpg 300w, https://jharaphula.com/wp-content/uploads/2016/05/random-string.jpg 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>Let&#8217;s talk about mobile verification code where we need to send a six digit random string to the user device for verify his/her mobile number. In this case it is wise to generate the random string using client script (JavaScript or Jquery) &amp; can send a copy to the server using <a href="https://jharaphula.com/jquery-ajax-example-get-post-methods/" target="_blank" rel="noopener noreferrer">Ajax post method</a>.</p>
<p>In the below example I created a function where you can generate any length of random string from the specific characters you want. In the configuration variable of randomString() function I declared chars as the list of characters you want for your random string. Here for a demo purpose I added numbers (0 to 9) &amp; alphabets in both the case (Upper &amp; Lower). Using the variable string_length you can set the length of your random string. In body part of HTML I have a button control with a div DisplayRandomString. Onclick of button Generate I am applying html to the div using Jquery. randomString() function returns randomstring variable as string. Which I am showing in the div on click event of button btnGenerate.</p>
<p>To run the below example copy the html codes into a notepad file. Save it as html. The jquery library I referred here is a CDN link. Before run the html file make sure you are with Internet Connectivity.</p>
<h3>Generate Random String Example</h3>
<pre class="brush: xml; title: ; notranslate">&lt;html&gt;
&lt;head&gt;
&lt;script src=&quot;http://code.jquery.com/jquery-1.10.2.js&quot;&gt;&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
$(document).ready(function() {
/*Generate button Click event*/
$('#btnGenerate').click(function() {
$('#DisplayRandomString').html(randomString());
});

/*Function to Generate Random String*/
function randomString() {
/*Charecters you want to use for your Random String*/
var chars = &quot;0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz&quot;;
/*Length of the Random String you want to Generate*/
var string_length = 6;
var randomstring = '';

for (var i = 0; i &lt; string_length; i++) {
var rnum = Math.floor(Math.random() * chars.length);
randomstring += chars.substring(rnum, rnum + 1);
}

return randomstring;
}
});

&lt;/script&gt;

&lt;/head&gt;
&lt;body&gt;
&lt;button id=&quot;btnGenerate&quot;&gt;Generate&lt;/button&gt;
&lt;!--Div to Display Random String--&gt;
&lt;div id=&quot;DisplayRandomString&quot;&gt;&lt;/div&gt;
&lt;/body&gt;
&lt;/html&gt;</pre>
<p>The post <a href="https://jharaphula.com/javascript-function-random-string/">Function to Generate Random String using pre-defined Characters</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://jharaphula.com/javascript-function-random-string/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			<media:content url="https://jharaphula.com/wp-content/uploads/2016/05/random-string.jpg" medium="image" />
	</item>
		<item>
		<title>JavaScript Function to Convert Array to JSON</title>
		<link>https://jharaphula.com/convert-array-to-json/</link>
					<comments>https://jharaphula.com/convert-array-to-json/#respond</comments>
		
		<dc:creator><![CDATA[Biswabhusan Panda]]></dc:creator>
		<pubDate>Fri, 13 May 2016 18:27:56 +0000</pubDate>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Convert Array to JSON]]></category>
		<category><![CDATA[Formatted JSON]]></category>
		<category><![CDATA[JavaScript Function]]></category>
		<category><![CDATA[single dimension Array]]></category>
		<guid isPermaLink="false">http://box.jharaphula.com/?p=740</guid>

					<description><![CDATA[<img width="300" height="184" src="https://jharaphula.com/wp-content/uploads/2016/05/json-300x184.png" class="webfeedsFeaturedVisual wp-post-image" alt="JavaScript Function to Convert Array to JSON" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/json-300x184.png 300w, https://jharaphula.com/wp-content/uploads/2016/05/json.png 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>JSON is a lightweight data exchange platform when Array is used to store small chunk of data during development. Sometimes during development we required to...</p>
<p>The post <a href="https://jharaphula.com/convert-array-to-json/">JavaScript Function to Convert Array to JSON</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></description>
										<content:encoded><![CDATA[<img width="300" height="184" src="https://jharaphula.com/wp-content/uploads/2016/05/json-300x184.png" class="webfeedsFeaturedVisual wp-post-image" alt="JavaScript Function to Convert Array to JSON" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/json-300x184.png 300w, https://jharaphula.com/wp-content/uploads/2016/05/json.png 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>JSON is a lightweight data exchange platform when Array is used to store small chunk of data during development. Sometimes during development we required to convert an array to formatted JSON. Let&#8217;s talk about a single dimension array. In the below example I am converting a single dimension Array to formatted JSON.</p>
<h2>Converting Arrays to JSON: A Comprehensive Guide</h2>
<p>JSON (JavaScript Object Notation) is a lightweight data interchange format widely used for data storage and communication between servers and web applications. Arrays, a fundamental data structure in programming, often need to be converted to JSON for seamless integration with APIs, databases, and front-end frameworks. This article explores the process of converting arrays to JSON, including methods, best practices, and practical examples.</p>
<p>In the below demo app I have an array tempArray which contains 5 elements. To convert this array into formatted JSON I created a function ArrayToJSON(). Which accepts array as a parameter. In side the function I have a string variable json. Which holds the initial value as <a href="https://jharaphula.com/learn-json-tutorial-for-beginners/" target="_blank" rel="noopener noreferrer">JSON</a> attribute as json = &#8216;{&#8220;attrs&#8221;:[&#8216;;. After this I am running a for loop which doing string concatenation for id &amp; value pair to my json string variable. Finally using json += &#8216;]}&#8217;; I am ending the JSON string.</p>
<h3>Convert Array to JSON</h3>
<pre class="brush: jscript; title: ; notranslate">/* Array Declaration */
var tempArray = [10, 12, 14, 16, 18];

/* Function to Convert an Array into formatted JSON */
function ArrayToJSON(array) {

var json = null;

/* Adding attributes to beginning JSON String */
json = '{&quot;attrs&quot;:[';

/* Using String Concatenation building JSON key value pairs */
for (var i=0; i&lt;array.length; i++) {
json += '{&quot;' + 'id' + '&quot;:&quot;' + array[i] + '&quot;},';
}

/* Removing the last Comma from JSON string */
json = json.substring(0, json.length-1);

/* Closing JSON String */
json += ']}';

/* Returning the formatted JSON */
return json;
}

var res = ArrayToJSON(tempArray);</pre>
<p>/* Output JSON */<br />
/* {&#8220;attrs&#8221;:[{&#8220;id&#8221;:&#8221;10&#8243;},{&#8220;id&#8221;:&#8221;12&#8243;},{&#8220;id&#8221;:&#8221;14&#8243;},{&#8220;id&#8221;:&#8221;16&#8243;},{&#8220;id&#8221;:&#8221;18&#8243;}]} */</p>
<h2>Best Practices</h2>
<p>1. Validate JSON: Ensure the output is valid JSON using tools like JSONLint.</p>
<p>2. Handle Errors: Use try-catch blocks to manage parsing errors.</p>
<p>3. Optimize for Performance: For large datasets, consider streaming or chunking the conversion process.</p>
<p>4. Security: Avoid parsing untrusted JSON strings to prevent injection attacks.</p>
<h2>Common Use Cases</h2>
<p>&#8211; API Communication: Sending structured data between client and server.<br />
&#8211; Local Storage: Storing array data in browsers using `localStorage`.<br />
&#8211; Configuration Files: Saving application settings in JSON format.</p>
<h2>Conclusion</h2>
<p>Converting arrays to JSON is a straightforward process in most programming languages, with JavaScript&#8217;s `JSON.stringify()` being the most common method. By following best practices, you can ensure efficient, secure, and readable JSON serialization for various applications. Understanding this conversion is essential for modern web development and data handling.</p>
<p>The post <a href="https://jharaphula.com/convert-array-to-json/">JavaScript Function to Convert Array to JSON</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://jharaphula.com/convert-array-to-json/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			<media:content url="https://jharaphula.com/wp-content/uploads/2016/05/json.png" medium="image" />
	</item>
		<item>
		<title>AngularJS Treeview Example using Data from Controller</title>
		<link>https://jharaphula.com/angularjs-treeview-example-controller/</link>
					<comments>https://jharaphula.com/angularjs-treeview-example-controller/#respond</comments>
		
		<dc:creator><![CDATA[Biswabhusan Panda]]></dc:creator>
		<pubDate>Fri, 13 May 2016 18:25:46 +0000</pubDate>
				<category><![CDATA[AngularJS with Examples]]></category>
		<category><![CDATA[AngularJS Treeview Example]]></category>
		<category><![CDATA[Data from Controller]]></category>
		<category><![CDATA[Treeview Example]]></category>
		<guid isPermaLink="false">http://box.jharaphula.com/?p=738</guid>

					<description><![CDATA[<img width="300" height="194" src="https://jharaphula.com/wp-content/uploads/2016/05/angularjs-treeview-example-300x194.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="AngularJS Treeview Example using Data from Controller" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/angularjs-treeview-example-300x194.jpg 300w, https://jharaphula.com/wp-content/uploads/2016/05/angularjs-treeview-example-294x190.jpg 294w, https://jharaphula.com/wp-content/uploads/2016/05/angularjs-treeview-example-106x70.jpg 106w, https://jharaphula.com/wp-content/uploads/2016/05/angularjs-treeview-example.jpg 610w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>Treeview is a Classical fashion to display hierarchy of data. In less area using Treeview we can show large amount of data. Treeview works under...</p>
<p>The post <a href="https://jharaphula.com/angularjs-treeview-example-controller/">AngularJS Treeview Example using Data from Controller</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></description>
										<content:encoded><![CDATA[<img width="300" height="194" src="https://jharaphula.com/wp-content/uploads/2016/05/angularjs-treeview-example-300x194.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="AngularJS Treeview Example using Data from Controller" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/angularjs-treeview-example-300x194.jpg 300w, https://jharaphula.com/wp-content/uploads/2016/05/angularjs-treeview-example-294x190.jpg 294w, https://jharaphula.com/wp-content/uploads/2016/05/angularjs-treeview-example-106x70.jpg 106w, https://jharaphula.com/wp-content/uploads/2016/05/angularjs-treeview-example.jpg 610w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>Treeview is a Classical fashion to display hierarchy of data. In less area <strong>using Treeview we can show large amount of data</strong>. Treeview works under parent child relationship. Parent is called node &amp; the sub-items are called Child&#8217;s. Whether you do maintain a JSON file or Database AngularJS Treeview required relationship in Data.</p>
<p>In the below example I created an <a href="https://jharaphula.com/category/programming-solutions/learn-angularjs-with-examples/" target="_blank" rel="noopener noreferrer">AngularJS</a> Treeview using data from items object under $scope. Here Countries are the nodes &amp; States are the Child&#8217;s. To design this demo here <strong>I have 3 files index.html, treeview.html &amp; app.js</strong>. Index.html is the primary file where I refereed CDN link of AngularJS library. Treeview.html is the file where I am creating the template for treeview. App.js is the file where i implemented my logic&#8217;s to create a treeview using AngularJS. The module I create in app.js is treeview. <strong>Inside the module I have a directive called ngTree</strong>. In $scope I am assigning country &amp; states as items. In items array country is the parent node when states are the child&#8217;s. In treeview.html using ng-click I am calling the function showStates(), which is in the $scope of app.js. This function helps to expand &amp; collapse the nodes.</p>
<h3>Angularjs Treeview Example</h3>
<p><img loading="lazy" decoding="async" src="https://jharaphula.com/wp-content/uploads/2016/05/angularjs-tree.png" title="Angularjs Treeview Example" alt="Angularjs Treeview Example" width="720" height="285" class="alignnone size-full wp-image-3084" srcset="https://jharaphula.com/wp-content/uploads/2016/05/angularjs-tree.png 720w, https://jharaphula.com/wp-content/uploads/2016/05/angularjs-tree-300x119.png 300w" sizes="auto, (max-width: 720px) 100vw, 720px" /></p>
<p>To run the below example Copy these code to notepad. Save it as index.html, treeview.html &amp; app.js in a same folder. Before run the index.html make sure you are with Internet Connectivity.</p>
<h3>index.htm</h3>
<pre class="brush: xml; title: ; notranslate">&lt;!DOCTYPE html&gt;
&lt;html ng-app=&quot;treeview&quot;&gt;
&lt;head&gt;
&lt;meta charset=&quot;utf-8&quot;&gt;
&lt;title&gt;Example to Create Treeview using AngularJS&lt;/title&gt;
&lt;script type=&quot;text/javascript&quot; src=&quot;https://ajax.googleapis.com/ajax/libs/angularjs/1.3.0-rc.0/angular.min.js&quot;&gt;&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot; src=&quot;app.js&quot;&gt;&lt;/script&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;ng-tree&gt;&lt;/ng-tree&gt;
&lt;/body&gt;
&lt;/html&gt;</pre>
<h3>treeview.htm</h3>
<pre class="brush: xml; title: ; notranslate">&lt;ul&gt;
&lt;li ng-repeat=&quot;item in items&quot; ng-click=&quot;showStates(item)&quot;&gt;
&lt;span&gt;{{item.country}}&lt;/span&gt;
&lt;ul&gt;
&lt;li ng-repeat=&quot;subItem in item.states&quot; ng-show=&quot;item.active&quot;&gt;
&lt;span&gt;{{subItem.state}}&lt;/span&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;</pre>
<h3>app.js</h3>
<pre class="brush: jscript; title: ; notranslate">angular.module('treeview', [])
.directive('ngTree', function() {
return {
restrict: 'E',
transclude: true,

controller: function($scope) {

$scope.showStates = function(item){
item.active = !item.active;
};

$scope.items = [
{
country: &quot;INDIA&quot;,
states: [
{state: &quot;Assam&quot;},
{state: &quot;Chhattisgarh&quot;},
{state: &quot;Sikkim&quot;},
{state: &quot;Maharashtra&quot;},
{state: &quot;Madhya Pradesh&quot;}
]
},
{
country: &quot;UNITED STATES&quot;,
states: [
{state: &quot;Alabama&quot;},
{state: &quot;California&quot;},
{state: &quot;Hawaii&quot;},
{state: &quot;Michigan&quot;},
{state: &quot;New York&quot;},
{state: &quot;Washington&quot;}
]
},
{
country: &quot;PAKISTAN&quot;,
states: [
{state: &quot;Peshawar&quot;},
{state: &quot;Lahore&quot;},
{state: &quot;Karachi&quot;},
{state: &quot;Islamabad&quot;}
]
}
];
},
templateUrl: 'treeview.htm'
};
});</pre>
<p>The post <a href="https://jharaphula.com/angularjs-treeview-example-controller/">AngularJS Treeview Example using Data from Controller</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://jharaphula.com/angularjs-treeview-example-controller/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			<media:content url="https://jharaphula.com/wp-content/uploads/2016/05/angularjs-treeview-example.jpg" medium="image" />
	</item>
		<item>
		<title>JS Keyboard Utils Class to Implement Keyboard Shortcuts</title>
		<link>https://jharaphula.com/keyboard-utils-javascript-class-to-implement-keyboard-shortcuts/</link>
					<comments>https://jharaphula.com/keyboard-utils-javascript-class-to-implement-keyboard-shortcuts/#respond</comments>
		
		<dc:creator><![CDATA[Biswabhusan Panda]]></dc:creator>
		<pubDate>Fri, 13 May 2016 18:21:58 +0000</pubDate>
				<category><![CDATA[JS Functions & Examples]]></category>
		<category><![CDATA[experienced programmers]]></category>
		<category><![CDATA[JS Keyboard Utils]]></category>
		<category><![CDATA[Keyboard Shortcuts]]></category>
		<category><![CDATA[Keyboard Utils Class]]></category>
		<guid isPermaLink="false">http://box.jharaphula.com/?p=736</guid>

					<description><![CDATA[<img width="300" height="191" src="https://jharaphula.com/wp-content/uploads/2016/05/keyboard-utils-300x191.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="JavaScript Keyboard Utils Class to Implement Keyboard Shortcuts" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/keyboard-utils-300x191.jpg 300w, https://jharaphula.com/wp-content/uploads/2016/05/keyboard-utils.jpg 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>In application development many times we required to use keyboard shortcuts. Let&#8217;s talk about copy paste or undo redo operations here we required CTRL +...</p>
<p>The post <a href="https://jharaphula.com/keyboard-utils-javascript-class-to-implement-keyboard-shortcuts/">JS Keyboard Utils Class to Implement Keyboard Shortcuts</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></description>
										<content:encoded><![CDATA[<img width="300" height="191" src="https://jharaphula.com/wp-content/uploads/2016/05/keyboard-utils-300x191.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="JavaScript Keyboard Utils Class to Implement Keyboard Shortcuts" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/keyboard-utils-300x191.jpg 300w, https://jharaphula.com/wp-content/uploads/2016/05/keyboard-utils.jpg 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>In application development many times we required to use <a href="https://jharaphula.com/razer-cynosa-gaming-keyboard/" rel="noopener noreferrer" target="_blank">keyboard</a> shortcuts. Let&#8217;s talk about copy paste or undo redo operations here we required CTRL + C for copy, CRTL + V for paste or CRTL + Z for undo &amp; CRTL + Y for redo. Web application runs over Client Server architecture. During web application development we prefer to do use more Client resources rather than server resources. This technique improves application performance &amp; speed. That&#8217;s why experienced programmers prefer to Implement keyboard shortcuts using Client side scripts.</p>
<p>In this knowledge sharing session I am sharing a JavaScript class which will help you to implement all required keyboard shortcuts. The keyboard keys I implemented with keydown &amp; keyup events are Ctrl, Shift, Delete, Esc, Down Arrow, Up Arrow, Right Arrow, Left Arrow, C &amp; V.</p>
<p>To implement this class in your application just copy the below codes into a js file (<em>keyboardUtils.js</em>). Then integrate this js file to your application.</p>
<p><strong>keyboardUtils.js</strong></p>
<pre class="brush: jscript; title: ; notranslate">KeyboardUtil = function () {
var exports = {};
var _kpRegisters = [];

exports.KEY_STROKES = {
ESC: 0,
CTRL: 1,
LEFT_ARROW: 2,
RIGHT_ARROW: 3,
UP_ARROW: 4,
DOWN_ARROW: 5,
DELETE: 6,
SHIFT: 7,
C: 8,
V: 9
};

exports.ActiveKeyStrokes = [];

exports.bindToKeyPress = function (key, callback) {

if (typeof (callback) == &quot;function&quot;) {

switch (key) {

case exports.KEY_STROKES.SHIFT:
registerCallBack(exports.KEY_STROKES.SHIFT, callback);
break;

case exports.KEY_STROKES.CTRL:
registerCallBack(exports.KEY_STROKES.CTRL, callback);
break;

case exports.KEY_STROKES.DELETE:
registerCallBack(exports.KEY_STROKES.DELETE, callback);
break;

case exports.KEY_STROKES.ESC:
registerCallBack(exports.KEY_STROKES.ESC, callback);
break;

case exports.KEY_STROKES.LEFT_ARROW:
registerCallBack(exports.KEY_STROKES.LEFT_ARROW, callback);
break;

case exports.KEY_STROKES.RIGHT_ARROW:
registerCallBack(exports.KEY_STROKES.RIGHT_ARROW, callback);
break;

case exports.KEY_STROKES.UP_ARROW:
registerCallBack(exports.KEY_STROKES.UP_ARROW, callback);
break;

case exports.KEY_STROKES.DOWN_ARROW:
registerCallBack(exports.KEY_STROKES.DOWN_ARROW, callback);
break;

case exports.KEY_STROKES.C:
registerCallBack(exports.KEY_STROKES.C, callback);
break;

case exports.KEY_STROKES.V:
registerCallBack(exports.KEY_STROKES.V, callback);
break;
default:
break;
}
}
}

function registerCallBack(type, callback) {
if (_kpRegisters[type]) {

_kpRegisters[type].push(callback);
}
else {
var fnctrs = new Array();
fnctrs.push(callback);
_kpRegisters[type] = fnctrs;
}
}

function invokeCallBack(type, evt) {

if (_kpRegisters[type]) {
for (i = 0; i &amp;lt; _kpRegisters[type].length; i++) {
(_kpRegisters[type][i])(evt);
}
}
}

$(document).on(&quot;keydown&quot;, function (evt) {
switch (evt.keyCode) {

case 16:    // Shift Key
exports.ActiveKeyStrokes[exports.KEY_STROKES.SHIFT] = true;
invokeCallBack(exports.KEY_STROKES.SHIFT, evt);
break;

case 17:    // Ctrl Key
exports.ActiveKeyStrokes[exports.KEY_STROKES.CTRL] = true;
invokeCallBack(exports.KEY_STROKES.CTRL, evt);
break;

case 46:    // Delete Key
exports.ActiveKeyStrokes[exports.KEY_STROKES.DELETE] = true;
invokeCallBack(exports.KEY_STROKES.DELETE, evt);
break;

case 27:    // Esc Key
exports.ActiveKeyStrokes[exports.KEY_STROKES.ESC] = true;
invokeCallBack(exports.KEY_STROKES.ESC, evt);
break;

case 40:    // Down Arrow Key
exports.ActiveKeyStrokes[exports.KEY_STROKES.DOWN_ARROW] = true;
invokeCallBack(exports.KEY_STROKES.DOWN_ARROW, evt);
break;

case 39:    // Right Arrow Key
exports.ActiveKeyStrokes[exports.KEY_STROKES.RIGHT_ARROW] = true;
invokeCallBack(exports.KEY_STROKES.RIGHT_ARROW, evt);
break;

case 38:    // Up Arrow Key
exports.ActiveKeyStrokes[exports.KEY_STROKES.UP_ARROW] = true;
invokeCallBack(exports.KEY_STROKES.UP_ARROW, evt);
break;

case 37:    // Left Arrow Key
exports.ActiveKeyStrokes[exports.KEY_STROKES.LEFT_ARROW] = true;
invokeCallBack(exports.KEY_STROKES.LEFT_ARROW, evt);
break;

case 67:
case 99:// C Key
exports.ActiveKeyStrokes[exports.KEY_STROKES.C] = true;
invokeCallBack(exports.KEY_STROKES.C, evt);
break;

case 86:
case 118:   // V Key
exports.ActiveKeyStrokes[exports.KEY_STROKES.V] = true;
invokeCallBack(exports.KEY_STROKES.V, evt);
break;
default:
break;
}
});

$(document).on(&quot;keyup&quot;, function (evt) {
switch (evt.keyCode) {

case 16:    // Shift Key
exports.ActiveKeyStrokes[exports.KEY_STROKES.SHIFT] = false;
break;

case 17:    // Ctrl Key
exports.ActiveKeyStrokes[exports.KEY_STROKES.CTRL] = false;
break;

case 46:    // Delete Key
exports.ActiveKeyStrokes[exports.KEY_STROKES.DELETE] = false;
break;

case 27:    // Esc Key
exports.ActiveKeyStrokes[exports.KEY_STROKES.ESC] = false;
break;

case 40:    // Down Key
exports.ActiveKeyStrokes[exports.KEY_STROKES.DOWN_ARROW] = false;
break;

case 39:    // Right Arrow Key
exports.ActiveKeyStrokes[exports.KEY_STROKES.RIGHT_ARROW] = false;
break;

case 38:    // Up Arrow Key
exports.ActiveKeyStrokes[exports.KEY_STROKES.UP_ARROW] = false;
break;

case 37:    // Left Arrow Key
exports.ActiveKeyStrokes[exports.KEY_STROKES.LEFT_ARROW] = false;
break;

case 67:
case 99:// C Key
exports.ActiveKeyStrokes[exports.KEY_STROKES.C] = false;
break;

case 86:
case 118:   // V Key
exports.ActiveKeyStrokes[exports.KEY_STROKES.V] = false;
break;
default:
break;
}
});

return exports;
};</pre>
<p>After integrated the above Class file. Create an instance for the KeyboardUtil class. Then using the following code you can use most common keyboard shortcuts in your app.</p>
<pre class="brush: jscript; title: ; notranslate">_keyUtil = new KeyboardUtil();

_keyUtil.bindToKeyPress(_keyUtil.KEY_STROKES.LEFT_ARROW, function (event) {
//ToDo for Left Arrow         
});

_keyUtil.bindToKeyPress(_keyUtil.KEY_STROKES.C, function () {
if (_keyUtil.ActiveKeyStrokes[_keyUtil.KEY_STROKES.CTRL]) {
//Ctrl + C
}
});

_keyUtil.bindToKeyPress(_keyUtil.KEY_STROKES.V, function () {
if (_keyUtil.ActiveKeyStrokes[_keyUtil.KEY_STROKES.CTRL]) {
//Ctrl + V
}
});</pre>
<p>The post <a href="https://jharaphula.com/keyboard-utils-javascript-class-to-implement-keyboard-shortcuts/">JS Keyboard Utils Class to Implement Keyboard Shortcuts</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://jharaphula.com/keyboard-utils-javascript-class-to-implement-keyboard-shortcuts/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			<media:content url="https://jharaphula.com/wp-content/uploads/2016/05/keyboard-utils.jpg" medium="image" />
	</item>
		<item>
		<title>How Connected Line will move with the Shape using KineticJS?</title>
		<link>https://jharaphula.com/how-connected-line-will-move-with-the-shape-using-kineticjs/</link>
					<comments>https://jharaphula.com/how-connected-line-will-move-with-the-shape-using-kineticjs/#respond</comments>
		
		<dc:creator><![CDATA[Biswabhusan Panda]]></dc:creator>
		<pubDate>Fri, 13 May 2016 18:18:58 +0000</pubDate>
				<category><![CDATA[KineticJS Examples]]></category>
		<category><![CDATA[Graphics in HTML5]]></category>
		<category><![CDATA[How Connected Lines?]]></category>
		<category><![CDATA[Internet Connectivity]]></category>
		<category><![CDATA[Shape using KineticJS]]></category>
		<guid isPermaLink="false">http://box.jharaphula.com/?p=734</guid>

					<description><![CDATA[<img width="300" height="189" src="https://jharaphula.com/wp-content/uploads/2016/05/circle-shapes-300x189.png" class="webfeedsFeaturedVisual wp-post-image" alt="How Connected Line will move with the Shape using KineticJS?" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/circle-shapes-300x189.png 300w, https://jharaphula.com/wp-content/uploads/2016/05/circle-shapes.png 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>KineticJS is a third party library to draw high end graphics in HTML5. Using KineticJS we can draw several shapes like Ellipse, Rectangle, Line or...</p>
<p>The post <a href="https://jharaphula.com/how-connected-line-will-move-with-the-shape-using-kineticjs/">How Connected Line will move with the Shape using KineticJS?</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></description>
										<content:encoded><![CDATA[<img width="300" height="189" src="https://jharaphula.com/wp-content/uploads/2016/05/circle-shapes-300x189.png" class="webfeedsFeaturedVisual wp-post-image" alt="How Connected Line will move with the Shape using KineticJS?" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/circle-shapes-300x189.png 300w, https://jharaphula.com/wp-content/uploads/2016/05/circle-shapes.png 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>KineticJS is a third party library to draw high end graphics in HTML5. Using KineticJS we can draw several shapes like Ellipse, Rectangle, Line or Oval. Lets discuss about a situation where I have 2 shapes on over my HTML5 Canvas. A rectangle &amp; a Line. What I need is when I drag the rectangle the connected line need to move with the rectangle. Look at the example below. Here I have a rectangle &amp; a line over KineticJS stage. On rectangle movement I am moving the line with rectangle. To achieve this I called a function moveLine() in dragmove event of rectangle.</p>
<p>In moveLine function I am passing the shape (Rectangle) as a parameter. x2 &amp; y2 are the center points of the shape rectangle. Using getPosition() method from KineticJS I am retrieving the drag positions of rectangle. By adding shape.getWidth()/2 &amp; shape.getHeight()/2 I am getting the center position of the shape rectangle. To find out the total area of the shape I declared 4 variables startPointX, startPointY, endPointX, endPointY. startPointX &amp; startPointY I am getting from getPosition() method. To get the end points endPointX &amp; endPointY of shape I am adding width &amp; height (100px) to x &amp; y points. Now inside a for loop I am checking all the elements of the stage. If the element id match to line I am comparing the startPointX, startPointY, endPointX &amp; endPointY to know whether the line connected to shape or not. If the line is connected to shape here I am getting x1 &amp; y1. x2 &amp; y2 is available before after getting x1 &amp; y1 I am updating the shape x2 &amp; y2 points using setPoints() method.</p>
<p>To run the below sample application Copy the code to a Notepad file. Save it as a HTML file. Here I am using CDN link to refer KineticJS library. Before run the above HTML file make sure you are with <a href="https://jharaphula.com/when-internet-invented-internet-history/" rel="noopener noreferrer" target="_blank">Internet Connectivity</a>.</p>
<pre class="brush: jscript; title: ; notranslate">&lt;code&gt;&lt;!DOCTYPE html&gt;
&lt;html&gt;
&lt;head&gt;
&lt;title&gt;How connected line will move with the Shape in KineticJS?&lt;/title&gt;
&lt;script type=&quot;text/javascript&quot; src=&quot;http://d3lp1msu2r81bx.cloudfront.net/kjs/js/lib/kinetic-v4.4.3.min.js&quot;&gt;&lt;/script&gt;
&lt;/head&gt;
&lt;body&gt;

&lt;div id=&quot;conCanvas&quot;&gt;&lt;/div&gt;

&lt;script type=&quot;text/jscript&quot;&gt;
/*Stage for Drawing*/
var stage = new Kinetic.Stage({
container: 'conCanvas',
width: 600,
height: 500,
draggable: false
});

/*Creating Layer for Stage*/
var layer = new Kinetic.Layer();

/*Configuration for Line*/
var line = new Kinetic.Line({
id: 'line',
points: [50, 200, 250, 200],
stroke: 'red',
strokeWidth: 3,
lineCap: 'round',
lineJoin: 'round',
draggable: true
});

/*Adding line Configuration to Layer*/
layer.add(line);

/*Configuration for Rectangle*/
var rectangle = new Kinetic.Rect({
id: 'rectangle',
x: 200,
y: 150,
width: 100,
height: 100,
fill: 'lightblue',
stroke: 'black',
strokeWidth: 2,
draggable: true
});

/*Drag move event for Rectangle*/
rectangle.on('dragmove', function() {
moveLine(rectangle);
});

/*Adding Rectangle to Layer*/
layer.add(rectangle);

stage.add(layer);
stage.draw();

var x1, y1, x2, y2, lineCn, startPointX, startPointY, endPointX, endPointY;

function moveLine(shape) {

x2 = shape.getPosition().x + shape.getWidth()/2;
y2 = shape.getPosition().y + shape.getHeight()/2;

/*Getting Position Points for the Shape*/
startPointX = shape.getPosition().x;
startPointY = shape.getPosition().y;
endPointX = shape.getPosition().x + 100;
endPointY = shape.getPosition().y + 100;

for (var cn=0; cn&lt;stage.children[0].children.length; cn++) {

if (stage.children[0].children[cn].getId().match('line')) {
lineCn = stage.children[0].children[cn];

if (((startPointX &lt; lineCn.getPoints()[0].x &amp;&amp; lineCn.getPoints()[0].x &lt; endPointX) &amp;&amp; (startPointY &lt; lineCn.getPoints()[0].y &amp;&amp; lineCn.getPoints()[0].y &lt; endPointY))) {
x1 = lineCn.getPoints()[1].x;
y1 = lineCn.getPoints()[1].y;
}

if (((startPointX &lt; lineCn.getPoints()[1].x &amp;&amp; lineCn.getPoints()[1].x &lt; endPointX) &amp;&amp; (startPointY &lt; lineCn.getPoints()[1].y &amp;&amp; lineCn.getPoints()[1].y &lt; endPointY))) {
x1 = lineCn.getPoints()[0].x;
y1 = lineCn.getPoints()[0].y;
}
}
}

lineCn.setPoints([x1, y1, x2, y2]);

stage.draw();

}
&lt;/script&gt;
&lt;/body&gt;
&lt;/html&gt;</pre>
<p>The post <a href="https://jharaphula.com/how-connected-line-will-move-with-the-shape-using-kineticjs/">How Connected Line will move with the Shape using KineticJS?</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://jharaphula.com/how-connected-line-will-move-with-the-shape-using-kineticjs/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			<media:content url="https://jharaphula.com/wp-content/uploads/2016/05/circle-shapes.png" medium="image" />
	</item>
		<item>
		<title>How to Draw Arrow Head Line using KineticJS?</title>
		<link>https://jharaphula.com/how-to-draw-arrow-head-line-using-kineticjs/</link>
					<comments>https://jharaphula.com/how-to-draw-arrow-head-line-using-kineticjs/#respond</comments>
		
		<dc:creator><![CDATA[Biswabhusan Panda]]></dc:creator>
		<pubDate>Fri, 13 May 2016 18:16:46 +0000</pubDate>
				<category><![CDATA[KineticJS Examples]]></category>
		<category><![CDATA[Draw Arrow Head Line]]></category>
		<category><![CDATA[How to Draw?]]></category>
		<category><![CDATA[KineticJS]]></category>
		<category><![CDATA[Line using KineticJS]]></category>
		<guid isPermaLink="false">http://box.jharaphula.com/?p=732</guid>

					<description><![CDATA[<img width="300" height="173" src="https://jharaphula.com/wp-content/uploads/2016/05/flowbreeze-screenshot-300x173.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="How to Draw Arrow Head Line using KineticJS?" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/flowbreeze-screenshot-300x173.jpg 300w, https://jharaphula.com/wp-content/uploads/2016/05/flowbreeze-screenshot.jpg 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>KineticJS is a JavaScript Library which allow us to render high performance graphics over a HTML5 Canvas. Let us talk about an Application where we...</p>
<p>The post <a href="https://jharaphula.com/how-to-draw-arrow-head-line-using-kineticjs/">How to Draw Arrow Head Line using KineticJS?</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></description>
										<content:encoded><![CDATA[<img width="300" height="173" src="https://jharaphula.com/wp-content/uploads/2016/05/flowbreeze-screenshot-300x173.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="How to Draw Arrow Head Line using KineticJS?" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/flowbreeze-screenshot-300x173.jpg 300w, https://jharaphula.com/wp-content/uploads/2016/05/flowbreeze-screenshot.jpg 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>KineticJS is a JavaScript Library which allow us to render high performance graphics over a <a href="https://jharaphula.com/html5-canvas-examples/" target="_blank" rel="noopener noreferrer">HTML5 Canvas</a>. Let us talk about an Application where we need to draw flowcharts &amp; Lines. From one node to another node while drawing a line I want to show arrow head for the line. To make arrow head line dynamic it required few mathematical calculation. Look at the example below. Here I created line with arrow head.</p>
<p>In the sample application I have two points for the line. Which is declared as x1, y1 &amp; x2, y2. lineArrowConfig holds configuration setting for arrow head line. To draw finally adding the line configuration to layer &amp; using draw method rendering the stage.</p>
<p>To run the below application copy the codes into a notepad file &amp; save it as a html file. Before run the html file make sure you are with Internet Connectivity. Because here I used CDN link to refer KineticJS library.</p>
<h3>Demo App to Draw arrow Head Line</h3>
<pre class="brush: xml; title: ; notranslate">&lt;!DOCTYPE html&gt;
&lt;html&gt;
&lt;head&gt;
&lt;title&gt;Example to draw line with Arrow head using KineticJS&lt;/title&gt;
&lt;script src=&quot;http://d3lp1msu2r81bx.cloudfront.net/kjs/js/lib/kinetic-v5.0.2.min.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;
&lt;script src=&quot;http://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js&quot;&gt;&lt;/script&gt;
&lt;style type=&quot;text/css&quot;&gt;
.kineticjs-content { background-color: lightblue; }
&lt;/style&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;div id=&quot;container&quot;&gt;&lt;/div&gt;
&lt;script type=&quot;text/javascript&quot;&gt;

/* Declaration of Stage */
var stage = new Kinetic.Stage({
container: 'container',
width: 540,
height: 280,
draggable: false
});

/* Declartion of Layer */
var layer = new Kinetic.Layer({
name: 'layer'
});

/*Points for Line Draw*/
var x1 = 100;
var y1 = 100;
var x2 = 200;
var y2 = 200;

var headlen = 10;
var angle = Math.atan2(y2-y1,x2-x1);

/*Configuration settings for Line*/
var lineArrowConfig = new Kinetic.Line({
id: 'SingleArrowLine',
points: [ x1, y1,
x2,
y2,
x2-headlen*Math.cos(angle-Math.PI/6),
y2-headlen*Math.sin(angle-Math.PI/6),
x2,
y2,
x2-headlen*Math.cos(angle+Math.PI/6),
y2-headlen*Math.sin(angle+Math.PI/6)
],
shapeType: &quot;line&quot;,
stroke: 'red',
strokeWidth: 2,
lineCap: 'round',
lineJoin: 'round',
draggable: false
});

/*Adding line Configure to Layer*/
layer.add(lineArrowConfig);

stage.add(layer);
stage.draw();

&lt;/script&gt;
&lt;/body&gt;
&lt;/html&gt;</pre>
<p>The post <a href="https://jharaphula.com/how-to-draw-arrow-head-line-using-kineticjs/">How to Draw Arrow Head Line using KineticJS?</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://jharaphula.com/how-to-draw-arrow-head-line-using-kineticjs/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			<media:content url="https://jharaphula.com/wp-content/uploads/2016/05/flowbreeze-screenshot.jpg" medium="image" />
	</item>
		<item>
		<title>How to Open JQuery Modal Popup with disabled Parent Window?</title>
		<link>https://jharaphula.com/open-jquery-modal-window-popup/</link>
					<comments>https://jharaphula.com/open-jquery-modal-window-popup/#respond</comments>
		
		<dc:creator><![CDATA[Biswabhusan Panda]]></dc:creator>
		<pubDate>Fri, 13 May 2016 18:14:16 +0000</pubDate>
				<category><![CDATA[Learn JQuery with Examples]]></category>
		<category><![CDATA[client side functionality]]></category>
		<category><![CDATA[Jquery Modal Window]]></category>
		<category><![CDATA[Modal Window]]></category>
		<category><![CDATA[Popup with disabled parent Window]]></category>
		<guid isPermaLink="false">http://box.jharaphula.com/?p=730</guid>

					<description><![CDATA[<img width="300" height="185" src="https://jharaphula.com/wp-content/uploads/2016/05/modal-popup-300x185.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="How to open Jquery Modal Window? (Popup with disabled parent Window)" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/modal-popup-300x185.jpg 300w, https://jharaphula.com/wp-content/uploads/2016/05/modal-popup.jpg 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>Modal Window is like a Popup but During Modal Window parent window get disabled. Many times during Application development we required a modal window. Let&#8217;s...</p>
<p>The post <a href="https://jharaphula.com/open-jquery-modal-window-popup/">How to Open JQuery Modal Popup with disabled Parent Window?</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></description>
										<content:encoded><![CDATA[<img width="300" height="185" src="https://jharaphula.com/wp-content/uploads/2016/05/modal-popup-300x185.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="How to open Jquery Modal Window? (Popup with disabled parent Window)" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/modal-popup-300x185.jpg 300w, https://jharaphula.com/wp-content/uploads/2016/05/modal-popup.jpg 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>Modal Window is like a Popup but During Modal Window parent window get disabled. Many times during Application development we required a modal window. Let&#8217;s take an example I want to draw table on click of a button. In this case when user will click on create table button I need to show a modal window where user will provide number of rows &amp; columns. Depending upon these values I need to draw a HTML table. Jquery Modal Window is a client side functionality. It can be done using Advanced Jquery.</p>
<p>Look at the below example here I created a modal window using Jquery. In my page I have a link &#8220;Show Modal Winodw&#8221; on click of this I am calling a Jquery function tableDialog(). Table Dialog modal window has two buttons OK &amp; Cancel. On click event of OK button I kept blank. On cancel button event I am closing the window.</p>
<p>Dialog is a Jquery UI method. To tblDialog div here I am applying Jquery dialog method. By passing width, resizable, buttons &amp; autoOpen I am configuring my modal window. In side dialog by declaring modal: true I am showing the div (tblDialog) as a modal window else it will act like a popup. For default height of my modal window I added a css class to tblDialog div.</p>
<p>To run this program copy the below code into a notepad file. Save it as a html file. Before run the html file make sure you are with Internet Connectivity. Because here I used CDN link for Jquery &amp; Jquery UI libraries.</p>
<h2>JQuery Modal Window with disabled parent Window</h2>
<pre class="brush: xml; title: ; notranslate">&lt;!Doctype html&gt;
&lt;html&gt;
&lt;head&gt;
&lt;title&gt;How to Open JQuery Modal Popup?&lt;/title&gt;
&lt;script src=&quot;http://code.jquery.com/jquery-1.9.1.js&quot;&gt;&lt;/script&gt;
&lt;script src=&quot;http://code.jquery.com/ui/1.10.2/jquery-ui.js&quot;&gt;&lt;/script&gt;
&lt;link rel=&quot;stylesheet&quot; href=&quot;http://code.jquery.com/ui/1.9.1/themes/base/jquery-ui.css&quot; /&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
var tableDialog = function () {
$(&quot;#tblDialog&quot;).dialog({
dialogClass: &quot;no-close&quot;,
resizable: false,
width: &quot;540px&quot;,
modal: true,
buttons: [{
text: &quot;Ok&quot;,
click: function () {
/*Write Code for OK button*/
}
}, {
text: &quot;Cancel&quot;,
click: function () {
/*On click of close button closing dialog*/
$(this).dialog(&quot;close&quot;);
}
}],
autoOpen: true
});
};
&lt;/script&gt;
&lt;style type=&quot;text/css&quot;&gt;
#tblDialog {
height:100px !important;
}
&lt;/style&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;div id=&quot;links&quot;&gt;
&lt;a onclick=&quot;tableDialog();&quot;&gt;Show Modal Window&lt;/a&gt;
&lt;div id=&quot;tblDialog&quot; title=&quot;Jquery Modal Window&quot; style=&quot;display: none;&quot;&gt;
This is a Sample Modal Window using Jquery.
&lt;/div&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;/body&gt;
&lt;/html&gt;</pre>
<p>The post <a href="https://jharaphula.com/open-jquery-modal-window-popup/">How to Open JQuery Modal Popup with disabled Parent Window?</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://jharaphula.com/open-jquery-modal-window-popup/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			<media:content url="https://jharaphula.com/wp-content/uploads/2016/05/modal-popup.jpg" medium="image" />
	</item>
		<item>
		<title>Jquery function to Generate Random font Size &#038; Color Anchor Tags</title>
		<link>https://jharaphula.com/jquery-function-to-generate-random-font-size-color-anchor-tags/</link>
					<comments>https://jharaphula.com/jquery-function-to-generate-random-font-size-color-anchor-tags/#comments</comments>
		
		<dc:creator><![CDATA[Biswabhusan Panda]]></dc:creator>
		<pubDate>Fri, 13 May 2016 18:11:54 +0000</pubDate>
				<category><![CDATA[Learn JQuery with Examples]]></category>
		<category><![CDATA[Color Anchor Tags]]></category>
		<category><![CDATA[Generate Random font Size]]></category>
		<category><![CDATA[Jquery Function]]></category>
		<guid isPermaLink="false">http://box.jharaphula.com/?p=728</guid>

					<description><![CDATA[<img width="300" height="196" src="https://jharaphula.com/wp-content/uploads/2016/05/random-string-1-300x196.png" class="webfeedsFeaturedVisual wp-post-image" alt="Jquery function to Generate Random font Size &amp; Color Anchor Tags" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/random-string-1-300x196.png 300w, https://jharaphula.com/wp-content/uploads/2016/05/random-string-1-182x120.png 182w, https://jharaphula.com/wp-content/uploads/2016/05/random-string-1-106x70.png 106w, https://jharaphula.com/wp-content/uploads/2016/05/random-string-1.png 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>While displaying many links together to make the panel more attractive we want to add text effects like random font size and colors to the...</p>
<p>The post <a href="https://jharaphula.com/jquery-function-to-generate-random-font-size-color-anchor-tags/">Jquery function to Generate Random font Size &#038; Color Anchor Tags</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></description>
										<content:encoded><![CDATA[<img width="300" height="196" src="https://jharaphula.com/wp-content/uploads/2016/05/random-string-1-300x196.png" class="webfeedsFeaturedVisual wp-post-image" alt="Jquery function to Generate Random font Size &amp; Color Anchor Tags" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/random-string-1-300x196.png 300w, https://jharaphula.com/wp-content/uploads/2016/05/random-string-1-182x120.png 182w, https://jharaphula.com/wp-content/uploads/2016/05/random-string-1-106x70.png 106w, https://jharaphula.com/wp-content/uploads/2016/05/random-string-1.png 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>While displaying many links together to make the panel more attractive we want to add text effects like random font size and colors to the anchor tags. Mannually it can be done by using Style sheet but it is more programmer friendly if we use programming technique to decorate the links. This practice help in reuse of codes.</p>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-3087" src="https://jharaphula.com/wp-content/uploads/2016/05/decorating-anchor-tag.png" alt="decorating-anchor-tag" width="929" height="197" srcset="https://jharaphula.com/wp-content/uploads/2016/05/decorating-anchor-tag.png 929w, https://jharaphula.com/wp-content/uploads/2016/05/decorating-anchor-tag-300x64.png 300w" sizes="auto, (max-width: 929px) 100vw, 929px" /></p>
<p>In the below example I have many links inside a div with div id &#8220;links&#8221;. Using Jquery in document.ready() method I am locating all the links inside the div &amp; applying random font size &amp; color to each anchor tags. randomNumberGenerator() is js function which generates random number for font size in between the min &amp; max values. To apply style over anchor tags I am using css() method from Jquery. Look at the example below.</p>
<p>To run this example Copy the code to a Notepad file &amp; Save it as a html file. Here to refer Jquery library I used Jquery CDN link. While running this app be sure you are with Internet Connectivity.</p>
<h3>Example to Generate Random font Size &amp; Color</h3>
<pre class="brush: xml; title: ; notranslate">&lt;!Doctype html&gt;
&lt;html&gt;
&lt;head&gt;
&lt;title&gt;Tag like Anchor Tags using Random Font Size &amp; Color&lt;/title&gt;
&lt;script src=&quot;http://code.jquery.com/jquery-1.10.2.js&quot;&gt;&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
$(document).ready(function() {

/*Colors you need to add for your anchor tags*/
var colors = ['red', 'green', 'blue', 'orange', 'gray'];

/*Minimum &amp; Maximum font Size*/
var minFontSize = 10;
var maxFontSize = 40;

/*Finding all the links inside a Div*/
$('#links').find('a').each(function(e) {
/*Applying font size*/
$(this).css(&quot;fontSize&quot;, randomNumberGenerator(minFontSize, maxFontSize));
/*Applying font color*/
$(this).css(&quot;color&quot;, colors[Math.floor(Math.random() * colors.length)]);
});

/*Random Number Generator function*/
function randomNumberGenerator(min,max)
{
return Math.floor(Math.random()*(max-min+1)+min);
}
});
&lt;/script&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;div id=&quot;links&quot;&gt;
&lt;a href=&quot;https://jharaphula.com/category/health-tips&quot; target=&quot;_blank&quot;&gt;Health Tips&lt;/a&gt;, &lt;a href=&quot;https://jharaphula.com/category/beauty-tips&quot; target=&quot;_blank&quot;&gt;Beauty Tips&lt;/a&gt;, &lt;a href=&quot;https://jharaphula.com/category/celebrity&quot; target=&quot;_blank&quot;&gt;Celebrity&lt;/a&gt;, &lt;a href=&quot;https://jharaphula.com/category/kids&quot; target=&quot;_blank&quot;&gt;Kids&lt;/a&gt;, &lt;a href=&quot;https://jharaphula.com/category/recipes&quot; target=&quot;_blank&quot;&gt;Recipes&lt;/a&gt;, &lt;a href=&quot;https://jharaphula.com/tag/effective-tips&quot; target=&quot;_blank&quot;&gt;Effective Tips&lt;/a&gt;, &lt;a href=&quot;https://jharaphula.com/category/blog&quot; target=&quot;_blank&quot;&gt;Our Blog&lt;/a&gt;, &lt;a href=&quot;https://jharaphula.com/category/women&quot; target=&quot;_blank&quot;&gt;Women&lt;/a&gt;, &lt;a href=&quot;https://jharaphula.com/tag/how-to&quot;  target=&quot;_blank&quot;&gt;How to&lt;/a&gt;, &lt;a href=&quot;https://jharaphula.com/tag/skin-care-tips&quot; target=&quot;_blank&quot;&gt;Skin Care Tips&lt;/a&gt;, &lt;a href=&quot;https://jharaphula.com/category/business&quot; target=&quot;_blank&quot;&gt;Business&lt;/a&gt;, &lt;a href=&quot;https://jharaphula.com/category/career&quot; target=&quot;_blank&quot;&gt;Career&lt;/a&gt;, &lt;a href=&quot;https://jharaphula.com/tag/breast-care&quot; target=&quot;_blank&quot;&gt;Breast Care&lt;/a&gt;, &lt;a href=&quot;https://jharaphula.com/category/real-estate&quot;&gt;Real Estate&lt;/a&gt;, &lt;a href=&quot;https://jharaphula.com/category/romance&quot;&gt;Romance&lt;/a&gt;, &lt;a href=&quot;https://jharaphula.com/category/seo-tips&quot; target=&quot;_blank&quot;&gt;SEO Tips&lt;/a&gt;, &lt;a href=&quot;https://jharaphula.com/tag/loan&quot; target=&quot;_blank&quot;&gt;Loan&lt;/a&gt;, &lt;a href=&quot;https://jharaphula.com/tag/makeup-tips&quot; target=&quot;_blank&quot;&gt;Makeup Tips&lt;/a&gt;, &lt;a href=&quot;https://jharaphula.com/tag/couples-guide&quot; target=&quot;_blank&quot;&gt;Couples Guide&lt;/a&gt;, &lt;a href=&quot;https://jharaphula.com/tag/high-pr-backlinks&quot; target=&quot;_blank&quot;&gt;High PR Backlinks&lt;/a&gt;, &lt;a href=&quot;https://jharaphula.com/tag/home-remedy&quot; target=&quot;_blank&quot;&gt;Home Remedy&lt;/a&gt;,&lt;br /&gt;&lt;a href=&quot;https://jharaphula.com/tag/hosting&quot; target=&quot;_blank&quot;&gt;Hosting&lt;/a&gt;, &lt;a href=&quot;https://jharaphula.com/tag/insurance&quot; target=&quot;_blank&quot;&gt;Insurance&lt;/a&gt;, &lt;a href=&quot;https://jharaphula.com/tag/interview-questions&quot; target=&quot;_blank&quot;&gt;Interview Questions&lt;/a&gt;, &lt;a href=&quot;https://jharaphula.com/category/stories&quot; target=&quot;_blank&quot;&gt;Stories&lt;/a&gt;, &lt;a href=&quot;https://jharaphula.com/category/programming&quot; target=&quot;_blank&quot;&gt;Programming&lt;/a&gt;, &lt;a href=&quot;https://jharaphula.com/tag/marketing&quot; target=&quot;_blank&quot;&gt;Marketing&lt;/a&gt;, &lt;a href=&quot;https://jharaphula.com/tag/personal-computer&quot; target=&quot;_blank&quot;&gt;Personal Computer&lt;/a&gt;, &lt;a href=&quot;https://jharaphula.com/tag/pregnancy&quot; target=&quot;_blank&quot;&gt;Pregnancy&lt;/a&gt;
&lt;/div&gt;
&lt;/body&gt;
&lt;/html&gt;</pre>
<p>Here I am using very simple logics to achive the required functionalities. Colors is a Javascript array which contains verious colors as per the need. You can add n number of colors to this array. 2 variables are defiend for font size. minFontSize stores the most smaller font size while maxFontSize stores the largest. To generate random font size in-between min and max font size values here I wrote a js function randomNumberGenerator(min,max).</p>
<p>Next what more I did is using jquery find function I am finding all anchor tags inside the the div #links. Then inside the loop for each item I am applying font size and color.</p>
<p>Inside randomNumberGenerator function I am using math.floor and math.random methods to generate random number. To bring Jquery platform here I am using Jquery CDN link.</p>
<p>The post <a href="https://jharaphula.com/jquery-function-to-generate-random-font-size-color-anchor-tags/">Jquery function to Generate Random font Size &#038; Color Anchor Tags</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://jharaphula.com/jquery-function-to-generate-random-font-size-color-anchor-tags/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			<media:content url="https://jharaphula.com/wp-content/uploads/2016/05/random-string-1.png" medium="image" />
	</item>
		<item>
		<title>Example of using AngularJS Filter &#038; built-in Filters</title>
		<link>https://jharaphula.com/example-of-angularjs-filter/</link>
					<comments>https://jharaphula.com/example-of-angularjs-filter/#respond</comments>
		
		<dc:creator><![CDATA[Biswabhusan Panda]]></dc:creator>
		<pubDate>Fri, 13 May 2016 18:02:51 +0000</pubDate>
				<category><![CDATA[AngularJS with Examples]]></category>
		<category><![CDATA[AngularJS Filter]]></category>
		<category><![CDATA[built-in Filters]]></category>
		<category><![CDATA[Filters in Controllers]]></category>
		<guid isPermaLink="false">http://box.jharaphula.com/?p=720</guid>

					<description><![CDATA[<img width="300" height="190" src="https://jharaphula.com/wp-content/uploads/2016/05/AngularJS-Search-300x190.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="Example of using AngularJS Filter &amp; built-in Filters" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/AngularJS-Search-300x190.jpg 300w, https://jharaphula.com/wp-content/uploads/2016/05/AngularJS-Search.jpg 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>AngularJS is a High Level Programming language. To search data from a list of records AngularJS provides filter keyword. AngularJS Filter is a way that...</p>
<p>The post <a href="https://jharaphula.com/example-of-angularjs-filter/">Example of using AngularJS Filter &#038; built-in Filters</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></description>
										<content:encoded><![CDATA[<img width="300" height="190" src="https://jharaphula.com/wp-content/uploads/2016/05/AngularJS-Search-300x190.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="Example of using AngularJS Filter &amp; built-in Filters" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/AngularJS-Search-300x190.jpg 300w, https://jharaphula.com/wp-content/uploads/2016/05/AngularJS-Search.jpg 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>AngularJS is a High Level Programming language. To search data from a list of records AngularJS provides filter keyword. AngularJS Filter is a way that will help you to transform your data to an appropriate representation in the View in a certain format. There are many inbuilt filters provided by AngularJS that give us the way to format our data in View. With these built-in filters, we can format &amp; show our data in various ways. Text can be shown in uppercase, lowercase. Date can be also represented in various formats. All we need to do is add a &#8220;|&#8221; (pipe) after the data.</p>
<p>In the following example I listed out many countries in Controller with a scope variable Countries. Using an input control I am passing my search queries. <a href="https://jharaphula.com/beginners-learn-angularjs-with-examples/" target="_blank" rel="noopener noreferrer">AngularJS</a> ng-model works here to make the input control as a query passing control. While binding data using ng-repeat to a ul element I used filter keyword to filter my query.</p>
<p>To run this example you can copy this code to a notepad file &amp; save it as html. I am using CDN link to refer AngularJS library. To successfully run the example below be sure you are with Internet Connectivity.</p>
<h3>Example of AngularJS Filter</h3>
<pre class="brush: xml; title: ; notranslate">&lt;html ng-app=&quot;CountriesMod&quot;&gt;
&lt;head&gt;
&lt;title&gt;Example to use filter in AngularJS?&lt;/title&gt;
&lt;script src=&quot;https://ajax.googleapis.com/ajax/libs/angularjs/1.0.1/angular.min.js&quot;&gt;&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
var CountriesMod = angular.module('CountriesMod', []);
CountriesMod.controller('CountriesCon', function ($scope) {
$scope.Countries = [ {'CountryName': 'Afghanistan'}, {'CountryName': 'Algeria'}, {'CountryName': 'Bahamas'}, {'CountryName': 'Bangladesh'}, {'CountryName': 'Belgium'}, {'CountryName': 'Cambodia'}, {'CountryName': 'Canada'}, {'CountryName': 'Central African'}, {'CountryName': 'Denmark'}, {'CountryName': 'Indonesia'}, {'CountryName': 'India'}, {'CountryName': 'Pakistan'}, {'CountryName': 'Malaysia'}, {'CountryName': 'Romania'}, {'CountryName': 'Taiwan'} ];
});
&lt;/script&gt;
&lt;/head&gt;
&lt;body ng-controller=&quot;CountriesCon&quot;&gt;
Filter for Countries: &lt;input ng-model=&quot;query&quot;&gt;
&lt;ul&gt;
&lt;li ng-repeat=&quot;Country in Countries | filter:query&quot;&gt;{{Country.CountryName}}&lt;/li&gt;
&lt;/ul&gt;
&lt;/body&gt;
&lt;/html&gt;</pre>
<h3>AngularJS Built-in Filters</h3>
<p><em>Filter</em> &#8211; Filter the array to a subset of it based on provided criteria.<br />
<em>Uppercase</em> &#8211; Convert the text to upper case text.<br />
<em>Lowercase</em> &#8211; Convert the text to lower case text.<br />
<em>Currency</em> &#8211; Formats the text in a currency format.<br />
<em>Order By</em> &#8211; Order the array based on provided criteria.<br />
<em>Date</em> &#8211; Format the date to a specific format.<br />
<em>Number</em> &#8211; Format the number to a string format.</p>
<p><strong>Filters to an expression</strong></p>
<p>Example to add Filter in AngularJS expression.</p>
<pre class="brush: xml; title: ; notranslate">&lt;div ng-app=&quot;myApp&quot; ng-controller=&quot;nameCtrl&quot;&gt;
&lt;p&gt;Last name is {{ lastName | lowercase }}&lt;/p&gt;
&lt;/div&gt;</pre>
<p><strong>Filters to Directives</strong></p>
<p>Example to add Filter in AngularJS Custom Directives.</p>
<pre class="brush: xml; title: ; notranslate">&lt;div ng-app=&quot;myApp&quot; ng-controller=&quot;namesCtrl&quot;&gt;
&lt;ul&gt;
&lt;li ng-repeat=” x in names | orderBy: ‘country’ “&gt;
{{ x.name + ‘, ’ + x.country}}&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;</pre>
<p><strong>Filters in controllers</strong></p>
<p>Example to injecting Filter to AngularJS Controller.</p>
<pre class="brush: jscript; title: ; notranslate">myApp.controller(&quot;myController&quot;,function($scope,$filter){
$scope.filterPhone = $filter('convertToPhone')('1234567890');
});</pre>
<p><strong>Filters in Factory</strong></p>
<p>Example of injecting Filter to Factory.</p>
<pre class="brush: jscript; title: ; notranslate">myApp.factory(&quot;myCustomService&quot;,function($filter){
return{
filteredData: $filter('uppercase')('mishra'),
};
});</pre>
<p><strong>Filters in Services</strong></p>
<p>Example to injecting Filter to Service.</p>
<pre class="brush: jscript; title: ; notranslate">myApp.service('myCustomeService',function($filter){
this.filterData = $filter('uppercase')('john');
});</pre>
<p><strong>Example of built-in Filters</strong></p>
<p>We can also create custom filter to display our data in a particular way that we want. Using .filter method we can create custom filters in Angular JS. Look at the example below.</p>
<pre class="brush: xml; title: ; notranslate">&lt;!DOCTYPE html&gt;
&lt;html&gt;
&lt;head&gt;
&lt;title&gt;Using AngularJS Filters&lt;/title&gt;
&lt;script src = &quot;http://ajax.googleapis.com/ajax/libs/angularjs/1.3.14/angular.min.js&quot;&gt;
&lt;/script&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;h2&gt;AngularJS demo Application&lt;/h2&gt;
&lt;div ng-app = &quot;mainApp&quot; ng-controller = &quot;studentController&quot;&gt;
&lt;table border = &quot;0&quot;&gt;
&lt;tr&gt;
&lt;td&gt;First Name:&lt;/td&gt;
&lt;td&gt;&lt;input type = &quot;text&quot; ng-model = &quot;student.firstName&quot;&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Last Name: &lt;/td&gt;
&lt;td&gt;&lt;input type = &quot;text&quot; ng-model = &quot;student.lastName&quot;&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Fees: &lt;/td&gt;
&lt;td&gt;&lt;input type = &quot;text&quot; ng-model = &quot;student.fees&quot;&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Subject: &lt;/td&gt;
&lt;td&gt;&lt;input type = &quot;text&quot; ng-model = &quot;subjectName&quot;&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;br/&gt;
&lt;table border = &quot;0&quot;&gt;
&lt;tr&gt;
&lt;td&gt;Name in Upper Case: &lt;/td&gt;
&lt;td&gt;{{student.fullName() | uppercase}}&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Name in Lower Case: &lt;/td&gt;
&lt;td&gt;
{{student.fullName() | lowercase}}
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;fees: &lt;/td&gt;
&lt;td&gt;
{{student.fees | currency}}
&lt;/td&gt;
&lt;/tr&gt;	
&lt;tr&gt;
&lt;td&gt;Subject:&lt;/td&gt;
&lt;td&gt;
&lt;ul&gt;
&lt;li ng-repeat = &quot;subject in student.subjects | filter: subjectName |orderBy:'marks'&quot;&gt;
{{ subject.name + ', marks:' + subject.marks }}
&lt;/li&gt;
&lt;/ul&gt;
&lt;/td&gt;	
&lt;/tr&gt;	
&lt;/table&gt;
&lt;/div&gt;
&lt;script&gt;
var mainApp = angular.module(&quot;mainApp&quot;, []);
mainApp.controller('studentController', function($scope) {	
$scope.student = {
firstName: &quot;David&quot;,
lastName: &quot;Beckham&quot;,
fees: 1000,
subjects: [
{name:'Physics',marks:70},
{name:'Chemistry',marks:80},
{name:'Maths',marks:65}
],
fullName: function() {
var studentObject;
studentObject = $scope.student;
return studentObject.firstName + &quot; &quot; + studentObject.lastName;
}
};
});
&lt;/script&gt;
&lt;/body&gt;
&lt;/html&gt;</pre>
<p>The post <a href="https://jharaphula.com/example-of-angularjs-filter/">Example of using AngularJS Filter &#038; built-in Filters</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://jharaphula.com/example-of-angularjs-filter/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			<media:content url="https://jharaphula.com/wp-content/uploads/2016/05/AngularJS-Search.jpg" medium="image" />
	</item>
		<item>
		<title>JavaScript Function to find all points between any two points</title>
		<link>https://jharaphula.com/javascript-function-to-find-all-points-between-any-two-points/</link>
					<comments>https://jharaphula.com/javascript-function-to-find-all-points-between-any-two-points/#respond</comments>
		
		<dc:creator><![CDATA[Nibedita Panda]]></dc:creator>
		<pubDate>Fri, 13 May 2016 17:44:01 +0000</pubDate>
				<category><![CDATA[JS Functions & Examples]]></category>
		<category><![CDATA[Calculating the Slope]]></category>
		<category><![CDATA[HTML5 Canvas]]></category>
		<category><![CDATA[points between any two points]]></category>
		<guid isPermaLink="false">http://box.jharaphula.com/?p=711</guid>

					<description><![CDATA[<img width="300" height="191" src="https://jharaphula.com/wp-content/uploads/2016/05/js-function-300x191.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="JavaScript Function to find all points between any two points" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/js-function-300x191.jpg 300w, https://jharaphula.com/wp-content/uploads/2016/05/js-function.jpg 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>In our day today development some time we required a to find out all points between any two points. Let us discuss a scenario where...</p>
<p>The post <a href="https://jharaphula.com/javascript-function-to-find-all-points-between-any-two-points/">JavaScript Function to find all points between any two points</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></description>
										<content:encoded><![CDATA[<img width="300" height="191" src="https://jharaphula.com/wp-content/uploads/2016/05/js-function-300x191.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="JavaScript Function to find all points between any two points" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/js-function-300x191.jpg 300w, https://jharaphula.com/wp-content/uploads/2016/05/js-function.jpg 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>In our day today development some time we required a to find out all points between any two points. Let us discuss a scenario where I need to draw lines on a <a href="https://jharaphula.com/drawimage-on-html5-canvas/" rel="noopener noreferrer" target="_blank">HTML5 Canvas</a> but no two line will Cross each other. In this case to validate the new line that it is not overlapping the existing line first I need to find out all the points hold by the existing line. I have X1, Y1 &amp; X2, Y2 as the starting &amp; ending point of the existing line. Using the below function I am calculating the Slope &amp; Intercept. Finally, using Console.log() I am printing all the points between X1, Y1 &amp; X2, Y2.</p>
<h3>Find all points between any two points</h3>
<pre class="brush: jscript; title: ; notranslate">function getLinePoints(x1, y1, x2, y2) {
/*A &amp; B are two Array which Holds x1, y1 &amp; x2, y2 values*/
var A, B;
/*If both the lines are in same x-axis*/
if (x1 == x2) {
/*Checking for y1 greater than y2 else swapping the value*/
if (y1&lt;y2) {
A=[x1,y1];
B=[x2,y2];
} else {
/*Swapping*/
B=[x1,y1];
A=[x2,y2];
}
/*Calculating Slope for the line*/
function getSlope(a, b) {
if (a[1] == b[1]) {
return null;
}
return (b[0] - a[0]) / (b[1] - a[1]);
}
function getIntercept(point, getSlope) {
if (getSlope === null) {
return point[0];
}
return point[1] - getSlope * point[0];
}
var m = getSlope(A, B);
var b = getIntercept(A, m);
for (var y = A[1]; y &lt;= B[1]; y++){
/*Formula to Calculate x from y*/
var x = m * y + b;
/*Printing all line Points to Console window*/
console.log([x, y]);
}
} else {
/*Checking for x1 greater than x2 else swapping the value*/
if (x1&lt;x2) {
A=[x1,y1];
B=[x2,y2];
} else {
/*Swapping*/
B=[x1,y1];
A=[x2,y2];
}
/*Calculating Slope for the line*/
function getSlope(a, b) {
if (a[0] == b[0]) {
return null;
}
return (b[1] - a[1]) / (b[0] - a[0]);
}
function getIntercept(point, getSlope) {
if (getSlope === null) {
return point[0];
}
return point[1] - getSlope * point[0];
}
var m = getSlope(A, B);
var b = getIntercept(A, m);
for (var x = A[0]; x &lt;= B[0]; x++){
/*Formula to Calculate y from x*/
var y = m * x + b;
/*Printing all line Points to Console window*/
console.log([x, y]);
}
}
}</pre>
<p>The post <a href="https://jharaphula.com/javascript-function-to-find-all-points-between-any-two-points/">JavaScript Function to find all points between any two points</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://jharaphula.com/javascript-function-to-find-all-points-between-any-two-points/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			<media:content url="https://jharaphula.com/wp-content/uploads/2016/05/js-function.jpg" medium="image" />
	</item>
		<item>
		<title>Jquery Email Validation using Regular Expression</title>
		<link>https://jharaphula.com/jquery-email-validation-regular-expression/</link>
					<comments>https://jharaphula.com/jquery-email-validation-regular-expression/#respond</comments>
		
		<dc:creator><![CDATA[Nibedita Panda]]></dc:creator>
		<pubDate>Fri, 13 May 2016 17:32:50 +0000</pubDate>
				<category><![CDATA[Learn JQuery with Examples]]></category>
		<category><![CDATA[CDN links]]></category>
		<category><![CDATA[Jquery Email Validation]]></category>
		<category><![CDATA[Regular Expression]]></category>
		<guid isPermaLink="false">http://box.jharaphula.com/?p=705</guid>

					<description><![CDATA[<img width="300" height="194" src="https://jharaphula.com/wp-content/uploads/2016/05/email-validation-300x194.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="Jquery Email Validation using Regular Expression" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/email-validation-300x194.jpg 300w, https://jharaphula.com/wp-content/uploads/2016/05/email-validation-294x190.jpg 294w, https://jharaphula.com/wp-content/uploads/2016/05/email-validation-106x70.jpg 106w, https://jharaphula.com/wp-content/uploads/2016/05/email-validation.jpg 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>In internet Email ID acts like an identity token. Whether you do register for a Job site or Forum a valid Email ID is mandatory....</p>
<p>The post <a href="https://jharaphula.com/jquery-email-validation-regular-expression/">Jquery Email Validation using Regular Expression</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></description>
										<content:encoded><![CDATA[<img width="300" height="194" src="https://jharaphula.com/wp-content/uploads/2016/05/email-validation-300x194.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="Jquery Email Validation using Regular Expression" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/email-validation-300x194.jpg 300w, https://jharaphula.com/wp-content/uploads/2016/05/email-validation-294x190.jpg 294w, https://jharaphula.com/wp-content/uploads/2016/05/email-validation-106x70.jpg 106w, https://jharaphula.com/wp-content/uploads/2016/05/email-validation.jpg 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>In internet Email ID acts like an identity token. Whether you do register for a Job site or Forum a valid Email ID is mandatory. During registration process there is a possibility that user can provide invalid Email ID. So to prevent spam we use Email Validation. In Web Technology Email validation can be done using both Client &amp; Server side scripts. But if we will look into performance it is more better to use client resources to validate an email. As you know <a href="https://jharaphula.com/category/programming-solutions/learn-jquery-with-examples/" target="_blank" rel="noopener noreferrer">jquery is one of the most powerful Client-side scripting language</a>. In this demo app I created a Jquery Email Validation using Regular Expression.</p>
<p>Look at the code below here in HTML body part I have a input box with a submit button. Onclick of submit button I am calling a jquery function validEmail($email) inside the jquery document.ready() method. This function accepts email id as a parameter. To verify the email id inside the validEmail() function I am using regular expression with jquery test method. You can do the same using jquery match method too.</p>
<p>To run the below example. Copy the Codes to a notepad file. Save it as a HTML file. Then Open it in your browser. Here to refer jquery library file I am using CDN link. Make sure while running this demo app you are with internet connectivity.</p>
<h3>jquery-email-validation.htm</h3>
<pre class="brush: xml; title: ; notranslate">&lt;!Doctype html&gt;
&lt;html&gt;
&lt;head&gt;
&lt;title&gt;Jquery Email Validation using Regular Expression&lt;/title&gt;
&lt;script src=&quot;http://code.jquery.com/jquery-1.10.2.js&quot;&gt;&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
$(document).ready(function() {
/*Email Validation Function using Regular Expression*/
function validEmail($email) {
var emailReg = /^([\w-\.]+@([\w-]+\.)+[\w-]{2,4})?$/;
if( !emailReg.test($email) ) {
alert('Invalid Email ID.');
} else {
alert('Valid Email ID.');
}
}
/*Submit Button Click event using Jquery*/
$(&quot;#btnSubmit&quot;).click(function() {
var email = $('#txtEmail').val().trim();
if (email) {
validEmail(email);
}
});
});
&lt;/script&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;input type=&quot;text&quot; id=&quot;txtEmail&quot; /&gt;
&lt;button id=&quot;btnSubmit&quot;&gt;Submit the Form&lt;/button&gt;
&lt;/body&gt;
&lt;/html&gt;</pre>
<p>The post <a href="https://jharaphula.com/jquery-email-validation-regular-expression/">Jquery Email Validation using Regular Expression</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://jharaphula.com/jquery-email-validation-regular-expression/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			<media:content url="https://jharaphula.com/wp-content/uploads/2016/05/email-validation.jpg" medium="image" />
	</item>
		<item>
		<title>One Div to an another Div drag and drop Jquery Example</title>
		<link>https://jharaphula.com/drag-and-drop-jquery-example/</link>
					<comments>https://jharaphula.com/drag-and-drop-jquery-example/#respond</comments>
		
		<dc:creator><![CDATA[Nibedita Panda]]></dc:creator>
		<pubDate>Fri, 13 May 2016 17:30:51 +0000</pubDate>
				<category><![CDATA[Learn JQuery with Examples]]></category>
		<category><![CDATA[Div drag and drop]]></category>
		<category><![CDATA[Div to an another Div]]></category>
		<category><![CDATA[drag and drop Jquery Example]]></category>
		<guid isPermaLink="false">http://box.jharaphula.com/?p=703</guid>

					<description><![CDATA[<img width="300" height="134" src="https://jharaphula.com/wp-content/uploads/2016/05/drag-n-drop-300x134.png" class="webfeedsFeaturedVisual wp-post-image" alt="One Div to an another Div drag and drop Jquery Example" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/drag-n-drop-300x134.png 300w, https://jharaphula.com/wp-content/uploads/2016/05/drag-n-drop.png 855w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>Drag n Drop is a user interface mechanism using which user can copy, reorder or deletion of items through the use of mouse. To drag...</p>
<p>The post <a href="https://jharaphula.com/drag-and-drop-jquery-example/">One Div to an another Div drag and drop Jquery Example</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></description>
										<content:encoded><![CDATA[<img width="300" height="134" src="https://jharaphula.com/wp-content/uploads/2016/05/drag-n-drop-300x134.png" class="webfeedsFeaturedVisual wp-post-image" alt="One Div to an another Div drag and drop Jquery Example" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/drag-n-drop-300x134.png 300w, https://jharaphula.com/wp-content/uploads/2016/05/drag-n-drop.png 855w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>Drag n Drop is a user interface mechanism using which user can copy, reorder or deletion of items through the use of mouse. To drag you need to select the element then click and hold the element using your mouse pointer. Drag it to the container area and release the mouse button to drop the element inside.</p>
<p>Many times during application development to make our application much more user friendly we required to implement drag and drop facility. Whether the matter of Dashboard or Datagrid using drag and drop we can make to page more user friendly. Drag and Drop can be done using both server-side and client-side scripting. For high performance webpages or apps its wise to implement drag and drop using Client-side Scripting. This practice reduces network load.</p>
<p>JQuery is a Javascript library. To implement drag and drop using Javascript we must need to write some 40 to 50 lines of Code. While using JQuery in-built methods we can do the same in 5 to 6 lines of Code. In the below demo app I have two panels left panel &amp; right panel. Left panel is a div which is called toolbar. Right panel is an another div called Container. What I need is from left pan toolbar I need to drag nodes to container area. While dragging I need to generate cloning for the draggable element over Container area. Look at this drag and drop <a href="https://jharaphula.com/category/programming-solutions/learn-jquery-with-examples/" target="_blank" rel="noopener noreferrer">Jquery example</a> how I implemented the things using JQuery draggable method.</p>
<p>To run the below demo app copy the codes to a Notepad file. Save it as a HTML file. Then open the file in your browser.</p>
<h2>Drag and Drop JQuery Example</h2>
<pre class="brush: xml; title: ; notranslate">&lt;!Doctype html&gt;
&lt;html&gt;
&lt;head&gt;
&lt;title&gt;Drag n Drop from a Div to an another Div using Jquery&lt;/title&gt;
&lt;link rel=&quot;stylesheet&quot; href=&quot;http://code.jquery.com/ui/1.11.2/themes/smoothness/jquery-ui.css&quot;&gt;
&lt;script src=&quot;http://code.jquery.com/jquery-1.10.2.js&quot;&gt;&lt;/script&gt;
&lt;script src=&quot;http://code.jquery.com/ui/1.11.2/jquery-ui.js&quot;&gt;&lt;/script&gt;
&lt;style type=&quot;text/css&quot;&gt;
#toolbar { float:left; border-style:solid; border-color:#000000; border-width:thin; width: 120px; height: 350px; margin-right:3px; }
#container { float:left; border-style:solid; border-color:#000000; border-width:thin; width:800px; height:540px; }
#dragImage { width:64px; height:64px; }
&lt;/style&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;div id=&quot;toolbar&quot;&gt;
&lt;div class=&quot;tbutton&quot;&gt;&lt;img id=&quot;dragImage&quot; src=&quot;http://www.html5canvastutorials.com/demos/assets/yoda.jpg&quot; /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div id=&quot;container&quot;&gt;&lt;/div&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
$(&quot;#dragImage&quot;).draggable({ helper: &quot;clone&quot; });
$(&quot;#container&quot;).droppable({
drop: function(event, ui) {
$(&quot;#container&quot;).append(&quot;&lt;img id='dragImage' src='http://www.html5canvastutorials.com/demos/assets/yoda.jpg' /&gt;&quot;);
}
});
&lt;/script&gt;
&lt;/body&gt;
&lt;/html&gt;</pre>
<p>In the above example I used CDN files for Jquery and Jquery UI library. Toolbar div contains an image as a node. Container is an another div where I need to drag the image. To make a clone here I used <span style="color: brown;">$(&#8220;#dragImage&#8221;).draggable({ helper: &#8220;clone&#8221; });</span>. To drop the draggable node in container area for container area I used droppable method with drop event. In drop event I am appending the draggable image to container area using append method. JQuery draggable method supported by all the major web browsers like Google Chrome, Mozila Firefox and Safari.</p>
<h2>One Div to an another Div using JQuery draggable() method</h2>
<p>The JQuery draggable() method has 2 forms $(selector, context).draggable (options); and $(selector, context).draggable (&#8220;action&#8221;, [params]);. There 4 different options (addClass, axis, containment and opacity) you can use with this method. Similar to draggable method the droppable() method has also 2 forms $(selector, context).droppable (options), $(selector, context).droppable (&#8220;action&#8221;, params). There 3 different options (accept, addClass and disable) you can use with this method.</p>
<h2>Othe API</h2>
<p>From Product Gallery to your Mail Box drag and drop feature creates better user experience. This feature saves user time. For an example in your gmail while grouping some selected mail under a new label drag and drop feature works awesome. After JQuery we can implement drag and drop using other technologies like HTML5 and pure Javascript. Now HTML5 comes with drag n drop API. Look at the sample code.</p>
<pre class="brush: xml; title: ; notranslate">&lt;!DOCTYPE HTML&gt;
&lt;html&gt;
&lt;head&gt;
&lt;style&gt;
#divdd { width: 340px; height: 80px; padding: 10px; border: 1px solid #aaaaaa; }
&lt;/style&gt;
&lt;script&gt;
function allowDrop(ev) {
ev.preventDefault();
}

function drag(ev) {
ev.dataTransfer.setData(&quot;text&quot;, ev.target.id);
}

function drop(ev) {
ev.preventDefault();
var data = ev.dataTransfer.getData(&quot;text&quot;);
ev.target.appendChild(document.getElementById(data));
}
&lt;/script&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;div id=&quot;divdd&quot; ondrop=&quot;drop(event)&quot; ondragover=&quot;allowDrop(event)&quot;&gt;&lt;/div&gt;
&lt;img id=&quot;dragdd&quot; src=&quot;img_jharaphula.gif&quot; draggable=&quot;true&quot; ondragstart=&quot;drag(event)&quot; width=&quot;330&quot; height=&quot;60&quot;&gt;
&lt;/body&gt;
&lt;/html&gt;</pre>
<p>The post <a href="https://jharaphula.com/drag-and-drop-jquery-example/">One Div to an another Div drag and drop Jquery Example</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://jharaphula.com/drag-and-drop-jquery-example/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			<media:content url="https://jharaphula.com/wp-content/uploads/2016/05/drag-n-drop.png" medium="image" />
	</item>
		<item>
		<title>List of HTML5 new Tags introduced in 5th revision of HTML</title>
		<link>https://jharaphula.com/list-of-html5-new-tags/</link>
					<comments>https://jharaphula.com/list-of-html5-new-tags/#respond</comments>
		
		<dc:creator><![CDATA[Nibedita Panda]]></dc:creator>
		<pubDate>Fri, 13 May 2016 17:26:21 +0000</pubDate>
				<category><![CDATA[Learn HTML5 with Examples]]></category>
		<category><![CDATA[5th revision of HTML]]></category>
		<category><![CDATA[Hypertext Markup Language]]></category>
		<category><![CDATA[List of HTML5 new Tags]]></category>
		<category><![CDATA[Tags introduced]]></category>
		<guid isPermaLink="false">http://box.jharaphula.com/?p=699</guid>

					<description><![CDATA[<img width="300" height="189" src="https://jharaphula.com/wp-content/uploads/2016/05/html5-browser-300x189.png" class="webfeedsFeaturedVisual wp-post-image" alt="List of HTML5 new Tags introduced in 5th revision of HTML" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/html5-browser-300x189.png 300w, https://jharaphula.com/wp-content/uploads/2016/05/html5-browser.png 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>HTML5 is the 5th Revision of Hypertext Markup Language. By simply adding to our HTML file we can instruct the browser that this file is...</p>
<p>The post <a href="https://jharaphula.com/list-of-html5-new-tags/">List of HTML5 new Tags introduced in 5th revision of HTML</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></description>
										<content:encoded><![CDATA[<img width="300" height="189" src="https://jharaphula.com/wp-content/uploads/2016/05/html5-browser-300x189.png" class="webfeedsFeaturedVisual wp-post-image" alt="List of HTML5 new Tags introduced in 5th revision of HTML" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/html5-browser-300x189.png 300w, https://jharaphula.com/wp-content/uploads/2016/05/html5-browser.png 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>HTML5 is the 5th Revision of Hypertext Markup Language. By simply adding to our HTML file we can instruct the browser that this file is a HTML5 Document. Compare to older versions of HTML, <a href="https://jharaphula.com/advanced-html5-interview-questions-answers/" target="_blank" rel="noopener noreferrer">HTML5 is rich with many new features</a>. To design a web page more better <strong>HTML5 provides advanced Structural Elements</strong>. In form level HTML5 introduced 3 additional controls. HTML5 introduced several input types. In matter of Graphics &amp; Media elements HTML5 is ultimate. <strong>To draw graphics HTML5 comes with Canvas &amp; SVG</strong>. There are various media elements introduced in HTML5 to make Audio &amp; Video integration easier.</p>
<h2>Types and List of HTML5 new Tags</h2>
<p>In below let us share the List of HTML5 new Tags.</p>
<h2>Structural Tags in HTML5</h2>
<p><span style="color: brown;">header</span> &#8211; While Designing a HTML file header tag helps to define page header in a separate block. Codes related to header pan you can keep inside this tag. Using structural tag is a best practice of HTML5 programmer.</p>
<p><span style="color: brown;">main</span> &#8211; In a HTML document main is the area in between header &amp; footer. Main tag in HTML5 helps to design better structure of a HTML document.</p>
<p><span style="color: brown;">footer</span> &#8211; In a web page HTML footer tag helps to define page footer in a separate block. Codes for site footer panel you can keep inside footer tag. This programming practice makes debugging easier.</p>
<p><span style="color: brown;">nav</span> &#8211; Nav element in HTML5 helps to define navigation links under a single tab. This tag generally we use to create navigation menus in our apps. Using CSS we can optimize nav menus as per the need.</p>
<pre class="brush: xml; title: ; notranslate">&lt;nav&gt;
  &lt;a href=&quot;/photoshop/&quot;&gt;Adobe Photoshop&lt;/a&gt; |
  &lt;a href=&quot;/ajax/&quot;&gt;AJAX&lt;/a&gt; |
  &lt;a href=&quot;/ds/&quot;&gt;Data Structure&lt;/a&gt; |
  &lt;a href=&quot;/python/&quot;&gt;Python&lt;/a&gt; | 
  &lt;a href=&quot;/digitalmarketing/&quot;&gt;Digital Marketing&lt;/a&gt;
&lt;/nav&gt;</pre>
<p><span style="color: brown;">progress</span> &#8211; Progress tab act like an indication. If some job running in background using this control we can show how much work is in progress. It appears in percentage to end-user.</p>
<p><span style="color: brown;">mark</span> &#8211; Mark tag in HTML5 helps to Highlight text easily.</p>
<p><span style="color: brown;">meter</span> &#8211; Meter tag in HTML5 help to present scalar measurement within a known range.</p>
<pre class="brush: xml; title: ; notranslate">&lt;label for=&quot;disk_d&quot;&gt;Disk usage D:&lt;/label&gt;
&lt;meter id=&quot;disk_d&quot; value=&quot;2&quot; min=&quot;0&quot; max=&quot;10&quot;&gt;2/10&lt;/meter&gt;</pre>
<p><span style="color: brown;">dialog</span> &#8211; Using dialog tag we can show popup like window in HTML5. Dialog tag supports Chrome version 37+, Safari 6+ &amp; Opera 24+. Using open property of dialog tag you can show the dialog after page load.</p>
<pre class="brush: xml; title: ; notranslate">&lt;dialog open&gt;This is an open dialog window&lt;/dialog&gt;</pre>
<p><span style="color: brown;">article</span> &#8211; article tag defines an Article in the document. Using article tag we can categorized content area in a HTML file.</p>
<pre class="brush: xml; title: ; notranslate">&lt;article&gt;
&lt;h2&gt;Digital Marketing&lt;/h2&gt;
&lt;p&gt;Digital Marketing comes with SEM, SMM, Blog Commenting, Forum Posting and Link building.&lt;/p&gt;
&lt;/article&gt;</pre>
<p><span style="color: brown;">aside</span> &#8211; aside tag defines content aside from body content. Normally we use this tag to place images or videos aside to text.</p>
<p><span style="color: brown;">bdi</span> &#8211; bdi tag helps to identify text that might be formatted in a different direction from normal text.</p>
<p><span style="color: brown;">time</span> &#8211; time tag helps to specify date &amp; time part in a HTML file.</p>
<pre class="brush: xml; title: ; notranslate">&lt;time datetime=&quot;2009-01-01 20:00&quot;&gt;New Year&lt;/time&gt;</pre>
<p><span style="color: brown;">section</span> &#8211; To identify a particular section in a HTML document section tag is useful.</p>
<p><span style="color: brown;">wbr</span> &#8211; Defines a possible line-break.</p>
<h2>New Form Tags in HTML5</h2>
<p><span style="color: brown;">datalist</span> &#8211; datalist tag helps to declare pre-defined options for HTML Input Control. Using this control you can make your textbox like auto-search option of google. Example shown below.</p>
<pre class="brush: xml; title: ; notranslate">&lt;input list=&quot;EmployeesName&quot;&gt;
&lt;datalist id=&quot;EmployeesName&quot;&gt;
&lt;option value=&quot;Biswabhusan Panda&quot;&gt;&lt;/option&gt;
&lt;option value=&quot;Raghav Mishra&quot;&gt;&lt;/option&gt;
&lt;option value=&quot;Rupak Srivastab&quot;&gt;&lt;/option&gt;
&lt;option value=&quot;Binay Kumar Panda&quot;&gt;&lt;/option&gt;
&lt;option value=&quot;Sonam Sinha&quot;&gt;
&lt;option value=&quot;Rani Mukharjee&quot;&gt;
&lt;option value=&quot;Muhmmad Abid&quot;&gt;
&lt;option value=&quot;Swapna Roy&quot;&gt;
&lt;option value=&quot;Megha Badajena&quot;&gt;
&lt;/option&gt;&lt;/datalist&gt;</pre>
<p><span style="color: brown;">keygen</span> &#8211; Keygen helps to generate strong Secured key in HTML5. Look at the example below how to use Keygen as a form element in HTML5.</p>
<pre class="brush: xml; title: ; notranslate">&lt;form action=&quot;example_keygen.asp&quot; method=&quot;get&quot;&gt;
Employee Name: &lt;input type=&quot;text&quot; name=&quot;empName&quot;&gt;
Encryption: &lt;keygen name=&quot;passcode&quot;&gt;
&lt;input type=&quot;submit&quot;&gt;
&lt;/form&gt;</pre>
<p><span style="color: brown;">output</span> &#8211; output form element helps to render dynamic result in real-time operation. Example shown below.</p>
<pre class="brush: xml; title: ; notranslate">&lt;form oninput=&quot;outputval.value=parseInt(txtrangle.value)+parseInt(txtnumber.value)&quot;&gt;0
&lt;input type=&quot;range&quot; id=&quot;txtrangle&quot; value=&quot;70&quot;&gt;100 + &lt;input type=&quot;number&quot; id=&quot;txtnumber&quot; value=&quot;50&quot;&gt;= &lt;output name=&quot;outputval&quot; for=&quot;txtrangle txtnumber&quot;&gt;&lt;/output&gt;
&lt;/form&gt;</pre>
<h2>New Input Type Tags in HTML5</h2>
<p>The new input type tags in HTML5 represent a significant step forward in web development. By catering specifically to the needs of user input for various data types, these tags not only streamline the data entry process but also enhance the overall user experience. With HTML5, developers can create forms that are not only functional but also user-friendly, ensuring that websites are both accessible and efficient.</p>
<p>As web standards continue to evolve, embracing these input types will be essential for anyone looking to build modern, responsive web applications that meet user needs effectively. The versatility and convenience provided by HTML5&#8217;s new input types undoubtedly set a new benchmark for form design and data collection in the digital landscape.</p>
<p>Looking into the demand HTML5 comes with many new elements. From a telephone number to date and time all can be handeled using various types of HTML5 input tags. Some of them are preseting below.</p>
<pre class="brush: xml; title: ; notranslate">&lt;input type=&quot;color&quot; id=&quot;txtColor&quot;&gt;
&lt;input type=&quot;date&quot; id=&quot;txtDated&quot;&gt;
&lt;input type=&quot;range&quot; id=&quot;txtRange&quot;&gt;
&lt;input type=&quot;search&quot; id=&quot;txtSearch&quot;&gt;
&lt;input type=&quot;tel&quot; id=&quot;txtTelephone&quot;&gt;
&lt;input type=&quot;datetime&quot; id=&quot;txtDatetime&quot;&gt;
&lt;input type=&quot;datetime-local&quot; id=&quot;txtLocal&quot;&gt;
&lt;input type=&quot;email&quot; id=&quot;txtEmail&quot;&gt;
&lt;input type=&quot;time&quot; id=&quot;txtTime&quot;&gt;
&lt;input type=&quot;url&quot; id=&quot;txtUrl&quot;&gt;
&lt;input type=&quot;week&quot; id=&quot;txtWeek&quot;&gt;
&lt;input type=&quot;month&quot; id=&quot;txtMonth&quot;&gt;
&lt;input type=&quot;number&quot; id=&quot;txtNumber&quot;&gt;</pre>
<h2>HTML5 Graphics Elements</h2>
<p><span style="color: brown;">canvas</span> &#8211; Canvas is a new HTML5 element to draw Graphics using Client Script. Read <a href="https://jharaphula.com/html5-canvas-examples/" target="_blank" rel="noopener noreferrer">more about HTML5 Canvas</a>.</p>
<pre class="brush: xml; title: ; notranslate">&lt;canvas id=&quot;demoCanvas&quot;&gt;
Your browser does not support the canvas tag.
&lt;/canvas&gt;

&lt;script&gt;
let canvas = document.getElementById(&quot;demoCanvas&quot;);
let ctx = canvas.getContext(&quot;2d&quot;);
ctx.fillStyle = &quot;#FF6600&quot;;
ctx.fillRect(0, 0, 80, 80);
&lt;/script&gt;</pre>
<p><span style="color: brown;">svg</span> &#8211; HTML5 Supports SVG. svg tag helps to draw graphics using SVG.</p>
<pre class="brush: xml; title: ; notranslate">&lt;svg width=&quot;100&quot; height=&quot;100&quot;&gt;
  &lt;circle cx=&quot;50&quot; cy=&quot;50&quot; r=&quot;40&quot; stroke=&quot;green&quot; stroke-width=&quot;4&quot; fill=&quot;yellow&quot; /&gt;
&lt;/svg&gt;</pre>
<pre></pre>
<h2>Media Elements</h2>
<p><span style="color: brown;">audio</span> &#8211; Using audio tag in HTML5 we can define music. HTML5 Audio tag supports ogg, mpeg audio formats. There are many option using which you can control your audio.</p>
<pre class="brush: xml; title: ; notranslate">&lt;audio src=&quot;jharaphula.wav&quot; controls autoplay&gt;
   Your browser does not support the HTML5 &lt;audio&gt; element.   
&lt;/audio&gt;</pre>
<p><span style="color: brown;">video</span> &#8211; Using video tag in HTML5 we can define movie. HTML5 Video tag supports ogg, mpeg video formats. Starting from play to rewind or forward you have several properties with HTML5 video tag, using which you can implement a video player if needed.</p>
<pre class="brush: xml; title: ; notranslate">&lt;video src = &quot;jharaphula.mp4&quot;  width=&quot;340&quot; height=&quot;220&quot; controls&gt;
   Your browser does not support the HTML5 &lt;video&gt; element.   
&lt;/video&gt;</pre>
<p><span style="color: brown;">embed</span> &#8211; embed tag act like a plugin. Using embed tag we can integrate external application to HTML5 document. embed tag help to integrate youtube videos to our webpages.</p>
<p><span style="color: brown;">source</span> &#8211; source tag helps to declare file path for audio or video elements.</p>
<p><span style="color: brown;">track</span> &#8211; Defines tracks for video &amp; audio.</p>
<p>When it comes to drawing graphics on the web, HTML5 provides two powerful tools: the Canvas API and Scalable Vector Graphics (SVG). Each of these has its own unique strengths, making them suitable for different types of graphic-rendering tasks.</p>
<p>The **Canvas API** is a raster-based approach that allows developers to create dynamic, pixel-based graphics. It provides a flexible and intuitive way to draw shapes, lines, images, and animations directly onto a web page. With JavaScript, developers can write code to manipulate these graphics in real-time, enabling them to create interactive visualizations, games, and captivating user interfaces. The Canvas element is especially powerful for applications that require frequent updates, such as gaming or real-time data visualization.</p>
<p>On the other hand, **SVG** caters to vector-based graphics, which are resolution-independent and easily scalable. SVG graphics are defined using XML, allowing developers to create intricate designs that maintain quality regardless of size. This is particularly beneficial for responsive web design since SVG images can adapt seamlessly to different screen sizes.</p>
<p>The post <a href="https://jharaphula.com/list-of-html5-new-tags/">List of HTML5 new Tags introduced in 5th revision of HTML</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://jharaphula.com/list-of-html5-new-tags/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			<media:content url="https://jharaphula.com/wp-content/uploads/2016/05/html5-browser.png" medium="image" />
	</item>
		<item>
		<title>Basic Procedures of Programming for Beginners</title>
		<link>https://jharaphula.com/basic-programming-for-beginners/</link>
					<comments>https://jharaphula.com/basic-programming-for-beginners/#respond</comments>
		
		<dc:creator><![CDATA[Nibedita Panda]]></dc:creator>
		<pubDate>Fri, 13 May 2016 16:29:41 +0000</pubDate>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Language Selection]]></category>
		<category><![CDATA[Program Testing]]></category>
		<category><![CDATA[Programming for Beginners]]></category>
		<category><![CDATA[Trouble Shooting]]></category>
		<guid isPermaLink="false">http://box.jharaphula.com/?p=662</guid>

					<description><![CDATA[<img width="300" height="194" src="https://jharaphula.com/wp-content/uploads/2016/05/Computer-Programming-300x194.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="Basic Procedures of Programming for Beginners" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/Computer-Programming-300x194.jpg 300w, https://jharaphula.com/wp-content/uploads/2016/05/Computer-Programming-294x190.jpg 294w, https://jharaphula.com/wp-content/uploads/2016/05/Computer-Programming-106x70.jpg 106w, https://jharaphula.com/wp-content/uploads/2016/05/Computer-Programming.jpg 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>If you are a beginner then it is important to understand a few basic procedures that are involved in programming computers. A few concepts if...</p>
<p>The post <a href="https://jharaphula.com/basic-programming-for-beginners/">Basic Procedures of Programming for Beginners</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></description>
										<content:encoded><![CDATA[<img width="300" height="194" src="https://jharaphula.com/wp-content/uploads/2016/05/Computer-Programming-300x194.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="Basic Procedures of Programming for Beginners" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/Computer-Programming-300x194.jpg 300w, https://jharaphula.com/wp-content/uploads/2016/05/Computer-Programming-294x190.jpg 294w, https://jharaphula.com/wp-content/uploads/2016/05/Computer-Programming-106x70.jpg 106w, https://jharaphula.com/wp-content/uploads/2016/05/Computer-Programming.jpg 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>If you are a beginner then it is important to understand a few basic procedures that are involved in programming computers. A few concepts if best followed, can help in programming any PC, better. What exactly is programming a computer? It is nothing but telling or instructing the PC to do a particular job. The process is termed as <a href="https://jharaphula.com/category/programming-solutions/" rel="noopener noreferrer" target="_blank">computer programming</a>! Extensible, sustainable and valuable commands are written, which are then read by the computer’s computing system, after which it performs a particular task.</p>
<h3>Set of Instructions Needed</h3>
<p>Programming languages of various kinds are used to achieve computer programming.  For the PC to perform, just one single instruction does not suffice. Hence a various sets of instructions are necessary so that something substantial can be performed by the computer. The set of instructions given to the PC are termed as program and need to be submitted to enable it to complete or perform a particular task. If you feel that computer programming is a piece of cake for beginners, then the reality is that it isn’t! </p>
<h3>Learning Processes and Concepts</h3>
<p>Programming concepts and processes have to be learnt really well first. A good amount of skills in programming and proper know how is essential in ensuring that the task goes off well. The lowest machine coding is written in binary form and a series of ‘1’s and ‘O’s’. It is not just the lowest coding forms that are used in the computer programming process. Java C and other higher coding forms are also used to make the programming easier for anyone keen on using and learning computer programming besides the machine code. </p>
<h3>Developing the Program</h3>
<p>A number of procedures are involved in programming PCs. The first if program development. In this first phase, it does not matter if you are experienced or a novice in computers, it becomes necessary to work with sociologists, internet marketers and various other individuals to get a proper idea on the kind of program required in the market. This will help in ensuring better work performance at the workplace and at home. Once suggestions are received from other involved individuals then the process of creating features of the computer programming starts. Feasibility of the features suggested, are then determined. </p>
<h3>Language Selection</h3>
<p>Next comes, the process of selecting the right language. The right language needs to be selected depending upon how much knowledge you have about it and the need to develop it! Programmers commonly used PHP or the Hypertext Preprocessor and HTML better known as Hyper Text Markup Language which are two languages mainly used on the internet. PHP is used in developing things and applications that are actually not seen happening. An ideal option is HTML, useful in the development of basic pages on the web. Java, Visual Basic, CSS, C, MySQL C and a lot more other computer languages are also used, depending upon the need. It is in a single platform that various languages are frequently used by programmers. This is because every language performs functions that are unique and different. </p>
<h3>Program Coding and Script Writing</h3>
<p>The next process is program coding and script writing.  When the program features are finally created, the computer programmer begins working on it. The program is coded and script written, so that the computer performs specific actions with the help of the computer language.</p>
<h3>Program Testing</h3>
<p>Program testing is the next process. After the program coding procedure the next thing to do is to test it. Before the computer program is released, it requires testing. For testing functional ability of the program, it is applied in a number of operating systems, by the programmers. If it is found that working of the program is good then it is ready for release in beta version.</p>
<h3>Dealing with Errors Related To Trouble Shooting</h3>
<p>When, beta version of the program is released, along with it is also released a request to the users for reporting any kinds of errors or bugs encountered during implementation. Accordingly they are fixed immediately.</p>
<h3>Understand Variables and Output</h3>
<p>In any language the most integral part understands the variables offering temporary storage and transferring of information, from one part to the other. In any programming language, a significant feature is output. Outputs can vary from one program to the other. The most common type is text output to obtain results, besides graphical output which requires higher resolution and is a bit difficult. </p>
<p>The task of programming computers is not easy. Being armed with the right basics helps towards moving the crucial next step. Ins and outs of programming should be best learn, by taking up tutorials or enrolling in a suitable school.</p>
<p>The post <a href="https://jharaphula.com/basic-programming-for-beginners/">Basic Procedures of Programming for Beginners</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://jharaphula.com/basic-programming-for-beginners/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			<media:content url="https://jharaphula.com/wp-content/uploads/2016/05/Computer-Programming.jpg" medium="image" />
	</item>
		<item>
		<title>How to read JSON file data in JQuery? &#8211; GetJSON Example</title>
		<link>https://jharaphula.com/read-json-data-jquery-getjson-example/</link>
					<comments>https://jharaphula.com/read-json-data-jquery-getjson-example/#respond</comments>
		
		<dc:creator><![CDATA[Nibedita Panda]]></dc:creator>
		<pubDate>Fri, 13 May 2016 14:53:37 +0000</pubDate>
				<category><![CDATA[Learn JQuery with Examples]]></category>
		<category><![CDATA[data in JQuery]]></category>
		<category><![CDATA[GetJSON Example]]></category>
		<category><![CDATA[How to read JSON]]></category>
		<category><![CDATA[JavaScript Object Notation]]></category>
		<guid isPermaLink="false">http://box.jharaphula.com/?p=629</guid>

					<description><![CDATA[<img width="300" height="182" src="https://jharaphula.com/wp-content/uploads/2016/05/jquery-ajax-method-300x182.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="How to read JSON file data in JQuery? - GetJSON Example" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/jquery-ajax-method-300x182.jpg 300w, https://jharaphula.com/wp-content/uploads/2016/05/jquery-ajax-method.jpg 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>Compare to XML JSON is a lightweight &#38; tag free data exchange format. JSON is language independent. JSON stands for JavaScript Object Notation. Many times...</p>
<p>The post <a href="https://jharaphula.com/read-json-data-jquery-getjson-example/">How to read JSON file data in JQuery? &#8211; GetJSON Example</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></description>
										<content:encoded><![CDATA[<img width="300" height="182" src="https://jharaphula.com/wp-content/uploads/2016/05/jquery-ajax-method-300x182.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="How to read JSON file data in JQuery? - GetJSON Example" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/jquery-ajax-method-300x182.jpg 300w, https://jharaphula.com/wp-content/uploads/2016/05/jquery-ajax-method.jpg 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>Compare to XML JSON is a lightweight &amp; tag free data exchange format. JSON is language independent. JSON stands for JavaScript Object Notation. Many times during programming we found some places where we need to store static data. In this case <a href="https://jharaphula.com/learn-json-tutorial-for-beginners/" target="_blank" rel="noopener noreferrer">JSON is very programmer friendly</a>. Let&#8217;s talk about we want to display the list of Global Banks. To do this there are several ways. Here to present you a demo I stored bank related data&#8217;s in a js file using JSON format. To read data from JSON here I am with getJSON Example. Look at the Code below.</p>
<h3>GetJSON-Example.htm</h3>
<pre class="brush: xml; title: ; notranslate">&lt;!DOCTYPE html&gt;
&lt;html&gt;
&lt;head&gt;
&lt;title&gt;How to read JSON file data in JQuery?&lt;/title&gt;
&lt;script type=&quot;text/javascript&quot; src=&quot;http://ajax.googleapis.com/ajax/libs/jquery/1.3.0/jquery.min.js&quot;&gt;&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
$(function()
{
$(document).ready(function()
{
$.getJSON(&quot;bank-records.js&quot;,function(data)
{
$.each(data.banks, function(i,data)
{
document.write(data.bankName + &quot;&lt;br /&gt;&quot; + data.title + &quot;&lt;br /&gt;&lt;br /&gt;&quot;);
});
}
);
return false;
});
});
&lt;/script&gt;
&lt;/head&gt;
&lt;body&gt;&lt;/body&gt;
&lt;/html&gt;</pre>
<h3>bank-records.js</h3>
<pre class="brush: jscript; title: ; notranslate">{&quot;banks&quot;:
[
{
'bankName': 'ICICI Bank',
'title': 'Personal Banking Services'
},
{
'bankName': 'SBI Bank',
'title': 'Safe Banking With SBI'
},
{
'bankName': 'HDFC Bank',
'title': 'Personal Banking Services'
}
]
}</pre>
<p>To run the above program Create a folder. Copy the above index.html &amp; bank-records.js file in the same folder. Open index.html. For Jquery here I used CDN link. Make sure to run this program you are with Internet connectivity or you have to refer a local Jquery library.</p>
<p>The post <a href="https://jharaphula.com/read-json-data-jquery-getjson-example/">How to read JSON file data in JQuery? &#8211; GetJSON Example</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://jharaphula.com/read-json-data-jquery-getjson-example/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			<media:content url="https://jharaphula.com/wp-content/uploads/2016/05/jquery-ajax-method.jpg" medium="image" />
	</item>
		<item>
		<title>What is the tricks behind Responsive Web Design?</title>
		<link>https://jharaphula.com/responsive-design/</link>
					<comments>https://jharaphula.com/responsive-design/#respond</comments>
		
		<dc:creator><![CDATA[Nibedita Panda]]></dc:creator>
		<pubDate>Fri, 13 May 2016 14:01:54 +0000</pubDate>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[accessibility]]></category>
		<category><![CDATA[Responsive Web Design]]></category>
		<category><![CDATA[RWD]]></category>
		<category><![CDATA[Web Designers]]></category>
		<guid isPermaLink="false">http://box.jharaphula.com/?p=593</guid>

					<description><![CDATA[<img width="300" height="183" src="https://jharaphula.com/wp-content/uploads/2016/05/Responsive-Web-Design-300x183.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="What is the tricks behind Responsive Web Design?" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/Responsive-Web-Design-300x183.jpg 300w, https://jharaphula.com/wp-content/uploads/2016/05/Responsive-Web-Design.jpg 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>As a Data Media day by day Web is getting popular to millions. Today the power of web is not limited to a Desktop or...</p>
<p>The post <a href="https://jharaphula.com/responsive-design/">What is the tricks behind Responsive Web Design?</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></description>
										<content:encoded><![CDATA[<img width="300" height="183" src="https://jharaphula.com/wp-content/uploads/2016/05/Responsive-Web-Design-300x183.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="What is the tricks behind Responsive Web Design?" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/Responsive-Web-Design-300x183.jpg 300w, https://jharaphula.com/wp-content/uploads/2016/05/Responsive-Web-Design.jpg 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>As a Data Media day by day Web is getting popular to millions. Today the power of web is not limited to a Desktop or Laptop. We can reach Web using various devices. While discussing various devices we have to think various manufactures. Manufactures to manufactures resolution varies. Do you don’t think as a wise programmer you required to <a href="https://jharaphula.com/importance-usability-web-design/" rel="noopener noreferrer" target="_blank">design a web page</a> which can easily accommodate these change. In simple words Responsive Web Design (RWD) is a process of designing and building websites to provide better accessibility and optimal viewing experience to the user.</p>
<p>A website must lооk good nо matter whаt device іt іs sееn оn. Аnd іt must bе fully functional аnd gеt thе message іt wаnts tо gеt асrоss wіth nо deviations. Еvеrуоnе wаnts tо build а website аnd thеn hаvе іt magically јust lооk nice оn аn iPhone, Android оr аnd iPad. Вut things dоn&#8217;t work thаt easy аnd іt takes а lot оf patience аnd dedication tо уоur craft tо gеt іt right.</p>
<p>Oh thеrе аrе lots оf books оut оn hоw tо dо responsive web design аnd уоu will gеt уоur twо cents worth but уоu must stіll knоw whаt уоu аrе dоіng аnd whаt уоu nееd tо accomplish оn еасh specific task уоu аrе assigned. <strong>Yоu nееd tо fіrst determine whаt sort оf assets уоu аrе going tо usе аnd whаt І mеаn bу assets аrе, images, banners, webinars аnd illustrations оr аnуthіng еlsе thаt basically іsn&#8217;t text уоu аrе putting оn уоur раgе</strong>. Assets help mаkе оr break а website. Іf уоu usе thеm rіght уоu will hаvе а vеrу popular website. Іf уоu usе thеm wrong, уоur website will lооk lіkе sоmеthіng оut оf geocities аnd appear оut оf date.</p>
<p>If уоu usе assets уоu&#8217;vе built іn Photoshop уоu nееd tо <strong>mаkе surе thеу аrе measured uр rіght іn thе bеgіnnіng bеfоrе determining hоw уоu plan оn usіng thеm оn аn iPhone</strong>. Whаt І mеаn bу measured uр rіght іs thаt іf уоu aren&#8217;t going tо usе аll оf thоsе bytes оn thаt image, thеn scale іt dоwn аnd thеn lеt уоur CSS gіvе thе image it&#8217;s dimensions thіs wау уоu will bе аblе tо assign dіffеrеnt sizes based оn уоur device. Dоn&#8217;t bе afraid tо experiment, еvеrуоnе dоеs іt. Yоu wоn&#8217;t gеt іt rіght thе fіrst time mоst оf thе time anyway.</p>
<p>Some people run thе оthеr wау whеn іt соmеs tо creating а responsive website. Тhеу dоn&#8217;t wаnt thе headache аnd thеу rеаllу dоn&#8217;t wаnt tо рut іn thе time tо dо іt. Web Designers аrе lazy, а teacher І hаd іn college usеd tо tеll us thаt &#8220;<strong>А lazy web designer іs а good web designer</strong>.&#8221; І bеlіеvе thіs іs true, but whаt shе rеаllу meant wаs thаt уоu nееd tо mаkе уоur code fіrst, test іt, gеt thе bugs оut аnd thеn reuse іt аs muсh аs уоu wаnt. Тhе best UX designers work thіs wау. Тhеу will hаvе thеіr goody bag оf code fоr vаrіоus situations аnd јust tweak іt а lіttlе fоr аnу unique website thеу аrе creating. Вut whеn іt соmеs tо responsive web design things аrе а lіttlе mоrе complicated. Yоu nееd tо decide hоw уоu аrе going tо build thе website. Аrе уоu going tо build mobile fіrst оr desktop аnd thеn thеrе іs thе question аs tо hоw mаnу <a href="https://jharaphula.com/css3-new-features-gradients-webfonts/" rel="noopener noreferrer" target="_blank">media queries</a> dо уоu nееd. Аlsо уоu nееd tо knоw thаt іf уоu аrе usіng mоrе thаn оnе style sheet, уоu nееd tо mаkе surе thаt еасh аnd еvеrу style sheet іs set uр fоr thе devices уоu wаnt уоur website tо bе sееn on.</p>
<p>Building а flexible design саn save уоu lots оf time whеn іt соmеs tо building thаt responsive web design. <strong>Percentages аrе muсh better</strong> whеn іt соmеs tо thіs bесаusе уоur images аnd аnу оthеr assets will measure uр tо thе size оf thе device but dоn&#8217;t forget tо hаvе уоur images move whеrе уоu wаnt thеm. Putting іn а max width оf 320px fоr thе iPhone іs cool but whеn sоmеоnе turns thеіr phone уоu wаnt thе image оr asset tо bе аblе tо jump rіght whеrе уоu wаnt іt lіkе іt shоuld аnd bасk аgаіn. І hаd а hard time wіth thіs whеn І fіrst started dоіng <a href="https://jharaphula.com/responsive-design-best-practices/" rel="noopener noreferrer" target="_blank">responsive web design</a>. І wоuld sit thеrе аnd wonder whу mу media queries wеrеn&#8217;t working fоr vаrіоus devices. І wоuld slap mуsеlf оn thе bасk whеn dоіng аn android screen аnd еvеrуthіng looked rіght, thеn draw а blank whеn І checked mу work оn оthеr devices оnlу tо find thаt іt dіdn&#8217;t lооk thе wау І wanted іt tо. Тhіs tооk sоmе trial аnd error аnd а fеw good books tо help mе оut but thаt wаs а lot оf work.</p>
<p>Finally beware оf thе оut оf thе box design а client mау wаnt. <strong>Аlwауs thіnk responsive whеnеvеr уоu start drawing uр wireframes аnd dоn&#8217;t forget tо mаkе surе уоur designs аrе cross browser friendly</strong>. Yоu саn design fоr аnу device, уоu јust nееd tо knоw hоw уоu аrе going tо gеt thеrе аnd save уоursеlf а lot оf time аnd heartache. Ѕоmеtіmеs уоu mау nоt wаnt tо usе аll оf а page&#8217;s assets whеn switching tо а smaller device lіkе а phone. Let&#8217;s sау уоu hаvе а rеаllу nice contact form. Yоu&#8217;vе built thіs thing uр real nice аnd рut sоmе sweet graphics іn іt tоо but уоu dоn&#8217;t rеаllу nееd tо hаvе thе form оn а mobile. Yоu will gеt а lot mоrе оut оf јust sауіng а fеw lines аnd thеn adding уоur email address оn аll оf уоur devices. Оn а mobile device оr јust аbоut аnу non-desktop device whеn thе person clicks оn уоur email, іt will open uр іn whаtеvеr email thеу аrе usіng аnd thеn thеу саn type аwау аnd уоu саn stіll gеt thе message уоu wanted frоm thеm, thus saving уоu аll а bunch оf headaches. Νоw let&#8217;s sау уоu rеаllу dо wаnt thаt form, well dоn&#8217;t forget tо check thе focus раrt оf thе form оn thе non-desktop devices. Yоu mау hаvе уоur form items set rіght but whаt hарреns whеn sоmеоnе starts filing оut thаt form оn thеіr mobile, dоеs thе focus blow uр аll оvеr thе place? Check уоur focus settings аnd mаkе surе уоur form element dоеsn&#8217;t gо аll оvеr thе place. Оh оnе lаst thing check уоur alert boxes, оr validation settings оr whаtеvеr уоu mаdе thаt wау іf sоmеоnе forgets tо fill оut а portion оf уоur form, уоur alert box wоn&#8217;t lооk genetically оut оf place. Ѕо that&#8217;s јust sоmе оf thе things tо thіnk аbоut whеn іt соmеs tо responsive web design.</p>
<p>The post <a href="https://jharaphula.com/responsive-design/">What is the tricks behind Responsive Web Design?</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://jharaphula.com/responsive-design/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			<media:content url="https://jharaphula.com/wp-content/uploads/2016/05/Responsive-Web-Design.jpg" medium="image" />
	</item>
		<item>
		<title>JavaScript Class Example &#8211; Modular Programming Technique</title>
		<link>https://jharaphula.com/javascript-class-example/</link>
					<comments>https://jharaphula.com/javascript-class-example/#respond</comments>
		
		<dc:creator><![CDATA[Nibedita Panda]]></dc:creator>
		<pubDate>Fri, 13 May 2016 13:40:48 +0000</pubDate>
				<category><![CDATA[JS Functions & Examples]]></category>
		<category><![CDATA[getProperty]]></category>
		<category><![CDATA[JavaScript Class Example]]></category>
		<category><![CDATA[Modular Programming Technique]]></category>
		<category><![CDATA[setProperty]]></category>
		<guid isPermaLink="false">http://box.jharaphula.com/?p=585</guid>

					<description><![CDATA[<img width="300" height="216" src="https://jharaphula.com/wp-content/uploads/2016/05/slide_4-300x216.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="JavaScript Class Example - Modular Programming Technique" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/slide_4-300x216.jpg 300w, https://jharaphula.com/wp-content/uploads/2016/05/slide_4.jpg 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>There are several ways to structure our JavaScript codes. Modular programming is a best practice for easy maintenance. Let us assume we have a class...</p>
<p>The post <a href="https://jharaphula.com/javascript-class-example/">JavaScript Class Example &#8211; Modular Programming Technique</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></description>
										<content:encoded><![CDATA[<img width="300" height="216" src="https://jharaphula.com/wp-content/uploads/2016/05/slide_4-300x216.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="JavaScript Class Example - Modular Programming Technique" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/slide_4-300x216.jpg 300w, https://jharaphula.com/wp-content/uploads/2016/05/slide_4.jpg 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>There are several ways to structure our JavaScript codes. <strong>Modular programming is a best practice for easy maintenance</strong>. Let us assume we have a class drawDiagram. In this class I have to implement many functionalities like draw a shape, drag n drop or create a flowchart. While drawing several shapes they have their own properties. To store all their property related programs here I created a separate js file with the name shproperty.js. In this file <strong>I created a class shProperty</strong>. Passing shape as a parameter. Depending upon the shape (<em>rectangle, ellipse or circle</em>) I can access the shape properties in my class.</p>
<h2>Modular Programming Technique</h2>
<p>Modular programming is a software design technique that emphasizes breaking down a program into independent, interchangeable components called modules. Each module is designed to perform a specific function and can be developed, tested, and maintained separately. This approach enhances code readability, reusability, and scalability while simplifying debugging and collaboration among developers.</p>
<h2>Key Principles of Modular Programming</h2>
<p>1. Single Responsibility Principle (SRP) Each module should have a single, well-defined responsibility. This ensures that changes to one part of the system do not inadvertently affect unrelated components.</p>
<p>2. Encapsulation Modules should hide their internal workings and expose only necessary interfaces. This prevents unintended modifications and makes the system more secure and easier to debug.</p>
<p>3. Loose Coupling Modules should depend as little as possible on one another. This reduces the risk of cascading failures when one module is modified.</p>
<p>4. High Cohesion All elements within a module should be closely related to its primary function. This ensures that modules remain focused and efficient.</p>
<p>As shProperty is a function it <strong>returns “exports”</strong>. <strong>Exports is an array</strong>. It holds properties &amp; methods those need to access from an another class. Simply declaring a function propertyCalculation() is only accessible to the internals of the class. <strong>To create an external function like getProperty() &amp; setProperty() you have to add this function to exports array</strong>.</p>
<p><strong>Function init() is the part where you can initialize your class requirements</strong>. Before return the exports array call init() for execution. Refer to <a href="https://jharaphula.com/oops-concepts-with-examples/" target="_blank" rel="noopener noreferrer">Object Oriented Programming</a> (OOP) <strong>while declaring a private variable use _ before the variable name</strong>. For an example in below sample code I created a private variable _shape. In case it required to access _shape from out-side the class. Use get &amp; set methods.</p>
<h3>JavaScript Class Example</h3>
<pre class="brush: jscript; title: ; notranslate">var shProperty = function (shape) {

var exports = {};
/* Variables in Global Scope */
var _shape = null;

/* Initialization */
function init() {
}

/* Internal Function */
function propertyCalculation() {
}

/* External Function */
exports.setProperty = function () {
};
exports.getProperty = function () {
};
_shape = shape;

init();
return exports;
};</pre>
<h2>Advantages of Modular Programming</h2>
<p>1. Improved Readability Breaking code into smaller, logically organized modules makes it easier to understand. Developers can quickly locate and modify specific functionalities without navigating through a monolithic codebase.</p>
<p>2. Easier Debugging and Maintenance Since modules are self-contained, isolating and fixing bugs becomes simpler. Changes made to one module are less likely to introduce errors in other parts of the program.</p>
<p>3. Enhanced Collaboration Multiple developers can work on different modules simultaneously without conflicts. This accelerates development and allows teams to leverage specialized expertise.</p>
<p>4. Scalability New features can be added by introducing new modules rather than rewriting existing code. This makes the system adaptable to changing requirements.</p>
<p>5. Code Reusability Common functionalities can be packaged into modules and reused across multiple projects, reducing development time and ensuring consistency.</p>
<h2>Best Practices for Modular Programming</h2>
<p>1. Define Clear Interfaces Ensure that each module has a well-documented interface specifying inputs, outputs, and expected behaviors.</p>
<p>2. Minimize Dependencies Avoid creating modules that rely too heavily on others. Use dependency injection or abstraction layers when necessary.</p>
<p>3. Use Meaningful Naming Conventions Module names should reflect their purpose, making the codebase easier to navigate.</p>
<p>4. Test Modules Independently Unit testing ensures that each module works as intended before integration.</p>
<p>5. Document Thoroughly Maintain clear documentation for each module, including usage examples and potential side effects.</p>
<h2>Conclusion</h2>
<p>By dividing a system into well-defined modules, developers can enhance readability, reusability, and collaboration while simplifying debugging and future enhancements. As software systems grow in complexity, adopting modular practices becomes increasingly essential for long-term success. Mastering modular programming allows developers to build robust applications that can evolve with changing technological demands.</p>
<p>The post <a href="https://jharaphula.com/javascript-class-example/">JavaScript Class Example &#8211; Modular Programming Technique</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://jharaphula.com/javascript-class-example/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			<media:content url="https://jharaphula.com/wp-content/uploads/2016/05/slide_4.jpg" medium="image" />
	</item>
		<item>
		<title>SDLC Phases &#8211; Closer look to Software Development Methodology</title>
		<link>https://jharaphula.com/software-development-methodology-sdlc-phases/</link>
					<comments>https://jharaphula.com/software-development-methodology-sdlc-phases/#respond</comments>
		
		<dc:creator><![CDATA[Nibedita Panda]]></dc:creator>
		<pubDate>Fri, 13 May 2016 13:39:19 +0000</pubDate>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Functional Specification Documents]]></category>
		<category><![CDATA[Resource Planning]]></category>
		<category><![CDATA[SDLC Phases]]></category>
		<category><![CDATA[Software Development Methodology]]></category>
		<guid isPermaLink="false">http://box.jharaphula.com/?p=583</guid>

					<description><![CDATA[<img width="300" height="184" src="https://jharaphula.com/wp-content/uploads/2016/05/SDLC-300x184.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="SDLC Phases - Closer look to Software Development Methodology" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/SDLC-300x184.jpg 300w, https://jharaphula.com/wp-content/uploads/2016/05/SDLC.jpg 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>Software Development is not a one day job. Depending upon the system it can run year after years. While designing a software we have to...</p>
<p>The post <a href="https://jharaphula.com/software-development-methodology-sdlc-phases/">SDLC Phases &#8211; Closer look to Software Development Methodology</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></description>
										<content:encoded><![CDATA[<img width="300" height="184" src="https://jharaphula.com/wp-content/uploads/2016/05/SDLC-300x184.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="SDLC Phases - Closer look to Software Development Methodology" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/SDLC-300x184.jpg 300w, https://jharaphula.com/wp-content/uploads/2016/05/SDLC.jpg 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>Software Development is not a one day job. Depending upon the system it can run year after years. While designing a software we have to plan several factors. <strong>Proper planning in software development helps to win customer satisfaction</strong>. Which is a big achievement to our reputation &amp; experiences. As a farm owner you must be aware of about the investments to create a successful software. <strong>Investment wants return</strong>. In software business there are various lick-ages that can de-rank your quality &amp; business too. I have more then 12 years experiences in the area of software development. I developed various software&#8217;s under <strong>Waterfall Model</strong> to <strong>Aglie Methodology</strong>. In this knowledge sharing session let me share D2D (Design to Delivery) Software Development Methodology. This method will not only help you to develop quality software&#8217;s but also it will take care of your investments.</p>
<p>D2D is a dedicated approach to SDLC (System Development Life Cycle). <strong>Under D2D we planned from requirement analysis to the date of delivery. D2D is also effective for investment plannings, resources allocation &amp; guide to use software&#8217;s or tools</strong>. To simplify your understanding here I am using a case-study. It will give you a clear vision on D2D Methodology.</p>
<p>Let us assume we have our software development center “Vijayshanti Corporation”. Our business head meet to the customer &amp; signed the deal. Now we are inside our lab. We have to develop an application refer to our customer requirements. In the beginning phase there is a probability of failure compare to the same ratio of success. Software development is a tactical engineering. Dedication &amp; sufficient planning is required to gain the success. To start with the application development let us go stage by stage.</p>
<h3>Resource Planning</h3>
<p>To start the application development from scratch first we have to allocate some resources depending upon the size &amp; budget of the project. Whether you use your existing resource or a new one you have to judge them well &amp; fine. <strong>While assign FSD (Functional Specification Document) to the resources be sure about the skills matching</strong>. Correct resource allocation is the initial phase of D2D. A project has several parts. </p>
<p><strong>It&#8217;s more professional to use UI developers for User Interface, Graphic Engineers for graphics or use an experienced Software Developer to design the Business Logic</strong>. To look into the architecture part choose an experience person who is expertise on the same domain. Here domain knowledge is effective. Do well to the phase of requirement analysis. Prepare easy FSD&#8217;s from the customer requirements.</p>
<h3>Team &amp; Training</h3>
<p>After resource planning we have a team. Team is the key to meet challenges. <strong>Do one to one discussion with all your new team members</strong>. Tactically establish good relationship among all your team members. Built team sprite for each of them. To overview the project provide functional &amp; technical training to your team members. Be friendly with your team members. <strong>Don&#8217;t overload the team</strong>. Work smart &amp; simple.</p>
<h3>Functional Specification Documents</h3>
<p>Before assign job to resources create FSD for them. While creating a FSD make it easy to understood. <strong>For any clarification feel free to discuss with your customer</strong>. Healthy FSD designing is the first stair to software development. <strong>To generate FSD use senior experienced Project Managers</strong>.</p>
<h3>Time Frame</h3>
<p>Time is money. <strong>To develop a software major investment is Time</strong>. While planning FSD assign correct time frame to save investments &amp; men power. Focus on exact requirements while planning your calendar. During planning for development choose 4 hrs as the slot. I mean in a day (8 working hrs.) you have 2 slots. Protect you &amp; your developers from re-work. <strong>Re-work lost time &amp; investments</strong>. Let us assume in the application our customer wants to integrate a data visual for their dashboard. To create this chart we assigned 2 slots to our developer. Here we have to plan before about the quality assurance. Until the QA team verify the development it is not into production. <strong>Including development plan QA as a part of Time Frame</strong>. For successful Time Management read our <a href="https://jharaphula.com/time-management-skills/" target="_blank" rel="noopener noreferrer">Tips to manage Time effectively</a>.</p>
<p>The post <a href="https://jharaphula.com/software-development-methodology-sdlc-phases/">SDLC Phases &#8211; Closer look to Software Development Methodology</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://jharaphula.com/software-development-methodology-sdlc-phases/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			<media:content url="https://jharaphula.com/wp-content/uploads/2016/05/SDLC.jpg" medium="image" />
	</item>
		<item>
		<title>How to Apply Marquee on KineticJS Shapes?</title>
		<link>https://jharaphula.com/how-to-apply-marquee-on-kineticjs-shapes/</link>
					<comments>https://jharaphula.com/how-to-apply-marquee-on-kineticjs-shapes/#respond</comments>
		
		<dc:creator><![CDATA[Nibedita Panda]]></dc:creator>
		<pubDate>Fri, 13 May 2016 13:19:33 +0000</pubDate>
				<category><![CDATA[KineticJS Examples]]></category>
		<category><![CDATA[Apply Marquee on Shapes]]></category>
		<category><![CDATA[KineticJS Shapes]]></category>
		<category><![CDATA[Marquee on KineticJS]]></category>
		<guid isPermaLink="false">http://box.jharaphula.com/?p=564</guid>

					<description><![CDATA[<img width="300" height="186" src="https://jharaphula.com/wp-content/uploads/2016/05/html-css-table-300x186.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="How to Apply Marquee on KineticJS Shapes?" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/html-css-table-300x186.jpg 300w, https://jharaphula.com/wp-content/uploads/2016/05/html-css-table.jpg 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>KineticJS is a JavaScript library to interact with HTML5 Canvas. Using KineticJS with less line of codes you can do high performance based animations, layering,...</p>
<p>The post <a href="https://jharaphula.com/how-to-apply-marquee-on-kineticjs-shapes/">How to Apply Marquee on KineticJS Shapes?</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></description>
										<content:encoded><![CDATA[<img width="300" height="186" src="https://jharaphula.com/wp-content/uploads/2016/05/html-css-table-300x186.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="How to Apply Marquee on KineticJS Shapes?" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/html-css-table-300x186.jpg 300w, https://jharaphula.com/wp-content/uploads/2016/05/html-css-table.jpg 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p style="margin-bottom: 20px">KineticJS is a JavaScript library to interact with HTML5 Canvas. Using KineticJS with less line of codes you can do high performance based animations, layering, drag n drop, filtering etc. KineticJS supports desktop &amp; high end mobile devices. Shapes like <strong>Rectangle, Circle, Ellipse, Line &amp; Polygon you can easily draw using KineticJS</strong>. After draw the shape to re-size or to rotate the shapes you need marquee.</p>
<p>Marquee is an identity to selected shapes. In this session let us share the marquee class to apply on any shape using KineticJS. Here marquee.js is the class file where all the related functions are added to select a shape. Copy the index.html &amp; marquee.js file to a folder. Open the index file. In this example marquee.js is a JavaScript class. You can refer this in your program. Create an instance of marquee class &amp; using show method apply marquee on the shapes. Using hide method you can remove marquee from the applied shapes.</p>
<p style="margin-bottom: 20px"><strong>Index.html</strong></p>
<p style="margin-bottom: 0in"><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">&lt;!</span></span></span><span style="color: #800000"><span style="font-size: small"><span lang="zxx">DOCTYPE </span></span></span><span style="color: #ff0000"><span style="font-size: small"><span lang="zxx">HTML</span></span></span><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">&gt;</span></span></span></p>
<p style="margin-bottom: 0in"><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">&lt;</span></span></span><span style="color: #800000"><span style="font-size: small"><span lang="zxx">html</span></span></span><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">&gt;</span></span></span></p>
<p style="margin-bottom: 0in"><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">&lt;</span></span></span><span style="color: #800000"><span style="font-size: small"><span lang="zxx">head</span></span></span><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">&gt;</span></span></span></p>
<p style="margin-bottom: 0in"><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">&lt;</span></span></span><span style="color: #800000"><span style="font-size: small"><span lang="zxx">title</span></span></span><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">&gt;</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">How to apply marquee on KineticJS Shapes?</span></span></span><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">&lt;/</span></span></span><span style="color: #800000"><span style="font-size: small"><span lang="zxx">title</span></span></span><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">&gt;</span></span></span></p>
<p style="margin-bottom: 0in"><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">&lt;</span></span></span><span style="color: #800000"><span style="font-size: small"><span lang="zxx">script </span></span></span><span style="color: #ff0000"><span style="font-size: small"><span lang="zxx">src</span></span></span><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">=&#8221;http://d3lp1msu2r81bx.cloudfront.net/kjs/js/lib/kinetic-v4.4.3.min.js&#8221; </span></span></span><span style="color: #ff0000"><span style="font-size: small"><span lang="zxx">type</span></span></span><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">=&#8221;text/javascript&#8221;&gt;&lt;/</span></span></span><span style="color: #800000"><span style="font-size: small"><span lang="zxx">script</span></span></span><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">&gt;</span></span></span></p>
<p style="margin-bottom: 0in"><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">&lt;</span></span></span><span style="color: #800000"><span style="font-size: small"><span lang="zxx">script </span></span></span><span style="color: #ff0000"><span style="font-size: small"><span lang="zxx">src</span></span></span><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">=&#8221;http://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js&#8221;&gt;&lt;/</span></span></span><span style="color: #800000"><span style="font-size: small"><span lang="zxx">script</span></span></span><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">&gt;</span></span></span></p>
<p style="margin-bottom: 0in"><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">&lt;</span></span></span><span style="color: #800000"><span style="font-size: small"><span lang="zxx">script </span></span></span><span style="color: #ff0000"><span style="font-size: small"><span lang="zxx">src</span></span></span><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">=&#8221;marquee.js&#8221; </span></span></span><span style="color: #ff0000"><span style="font-size: small"><span lang="zxx">type</span></span></span><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">=&#8221;text/javascript&#8221;&gt;&lt;/</span></span></span><span style="color: #800000"><span style="font-size: small"><span lang="zxx">script</span></span></span><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">&gt;</span></span></span></p>
<p style="margin-bottom: 0in"><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">&lt;/</span></span></span><span style="color: #800000"><span style="font-size: small"><span lang="zxx">head</span></span></span><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">&gt;</span></span></span></p>
<p style="margin-bottom: 0in"><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">&lt;</span></span></span><span style="color: #800000"><span style="font-size: small"><span lang="zxx">body</span></span></span><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">&gt;</span></span></span></p>
<p style="margin-bottom: 0in"><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">&lt;</span></span></span><span style="color: #800000"><span style="font-size: small"><span lang="zxx">div </span></span></span><span style="color: #ff0000"><span style="font-size: small"><span lang="zxx">id</span></span></span><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">=&#8221;stagetodraw&#8221;&gt;&lt;/</span></span></span><span style="color: #800000"><span style="font-size: small"><span lang="zxx">div</span></span></span><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">&gt;</span></span></span></p>
<p style="margin-bottom: 0in"><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">&lt;</span></span></span><span style="color: #800000"><span style="font-size: small"><span lang="zxx">script </span></span></span><span style="color: #ff0000"><span style="font-size: small"><span lang="zxx">type</span></span></span><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">=&#8221;text/javascript&#8221;&gt;</span></span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #008000"><span style="font-size: small">/* Drawing Stage */</span></span></p>
<p style="margin-bottom: 0in"><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">var</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx"> stage = </span></span></span><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">new</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx"> Kinetic.Stage({</span></span></span></p>
<p style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small"><span lang="zxx">container: </span></span></span><span style="color: #800000"><span style="font-size: small"><span lang="zxx">&#8216;stagetodraw&#8217;</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">,</span></span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">width: 640,</span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">height: 380,</span></span></p>
<p style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small"><span lang="zxx">draggable: </span></span></span><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">false</span></span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">});</span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #008000"><span style="font-size: small">/* Drawing Rectangle over Stage */</span></span></p>
<p style="margin-bottom: 0in"><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">var</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx"> bgRectangle = </span></span></span><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">new</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx"> Kinetic.Rect({</span></span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">x: 0,</span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">y: 0,</span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">width: stage.getWidth(),</span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">height: stage.getHeight(),</span></span></p>
<p style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small"><span lang="zxx">fill: </span></span></span><span style="color: #800000"><span style="font-size: small"><span lang="zxx">&#8216;#E5E4E2&#8217;</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">,</span></span></span></p>
<p style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small"><span lang="zxx">draggable: </span></span></span><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">false</span></span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">});</span></span></p>
<p style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small"><span lang="zxx">bgRectangle.on(</span></span></span><span style="color: #800000"><span style="font-size: small"><span lang="zxx">&#8216;click&#8217;</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">, </span></span></span><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">function</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">() {</span></span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">mar.hide();</span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">});</span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #008000"><span style="font-size: small">/* Creating a Layer */</span></span></p>
<p style="margin-bottom: 0in"><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">var</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx"> layer = </span></span></span><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">new</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx"> Kinetic.Layer();</span></span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #008000"><span style="font-size: small">/* Adding base Rectangle to Layer */</span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">layer.add(bgRectangle);</span></span></p>
<p style="margin-bottom: 0in"><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">var</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx"> mar = </span></span></span><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">null</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">;</span></span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #008000"><span style="font-size: small">/* Rectangle for Marquee */</span></span></p>
<p style="margin-bottom: 0in"><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">var</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx"> marqueeRectangle = </span></span></span><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">new</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx"> Kinetic.Rect({</span></span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">x: 100,</span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">y: 100,</span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">width: 400,</span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">height: 150,</span></span></p>
<p style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small"><span lang="zxx">fill: </span></span></span><span style="color: #800000"><span style="font-size: small"><span lang="zxx">&#8216;lightblue&#8217;</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">,</span></span></span></p>
<p style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small"><span lang="zxx">draggable: </span></span></span><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">true</span></span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">}); </span></span></p>
<p style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small"><span lang="zxx">marqueeRectangle.on(</span></span></span><span style="color: #800000"><span style="font-size: small"><span lang="zxx">&#8216;click&#8217;</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">, </span></span></span><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">function</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">() {</span></span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #008000"><span style="font-size: small">/* Creating instance for marquee class */</span></span></p>
<p style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small"><span lang="zxx">mar = </span></span></span><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">new</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx"> Marquee(marqueeRectangle);</span></span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #008000"><span style="font-size: small">/* Using show method showing marquee for rectangle */</span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">mar.show();</span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">});</span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #008000"><span style="font-size: small">/* Adding shape to Layer */</span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">layer.add(marqueeRectangle);</span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #008000"><span style="font-size: small">/* Adding Layer to Stage */</span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">stage.add(layer);</span></span></p>
<p style="margin-bottom: 0in"><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">&lt;/</span></span></span><span style="color: #800000"><span style="font-size: small"><span lang="zxx">script</span></span></span><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">&gt;</span></span></span></p>
<p style="margin-bottom: 0in"><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">&lt;/</span></span></span><span style="color: #800000"><span style="font-size: small"><span lang="zxx">body</span></span></span><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">&gt;</span></span></span></p>
<p style="margin-bottom: 20px"><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">&lt;/</span></span></span><span style="color: #800000"><span style="font-size: small"><span lang="zxx">html</span></span></span><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">&gt;</span></span></span></p>
<p style="margin-bottom: 20px"><strong>Marquee.js</strong></p>
<p style="margin-bottom: 0in"><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">var</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx"> Marquee = </span></span></span><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">function</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx"> (shape) {</span></span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #008000"><span style="font-size: small">/* Declaration of marquee settings */</span></span></p>
<p style="margin-bottom: 0in"><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">var</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx"> RESIZE_RECT_FILL_COLOR = </span></span></span><span style="color: #800000"><span style="font-size: small"><span lang="zxx">&#8220;green&#8221;</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">;</span></span></span></p>
<p style="margin-bottom: 0in"><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">var</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx"> RESIZE_CIRCLE_FILL_COLOR = </span></span></span><span style="color: #800000"><span style="font-size: small"><span lang="zxx">&#8220;blue&#8221;</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">;</span></span></span></p>
<p style="margin-bottom: 0in"><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">var</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx"> RESIZE_LINE_STROKE_COLOR = </span></span></span><span style="color: #800000"><span style="font-size: small"><span lang="zxx">&#8220;darkgray&#8221;</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">;</span></span></span></p>
<p style="margin-bottom: 0in"><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">var</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx"> RESIZE_LINE_SHORT_WIDTH = 20;</span></span></span></p>
<p style="margin-bottom: 0in"><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">var</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx"> RESIZE_RECT_WIDTH_FACTOR = 2;</span></span></span></p>
<p style="margin-bottom: 0in"><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">var</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx"> RESIZE_CIRCLE_WIDTH_FACTOR = 1;</span></span></span></p>
<p style="margin-bottom: 0in"><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">var</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx"> STROKE_WIDTH = 5;</span></span></span></p>
<p style="margin-bottom: 0in"><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">var</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx"> ROT_DEG = 10;</span></span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #008000"><span style="font-size: small">/* Declaring the points for marquee */</span></span></p>
<p style="margin-bottom: 0in"><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">var</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx"> CP_ACTION = {</span></span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">NONE: 0,</span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">CP_LEFT: 1,</span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">CP_TOP: 2,</span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">CP_RIGHT: 3,</span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">CP_BOTTOM: 4,</span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">CP_TOP_LEFT: 5,</span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">CP_TOP_RIGHT: 6,</span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">CP_BOTTOM_LEFT: 7,</span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">CP_BOTTOM_RIGHT: 8,</span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">CP_ROTATE: 9</span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">};</span></span></p>
<p style="margin-bottom: 0in"><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">var</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx"> exports = {};</span></span></span></p>
<p style="margin-bottom: 0in"><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">var</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx"> _shape = </span></span></span><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">null</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">;</span></span></span></p>
<p style="margin-bottom: 0in"><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">var</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx"> _group = </span></span></span><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">null</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">;</span></span></span></p>
<p style="margin-bottom: 0in"><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">var</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx"> _layer = </span></span></span><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">null</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">;</span></span></span></p>
<p style="margin-bottom: 0in"><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">var</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx"> _stage = </span></span></span><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">null</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">;</span></span></span></p>
<p style="margin-bottom: 0in"><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">var</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx"> _bSelected = </span></span></span><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">false</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">;</span></span></span></p>
<p style="margin-bottom: 0in"><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">var</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx"> _cpAction = </span></span></span><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">null</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">;</span></span></span></p>
<p style="margin-bottom: 0in"><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">var</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx"> _marX = </span></span></span><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">null</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">;</span></span></span></p>
<p style="margin-bottom: 0in"><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">var</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx"> _marY = </span></span></span><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">null</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">;</span></span></span></p>
<p style="margin-bottom: 0in"><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">var</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx"> _marWidth = </span></span></span><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">null</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">;</span></span></span></p>
<p style="margin-bottom: 0in"><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">var</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx"> _marHeight = </span></span></span><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">null</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">;</span></span></span></p>
<p style="margin-bottom: 0in"><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">function</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx"> init() {</span></span></span></p>
<p style="margin-bottom: 0in"><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">var</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx"> stroke = STROKE_WIDTH;</span></span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">getMarDimensions(stroke);</span></span></p>
<p style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small"><span lang="zxx">_group = </span></span></span><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">new</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx"> Kinetic.Group({</span></span></span></p>
<p style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small"><span lang="zxx">id: </span></span></span><span style="color: #800000"><span style="font-size: small"><span lang="zxx">&#8220;marquee&#8221;</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">,</span></span></span></p>
<p style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small"><span lang="zxx">name: </span></span></span><span style="color: #800000"><span style="font-size: small"><span lang="zxx">&#8220;marqueeGroup&#8221;</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">,</span></span></span></p>
<p style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small"><span lang="zxx">x: _marX, </span></span></span><span style="color: #008000"><span style="font-size: small"><span lang="zxx">//0,</span></span></span></p>
<p style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small"><span lang="zxx">y: _marY, </span></span></span><span style="color: #008000"><span style="font-size: small"><span lang="zxx">//0,</span></span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">width: _marWidth,</span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">height: _marHeight,</span></span></p>
<p style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small"><span lang="zxx">draggable: </span></span></span><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">true</span></span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">});</span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #008000"><span style="font-size: small">// move shape to this group</span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">_shape.setX(0);</span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">_shape.setY(0);</span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">_shape.moveTo(_group);</span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #008000"><span style="font-size: small">// resizing border lines</span></span></p>
<p style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small"><span lang="zxx">createBorderLines(stroke / 2, 0, 0, _marHeight, _marWidth, </span></span></span><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">false</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">);</span></span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #008000"><span style="font-size: small">// control points</span></span></p>
<p style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small"><span lang="zxx">createControlPoints(stroke, 0, 0, _marHeight, _marWidth, </span></span></span><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">false</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">);</span></span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">_layer.add(_group);</span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">_stage.draw();</span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">}</span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #008000"><span style="font-size: small">/* Show method to display marquee */</span></span></p>
<p style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small"><span lang="zxx">exports.show = </span></span></span><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">function</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx"> () {</span></span></span></p>
<p style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small"><span lang="zxx">_bSelected = </span></span></span><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">true</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">;</span></span></span></p>
<p style="margin-bottom: 0in"><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">for</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx"> (i = 0; i &lt; _group.children.length; i++) {</span></span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">_group.children[i].show();</span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">}</span></span></p>
<p style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small"><span lang="zxx">_group.setDraggable(</span></span></span><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">true</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">);</span></span></span></p>
<p style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small"><span lang="zxx">_shape.setDraggable(</span></span></span><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">true</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">);</span></span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">_stage.draw();</span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">};</span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #008000"><span style="font-size: small">/* Hide method to hide marquee */</span></span></p>
<p style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small"><span lang="zxx">exports.hide = </span></span></span><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">function</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx"> () {</span></span></span></p>
<p style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small"><span lang="zxx">_bSelected = </span></span></span><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">false</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">;</span></span></span></p>
<p style="margin-bottom: 0in"><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">for</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx"> (i = 0; i &lt; _group.children.length; i++) {</span></span></span></p>
<p style="margin-bottom: 0in"><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">if</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx"> (_group.children[i]._id != _shape._id) {</span></span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">_group.children[i].hide();</span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">}</span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">}</span></span></p>
<p style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small"><span lang="zxx">_group.setDraggable(</span></span></span><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">false</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">);</span></span></span></p>
<p style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small"><span lang="zxx">_shape.setDraggable(</span></span></span><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">false</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">);</span></span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">_stage.draw();</span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">};</span></span></p>
<p style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small"><span lang="zxx">exports.refresh = </span></span></span><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">function</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx"> (prevX, prevY) {</span></span></span></p>
<p style="margin-bottom: 0in"><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">var</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx"> stroke = STROKE_WIDTH;</span></span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">getMarDimensions(stroke);</span></span></p>
<p style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small"><span lang="zxx">createBorderLines(stroke, 0, 0, _marHeight, _marWidth, </span></span></span><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">true</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">);</span></span></span></p>
<p style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small"><span lang="zxx">createControlPoints(stroke, 0, 0, _marHeight, _marWidth, </span></span></span><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">true</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">);</span></span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">_stage.draw();</span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">}</span></span></p>
<p style="margin-bottom: 0in"><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">function</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx"> getMarDimensions(stroke) {</span></span></span></p>
<p style="margin-bottom: 0in"><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">var</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx"> offset = _shape.getOffset();</span></span></span></p>
<p style="margin-bottom: 0in"><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">var</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx"> scale = _shape.getScale();</span></span></span></p>
<p style="margin-bottom: 0in"><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">switch</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx"> (_shape.shapeType) {</span></span></span></p>
<p style="margin-bottom: 0in"><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">case</span></span></span><span style="color: #800000"><span style="font-size: small"><span lang="zxx">&#8220;Rect&#8221;</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">:</span></span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">_marWidth = _shape.getWidth() * scale.x;</span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">_marHeight = _shape.getHeight() * scale.y;</span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">_marX = (_shape.getX());</span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">_marY = (_shape.getY());</span></span></p>
<p style="margin-bottom: 0in"><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">break</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">;</span></span></span></p>
<p style="margin-bottom: 0in"><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">default</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">:</span></span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">_marWidth = 100;</span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">_marHeight = 100;</span></span></p>
<p style="margin-bottom: 0in"><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">break</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">;</span></span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">}</span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">}</span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #008000"><span style="font-size: small">/* Function to draw border line for a shape */</span></span></p>
<p style="margin-bottom: 0in"><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">function</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx"> createBorderLines(stroke, x, y, height, width, refresh) {</span></span></span></p>
<p style="margin-bottom: 0in"><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">if</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx"> (refresh) {</span></span></span></p>
<p style="margin-bottom: 0in"><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">var</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx"> borderLines = _group.</span></span></span><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">get</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">(</span></span></span><span style="color: #800000"><span style="font-size: small"><span lang="zxx">&#8220;.borderLines&#8221;</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">)[0];</span></span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">borderLines.setPoints([x + (width / 2), y &#8211; RESIZE_LINE_SHORT_WIDTH,</span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">x + (width / 2), y,</span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">x + width, y,</span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">x + width, y + height,</span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">x, y + height,</span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">x, y,</span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">x + (width / 2), y]);</span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">}</span></span></p>
<p style="margin-bottom: 0in"><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">else</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx"> {</span></span></span></p>
<p style="margin-bottom: 0in"><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">var</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx"> borderLines = </span></span></span><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">new</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx"> Kinetic.Line({</span></span></span></p>
<p style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small"><span lang="zxx">id: </span></span></span><span style="color: #800000"><span style="font-size: small"><span lang="zxx">&#8220;marquee&#8221;</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">,</span></span></span></p>
<p style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small"><span lang="zxx">name: </span></span></span><span style="color: #800000"><span style="font-size: small"><span lang="zxx">&#8220;borderLines&#8221;</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">,</span></span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">points: [x + (width / 2), y &#8211; RESIZE_LINE_SHORT_WIDTH,</span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">x + (width / 2), y,</span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">x + width, y,</span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">x + width, y + height,</span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">x, y + height,</span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">x, y,</span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">x + (width / 2), y],</span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">dashArray: [STROKE_WIDTH, STROKE_WIDTH, STROKE_WIDTH, STROKE_WIDTH],</span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">stroke: RESIZE_LINE_STROKE_COLOR,</span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">strokeWidth: stroke,</span></span></p>
<p style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small"><span lang="zxx">lineCap: </span></span></span><span style="color: #800000"><span style="font-size: small"><span lang="zxx">&#8217;round&#8217;</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">,</span></span></span></p>
<p style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small"><span lang="zxx">lineJoin: </span></span></span><span style="color: #800000"><span style="font-size: small"><span lang="zxx">&#8217;round&#8217;</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">,</span></span></span></p>
<p style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small"><span lang="zxx">draggable: </span></span></span><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">true</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">,</span></span></span></p>
<p style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small"><span lang="zxx">dragOnTop: </span></span></span><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">false</span></span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">});</span></span></p>
<p style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small"><span lang="zxx">borderLines.on(</span></span></span><span style="color: #800000"><span style="font-size: small"><span lang="zxx">&#8220;mouseenter&#8221;</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">, </span></span></span><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">function</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx"> (evt) {</span></span></span></p>
<p style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small"><span lang="zxx">$(</span></span></span><span style="color: #800000"><span style="font-size: small"><span lang="zxx">&#8220;body&#8221;</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">).css(</span></span></span><span style="color: #800000"><span style="font-size: small"><span lang="zxx">&#8220;cursor&#8221;</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">, </span></span></span><span style="color: #800000"><span style="font-size: small"><span lang="zxx">&#8220;move&#8221;</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">);</span></span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">});</span></span></p>
<p style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small"><span lang="zxx">borderLines.on(</span></span></span><span style="color: #800000"><span style="font-size: small"><span lang="zxx">&#8220;mouseleave&#8221;</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">, </span></span></span><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">function</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx"> (evt) {</span></span></span></p>
<p style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small"><span lang="zxx">$(</span></span></span><span style="color: #800000"><span style="font-size: small"><span lang="zxx">&#8220;body&#8221;</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">).css(</span></span></span><span style="color: #800000"><span style="font-size: small"><span lang="zxx">&#8220;cursor&#8221;</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">, </span></span></span><span style="color: #800000"><span style="font-size: small"><span lang="zxx">&#8220;default&#8221;</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">);</span></span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">});</span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">_group.add(borderLines);</span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">}</span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">}</span></span></p>
<p style="margin-bottom: 0in"><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">function</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx"> handleResizeRotate(anchor) {</span></span></span></p>
<p style="margin-bottom: 0in"><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">if</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx"> (anchor) {</span></span></span></p>
<p style="margin-bottom: 0in"><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">var</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx"> prevX = _marX;</span></span></span></p>
<p style="margin-bottom: 0in"><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">var</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx"> prevY = _marY;</span></span></span></p>
<p style="margin-bottom: 0in"><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">var</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx"> currX = _marX + anchor.getX();</span></span></span></p>
<p style="margin-bottom: 0in"><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">var</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx"> currY = _marY + anchor.getY();</span></span></span></p>
<p style="margin-bottom: 0in"><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">var</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx"> scale = _shape.getScale();</span></span></span></p>
<p style="margin-bottom: 0in"><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">var</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx"> offset = _shape.getOffset();</span></span></span></p>
<p style="margin-bottom: 0in"><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">var</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx"> width = _shape.getWidth();</span></span></span></p>
<p style="margin-bottom: 0in"><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">var</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx"> height = _shape.getHeight();</span></span></span></p>
<p style="margin-bottom: 0in"><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">var</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx"> aspectRatio = width / height;</span></span></span></p>
<p style="margin-bottom: 0in"><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">switch</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx"> (anchor.getName()) {</span></span></span></p>
<p style="margin-bottom: 0in"><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">case</span></span></span><span style="color: #800000"><span style="font-size: small"><span lang="zxx">&#8220;cpRotate&#8221;</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">:</span></span></span></p>
<p style="margin-bottom: 0in"><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">var</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx"> haf = prevX + ((width * scale.x) / 2);</span></span></span></p>
<p style="margin-bottom: 0in"><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">var</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx"> isRight = currX &gt; haf ? </span></span></span><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">true</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx"> : </span></span></span><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">false</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">;</span></span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #008000"><span style="font-size: small">//center origin so rotation happens around center of group</span></span></p>
<p style="margin-bottom: 0in"><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">if</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx"> (!_group.hasAdjustedForRotation) {</span></span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">_group.setOffset(_group.getWidth() / 2, _group.getHeight() / 2);</span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">_group.move(_group.getScale().x * (_group.getWidth() / 2), _group.getScale().y * (_group.getHeight() / 2));</span></span></p>
<p style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small"><span lang="zxx">_group.hasAdjustedForRotation = </span></span></span><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">true</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">;</span></span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">}</span></span></p>
<p style="margin-bottom: 0in"><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">if</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx"> (isRight) {</span></span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">_group.rotateDeg(1);</span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">}</span></span></p>
<p style="margin-bottom: 0in"><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">else</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx"> {</span></span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">_group.rotateDeg(-1);</span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">}</span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">exports.refresh();</span></span></p>
<p style="margin-bottom: 0in"><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">break</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">;</span></span></span></p>
<p style="margin-bottom: 0in"><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">case</span></span></span><span style="color: #800000"><span style="font-size: small"><span lang="zxx">&#8220;cpTop&#8221;</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">:</span></span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">currY += (anchor.getHeight() / 2);</span></span></p>
<p style="margin-bottom: 0in"><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">var</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx"> diffY = (currY &#8211; prevY) / scale.y;</span></span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">_shape.setHeight(parseFloat(height &#8211; diffY), anchor);</span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">_group.setY(_group.getY() + (diffY * scale.y));</span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">exports.refresh();</span></span></p>
<p style="margin-bottom: 0in"><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">break</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">;</span></span></span></p>
<p style="margin-bottom: 0in"><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">case</span></span></span><span style="color: #800000"><span style="font-size: small"><span lang="zxx">&#8220;cpLeft&#8221;</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">:</span></span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">currX += (anchor.getWidth() / 2);</span></span></p>
<p style="margin-bottom: 0in"><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">var</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx"> diffX = (currX &#8211; prevX) / scale.x;</span></span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">_shape.setWidth(parseFloat(width &#8211; diffX), anchor);</span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">_group.setX(_group.getX() + (diffX * scale.x));</span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">exports.refresh();</span></span></p>
<p style="margin-bottom: 0in"><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">break</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">;</span></span></span></p>
<p style="margin-bottom: 0in"><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">case</span></span></span><span style="color: #800000"><span style="font-size: small"><span lang="zxx">&#8220;cpTopLeft&#8221;</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">:</span></span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">currY += (anchor.getHeight() / 2);</span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">currX += (anchor.getWidth() / 2);</span></span></p>
<p style="margin-bottom: 0in"><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">var</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx"> diffX = (currX &#8211; prevX) / scale.x;</span></span></span></p>
<p style="margin-bottom: 0in"><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">var</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx"> diffY = (currY &#8211; prevY) / scale.y;</span></span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">_shape.setWidth(parseFloat(width &#8211; diffX), anchor);</span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">_shape.setHeight(parseFloat(height &#8211; diffY), anchor);</span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">_group.setX(_group.getX() + (diffX * scale.x));</span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">_group.setY(_group.getY() + (diffY * scale.y));</span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">exports.refresh();</span></span></p>
<p style="margin-bottom: 0in"><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">break</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">;</span></span></span></p>
<p style="margin-bottom: 0in"><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">case</span></span></span><span style="color: #800000"><span style="font-size: small"><span lang="zxx">&#8220;cpBottomLeft&#8221;</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">:</span></span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">currY -= (anchor.getHeight() / 2);</span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">currX += (anchor.getWidth() / 2);</span></span></p>
<p style="margin-bottom: 0in"><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">var</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx"> diffX = (currX &#8211; prevX) / scale.x;</span></span></span></p>
<p style="margin-bottom: 0in"><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">var</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx"> diffY = (currY &#8211; prevY) / scale.y;</span></span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">_shape.setWidth(parseFloat(width &#8211; diffX), anchor);</span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">_shape.setHeight(parseFloat(height + parseFloat(diffY &#8211; height)), anchor);</span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">_group.setX(_group.getX() + (diffX * scale.x));</span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">exports.refresh();</span></span></p>
<p style="margin-bottom: 0in"><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">break</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">;</span></span></span></p>
<p style="margin-bottom: 0in"><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">case</span></span></span><span style="color: #800000"><span style="font-size: small"><span lang="zxx">&#8220;cpRight&#8221;</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">:</span></span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">currX += (anchor.getWidth() / 2);</span></span></p>
<p style="margin-bottom: 0in"><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">var</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx"> diffX = (currX &#8211; prevX) / scale.x;</span></span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">_shape.setWidth(parseFloat(width + parseFloat((diffX &#8211; width))), anchor);</span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">exports.refresh();</span></span></p>
<p style="margin-bottom: 0in"><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">break</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">;</span></span></span></p>
<p style="margin-bottom: 0in"><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">case</span></span></span><span style="color: #800000"><span style="font-size: small"><span lang="zxx">&#8220;cpTopRight&#8221;</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">:</span></span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">currY += (anchor.getHeight() / 2);</span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">currX -= (anchor.getWidth() / 2);</span></span></p>
<p style="margin-bottom: 0in"><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">var</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx"> diffX = (currX &#8211; prevX) / scale.x;</span></span></span></p>
<p style="margin-bottom: 0in"><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">var</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx"> diffY = (currY &#8211; prevY) / scale.y;</span></span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">_shape.setWidth(parseFloat(width + parseFloat(diffX &#8211; width)), anchor);</span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">_shape.setHeight(height &#8211; diffY, anchor);</span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">_group.setY(_group.getY() + (diffY * scale.y));</span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">exports.refresh();</span></span></p>
<p style="margin-bottom: 0in"><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">break</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">;</span></span></span></p>
<p style="margin-bottom: 0in"><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">case</span></span></span><span style="color: #800000"><span style="font-size: small"><span lang="zxx">&#8220;cpBottomRight&#8221;</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">:</span></span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">currY += (anchor.getHeight() / 2);</span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">currX += (anchor.getWidth() / 2);</span></span></p>
<p style="margin-bottom: 0in"><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">var</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx"> diffX = (currX &#8211; prevX) / scale.x;</span></span></span></p>
<p style="margin-bottom: 0in"><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">var</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx"> diffY = (currY &#8211; prevY) / scale.y;</span></span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">_shape.setWidth(parseFloat(width + parseFloat(diffX &#8211; width)), anchor);</span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">_shape.setHeight(parseFloat(height + parseFloat(diffY &#8211; height)), anchor);</span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">_group.setWidth(parseFloat(width + parseFloat(diffX &#8211; width)));</span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">_group.setHeight(parseFloat(height + parseFloat(diffY &#8211; height)));</span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">exports.refresh();</span></span></p>
<p style="margin-bottom: 0in"><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">break</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">;</span></span></span></p>
<p style="margin-bottom: 0in"><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">case</span></span></span><span style="color: #800000"><span style="font-size: small"><span lang="zxx">&#8220;cpBottom&#8221;</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">:</span></span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">currY += (anchor.getHeight() / 2);</span></span></p>
<p style="margin-bottom: 0in"><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">var</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx"> diffY = (currY &#8211; prevY) / scale.y;</span></span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">_shape.setHeight(parseFloat(height + parseFloat(diffY &#8211; height)), anchor);</span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">exports.refresh();</span></span></p>
<p style="margin-bottom: 0in"><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">break</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">;</span></span></span></p>
<p style="margin-bottom: 0in"><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">default</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">:</span></span></span></p>
<p style="margin-bottom: 0in"><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">break</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">;</span></span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">}</span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">}</span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">}</span></span></p>
<p style="margin-bottom: 0in"><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">function</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx"> createControlPoints(stroke, x, y, height, width, refresh) {</span></span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #008000"><span style="font-size: small">// rotate control point</span></span></p>
<p style="margin-bottom: 0in"><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">if</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx"> (refresh) {</span></span></span></p>
<p style="margin-bottom: 0in"><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">var</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx"> cpRotate = _group.</span></span></span><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">get</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">(</span></span></span><span style="color: #800000"><span style="font-size: small"><span lang="zxx">&#8220;.cpRotate&#8221;</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">)[0];</span></span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">cpRotate.setX(x + (width / 2));</span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">cpRotate.setY(y &#8211; RESIZE_LINE_SHORT_WIDTH);</span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">}</span></span></p>
<p style="margin-bottom: 0in"><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">else</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx"> {</span></span></span></p>
<p style="margin-bottom: 0in"><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">var</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx"> cpRotate = </span></span></span><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">new</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx"> Kinetic.Circle({</span></span></span></p>
<p style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small"><span lang="zxx">id: </span></span></span><span style="color: #800000"><span style="font-size: small"><span lang="zxx">&#8220;marquee&#8221;</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">,</span></span></span></p>
<p style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small"><span lang="zxx">name: </span></span></span><span style="color: #800000"><span style="font-size: small"><span lang="zxx">&#8220;cpRotate&#8221;</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">,</span></span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">x: x + (width / 2),</span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">y: y &#8211; RESIZE_LINE_SHORT_WIDTH,</span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">radius: stroke * RESIZE_CIRCLE_WIDTH_FACTOR,</span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">stroke: RESIZE_CIRCLE_FILL_COLOR,</span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">fill: RESIZE_CIRCLE_FILL_COLOR,</span></span></p>
<p style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small"><span lang="zxx">draggable: </span></span></span><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">true</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">,</span></span></span></p>
<p style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small"><span lang="zxx">dragOnTop: </span></span></span><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">false</span></span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">});</span></span></p>
<p style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small"><span lang="zxx">cpRotate.on(</span></span></span><span style="color: #800000"><span style="font-size: small"><span lang="zxx">&#8220;mouseenter&#8221;</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">, </span></span></span><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">function</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx"> (evt) {</span></span></span></p>
<p style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small"><span lang="zxx">$(</span></span></span><span style="color: #800000"><span style="font-size: small"><span lang="zxx">&#8220;body&#8221;</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">).css(</span></span></span><span style="color: #800000"><span style="font-size: small"><span lang="zxx">&#8220;cursor&#8221;</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">, </span></span></span><span style="color: #800000"><span style="font-size: small"><span lang="zxx">&#8220;wait&#8221;</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">);</span></span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">});</span></span></p>
<p style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small"><span lang="zxx">cpRotate.on(</span></span></span><span style="color: #800000"><span style="font-size: small"><span lang="zxx">&#8220;mouseleave&#8221;</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">, </span></span></span><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">function</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx"> (evt) {</span></span></span></p>
<p style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small"><span lang="zxx">$(</span></span></span><span style="color: #800000"><span style="font-size: small"><span lang="zxx">&#8220;body&#8221;</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">).css(</span></span></span><span style="color: #800000"><span style="font-size: small"><span lang="zxx">&#8220;cursor&#8221;</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">, </span></span></span><span style="color: #800000"><span style="font-size: small"><span lang="zxx">&#8220;default&#8221;</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">);</span></span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">});</span></span></p>
<p style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small"><span lang="zxx">cpRotate.on(</span></span></span><span style="color: #800000"><span style="font-size: small"><span lang="zxx">&#8220;mousedown&#8221;</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">, </span></span></span><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">function</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx"> () {</span></span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">_cpAction = CP_ACTION.CP_ROTATE;</span></span></p>
<p style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small"><span lang="zxx">_group.setDraggable(</span></span></span><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">false</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">);</span></span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">});</span></span></p>
<p style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small"><span lang="zxx">cpRotate.on(</span></span></span><span style="color: #800000"><span style="font-size: small"><span lang="zxx">&#8220;mouseup dragend&#8221;</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">, </span></span></span><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">function</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx"> () {</span></span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">_cpAction = CP_ACTION.NONE;</span></span></p>
<p style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small"><span lang="zxx">_group.setDraggable(</span></span></span><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">true</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">);</span></span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">});</span></span></p>
<p style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small"><span lang="zxx">cpRotate.on(</span></span></span><span style="color: #800000"><span style="font-size: small"><span lang="zxx">&#8220;dragmove&#8221;</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">, </span></span></span><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">function</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx"> (evt) {</span></span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">handleResizeRotate(cpRotate);</span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">});</span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">_group.add(cpRotate);</span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">}</span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #008000"><span style="font-size: small">// resizing left control point</span></span></p>
<p style="margin-bottom: 0in"><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">if</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx"> (refresh) {</span></span></span></p>
<p style="margin-bottom: 0in"><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">var</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx"> cpLeft = _group.</span></span></span><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">get</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">(</span></span></span><span style="color: #800000"><span style="font-size: small"><span lang="zxx">&#8220;.cpLeft&#8221;</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">)[0];</span></span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">cpLeft.setX(x &#8211; stroke);</span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">cpLeft.setY(y &#8211; stroke + (height / 2));</span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">}</span></span></p>
<p style="margin-bottom: 0in"><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">else</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx"> {</span></span></span></p>
<p style="margin-bottom: 0in"><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">var</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx"> cpLeft = </span></span></span><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">new</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx"> Kinetic.Rect({</span></span></span></p>
<p style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small"><span lang="zxx">id: </span></span></span><span style="color: #800000"><span style="font-size: small"><span lang="zxx">&#8220;marquee&#8221;</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">,</span></span></span></p>
<p style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small"><span lang="zxx">name: </span></span></span><span style="color: #800000"><span style="font-size: small"><span lang="zxx">&#8220;cpLeft&#8221;</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">,</span></span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">x: x &#8211; stroke,</span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">y: y &#8211; stroke + (height / 2),</span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">width: stroke * RESIZE_RECT_WIDTH_FACTOR,</span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">height: stroke * RESIZE_RECT_WIDTH_FACTOR,</span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">stroke: RESIZE_RECT_FILL_COLOR,</span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">fill: RESIZE_RECT_FILL_COLOR,</span></span></p>
<p style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small"><span lang="zxx">draggable: </span></span></span><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">true</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">,</span></span></span></p>
<p style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small"><span lang="zxx">dragOnTop: </span></span></span><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">false</span></span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">});</span></span></p>
<p style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small"><span lang="zxx">cpLeft.on(</span></span></span><span style="color: #800000"><span style="font-size: small"><span lang="zxx">&#8220;mouseenter&#8221;</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">, </span></span></span><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">function</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx"> (evt) {</span></span></span></p>
<p style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small"><span lang="zxx">$(</span></span></span><span style="color: #800000"><span style="font-size: small"><span lang="zxx">&#8220;body&#8221;</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">).css(</span></span></span><span style="color: #800000"><span style="font-size: small"><span lang="zxx">&#8220;cursor&#8221;</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">, </span></span></span><span style="color: #800000"><span style="font-size: small"><span lang="zxx">&#8220;e-resize&#8221;</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">);</span></span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">});</span></span></p>
<p style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small"><span lang="zxx">cpLeft.on(</span></span></span><span style="color: #800000"><span style="font-size: small"><span lang="zxx">&#8220;mouseleave&#8221;</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">, </span></span></span><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">function</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx"> (evt) {</span></span></span></p>
<p style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small"><span lang="zxx">$(</span></span></span><span style="color: #800000"><span style="font-size: small"><span lang="zxx">&#8220;body&#8221;</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">).css(</span></span></span><span style="color: #800000"><span style="font-size: small"><span lang="zxx">&#8220;cursor&#8221;</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">, </span></span></span><span style="color: #800000"><span style="font-size: small"><span lang="zxx">&#8220;default&#8221;</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">);</span></span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">});</span></span></p>
<p style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small"><span lang="zxx">cpLeft.on(</span></span></span><span style="color: #800000"><span style="font-size: small"><span lang="zxx">&#8220;mousedown&#8221;</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">, </span></span></span><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">function</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx"> (evt) {</span></span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">_cpAction = CP_ACTION.CP_LEFT;</span></span></p>
<p style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small"><span lang="zxx">_group.setDraggable(</span></span></span><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">false</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">);</span></span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">});</span></span></p>
<p style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small"><span lang="zxx">cpLeft.on(</span></span></span><span style="color: #800000"><span style="font-size: small"><span lang="zxx">&#8220;mouseup dragend&#8221;</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">, </span></span></span><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">function</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx"> (evt) {</span></span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">_cpAction = CP_ACTION.NONE;</span></span></p>
<p style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small"><span lang="zxx">_group.setDraggable(</span></span></span><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">true</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">);</span></span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">});</span></span></p>
<p style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small"><span lang="zxx">cpLeft.on(</span></span></span><span style="color: #800000"><span style="font-size: small"><span lang="zxx">&#8220;dragmove&#8221;</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">, </span></span></span><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">function</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx"> (evt) {</span></span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">handleResizeRotate(cpLeft);</span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">});</span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">_group.add(cpLeft);</span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">}</span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #008000"><span style="font-size: small">// resizing right control point</span></span></p>
<p style="margin-bottom: 0in"><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">if</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx"> (refresh) {</span></span></span></p>
<p style="margin-bottom: 0in"><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">var</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx"> cpRight = _group.</span></span></span><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">get</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">(</span></span></span><span style="color: #800000"><span style="font-size: small"><span lang="zxx">&#8220;.cpRight&#8221;</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">)[0];</span></span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">cpRight.setX(x &#8211; stroke + width);</span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">cpRight.setY(y &#8211; stroke + (height / 2));</span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">}</span></span></p>
<p style="margin-bottom: 0in"><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">else</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx"> {</span></span></span></p>
<p style="margin-bottom: 0in"><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">var</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx"> cpRight = </span></span></span><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">new</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx"> Kinetic.Rect({</span></span></span></p>
<p style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small"><span lang="zxx">id: </span></span></span><span style="color: #800000"><span style="font-size: small"><span lang="zxx">&#8220;marquee&#8221;</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">,</span></span></span></p>
<p style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small"><span lang="zxx">name: </span></span></span><span style="color: #800000"><span style="font-size: small"><span lang="zxx">&#8220;cpRight&#8221;</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">,</span></span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">x: x &#8211; stroke + width,</span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">y: y &#8211; stroke + (height / 2),</span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">width: stroke * RESIZE_RECT_WIDTH_FACTOR,</span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">height: stroke * RESIZE_RECT_WIDTH_FACTOR,</span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">stroke: RESIZE_RECT_FILL_COLOR,</span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">fill: RESIZE_RECT_FILL_COLOR,</span></span></p>
<p style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small"><span lang="zxx">draggable: </span></span></span><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">true</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">,</span></span></span></p>
<p style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small"><span lang="zxx">dragOnTop: </span></span></span><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">false</span></span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">});</span></span></p>
<p style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small"><span lang="zxx">cpRight.on(</span></span></span><span style="color: #800000"><span style="font-size: small"><span lang="zxx">&#8220;mouseenter&#8221;</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">, </span></span></span><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">function</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx"> (evt) {</span></span></span></p>
<p style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small"><span lang="zxx">$(</span></span></span><span style="color: #800000"><span style="font-size: small"><span lang="zxx">&#8220;body&#8221;</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">).css(</span></span></span><span style="color: #800000"><span style="font-size: small"><span lang="zxx">&#8220;cursor&#8221;</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">, </span></span></span><span style="color: #800000"><span style="font-size: small"><span lang="zxx">&#8220;e-resize&#8221;</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">);</span></span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">});</span></span></p>
<p style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small"><span lang="zxx">cpRight.on(</span></span></span><span style="color: #800000"><span style="font-size: small"><span lang="zxx">&#8220;mouseleave&#8221;</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">, </span></span></span><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">function</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx"> (evt) {</span></span></span></p>
<p style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small"><span lang="zxx">$(</span></span></span><span style="color: #800000"><span style="font-size: small"><span lang="zxx">&#8220;body&#8221;</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">).css(</span></span></span><span style="color: #800000"><span style="font-size: small"><span lang="zxx">&#8220;cursor&#8221;</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">, </span></span></span><span style="color: #800000"><span style="font-size: small"><span lang="zxx">&#8220;default&#8221;</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">);</span></span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">});</span></span></p>
<p style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small"><span lang="zxx">cpRight.on(</span></span></span><span style="color: #800000"><span style="font-size: small"><span lang="zxx">&#8220;mousedown&#8221;</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">, </span></span></span><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">function</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx"> () {</span></span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">_cpAction = CP_ACTION.CP_RIGHT;</span></span></p>
<p style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small"><span lang="zxx">_group.setDraggable(</span></span></span><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">false</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">);</span></span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">});</span></span></p>
<p style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small"><span lang="zxx">cpRight.on(</span></span></span><span style="color: #800000"><span style="font-size: small"><span lang="zxx">&#8220;mouseup dragnend&#8221;</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">, </span></span></span><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">function</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx"> (evt) {</span></span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">_cpAction = CP_ACTION.NONE;</span></span></p>
<p style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small"><span lang="zxx">_group.setDraggable(</span></span></span><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">true</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">);</span></span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">});</span></span></p>
<p style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small"><span lang="zxx">cpRight.on(</span></span></span><span style="color: #800000"><span style="font-size: small"><span lang="zxx">&#8220;dragmove&#8221;</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">, </span></span></span><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">function</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx"> (evt) {</span></span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">handleResizeRotate(cpRight);</span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">});</span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">_group.add(cpRight);</span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">}</span></span></p>
<p style="margin-bottom: 0in"><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">if</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx"> (_shape.shapeType == </span></span></span><span style="color: #800000"><span style="font-size: small"><span lang="zxx">&#8220;Line&#8221;</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">)</span></span></span></p>
<p style="margin-bottom: 0in"><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">return</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">;</span></span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #008000"><span style="font-size: small">// resizing top control point</span></span></p>
<p style="margin-bottom: 0in"><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">if</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx"> (refresh) {</span></span></span></p>
<p style="margin-bottom: 0in"><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">var</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx"> cpTop = _group.</span></span></span><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">get</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">(</span></span></span><span style="color: #800000"><span style="font-size: small"><span lang="zxx">&#8220;.cpTop&#8221;</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">)[0];</span></span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">cpTop.setX(x &#8211; stroke + (width / 2));</span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">cpTop.setY(y &#8211; stroke);</span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">}</span></span></p>
<p style="margin-bottom: 0in"><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">else</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx"> {</span></span></span></p>
<p style="margin-bottom: 0in"><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">var</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx"> cpTop = </span></span></span><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">new</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx"> Kinetic.Rect({</span></span></span></p>
<p style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small"><span lang="zxx">id: </span></span></span><span style="color: #800000"><span style="font-size: small"><span lang="zxx">&#8220;marquee&#8221;</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">,</span></span></span></p>
<p style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small"><span lang="zxx">name: </span></span></span><span style="color: #800000"><span style="font-size: small"><span lang="zxx">&#8220;cpTop&#8221;</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">,</span></span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">x: x &#8211; stroke + (width / 2),</span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">y: y &#8211; stroke,</span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">width: stroke * RESIZE_RECT_WIDTH_FACTOR,</span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">height: stroke * RESIZE_RECT_WIDTH_FACTOR,</span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">stroke: RESIZE_RECT_FILL_COLOR,</span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">fill: RESIZE_RECT_FILL_COLOR,</span></span></p>
<p style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small"><span lang="zxx">draggable: </span></span></span><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">true</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">,</span></span></span></p>
<p style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small"><span lang="zxx">dragOnTop: </span></span></span><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">false</span></span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">});</span></span></p>
<p style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small"><span lang="zxx">cpTop.on(</span></span></span><span style="color: #800000"><span style="font-size: small"><span lang="zxx">&#8220;mouseenter&#8221;</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">, </span></span></span><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">function</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx"> (evt) {</span></span></span></p>
<p style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small"><span lang="zxx">$(</span></span></span><span style="color: #800000"><span style="font-size: small"><span lang="zxx">&#8220;body&#8221;</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">).css(</span></span></span><span style="color: #800000"><span style="font-size: small"><span lang="zxx">&#8220;cursor&#8221;</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">, </span></span></span><span style="color: #800000"><span style="font-size: small"><span lang="zxx">&#8220;s-resize&#8221;</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">);</span></span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">});</span></span></p>
<p style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small"><span lang="zxx">cpTop.on(</span></span></span><span style="color: #800000"><span style="font-size: small"><span lang="zxx">&#8220;mouseleave&#8221;</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">, </span></span></span><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">function</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx"> (evt) {</span></span></span></p>
<p style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small"><span lang="zxx">$(</span></span></span><span style="color: #800000"><span style="font-size: small"><span lang="zxx">&#8220;body&#8221;</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">).css(</span></span></span><span style="color: #800000"><span style="font-size: small"><span lang="zxx">&#8220;cursor&#8221;</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">, </span></span></span><span style="color: #800000"><span style="font-size: small"><span lang="zxx">&#8220;default&#8221;</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">);</span></span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">});</span></span></p>
<p style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small"><span lang="zxx">cpTop.on(</span></span></span><span style="color: #800000"><span style="font-size: small"><span lang="zxx">&#8220;mousedown&#8221;</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">, </span></span></span><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">function</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx"> () {</span></span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">_cpAction = CP_ACTION.CP_TOP;</span></span></p>
<p style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small"><span lang="zxx">_group.setDraggable(</span></span></span><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">false</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">);</span></span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">});</span></span></p>
<p style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small"><span lang="zxx">cpTop.on(</span></span></span><span style="color: #800000"><span style="font-size: small"><span lang="zxx">&#8220;mouseup dragnend&#8221;</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">, </span></span></span><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">function</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx"> () {</span></span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">_cpAction = CP_ACTION.NONE;</span></span></p>
<p style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small"><span lang="zxx">_group.setDraggable(</span></span></span><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">true</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">);</span></span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">});</span></span></p>
<p style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small"><span lang="zxx">cpTop.on(</span></span></span><span style="color: #800000"><span style="font-size: small"><span lang="zxx">&#8220;dragmove&#8221;</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">, </span></span></span><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">function</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx"> (evt) {</span></span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">handleResizeRotate(cpTop);</span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">});</span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">_group.add(cpTop);</span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">}</span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #008000"><span style="font-size: small">// resizing bottom control point</span></span></p>
<p style="margin-bottom: 0in"><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">if</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx"> (refresh) {</span></span></span></p>
<p style="margin-bottom: 0in"><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">var</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx"> cpBottom = _group.</span></span></span><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">get</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">(</span></span></span><span style="color: #800000"><span style="font-size: small"><span lang="zxx">&#8220;.cpBottom&#8221;</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">)[0];</span></span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">cpBottom.setX(x &#8211; stroke + (width / 2));</span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">cpBottom.setY(y &#8211; stroke + height);</span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">}</span></span></p>
<p style="margin-bottom: 0in"><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">else</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx"> {</span></span></span></p>
<p style="margin-bottom: 0in"><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">var</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx"> cpBottom = </span></span></span><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">new</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx"> Kinetic.Rect({</span></span></span></p>
<p style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small"><span lang="zxx">id: </span></span></span><span style="color: #800000"><span style="font-size: small"><span lang="zxx">&#8220;marquee&#8221;</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">,</span></span></span></p>
<p style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small"><span lang="zxx">name: </span></span></span><span style="color: #800000"><span style="font-size: small"><span lang="zxx">&#8220;cpBottom&#8221;</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">,</span></span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">x: x &#8211; stroke + (width / 2),</span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">y: y &#8211; stroke + height,</span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">width: stroke * RESIZE_RECT_WIDTH_FACTOR,</span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">height: stroke * RESIZE_RECT_WIDTH_FACTOR,</span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">stroke: RESIZE_RECT_FILL_COLOR,</span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">fill: RESIZE_RECT_FILL_COLOR,</span></span></p>
<p style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small"><span lang="zxx">draggable: </span></span></span><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">true</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">,</span></span></span></p>
<p style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small"><span lang="zxx">dragOnTop: </span></span></span><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">false</span></span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">});</span></span></p>
<p style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small"><span lang="zxx">cpBottom.on(</span></span></span><span style="color: #800000"><span style="font-size: small"><span lang="zxx">&#8220;mouseenter&#8221;</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">, </span></span></span><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">function</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx"> (evt) {</span></span></span></p>
<p style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small"><span lang="zxx">$(</span></span></span><span style="color: #800000"><span style="font-size: small"><span lang="zxx">&#8220;body&#8221;</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">).css(</span></span></span><span style="color: #800000"><span style="font-size: small"><span lang="zxx">&#8220;cursor&#8221;</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">, </span></span></span><span style="color: #800000"><span style="font-size: small"><span lang="zxx">&#8220;s-resize&#8221;</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">);</span></span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">});</span></span></p>
<p style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small"><span lang="zxx">cpBottom.on(</span></span></span><span style="color: #800000"><span style="font-size: small"><span lang="zxx">&#8220;mouseleave&#8221;</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">, </span></span></span><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">function</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx"> (evt) {</span></span></span></p>
<p style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small"><span lang="zxx">$(</span></span></span><span style="color: #800000"><span style="font-size: small"><span lang="zxx">&#8220;body&#8221;</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">).css(</span></span></span><span style="color: #800000"><span style="font-size: small"><span lang="zxx">&#8220;cursor&#8221;</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">, </span></span></span><span style="color: #800000"><span style="font-size: small"><span lang="zxx">&#8220;default&#8221;</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">);</span></span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">});</span></span></p>
<p style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small"><span lang="zxx">cpBottom.on(</span></span></span><span style="color: #800000"><span style="font-size: small"><span lang="zxx">&#8220;mousedown&#8221;</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">, </span></span></span><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">function</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx"> () {</span></span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">_cpAction = CP_ACTION.CP_BOTTOM;</span></span></p>
<p style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small"><span lang="zxx">_group.setDraggable(</span></span></span><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">false</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">);</span></span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">});</span></span></p>
<p style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small"><span lang="zxx">cpBottom.on(</span></span></span><span style="color: #800000"><span style="font-size: small"><span lang="zxx">&#8220;mouseup dragnend&#8221;</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">, </span></span></span><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">function</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx"> () {</span></span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">_cpAction = CP_ACTION.NONE;</span></span></p>
<p style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small"><span lang="zxx">_group.setDraggable(</span></span></span><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">true</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">);</span></span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">});</span></span></p>
<p style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small"><span lang="zxx">cpBottom.on(</span></span></span><span style="color: #800000"><span style="font-size: small"><span lang="zxx">&#8220;dragmove&#8221;</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">, </span></span></span><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">function</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx"> (evt) {</span></span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">handleResizeRotate(cpBottom);</span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">});</span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">_group.add(cpBottom);</span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">}</span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #008000"><span style="font-size: small">// resizing top-left control point</span></span></p>
<p style="margin-bottom: 0in"><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">if</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx"> (refresh) {</span></span></span></p>
<p style="margin-bottom: 0in"><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">var</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx"> cpTopLeft = _group.</span></span></span><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">get</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">(</span></span></span><span style="color: #800000"><span style="font-size: small"><span lang="zxx">&#8220;.cpTopLeft&#8221;</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">)[0];</span></span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">cpTopLeft.setX(x);</span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">cpTopLeft.setY(y);</span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">}</span></span></p>
<p style="margin-bottom: 0in"><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">else</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx"> {</span></span></span></p>
<p style="margin-bottom: 0in"><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">var</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx"> cpTopLeft = </span></span></span><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">new</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx"> Kinetic.Circle({</span></span></span></p>
<p style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small"><span lang="zxx">id: </span></span></span><span style="color: #800000"><span style="font-size: small"><span lang="zxx">&#8220;marquee&#8221;</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">,</span></span></span></p>
<p style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small"><span lang="zxx">name: </span></span></span><span style="color: #800000"><span style="font-size: small"><span lang="zxx">&#8220;cpTopLeft&#8221;</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">,</span></span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">x: x,</span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">y: y,</span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">radius: stroke * RESIZE_CIRCLE_WIDTH_FACTOR,</span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">stroke: RESIZE_CIRCLE_FILL_COLOR,</span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">fill: RESIZE_CIRCLE_FILL_COLOR,</span></span></p>
<p style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small"><span lang="zxx">draggable: </span></span></span><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">true</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">,</span></span></span></p>
<p style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small"><span lang="zxx">dragOnTop: </span></span></span><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">false</span></span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">});</span></span></p>
<p style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small"><span lang="zxx">cpTopLeft.on(</span></span></span><span style="color: #800000"><span style="font-size: small"><span lang="zxx">&#8220;mouseenter&#8221;</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">, </span></span></span><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">function</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx"> (evt) {</span></span></span></p>
<p style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small"><span lang="zxx">$(</span></span></span><span style="color: #800000"><span style="font-size: small"><span lang="zxx">&#8220;body&#8221;</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">).css(</span></span></span><span style="color: #800000"><span style="font-size: small"><span lang="zxx">&#8220;cursor&#8221;</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">, </span></span></span><span style="color: #800000"><span style="font-size: small"><span lang="zxx">&#8220;se-resize&#8221;</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">);</span></span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">});</span></span></p>
<p style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small"><span lang="zxx">cpTopLeft.on(</span></span></span><span style="color: #800000"><span style="font-size: small"><span lang="zxx">&#8220;mouseleave&#8221;</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">, </span></span></span><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">function</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx"> (evt) {</span></span></span></p>
<p style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small"><span lang="zxx">$(</span></span></span><span style="color: #800000"><span style="font-size: small"><span lang="zxx">&#8220;body&#8221;</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">).css(</span></span></span><span style="color: #800000"><span style="font-size: small"><span lang="zxx">&#8220;cursor&#8221;</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">, </span></span></span><span style="color: #800000"><span style="font-size: small"><span lang="zxx">&#8220;default&#8221;</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">);</span></span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">});</span></span></p>
<p style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small"><span lang="zxx">cpTopLeft.on(</span></span></span><span style="color: #800000"><span style="font-size: small"><span lang="zxx">&#8220;mousedown&#8221;</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">, </span></span></span><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">function</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx"> () {</span></span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">_cpAction = CP_ACTION.CP_TOP_LEFT;</span></span></p>
<p style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small"><span lang="zxx">_group.setDraggable(</span></span></span><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">false</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">);</span></span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">});</span></span></p>
<p style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small"><span lang="zxx">cpTopLeft.on(</span></span></span><span style="color: #800000"><span style="font-size: small"><span lang="zxx">&#8220;mouseup dragnend&#8221;</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">, </span></span></span><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">function</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx"> () {</span></span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">_cpAction = CP_ACTION.NONE;</span></span></p>
<p style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small"><span lang="zxx">_group.setDraggable(</span></span></span><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">true</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">);</span></span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">});</span></span></p>
<p style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small"><span lang="zxx">cpTopLeft.on(</span></span></span><span style="color: #800000"><span style="font-size: small"><span lang="zxx">&#8220;dragmove&#8221;</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">, </span></span></span><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">function</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx"> (evt) {</span></span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">handleResizeRotate(cpTopLeft);</span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">});</span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">_group.add(cpTopLeft);</span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">}</span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #008000"><span style="font-size: small">// resizing top-right control point</span></span></p>
<p style="margin-bottom: 0in"><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">if</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx"> (refresh) {</span></span></span></p>
<p style="margin-bottom: 0in"><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">var</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx"> cpTopRight = _group.</span></span></span><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">get</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">(</span></span></span><span style="color: #800000"><span style="font-size: small"><span lang="zxx">&#8220;.cpTopRight&#8221;</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">)[0];</span></span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">cpTopRight.setX(x + width);</span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">cpTopRight.setY(y);</span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">}</span></span></p>
<p style="margin-bottom: 0in"><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">else</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx"> {</span></span></span></p>
<p style="margin-bottom: 0in"><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">var</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx"> cpTopRight = </span></span></span><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">new</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx"> Kinetic.Circle({</span></span></span></p>
<p style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small"><span lang="zxx">id: </span></span></span><span style="color: #800000"><span style="font-size: small"><span lang="zxx">&#8220;marquee&#8221;</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">,</span></span></span></p>
<p style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small"><span lang="zxx">name: </span></span></span><span style="color: #800000"><span style="font-size: small"><span lang="zxx">&#8220;cpTopRight&#8221;</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">,</span></span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">x: x + width,</span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">y: y,</span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">radius: stroke * RESIZE_CIRCLE_WIDTH_FACTOR,</span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">stroke: RESIZE_CIRCLE_FILL_COLOR,</span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">fill: RESIZE_CIRCLE_FILL_COLOR,</span></span></p>
<p style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small"><span lang="zxx">draggable: </span></span></span><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">true</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">,</span></span></span></p>
<p style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small"><span lang="zxx">dragOnTop: </span></span></span><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">false</span></span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">});</span></span></p>
<p style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small"><span lang="zxx">cpTopRight.on(</span></span></span><span style="color: #800000"><span style="font-size: small"><span lang="zxx">&#8220;mouseenter&#8221;</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">, </span></span></span><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">function</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx"> (evt) {</span></span></span></p>
<p style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small"><span lang="zxx">$(</span></span></span><span style="color: #800000"><span style="font-size: small"><span lang="zxx">&#8220;body&#8221;</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">).css(</span></span></span><span style="color: #800000"><span style="font-size: small"><span lang="zxx">&#8220;cursor&#8221;</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">, </span></span></span><span style="color: #800000"><span style="font-size: small"><span lang="zxx">&#8220;ne-resize&#8221;</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">);</span></span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">});</span></span></p>
<p style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small"><span lang="zxx">cpTopRight.on(</span></span></span><span style="color: #800000"><span style="font-size: small"><span lang="zxx">&#8220;mouseleave&#8221;</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">, </span></span></span><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">function</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx"> (evt) {</span></span></span></p>
<p style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small"><span lang="zxx">$(</span></span></span><span style="color: #800000"><span style="font-size: small"><span lang="zxx">&#8220;body&#8221;</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">).css(</span></span></span><span style="color: #800000"><span style="font-size: small"><span lang="zxx">&#8220;cursor&#8221;</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">, </span></span></span><span style="color: #800000"><span style="font-size: small"><span lang="zxx">&#8220;default&#8221;</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">);</span></span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">});</span></span></p>
<p style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small"><span lang="zxx">cpTopRight.on(</span></span></span><span style="color: #800000"><span style="font-size: small"><span lang="zxx">&#8220;mousedown&#8221;</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">, </span></span></span><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">function</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx"> () {</span></span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">_cpAction = CP_ACTION.CP_TOP_RIGHT;</span></span></p>
<p style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small"><span lang="zxx">_group.setDraggable(</span></span></span><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">false</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">);</span></span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">});</span></span></p>
<p style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small"><span lang="zxx">cpTopRight.on(</span></span></span><span style="color: #800000"><span style="font-size: small"><span lang="zxx">&#8220;mouseup dragnend&#8221;</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">, </span></span></span><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">function</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx"> () {</span></span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">_cpAction = CP_ACTION.NONE;</span></span></p>
<p style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small"><span lang="zxx">_group.setDraggable(</span></span></span><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">true</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">);</span></span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">});</span></span></p>
<p style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small"><span lang="zxx">cpTopRight.on(</span></span></span><span style="color: #800000"><span style="font-size: small"><span lang="zxx">&#8220;dragmove&#8221;</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">, </span></span></span><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">function</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx"> (evt) {</span></span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">handleResizeRotate(cpTopRight);</span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">});</span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">_group.add(cpTopRight);</span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">}</span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #008000"><span style="font-size: small">// resizing bottom-left control point</span></span></p>
<p style="margin-bottom: 0in"><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">if</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx"> (refresh) {</span></span></span></p>
<p style="margin-bottom: 0in"><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">var</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx"> cpBottomLeft = _group.</span></span></span><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">get</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">(</span></span></span><span style="color: #800000"><span style="font-size: small"><span lang="zxx">&#8220;.cpBottomLeft&#8221;</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">)[0];</span></span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">cpBottomLeft.setX(x);</span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">cpBottomLeft.setY(y + height);</span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">}</span></span></p>
<p style="margin-bottom: 0in"><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">else</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx"> {</span></span></span></p>
<p style="margin-bottom: 0in"><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">var</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx"> cpBottomLeft = </span></span></span><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">new</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx"> Kinetic.Circle({</span></span></span></p>
<p style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small"><span lang="zxx">id: </span></span></span><span style="color: #800000"><span style="font-size: small"><span lang="zxx">&#8220;marquee&#8221;</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">,</span></span></span></p>
<p style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small"><span lang="zxx">name: </span></span></span><span style="color: #800000"><span style="font-size: small"><span lang="zxx">&#8220;cpBottomLeft&#8221;</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">,</span></span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">x: x,</span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">y: y + height,</span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">radius: stroke * RESIZE_CIRCLE_WIDTH_FACTOR,</span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">stroke: RESIZE_CIRCLE_FILL_COLOR,</span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">fill: RESIZE_CIRCLE_FILL_COLOR,</span></span></p>
<p style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small"><span lang="zxx">draggable: </span></span></span><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">true</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">,</span></span></span></p>
<p style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small"><span lang="zxx">dragOnTop: </span></span></span><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">false</span></span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">});</span></span></p>
<p style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small"><span lang="zxx">cpBottomLeft.on(</span></span></span><span style="color: #800000"><span style="font-size: small"><span lang="zxx">&#8220;mouseenter&#8221;</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">, </span></span></span><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">function</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx"> (evt) {</span></span></span></p>
<p style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small"><span lang="zxx">$(</span></span></span><span style="color: #800000"><span style="font-size: small"><span lang="zxx">&#8220;body&#8221;</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">).css(</span></span></span><span style="color: #800000"><span style="font-size: small"><span lang="zxx">&#8220;cursor&#8221;</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">, </span></span></span><span style="color: #800000"><span style="font-size: small"><span lang="zxx">&#8220;sw-resize&#8221;</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">);</span></span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">});</span></span></p>
<p style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small"><span lang="zxx">cpBottomLeft.on(</span></span></span><span style="color: #800000"><span style="font-size: small"><span lang="zxx">&#8220;mouseleave&#8221;</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">, </span></span></span><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">function</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx"> (evt) {</span></span></span></p>
<p style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small"><span lang="zxx">$(</span></span></span><span style="color: #800000"><span style="font-size: small"><span lang="zxx">&#8220;body&#8221;</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">).css(</span></span></span><span style="color: #800000"><span style="font-size: small"><span lang="zxx">&#8220;cursor&#8221;</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">, </span></span></span><span style="color: #800000"><span style="font-size: small"><span lang="zxx">&#8220;default&#8221;</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">);</span></span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">});</span></span></p>
<p style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small"><span lang="zxx">cpBottomLeft.on(</span></span></span><span style="color: #800000"><span style="font-size: small"><span lang="zxx">&#8220;mousedown&#8221;</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">, </span></span></span><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">function</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx"> () {</span></span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">_cpAction = CP_ACTION.CP_BOTTOM_LEFT;</span></span></p>
<p style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small"><span lang="zxx">_group.setDraggable(</span></span></span><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">false</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">);</span></span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">});</span></span></p>
<p style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small"><span lang="zxx">cpBottomLeft.on(</span></span></span><span style="color: #800000"><span style="font-size: small"><span lang="zxx">&#8220;mouseup dragnend&#8221;</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">, </span></span></span><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">function</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx"> () {</span></span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">_cpAction = CP_ACTION.NONE;</span></span></p>
<p style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small"><span lang="zxx">_group.setDraggable(</span></span></span><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">true</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">);</span></span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">});</span></span></p>
<p style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small"><span lang="zxx">cpBottomLeft.on(</span></span></span><span style="color: #800000"><span style="font-size: small"><span lang="zxx">&#8220;dragmove&#8221;</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">, </span></span></span><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">function</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx"> (evt) {</span></span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">handleResizeRotate(cpBottomLeft);</span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">});</span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">_group.add(cpBottomLeft);</span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">}</span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #008000"><span style="font-size: small">// resizing bottom-right control point</span></span></p>
<p style="margin-bottom: 0in"><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">if</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx"> (refresh) {</span></span></span></p>
<p style="margin-bottom: 0in"><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">var</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx"> cpBottomRight = _group.</span></span></span><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">get</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">(</span></span></span><span style="color: #800000"><span style="font-size: small"><span lang="zxx">&#8220;.cpBottomRight&#8221;</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">)[0];</span></span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">cpBottomRight.setX(x + width);</span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">cpBottomRight.setY(y + height);</span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">}</span></span></p>
<p style="margin-bottom: 0in"><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">else</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx"> {</span></span></span></p>
<p style="margin-bottom: 0in"><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">var</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx"> cpBottomRight = </span></span></span><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">new</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx"> Kinetic.Circle({</span></span></span></p>
<p style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small"><span lang="zxx">id: </span></span></span><span style="color: #800000"><span style="font-size: small"><span lang="zxx">&#8220;marquee&#8221;</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">,</span></span></span></p>
<p style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small"><span lang="zxx">name: </span></span></span><span style="color: #800000"><span style="font-size: small"><span lang="zxx">&#8220;cpBottomRight&#8221;</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">,</span></span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">x: x + width,</span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">y: y + height,</span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">radius: stroke * RESIZE_CIRCLE_WIDTH_FACTOR,</span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">stroke: RESIZE_CIRCLE_FILL_COLOR,</span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">fill: RESIZE_CIRCLE_FILL_COLOR,</span></span></p>
<p style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small"><span lang="zxx">draggable: </span></span></span><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">true</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">,</span></span></span></p>
<p style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small"><span lang="zxx">dragOnTop: </span></span></span><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">false</span></span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">});</span></span></p>
<p style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small"><span lang="zxx">cpBottomRight.on(</span></span></span><span style="color: #800000"><span style="font-size: small"><span lang="zxx">&#8220;mouseenter&#8221;</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">, </span></span></span><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">function</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx"> (evt) {</span></span></span></p>
<p style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small"><span lang="zxx">$(</span></span></span><span style="color: #800000"><span style="font-size: small"><span lang="zxx">&#8220;body&#8221;</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">).css(</span></span></span><span style="color: #800000"><span style="font-size: small"><span lang="zxx">&#8220;cursor&#8221;</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">, </span></span></span><span style="color: #800000"><span style="font-size: small"><span lang="zxx">&#8220;se-resize&#8221;</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">);</span></span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">});</span></span></p>
<p style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small"><span lang="zxx">cpBottomRight.on(</span></span></span><span style="color: #800000"><span style="font-size: small"><span lang="zxx">&#8220;mouseleave&#8221;</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">, </span></span></span><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">function</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx"> (evt) {</span></span></span></p>
<p style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small"><span lang="zxx">$(</span></span></span><span style="color: #800000"><span style="font-size: small"><span lang="zxx">&#8220;body&#8221;</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">).css(</span></span></span><span style="color: #800000"><span style="font-size: small"><span lang="zxx">&#8220;cursor&#8221;</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">, </span></span></span><span style="color: #800000"><span style="font-size: small"><span lang="zxx">&#8220;default&#8221;</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">);</span></span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">});</span></span></p>
<p style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small"><span lang="zxx">cpBottomRight.on(</span></span></span><span style="color: #800000"><span style="font-size: small"><span lang="zxx">&#8220;mousedown&#8221;</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">, </span></span></span><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">function</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx"> () {</span></span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">_cpAction = CP_ACTION.CP_BOTTOM_RIGHT;</span></span></p>
<p style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small"><span lang="zxx">_group.setDraggable(</span></span></span><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">false</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">);</span></span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">});</span></span></p>
<p style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small"><span lang="zxx">cpBottomRight.on(</span></span></span><span style="color: #800000"><span style="font-size: small"><span lang="zxx">&#8220;mouseup dragnend&#8221;</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">, </span></span></span><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">function</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx"> () {</span></span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">_cpAction = CP_ACTION.NONE;</span></span></p>
<p style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small"><span lang="zxx">_group.setDraggable(</span></span></span><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">true</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">);</span></span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">});</span></span></p>
<p style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small"><span lang="zxx">cpBottomRight.on(</span></span></span><span style="color: #800000"><span style="font-size: small"><span lang="zxx">&#8220;dragmove&#8221;</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx">, </span></span></span><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">function</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx"> (evt) {</span></span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">handleResizeRotate(cpBottomRight);</span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">});</span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">_group.add(cpBottomRight);</span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">}</span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">}</span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">_shape = shape;</span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">_layer = shape.getLayer();</span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">_stage = shape.getStage();</span></span></p>
<p lang="zxx" style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small">init();</span></span></p>
<p style="margin-bottom: 0in"><span style="color: #0000ff"><span style="font-size: small"><span lang="zxx">return</span></span></span><span style="color: #000000"><span style="font-size: small"><span lang="zxx"> exports;</span></span></span></p>
<p style="margin-bottom: 0in"><span style="color: #000000"><span style="font-size: small"><span lang="zxx">};</span></span></span></p>
<p>The post <a href="https://jharaphula.com/how-to-apply-marquee-on-kineticjs-shapes/">How to Apply Marquee on KineticJS Shapes?</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://jharaphula.com/how-to-apply-marquee-on-kineticjs-shapes/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			<media:content url="https://jharaphula.com/wp-content/uploads/2016/05/html-css-table.jpg" medium="image" />
	</item>
		<item>
		<title>How to Draw Line using Mouse in KineticJS?</title>
		<link>https://jharaphula.com/how-to-draw-line-using-mouse-in-kineticjs/</link>
					<comments>https://jharaphula.com/how-to-draw-line-using-mouse-in-kineticjs/#respond</comments>
		
		<dc:creator><![CDATA[Nibedita Panda]]></dc:creator>
		<pubDate>Fri, 13 May 2016 13:17:27 +0000</pubDate>
				<category><![CDATA[KineticJS Examples]]></category>
		<category><![CDATA[Draw line using Mouse]]></category>
		<category><![CDATA[KineticJS]]></category>
		<category><![CDATA[using Mouse in KineticJS]]></category>
		<guid isPermaLink="false">http://box.jharaphula.com/?p=562</guid>

					<description><![CDATA[<img width="300" height="206" src="https://jharaphula.com/wp-content/uploads/2016/05/microsoft-wireless-mobile-mouse-300x206.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="How to Draw Line using Mouse in KineticJS?" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/microsoft-wireless-mobile-mouse-300x206.jpg 300w, https://jharaphula.com/wp-content/uploads/2016/05/microsoft-wireless-mobile-mouse.jpg 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>To operate in mouse is more user friendly then keyboard. KineticJS is very helpful to create flowchart applications. While designing a flowchart application we need...</p>
<p>The post <a href="https://jharaphula.com/how-to-draw-line-using-mouse-in-kineticjs/">How to Draw Line using Mouse in KineticJS?</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></description>
										<content:encoded><![CDATA[<img width="300" height="206" src="https://jharaphula.com/wp-content/uploads/2016/05/microsoft-wireless-mobile-mouse-300x206.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="How to Draw Line using Mouse in KineticJS?" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/microsoft-wireless-mobile-mouse-300x206.jpg 300w, https://jharaphula.com/wp-content/uploads/2016/05/microsoft-wireless-mobile-mouse.jpg 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>To operate in mouse is more user friendly then keyboard. KineticJS is very helpful to create flowchart applications. While designing a flowchart application we need to draw line by dragging mouse pointer. In the below sample code I declared a stage where there are two layers. One is temporary &amp; other one is real-time. Div with the id container is the place for Canvas. To draw line with mouse pointer here I added three mouse events. Mousedown, Mousemove &amp; Mouseup. Using <strong>getMousePosition()</strong> function I am retrieving the x &amp; y coordinate of the Canvas.</p>
<p>To run the below example copy this codes to a Notepad file. Save it as a html file. Run this. The library file I referred here is a CDN link. To execute the html file you created above make sure you are with <a href="https://jharaphula.com/when-internet-invented-internet-history/" rel="noopener noreferrer" target="_blank">Internet</a> Connectivity.</p>
<h3>Demo App to Draw line using Mouse</h3>
<pre class="brush: xml; title: ; notranslate">&lt;!DOCTYPE html&gt;
&lt;html&gt;
&lt;head&gt;
&lt;title&gt;How to draw line using mouse in KineticJS?&lt;/title&gt;
&lt;script src=&quot;http://d3lp1msu2r81bx.cloudfront.net/kjs/js/lib/kinetic-v5.0.2.min.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;
&lt;script src=&quot;http://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js&quot;&gt;&lt;/script&gt;
&lt;style type=&quot;text/css&quot;&gt;
.kineticjs-content { background-color: lightblue; }
&lt;/style&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;div id=&quot;container&quot;&gt;&lt;/div&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
/* Declaration of Stage */
var stage = new Kinetic.Stage({
container: 'container',
width: 640,
height: 280,
draggable: false
});
/* Declartion of Layer */
var layer = new Kinetic.Layer({
name: 'layer'
});
var tmpLayer;
beginPoint = undefined;
mousedown = function(evt) {
beginPoint = getMousePosition();
begin = true;
stage.add(tmpLayer);
};
mousemove = function(evt) {
if (!begin) {
return;
}
var tempPoint = getMousePosition();
if (tempPoint !== undefined &amp;&amp; beginPoint !== undefined) {
var tmpLine = new Kinetic.Line({
points : [beginPoint.x, beginPoint.y, tempPoint.x,
tempPoint.y ],
stroke : '#C00000',
strokeWidth : 5
});
tmpLayer.removeChildren();
tmpLayer.add(tmpLine);
tmpLayer.draw();
}
};
mouseup = function(evt) {
if (begin) {
var tempPoint = getMousePosition();
if (tempPoint !== undefined &amp;&amp; beginPoint !== undefined) {
var tmpLine = new Kinetic.Line({
points : [beginPoint.x, beginPoint.y, tempPoint.x,
tempPoint.y ],
stroke : '#C00000',
strokeWidth : 5
});
layer.add(tmpLine);
layer.draw();
}
begin = false;
}
};
/*Function to get Mouse Position*/
var getMousePosition = function() {
var pointerpos = stage.getPointerPosition();
if (pointerpos === undefined)
return undefined;
var pos = stage.getPosition();
var offset = stage.getOffset();
var scale = stage.getScale();
return {
x : ((pointerpos.x / scale.x) - (pos.x / scale.x) + offset.x),
y : ((pointerpos.y / scale.y) - (pos.y / scale.y) + offset.y)
};
};
$(document).ready(function(){
/* Creating temporary layer */
tmpLayer = new Kinetic.Layer({
name : 'tmpLayer'
});
stage.add(layer);
/* Adding Events to Canvas */
$('#container .kineticjs-content').on('mousedown', mousedown);
$('#container .kineticjs-content').on('mousemove', mousemove);
$('#container .kineticjs-content').on('mouseup', mouseup);
});
&lt;/script&gt;
&lt;/body&gt;
&lt;/html&gt;</pre>
<p>The post <a href="https://jharaphula.com/how-to-draw-line-using-mouse-in-kineticjs/">How to Draw Line using Mouse in KineticJS?</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://jharaphula.com/how-to-draw-line-using-mouse-in-kineticjs/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			<media:content url="https://jharaphula.com/wp-content/uploads/2016/05/microsoft-wireless-mobile-mouse.jpg" medium="image" />
	</item>
		<item>
		<title>Advanced Free JavaScript Chart and Graph Library</title>
		<link>https://jharaphula.com/free-javascript-chart-graph-library/</link>
					<comments>https://jharaphula.com/free-javascript-chart-graph-library/#respond</comments>
		
		<dc:creator><![CDATA[Nibedita Panda]]></dc:creator>
		<pubDate>Fri, 13 May 2016 13:04:19 +0000</pubDate>
				<category><![CDATA[JS Functions & Examples]]></category>
		<category><![CDATA[Free JavaScript Chart and Graph]]></category>
		<category><![CDATA[Graph Library]]></category>
		<category><![CDATA[JavaScript chart library]]></category>
		<guid isPermaLink="false">http://box.jharaphula.com/?p=557</guid>

					<description><![CDATA[<img width="300" height="193" src="https://jharaphula.com/wp-content/uploads/2016/05/bar-chart-300x193.png" class="webfeedsFeaturedVisual wp-post-image" alt="Advanced Free JavaScript Chart and Graph Library" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/bar-chart-300x193.png 300w, https://jharaphula.com/wp-content/uploads/2016/05/bar-chart-294x190.png 294w, https://jharaphula.com/wp-content/uploads/2016/05/bar-chart.png 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>As we all know JavaScript improves the performance of a web application by reducing client server communication. What ever can possible to do at client...</p>
<p>The post <a href="https://jharaphula.com/free-javascript-chart-graph-library/">Advanced Free JavaScript Chart and Graph Library</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></description>
										<content:encoded><![CDATA[<img width="300" height="193" src="https://jharaphula.com/wp-content/uploads/2016/05/bar-chart-300x193.png" class="webfeedsFeaturedVisual wp-post-image" alt="Advanced Free JavaScript Chart and Graph Library" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/bar-chart-300x193.png 300w, https://jharaphula.com/wp-content/uploads/2016/05/bar-chart-294x190.png 294w, https://jharaphula.com/wp-content/uploads/2016/05/bar-chart.png 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>As we all know <strong>JavaScript improves the performance of a web application</strong> by reducing client server communication. What ever can possible to do at client end JavaScript is enough smart to take care of those tasks. Looking into this <strong>to present data visuals in our app we prefer to use client side chart &amp; map libraries</strong>. There are many web development companies provides various JavaScript Chart and Graph Library. While choosing a chart library for your web products you have to ask few questions to you.</p>
<ul>
<li>Is the component is programmer friendly?</li>
<li>Which kind of license the component is using?</li>
<li>Is this a free or paid library?</li>
<li>What is the feature of the component?</li>
</ul>
<p>In this session let us share few of the top JavaScript Chart and Graph Library. Using these libraries you can create any kind of charts for your application.</p>
<h3>Highcharts</h3>
<p>Highcharts is a pure JavaScript chart library. <strong>Using an Ajax call you can fetch data from the server</strong>. By passing these data to specific methods of Highcharts you can make your data live. Highcharts is rich with interactive design. <strong>You can create real-time charts using Highcharts</strong>. Refer to many programmers view highcharts is easy to use &amp; debug. It is free for non-commercial use. <strong>Highcharts supports all the modern browsers &amp; devices</strong>. Using highcharts you can draw bar charts, pie charts, line charts &amp; polar charts like many more. Including charts highcharts provides to <strong>more libraries Highstock &amp; Highmaps</strong>. To know more about Highcharts visit them at <a href="http://www.highcharts.com" target="_blank" rel="nofollow noopener noreferrer">www.highcharts.com</a></p>
<h3>ChartJS</h3>
<p>ChartJS is one more JavaScript library to design several charts in client end. You can download their chart.js file and using script tag you can embed this to your application. <strong>Compare to highcharts it is more light weight</strong>. Using ChartJS you can create <strong>Line charts, Bar charts, Radar charts, Polar area charts, Pie &amp; Doughnut charts</strong>. It supports all latest browsers. You can found there help manual at <a href="http://www.chartjs.org/docs/" target="_blank" rel="nofollow noopener noreferrer">www.chartjs.org/docs/</a>. To download Chart.js library file visit at <a href="http://www.chartjs.org" target="_blank" rel="nofollow noopener noreferrer">www.chartjs.org</a>.</p>
<h3>AmCharts</h3>
<p>AmCharts is a high end JavaScript chart library. It supports any data to visual. AmCharts is very effective to use in touch screen &amp; mobile devices. <strong>Using AmCharts you can create any kind of graphs</strong>. They have 2 more products in their showcase. JavaScript stock chart &amp; interactive JavaScript maps. <strong>This component is free for commercial uses</strong>. With AmCharts you have facilities like super powerful serial charts, scrollable, zoom-able, <strong>Supports JSON objects</strong>, Availability of more themes, Word press plugin &amp; Motion charts. To know more in details take a look at them <a href="http://www.amcharts.com" target="_blank" rel="nofollow noopener noreferrer">www.amcharts.com</a>.</p>
<h3>FusionCharts</h3>
<p>FusionCharts is a very light weight JavaScript chart library. Using FusionCharts you can <strong>create more then 90 types of charts &amp; 900 maps</strong>. In this component you can get the facilities like Linked Charts for easy drill down, <strong>Exporting to PDF, Interactive zoom &amp; Scrolling</strong>, Intelligent label management, Real-time chats &amp; Gauges, Interactive legend for charts, Informative <a href="https://jharaphula.com/pure-css-tooltip/" rel="noopener noreferrer" target="_blank">Tooltips</a>, Formatted numbers, 3D effects on charts &amp; client-side data update. This is an old company stated at January 2002. To know more about then &amp; their products visit them at <a href="http://www.fusioncharts.com" target="_blank" rel="nofollow noopener noreferrer">www.fusioncharts.com</a></p>
<h3>ElyCharts</h3>
<p>ElyCharts is easy to use &amp; you can customize this depending upon your requirements. They provides better graphic in the shape of professional look n feel. ElyCharts is under MIT license. You can use this library free with your commercial products. The features they provides are like <strong>animation, simple configuration settings, supports multiple chart types &amp; comparability to all modern browsers</strong>. To use their chart component download the library file here <a href="http://www.elycharts.com" target="_blank" rel="noopener noreferrer nofollow">www.elycharts.com</a></p>
<p>The post <a href="https://jharaphula.com/free-javascript-chart-graph-library/">Advanced Free JavaScript Chart and Graph Library</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://jharaphula.com/free-javascript-chart-graph-library/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			<media:content url="https://jharaphula.com/wp-content/uploads/2016/05/bar-chart.png" medium="image" />
	</item>
		<item>
		<title>How to Draw Graphical Shapes using KineticJS?</title>
		<link>https://jharaphula.com/how-to-draw-shapes-using-kineticjs/</link>
					<comments>https://jharaphula.com/how-to-draw-shapes-using-kineticjs/#respond</comments>
		
		<dc:creator><![CDATA[Nibedita Panda]]></dc:creator>
		<pubDate>Fri, 13 May 2016 13:02:53 +0000</pubDate>
				<category><![CDATA[KineticJS Examples]]></category>
		<category><![CDATA[JavaScript Framework]]></category>
		<category><![CDATA[KineticJS]]></category>
		<category><![CDATA[Shapes like Rectangle]]></category>
		<guid isPermaLink="false">http://box.jharaphula.com/?p=555</guid>

					<description><![CDATA[<img width="300" height="190" src="https://jharaphula.com/wp-content/uploads/2016/05/graphical-shapes-300x190.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="How to Draw Graphical Shapes using KineticJS?" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/graphical-shapes-300x190.jpg 300w, https://jharaphula.com/wp-content/uploads/2016/05/graphical-shapes.jpg 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>KineticJS is a JavaScript library. It is light weight &#38; provides better graphics. Let&#8217;s assume you want to develop an Interactive design document app. Here...</p>
<p>The post <a href="https://jharaphula.com/how-to-draw-shapes-using-kineticjs/">How to Draw Graphical Shapes using KineticJS?</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></description>
										<content:encoded><![CDATA[<img width="300" height="190" src="https://jharaphula.com/wp-content/uploads/2016/05/graphical-shapes-300x190.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="How to Draw Graphical Shapes using KineticJS?" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/graphical-shapes-300x190.jpg 300w, https://jharaphula.com/wp-content/uploads/2016/05/graphical-shapes.jpg 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>KineticJS is a JavaScript library. It is light weight &amp; provides better graphics. Let&#8217;s assume you want to develop an Interactive design document app. Here what you want is you need 3 panels left, right &amp; center. Left panel is the toolbar. From where you can drag any shape to the center area. Where center area is a <a href="https://jharaphula.com/drawimage-on-html5-canvas/" target="_blank" rel="noopener noreferrer">HTML5 Canvas</a>. Here depending upon the requirements you can resize the shape, you can drag it to any corner of your central area, you can layer the shape or you can rotate the shape. While you selected a shape on canvas in right pan you can saw the property for that particular shape. If you will update the properties value it will reflect on the shape. In this case KineticJS is programmer friendly. Using kineticJS we can create shapes like Rectangle, Circle, Polygon, line &amp; Ellipse.</p>
<h3>Example to Draw shapes using KineticJS</h3>
<p>To draw a shape using KineticJS in below program first I created a stage. On stage creating layer. Using configuration setting I am creating various shapes &amp; adding this to layer. Finally adding layer to stage. To draw using stage.draw  method.</p>
<pre class="brush: xml; title: ; notranslate">&lt;!DOCTYPE html&gt;
&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;
&lt;head&gt;
&lt;title&gt;Example to Draw Shapes using KineticJS&lt;/title&gt;
&lt;script type=&quot;text/javascript&quot; src=&quot;http://d3lp1msu2r81bx.cloudfront.net/kjs/js/lib/kinetic-v4.4.3.min.js&quot;&gt;&lt;/script&gt;
&lt;/head&gt;
&lt;body&gt;

&lt;div id=&quot;canvasarea&quot;&gt;&lt;/div&gt;

&lt;script type=&quot;text/jscript&quot;&gt;
// Prepeare your stage first before draw a shape.
var stage = new Kinetic.Stage({
container: 'canvasarea',
width: 600,
height: 500,
draggable: false
});

// After stage you need a layer to draw shapes on this.
var layer = new Kinetic.Layer();

// How to draw a rectanlge using KineticJS?
var configRectangle = new Kinetic.Rect({
x: 339,
y: 60,
width: 200,
height: 80,
fill: 'lightblue',
stroke: 'black',
strokeWidth: 5,
draggable: true
});

// Add rectangle configuration settings to layer
layer.add(configRectangle);

// How to draw a circle using KineticJS?
var configCircle = new Kinetic.Circle({
x: 150,
y: 280,
radius: 70,
fill: 'lightblue',
stroke: 'black',
strokeWidth: 5,
draggable: true
});

// Add circle configuration settings to layer
layer.add(configCircle);

// How to draw a polygon using KineticJS?
var configPolygon = new Kinetic.Polygon({
points: [400, 392, 430, 320, 500, 280, 470, 209, 339, 239, 400, 392],
fill: 'lightblue',
stroke: 'black',
strokeWidth: 5,
draggable: true
});

// Add polygon configuration settings to layer
layer.add(configPolygon);

// How to draw a line using KineticJS?
var configLine = new Kinetic.Line({
points: [70, 450, 250, 450],
stroke: 'lightblue',
strokeWidth: 7,
lineCap: 'round',
lineJoin: 'round',
draggable: true
});

// Add line configuration settings to layer
layer.add(configLine);

// How to draw a ellipse using KineticJS?
var configEllipse = new Kinetic.Ellipse({
x: 150,
y: 100,
radius: {
x: 100,
y: 50
},
fill: 'lightblue',
stroke: 'black',
strokeWidth: 5,
draggable: true
});

// Add ellipse configuration settings to layer
layer.add(configEllipse);

// To present Add the layer to the stage
stage.add(layer);
stage.draw();
&lt;/script&gt;
&lt;/body&gt;
&lt;/html&gt;</pre>
<p>The post <a href="https://jharaphula.com/how-to-draw-shapes-using-kineticjs/">How to Draw Graphical Shapes using KineticJS?</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://jharaphula.com/how-to-draw-shapes-using-kineticjs/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			<media:content url="https://jharaphula.com/wp-content/uploads/2016/05/graphical-shapes.jpg" medium="image" />
	</item>
		<item>
		<title>Angular Custom Directive Tutorial with Example for Beginners</title>
		<link>https://jharaphula.com/angular-custom-directive-tutorial-example/</link>
					<comments>https://jharaphula.com/angular-custom-directive-tutorial-example/#respond</comments>
		
		<dc:creator><![CDATA[Nibedita Panda]]></dc:creator>
		<pubDate>Fri, 13 May 2016 12:26:32 +0000</pubDate>
				<category><![CDATA[AngularJS with Examples]]></category>
		<category><![CDATA[Angular Custom Directive]]></category>
		<category><![CDATA[Attribute directives]]></category>
		<category><![CDATA[TemplateURL]]></category>
		<category><![CDATA[Tutorial with Example]]></category>
		<guid isPermaLink="false">http://box.jharaphula.com/?p=521</guid>

					<description><![CDATA[<img width="300" height="203" src="https://jharaphula.com/wp-content/uploads/2016/05/Directives-in-AngularJS-300x203.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="Angular Custom Directive Tutorial with Example for Beginners" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/Directives-in-AngularJS-300x203.jpg 300w, https://jharaphula.com/wp-content/uploads/2016/05/Directives-in-AngularJS.jpg 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>I can say directives are like a plugin to DOM elements which identified by AngularJS HTML compiler to render. AngularJS comes with many in-built directives...</p>
<p>The post <a href="https://jharaphula.com/angular-custom-directive-tutorial-example/">Angular Custom Directive Tutorial with Example for Beginners</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></description>
										<content:encoded><![CDATA[<img width="300" height="203" src="https://jharaphula.com/wp-content/uploads/2016/05/Directives-in-AngularJS-300x203.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="Angular Custom Directive Tutorial with Example for Beginners" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/Directives-in-AngularJS-300x203.jpg 300w, https://jharaphula.com/wp-content/uploads/2016/05/Directives-in-AngularJS.jpg 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>I can say directives are like a plugin to DOM elements which identified by AngularJS HTML compiler to render. AngularJS comes with many in-built directives to enrich our HTML. For better programmer friendly environment AngularJS provides the facility to write your own Angular Custom Directive. Directive gives freedom to write more structural UI controls. It’s easy to use &amp; effective to maintain. There are <strong>4 types of directive</strong> introduced by AngularJS.</p>
<ul>
<li>Element directives (E)</li>
<li>Attribute directives (A)</li>
<li>CSS class directives (C)</li>
<li>Comment directives (M)</li>
</ul>
<p>Using restrict option in a directive we can prevent it to any type. Name of a directive is case sensitive. Generally we <strong>use camel Case to present a directive name</strong>. Let’s take an example of ngTable. While embedding a directive in HTML typically we do lower case dash-delimited attribute on DOM elements. In case of <strong>ngTable directive while we will use this with HTML we can go for ng-table</strong>.</p>
<p>To make you clear about the full features of a directive let us discuss the available options. To create a directive we need to create a module first. Inside that module using directive keyword we can create our own custom directive. <strong>Directive is nothing but a function with return value</strong>.</p>
<h3>Angular Custom Directive Example</h3>
<pre class="brush: jscript; title: ; notranslate">var myApp = angular.module('myApp',[]);
myApp.directive('myDir', function() {
return {
template: 'Name: Biswabhusan Address: Nandanvan Colony, Wakad.'
};
});</pre>
<h3>Template &amp; TemplateURL</h3>
<p>Template &amp; TemplateURL both are responsible to present HTML in a directive. <strong>Using Template option we can pass pure HTML to a directive when TemplateURL accepts only the physical path of the HTML page</strong>. While designing a large template <strong>TemplateURL helps to divide HTMLs into segments</strong>. This approach to advanced UI designing helpful to maintain &amp; debug templates easily.</p>
<h3>Restrict option</h3>
<p>Using restrict option in a directive we can prevent the way to embed that directive in HTML. If we want to restrict a directive to attributes we have to use restrict: A. Like the same for Elements &amp; CSS Classes we can use E &amp; C. <strong>In case we required multiple restrictions to a directive we can use AEC</strong>.</p>
<h3>Scope inside a Directive</h3>
<p>Scope inside a directive gives freedom to accept out parameters from the shape of attributes. For an example let we plan to create a tab control. What I want is when I will declare my-tab directive in HTML I need to pass length as another attribute which will control the number of tabs. Here value of length is a number. To fetch this number from length attribute using scope we can declare “length”:’=’. In-case we are looking to fetch data in the shape of JSON we need to declare “data”: ‘@’. <strong>Using scope.$watch we can find out the value of an attribute in a directive</strong>.</p>
<h3>Link in a Directive</h3>
<p>Link is a function in a directive. After major parameters like scope &amp; element <strong>you can define additional parameters to a link function</strong>. If we have attributes in scope object we can <a href="https://jharaphula.com/angularjs-watch-link-function-example/" target="_blank" rel="noopener noreferrer">fetch that attribute value using scope.$watch</a>. Element is nothing but the list of DOM elements.</p>
<h3>Transclude option</h3>
<p>Sometimes it is desirable to pass an entire template rather than a string of HTML or an object. Assume a condition where we have to create a dialog box. The dialog box should be able to wrap any arbitrary content. To do this, here we need to use the Transclude option. Transclude option accepts Boolean value.</p>
<h3>Require Option</h3>
<p>Require option is a restriction to nested directives. Let we want to do a tab control with respective panels. Here in-case I need to protect panels with &amp; only with tabs then I can use require: ‘^myTabs’ under myPanel directive. While embedding in HTML we have to use myTab inside myPanel directive only.</p>
<p>For more details about Angular Custom Directive please refer the following links.</p>
<p><a href="https://docs.angularjs.org/guide/directive" target="_blank" rel="nofollow noopener noreferrer">Guide for AngularJS Directive</a><br />
<a href="http://tutorials.jenkov.com/angularjs/custom-directives.html" target="_blank" rel="noopener noreferrer nofollow">AngularJS Custom Directive in Details</a></p>
<p>The post <a href="https://jharaphula.com/angular-custom-directive-tutorial-example/">Angular Custom Directive Tutorial with Example for Beginners</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://jharaphula.com/angular-custom-directive-tutorial-example/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			<media:content url="https://jharaphula.com/wp-content/uploads/2016/05/Directives-in-AngularJS.jpg" medium="image" />
	</item>
		<item>
		<title>How to implement AngularJS Ajax using HTTP Service?</title>
		<link>https://jharaphula.com/angularjs-ajax-http-service/</link>
					<comments>https://jharaphula.com/angularjs-ajax-http-service/#respond</comments>
		
		<dc:creator><![CDATA[Nibedita Panda]]></dc:creator>
		<pubDate>Fri, 13 May 2016 12:23:25 +0000</pubDate>
				<category><![CDATA[AngularJS with Examples]]></category>
		<category><![CDATA[Ajax Operations]]></category>
		<category><![CDATA[Angular HTTP get method]]></category>
		<category><![CDATA[HTTP Service]]></category>
		<guid isPermaLink="false">http://box.jharaphula.com/?p=517</guid>

					<description><![CDATA[<img width="300" height="190" src="https://jharaphula.com/wp-content/uploads/2016/05/blog-angular-js-laptop-300x190.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="How to implement Angularjs Ajax using HTTP Service?" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/blog-angular-js-laptop-300x190.jpg 300w, https://jharaphula.com/wp-content/uploads/2016/05/blog-angular-js-laptop.jpg 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>Depending upon the demand of Ajax many languages provides the facility to operate Ajax in their platform. AngularJS is a high level programming language to...</p>
<p>The post <a href="https://jharaphula.com/angularjs-ajax-http-service/">How to implement AngularJS Ajax using HTTP Service?</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></description>
										<content:encoded><![CDATA[<img width="300" height="190" src="https://jharaphula.com/wp-content/uploads/2016/05/blog-angular-js-laptop-300x190.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="How to implement Angularjs Ajax using HTTP Service?" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/blog-angular-js-laptop-300x190.jpg 300w, https://jharaphula.com/wp-content/uploads/2016/05/blog-angular-js-laptop.jpg 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>Depending upon the demand of Ajax many languages provides the facility to operate Ajax in their platform. AngularJS is a high level programming language to optimize HTML &amp; Javascripts. AngularJS supports Ajax calls using its $http Service. In $http service using get &amp; post methods we do Ajax operations. Get is responsible to fetch data from the server while post posting the data to the server.</p>
<h3>Angular HTTP get method</h3>
<p>AngularJS $http.get() method accepts 2 parameters url &amp; configuration settings. From which server page we are going to get data that page path is the value to url param. The second param config passed to the different $http <a href="https://jharaphula.com/php-string-functions-with-example/" rel="noopener noreferrer" target="_blank">functions</a> controls the HTTP request sent to the server. Config parameter is a pure JavaScript object. It has several properties like method, url, params, headers, timeout, cache, transformRequest &amp; transformResponse.</p>
<pre class="brush: xml; title: ; notranslate">
&lt;script src=&quot;https://ajax.googleapis.com/ajax/libs/angularjs/1.2.5/angular.min.js&quot;&gt;&lt;/script&gt;
&lt;div ng-controller=&quot;MyController&quot;&gt;
&lt;button ng-click=&quot;myData.doClick(item, $event)&quot;&gt;Do an Ajax Call&lt;/button&gt;

Response from Server : {{myData.fromServer}}

&lt;/div&gt;
&lt;script&gt;&lt;br /&gt;
angular.module(&quot;myapp&quot;, [])&lt;br /&gt;
.controller(&quot;MyController&quot;, function($scope, $http) {&lt;br /&gt;
$scope.myData = {};&lt;br /&gt;
$scope.myData.doClick = function(item, event) {&lt;/p&gt;
&lt;p&gt;var response = $http.get(&quot;/AngularJSDemo/json-data.jsp&quot;);&lt;/p&gt;
&lt;p&gt;response.success(function(data, status, headers, config) {&lt;br /&gt;
$scope.myData.fromServer = data.title;&lt;br /&gt;
});&lt;br /&gt;
}&lt;br /&gt;
} );&lt;br /&gt;
&lt;/script&gt;
</pre>
<h3>Angularjs HTTP post method</h3>
<p>AngularJS $http.post() method accepts 3 parameters url, data &amp; configuration settings. To which server page we want to send our data that page path is the value to url param. Data is the value(s) those we want to pass using post method. For an example it can be the first name &amp; last name.</p>
<pre class="brush: jscript; title: ; notranslate">
function sendDataUsingPostMethod($scope) {
$http({
url: 'demo-app.php',
method: &quot;POST&quot;,
data: { 'empName' : Biswabhusan }
})
.then(function(response) {
// On Success
},
function(response) {
// On Failed
}
);
</pre>
<p>The post <a href="https://jharaphula.com/angularjs-ajax-http-service/">How to implement AngularJS Ajax using HTTP Service?</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://jharaphula.com/angularjs-ajax-http-service/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			<media:content url="https://jharaphula.com/wp-content/uploads/2016/05/blog-angular-js-laptop.jpg" medium="image" />
	</item>
		<item>
		<title>HTML5 Table Sorting and Pagination using AngularJS</title>
		<link>https://jharaphula.com/html5-table-sorting-pagination-using-angularjs/</link>
					<comments>https://jharaphula.com/html5-table-sorting-pagination-using-angularjs/#respond</comments>
		
		<dc:creator><![CDATA[Nibedita Panda]]></dc:creator>
		<pubDate>Fri, 13 May 2016 11:53:28 +0000</pubDate>
				<category><![CDATA[AngularJS with Examples]]></category>
		<category><![CDATA[HTML5 Table Sorting]]></category>
		<category><![CDATA[Pagination using AngularJS]]></category>
		<category><![CDATA[Sorting and Pagination]]></category>
		<guid isPermaLink="false">http://box.jharaphula.com/?p=492</guid>

					<description><![CDATA[<img width="300" height="196" src="https://jharaphula.com/wp-content/uploads/2016/05/pagination-n-sorting-in-table-300x196.png" class="webfeedsFeaturedVisual wp-post-image" alt="HTML5 table Sorting &amp; Pagination using AngularJS" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/pagination-n-sorting-in-table-300x196.png 300w, https://jharaphula.com/wp-content/uploads/2016/05/pagination-n-sorting-in-table-182x120.png 182w, https://jharaphula.com/wp-content/uploads/2016/05/pagination-n-sorting-in-table-106x70.png 106w, https://jharaphula.com/wp-content/uploads/2016/05/pagination-n-sorting-in-table.png 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>To display data in a HTML document we do use table. While presenting data in a table to make this more user friendly we need...</p>
<p>The post <a href="https://jharaphula.com/html5-table-sorting-pagination-using-angularjs/">HTML5 Table Sorting and Pagination using AngularJS</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></description>
										<content:encoded><![CDATA[<img width="300" height="196" src="https://jharaphula.com/wp-content/uploads/2016/05/pagination-n-sorting-in-table-300x196.png" class="webfeedsFeaturedVisual wp-post-image" alt="HTML5 table Sorting &amp; Pagination using AngularJS" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/pagination-n-sorting-in-table-300x196.png 300w, https://jharaphula.com/wp-content/uploads/2016/05/pagination-n-sorting-in-table-182x120.png 182w, https://jharaphula.com/wp-content/uploads/2016/05/pagination-n-sorting-in-table-106x70.png 106w, https://jharaphula.com/wp-content/uploads/2016/05/pagination-n-sorting-in-table.png 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>To display data in a HTML document we do use table. While presenting data in a table to make this more user friendly we need some minimum operations like Sorting &amp; Pagination. In this article I am using a HTML5 table to bind data using AngularJS. Including data bind here I implemented sorting &amp; pagination features. Look at the example below.</p>
<p><img loading="lazy" decoding="async" src="https://jharaphula.com/wp-content/uploads/2016/05/html-ng-table.png" alt="html-ng-table" width="725" height="232" class="alignnone size-full wp-image-2809" srcset="https://jharaphula.com/wp-content/uploads/2016/05/html-ng-table.png 725w, https://jharaphula.com/wp-content/uploads/2016/05/html-ng-table-300x96.png 300w" sizes="auto, (max-width: 725px) 100vw, 725px" /></p>
<h3>index.html</h3>
<pre class="brush: xml; title: ; notranslate">&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD HTML 4.01 Transitional//EN&quot; &quot;http://www.w3.org/TR/html4/loose.dtd&quot;&gt;
&lt;html ng-app=&quot;tblModule&quot;&gt;
&lt;head&gt;
&lt;meta charset=&quot;utf-8&quot;&gt;
&lt;title&gt;HTML5 Table Sorting &amp; Pagination using AngularJS&lt;/title&gt;
&lt;script type=&quot;text/javascript&quot; src=&quot;https://ajax.googleapis.com/ajax/libs/angularjs/1.3.0-rc.0/angular.min.js&quot; ng:autobind&gt;&lt;/script&gt;
&lt;link href=&quot;http://netdna.bootstrapcdn.com/twitter-bootstrap/2.1.1/css/bootstrap.no-icons.min.css&quot; rel=&quot;stylesheet&quot;&gt;
&lt;link href=&quot;http://netdna.bootstrapcdn.com/font-awesome/2.0/css/font-awesome.css&quot; rel=&quot;stylesheet&quot;&gt;
&lt;link rel=&quot;stylesheet&quot; href=&quot;bootstrap/css/bootstrap.min.css&quot; type=&quot;text/css&quot;&gt;
&lt;link rel=&quot;stylesheet&quot; href=&quot;bootstrap/css/bootstrap-theme.min.css&quot; type=&quot;text/css&quot;&gt;
&lt;script type=&quot;text/javascript&quot; src=&quot;app.js&quot;&gt;&lt;/script&gt;
&lt;link rel=&quot;stylesheet&quot; href=&quot;app-style.css&quot; type=&quot;text/css&quot;&gt;
&lt;script src=&quot;http://code.jquery.com/jquery-1.11.0.min.js&quot;&gt;,&lt;/script&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
var sortingOrder = 'name';
&lt;/script&gt;
&lt;my-customer tbl-width=&quot;900&quot;&gt;&lt;/my-customer&gt;
&lt;/body&gt;
&lt;/html&gt;</pre>
<h3>my-customer.html</h3>
<pre class="brush: xml; title: ; notranslate">&lt;div class=&quot;input-append&quot;&gt;
&lt;input type=&quot;text&quot; ng-model=&quot;query&quot; ng-change=&quot;search()&quot; class=&quot;input-large search-query&quot; placeholder=&quot;Search&quot;&gt;
&lt;span class=&quot;add-on&quot;&gt;&lt;i class=&quot;icon-search&quot;&gt;&lt;/i&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;table class=&quot;table table-striped table-condensed table-hover&quot;&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th class=&quot;id&quot;&gt;Id&amp;nbsp;&lt;a ng-click=&quot;sort_by('id')&quot;&gt;&lt;i class=&quot;icon-sort&quot;&gt;&lt;/i&gt;&lt;/a&gt;&lt;/th&gt;
&lt;th class=&quot;name&quot;&gt;Name&amp;nbsp;&lt;a ng-click=&quot;sort_by('name')&quot;&gt;&lt;i class=&quot;icon-sort&quot;&gt;&lt;/i&gt;&lt;/a&gt;&lt;/th&gt;
&lt;th class=&quot;designation&quot;&gt;Designation&amp;nbsp;&lt;a ng-click=&quot;sort_by('designation')&quot;&gt;&lt;i class=&quot;icon-sort&quot;&gt;&lt;/i&gt;&lt;/a&gt;&lt;/th&gt;
&lt;th class=&quot;employeeid&quot;&gt;Employee ID&amp;nbsp;&lt;a ng-click=&quot;sort_by('employeeid')&quot;&gt;&lt;i class=&quot;icon-sort&quot;&gt;&lt;/i&gt;&lt;/a&gt;&lt;/th&gt;
&lt;th class=&quot;email&quot;&gt;Email&amp;nbsp;&lt;a ng-click=&quot;sort_by('email')&quot;&gt;&lt;i class=&quot;icon-sort&quot;&gt;&lt;/i&gt;&lt;/a&gt;&lt;/th&gt;
&lt;th class=&quot;location&quot;&gt;Location&amp;nbsp;&lt;a ng-click=&quot;sort_by('location')&quot;&gt;&lt;i class=&quot;icon-sort&quot;&gt;&lt;/i&gt;&lt;/a&gt;&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tfoot&gt;
&lt;td colspan=&quot;6&quot;&gt;
&lt;div class=&quot;pagination pull-right&quot;&gt;
&lt;ul&gt;
&lt;li ng-class=&quot;{disabled: currentPage == 0}&quot;&gt;
&lt;a href ng-click=&quot;prevPage()&quot;&gt;« Prev&lt;/a&gt;
&lt;/li&gt;
&lt;li ng-repeat=&quot;n in range(pagedItems.length)&quot; ng-class=&quot;{active: n == currentPage}&quot; ng-click=&quot;setPage()&quot;&gt;
&lt;a href ng-bind=&quot;n + 1&quot;&gt;1&lt;/a&gt;
&lt;/li&gt;
&lt;li ng-class=&quot;{disabled: currentPage == pagedItems.length - 1}&quot;&gt;
&lt;a href ng-click=&quot;nextPage()&quot;&gt;Next »&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;/td&gt;
&lt;/tfoot&gt;
&lt;tbody&gt;
&lt;tr ng-repeat=&quot;item in pagedItems[currentPage] | orderBy:sortingOrder:reverse&quot;&gt;
&lt;td&gt;{{ item.id }}&lt;/td&gt;
&lt;td&gt;{{ item.name }}&lt;/td&gt;
&lt;td&gt;{{ item.designation }}&lt;/td&gt;
&lt;td&gt;{{ item.employeeid }}&lt;/td&gt;
&lt;td&gt;&lt;a href=&quot;mailto:{{ item.email }}&quot;&gt;{{ item.email }}&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;{{ item.location }}&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;</pre>
<p><strong>app.js</strong></p>
<pre class="brush: jscript; title: ; notranslate">angular.module('tblModule', [])
.directive('myCustomer', function() {
return {
restrict: 'E',
transclude: true,

scope: {
&quot;tblWidth&quot;: '='
},

link: function (scope, element) {
scope.$watch(&quot;tblWidth&quot;, function (value) {
$(&quot;#tbltemp&quot;).css({&quot;width&quot;: value + &quot;px&quot;});
}, false);
},

controller: function($scope, $filter) {
$scope.sortingOrder = sortingOrder;
$scope.reverse = false;
$scope.filteredItems = [];
$scope.groupedItems = [];
$scope.itemsPerPage = 5;
$scope.pagedItems = [];
$scope.currentPage = 0;
$scope.items = [
{&quot;id&quot;:&quot;1&quot;,&quot;name&quot;:&quot;Biswabhusan&quot;,&quot;designation&quot;:&quot;Sr. UI Developer&quot;,&quot;employeeid&quot;:&quot;012801&quot;,&quot;email&quot;:&quot;biswabhusan@gmail.com&quot;,&quot;location&quot;:&quot;INDIA&quot;}, 
{&quot;id&quot;:&quot;2&quot;,&quot;name&quot;:&quot;Rakesh Srivastab&quot;,&quot;designation&quot;:&quot;Software Engineer&quot;,&quot;employeeid&quot;:&quot;013882&quot;,&quot;email&quot;:&quot;rakesh@gmail.com&quot;,&quot;location&quot;:&quot;GERMANY&quot;}, 
{&quot;id&quot;:&quot;3&quot;,&quot;name&quot;:&quot;John Fernandez&quot;,&quot;designation&quot;:&quot;Sr. Team Lead&quot;,&quot;employeeid&quot;:&quot;055620&quot;,&quot;email&quot;:&quot;john@gmail.com&quot;,&quot;location&quot;:&quot;ITALY&quot;}, 
{&quot;id&quot;:&quot;4&quot;,&quot;name&quot;:&quot;Kumar Abhishek&quot;,&quot;designation&quot;:&quot;Project Manager&quot;,&quot;employeeid&quot;:&quot;032451&quot;,&quot;email&quot;:&quot;ku.abhishek@gmail.com&quot;,&quot;location&quot;:&quot;INDIA&quot;}, 
{&quot;id&quot;:&quot;5&quot;,&quot;name&quot;:&quot;Swati Rao&quot;,&quot;designation&quot;:&quot;UI Developer&quot;,&quot;employeeid&quot;:&quot;001235&quot;,&quot;email&quot;:&quot;rao@gmail.com&quot;,&quot;location&quot;:&quot;HONG KONG&quot;}, 
{&quot;id&quot;:&quot;6&quot;,&quot;name&quot;:&quot;Monika Roy&quot;,&quot;designation&quot;:&quot;SEO&quot;,&quot;employeeid&quot;:&quot;076565&quot;,&quot;email&quot;:&quot;monika@gmail.com&quot;,&quot;location&quot;:&quot;INDIA&quot;}, 
{&quot;id&quot;:&quot;7&quot;,&quot;name&quot;:&quot;Monalisha Pradhan&quot;,&quot;designation&quot;:&quot;Sr. Software Engineer&quot;,&quot;employeeid&quot;:&quot;012302&quot;,&quot;email&quot;:&quot;monalisha@gmail.com&quot;,&quot;location&quot;:&quot;US&quot;}
];

var searchMatch = function (haystack, needle) {
if (!needle) {
return true;
}
return haystack.toLowerCase().indexOf(needle.toLowerCase()) !== -1;
};

// initializing the filtered items
$scope.search = function () {
$scope.filteredItems = $filter('filter')($scope.items, function (item) {
for(var attr in item) {
if (searchMatch(item[attr], $scope.query))
return true;
}
return false;
});
// taking care of the sorting order
if ($scope.sortingOrder !== '') {
$scope.filteredItems = $filter('orderBy')($scope.filteredItems, $scope.sortingOrder, $scope.reverse);
}
$scope.currentPage = 0;
// now group by pages
$scope.groupToPages();
};

// calculate page in place
$scope.groupToPages = function () {
$scope.pagedItems = [];

for (var i = 0; i &lt; $scope.filteredItems.length; i++) {
if (i % $scope.itemsPerPage === 0) {
$scope.pagedItems[Math.floor(i / $scope.itemsPerPage)] = [ $scope.filteredItems[i] ];
} else {
$scope.pagedItems[Math.floor(i / $scope.itemsPerPage)].push($scope.filteredItems[i]);
}
}
};

$scope.range = function (start, end) {
var ret = [];
if (!end) {
end = start;
start = 0;
}
for (var i = start; i &lt; end; i++) {
ret.push(i);
}
return ret;
};

$scope.prevPage = function () {
if ($scope.currentPage &gt; 0) {
$scope.currentPage--;
}
};

$scope.nextPage = function () {
if ($scope.currentPage &lt; $scope.pagedItems.length - 1) {
$scope.currentPage++;
}
};

$scope.setPage = function () {
$scope.currentPage = this.n;
};

// functions have been describe process the data for display
$scope.search();

// change sorting order
$scope.sort_by = function(newSortingOrder) {
if ($scope.sortingOrder == newSortingOrder)
$scope.reverse = !$scope.reverse;

$scope.sortingOrder = newSortingOrder;

// icon setup
$('th i').each(function(){
// icon reset
$(this).removeClass().addClass('icon-sort');
});
if ($scope.reverse)
$('th.'+new_sorting_order+' i').removeClass().addClass('icon-chevron-up');
else
$('th.'+new_sorting_order+' i').removeClass().addClass('icon-chevron-down');
};
},
templateUrl: 'my-customer.html'
};
});</pre>
<p><strong>app-style.css</strong></p>
<pre class="brush: css; title: ; notranslate">thead {
background-color: lightblue;
border-bottom: 2px solid black; 
cursor: pointer;    
}
.paradiv {
float: left;
width: 50%;
}
.pagination {
margin: 0px 0px !important;
}
.borderdiv {
padding: 8px;
}
.ralign {
width:100%; 
text-align:right;	
}</pre>
<p>The post <a href="https://jharaphula.com/html5-table-sorting-pagination-using-angularjs/">HTML5 Table Sorting and Pagination using AngularJS</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://jharaphula.com/html5-table-sorting-pagination-using-angularjs/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			<media:content url="https://jharaphula.com/wp-content/uploads/2016/05/pagination-n-sorting-in-table.png" medium="image" />
	</item>
		<item>
		<title>Common used Git Commands Checklist for Developers</title>
		<link>https://jharaphula.com/git-commands-checklist-developers/</link>
					<comments>https://jharaphula.com/git-commands-checklist-developers/#respond</comments>
		
		<dc:creator><![CDATA[Biswabhusan Panda]]></dc:creator>
		<pubDate>Thu, 12 May 2016 18:45:30 +0000</pubDate>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Checklist for Developers]]></category>
		<category><![CDATA[Commands for Tagging]]></category>
		<category><![CDATA[Git Commands]]></category>
		<category><![CDATA[Git Commands to Add]]></category>
		<guid isPermaLink="false">http://box.jharaphula.com/?p=475</guid>

					<description><![CDATA[<img width="300" height="210" src="https://jharaphula.com/wp-content/uploads/2016/05/git-version-control-300x210.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="Common used Git Commands Checklist for Developers" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/git-version-control-300x210.jpg 300w, https://jharaphula.com/wp-content/uploads/2016/05/git-version-control.jpg 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>In our day to day software development version control helps us to protect from accidental data loss. Git is a free open source version control...</p>
<p>The post <a href="https://jharaphula.com/git-commands-checklist-developers/">Common used Git Commands Checklist for Developers</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></description>
										<content:encoded><![CDATA[<img width="300" height="210" src="https://jharaphula.com/wp-content/uploads/2016/05/git-version-control-300x210.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="Common used Git Commands Checklist for Developers" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/git-version-control-300x210.jpg 300w, https://jharaphula.com/wp-content/uploads/2016/05/git-version-control.jpg 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>In our day to day <a href="https://jharaphula.com/category/programming-solutions/" rel="noopener noreferrer" target="_blank">software</a> development version control helps us to protect from accidental data loss. Git is a free open source version control system. <strong>Compare to other repository Git is rich with Frictionless Context Switching, Role-Based Code lines, Feature Based Workflow &amp; Disposable Experimentation</strong>. To read more about these features please visit <a href="http://git-scm.com" target="_blank" rel="noopener noreferrer nofollow">http://git-scm.com</a>. While working in Git version control there are many Frequently used Git Commands to operate Git. In this session let me share Git Commands checklist for Developers.</p>
<h3>Commands to Create &amp; Clone</h3>
<p>To create a new repository – <em>git init</em><br />
To clone local repository – <em>git clone /path/to/repository</em><br />
To clone remote repository – <em>git clone username@host:/path/to/repository</em></p>
<h3>Git Commands to Add &amp; Remove</h3>
<p>Add changes to Index – <em>git add &lt;filename&gt;</em><br />
Add all changes to Index – <em>git add *</em><br />
Remove/Delete – <em>git rm &lt;filename&gt;</em></p>
<h3>Git Commands to Commit &amp; Synchronize</h3>
<p>To commit changes – <em>git commit -m “Commit message.”</em><br />
Push changes to remote repository – <em>git push origin master</em><br />
Connect local repository to remote repository – <em>git remote add origin &lt;server&gt;</em><br />
Update local repository with remote changes – <em>git pull</em></p>
<h3>Git Commands for Branches</h3>
<p>Create a new branch &#8211; <em>git checkout -b &lt;branch&gt;</em><br />
Switch to master branch – <em>git checkout master</em><br />
To delete a branch – <em>git branch -d &lt;branch&gt;</em><br />
Push branch to remote repository – <em>git push origin &lt;branch&gt;</em></p>
<h3>Commands for Merge</h3>
<p>Merge changes from another branch – <em>git merge &lt;branch&gt;</em><br />
View changes between two branches – <em>git diff &lt;source_branch&gt;</em> &lt;target_branch&gt;</p>
<h3>Commands for Tagging</h3>
<p>Create tag – <em>git tag &lt;tag&gt; &lt;commit ID&gt;</em><br />
Get Commit Ids – <em>git log</em></p>
<h3>Commands to Restore</h3>
<p>Replace working copy with latest from Head – <em>git checkout &#8212; &lt;filename&gt;</em></p>
<p>The post <a href="https://jharaphula.com/git-commands-checklist-developers/">Common used Git Commands Checklist for Developers</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://jharaphula.com/git-commands-checklist-developers/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			<media:content url="https://jharaphula.com/wp-content/uploads/2016/05/git-version-control.jpg" medium="image" />
	</item>
		<item>
		<title>Jquery Ajax Example using Get and Post Methods</title>
		<link>https://jharaphula.com/jquery-ajax-example-get-post-methods/</link>
					<comments>https://jharaphula.com/jquery-ajax-example-get-post-methods/#respond</comments>
		
		<dc:creator><![CDATA[Biswabhusan Panda]]></dc:creator>
		<pubDate>Thu, 12 May 2016 16:48:38 +0000</pubDate>
				<category><![CDATA[Learn JQuery with Examples]]></category>
		<category><![CDATA[Ajax Example]]></category>
		<category><![CDATA[Ajax Get method]]></category>
		<category><![CDATA[Ajax Post Method]]></category>
		<category><![CDATA[Jquery Ajax]]></category>
		<guid isPermaLink="false">http://box.jharaphula.com/?p=427</guid>

					<description><![CDATA[<img width="300" height="180" src="https://jharaphula.com/wp-content/uploads/2016/05/jquery-ajax-method-1-300x180.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="Jquery Ajax Example using Get and Post Methods" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/jquery-ajax-method-1-300x180.jpg 300w, https://jharaphula.com/wp-content/uploads/2016/05/jquery-ajax-method-1.jpg 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>In Client Server architecture get &#38; post methods are well popular for response &#38; request mechanism. During development phases many times we required to send...</p>
<p>The post <a href="https://jharaphula.com/jquery-ajax-example-get-post-methods/">Jquery Ajax Example using Get and Post Methods</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></description>
										<content:encoded><![CDATA[<img width="300" height="180" src="https://jharaphula.com/wp-content/uploads/2016/05/jquery-ajax-method-1-300x180.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="Jquery Ajax Example using Get and Post Methods" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/jquery-ajax-method-1-300x180.jpg 300w, https://jharaphula.com/wp-content/uploads/2016/05/jquery-ajax-method-1.jpg 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>In Client Server architecture get &amp; post methods are well popular for response &amp; request mechanism. During development phases many times we required to send or receive data in between client &amp; server. In Jquery to deal with the above situations there are two Ajax methods are introduced. Get &amp; Post. Using get method we can receive the response from server in client &amp; using post method we can post our client side data to the server. In below check our Jquery Ajax Example.</p>
<h3>Ajax Get method</h3>
<p>Using Jquery $.get() method we can fetch the data from server. Syntax used for Jquery get method is as below.</p>
<pre class="brush: jscript; title: ; notranslate">$.get(url, callback);</pre>
<p>URL specify the path from which server page you want to receive data in client end. Let us have an asp page demo_get.asp. In this page I added the following lines.</p>
<pre class="brush: vb; title: ; notranslate">&lt;%
response.write(“This line is to test get method in Jquery”);
%&gt;</pre>
<p>What we want is on a button click we need to show the above server response in client end using Jquery ajax get method. Look at the example below how to do this.</p>
<pre class="brush: jscript; title: ; notranslate">$(“#btnGet”).click(function() {
$.get(“demo_get.asp”, function(data, status) {
alert(&quot;Response: &quot; + data + &quot;\nRequest Status: &quot; + status);
});
});</pre>
<h3>Ajax Post Method</h3>
<p>Generally HTTP Post method used to send <a href="https://jharaphula.com/database-basics-terminologies-definition/" rel="noopener noreferrer" target="_blank">data</a> from client to server. Compare to get method post method is more secured. During post method control data moves with form. Jquery provide $.post() method to send client data to the server. Syntax used for Jquery post method is as below.</p>
<pre class="brush: jscript; title: ; notranslate">$.post(url, data, callback);</pre>
<p>URL is the path to which server page you want to send client data. Let us have a button with id btnPost. What we want is using Jquery post method we will send some sample data to demo_post.asp server page. Let&#8217;s look at the button click code how to send client data using post method.</p>
<pre class="brush: jscript; title: ; notranslate">$(“#btnPost”).click(function() {
$.post(“demo_post.asp”,
{
name: “Biswabhusan”,
designation: “Team Lead”
},
function(data, status) {
alert(&quot;Response: &quot; + data + &quot;\nRequest Status: &quot; + status);
});
});</pre>
<p>Using the above our data name &amp; designation post to the server page demo_post.asp. Now look at the below code how to retrieve these data in server page demo_post.asp.</p>
<pre class="brush: vb; title: ; notranslate">&lt;%
dim emp_name, emp_designation
emp_name=Request.Form(&quot;name&quot;)
emp_designation=Request.Form(&quot;designation&quot;)
Response.Write(&quot;Hi &quot; &amp; emp_name &amp; &quot;. &quot;)
Response.Write(&quot;You are a &quot; &amp; emp_designation &amp; &quot;.&quot;)
%&gt;</pre>
<p>Jquery get &amp; post methods are Ajax based. During server &amp; client communication using these methods it not required the total page refresh.</p>
<p>The post <a href="https://jharaphula.com/jquery-ajax-example-get-post-methods/">Jquery Ajax Example using Get and Post Methods</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://jharaphula.com/jquery-ajax-example-get-post-methods/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			<media:content url="https://jharaphula.com/wp-content/uploads/2016/05/jquery-ajax-method-1.jpg" medium="image" />
	</item>
		<item>
		<title>RC2, MD5, Triple Des, Byte, 128 Cryptography functions</title>
		<link>https://jharaphula.com/rc2-md5-byte-128-cryptography-functions/</link>
					<comments>https://jharaphula.com/rc2-md5-byte-128-cryptography-functions/#respond</comments>
		
		<dc:creator><![CDATA[Biswabhusan Panda]]></dc:creator>
		<pubDate>Thu, 12 May 2016 15:29:11 +0000</pubDate>
				<category><![CDATA[Microsoft Technologies]]></category>
		<category><![CDATA[128 Cryptography functions]]></category>
		<category><![CDATA[MD5]]></category>
		<category><![CDATA[RC2]]></category>
		<category><![CDATA[Triple Des]]></category>
		<guid isPermaLink="false">http://box.jharaphula.com/?p=410</guid>

					<description><![CDATA[<img width="300" height="168" src="https://jharaphula.com/wp-content/uploads/2016/05/Cryptography-300x168.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="RC2, MD5, Triple Des, Byte, 128 Cryptography functions" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/Cryptography-300x168.jpg 300w, https://jharaphula.com/wp-content/uploads/2016/05/Cryptography.jpg 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>Security is a key in Information Technologies. From banking to insurance domain every where we want our data to be safe. In web technologies security...</p>
<p>The post <a href="https://jharaphula.com/rc2-md5-byte-128-cryptography-functions/">RC2, MD5, Triple Des, Byte, 128 Cryptography functions</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></description>
										<content:encoded><![CDATA[<img width="300" height="168" src="https://jharaphula.com/wp-content/uploads/2016/05/Cryptography-300x168.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="RC2, MD5, Triple Des, Byte, 128 Cryptography functions" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/Cryptography-300x168.jpg 300w, https://jharaphula.com/wp-content/uploads/2016/05/Cryptography.jpg 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>Security is a key in Information Technologies. From banking to insurance domain every where we want our data to be safe. In web technologies security is a major factor. Looking into this Microsoft provides Cryptography in their <a href="https://jharaphula.com/category/programming-solutions/" rel="noopener noreferrer" target="_blank">advanced programming languages</a> .NET Framework. There are several types of encryption &amp; decryption available in the chapter of Cryptography. The most common used Cryptography functions are RC2, MD5, Triple Des, 128 Encryption &amp; Byte.</p>
<p>In the area of day today developments programmers are looking for a ready-made function to encrypt or decrypt their strings. To start with Cryptography Microsoft provides the base Class System.Security.Cryptography. You need to import this System Class before using the following functions. Here with I am sharing the functions how to encrypt or decrypt a string using vb.net. With these functions you can easily encrypt or decrypt a string to RC2, MD5, 128 &amp; Byte format. Enjoy the programming.</p>
<h3>Cryptography function to encrypt a String</h3>
<pre class="brush: vb; title: ; notranslate">Public Function EncodeString(ByVal value As String, ByVal key As String) As String
Dim crdes As New System.Security.Cryptography.TripleDESCryptoServiceProvider
crdes.IV = New Byte(7) {}
Dim pdb As New System.Security.Cryptography.PasswordDeriveBytes(key, New Byte(-1) {})
crdes.Key = pdb.CryptDeriveKey(&quot;RC2&quot;, &quot;MD5&quot;, 128, New Byte(7) {})
Dim ms As New IO.MemoryStream((value.Length * 2) - 1)
Dim encStream As New System.Security.Cryptography.CryptoStream(ms, crdes.CreateEncryptor(), System.Security.Cryptography.CryptoStreamMode.Write)
Dim plainBytes As Byte() = Text.Encoding.UTF8.GetBytes(value)
encStream.Write(plainBytes, 0, plainBytes.Length)
encStream.FlushFinalBlock()
Dim encryptedBytes(CInt(ms.Length - 1)) As Byte
ms.Position = 0
ms.Read(encryptedBytes, 0, CInt(ms.Length))
encStream.Close()
Return Convert.ToBase64String(encryptedBytes)
End Function</pre>
<h3>Cryptography function to decrypt a String</h3>
<pre class="brush: vb; title: ; notranslate">Public Function DecodeString(ByVal value As String, ByVal key As String) As String
Dim crdes As New System.Security.Cryptography.TripleDESCryptoServiceProvider
crdes.IV = New Byte(7) {}
Dim pdb As New System.Security.Cryptography.PasswordDeriveBytes(key, New Byte(-1) {})
crdes.Key = pdb.CryptDeriveKey(&quot;RC2&quot;, &quot;MD5&quot;, 128, New Byte(7) {})
Dim encryptedBytes As Byte() = Convert.FromBase64String(value)
Dim ms As New IO.MemoryStream(value.Length)
Dim decStream As New System.Security.Cryptography.CryptoStream(ms, crdes.CreateDecryptor(), System.Security.Cryptography.CryptoStreamMode.Write)
decStream.Write(encryptedBytes, 0, encryptedBytes.Length)
decStream.FlushFinalBlock()
Dim plainBytes(CInt(ms.Length - 1)) As Byte
ms.Position = 0
ms.Read(plainBytes, 0, CInt(ms.Length))
decStream.Close()
Return Text.Encoding.UTF8.GetString(plainBytes)
End Function</pre>
<p>The post <a href="https://jharaphula.com/rc2-md5-byte-128-cryptography-functions/">RC2, MD5, Triple Des, Byte, 128 Cryptography functions</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://jharaphula.com/rc2-md5-byte-128-cryptography-functions/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			<media:content url="https://jharaphula.com/wp-content/uploads/2016/05/Cryptography.jpg" medium="image" />
	</item>
		<item>
		<title>AngularJS Grouping Data using NG-Grid</title>
		<link>https://jharaphula.com/grouping-data-in-ng-grid/</link>
					<comments>https://jharaphula.com/grouping-data-in-ng-grid/#respond</comments>
		
		<dc:creator><![CDATA[Nibedita Panda]]></dc:creator>
		<pubDate>Tue, 10 May 2016 18:06:27 +0000</pubDate>
				<category><![CDATA[AngularJS with Examples]]></category>
		<category><![CDATA[AngularJS Grouping Data]]></category>
		<category><![CDATA[NG-Grid]]></category>
		<guid isPermaLink="false">http://box.jharaphula.com/?p=225</guid>

					<description><![CDATA[<img width="300" height="185" src="https://jharaphula.com/wp-content/uploads/2016/05/angularjs-demo-application-300x185.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="AngularJS Grouping Data using NG-Grid" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/angularjs-demo-application-300x185.jpg 300w, https://jharaphula.com/wp-content/uploads/2016/05/angularjs-demo-application.jpg 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>Grouping makes use of jQuery UI&#8217;s draggable feature and hence you&#8217;ll need to include JQuery UI into our application Download jQuery-UI using bower by typing...</p>
<p>The post <a href="https://jharaphula.com/grouping-data-in-ng-grid/">AngularJS Grouping Data using NG-Grid</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></description>
										<content:encoded><![CDATA[<img width="300" height="185" src="https://jharaphula.com/wp-content/uploads/2016/05/angularjs-demo-application-300x185.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="AngularJS Grouping Data using NG-Grid" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/angularjs-demo-application-300x185.jpg 300w, https://jharaphula.com/wp-content/uploads/2016/05/angularjs-demo-application.jpg 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>Grouping makes use of jQuery UI&#8217;s draggable feature and hence you&#8217;ll need to include <a href="https://jharaphula.com/jquery-string-functions/" rel="noopener noreferrer" target="_blank">JQuery</a> UI into our application Download jQuery-UI using bower by typing in the following command in the terminal :</p>
<p>bower install jquery-ui</p>
<p>Include the jquery-ui library files by adding it in the app/index.html file as follows.</p>
<pre class="brush: jscript; title: ; notranslate">&lt;script src=&quot;bower_components/jquery/jquery.js&quot;&gt;&lt;/script&gt;
&lt;script src=&quot;bower_components/jquery-ui/ui/jquery-ui.js&quot;&gt;&lt;/script&gt;
&lt;script src=&quot;bower_components/angular/angular.js&quot;&gt;&lt;/script&gt;</pre>
<p>Start with adding the new array called userType, in the app/scripts/controllers/subscribers.js file.</p>
<pre class="brush: jscript; title: ; notranslate">var subscribers= $scope.subscribers =[];
var names=[&quot;Betty&quot;,&quot;John&quot;,&quot;Peter&quot;,&quot;Jaden&quot;, &quot;Shannon&quot;];
var loyalty=[3,5,7,8,7];
var userType=[&quot;Free&quot;,&quot;Free&quot;,&quot;Premium&quot;,&quot;Premium&quot;,&quot;Premium&quot;];
var joinDate=[&quot;3/5/10&quot;,&quot;5/5/12&quot;,&quot;5/8/11&quot;,&quot;11/6/13&quot;,&quot;10/12/10&quot;];</pre>
<p>Make the corresponding changes to include the userType in our add user function as follows.</p>
<pre class="brush: jscript; title: ; notranslate">$scope.addUsers =function(i){
$scope.subscribers.push({
no:i+1,
name:names[i],
userType:userType[i],
loyalty:loyalty[i],
joinDate:joinDate[i]
});
}</pre>
<p>Also add it to the column definitions in the gridOptions settings.</p>
<pre class="brush: jscript; title: ; notranslate">$scope.gridOptions = {
data: 'subscribers',
columnDefs: [
{field:'no', displayName:'No.'},
{field:'name', displayName:'Name'},
{field:'userType', displayName:'Subscription Type'},
{field:'loyalty', displayName:'Loyalty Score'},
{field:'joinDate', displayName:'Date of Joining'}]
};</pre>
<p>Add the following two parameters to the gridOptions in app/scripts/controllers/subscribers.js as highlighted.</p>
<pre class="brush: jscript; title: ; notranslate">$scope.gridOptions = {
data: 'subscribers',
showGroupPanel: true,
jqueryUIDraggable: true,
columnDefs: [
{field:'no', displayName:'No.'},
{field:'name', displayName:'Name'},
{field:'userType', displayName:'Subscription Type'},
{field:'loyalty', displayName:'Loyalty Score'},
{field:'joinDate', displayName:'Date of Joining'}]
};</pre>
<p>Save the file and refresh the subscriptions view in your browser.</p>
<p>The post <a href="https://jharaphula.com/grouping-data-in-ng-grid/">AngularJS Grouping Data using NG-Grid</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://jharaphula.com/grouping-data-in-ng-grid/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			<media:content url="https://jharaphula.com/wp-content/uploads/2016/05/angularjs-demo-application.jpg" medium="image" />
	</item>
		<item>
		<title>How to bind data to Angular Grid using ng-grid Directive?</title>
		<link>https://jharaphula.com/bind-data-angular-grid-ng-grid/</link>
					<comments>https://jharaphula.com/bind-data-angular-grid-ng-grid/#respond</comments>
		
		<dc:creator><![CDATA[Nibedita Panda]]></dc:creator>
		<pubDate>Tue, 10 May 2016 18:02:25 +0000</pubDate>
				<category><![CDATA[AngularJS with Examples]]></category>
		<category><![CDATA[bower install ng-grid]]></category>
		<category><![CDATA[ng-grid Directive]]></category>
		<guid isPermaLink="false">http://box.jharaphula.com/?p=222</guid>

					<description><![CDATA[<img width="300" height="200" src="https://jharaphula.com/wp-content/uploads/2016/05/selection-300x200.png" class="webfeedsFeaturedVisual wp-post-image" alt="How to bind data to Angular Grid using ng-grid Directive?" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/selection-300x200.png 300w, https://jharaphula.com/wp-content/uploads/2016/05/selection-182x120.png 182w, https://jharaphula.com/wp-content/uploads/2016/05/selection-106x70.png 106w, https://jharaphula.com/wp-content/uploads/2016/05/selection.png 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>NG-Grid is not a part of Angular Bootstrap and needs to be added separately. To install Angular Grid use bower to download the components for...</p>
<p>The post <a href="https://jharaphula.com/bind-data-angular-grid-ng-grid/">How to bind data to Angular Grid using ng-grid Directive?</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></description>
										<content:encoded><![CDATA[<img width="300" height="200" src="https://jharaphula.com/wp-content/uploads/2016/05/selection-300x200.png" class="webfeedsFeaturedVisual wp-post-image" alt="How to bind data to Angular Grid using ng-grid Directive?" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/selection-300x200.png 300w, https://jharaphula.com/wp-content/uploads/2016/05/selection-182x120.png 182w, https://jharaphula.com/wp-content/uploads/2016/05/selection-106x70.png 106w, https://jharaphula.com/wp-content/uploads/2016/05/selection.png 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>NG-Grid is not a part of Angular Bootstrap and needs to be added separately. To install <a href="https://jharaphula.com/category/programming-solutions/learn-angularjs-with-examples/" target="_blank" rel="noopener noreferrer">Angular</a> Grid use bower to download the components for ng-grid. In your terminal navigate to your project folder, and type in the following commands.</p>
<p><em>bower install ng-grid</em></p>
<p>You should now be able to see the ng-grid folder and the files within the bower_components folder. The next thing is to include the ng-grid JS and CSS files in our index.html.</p>
<p>Please add the following highlighted line in your app/index.html file to include the ng-grid CSS file.</p>
<pre class="brush: xml; title: ; notranslate">&lt;link rel=&quot;stylesheet&quot; href=&quot;styles/bootstrap.css&quot;&gt;
&lt;link rel=&quot;stylesheet&quot; href=&quot;bower_components/ng-grid/ng-grid.css&quot;&gt;
&lt;link rel=&quot;stylesheet&quot; href=&quot;styles/main.css&quot;&gt;</pre>
<h3>Add the ng-grid JS file as highlighted</h3>
<pre class="brush: xml; title: ; notranslate">&lt;script src=&quot;bower_components/jquery/jquery.js&quot;&gt;&lt;/script&gt;
&lt;script src=&quot;bower_components/angular/angular.js&quot;&gt;&lt;/script&gt;
&lt;script src=&quot;bower_components/angular-bootstrap/ui-bootstrap-tpls.js&quot;&gt;&lt;/script&gt;
&lt;script src=&quot;bower_components/ng-grid/ng-grid-2.0.7.min.js&quot;&gt;&lt;/script&gt;</pre>
<p>Next you need to add the ngGrid dependency to your AngularApp, you&#8217;ll do this by adding in your app/scripts/app.js file as highlighted.</p>
<pre class="brush: jscript; title: ; notranslate">angular.module(AngularApp, ['ui.bootstrap','ngGrid'])</pre>
<p>Now that you have NG-Grid added to your projects, create the routes, controllers, and partials for the subscribers page.</p>
<p>Open up the terminal and run the following command.</p>
<p><em>yo angular:route subscribers</em></p>
<p>Once you are done with this, you are all set to start working on your Subscribers view.</p>
<p>Open the app/scripts/controllers/subscribers.js file and create your model as follows:</p>
<pre class="brush: jscript; title: ; notranslate">$scope.subscribers =[];
var names=[&quot;Betty&quot;,&quot;John&quot;,&quot;Peter&quot;,&quot;Jaden&quot;, &quot;Shannon&quot;];
var loyalty=[3,5,7,8,7];
var joinDate=[&quot;3/5/10&quot;,&quot;5/5/12&quot;,&quot;5/8/11&quot;,&quot;11/6/13&quot;,&quot;10/12/10&quot;];</pre>
<p>Delete the awesomeThings model and initialize the subscribers model and create the arrays for names, loyalty and joinDate.</p>
<p>Next create a function that will add push the data into the subscribers model.</p>
<pre class="brush: jscript; title: ; notranslate">$scope.addUsers =function(i){
$scope.subscribers.push({
no:i+1,
name:names[i],
loyalty:loyalty[i],
joinDate:joinDate[i]
});
}</pre>
<p>And finally run a for loop that iterates through the array elements and adds them to the model.</p>
<pre class="brush: jscript; title: ; notranslate">for (var i=0;i&lt;5;i++){
$scope.addUsers(i);
}</pre>
<p>Now that the model is ready, you need to initialize the NG-Grid, so after the for loop lets initialize the ng-grid as follows:</p>
<pre class="brush: jscript; title: ; notranslate">$scope.gridOptions = {
data: 'subscribers'
};</pre>
<p>Your work on the controller is done, let&#8217;s open the app/views/subscribers.html partial and add the markup for the Grid.</p>
<pre class="brush: xml; title: ; notranslate">&lt;h1&gt;Subscribers&lt;/h1&gt;
&lt;div class=&quot;gridStyles&quot; ng-grid=&quot;gridOptions&quot;&gt;
&lt;/div&gt;</pre>
<p>add the height and width properties to the .gridStyles class.</p>
<pre class="brush: css; title: ; notranslate">.gridStyles{
width:940px;
height:300px;</pre>
<p>To add the Column Definitions open the app/scripts/controllers/subscribers.js file, and add the following code as highlighted below:</p>
<pre class="brush: jscript; title: ; notranslate">$scope.gridOptions = {
data: 'subscribers',
showGroupPanel: true,
jqueryUIDraggable: true,
enableCellSelection: true,
enableRowSelection: false,
enableCellEdit: true,
columnDefs: [
{field:'no', displayName:'No.'},
{field:'name', displayName:'Name'},
{field:'userType', displayName:'Subscription Type'},
{field:'loyalty', displayName:'Loyalty Score'},
{field:'joinDate', displayName:'Date of Joining'}
]
};</pre>
<p>For alternating row colors simply over riding the default odd and even row classes by adding the following classes to the app/styles/main.css file.</p>
<pre class="brush: css; title: ; notranslate">.ngRow.even {
background: #eaeaff;
}
.ngRow.odd {
background: #eaffea;
}</pre>
<p>The post <a href="https://jharaphula.com/bind-data-angular-grid-ng-grid/">How to bind data to Angular Grid using ng-grid Directive?</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://jharaphula.com/bind-data-angular-grid-ng-grid/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			<media:content url="https://jharaphula.com/wp-content/uploads/2016/05/selection.png" medium="image" />
	</item>
		<item>
		<title>How to install Maven on Windows Operating System?</title>
		<link>https://jharaphula.com/how-to-install-maven-windows/</link>
					<comments>https://jharaphula.com/how-to-install-maven-windows/#respond</comments>
		
		<dc:creator><![CDATA[Nibedita Panda]]></dc:creator>
		<pubDate>Tue, 10 May 2016 17:59:30 +0000</pubDate>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Install Maven]]></category>
		<category><![CDATA[Maven on Windows]]></category>
		<category><![CDATA[Operating System]]></category>
		<guid isPermaLink="false">http://box.jharaphula.com/?p=220</guid>

					<description><![CDATA[<img width="300" height="196" src="https://jharaphula.com/wp-content/uploads/2016/05/maven-installation-300x196.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="How to install Maven on Windows Operating System?" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/maven-installation-300x196.jpg 300w, https://jharaphula.com/wp-content/uploads/2016/05/maven-installation-182x120.jpg 182w, https://jharaphula.com/wp-content/uploads/2016/05/maven-installation-106x70.jpg 106w, https://jharaphula.com/wp-content/uploads/2016/05/maven-installation.jpg 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>Download the latest version of maven from http://maven.apache.org/download.cgi. To get install maven on Windows refer the following Steps. 1. Unzip the distribution archive, i.e. apache-maven-3.2.1-bin.zip...</p>
<p>The post <a href="https://jharaphula.com/how-to-install-maven-windows/">How to install Maven on Windows Operating System?</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></description>
										<content:encoded><![CDATA[<img width="300" height="196" src="https://jharaphula.com/wp-content/uploads/2016/05/maven-installation-300x196.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="How to install Maven on Windows Operating System?" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/maven-installation-300x196.jpg 300w, https://jharaphula.com/wp-content/uploads/2016/05/maven-installation-182x120.jpg 182w, https://jharaphula.com/wp-content/uploads/2016/05/maven-installation-106x70.jpg 106w, https://jharaphula.com/wp-content/uploads/2016/05/maven-installation.jpg 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>Download the latest version of maven from <a href="http://maven.apache.org/download.cgi" target="_blank" rel="nofollow noopener noreferrer">http://maven.apache.org/download.cgi</a>. To get install maven on Windows refer the following Steps.</p>
<p><span style="color:red"><strong>1.</strong></span> Unzip the distribution archive, i.e. apache-maven-3.2.1-bin.zip to the directory you wish to install Maven 3.2.1. These instructions assume you chose C:\Program Files\Apache Software Foundation. The subdirectory apache-maven-3.2.1 will be created from the archive.</p>
<p><span style="color:red"><strong>2.</strong></span> Add the M2_HOME environment variable by opening up the system properties (WinKey + Pause), selecting the &#8220;Advanced&#8221; tab, and the &#8220;Environment Variables&#8221; button, then adding the M2_HOME variable in the user variables with the value C:\Program Files\Apache Software Foundation\apache-maven-3.2.1. Be sure to omit any quotation marks around the path even if it contains spaces. Note: For Maven 2.0.9, also be sure that the M2_HOME doesn&#8217;t have a &#8216;\&#8217; as last character.</p>
<p><span style="color:red"><strong>3.</strong></span> In the same dialog, add the M2 environment variable in the <a href="https://jharaphula.com/" rel="noopener noreferrer" target="_blank">user variables</a> with the value %M2_HOME%\bin.</p>
<p><span style="color:red"><strong>4.</strong></span> Optional: In the same dialog, add the MAVEN_OPTS environment variable in the user variables to specify JVM properties, e.g. the value -Xms256m -Xmx512m. This environment variable can be used to supply extra options to Maven.</p>
<p><span style="color:red"><strong>5.</strong></span> In the same dialog, update/create the Path environment variable in the user variables and prepend the value %M2% to add Maven available in the command line.</p>
<p><span style="color:red"><strong>6.</strong></span> In the same dialog, make sure that JAVA_HOME exists in your user variables or in the system variables and it is set to the location of your JDK, e.g. C:\Program Files\Java\jdk1.7.0_51 and that %JAVA_HOME%\bin is in your Path environment variable.</p>
<p><span style="color:red"><strong>7.</strong></span> Open a new command prompt (Winkey + R then type cmd) and run mvn &#8211;version to verify that it is correctly installed.</p>
<p>The post <a href="https://jharaphula.com/how-to-install-maven-windows/">How to install Maven on Windows Operating System?</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://jharaphula.com/how-to-install-maven-windows/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			<media:content url="https://jharaphula.com/wp-content/uploads/2016/05/maven-installation.jpg" medium="image" />
	</item>
		<item>
		<title>Angular Modal Window Example using $modal.open Method</title>
		<link>https://jharaphula.com/angular-modal-window-example/</link>
					<comments>https://jharaphula.com/angular-modal-window-example/#respond</comments>
		
		<dc:creator><![CDATA[Nibedita Panda]]></dc:creator>
		<pubDate>Tue, 10 May 2016 17:46:13 +0000</pubDate>
				<category><![CDATA[AngularJS with Examples]]></category>
		<category><![CDATA[Angular Modal Window]]></category>
		<category><![CDATA[Modal Window Example]]></category>
		<guid isPermaLink="false">http://box.jharaphula.com/?p=210</guid>

					<description><![CDATA[<img width="300" height="200" src="https://jharaphula.com/wp-content/uploads/2016/05/simple-modal-window-300x200.png" class="webfeedsFeaturedVisual wp-post-image" alt="Angular Modal Window Example using $modal.open Method" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/simple-modal-window-300x200.png 300w, https://jharaphula.com/wp-content/uploads/2016/05/simple-modal-window-182x120.png 182w, https://jharaphula.com/wp-content/uploads/2016/05/simple-modal-window-106x70.png 106w, https://jharaphula.com/wp-content/uploads/2016/05/simple-modal-window.png 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>Create a modal window with a form to add users to our subscribers model. You will need a button which will launch the modal window...</p>
<p>The post <a href="https://jharaphula.com/angular-modal-window-example/">Angular Modal Window Example using $modal.open Method</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></description>
										<content:encoded><![CDATA[<img width="300" height="200" src="https://jharaphula.com/wp-content/uploads/2016/05/simple-modal-window-300x200.png" class="webfeedsFeaturedVisual wp-post-image" alt="Angular Modal Window Example using $modal.open Method" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/simple-modal-window-300x200.png 300w, https://jharaphula.com/wp-content/uploads/2016/05/simple-modal-window-182x120.png 182w, https://jharaphula.com/wp-content/uploads/2016/05/simple-modal-window-106x70.png 106w, https://jharaphula.com/wp-content/uploads/2016/05/simple-modal-window.png 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>Create a modal window with a form to add users to our subscribers model. You will need a button which will launch the modal window when clicked. So create button in the app/views/subscribers.html as highlighted below:</p>
<pre class="brush: xml; title: ; notranslate">&lt;h3&gt;Subscribers&lt;/h3&gt;
&lt;button class=&quot;btn btn-success&quot; ng-click=&quot;showModal()&quot;&gt; Add New User&lt;/button&gt;
&lt;div class=&quot;gridStyles&quot; ng-grid=&quot;gridOptions&quot;&gt;
&lt;/div&gt;</pre>
<p>now create the partial for the modal view.</p>
<p>Create a new file called add-user.html within the app/views folder and let&#8217;s put in the markup for the Add User Form as follows:</p>
<pre class="brush: xml; title: ; notranslate">&lt;div class=&quot;modal-header&quot;&gt;
&lt;button type=&quot;button&quot; class=&quot;close&quot; ng-click=&quot;cancel()&quot; datadismiss=&quot;modal&quot; aria-hidden=&quot;true&quot;&gt;&amp;times;&lt;/button&gt;
&lt;h3&gt;Add a Subscriber&lt;/h3&gt;
&lt;/div&gt;</pre>
<p>Next markup the content for the modal body</p>
<pre class="brush: xml; title: ; notranslate">&lt;div class=&quot;modal-body&quot;&gt;
&lt;label&gt;Name&lt;/label&gt;&lt;input type=&quot;text&quot; ng-model=&quot;newUser.name&quot;/&gt;
&lt;label&gt;Subscription Type&lt;/label&gt;&lt;input type=&quot;text&quot; ng-model=&quot;newUser.userType&quot;/&gt;
&lt;label&gt;Loyalty Score&lt;/label&gt;&lt;input type=&quot;number&quot; ng-model=&quot;newUser.loyalty&quot;/&gt;
&lt;label&gt;Date of Joining&lt;/label&gt;&lt;input type=&quot;date&quot;ng-model=&quot;newUser.joinDate&quot;/&gt;
&lt;br/&gt;
&lt;button class=&quot;btn btn-success&quot; ng-click=&quot;saveNewUser()&quot;&gt; Save User&lt;/button&gt;
&lt;/div&gt;</pre>
<p>Next add the code to your app/scripts/controllers/subscribers.js file as follows:</p>
<p>The Modal window makes use of the $modal service, so we will need to add it to our SubscribersCtrl as highlighted :</p>
<pre class="brush: jscript; title: ; notranslate">angular.module('hlApp')
.controller('SubscribersCtrl', function ($scope, $modal) {</pre>
<p>Next write the code to call the modal window.</p>
<p>Since the &#8216;Add New User&#8217; will call the showModal function when clicked you will define that <a href="https://jharaphula.com/php-string-functions-with-example/" rel="noopener noreferrer" target="_blank">function</a> at the end, just above the closing braces of your Subscribers Ctrl controller as follows:</p>
<pre class="brush: jscript; title: ; notranslate">$scope.showModel=function () {
$scope.newUser={};
var modalInstance = $modal.open({
templateUrl: 'views/add-user.html'})}</pre>
<p>Another option that the $modal.open method supports is the &#8216;controller&#8217; which allows you to assign a controller that binds to the view within the modal. Now add the controller option to your modalInstance.</p>
<pre class="brush: jscript; title: ; notranslate">$scope.showModal=function () {
$scope.newUser={};
var modalInstance = $modal.open({
templateUrl: 'views/add-user.html',
controller:'AddNewUserCtrl'
})}</pre>
<p>Next create your AddNewUserCtrl within the same app/scripts/controllers/subscribers.js file.<br />
Add this controller right at the end of the file after the SubscribersCtrl function ends.</p>
<pre class="brush: jscript; title: ; notranslate">.controller('AddNewUserCtrl', function ($scope, $modalInstance) {
});</pre>
<p>Now within the AddNewUserCtrl define the functions for the cancel button as follows:</p>
<pre class="brush: jscript; title: ; notranslate">.controller('AddNewUserCtrl', function ($scope, $modalInstance) {
$scope.cancel =function(){
$modalInstance.dismiss('cancel');
}
});</pre>
<p>Save the files and check to see if the Add New User and the cancel buttons are working.</p>
<p>The post <a href="https://jharaphula.com/angular-modal-window-example/">Angular Modal Window Example using $modal.open Method</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://jharaphula.com/angular-modal-window-example/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			<media:content url="https://jharaphula.com/wp-content/uploads/2016/05/simple-modal-window.png" medium="image" />
	</item>
		<item>
		<title>Building Image Gallery using AngularJS</title>
		<link>https://jharaphula.com/building-image-gallery-using-angularjs/</link>
					<comments>https://jharaphula.com/building-image-gallery-using-angularjs/#respond</comments>
		
		<dc:creator><![CDATA[Nibedita Panda]]></dc:creator>
		<pubDate>Tue, 10 May 2016 17:44:11 +0000</pubDate>
				<category><![CDATA[AngularJS with Examples]]></category>
		<category><![CDATA[Building Image Gallery]]></category>
		<category><![CDATA[Gallery using AngularJS]]></category>
		<guid isPermaLink="false">http://box.jharaphula.com/?p=208</guid>

					<description><![CDATA[<img width="300" height="179" src="https://jharaphula.com/wp-content/uploads/2016/05/ng-image-gallery-300x179.png" class="webfeedsFeaturedVisual wp-post-image" alt="Building Image Gallery using AngularJS" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/ng-image-gallery-300x179.png 300w, https://jharaphula.com/wp-content/uploads/2016/05/ng-image-gallery.png 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>To build your Image Gallery using AngularJS, let&#8217;s create the controller, partial and routes for it using the yeoman command as follows : yo angular:route...</p>
<p>The post <a href="https://jharaphula.com/building-image-gallery-using-angularjs/">Building Image Gallery using AngularJS</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></description>
										<content:encoded><![CDATA[<img width="300" height="179" src="https://jharaphula.com/wp-content/uploads/2016/05/ng-image-gallery-300x179.png" class="webfeedsFeaturedVisual wp-post-image" alt="Building Image Gallery using AngularJS" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/ng-image-gallery-300x179.png 300w, https://jharaphula.com/wp-content/uploads/2016/05/ng-image-gallery.png 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>To build your Image Gallery using AngularJS, let&#8217;s create the controller, partial and routes for it using the yeoman command as follows :</p>
<h3>yo angular:route gallery</h3>
<p>We will start with creating our model in the app/scripts/controllers/gallery.js file. Start with defining the various variables and arrays that we will need, within the GalleryCtrl controller function :</p>
<pre class="brush: jscript; title: ; notranslate">var pictures =$scope.pictures=[];
var baseURL=&quot;http://lorempixel.com/300/180/&quot;;
var titles=[&quot;Healthy Food&quot;,&quot;Healthy @ Work&quot;,&quot;City Life &quot;, &quot;Staying Fit&quot;,&quot;Looking Good&quot;,&quot;Nightlife !!&quot;] ;
var keywords=[&quot;food&quot;, &quot;business&quot;,&quot;city&quot;,&quot;sports&quot;,&quot;fashion&quot;, &quot;nightlife&quot;];
var dummyText=&quot;Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed sed erat turpis. Integer eget consectetur quam. Sed at quam ut dolor varius condimentum et sit amet odio. &quot;</pre>
<p>First you declare an empty model called pictures.</p>
<p>The next variable you define is the baseURL that holds the base URL for the images that you will show in the image gallery, as you can notice in this case you are using images of width 300 and height 180.</p>
<p>Next, Array titles is the array containing the titles for all the images.</p>
<p>The keywords array holds the list of all the keywords that you will concatenate at the end of the baseURL to get relevant images for the gallery.</p>
<p>And finally the variable dummyText holds some lorem ipsum that we will add as a description to each of the gallery images.</p>
<p>Now that you have all the variables and arrays defined the next step is to create the function that will push them into the pictures model.</p>
<h3>You will write this as follows</h3>
<pre class="brush: jscript; title: ; notranslate">$scope.addPics=function(i){
pictures.push({
url:baseURL+keywords[i],
title:titles[i],
summary:dummyText
})
}</pre>
<p>The addPics <a href="https://jharaphula.com/php-string-functions-with-example/" rel="noopener noreferrer" target="_blank">function</a> takes in an input parameter &#8216;i&#8217; which does an array push by iterating through the arrays and updating the values for the url, title and summary properties.</p>
<p>The final step here is to call the addPics function in a loop, incrementing the value of &#8216;i&#8217; .</p>
<h3>This is done as follows</h3>
<pre class="brush: jscript; title: ; notranslate">for (var i=0;i&amp;lt;5;i++){
$scope.addPics(i);
}</pre>
<p>Since for this example we need about six images we run a for loop iterating from 0 to 5. This completes our work on the controller.</p>
<p>The post <a href="https://jharaphula.com/building-image-gallery-using-angularjs/">Building Image Gallery using AngularJS</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://jharaphula.com/building-image-gallery-using-angularjs/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			<media:content url="https://jharaphula.com/wp-content/uploads/2016/05/ng-image-gallery.png" medium="image" />
	</item>
		<item>
		<title>Padding, Border and Margin properties from CSS Box Model</title>
		<link>https://jharaphula.com/brief-about-css-box-model/</link>
					<comments>https://jharaphula.com/brief-about-css-box-model/#respond</comments>
		
		<dc:creator><![CDATA[Nibedita Panda]]></dc:creator>
		<pubDate>Tue, 10 May 2016 17:37:42 +0000</pubDate>
				<category><![CDATA[CSS Tricks with Examples]]></category>
		<category><![CDATA[CSS Box Model]]></category>
		<category><![CDATA[CSS Syntax]]></category>
		<guid isPermaLink="false">http://box.jharaphula.com/?p=203</guid>

					<description><![CDATA[<img width="300" height="186" src="https://jharaphula.com/wp-content/uploads/2016/05/box-model.gif" class="webfeedsFeaturedVisual wp-post-image" alt="Padding, Border and Margin properties from CSS Box Model" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" /><p>CSS Box Model is a box around the HTML elements. This area is divided into 3 parts Padding, Border &#38; Margin. Let us discuss about...</p>
<p>The post <a href="https://jharaphula.com/brief-about-css-box-model/">Padding, Border and Margin properties from CSS Box Model</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></description>
										<content:encoded><![CDATA[<img width="300" height="186" src="https://jharaphula.com/wp-content/uploads/2016/05/box-model.gif" class="webfeedsFeaturedVisual wp-post-image" alt="Padding, Border and Margin properties from CSS Box Model" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" /><p>CSS Box Model is a box around the <a href="https://jharaphula.com/list-of-html5-new-tags/" target="_blank" rel="noopener noreferrer">HTML elements</a>. This area is divided into 3 parts Padding, Border &amp; Margin. Let us discuss about a HTML div with the content “This is a sample text.”. As shown in below figure, Padding is the nearest area to the div contents before border. Border is the boundary for your html elements. About margin it is area after border.</p>
<p>In web design, every element on a webpage needs to be defined clearly to ensure a smooth user experience. One fundamental aspect of this design is the use of borders. In CSS, the border property creates a delineation around HTML elements, enhancing aesthetics and usability. This article will explore the essential border properties in CSS and the additional features introduced with CSS3.</p>
<h3>Padding</h3>
<p>Padding has its 4 properties padding-top, padding-right, padding-bottom &amp; padding-left. This can be used using following CSS syntax.</p>
<p>Padding is a CSS property that defines the space inside an element, effectively pushing the content away from the edges of the container. This space can be adjusted independently on all four sides of the element—top, right, bottom, and left—allowing for greater control over the look and feel of your design.</p>
<pre class="brush: css; title: ; notranslate">.box-model {
padding-top: 100px;
padding-right: 200px;
padding-bottom: 300px;
padding-left: 400px;
}</pre>
<p>When designing for various screen sizes, it’s important to consider how padding will adapt. Using relative units such as percentages or `em` values instead of fixed units like pixels can provide a more responsive design. This way, padding will adjust according to the screen size, maintaining the <a href="https://jharaphula.com/how-to-arrange-furniture-in-a-square-living-room/">intended layout across</a> devices.</p>
<p>By declaring only padding it apply the same value for each of the above 4 properties.</p>
<pre class="brush: css; title: ; notranslate">.box-model {
padding: 100px;
}</pre>
<p>You can also declare padding using the following CSS syntax. Here the sequence is top, right, bottom &amp; left. I mean clock-wise.</p>
<pre class="brush: css; title: ; notranslate">.box-model { Padding: 100px 200px 300px 400px; }</pre>
<h3>Border</h3>
<p>Borders are an essential aspect of web design, allowing designers to define spaces and enhance the visibility of elements. With the basic properties of CSS and the advanced features offered by CSS3, you can achieve intricate designs that not only look good but also improve user navigation and interaction. By mastering border properties, you’ll elevate your web design skills and produce visually stunning websites.</p>
<p>As I discussed above border is the boundary line to your HTML elements. It has several properties. With the advanced version of CSS3 there are some additional properties to border. Here with I am discussing the most common used border properties from CSS &amp; CSS3.</p>
<p><strong>Border Style</strong></p>
<p>Border Style comes with none, dotted, dashed, solid, double, groove, ridge &amp; outset values. The default value for border style is none. Commonly used border styles are solid, dotted &amp; double. We can declare border style using the following CSS syntax.</p>
<pre class="brush: css; title: ; notranslate">.border-style {
    border-style: solid;
}</pre>
<p><strong>Border-width</strong></p>
<p>It provides width to the border of HTML elements. The unit of border-width is pixel. Border width has 3 per-defined properties. Thin, medium &amp; thick. We can declare CSS border width using the following Syntax.</p>
<pre class="brush: css; title: ; notranslate">.border-style {
    border-style: solid;
    border-width: thin;
}</pre>
<p>or</p>
<pre class="brush: css; title: ; notranslate">.border-style {
    border-style: solid;
    border-width: 2px;
}</pre>
<p>Remember if you only apply border-width to your class it will not show you the border. Because by default border-style is none.</p>
<p><strong>Border Color</strong></p>
<p>This property of border helps to update the border color. The following CSS syntax we used to achieve border colors.</p>
<pre class="brush: css; title: ; notranslate">.border-style {
    border-style: solid;
    border-width: 2px;
    border-color: red;
}</pre>
<p>In CSS3 the additional border properties are border-radius, box-shadow &amp; border-image. These properties works for IE 9 &amp; the higher version of IE 9.</p>
<h3>Margin</h3>
<p>Like the padding margin has its 4 properties. Margin-top, margin-right, margin-bottom &amp; margin-left. This can be used using the following CSS syntax.</p>
<p>In CSS, margin refers to the outer space surrounding an element. It effectively creates a buffer zone between different elements on a web page, allowing designers to adjust how close or far apart elements are from each other. This can enhance layout and organization, which is vital for providing a smooth user experience.</p>
<pre class="brush: css; title: ; notranslate">.box-model {
margin-top: 100px;
margin-right: 200px;
margin-bottom: 300px;
margin-left: 400px;
}</pre>
<p>Understanding how to effectively use margins is a fundamental skill for web designers and developers. By controlling the space around elements, you can create visually appealing layouts that improve readability and user interaction. Whether you&#8217;re crafting a simple blog or a complex web application, mastering the margin properties in CSS will undoubtedly elevate the quality of your design. Remember to experiment with different values and combinations to find what best suits your content and overall aesthetic!</p>
<p>By declaring only margin it apply the same value for each of the above 4 properties.</p>
<pre class="brush: css; title: ; notranslate">.box-model {
margin: 100px;
}</pre>
<p>You can also declare margin using the following CSS syntax. Here the sequence is top, right, bottom &amp; left. I mean clock-wise.</p>
<pre class="brush: css; title: ; notranslate">.box-model { margin: 100px 200px 300px 400px; }</pre>
<p>Refer CSS <a href="https://www.w3schools.com/css/css_boxmodel.asp" target="_blank" rel="noopener noreferrer nofollow">Box Model</a> from w3schools</p>
<p>The post <a href="https://jharaphula.com/brief-about-css-box-model/">Padding, Border and Margin properties from CSS Box Model</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://jharaphula.com/brief-about-css-box-model/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			<media:content url="https://jharaphula.com/wp-content/uploads/2016/05/box-model.gif" medium="image" />
	</item>
		<item>
		<title>Tricks behind CSS Position Property values Absolute and Fixed</title>
		<link>https://jharaphula.com/css-div-position-property/</link>
					<comments>https://jharaphula.com/css-div-position-property/#respond</comments>
		
		<dc:creator><![CDATA[Nibedita Panda]]></dc:creator>
		<pubDate>Tue, 10 May 2016 17:32:25 +0000</pubDate>
				<category><![CDATA[CSS Tricks with Examples]]></category>
		<category><![CDATA[CSS Position Property]]></category>
		<category><![CDATA[HTML elements]]></category>
		<category><![CDATA[Property in CSS]]></category>
		<guid isPermaLink="false">http://box.jharaphula.com/?p=201</guid>

					<description><![CDATA[<img width="300" height="188" src="https://jharaphula.com/wp-content/uploads/2016/05/css-position-properties-300x188.png" class="webfeedsFeaturedVisual wp-post-image" alt="Tricks behind CSS Position Property values Absolute, Relative and Fixed" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/css-position-properties-300x188.png 300w, https://jharaphula.com/wp-content/uploads/2016/05/css-position-properties.png 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>The time we are designing a HTML page for more complex layout we do refer position using CSS. Basically this is used to position the...</p>
<p>The post <a href="https://jharaphula.com/css-div-position-property/">Tricks behind CSS Position Property values Absolute and Fixed</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></description>
										<content:encoded><![CDATA[<img width="300" height="188" src="https://jharaphula.com/wp-content/uploads/2016/05/css-position-properties-300x188.png" class="webfeedsFeaturedVisual wp-post-image" alt="Tricks behind CSS Position Property values Absolute, Relative and Fixed" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/css-position-properties-300x188.png 300w, https://jharaphula.com/wp-content/uploads/2016/05/css-position-properties.png 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>The time we are designing a HTML page for more complex layout we do refer position using CSS. Basically this is used to position the HTML elements. There are 6 possible values for position property in CSS. By default position is static. According to our requirements we can apply absolute, relative, fixed, initial &amp; inherit values to the position property in CSS.</p>
<p>Cascading Style Sheets (CSS) is a fundamental technology used to control the layout and presentation of web pages. Among its many properties, the `position` property is one of the most powerful yet often misunderstood. It determines how an element is positioned within a document, influencing its relationship with other elements and the viewport. The three most commonly used values—`absolute`, `relative`, and `fixed`—each serve distinct purposes in web design. Understanding these values is crucial for creating flexible and responsive layouts.</p>
<h3>Position: static;</h3>
<p>This is the default value for position property. By declaring position static it will render the HTML elements in order to the document flow.</p>
<h3>Position: absolute;</h3>
<p>Position absolute is the most trickiest positioning value. Let us take example to understand position absolute. In below example I am using position absolute for a div inside the div which is position relative.</p>
<p>The &#8216;position: absolute&#8217; value removes an element from the normal document flow, allowing it to be placed anywhere within its closest positioned ancestor (an element with a `position` value other than &#8216;static&#8217;).</p>
<p><strong>Key Characteristics of &#8216;position: absolute&#8217;:</strong></p>
<p>1. Breaks Document Flow – The element no longer affects the position of other elements, which may overlap or collapse into the space it once occupied.</p>
<p>2. Uses Nearest Positioned Parent – If a parent element has `relative`, `absolute`, or `fixed` positioning, the child element is positioned relative to that parent. Otherwise, it uses the document body.</p>
<pre class="brush: xml; title: ; notranslate">&lt;!DOCTYPE html&gt;
&lt;html&gt;
&lt;head&gt;
&lt;title&gt;Using Position Absolute&lt;/title&gt;
&lt;style type=&quot;text/css&quot;&gt;
.posRelative { position: relative; top: 100px; left: 100px; }
.posAbsolute { position: absolute; top: 100px; left: 100px; }
&lt;/style&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;div class=&quot;posRelative&quot;&gt;
&lt;div class=&quot;posAbsolute&quot;&gt;
This is the div where we applied position absolute.
&lt;/div&gt;
&lt;/div&gt;
&lt;/body&gt;
&lt;/html&gt;</pre>
<p>This will give us first div in 100px left &amp; 100px from top position. The second div is applied with position absolute. In real-time the second div will appear 100px left &amp; top from the parent div.</p>
<p>If i am declaring the parent div position static then child div with position absolute will show in 100px top &amp; left from the top left corner of the browser window. Try with the example below.</p>
<pre class="brush: xml; title: ; notranslate">&lt;!DOCTYPE html&gt;
&lt;html&gt;
&lt;head&gt;
&lt;title&gt;Using Position Absolute&lt;/title&gt;
&lt;style type=&quot;text/css&quot;&gt;
.posStatic { position: static; top: 100px; left: 100px; }
.posAbsolute { position: absolute; top: 100px; left: 100px; }
&lt;/style&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;div class=&quot;posStatic&quot;&gt;
&lt;div class=&quot;posAbsolute&quot;&gt;
This is the div where we applied position absolute.
&lt;/div&gt;
&lt;/div&gt;
&lt;/body&gt;
&lt;/html&gt;</pre>
<h3>Position: fixed;</h3>
<p>Using position fixed we can set position of our <a href="https://jharaphula.com/list-of-html5-new-tags/" target="_blank" rel="noopener noreferrer">HTML element</a> from the top left corner of browser window.</p>
<p>The &#8216;position: fixed&#8217; value anchors an element to the viewport, meaning it remains in the same position even when the page is scrolled. This is commonly used for navigation bars, headers, or sticky elements.</p>
<p><strong>Key Characteristics of &#8216;position: fixed&#8217;:</strong></p>
<p>1. Viewport-Relative – The element is positioned relative to the browser window, not any parent container.</p>
<p>2. Stays in Place During Scrolling – Unlike &#8216;absolute&#8217; positioning, a fixed element does not move when the user scrolls.</p>
<p>3. Ignores Parent Elements – Even if a parent has &#8216;relative&#8217; or &#8216;absolute&#8217; positioning, the fixed element remains tied to the viewport.</p>
<h3>Position: relative;</h3>
<p>Using position relative the position is relative to its normal position. If I am declaring top:100px it will take the element to 100px down.</p>
<p>The &#8216;position: relative&#8217; value positions an element relative to its normal position in the document flow. Unlike &#8216;static&#8217; positioning, which does not allow adjustments via properties like &#8216;top&#8217;, &#8216;right&#8217;, &#8216;bottom&#8217;, or &#8216;left&#8217;, &#8216;relative&#8217; positioning enables fine-tuning an element&#8217;s placement.</p>
<p>Key Characteristics of &#8216;position: relative&#8217;:</p>
<p>1. Maintains Document Flow – The element remains in the normal flow, and surrounding elements behave as if it were in its original position.</p>
<p>2. Offset Adjustments – Using &#8216;top&#8217;, &#8216;bottom&#8217;, &#8216;left&#8217;, or &#8216;right&#8217; shifts the element from its default position.</p>
<p>3. Reference Point – The element&#8217;s new position is calculated based on where it would have been in the normal flow.</p>
<h3>Position: initial;</h3>
<p>Initial reset the position of an element to default value.</p>
<h3>Position: inherit;</h3>
<p>Using position inherit we can inherits this property from parent element. You can access CSS position property using JavaScript. The syntax we need to use is object.style.position=&#8221;fixed&#8221;.</p>
<h2>Common Mistakes</h2>
<p>1. Overusing Absolute Positioning – Excessive use can lead to layout instability, especially on responsive designs.</p>
<p>2. Forgetting a Positioned Parent – An `absolute` element without a positioned ancestor may appear in unexpected locations.</p>
<p>3. Ignoring Z-Index – Positioned elements can overlap; using `z-index` ensures proper layering.</p>
<h2>Conclusion</h2>
<p>Understanding the CSS &#8216;position&#8217; property is essential for mastering web layout design. By carefully selecting the appropriate positioning method and avoiding common pitfalls, designers can build more flexible and maintainable web pages. Whether aligning elements within a container or keeping a navigation bar visible at all times, mastering these techniques is a cornerstone of effective CSS development.</p>
<p>The post <a href="https://jharaphula.com/css-div-position-property/">Tricks behind CSS Position Property values Absolute and Fixed</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://jharaphula.com/css-div-position-property/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			<media:content url="https://jharaphula.com/wp-content/uploads/2016/05/css-position-properties.png" medium="image" />
	</item>
		<item>
		<title>How to drawimage on HTML5 Canvas using Scripting?</title>
		<link>https://jharaphula.com/drawimage-on-html5-canvas/</link>
					<comments>https://jharaphula.com/drawimage-on-html5-canvas/#respond</comments>
		
		<dc:creator><![CDATA[Biswabhusan Panda]]></dc:creator>
		<pubDate>Tue, 10 May 2016 16:47:07 +0000</pubDate>
				<category><![CDATA[Learn HTML5 with Examples]]></category>
		<category><![CDATA[Canvas in HTML5]]></category>
		<category><![CDATA[HTML5 Canvas]]></category>
		<category><![CDATA[Two-dimensional Grid]]></category>
		<guid isPermaLink="false">http://box.jharaphula.com/?p=170</guid>

					<description><![CDATA[<img width="300" height="175" src="https://jharaphula.com/wp-content/uploads/2016/05/HTML5-How-to-Draw-Shapes-on-Canvas-300x175.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="How to drawimage on HTML5 Canvas using Scripting?" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/HTML5-How-to-Draw-Shapes-on-Canvas-300x175.jpg 300w, https://jharaphula.com/wp-content/uploads/2016/05/HTML5-How-to-Draw-Shapes-on-Canvas.jpg 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>In HTML5 Canvas is a newly introduced tag which consists of width &#38; height attributes. It is specially designed to handle Graphics in HTML5. Canvas...</p>
<p>The post <a href="https://jharaphula.com/drawimage-on-html5-canvas/">How to drawimage on HTML5 Canvas using Scripting?</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></description>
										<content:encoded><![CDATA[<img width="300" height="175" src="https://jharaphula.com/wp-content/uploads/2016/05/HTML5-How-to-Draw-Shapes-on-Canvas-300x175.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="How to drawimage on HTML5 Canvas using Scripting?" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/HTML5-How-to-Draw-Shapes-on-Canvas-300x175.jpg 300w, https://jharaphula.com/wp-content/uploads/2016/05/HTML5-How-to-Draw-Shapes-on-Canvas.jpg 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>In HTML5 Canvas is a newly introduced tag which consists of width &amp; height attributes. It is specially designed to handle Graphics in HTML5. <strong>Canvas is a two-dimensional grid</strong>. We can draw graphs, animations, games &amp; many other graphical shapes using JavaScript (<em>Or any Client Side Scripts</em>) on a Canvas. Canvas is the next generation of SVG. <strong>SVG supports vector based graphics where Canvas supports raster based graphics</strong>. SVG supports event handler while Canvas doesn&#8217;t supports event handling. Compare to SVG Canvas is less text rendering capability. Canvas renders pixel by pixel. Once we a draw a graphics in Canvas browser forget this. If we want to change or update some thing to the existing graphics on the canvas we need to re-draw the graphics once again.</p>
<h3>How to declare a Canvas in HTML5?</h3>
<p>Assume in your HTML page you want to draw a graph for area 300 x 250. In this case you can declare a canvas in HTML body part with width 300px &amp; height 250px. Look at the sample below how to declare canvas element in a html document. Always practice to write &#8220;Your browser does not support <a href="https://jharaphula.com/list-of-html5-new-tags/" rel="noopener noreferrer" target="_blank">HTML5</a> Canvas.&#8221; in between the canvas tag. This message will show if your browser not supports canvas.</p>
<pre class="brush: xml; title: ; notranslate">&lt;canvas id=&quot;mycanvas&quot; width=&quot;300&quot; height=&quot;250&quot;&gt;
Your browser does not support HTML5 Canvas.
&lt;/canvas&gt;</pre>
<h3>How to Draw a rectangle?</h3>
<p>As we discussed above we can draw graphics on canvas using client scripts (JavaScript or Jquery). In the below example I used JavaScript to draw a rectangle. Here &#8220;mycanvas&#8221; is the id of HTML5 Canvas control. Using document object model (DOM) getElementById() method I am fetching the canvas control to my JavaScript code. Then using getContext(&#8216;2d&#8217;) I am instructing my Canvas to draw 2D Graphs. To create a rectangle I used fillRect() method. Which <strong>accepts 4 parameters as x1, y1 &amp; x2, y2 as the rectangle areas</strong>. To fill color to my Rectangle I am using fillStyle() method.</p>
<pre class="brush: jscript; title: ; notranslate">var mycanvas = document.getElementById('mycanvas');
var context = mycanvas.getContext('2d');
context.fillStyle = 'blue';
context.fillRect(20, 20, 80, 80);</pre>
<p>While drawing graphics on a html page if required you can have multiple &lt;canvas&gt; elements in a single HTML5 page. Using different ids you can render each individual canvas from Client Scripts.</p>
<h3>How to Draw a line?</h3>
<p>In the below example I am drawing a line from the point 0, 0 to 200, 100. The method I used to draw the line is lineTo(x, y). Like the above here c is a JavaScript variable which holds the Canvas. Using getContext(&#8216;2d&#8217;) I am instructing the canvas to draw 2d graphs. Here line is a 2d graph. <strong>To draw the line initially I set my starting point using moveTo() method. Then applying lineTo() method.</strong> This mean from 0,0 to 200, 100 line will draw.</p>
<pre class="brush: jscript; title: ; notranslate">var c = document.getElementById(&quot;mycanvas&quot;);
var ctx = c.getContext(&quot;2d&quot;);
ctx.moveTo(0,0);
ctx.lineTo(200,100);
ctx.stroke();</pre>
<h3>How to Draw a Circle?</h3>
<p>To draw a circle using HTML5 Canvas element look at the below example. Here I used Arc() method to draw a circle. HTML5 Canvas Arc() method accepts 6 parameters. Initial 2 parameters are for x &amp; y axis. Third parameter is the radius of Arc. From the below code 0 &amp; 2*Math.PI are the starting &amp; ending angles. Last parameter of a Arc() method is a optional parameter. This param says is the Arc is clockwise or anti-clock wise. This parameter accepts Boolean values. </p>
<pre class="brush: jscript; title: ; notranslate">var c = document.getElementById(&quot;mycanvas&quot;);
var ctx = c.getContext(&quot;2d&quot;);
ctx.beginPath();
ctx.arc(95, 50, 40, 0, 2*Math.PI, true);
ctx.stroke();</pre>
<h3>How to print text using HTML5 Canvas?</h3>
<p>To draw a text or label using HTML5 Canvas here I used fillText() method. Using font we can set style for our text. In the below example I declared font as &#8220;20px Arial&#8221;. It means while rendering font-size will show 20px &amp; the font-family is Arial. <strong>FillText() method accepts 3 parameters</strong>. First one is the text string, I mean which text you want to display on your canvas. Then the 2nd &amp; 3rd parameters says the position of text on Canvas.</p>
<pre class="brush: jscript; title: ; notranslate">var c = document.getElementById(&quot;mycanvas&quot;);
var ctx = c.getContext(&quot;2d&quot;);
ctx.font = &quot;20px Arial&quot;;
ctx.fillText(&quot;Your Name&quot;,20,90);</pre>
<p>The post <a href="https://jharaphula.com/drawimage-on-html5-canvas/">How to drawimage on HTML5 Canvas using Scripting?</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://jharaphula.com/drawimage-on-html5-canvas/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			<media:content url="https://jharaphula.com/wp-content/uploads/2016/05/HTML5-How-to-Draw-Shapes-on-Canvas.jpg" medium="image" />
	</item>
		<item>
		<title>Cross Browser Compatibility CSS Hacks (IE, FireFox, Chrome, Safari)</title>
		<link>https://jharaphula.com/cross-browser-compatibility-css-hacks/</link>
					<comments>https://jharaphula.com/cross-browser-compatibility-css-hacks/#respond</comments>
		
		<dc:creator><![CDATA[Biswabhusan Panda]]></dc:creator>
		<pubDate>Tue, 10 May 2016 14:03:14 +0000</pubDate>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Browser Compatibility Issues]]></category>
		<category><![CDATA[Cross Browser]]></category>
		<category><![CDATA[CSS Hacks]]></category>
		<category><![CDATA[UI Inconsistency]]></category>
		<guid isPermaLink="false">http://box.jharaphula.com/?p=123</guid>

					<description><![CDATA[<img width="300" height="181" src="https://jharaphula.com/wp-content/uploads/2016/05/cross-browser-300x181.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="Cross Browser Compatibility CSS Hacks (IE, FireFox, Chrome, Safari)" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/cross-browser-300x181.jpg 300w, https://jharaphula.com/wp-content/uploads/2016/05/cross-browser.jpg 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>Today with the growing internet network we have variety of Browsers to access http. Few popular browsers are Internet Explore, Firefox, Safari, Google Chrome etc....</p>
<p>The post <a href="https://jharaphula.com/cross-browser-compatibility-css-hacks/">Cross Browser Compatibility CSS Hacks (IE, FireFox, Chrome, Safari)</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></description>
										<content:encoded><![CDATA[<img width="300" height="181" src="https://jharaphula.com/wp-content/uploads/2016/05/cross-browser-300x181.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="Cross Browser Compatibility CSS Hacks (IE, FireFox, Chrome, Safari)" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/cross-browser-300x181.jpg 300w, https://jharaphula.com/wp-content/uploads/2016/05/cross-browser.jpg 750w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>Today with the growing internet network we have variety of Browsers to access http. Few popular browsers are <strong>Internet Explore</strong>, <strong>Firefox</strong>, <strong>Safari</strong>, <strong>Google Chrome</strong> etc. When we are releasing a website or any web product at that time we are fetching variety of users from many locations of globe. Some body uses IE (<em>Internet Explore</em>) or some body with Mozilla Firefox to access <a href="https://jharaphula.com/sitemap/" rel="noopener noreferrer" target="_blank">our web resources</a>. Here point comes about Cross Browser Compatibility.</p>
<p>First let us discuss what is Cross Browser Compatibility. In simple Cross Browser Compatibility says is the page user is watching compatible to all browsers available in the market. Is the page <a href="https://jharaphula.com/user-interface-design-sdlc-phases/" rel="noopener noreferrer" target="_blank">User Interface (UI)</a> is running properly or is there any functionality breaks for any specific browser. Take an example about PNG Transparency image file. In case of Mozilla Firefox it is showing correct transparency but in IE its not. Like this many Browser Compatibility issues we faced in our day today Developments. Watch the list below for major Cross Browser Compatibility issues.</p>
<ul>
<li>UI Inconsistency</li>
<li>Image Rendering</li>
<li>Font Rendering</li>
<li>Font Size</li>
<li>Clearing Floats</li>
<li>PNG image Transparency</li>
</ul>
<h3>UI Inconsistency</h3>
<p>As a <a href="https://jharaphula.com/how-to-become-a-programmer/" rel="noopener noreferrer" target="_blank">developer</a> you marked many time the UI you designed is looking great in Firefox but the time you are watching the same page in IE or Safari it is getting disturbed. These issues are related to Style-sheets. <strong>It can be fixed using CSS Hacks</strong>. In below I am sharing major attribute CSS hacks for most common used Browsers.</p>
<pre class="brush: css; title: ; notranslate">/* CSS Hack for IE6 */
#myClass { _color: red }

/* CSS Hack for IE6, IE7 */
# myClass { *color: blue; /* or #color: blue */ }

/* Everything but IE6 */
# myClass { color/**/: blue }

/* CSS Hack for IE6, IE7, IE8 */
# myClass { color: blue\9; }

/* CSS Hack for IE7, IE8 */
# myClass { color/*\**/: blue\9; }

/* CSS Hack for IE6, IE7 -- acts as an !important */
# myClass { color: blue !ie; }

/* CSS Hack for Mozilla Firefox */
-moz-border-radius: 0 0 0 0;

/* CSS Hack for Google Chrome */
-webkit-border-radius: 0 0 0 0;</pre>
<h3>Image Rendering</h3>
<p>Image Rendering is an another browser compatibility issue. To avoid this use proper sized images in your app. Don&#8217;t try to re-size the image using programming.</p>
<h3>Font Rendering</h3>
<p>In several browser font renders differently. For an example if you found your Font is having a unnecessary shadow effect use the following to prevent this.</p>
<p>Text-shadow: #000 0 0 0;</p>
<h3>Font-Size</h3>
<p>About font-size Browser Compatibility issue many browsers are rendering font-size differently. To fix this issue you need to specify the font size as a percentage in the body element then size it in em’s through the rest of the sheet. For line height, you need to define it in em’s, rather than pixels, for consistent rendering.</p>
<h3>Clearing Floats</h3>
<p>There are a few different solutions for clearing. The best solution however, is a simple overflow: auto or overflow: hidden in your container. Also prefer to use Clear: both when moving from once segment to other in your web app.</p>
<h3>PNG Transparency</h3>
<p>In case of a Transparent png image you can see this is working correct in Firefox rather not working in Internet Explorer. There are a few solutions for this particular Browser Compatibility issue. You can either use AlphaImageLoader for IE specific stylesheet, link to a behavior file in an IE specific style-sheet or use JS to fix the issue. No matter which way you choose; there is no way to have transparent repeating background images.</p>
<p>The post <a href="https://jharaphula.com/cross-browser-compatibility-css-hacks/">Cross Browser Compatibility CSS Hacks (IE, FireFox, Chrome, Safari)</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://jharaphula.com/cross-browser-compatibility-css-hacks/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			<media:content url="https://jharaphula.com/wp-content/uploads/2016/05/cross-browser.jpg" medium="image" />
	</item>
		<item>
		<title>How to Setup &#038; Configure Acrolinx in Windows?</title>
		<link>https://jharaphula.com/how-to-setup-configure-acrolinx/</link>
					<comments>https://jharaphula.com/how-to-setup-configure-acrolinx/#respond</comments>
		
		<dc:creator><![CDATA[Biswabhusan Panda]]></dc:creator>
		<pubDate>Tue, 10 May 2016 13:59:03 +0000</pubDate>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Acrolinx Desktop Checker]]></category>
		<category><![CDATA[Acrolinx in Windows]]></category>
		<category><![CDATA[Configure Acrolinx]]></category>
		<category><![CDATA[Options in Acrolinx]]></category>
		<guid isPermaLink="false">http://box.jharaphula.com/?p=119</guid>

					<description><![CDATA[<img width="300" height="186" src="https://jharaphula.com/wp-content/uploads/2016/05/Configure-Acrolinx-300x186.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="How to Setup &amp; Configure Acrolinx in Windows?" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/Configure-Acrolinx-300x186.jpg 300w, https://jharaphula.com/wp-content/uploads/2016/05/Configure-Acrolinx.jpg 610w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>In real world to optimize Contents is not an easy job. Spell Checking, Grammar like many factors came when we are editing a content based...</p>
<p>The post <a href="https://jharaphula.com/how-to-setup-configure-acrolinx/">How to Setup &#038; Configure Acrolinx in Windows?</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></description>
										<content:encoded><![CDATA[<img width="300" height="186" src="https://jharaphula.com/wp-content/uploads/2016/05/Configure-Acrolinx-300x186.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="How to Setup &amp; Configure Acrolinx in Windows?" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://jharaphula.com/wp-content/uploads/2016/05/Configure-Acrolinx-300x186.jpg 300w, https://jharaphula.com/wp-content/uploads/2016/05/Configure-Acrolinx.jpg 610w" sizes="auto, (max-width: 300px) 100vw, 300px" /><p>In real world to <a href="https://jharaphula.com/content-writing-tips-seo-friendly/" target="_blank" rel="noopener noreferrer">optimize Contents</a> is not an easy job. Spell Checking, Grammar like many factors came when we are editing a content based page. <strong>Acrolinx is a Content Optimization Software</strong>. It helps to point out content errors &amp; sharing suggestions for improvements.</p>
<p>Acrolinx works with many popular writing tools. These are like MS-Office, XML Editors, Desktop <a href="https://jharaphula.com/premium-guest-post-sites/" target="_blank" rel="noopener noreferrer">publishing</a> in Windows &amp; Web CMS.</p>
<h3>Steps to Install Acrolinx</h3>
<p>Before install Acrolinx Client be sure the following points.</p>
<p><span style="color: red;"><strong>1.</strong></span> Is your Operating System is compatible to run Acrolinx? For more, Acrolinx software supports Microsoft Windows XP, Vista &amp; Windows 7.</p>
<p><span style="color: red;"><strong>2.</strong></span> Does the Acrolinx Client Support your native language?</p>
<p><span style="color: red;"><strong>3.</strong></span> Do you know the Address of Acrolinx Server? Acrolinx Client required Acrolinx Server to run.</p>
<p><span style="color: red;"><strong>4.</strong></span> Is your web browser is compatible for Acrolinx operations?</p>
<p>To install with an Acrolinx installer, first close all the programs running under windows. Than double click on Acrolinx installer. Follow the on-screen instructions to have a successful installation. With a successful installation Acrolinx will add a shortcut icon to your Desktop.</p>
<h3>How to Start Acrolinx Software?</h3>
<p>After a successful installation, Acrolinx Desktop Checker icon will look at your system tray, I mean in your notification area. To start Acrolinx automatically when windows starts, right-click on the Acrolinx icon. It will show you the Acrolinx menu. Select &#8220;Start Automatically When Starting Windows&#8221;. Now restart your machine. After reboot you will watch Acrolinx icon in your notification area.</p>
<h3>How to Stop Acrolinx Software?</h3>
<p>To Stop Acrolinx in your machine, Right click on Acrolinx Desktop Checker icon. Click on Exit. It will Stop running Acrolinx more.</p>
<h3>Steps to Register with Acrolinx Server</h3>
<p>To run your Acrolinx Client first time you need to connect Acrolinx Server. To do this right click on Acrolinx Desktop Checker icon located in System Tray. Click option in Acrolinx menu. When you are prompted to enter credentials, please enter your valid Acrolinx Server user id &amp; password. Click OK. Now your Acrolinx Client Software is Register with Acrolinx Server.</p>
<h3>How to update Acrolinx Server Address?</h3>
<p>Right Click on Acrolinx icon in System Tray, Select Options from Acrolinx menu. Inside options click Change Server. In Server Settings window, type the server name &amp; server address to connect. Click on Test Connection Option to confirm whether the connection done or not done.</p>
<h3>How to enable checking options in Acrolinx?</h3>
<p>From Acrolinx menu click options. Then click on check tab, Select the language of the text in language list. Select the type of text in rule set list. Select the following options.</p>
<p><strong>Spelling</strong> to check for spelling related issues.</p>
<p><strong>Grammar</strong> to check for grammar related issues.</p>
<p><strong>Style</strong> to check for style related issues.</p>
<p><strong>Reuse</strong> to check for the correct use of standard sentences which have been identified across a set of documents.</p>
<p><strong>SEO</strong> to check for compliance with individual <a href="https://jharaphula.com/category/free-seo-training-tools/" target="_blank" rel="noopener noreferrer">search engine optimization guidelines</a>. To check Keyword Density. This option is disabled by default the Desktop Checker works with the plain text version of your clipboard contents. To check for SEO, Acrolinx requires contextual information that is only included in formatted text.</p>
<p><strong>Deprecated terms</strong> to check for terms which are deprecated in your terminology database.</p>
<p><strong>Valid terms</strong> to identify terms which are preferred or admitted in the <a href="https://jharaphula.com/database-basics-terminologies-definition/" target="_blank" rel="noopener noreferrer">terminology database</a>. If your administrator has enabled checking for admitted terms, select the valid terms option to check for preferred terms only.</p>
<p><strong>Admitted terms</strong> to check for terms which are admitted in your terminology database.</p>
<p>Your Acrolinx Server administrator must enable this option. Your administrator can also customize the name of the Admitted terms option, so this option might have different name in your installation of the Acrolinx client software.</p>
<p><strong>New terms</strong> to identify terms as candidates to add to the terminology database. Your Acrolinx Server administrator must enable this option.</p>
<p>Click OK.</p>
<p>For more, please Refer <a href="http://www.acrolinx.com" target="_blank" rel="noopener noreferrer nofollow">http://www.acrolinx.com</a></p>
<p>The post <a href="https://jharaphula.com/how-to-setup-configure-acrolinx/">How to Setup &#038; Configure Acrolinx in Windows?</a> appeared first on <a href="https://jharaphula.com">OneStop Shop</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://jharaphula.com/how-to-setup-configure-acrolinx/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			<media:content url="https://jharaphula.com/wp-content/uploads/2016/05/Configure-Acrolinx.jpg" medium="image" />
	</item>
	</channel>
</rss>
