Title: HOWTO Questions: Javascript
Last modified: August 19, 2016

---

# HOWTO Questions: Javascript

 *  Resolved [asilverstone](https://wordpress.org/support/users/asilverstone/)
 * (@asilverstone)
 * [16 years, 10 months ago](https://wordpress.org/support/topic/howto-questions-javascript/)
 * So, I got this .js that I know is good.
    I put it on the server. I called it 
   from a page.
 * That didnt do “it”.
 * What am I doing wrong?

Viewing 5 replies - 1 through 5 (of 5 total)

 *  [asechrest](https://wordpress.org/support/users/asechrest/)
 * (@asechrest)
 * [16 years, 10 months ago](https://wordpress.org/support/topic/howto-questions-javascript/#post-1117912)
 * Did you add the path to the javascript file in the head?
 * `<script type="text/javascript" src="'.get_option(siteurl).'/wp-content/plugins/
   author_exposed/javascript/skripta.js"></script>`
 *  Thread Starter [asilverstone](https://wordpress.org/support/users/asilverstone/)
 * (@asilverstone)
 * [16 years, 10 months ago](https://wordpress.org/support/topic/howto-questions-javascript/#post-1117924)
 * Not exactly. I have this:
 * <script src=”[http://www.arielsilverstone.com/twittermap.js](http://www.arielsilverstone.com/twittermap.js)
   type=mce-”text/javascript””></script>
 * and script IS in /
 *  [asechrest](https://wordpress.org/support/users/asechrest/)
 * (@asechrest)
 * [16 years, 10 months ago](https://wordpress.org/support/topic/howto-questions-javascript/#post-1117929)
 * Is your javascript file actually in your server root as the filepath you gave
   suggests?
 * Your post is cut off so I don’t know your javascript file location. You’ve got
   additional errors in the script tag you listed, including a failure to close 
   your `src=` double quotation mark, a doubling of your end quotation marks, and
   an incorrect `type=` designation.
 *  Thread Starter [asilverstone](https://wordpress.org/support/users/asilverstone/)
 * (@asilverstone)
 * [16 years, 10 months ago](https://wordpress.org/support/topic/howto-questions-javascript/#post-1117956)
 * Yes, the file is in root. I did close those. The line is this:
 * <script src=”[http://www.arielsilverstone.com/twittermap.js](http://www.arielsilverstone.com/twittermap.js)
   type=mce-”text/javascript””></script>
 * closing double quotes, and closing script. My type will be corrected – I wonder
   what entered the “mce-” part
 *  [Mark / t31os](https://wordpress.org/support/users/t31os_/)
 * (@t31os_)
 * [16 years, 10 months ago](https://wordpress.org/support/topic/howto-questions-javascript/#post-1117958)
 * Your call is still incorrect…
    `<script src="http://www.arielsilverstone.com/
   twittermap.js type=mce-”text/javascript”"></script>`
 * Should be…
    `<script type="text/javascript" src="http://www.arielsilverstone.
   com/twittermap.js"></script>`
 * NOTE: I moved the type and src around, but honestly which comes first doesn’t
   matter, importantly you just need to ensure the correct use of quotes..
 * If it’s in the root, then this **might** work..
    `<script type="text/javascript"
   src="/twittermap.js"></script>`
 * If you have a path problem, when viewing the page, check “View Source” and note
   the URL that’s been printed into the SRC part of the call to the JS.. as in this
   bit.. `src=" whatever_appears_here "`

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘HOWTO Questions: Javascript’ is closed to new replies.

## Tags

 * [call](https://wordpress.org/support/topic-tag/call/)
 * [javascript](https://wordpress.org/support/topic-tag/javascript/)
 * [js](https://wordpress.org/support/topic-tag/js/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 5 replies
 * 3 participants
 * Last reply from: [Mark / t31os](https://wordpress.org/support/users/t31os_/)
 * Last activity: [16 years, 10 months ago](https://wordpress.org/support/topic/howto-questions-javascript/#post-1117958)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
