Why not just use css? Or hell even wordpress instead haha
PARKED
I know javascript can be used as a programming language for writing/creating text on a page, but could js also be used to manipulate a page's background color/decor and possibly create images, or allow for images to be uploaded by a user? Thanks.
Brandon
150 kph

Why not just use css? Or hell even wordpress instead haha
5 kph
You can do pretty much anything with java. It is not easy by far. For the most part I would have to agree with Mike39 on the Wordpress part. CSS is just style sheets so not so much the dynamic stuff it sounds like you are looking for. Joomla is also good, similar to Wordpress. If we knew what you were trying to do that may help us steer you in the correct direction.
PARKED
150 kph

10 kph
You can use this:
JotForm · Easiest Form Builder
Free tool and all you have to do is cut and paste the code it generates for you...
It even sends the form data to any email you'd like. Will save you a ton of time and hassle!
Hope this helps...
70 kph
Uhhh, that's the entire point of javascript to manipulate HTML DOM. Now to upload images, you are going to have to have some server side program like php, javascript is client side, but you can change almost 99% of everything the user can see with javascript. It's faster to use a javascript library like jquery.
Winning is not found in the prize, winning is found in the doing.
What EastWind said. Yes you can. For simple stuff like background change, you don't need to rely on libraries like jQuery. Depends on your project. I include it by default in my projects as I utilize it a lot so it makes sense.
You'll find free tutorials on how to do this.
For image upload, here's a nice one:
jQuery File Upload Demo
This allows you easy file upload, image upload with thumbnail creation, users can drag n drop images to upload etc.
Now, if you decide to use it, then you'll need jQuery anyway, so in such case, you can do the rest of the stuff like background change in JS as well.
Hope this makes sense to you, it's simple once you get into it.
But, the images will be sent to your server, where your server-side script (in a server-side language, like php) will take care of it, and one of the things it needs to take care about is security, so that someone doesn't upload malicious code.
You can read up on that, or have someone "harden" your script, you will get a working server-side script with above plugin, but it's not super safe, it just works.
I'm a bit tired hope it doesn't show in the post, ask any questions if you have.
Someone mentioned JotForms, I don't recommend, be your own boss + it gets slow and I think limited to certain number after that you pay.
Book links provided by Amazon.com affiliate program. Sponsored ads/links are not endorsements or recommendations from MJ DeMarco and/or Viperion Corporation.
There are currently 1 users browsing this thread. (0 members and 1 guests)