Webmaster Key - Discussion Forums


Welcome, Guest. Please login or register.
Did you miss your activation email?
February 08, 2012, 04:02:29 PM

Login with username, password and session length
Welceome to Forums!

Important information for guests and new members:

In order to understand the full benefits of becoming an active member of this forum, please review the following information on guest and new member restrictions. These forum changes have been prompted by an overwhelming and unreasonable amount of bot postings and incoherent guest spam messages. We wish to prevent these events from happening in the future and make our community a more comfortable place for all of our members.

For guests:

Guests are not allowed to open new topics, polls, or posts attachments.
If you wish to open up new discussions on this forum, we encourage you to register.

For new members:

New members with less than five posts are not allowed to modify additional profile information such as avatars, contact information, biographies, and signatures. However, new members are encouraged to post their own topics or reply to topics initiated by other members. Become active on the forums and 5 posts should be an easy task!

We are a diverse community with members from all over the world. We encourage new ideas and interesting conversation. Do not be afraid to post webmaster/computer-related questions or problems, as our active members are always willing to help when they are able. Interested? Join us.

+ Webmaster Key Forums
|-+ Webmaster Corner
| |-+ Site Design and Web Authoring
| | |-+ Coding Talk
| | | |-+ Add a Spread Sheet to your Site
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Go Down Stumble Upon! Digg It! del.icio.us! Add to Technorati! ReddIt!  Send this topic Print
Author Topic: Add a Spread Sheet to your Site  (Read 1922 times)
Andy
Administrator
Veteran
*****
Posts: 5 752



« on: February 13, 2007, 12:04:45 PM »

This open-source script allows you to have a web-based spread sheet on your site. It doesn't store files to your server so all you need is php to run it. But people can still save and load spread-sheets via cut and paste to/from their own computer.

I did a mod to the script to allow people to see various spreadsheets that may be hosted on my server. Then they can add their changes and email me the new version. The idea here is to provide a feedback mechanism for my software beta testers without them needing office software installed on their computer. and it removes the problem of file compatibility between the various spread-sheet formats since the cut and paste data is pure text.

I got it from here: http://www.simple-groupware.de/cms/Spreadsheet/Home

Installation is so simple, all you do is upload the files and set the cache directory permissions to 777 to allow the cache files to be written.

My installation is here where you can see the standard cool demo featuring charts: http://www.sitesugu.com/beta-testers/log/spreadsheet.php

Here is my custom version of the script in action with parameters to specify the chart:

http://www.sitesugu.com/beta-testers/log/spreadsheet.php?chart=sitesugu

Anyone can edit these spreadsheets and copy and paste data since it uses javascript. But you can't save to my server.

The online manual is here:
http://www.simple-groupware.de/cms/Spreadsheet/Manual

One stumbling block for me was how to format cells. The trick is to realise that after clicking on a cell, the formula edit box turns white. Here is where you enter text, html and formulas. But next to it is another edit box where you enter css code to format the cell. The css is covered in the manual.

To create links that load your own spreadsheets from a server, try my code. Insert this in the spreadsheet.php file at the start. make the code before the html tag look like this:
Code:
$lang = "en";
if (!empty($_REQUEST["lang"])) $lang = $_REQUEST["lang"];

$init_file = "examples/features_en.js";

if (!empty($_REQUEST["chart"])) {
  switch ($_REQUEST["chart"]) {
      case "sitesugu":
        $init_file = "latest/sitesugu.js";
      break;
      case "suguserver":
        $init_file = "latest/suguserver.js";
      break;
  }
}

if ($lang == "de") $init_file = "examples/features_de.js";
?>

Replace the .js file paths with ones to charts that you saved to your server.

Then append ?chart=yourchartname to the end of the url to get the script to load your saved spreadsheet.

Report to moderator   Logged

Pages: [1] Go Up Stumble Upon! Digg It! del.icio.us! Add to Technorati! ReddIt!  Send this topic Print 
+ Webmaster Key Forums
|-+ Webmaster Corner
| |-+ Site Design and Web Authoring
| | |-+ Coding Talk
| | | |-+ Add a Spread Sheet to your Site

Jump to:  
« previous next »


Our Partners
RelmaxTOP Ranking System Web Hosting RelmaxTOP Ranking System
Staff Sites
12Noon[12Noon Gallery] Andy[Urgentclick]
Tamuril[Tamuril's Digital Art Exhibit] Sensovision
Powered by MySQL Powered by PHP We are hosted by Relmax Inc. |Our Privacy Policy | Sitemap
Powered by SMF 1.1.9 | SMF © 2006-2009, Simple Machines LLC
Forum design by Tamuril © 2005.
Valid XHTML 1.0! Valid CSS!