1. Vote now - Choose the template types you want in coming months


    JA HawkStore - Stable version Released


    JM Siotis - Beta version released


    Tools & Tips - Make your Joomla site faster


    JA Brisk, Mitius, Onepage & Mero updated - Offcanvas navigation for mobile now available


    5 more JATC extensions updated - Backend UI improvement & new coding standards.


User Tag List

+ Reply to Thread
 
Results 1 to 8 of 8
  1. #1

    Joomla Developer Membership - 1 year ExpiredJoomlaTemplate Club Member - Personal License - 3 Months Expired

    Join Date
    Mar 2009
    Posts
    365
    Points
    1,137.00
    Downloads
    18
    Uploads
    0
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks
    46
    Thanked 64 Times in 55 Posts

    How do I embed javascript into article?

    Hello,

    I am trying to create an article, where I would like to embed a javascript code to display some player stats for a player profile page.

    For example, here is the code I want to embed:

    <script src="http://www.hockeydb.com/em/?text_col=%23000000&linktext_col=%230000ee&linktex t_hover_col=%23770000&bg_col=%23f0ecdd&border_col= %23000000&title_bg_col=%23d6cda5&row_bg_col=%23fff fff&row_alt_bg_col=%23f5f2e9&header=1&pid=108670" type="text/javascript"></script>

    Does anyone know how I can do this?

    Thanks for any help in advance!

  2. #2
    Global Moderator
    Join Date
    Jan 2009
    Location
    Hemel Hempstead, UK
    Posts
    7,389
    Points
    15,663.30
    Downloads
    1565
    Uploads
    0
    Mentioned
    5 Post(s)
    Tagged
    0 Thread(s)
    Thanks
    682
    Thanked 2,062 Times in 1,751 Posts
    Download Jumi from here.

    http://jumi.vedeme.cz/
    If you find a post useful please press the Thank You button

    http://www.windsurf.me.uk/

  3. #3

    Joomla Developer Membership - 1 year ExpiredJoomlaTemplate Club Member - Personal License - 3 Months Expired

    Join Date
    Mar 2009
    Posts
    365
    Points
    1,137.00
    Downloads
    18
    Uploads
    0
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks
    46
    Thanked 64 Times in 55 Posts
    Hi Phill, thank-you. I checked the jumi extension out, read a lot of user reviews, read the support ducimentation, and installed the Jumi mod/plugin onto my Joomla site.

    I have fiddled around with it for a few hours now, but am having a trouble grasping the basics of what I need to do to accomplish what I want to accomplish.

    For example, the scrip I have (below) would show the player stats and is from a site called hockeydb.com. The stats would show on the page and automatically update daily.

    This is the script:
    <script src="http://www.hockeydb.com/em/?text_col=%23000000&linktext_col=%230000ee&linktex t_hover_col=%23770000&bg_col=%23f0ecdd&border_col= %23000000&title_bg_col=%23d6cda5&row_bg_col=%23fff fff&row_alt_bg_col=%23f5f2e9&header=1&pid=108670" type="text/javascript"></script>

    This is the page I want to embed it on (at the end of the article):
    http://www.sypfantasyhockey.com/inde...d=44&Itemid=83

    I understand you are not necessarily a Jumi expert, but if you are able to help me with the basics to start out.

    I read that all the scripts must be stored on my server somewhere, so I am assuming that the src code inside the above script is not enough to tell the plugin to show that source?

    Sorry for the dumb questions....any help is so very much appreciated.

  4. #4
    Licensed Member Expired
    Joomla Developer Membership - 1 year Expired

    Join Date
    Jul 2006
    Location
    Queensland Australia
    Posts
    1,934
    Points
    -1.50
    Downloads
    406
    Uploads
    0
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks
    15
    Thanked 156 Times in 113 Posts
    Quote Originally Posted by theprofessor View Post
    Hi Phill, thank-you. I checked the jumi extension out, read a lot of user reviews, read the support ducimentation, and installed the Jumi mod/plugin onto my Joomla site.

    I have fiddled around with it for a few hours now, but am having a trouble grasping the basics of what I need to do to accomplish what I want to accomplish.

    For example, the scrip I have (below) would show the player stats and is from a site called hockeydb.com. The stats would show on the page and automatically update daily.

    This is the script:
    <script src="http://www.hockeydb.com/em/?text_col=%23000000&linktext_col=%230000ee&linktex t_hover_col=%23770000&bg_col=%23f0ecdd&border_col= %23000000&title_bg_col=%23d6cda5&row_bg_col=%23fff fff&row_alt_bg_col=%23f5f2e9&header=1&pid=108670" type="text/javascript"></script>

    This is the page I want to embed it on (at the end of the article):
    http://www.sypfantasyhockey.com/inde...d=44&Itemid=83

    I understand you are not necessarily a Jumi expert, but if you are able to help me with the basics to start out.

    I read that all the scripts must be stored on my server somewhere, so I am assuming that the src code inside the above script is not enough to tell the plugin to show that source?

    Sorry for the dumb questions....any help is so very much appreciated.
    just create a table inside the article body and insert the script into the table?

    ShannonN

  5. #5
    Super Moderator scotty's Avatar
    Join Date
    Mar 2008
    Location
    Ireland
    Age
    38
    Posts
    2,327
    Points
    24,251.48
    Downloads
    173
    Uploads
    0
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Thanks
    76
    Thanked 843 Times in 638 Posts
    Your default Joomla editor (tinyMCE) will strip <script> tags when you save the article unless you configure it not to.

    Go to Extensions>Plugins>editors>TinyMCE and on the right hand side set...
    Code Cleanup on Startup: Off
    Code cleanup on save: Never
    Do not clean HTML entities: Yes
    ....Save.

    Now go back to your article and click the 'HTML' button and paste in your script where you want it to appear. Save. And it should work fine.
    Please use the forums SEARCH before posting! Please BACK UP files before editing!

  6. The Following User Says Thank You to scotty For This Useful Post:

    theprofessor (04-04-2009)

  7. #6
    Super Moderator scotty's Avatar
    Join Date
    Mar 2008
    Location
    Ireland
    Age
    38
    Posts
    2,327
    Points
    24,251.48
    Downloads
    173
    Uploads
    0
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Thanks
    76
    Thanked 843 Times in 638 Posts
    Your script above does not work though :(
    Please use the forums SEARCH before posting! Please BACK UP files before editing!

  8. #7

    Joomla Developer Membership - 1 year ExpiredJoomlaTemplate Club Member - Personal License - 3 Months Expired

    Join Date
    Mar 2009
    Posts
    365
    Points
    1,137.00
    Downloads
    18
    Uploads
    0
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks
    46
    Thanked 64 Times in 55 Posts
    Quote Originally Posted by scotty View Post
    Your default Joomla editor (tinyMCE) will strip <script> tags when you save the article unless you configure it not to.

    Go to Extensions>Plugins>editors>TinyMCE and on the right hand side set...
    Code Cleanup on Startup: Off
    Code cleanup on save: Never
    Do not clean HTML entities: Yes
    ....Save.

    Now go back to your article and click the 'HTML' button and paste in your script where you want it to appear. Save. And it should work fine.
    Scotty...this works beautifully! Thank you so much...I knew it was something simple...just that my mind is more simple,

  9. #8
    Super Moderator scotty's Avatar
    Join Date
    Mar 2008
    Location
    Ireland
    Age
    38
    Posts
    2,327
    Points
    24,251.48
    Downloads
    173
    Uploads
    0
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Thanks
    76
    Thanked 843 Times in 638 Posts
    Your welcome.

    Fits in nice with the page actually.
    Please use the forums SEARCH before posting! Please BACK UP files before editing!

+ Reply to Thread

Tags for this Thread

Bookmarks

Posting Permissions

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