14 Replies - 607 Views - Last Post: 20 July 2014 - 01:35 PM

#1 jnmule  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 7
  • Joined: 20-July 14

How to Integrate Javascript?

Posted 20 July 2014 - 11:14 AM

[code]I'm building a website with HTML, CSS, and Javascript. My problem is that when I try to integrate Javascript into my website it doesn't show up. I use the <script> commands and it still doesn't work. Please Help!

Thanks

Here's my code I'm having trouble with:

<script>
ellipse(200, 200, 200, 200)
</script>
Is This A Good Question/Topic? 0
  • +

Replies To: How to Integrate Javascript?

#2 andrewsw  Icon User is online

  • It's just been revoked!
  • member icon

Reputation: 3734
  • View blog
  • Posts: 13,054
  • Joined: 12-December 12

Re: How to Integrate Javascript?

Posted 20 July 2014 - 11:17 AM

Do you have a method called ellipse?

What errors appear in your browser's console?

Otherwise, you haven't provided enough information.
Was This Post Helpful? 0
  • +
  • -

#3 andrewsw  Icon User is online

  • It's just been revoked!
  • member icon

Reputation: 3734
  • View blog
  • Posts: 13,054
  • Joined: 12-December 12

Re: How to Integrate Javascript?

Posted 20 July 2014 - 11:37 AM

This script would work:
<script>
alert('hello');
</script>

unless Javascript, or alerts, have been disabled in the browser.
Was This Post Helpful? 0
  • +
  • -

#4 jnmule  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 7
  • Joined: 20-July 14

Re: How to Integrate Javascript?

Posted 20 July 2014 - 11:46 AM

The alert worked, I attached the work that I have done on the website, I want the ellipses so I can put the around the buttons.

I cant attach the file for some reason.....
Was This Post Helpful? 0
  • +
  • -

#5 Dormilich  Icon User is offline

  • 痛覚残留
  • member icon

Reputation: 3572
  • View blog
  • Posts: 10,413
  • Joined: 08-June 10

Re: How to Integrate Javascript?

Posted 20 July 2014 - 11:48 AM

then post its relevant content here
Was This Post Helpful? 0
  • +
  • -

#6 jnmule  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 7
  • Joined: 20-July 14

Re: How to Integrate Javascript?

Posted 20 July 2014 - 12:09 PM

what?
Was This Post Helpful? 0
  • +
  • -

#7 andrewsw  Icon User is online

  • It's just been revoked!
  • member icon

Reputation: 3734
  • View blog
  • Posts: 13,054
  • Joined: 12-December 12

Re: How to Integrate Javascript?

Posted 20 July 2014 - 12:12 PM

You cannot attach your work so "post its relevant content here".
What's confusing you?
Was This Post Helpful? 0
  • +
  • -

#8 jnmule  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 7
  • Joined: 20-July 14

Re: How to Integrate Javascript?

Posted 20 July 2014 - 12:20 PM

what's relative content?
Was This Post Helpful? 0
  • +
  • -

#9 andrewsw  Icon User is online

  • It's just been revoked!
  • member icon

Reputation: 3734
  • View blog
  • Posts: 13,054
  • Joined: 12-December 12

Re: How to Integrate Javascript?

Posted 20 July 2014 - 12:21 PM

relevant content
Was This Post Helpful? 0
  • +
  • -

#10 jnmule  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 7
  • Joined: 20-July 14

Re: How to Integrate Javascript?

Posted 20 July 2014 - 01:00 PM

Can you please just tell me how to fix this problem!?!?!?
Was This Post Helpful? 0
  • +
  • -

#11 andrewsw  Icon User is online

  • It's just been revoked!
  • member icon

Reputation: 3734
  • View blog
  • Posts: 13,054
  • Joined: 12-December 12

Re: How to Integrate Javascript?

Posted 20 July 2014 - 01:01 PM

You haven't provided enough information for anyone to help you.

All you have posted is this:
<script>
ellipse(200, 200, 200, 200)
</script>

Based on this alone, it won't work because there is no function called ellipse.

Post the relevant code (wrapped in code tags).

This post has been edited by andrewsw: 20 July 2014 - 01:03 PM

Was This Post Helpful? 0
  • +
  • -

#12 jnmule  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 7
  • Joined: 20-July 14

Re: How to Integrate Javascript?

Posted 20 July 2014 - 01:10 PM

that right there is what im having problems with, I write it out and it doesn't show up in my program
Was This Post Helpful? 0
  • +
  • -

#13 andrewsw  Icon User is online

  • It's just been revoked!
  • member icon

Reputation: 3734
  • View blog
  • Posts: 13,054
  • Joined: 12-December 12

Re: How to Integrate Javascript?

Posted 20 July 2014 - 01:17 PM

Javascript does not have an ellipse() function. All that code will do is to cause an error to appear in the browser's console.
Was This Post Helpful? 0
  • +
  • -

#14 jnmule  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 7
  • Joined: 20-July 14

Re: How to Integrate Javascript?

Posted 20 July 2014 - 01:30 PM

can u please tell me how to integrate javascript drawings into html?
Was This Post Helpful? 0
  • +
  • -

#15 andrewsw  Icon User is online

  • It's just been revoked!
  • member icon

Reputation: 3734
  • View blog
  • Posts: 13,054
  • Joined: 12-December 12

Re: How to Integrate Javascript?

Posted 20 July 2014 - 01:35 PM

Canvas tutorial

or SVG Examples

SVG vs canvas: how to choose

Canvas is much more commonly used so I would go with that.

We also have a Tutorials link at the top of this page:

HTML5 - Basic Canvas Drawing

This post has been edited by andrewsw: 20 July 2014 - 01:37 PM

Was This Post Helpful? 0
  • +
  • -

Page 1 of 1