15,949,686 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View .NET questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by c.chirag (Top 4 by date)
c.chirag
14-Jul-15 2:06am
View
Means setup file need to install on the server or i just copy pest .dll file on the server.
c.chirag
15-Jan-15 0:26am
View
Thanks for your reply...
but my question is i create a mobile application based website and create a apk file for that. All the functionality work properly but now i want to use cordova feature like upload and download file, camera and the other feature provide by Cordova.
So my existing .aspx page can use cordova feature or not...
c.chirag
29-Nov-14 2:25am
View
sorry for that but right now i m in stuck
c.chirag
28-Nov-14 6:46am
View
My question is i have apk file but the page is aspx page. it's work fine in Mobile's browser but when i use this apk file it's not working... i am using phonegap script as given below :
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>Upload File</title>
<%--<script type="text/javascript" charset="utf-8" src="cordova-1.5.0.js"></script>--%>
<script src="cordova-1.5.0.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript" charset="utf-8">
// Wait for PhoneGap to load
//
document.addEventListener("deviceready", onDeviceReady, false);
// PhoneGap is ready
//
function onDeviceReady() {
//alert("Function call");
// Retrieve image file location from specified source
navigator.camera.getPicture(uploadPhoto,
function (message) { alert('get picture failed'); },
{ quality: 50,
destinationType: navigator.camera.DestinationType.FILE_URI,
sourceType: navigator.camera.PictureSourceType.PHOTOLIBRARY
}
);
}
function uploadPhoto(imageURI) {
var options = new FileUploadOptions();
options.fileKey = "file";
options.fileName = imageURI.substr(imageURI.lastIndexOf('/') + 1);
options.mimeType = "image/jpeg";
var params = new Object();
params.value1 = "test";
params.value2 = "param";
options.params = params;
var ft = new FileTransfer();
ft.upload(imageURI, "http://some.server.com/upload.php", win, fail, options);
}
function win(r) {
console.log("Code = " + r.responseCode);
console.log("Response = " + r.response);
console.log("Sent = " + r.bytesSent);
}
function fail(error) {
alert("An error has occurred: Code = " = error.code);
console.log("upload error source " + error.source);
console.log("upload error target " + error.target);
}
</script>
</head>
<body >
<form id="form1" runat="server">
<div>
Example
<p>Upload File</p>
<br />
<br />
<asp:Button ID="BtnUpload" Text="UploadFile" runat="server" OnClientClick="onDeviceReady()" />
</div>
</form>
</body>
</html>