Mysidia Adoptables Support Forum  

Home Community Mys-Script Creative Off-Topic
Go Back   Mysidia Adoptables Support Forum > Mysidia Adoptables > Questions and Supports

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 10-29-2012, 06:45 PM
Aasixx's Avatar
Aasixx Aasixx is offline
.. your friendly geek. c:
 
Join Date: Nov 2011
Location: somewhere ur not.
Posts: 191
Gender: Female
Credits: 27,446
Aasixx is on a distinguished road
Default Javascript included in PHP?

I have a PHP code that requires Javascript to run. I have the Javascript code but I'm confused on how to make the Javascript code work with the PHP code. Do I add <script type="text/javascript" src="/javascriptnamehere.js"></script> in the PHP code and if so, where? It would be really helpful if someone could explain that to me. :)
__________________
Reply With Quote
  #2  
Old 10-29-2012, 09:32 PM
Aasixx's Avatar
Aasixx Aasixx is offline
.. your friendly geek. c:
 
Join Date: Nov 2011
Location: somewhere ur not.
Posts: 191
Gender: Female
Credits: 27,446
Aasixx is on a distinguished road
Default

Nevermind. I got it to work. :)
__________________
Reply With Quote
  #3  
Old 10-30-2012, 02:46 AM
Hall of Famer's Avatar
Hall of Famer Hall of Famer is offline
Administrator, Lead Coder
 
Join Date: Dec 2008
Location: South Brunswick
Posts: 4,448
Gender: Male
Credits: 332,069
Hall of Famer is on a distinguished road
Default

Glad you figured it out, the most common location to insert javascript is your template html file. The js file can be included in the header.
__________________


Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
\\Javascript Help, Please// Poppy Questions and Supports 0 11-06-2011 11:28 AM
Javascript help? AlexC Programming and Game Development 0 07-19-2011 06:22 AM
Anyone here knows Javascript? Hall of Famer Other Chat 5 04-06-2011 07:21 PM
How to get a PHP file to be included in the files in different directories? robertson Other Chat 4 11-09-2010 10:20 AM
lang.php not included in forgotpass.php [ANSWERED] arlecchina Questions and Supports 4 07-14-2009 06:42 PM


All times are GMT -5. The time now is 04:21 AM.

Currently Active Users: 396 (0 members and 396 guests)
Threads: 4,080, Posts: 32,024, Members: 2,016
Welcome to our newest members, jolob.
BETA





What's New?

What's Hot?

What's Popular?


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
vBCommerce I v2.0.0 Gold ©2010, PixelFX Studios
vBCredits I v2.0.0 Gold ©2010, PixelFX Studios
Emoticons by darkmoon3636