Re: Help with login authentication and offline webapp

2014-03-21 Thread Mogens Beltoft
Hi, Do you need all that user management? How about a single fixed excrypted password in javascript? /Mogens On 21-03-2014 18:33, Bart Cockheyt wrote: Hy, I'm making an 1 file webapp (different screens in 1 html file) with user authentication. I tried different type of scripts but all seem to

Re: the use of loading.gif

2015-04-13 Thread Mogens Beltoft
In async calls you set up a callback funtion to receive the result of e.g. the login. The callback function removes the loading.gif while you set the loading.gif just before starting the async call. Have a look at this: http://stackoverflow.com/questions/1853662/how-to-show-page-loading-div-unti

Re: R/O checkbox - EMY

2018-01-01 Thread Mogens Beltoft
Try disabled instead of readonly. /Mogens On 01-01-2018 12:08, Rune Back wrote: This doesn't seem to work: How should I do a R/O checkbox? -- You received this message because you are subscribed to the Google Groups "iPhoneWebDev" group. To unsubscribe from this group and stop receivi

Re: What's wrong with this code?

2018-03-17 Thread Mogens Beltoft
“Unexpected end of file?” :) I can’t see any code. /Mogens > On 17 Mar 2018, at 12.33, Rune Back wrote: > -- You received this message because you are subscribed to the Google Groups "iPhoneWebDev" group. To unsubscribe from this group and stop receiving emails from it, send an email to ip

Re: SV: NFC

2019-03-27 Thread Mogens Beltoft
NFC is an RFID technology (NFC is near field RFID), not a way of communicating arbitrary data between devices. I guess you should look into encrypting the data you need to communicate. I don't see that many ways around talking to a server of some kind to communicate between devices from web envir

Re: Application Cache API manifest

2020-04-01 Thread Mogens Beltoft
Hi! It appears to be deprecated. I don’t know when that happened. https://developer.mozilla.org/en-US/docs/Web/HTML/Using_the_application_cache I used it once, but that’s some time ago now. The app I created grew bigger, so I discarded it. /Mogens > On 1 Apr 2020, at 06.11, Rune Back wrote: >

Re: GEO location

2022-02-03 Thread Mogens Beltoft
Hi! To my knowledge you only have the Geolocation API to get any information from: https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API There are no properties to indicate what kind of position you receive, but you can request a position, and maybe use the returned accuracy to te

Re: GEO location

2022-02-04 Thread Mogens Beltoft
st of your Internet provider, and that mast may be 100s of miles away. - My > question is: Is it possible to discern (as a programmer) if the GEO location > comes from the user's deviceor from the operater's mast? > > > > Den tors 3 feb. 2022 kl 20:46 skrev Mogens

Re: How to Install and use iui-0.31.tar

2010-05-04 Thread Mogens Beltoft
Create a folder in the root of your your website, e.g. /iuitest Unpack iui-0.31.tar into a folder called iui-0.31 Upload iui-0.31/iui folder to /iuitest/iui Upload iui-0.31/samples/music.html to iuitest/samples/music.html Navigate your iPhone to http://your.domain/iuitest/samples/music.html viola!

Re: how can I change the icon of my application iphone ?

2010-05-04 Thread Mogens Beltoft
Try this guide: http://vjarmy.com/archives/2008/01/howto_iphone_webclip_icons.php /Mogens On Apr 6, 4:49 pm, rim negra wrote: > *how can I change the icon of my application iphone ? * -- You received this message because you are subscribed to the Google Groups "iPhoneWebDev" group. To post t

Re: text input

2010-05-09 Thread Mogens Beltoft
Hi What would you like to do with the done button? You could intercept the submit action of a form (with text fields) with a JavaScript function being called onSubmit() - is that what you're looking for? /Mogens On 08-05-2010 19:33, Excell wrote: Hi all Is there anyway to interact with the

Re: Question about Javascript

2010-06-20 Thread Mogens Beltoft
Maybe the OP is asking whether a web page is doing anything if you are looking at another page (tabs in other browsers), or if you are using an app, while Safari is "in the background". /Mogens On 19-06-2010 09:45, ~QQ~ wrote: What does "page is not active" mean? Do you mean when the page is

Re: New size for wallpapers

2010-06-22 Thread Mogens Beltoft
Having a web browser scale down images is not a good idea, as they generally are not very good at it. I sugest you display different content based on what device you're on in your (native?) app. /Mogens On 22-06-2010 22:26, Webmaster, Team Associated wrote: I have a wallpaper app with all

Re: Issues with Geolocation in Mobile Safari (iOS 4)

2010-06-23 Thread Mogens Beltoft
I noticed, that CSS Ninjas pocket speedo did not work after upgrading to iOS 4.0 GMC (I have not upgraded to the "real" iOS 4.0 yet). His other Open Streetmap demo did work (at least once, other times it didn't work). I'm afraid I haven't had time to investigate the problem. /Mogens On 23-06-

Re: web clip icon when offline

2010-06-23 Thread Mogens Beltoft
So you want to go offline, and then Save to Home Screen. Why, if I may ask? How would you make sure that all files in your manifest are present and ready for local storage when offline? /Mogens On 23-06-2010 19:49, Simon wrote: Hi, I'm just using the This works fine when I'm online, my iss

Re: Indicate swip-able

2010-08-12 Thread Mogens Beltoft
How about placing an arrow on an image overlay that fades away after a few seconds? /Mogens On 12-08-2010 17:03, xnakxx wrote: I have a simple slideshow that a user can swipe to change images. What would you think would be the best way for me to show the user that a swipe would change images w

Re: shake gesture

2010-08-12 Thread Mogens Beltoft
Nope, the accelerometer is not available to web, but landscape/portrait changes are. /Mogens On 12-08-2010 22:47, Alon Raskin wrote: I know that a Web App can react to a user tilting their phone (portrait/landscape) using JS events. Is there an event for a 'shake' gesture. It would be cool

Re: iUI - Sliding Page from Bottom

2010-08-15 Thread Mogens Beltoft
Very good, it looks fine! Nice feature. /Mogens On 15-08-2010 21:29, Alex Zylka wrote: Hi guys. Just in case you were interested, I have a demo of a page that slides up from the bottom of iUI. It's a dialog and I'm using CSS transforms to handle the sliding and fading. Let me know what you thin

Bottom toolbar on openappmkt.com

2010-08-25 Thread Mogens Beltoft
Hi! Has anyone looked into how openappmkt.com has made their fixed position bottom toolbar? /Mogens -- You received this message because you are subscribed to the Google Groups "iPhoneWebDev" group. To post to this group, send email to iphoneweb...@googlegroups.com. To unsubscribe from this

Re: Does the iPhone support cookies when a webpage is opened in fullscreen mode?

2010-09-15 Thread Mogens Beltoft
On 15-09-2010 12:47, Mr. Flibble wrote: I can't find this information anywhere. Does the iPhone allow cookies to be stored when a webpage is opened in full screen mode (by placing a link on the home screen)? I've been getting problems with session cookies when using an app in full screen mode.

Layout problems

2010-09-21 Thread Mogens Beltoft
Hi! I'm trying to lock a webapp (including offline functionality) to use only the available screen on my iPhone. You can see the webapp here: http://ugetest.beltoft.dk - try saving it to Home Screen. The webapp calculates a week number from a date entered using the wonderfull spinning wheel

Re:

2010-09-26 Thread Mogens Beltoft
On 26-09-2010 05:40, anmldr wrote: When a select tag is used, is there a way to control the text size in the scroll wheel that shows on the iPhone? Linda Not to my knowledge, but if you really need control you may find the spinning wheel from http://cubiq.org usefull. It's a CSS+JavaScript

Which web sites do you follow?

2010-10-01 Thread Mogens Beltoft
Which web sites do you follow for the latest and greatest iPhone web stuff? Let's start with: http://cubiq.org/ - great components like iScroll etc. http://www.thecssninja.com/ - a lot of great stuff /Mogens -- You received this message because you are subscribed to the Google Groups "iPhoneWe

Re: IUI Q:Howto Delete Cancel Dialog (see examples)

2010-10-18 Thread Mogens Beltoft
On 18-10-2010 05:57, MN wrote: I like to do a simple Delete Cancel Dialog. But i do not found any examples like this: goo.gl/9r2v Image Delete Account Confirmation goo.gl/rpwv Clear History Confirmation Have a look at the demo of Buttons Panel in Universal iPhone UI Kit at http://www.minid.

Re: not access to webservice from safari

2010-11-02 Thread Mogens Beltoft
I haven't tried to do XMLHttpRequests yet, but have you read this Apple document on XMLHttpRequests? http://developer.apple.com/internet/webcontent/xmlhttpreq.html /Mogens On 02-11-2010 11:04, jun wrote: Hi.I'm new. I want to access to my webservice from Safari on iPad. My WebService is perfo

Re: OK, how might one set the caret position in an input field?

2010-11-04 Thread Mogens Beltoft
There is a lot of code here: http://www.webdeveloper.com/forum/archive/index.php/t-74982.html /Mogens On 04-11-2010 00:11, Brian McMillin wrote: Guys - Since we are discussing keyboards and input fields in general, here is a question: Suppose you have an field that does not have the focus.

Re: Offline web application - problem with Safari for iPhone

2010-11-04 Thread Mogens Beltoft
Are you using manifest? Are you serving the manifest as MIME type text/cache-manifest ? I'm not sure whether you need to launch from a link/icon saved on the home screen. /Mogens On 04-11-2010 20:30, Ofir wrote: The iPhone is not connected to the net but when trying to browse to the above

Re: ios4.2

2010-11-26 Thread Mogens Beltoft
No, not to my knowledge, but how are you accessing the accelerometer and gyroscope from JavaScript? /Mogens On 26-11-2010 22:34, stan wiechers wrote: Hey! Accelerometer& Gyroscope Sensor Detection could be great for i.e. web based games. Imagine a very simple marble game and the ipad acts as

Re: web app to itunes store

2010-12-06 Thread Mogens Beltoft
WebApps have their separate place on apple.com:   Look here for how to submit your webapp:   If you want your webapp in the App Store you will have to wrap it in a framework like e.g. Mother App

Re: Enviar informações para o Google Maps

2010-12-09 Thread Mogens Beltoft
I think this is what he's looking for: http://code.google.com/apis/maps/documentation/staticmaps/ Apple HQ: http://maps.google.com/maps/api/staticmap?center=1,Infinite+Loop,CA&zoom=15&size=400x400&sensor=false /Mogens On 09-12-2010 21:05, Victor Hugo wrote: I will help you... translating...

Re: show pubs list based on which county has been clicked - PHP

2011-01-17 Thread Mogens Beltoft
Have you tried "View Page Source"? - You have a blank entry at the top. - Something goes bad in SQL at the end of the file. - Your four character hrefs are not unique - look at all the "#Coun" entries. - Your second is Aberdeenshire, there are not other areas in the list, that's why the other

Re: touch events using javascript

2011-01-17 Thread Mogens Beltoft
Is there a way to style the controls? I'm thinking of length. The controls are very small in my test code. If I leave out the controls attribute the controls are not visible, but the audio element takes up the same amount of space whether the controls are there or not. /Mogens On 17-01-2011

Re: appML = iScroll + jQTouch

2011-01-28 Thread Mogens Beltoft
It looks very promissing, you have come a long way. /Mogens On 28-01-2011 14:53, Marconi wrote: appML (application markup language) introduces http://www.appml.org - merges 2 of best tools out on the internet: iScroll and jQTouch - prevent native scroll on input, textarea and select DOM object

Re: latitude longitude webapp

2011-01-30 Thread Mogens Beltoft
Have a look at this article by CSS Ninja: http://www.thecssninja.com/javascript/geolocation-iphone /Mogens On 30-01-2011 22:23, Sudhakar wrote: i would like to create a webapp using html css javascript only to display the latitude, longitude and direction when the webapp opens. which framework

Re: passing a value based on what user clicked

2011-02-03 Thread Mogens Beltoft
Hi, Couldn't you make something like: [code] $.getJSON('http://www.mypubspace.com/dashtest/pubjson.php?county=";'.county.'"', function()... [/code] Where county would come from the you pressed? /Mogens On 02-02-2011 11:32, john.mbiddu...@googlemail.com wrote: hi, the following function sho

Re: USING DATA BASE IN IPHONE

2011-02-11 Thread Mogens Beltoft
On 11-02-2011 14:27, Edujebs wrote: EXCUSE ME IF YOU WRITE SOMETHING WRONG, I AM BRAZILIAN AND I'M STILL LEARNING ENGLISH. I WANT TO KNOW IF SOMEONE HAS THE SOURCE OF AN APP THAT USES AN EXAMPLE OF DATABASE AS A PHONE BOOK TO BEGIN STUDYING THE DATABASE ON IPHONE. I have just made a web app f

Re: USING DATA BASE IN IPHONE

2011-02-11 Thread Mogens Beltoft
On 11-02-2011 17:31, Mogens Beltoft wrote: On 11-02-2011 14:27, Edujebs wrote: EXCUSE ME IF YOU WRITE SOMETHING WRONG, I AM BRAZILIAN AND I'M STILL LEARNING ENGLISH. I WANT TO KNOW IF SOMEONE HAS THE SOURCE OF AN APP THAT USES AN EXAMPLE OF DATABASE AS A PHONE BOOK TO BEGIN STUDYIN

Re: Publishing my Application

2011-02-15 Thread Mogens Beltoft
Hi, PHP is a server-side language, that typically gets interpreted by a webserver, when called from a client. PhoneGap is "just" an encapsulation service, that wraps a web-based application in Objective-C code, so it can be made into an app for the App Store. I know it does more than that, b

Re: post an anchor within a page to move down the page?

2011-02-18 Thread Mogens Beltoft
Is it telephone numbers you present in the grey box below the address of a pub? If so, then you can make the telephone numbers integrate with the Phone by doing this: (123) 456-7890 /Mogens On 18-02-2011 10:46, john.mbiddu...@googlemail.com wrote: hi, I have a large list of UK towns, see

Re: post an anchor within a page to move down the page?

2011-02-18 Thread Mogens Beltoft
Hi, Page jumps are easy! The structure is: | ||link to top| So, basically what you need to do is to add a name="A" attribute to the first link you have with a town starting with A. And so on for B, C etc. Then your new line with the alphabet needs to be constructed of a series of |A| links,

Re: post an anchor within a page to move down the page?

2011-02-18 Thread Mogens Beltoft
h those frameworks. I know, that's a bummer... i'm sure you can scroll using JS since iScroll does it, but i have no idea how to do so using JQTouch. R. Le 18 févr. 11 à 19:19, Mogens Beltoft a écrit : Hi, Page jumps are easy! The structure is: | ||link to top| So, basically wha

Re: client side database tutorial

2011-04-06 Thread Mogens Beltoft
On 06-04-2011 10:26, Manmade wrote: Does anybody know of a good tutorial on client side database? Or is anybody good at it and would be able to help with some basic stuff? Thanks. Try these: http://www.tutorialspoint.com/html5/html5_web_sql.htm http://blog.darkcrimson.com/2010/05/local-datab

Re: local database

2011-04-14 Thread Mogens Beltoft
I'm afraid not... http://www.w3.org/TR/2009/WD-html5-20090212/structured-client-side-stora ge.html 5.11.2.2Databases Each origin has an associated set of databases. Each database has a name and a current version. There is no wa

Re: Quick Test?

2011-05-07 Thread Mogens Beltoft
Can't make it work, I'm afraid. Slider does nothing, but music does start playing. The slider only fills a tiny spot in the upper left corner when the page loads. Maybe you should add: /Mogens On 07-05-2011 22:29, Alex Zylka wrote: Hey guys, I don't have an iOS device with me, but I've succe

Re: viewport setting iphone4 safari 5 for a googlemap?

2011-05-09 Thread Mogens Beltoft
Hi, I think that "apple-touch-fullscreen" is defunct. It was never released to the public. https://discussions.apple.com/message/6810717?messageID=6810717 /Mogens On 09-05-2011 12:47, Thoern wrote: I found a simple but for my purposes really good solution. Simply to use the Safari built in

Re: reach Compass from webapp?

2011-05-11 Thread Mogens Beltoft
The Coordinates in the Position report returned from geolocation.getCurrentPosition() callback does contain a heading: interface Coordinates { readonly attribute double latitude; readonly attribute double longitude; readonly attribute double? altitude; readonly attribute double a

Re: reach Compass from webapp?

2011-05-12 Thread Mogens Beltoft
The iPhone has an internal compass, apart from the AGPS. http://theiphonewiki.com/wiki/index.php?title=Compass The text you found describes how to obtain a pseudo-compass heading. /Mogens On 12-05-2011 12:43, Thoern wrote: Aha I found a page that seems to explain the iphone compass "Given tha

Re: reach Compass from webapp?

2011-05-17 Thread Mogens Beltoft
ertosarullo.com/blog/javascript-accelerometer-demo-source Have fun R. On Tue, May 17, 2011 at 08:43, Thoern wrote: Ok it seems its not possible to reach it with html 5 or javascript, now only with iphoneGap and regular "app" envoirment. hopfully in future.. On 12 Maj, 18:52, Mo

Re: reach Compass from webapp?

2011-05-18 Thread Mogens Beltoft
Oh, so you're the ninja :) I (deepo) mailed you a fix for the pocket-speedo a while back, as I couldn't get your webapp working. I believe that was around the time the name changed to iOS. I tried to take my little demo webapp on a car trip this afternoon, and could still not get speed or al

Re: Add a prefix?

2011-05-23 Thread Mogens Beltoft
I use Mozilla Thunderbird, and use it's "to + contains + iphonewebdev@googlegroups.com" filter, so I'm indifferent to adding a prefix. Go ahead, if it will help others. /Mogens On 23-05-2011 14:43, Remi Grumeau wrote: Hi list, I'd like to get your thought on adding or not a " [iphonewebdev]

Re: call for an accelerometer/gyro script test

2011-05-25 Thread Mogens Beltoft
Wow, that is neat. I wish it were more smooth (on my iPhone 4). /Mogens On 25-05-2011 03:06, Remi Grumeau wrote: Hey folks! I could use some tests on different devices / mOS for a script i've tested only on iPhone4 for now. Here it is: http://we-are-gurus.com/labs/device-motion/ Please, pres

Re: call for an accelerometer/gyro script test

2011-05-25 Thread Mogens Beltoft
tp://www.we-are-gurus.com/labs/device-orientation.html Remi Grumeau On May 25, 2011, at 5:13 PM, Mogens Beltoft wrote: Wow, that is neat. I wish it were more smooth (on my iPhone 4). /Mogens On 25-05-2011 03:06, Remi Grumeau wrote: Hey folks! I could use some tests on different devices / m

Re: Re: jQuery Application Cacheing?

2011-06-06 Thread Mogens Beltoft
iOS has full support for a local database accessible from javascript with SQL queries, so what's your point? That it will disappear again? /Mogens On 06/06/2011 05:37 "Garrett Smith" wrote: > On 6/5/11, Scott Kallen > wrote: > [...]\ > > > > This is a web application that uses the HTML5 loc

Re: iOS 5

2011-06-07 Thread Mogens Beltoft
That looks a little wierd... I would have thought that the fixed elements would stay fixed, and then only the viewport would zoom into the view. /Mogens On 08-06-2011 00:32, Alex Zylka wrote: Fixed zooming test from the same guy who wrote the post: http://www.youtube.com/watch?v=1R-wdGWivjI

Re: iOS 5

2011-06-07 Thread Mogens Beltoft
I'm not quite sure what you mean by your question. Why should fixed elements behave any differently compared to normal elements when zooming? My guess is that the fixed element stays where it's fixed to (top or bottom or whereever), and not stay fixed to the zoomed view. /Mogens On 07-06-201

Re: Images widget for Iphone web app

2011-06-16 Thread Mogens Beltoft
On 16-06-2011 18:46, billreilly wrote: I've adapted Highslide JS (http://www.highslide.com) to my web app for viewing images and it works great... with a bit of tweaking... Look at http://www.passageweather.com/mobi to see it in action Bill Looks great! It also works great on Firefox, but I

Re: Dashcode Newbie

2011-06-30 Thread Mogens Beltoft
I have the latest MacBook Pro 13", but can't find DashCode anywhere. Where is it? /Mogens On 30/06/2011 14:11 "Pakboy" wrote: > I have just started working on web apps using dashcode. I was trying > the browser template. It gives you one list view and 1 detail view. > When you click on the lis

Re: Dashcode Newbie

2011-07-03 Thread Mogens Beltoft
<http://www.eastsideinteractive.com> mari...@eastsideinteractive.com ---- *From:* Mogens Beltoft *To:* iphonewebdev@googlegroups.com *Sent:* Thu, June 30, 2011 6:17:51 AM *Subject:* Re: Dashcode Newbie I have the latest MacBook Pro 13&

Re: Dashcode splash screen

2011-07-12 Thread Mogens Beltoft
I'm not sure, but if you can edit the source, then just add a link tag: | /Mogens | On 12-07-2011 23:50, Pakboy wrote: Is it possible to make a splash screen in dashcode? -- You received this message because you are subscribed to the Google Groups "iPhoneWebDev" group. To post to this

Re: Strange layoutbehaviour

2011-08-22 Thread Mogens Beltoft
Have you tried Firebug in Firefox? The right justified text comes from: iui.css line 278 .panel > ul li, .row { text-align right; } The height of the background comes from: iui.css line 31 body[orient="landscape"] > *:not(.toolbar) { min-height: 468px; } /Mogens On 22-08-2011 22:17, PH-MJS

Re: Problem with Geolocation after ios5 upgrade.

2011-12-09 Thread Mogens Beltoft
Mine behaves as expected, try my code out: It stops the geolocation process as soon as the accuracy is below 100m. /Mogens On 09/12/2011 09:17 "Thoern" wrote: > Funny thing, after upgradeing to ios 5 and its new version of Safari I > can not shut of th

Re: using toggle to save login with local storage

2012-02-09 Thread Mogens Beltoft
Hi, What toggle are you referring to? If it's a checkbox, then have a look at this page: http://www.javascriptkit.com/jsref/checkbox.shtml If you use the onclick event you need to find the state of your toggling object to determine whether to call add() or remove(). /Mogens On 27-01-2012 12

Re: using toggle to save login with local storage

2012-02-09 Thread Mogens Beltoft
Oh, sorry - I forgot about the toggle in iUI... Have a look at this: http://groups.google.com/group/iphonewebdev/browse_thread/thread/c2e40f540da9209c?pli=1 /Mogens On 27-01-2012 12:36, saroy wrote: hi all i would like to use toggle to save login with local storage (toggle off = onclick save

Re: Install iUI application on Android

2012-03-30 Thread Mogens Beltoft
Hi, It's a web application, so you need a web server to upload it to. Be sure to have the same folder structure in both test and production to avoid problems with missing files. And don't use absolute file paths in references to local html, css and javascript files. /Mogens On 30/03/

Re: Creating page slider in same row with a text field?

2012-04-21 Thread Mogens Beltoft
How about the normal arrow found here: http://demo.iui-js.org/ /Mogens On 21-04-2012 01:04, sblair wrote: I'm looking for a way to create a slider arrow to a sub-page from a row in a field that is also a text field in a form. > From what I've seen I haven't found a way within a form to have a

Re: Does iui.js Conflict with Xcode/Phonegap and iOS 5.x?

2012-04-23 Thread Mogens Beltoft
According to Wikipedia the callto URI scheme does launch Skype: http://en.wikipedia.org/wiki/URI_scheme /Mogens On 23-04-2012 09:09, Remi Grumeau  wrote: On 23 avr. 2012, at 08:38 AM, Sean Gilligan wrote: On 4/20/12 8:03 PM, Arthur wrote: On another note, I tried a Google search but no ans

Re: Creating page slider in same row with a text field?

2012-04-24 Thread Mogens Beltoft
t;sblair"wrote: > Yes, that is exactly what I am looking for! I haven't been able to > get it to do that within a form though on the same row as an input > field. > > I'll be the first to admit js and IUI are not my strong subject > areas. What am I missing? >

Re: Calling the numeric keyboard

2012-08-19 Thread Mogens Beltoft
You could try type="number" to get the alphanumeric keyboard with dot comma etc. http://www.beltoft.dk/iPhone/presentation/keyboards.html I haven't seen a numeric only keyboard with dot. /Mogens On 19-08-2012 14:05, toy4fun wrote: Thanks for your quick reply. I've tried the method but I nee

Re: Calling the numeric keyboard

2012-08-20 Thread Mogens Beltoft
putting it in an ASPX page I'm getting the following error: "Parser Error Message: 'number' is not a valid type for an input tag." Any suggestions? On Sunday, August 19, 2012 6:12:30 PM UTC+3, Mogens Beltoft wrote: You could try type="number" to get t

Re: Uploading photo from iphone preserving gps info

2012-11-27 Thread Mogens Beltoft
It depends on the language you have programmed your backend in. The two scenarios you describe are: 1. the new HTML5 upload 2. The oldfashioned way There are a few tutorials on how to upload images in HTML5, you might want to try them out. http://www.script-tutorials.com/pure-html5-fil