SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Zealot silverviper's Avatar
    Join Date
    May 2005
    Location
    Norway
    Posts
    125
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    help with includes

    Hi

    i've made an include system that uses Server.Execute(filename), it works for static content, however, i'm experiencing difficulty including a RTE

    these javascripts are included in the default.asp
    path: www/default.asp
    Code:
    <script language="JavaScript" src="include/yusasp_ace.js"></script>
    <script language="JavaScript" src="include/yusasp_color.js"></script>
    <script language="JavaScript" src="include/submit.js"></script>
    and this is the editor page
    path: www/addons/editor/editor.asp

    Code:
    <div id="content">
    <script type="text/javascript">
    LoadContent()
    </script>
    <form method="post" action="access_update_news.asp?pid=<%=pid%>" name="SaveForm" ID="Form1">
    	Emne: <input name="news_heading" type="text" value="<%=heading%>" size="65">
    <br><br>
    	<input type="hidden" name="txtContent"  value="" ID="Hidden1">		
    	<script language="JavaScript" src="include/editor.js"></script>
    	<input name="hiddenID" type="hidden" id="hiddenID" value="">
    </form>
    <a href="access_delete_news.asp?nid=3" onClick="return confirm('Er du sikker på at du vil slette?')"><img src="../btnmaker/btn_tpl_01.php?text=Slett Nyhetsbrev&width=140&size=10&shadow=false&scheme=out" srcover="../btnmaker/btn_tpl_01.php?text=Slett Nyhetsbrev&width=140&size=10&shadow=false&scheme=over" border="0"></a>
    <textarea rows=7 cols=40 ID="idTextarea" name="idTextarea" style="display:none">dfsjethertherth</textarea>
    </div>
    all javascript files for the editor
    path: www/include/

    The editor loads when i request the editor page, but it seem that not all js is loaded.


    any clues?

    Chris

  2. #2
    SitePoint Zealot silverviper's Avatar
    Join Date
    May 2005
    Location
    Norway
    Posts
    125
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    SOLVED

    I had to remove this line from the default.asp

    Code:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    EDIT:

    I changed it to this

    Code:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    Chris
    Last edited by silverviper; Oct 4, 2006 at 04:40.

  3. #3
    SitePoint Zealot
    Join Date
    Aug 2006
    Location
    NY, USA
    Posts
    141
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hmm, thats odd, I've never seen that affect includes.

  4. #4
    SitePoint Wizard bbolte's Avatar
    Join Date
    Nov 2001
    Location
    The Central Plains
    Posts
    3,304
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    yeah, really. strange...

  5. #5
    SitePoint Wizard
    Join Date
    Nov 2004
    Location
    Nelson BC
    Posts
    2,310
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    <script language="JavaScript" src="include/yusasp_ace.js"></script>
    This is bad, what you should be using is:

    <script type="text/javascript" src="include/yusasp_ace.js"></script>


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
  •