Thread: need help please

Results 1 to 2 of 2
  1. #1 need help please 
    Registered Member duration's Avatar
    Join Date
    Feb 2017
    Posts
    104
    Thanks given
    40
    Thanks received
    3
    Rep Power
    0
    so here is my current code

    <script type="text/javascript" charset="utf-8">
    $(document).ready(function() {
    $('#five_year').dataTable({
    "iDisplayLength": 25
    });
    });
    </script>

    but i need to some how load a table from another html file so i can just change the file instead of refering to the html table code so I can just replace it and not edit the actual code

    Can anyone help me?

    for example the html file being called is data.html

    thanks
    Reply With Quote  
     

  2. #2  
    Registered Member RubyGuy's Avatar
    Join Date
    Sep 2017
    Posts
    9
    Thanks given
    0
    Thanks received
    4
    Rep Power
    0
    Awfully perplexed by what it is you're exactly asking.

    You should give an example of some input you have and output for starters. In addition be more clear and maybe even format that snippet of what you have.

    However, I think what you want is some sort of Javascript Templating System; like HandleBars, EJS and things of that sort. You shouldn't be using an HTML file for data... You probably want to have the data in a JSON file.

    Check it out: Handlebars.js: Minimal Templating on Steroids

    If you insist on using JQuery I believe they also have a Templating System.
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Similar Threads

  1. Need Help Please!!!!!
    By Damien in forum Help
    Replies: 6
    Last Post: 01-25-2009, 07:22 PM
  2. Need Help Please
    By Damien in forum Help
    Replies: 2
    Last Post: 01-25-2009, 06:11 PM
  3. [DELTA] i need help please ill rep+
    By Tariq in forum Help
    Replies: 8
    Last Post: 01-22-2009, 12:53 AM
  4. [508] Need help. PLEASE WATCH!
    By groningen050 in forum Tutorials
    Replies: 5
    Last Post: 11-27-2008, 11:14 PM
  5. need help please!
    By swilly in forum RS2 Server
    Replies: 0
    Last Post: 12-03-2007, 03:19 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •