Quantcast
fastlane insider
Results 1 to 9 of 9

Thread: Can you manipulate a page's appearance Javascript?

  1. #1
    bmarone is offline
    Fastlane Rookie
    Reputation Speed
    PARKED

    Joined
    Nov 2011
    Age
    26
    Posts
    97

    Default Can you manipulate a page's appearance Javascript?

    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

  2. #2
    Mike39 is offline
    SPAM KILLER
    Reputation Speed
    150 kph

    Joined
    Mar 2012
    Locale
    Denver, Colorado
    Posts
    1,258
    Blog Entries
    10

    Mike39's Avatar

    Default

    Why not just use css? Or hell even wordpress instead haha

  3. #3
    murlin99 is offline
    New Driver
    Reputation Speed
    5 kph

    Joined
    Jun 2011
    Age
    37
    Posts
    37

    Default

    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.

  4. #4
    bmarone is offline
    Fastlane Rookie
    Reputation Speed
    PARKED

    Joined
    Nov 2011
    Age
    26
    Posts
    97

    Default

    Quote Originally Posted by murlin99 View Post
    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.
    I'm trying to create an HTML form where a user can enter a bg color of any choice, or decor, and the javascript will then follow through with their request. I'm not trying to create a website for myself, rather a product for users. Thanks.

  5. #5
    Mike39 is offline
    SPAM KILLER
    Reputation Speed
    150 kph

    Joined
    Mar 2012
    Locale
    Denver, Colorado
    Posts
    1,258
    Blog Entries
    10

    Mike39's Avatar

    Default

    Quote Originally Posted by bmarone View Post
    I'm trying to create an HTML form where a user can enter a bg color of any choice, or decor, and the javascript will then follow through with their request. I'm not trying to create a website for myself, rather a product for users. Thanks.
    oh my bad I mis-understood

  6. #6
    Icy
    Icy is offline
    Fastlane Veteran
    Reputation Speed
    85 kph

    Joined
    Feb 2009
    Posts
    810
    Blog Entries
    1

  7. #7
    DangerDave is offline
    New Driver
    Reputation Speed
    10 kph

    Joined
    Sep 2011
    Locale
    Chicago
    Age
    25
    Posts
    25

    Default

    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...

  8. #8
    EastWind is offline
    Fastlane Veteran
    Reputation Speed
    70 kph

    Joined
    Oct 2009
    Locale
    USA
    Posts
    670

    Default

    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.

  9. #9
    FastNAwesome is offline
    Fastlane Veteran
    Reputation Speed
    110 kph

    Joined
    May 2011
    Posts
    621
    Blog Entries
    11

    Default

    Quote Originally Posted by bmarone View Post
    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
    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.

  10. Speed Up Your Fastlane Process! MJ Recommends The Following Books...

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Is Javascript Making A Comeback?
    By News-Mod in forum Internet / Mobile Apps / Software
    Replies: 3
    Last Post: Nov 10th, 2010, 12:28 PM
  2. Javascript calendar question
    By yveskleinsky in forum Internet / Mobile Apps / Software
    Replies: 5
    Last Post: Jul 25th, 2008, 12:00 PM
  3. Robert & Kim make a guest appearance... On CNN’s Your World Today
    By bflbob in forum Current Events, Sports, Off-Topic
    Replies: 0
    Last Post: Feb 20th, 2008, 09:44 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •