PhoneGap Html simple HTML not working - phonegap-build

I am trying to learn create an app with PhoneGap but I cannot seem to get the most basic HTML to work. I have stripped it down to the following in the index.html page:
<html><body>
Click
</body>
</html>
When I run the resulting app it shows the page fine, but clicking the link does nothing.

Related

How to put google slide on Jekyll

Can someone tell me steps to put google shared slides like this on Jekyll my Blog?
Do I have to convert every slide in markdown format or convert in pdf and then in markdown?
No clues. please help
To embed a Google Slides presentation in a Jekyll post or page, open the presentation and select “Publish to Web” from the “File” menu.
Choose the options you require, then select the “Embed” tab. You’ll be provided with an embed code. Paste this into your Jekyll post or page - i.e. straight into the markdown file. Generate your site as usual, and the iframe with your presentation will be embedded in the rendered HTML.
This works because when Jekyll parses markdown it also reads any HTML that it finds.
It won’t be responsive out of the box, so you’ll need a bit of CSS. I’ve shown this inline, but you could add the CSS to your stylesheet:
<style>
.responsive-wrap iframe{ max-width: 100%;}
</style>
<div class="responsive-wrap">
<!-- this is the embed code provided by Google -->
<iframe src="https://docs.google.com/presentation/d/1F0DQTNPg3YG_By6LMGcgwT3icJ3eMhCiupAZm76CIfE/embed?start=false&loop=false&delayms=3000" frameborder="0" width="960" height="569" allowfullscreen="true" mozallowfullscreen="true" webkitallowfullscreen="true"></iframe>
<!-- Google embed ends -->
</div>
You can see an example on a Jekyll site here.

The image won't display

I am trying to get an image to display on a basic webpage I am writing for a class. It just shows a box with my alternate text. Here is my code:
<html>
<head>
<title>Practice Features</title>
</head>
<body>
<img src=“images/FLCLogo.JPG” alt=“Folsom”>
</body>
</html>
Both the textedit doc and the images folder are in the same folder. In fact, they are the only files in that particular folder.
I'm doing the coding on a Mac, if that makes a difference at all. I've viewed it on both Chrome and Safari. Same issue.
You need to copy the file location..
Go to your image/properties/location+
Copy the location and paste it inside your quotes

Unable to download base64 encoded image on Chrome

I have an app that, when clicking on a link, opens a new window with the following code:
<html>
<head>
</head>
<body>
<img src="data:image/png;base64,...">
</body>
</html>
On Chrome, if I right-click and select Save image as... option, the pop up to select saving location does not appear.
At the beginning I thought it was a Chrome error, but to test it I have copied the same code on a separate html page and I am able to download it.
So, anyone has a clue for what can be happening here?

Select files dialog does not appear for Firefox only when using Dropbox API mf_dropbox_id

I created a sample MVC application and included following code in it. Include it on any page.
<script type="text/javascript">
var mf_dropbox_width=480;
var mf_dropbox_id="03c14698019e70dede9ff2f115564f96af8f51dfd71439b44b03631f6cd44890";
</script><script type="text/javascript" src="http://www.mediafire.com/dropbox/dropbox.js">
</script>
The hyperlink select files does not work. Please click on the following link I found on web and when the page opens click select files. http://prewire-pics.blogspot.com/2011/11/var-mfdropboxwidth480var_6673.html The same works well in Internet Explorer and Chrome. Is there any security setting which I need to enable?

YUI on Windows 8 Metro App: YUI is not recognized

I am trying to create a Hello World JS Metro app on Visual Studio 2011, using YUI3.
I´ve grabbed a local copy of YUI, added to a subfolder in the solution, and added a reference to yui-min.js on my default.html page:
<!-- TodoJS references -->
<link href="/css/default.css" rel="stylesheet">
<script src="/js/default.js"></script>
<script src="js/yui/build/yui/yui.js"></script>
and then at the bottom of the page I´ve added the following code:
<script type="text/javascript">
document.addEventListener("DOMContentLoaded", function () {
YUI().use("event", function () {
//some code will go here..
});
}, false);
</script>
When I run the code, I get a null ref error on YUI(). I do get intelissense working in Visual Studio (e.g YUI().add), so the reference seems to be OK, but YUI is not found on run time. Any tips?
I would try the steps outlined in How To: Create a Windows 8 Metro App with JS and YUI 3
I take it that you've got the issue fixed. However if you'd like to use the YUI components such as "calendar", "tabview" etc, you'll have to modify a few files that include innerHTML calls and wrap the added html content with toStaticHTML.
There were only a couple of files(dom-base.js, yui.js) that needed to be modified and most of the components worked fine(including the "datatable" and "charts" widgets), with the exception of the rich text editor. The nice thing about YUI is that it supports touch gestures for a majority of the components, for example panning "datatable" works correctly.

Resources