SlideShare a Scribd company logo
1 of 11
Previewing JSBin output in mobile
devices using Adobe Edge Inspect
For the full blog post visit this link:


When Adobe renamed Shadow to Edge Inspect, one of the major changes that
happened was the integration of JSBin into Edge Inspect. What this means is that
whatever proof of concepts (also called Bins as per JSBin terminology) you have
created with JSBin, you can remotely preview it directly in your mobile devices without
any additional set up required.
If you haven’t tried JSBin yet, then let me introduce it to you. JSBin is a free online tool
with which you can create HTML based small POC’s, test examples or I should say
small mockup kind of applications. You can edit the HTML, CSS, Javascript and see the
changes real time in your browser itself. JSBin is kind of a development environment
wherein it has the HTML, CSS and JS editors where you write code for your example
app. It also has the console panel for viewing javascript console logs and the the Output
panel for previewing the result of your code. All these panels are integrated into one
place and as you make changes to your code you can see the result in real time. Very
handy. I found it useful for my mobile web apps. But then it is a tool which is on the
small scale development side. So it doesn’t have all the fancy features of a typical IDE.
Once you create your POC’s or Bins you can even share them. So in case JSBin
sounds interesting to you, go ahead and start using it. Create your account
at http://jsbin.com/ and start making some apps. The interface looks like the image
shown below, (all the help can be found online at jsbin.com)
Coming back to remotely previewing JSBin outputs on mobile devices, Adobe Edge
Inspect is going to take care of that. So first open your JSBin Bins in Chrome. Start
Edge Inspect in your computer. Pair your mobile device with your computer. After your
mobile device is paired and connected you will be seeing the Bin output directly in your
mobile device. As you go on to make changes in your Bin in Chrome, the changes are
reflected in your paired mobile device as well. In case you are not sure of how to pair
mobile devices with your computer using Edge Inspect/ Shadow and remotely preview
mobile web apps, you can start here.
This post is not a tutorial on Edge Inspect/Shadow or how to use JSBin. Rather, in this
post I am going to run through a series of screenshots with explanation on how I used
JSBin to create a simple app and then previewing the changes in mobile device using
Edge Inspect. So let’s get started,


I created a very simple example with two div elements and then giving them some
background colors. All the HTML, CSS have been compiled in JSBin by browsing to
JSBin in Google Chrome. The output is shown on the right. The screenshot below
shows it
Using Edge Inspect I have paired my iPod touch with my computer and as a result my
iPod touch browses in sync with my computer. As I said earlier, I have opened JSBin in
Chrome, since Edge Inspect is compatible only with Chrome. Now that my mobile is
connected to my computer, whatever link I browse in Chrome it is opened in my iPod
also. So I can see the output in my iPod as well. This is how it looks,




You may notice the app is not scaled up properly in my iPod. That’s because I have not
added the viewport meta tag in my HTML. So let’s add the viewport tag in JSBin,
And immediately Edge Inspect responds by reflecting the changes in my iPod. This is
how it looks now,




                              The app scales up nicely to device width because of the
meta tag in JSBin. Next I made some changes to the CSS – changed the width property
to 50% for the div blocks. The output was immediately rendered in JSBin and also my
iPod. The two screenshot shows it,




Then I made a change in the HTML code. I added a text node to the second div. The
result was rendered in JSBin as well as my iPod immediately. The two screenshots
below shows it,
And then finally I added some javascript in JSBin for my example. I added a click event
to the first div – div1. When clicked it will display a log message in the console panel. I
first tested this out in JSBin itself and the screenshot below shows my findings, you can
see the console messages generated in the Console panel.
To test things out remotely in my iPod, I opened the weinre web inspector in my
computer by clicking on Remote Inspection in the Edge Inspect Chrome extension.
Then I opened the Console tab and clicked/tapped on Div1 in my iPod. I instantly saw
the console messages being printed in the weinre web inspector,




So I was able to generate console messages remotely from my iPod. Now, to actually
debug and inspect the JSBin app in my mobile I can use the weinre web inspector to
remotely test it. Opening the Elements tab in web inspector shows the HTML structure
of the app. And then selecting any element in the weinre web inspector will immediately
highlight the element in the iPod. The two screenshot below shows it. You can make
changes to the HTML, CSS and see the results directly in your mobile device. I will not
go into debugging and testing as my previous post talks on this.
Edge Inspect running in Chrome actually sends and opens the preview URL of your
Bins (JSBin app) in the paired mobile devices. This is how you actually see the results
in your mobile device. The preview URL and the browser preview of your Bin can be
seen by clicking on the Preview button inside JSBin. The screenshot below shows it.




These were some of the use cases that I have tried to cover. With JSBin integrated to
Edge Inspect you can preview your Bins in your paired mobile devices and remotely
inspect and debug them. When you make changes to your Bins in Chrome they are
updated in your paired devices too. So whatever you create in JSBin you can live
preview it in your mobile devices as well.


Here is the official blog post from Adobe that talks on JSBin and Edge Inspect
- http://blogs.adobe.com/edgeinspect/2012/10/05/edge-inspect-js-bin/
And below are some of my previous posts that should help you get started with Edge
Inspect, Weinre and mobile web debugging in general


1.     Debugging mobile web applications remotely with
Weinre : http://jbkflex.wordpress.com/2012/04/12/debug-mobile-web-applications-
remotely-with-weinre/
2.     Adobe Shadow – another way of remote debugging mobile web
apps in iOS and Android : http://jbkflex.wordpress.com/2012/04/16/adobe-
shadow-another-way-of-remote-debugging-mobile-web-apps-in-ios-and-android/
3.    Use your own Weinre server with Adobe Shadow – Step by
step : http://jbkflex.wordpress.com/2012/08/28/use-your-own-weinre-server-with-
adobe-shadow-step-by-step/
4.    WEINRE – Web Inspector Remote Video by Patrick
Mueller : http://jbkflex.wordpress.com/2012/09/18/weinre-web-inspector-remote-
video-by-patrick-mueller/

More Related Content

Recently uploaded

Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j
 
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Paola De la Torre
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking MenDelhi Call girls
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024The Digital Insurer
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024The Digital Insurer
 
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...gurkirankumar98700
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreternaman860154
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountPuma Security, LLC
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure servicePooja Nehwal
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityPrincipled Technologies
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...Neo4j
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Enterprise Knowledge
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Scriptwesley chun
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Miguel Araújo
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptxHampshireHUG
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 

Recently uploaded (20)

Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
 
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 

Featured

Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsPixeldarts
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthThinkNow
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfmarketingartwork
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024Neil Kimberley
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)contently
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024Albert Qian
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsKurio // The Social Media Age(ncy)
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Search Engine Journal
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summarySpeakerHub
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next Tessa Mero
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentLily Ray
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best PracticesVit Horky
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project managementMindGenius
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...RachelPearson36
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Applitools
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at WorkGetSmarter
 

Featured (20)

Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
 

Previewing JSBin output in mobile devices using Adobe Edge Inspect

  • 1. Previewing JSBin output in mobile devices using Adobe Edge Inspect For the full blog post visit this link: When Adobe renamed Shadow to Edge Inspect, one of the major changes that happened was the integration of JSBin into Edge Inspect. What this means is that whatever proof of concepts (also called Bins as per JSBin terminology) you have created with JSBin, you can remotely preview it directly in your mobile devices without any additional set up required. If you haven’t tried JSBin yet, then let me introduce it to you. JSBin is a free online tool with which you can create HTML based small POC’s, test examples or I should say small mockup kind of applications. You can edit the HTML, CSS, Javascript and see the changes real time in your browser itself. JSBin is kind of a development environment wherein it has the HTML, CSS and JS editors where you write code for your example app. It also has the console panel for viewing javascript console logs and the the Output panel for previewing the result of your code. All these panels are integrated into one place and as you make changes to your code you can see the result in real time. Very handy. I found it useful for my mobile web apps. But then it is a tool which is on the small scale development side. So it doesn’t have all the fancy features of a typical IDE. Once you create your POC’s or Bins you can even share them. So in case JSBin sounds interesting to you, go ahead and start using it. Create your account at http://jsbin.com/ and start making some apps. The interface looks like the image shown below, (all the help can be found online at jsbin.com)
  • 2. Coming back to remotely previewing JSBin outputs on mobile devices, Adobe Edge Inspect is going to take care of that. So first open your JSBin Bins in Chrome. Start Edge Inspect in your computer. Pair your mobile device with your computer. After your mobile device is paired and connected you will be seeing the Bin output directly in your mobile device. As you go on to make changes in your Bin in Chrome, the changes are reflected in your paired mobile device as well. In case you are not sure of how to pair mobile devices with your computer using Edge Inspect/ Shadow and remotely preview mobile web apps, you can start here. This post is not a tutorial on Edge Inspect/Shadow or how to use JSBin. Rather, in this post I am going to run through a series of screenshots with explanation on how I used JSBin to create a simple app and then previewing the changes in mobile device using Edge Inspect. So let’s get started, I created a very simple example with two div elements and then giving them some background colors. All the HTML, CSS have been compiled in JSBin by browsing to JSBin in Google Chrome. The output is shown on the right. The screenshot below shows it
  • 3. Using Edge Inspect I have paired my iPod touch with my computer and as a result my iPod touch browses in sync with my computer. As I said earlier, I have opened JSBin in Chrome, since Edge Inspect is compatible only with Chrome. Now that my mobile is connected to my computer, whatever link I browse in Chrome it is opened in my iPod also. So I can see the output in my iPod as well. This is how it looks, You may notice the app is not scaled up properly in my iPod. That’s because I have not added the viewport meta tag in my HTML. So let’s add the viewport tag in JSBin,
  • 4. And immediately Edge Inspect responds by reflecting the changes in my iPod. This is how it looks now, The app scales up nicely to device width because of the meta tag in JSBin. Next I made some changes to the CSS – changed the width property to 50% for the div blocks. The output was immediately rendered in JSBin and also my
  • 5. iPod. The two screenshot shows it, Then I made a change in the HTML code. I added a text node to the second div. The result was rendered in JSBin as well as my iPod immediately. The two screenshots below shows it,
  • 6. And then finally I added some javascript in JSBin for my example. I added a click event to the first div – div1. When clicked it will display a log message in the console panel. I first tested this out in JSBin itself and the screenshot below shows my findings, you can see the console messages generated in the Console panel.
  • 7. To test things out remotely in my iPod, I opened the weinre web inspector in my computer by clicking on Remote Inspection in the Edge Inspect Chrome extension. Then I opened the Console tab and clicked/tapped on Div1 in my iPod. I instantly saw the console messages being printed in the weinre web inspector, So I was able to generate console messages remotely from my iPod. Now, to actually
  • 8. debug and inspect the JSBin app in my mobile I can use the weinre web inspector to remotely test it. Opening the Elements tab in web inspector shows the HTML structure of the app. And then selecting any element in the weinre web inspector will immediately highlight the element in the iPod. The two screenshot below shows it. You can make changes to the HTML, CSS and see the results directly in your mobile device. I will not go into debugging and testing as my previous post talks on this.
  • 9.
  • 10. Edge Inspect running in Chrome actually sends and opens the preview URL of your Bins (JSBin app) in the paired mobile devices. This is how you actually see the results in your mobile device. The preview URL and the browser preview of your Bin can be seen by clicking on the Preview button inside JSBin. The screenshot below shows it. These were some of the use cases that I have tried to cover. With JSBin integrated to Edge Inspect you can preview your Bins in your paired mobile devices and remotely inspect and debug them. When you make changes to your Bins in Chrome they are updated in your paired devices too. So whatever you create in JSBin you can live preview it in your mobile devices as well. Here is the official blog post from Adobe that talks on JSBin and Edge Inspect - http://blogs.adobe.com/edgeinspect/2012/10/05/edge-inspect-js-bin/ And below are some of my previous posts that should help you get started with Edge Inspect, Weinre and mobile web debugging in general 1. Debugging mobile web applications remotely with Weinre : http://jbkflex.wordpress.com/2012/04/12/debug-mobile-web-applications- remotely-with-weinre/ 2. Adobe Shadow – another way of remote debugging mobile web apps in iOS and Android : http://jbkflex.wordpress.com/2012/04/16/adobe- shadow-another-way-of-remote-debugging-mobile-web-apps-in-ios-and-android/
  • 11. 3. Use your own Weinre server with Adobe Shadow – Step by step : http://jbkflex.wordpress.com/2012/08/28/use-your-own-weinre-server-with- adobe-shadow-step-by-step/ 4. WEINRE – Web Inspector Remote Video by Patrick Mueller : http://jbkflex.wordpress.com/2012/09/18/weinre-web-inspector-remote- video-by-patrick-mueller/