Mysidia Adoptables Support Forum  

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

Notices

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #5  
Old 12-22-2009, 09:01 PM
Seapyramid Seapyramid is offline
Premium Member
 
Join Date: Feb 2009
Posts: 373
Gender: Female
Credits: 22,536
Seapyramid
Default RE: Javascript/Jquery not being run.

My pages have been greatly changed from the original script.. but this is an idea of how I have JS incorporated & where it is placed

PHP Code:
// Permissions
//**************************************************
// <editor-fold defaultstate="collapsed" desc="Permissions">
if ($isloggedin != 'yes') {
    
$article_title $accden "<br /><br />";
    
$article_content $reqlogin;
    
// **********************************************************************
    // Begin Template Definition
    // **********************************************************************
    //Define our current theme
    
$file $themeurl;
    
// Do the template changes and echo the ready template
    
$template file_get_contents($file);
    
$template str_replace(':ARTICLETITLE:',$article_title,$template);
    
$template str_replace(':ARTICLECONTENT:',$article_content,$template);
    
$template str_replace(':BROWSERTITLE:',$browsertitle,$template);
    
$template str_replace(':SITENAME:',$sitename,$template);
    echo 
$template;
    return;
    
// **********************************************************************
    // End Template Definition
    // **********************************************************************
}
// </editor-fold>
//**************************************************
// POST Info
//**************************************************
// <editor-fold defaultstate="collapsed" desc="POST Info">
$act $_POST["act"];
$rmto $_POST["rmto"];
$rmfrom $_POST["rmfrom"];
$ids $_POST["ids"];
$order $_POST["order"];
// </editor-fold>
// **********************************************************************
// End Prepwork - Output the page to the user
// This file lets a user mass move their adoptables...
// **********************************************************************
$article_content '<script type="text/javascript">
<!--
function SetAllCheckBoxes(FormName, CheckValue) {
    var myform = document.forms[FormName];
    for (var i = 0; i < myform.length; i++) {
        if (myform.elements[i].type == "checkbox") {
            if (CheckValue) {
                myform.elements[i].checked = CheckValue;
            } else {
                myform.elements[i].checked = "";
            }
        }
    }
}
// -->
</script>'
;
switch (
$act) { 
Reply With Quote
 


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
jQuery and Mysidia: A struggle IntoRain Questions and Supports 11 02-05-2014 03:58 PM
jQuery - Spiffing up your page where you can't edit the HTML! Kyttias Tutorials and Tips 3 01-29-2014 06:09 PM
\\Javascript Help, Please// Poppy Questions and Supports 0 11-06-2011 11:28 AM
Jquery one weekend? Tony Other Chat 0 07-30-2011 06:34 PM
Anyone here knows Javascript? Hall of Famer Other Chat 5 04-06-2011 07:21 PM


All times are GMT -5. The time now is 06:21 PM.

Currently Active Users: 3028 (0 members and 3028 guests)
Threads: 4,081, Posts: 32,032, 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 - 2025, vBulletin Solutions Inc.
vBCommerce I v2.0.0 Gold ©2010, PixelFX Studios
vBCredits I v2.0.0 Gold ©2010, PixelFX Studios
Emoticons by darkmoon3636