Digital Workshop

Welcome to the Digital Workshop Message Boards
It is currently December 22nd, 2024, 11:45 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: Need some HTML help...
PostPosted: October 13th, 2014, 7:06 am 
Offline

Joined: May 16th, 2008, 4:50 pm
Posts: 368
Location: Berghem The Netherlands
Opus: Opus Pro 9.75
OS: Windows 10
System: `HP
Since OPUS 9.5 90% of my programming work is in HTML5
Fortunately there are many HTML5 scripts online.
One of the things I want to build into one of my projects is to place a local stored image by the user.
In this example I want to offer the user the possibility to replace image of the ball.
http://www.csnmedia.nl/soccer
Well I found a lot of scripts that make it possible to open the page in local files but I after opening the load button remains visible and the name of the file.
https://developer.tizen.org/dev-guide/2 ... ontent.htm

These are exactly my shortcomings with HTML5
I get the answer not found. Maybe I'm looking wrong or using the wrong search terms.
Can someone help me with a script in which the load button it is gone after loading or a good place to find usefull scripts?

Ad Mulders

_________________
Opus Pro v9.75
Windows 10 on HP EliteBook i7
http://www.csnmedia.nl


For this message Ad Mulders has been thanked by : mackavi


Top
 Profile Visit website  
 
 Post subject: Re: Need some HTML help...
PostPosted: October 13th, 2014, 2:16 pm 
Offline
Godlike
Godlike
User avatar

Joined: March 21st, 2007, 10:44 am
Posts: 3188
Location: UK
Opus: Evolution
Code:
var myElement = document.getElementById(elementID);
myElement.parentNode.removeChild(myElement);

Where elementId is the ID of the <input>

Mack

_________________
When you have explored all avenues of possibilities, what ever remains, how ever improbable, must be the answer.

Interactive Solutions for Business & Education
Learn Anywhere. Learn Anytime.

www.interaktiv.co.uk
+44 (0) 1395 548057


Top
 Profile Visit website  
 
 Post subject: Re: Need some HTML help...
PostPosted: October 13th, 2014, 6:08 pm 
Offline

Joined: May 16th, 2008, 4:50 pm
Posts: 368
Location: Berghem The Netherlands
Opus: Opus Pro 9.75
OS: Windows 10
System: `HP
Hi Macavi,

Hmmm.. Do i have to put your code in stead of

var files = document.getElementById("tizenFiles").files;
if (files.length === 0)

_________________
Opus Pro v9.75
Windows 10 on HP EliteBook i7
http://www.csnmedia.nl


For this message Ad Mulders has been thanked by : mackavi


Top
 Profile Visit website  
 
 Post subject: Re: Need some HTML help...
PostPosted: October 13th, 2014, 8:29 pm 
Offline
Godlike
Godlike
User avatar

Joined: March 21st, 2007, 10:44 am
Posts: 3188
Location: UK
Opus: Evolution
No, that code will simply remove an element from the DOM. So if you have <input id="fileBrowse"> then use...

Code:
var myElement = document.getElementById("fileBrowse");
myElement.parentNode.removeChild(myElement);


...to remove button + label once you have finished with it.

Mack

_________________
When you have explored all avenues of possibilities, what ever remains, how ever improbable, must be the answer.

Interactive Solutions for Business & Education
Learn Anywhere. Learn Anytime.

www.interaktiv.co.uk
+44 (0) 1395 548057


Top
 Profile Visit website  
 
 Post subject: Re: Need some HTML help...
PostPosted: October 16th, 2014, 3:11 pm 
Offline

Joined: May 16th, 2008, 4:50 pm
Posts: 368
Location: Berghem The Netherlands
Opus: Opus Pro 9.75
OS: Windows 10
System: `HP
Thanks Mack it works. :D

_________________
Opus Pro v9.75
Windows 10 on HP EliteBook i7
http://www.csnmedia.nl


For this message Ad Mulders has been thanked by : mackavi


Top
 Profile Visit website  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 15 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group