i want to show a forreign website as in my phonegap App on iphone. I see the Website in the when i view the app in firefox but there is nothing shown on iphone. Any idea or solutions? (the url is just an example)
<div id="divSvgView" dojoType="dojox.mobile.ScrollableView" style="background-color: #d0d0d0;">
<object type="txt/html" id="svgObject" data="http://heise.de" style="width:400px; height:400px;margin1%;"></object>
</div>
greets Tom
Try Using type="application/xhtml+xml"? This seems to be required in some versions of desktop and iOS Safari to get things working.
Related
I want to launch the camera from my mobile browser(Safari) in my iPhone. Is there a way to do
it. I guess in iOS 6 I can do it , but I am not aware of how to achieve my task .
Any help is greatly appreciated.
You can open Camera from your mobile browser. For this you need to use Some Already available Javascript APIs. Like we have in PhoneGAP framework. You can see the example at this Link.
In iOS6, you can try the following if what you are trying to accomplish is setting up a web page which will open the camera from safari.
<input type="file" accept="image/*" capture="camera">
<input type="file" accept="video/*" capture="camera">
It will act like a regular file upload, but instead, it will open the iPhone camera and upload a picture or a video.
I am using jQTouch and Phonegap and it perfectly runs in my Xcode and iPhone simulator. What I am trying to develop is to dynamically display external webpages within my application.
For example, when you first run the application it shows table with data "User Interface", "Animations" ... etc. What I want to make is when user taps on "User Interface" it should display some external web pages ( lets say google's home page).
I wrote the following code and this is inside User Interface->Edge to Edge->(here I want to dispaly the home page of google). The width:340 and height:420 will be the display area of google's home page. Please help me to make it.
<div id="edge">
<div class="toolbar">
<h1>Edge to Edge</h1>
back
</div>
<div style="width:340px; height:420px; background:red;">
<ul class="edgetoedge scroll">
<li class="sep">under construction...</li>
</ul>
</div>
</div>
Thank you
You will need to load an <iframe> into the div you want to display the content of the external page.
http://www.w3schools.com/tags/tag_iframe.asp
Make sure to add the external URL to the whitelist (ExternalHosts entry in PhoneGap.plist as per the PhoneGap for iOS FAQ: http://wiki.phonegap.com/w/page/41631150/PhoneGap%20for%20iOS%20FAQ) and set the Boolean for OpenAllWhitelistURLsInWebView to YES.
I have a fairly simple jQuery mobile app, which works fine as a web app (tested in browsers on desktops/smartphones) but when porting it to android using phonegap, I have one major issue. It occurs both on a real phone and in an AVD.
there's a form in the app, like:
<div data-theme="a" data-role="dialog" id="a-form">
<div data-role="content">
<h3>...</h3>
<form action="http://a-live-site.com/a-form.php" method="post">
...
<div data-role="fieldcontain">
<button type="submit">Submit</button>
</div>
</form>
</div>
</div>
Its response content loads perfectly in the browser (the action is a relative link there), but within phonegap I just get a white screen and the hardware back button exits the app instead of the usual step back in history. The puzzling thing is that the request actually gets through. The server side code triggers an email, so I know the server is getting the request. I have added the appropriate <access /> rules in the phonegap.xml file, but I'm not sure that's enough.
EDIT: the form is in static content so, in phonegap, it's loaded by file:// and shouldn't have cross-domain issues.
The problem was due to data-role="dialog" in the result. Using page fixed it. It only broke in phonegap and phonegap's logs made it look like it was something else. A real PITA.
I saw a tutorial on the web which said I could do this:
http://geekswithblogs.net/MobileLOB/archive/2009/03/13/sending-sms-in-iphone-web-app.aspx
<A HREF=”SMS:2323232232”/>TXT ME</A>
: but when I click this link on my iphone the sms app is opened but the body of the message is empty
With sms: URL scheme you can only specify the destination number. Starting with iOS 4 it's possible to send an SMS from a native app using MessageComposer.
Read again your linked tutorial. It said that adding body=... doesn't work.
I think your problem is because you've copied the quotes from somewhere, which converted it into text-quotes.
<A HREF=”SMS:2323232232”/>TXT ME</A>
should be
<A HREF="SMS:2323232232"/>TXT ME</A>
The fb:live-stream tag won't work in Chrome when I add it to my facebook application. It works fine in Firefox.
<div class="content">
<fb:live-stream event_app_id="1234" width="519" height="625"/>
</div>
Anyone already had this problem?
works for me? in both.
what does it display instead?
one idea:
your developer has to visit the stream to activate it, i.e. your facebook api_key is assosciated with a number of developers. every new stream only gets created once a developer accesses it.