Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > Edit webpage remotely

Reply
Thread Tools

Edit webpage remotely

 
 
Kabuki Armadillo
Guest
Posts: n/a
 
      01-19-2009
I'm an html / css hobbyist. Was persuaded to set up a friend's business
"brochure" site.

Now he wants interactivity -- specifically would like to edit online lists
of clients, perhaps in some sort of spreadsheet form. The idea is that his
staff would update online lists of students for the various first aid
courses he teaches.

He doesn't want to deal with the html behind the scenes -- just the text /
data.

Is such a thing possible without programming? I don't want to learn
programming for just this guy.

I was wondering if there was some server-side solution. I have used
javascripts from script farms for some simple stuff. Is there a way to
accomplish this with javascript? Say download the file, edit and then upload
it again "invisibly"?

The other approach I'm thinking is to simply recommend one of the many free
file-hosting sites.

Or, perhaps someone knows of an online service that offers this?

Thoughts, suggestions?

M


 
Reply With Quote
 
 
 
 
Kabuki Armadillo
Guest
Posts: n/a
 
      01-19-2009

"Ed Mullen" <> wrote in message
news:...
> Kabuki Armadillo wrote:
>> I'm an html / css hobbyist. Was persuaded to set up a friend's business
>> "brochure" site. Now he wants interactivity -- specifically would like to
>> edit online lists of clients


> The simplest thing for both you and him I can think of is to keep the list
> in a separate text file that he can edit and upload to the server. Then on
> the Web page where it is displayed use an include (SSI or PHP) to pull the
> data in from the text file. I wouldn't mess with javascript because some
> of the visitors to the site may have it disabled in their browser.


Doesn't that mean I'm into programming though?

I know generally how the include function works but I didn't realize that it
gave me remote "editability"

Can you give me an example -- online or one of your own -- how I would use
this?

M

 
Reply With Quote
 
 
 
 
Helpful person
Guest
Posts: n/a
 
      01-19-2009
On Jan 19, 1:13*pm, "Kabuki Armadillo" <kabuki.armadi...@geemail.com>
wrote:
> I'm an html / css hobbyist. Was persuaded to set up a friend's business
> "brochure" site.
>
> Now he wants interactivity -- specifically would like to edit online lists
> of clients, perhaps in some sort of spreadsheet form. The idea is that his
> staff would update online lists of students for the various first aid
> courses he teaches.
>
> He doesn't want to deal with the html behind the scenes -- just the text /
> data.
>
> Is such a thing possible without programming? I don't want to learn
> programming for just this guy.
>
> I was wondering if there was some server-side solution. I have used
> javascripts from script farms for some simple stuff. Is there a way to
> accomplish this with javascript? Say download the file, edit and then upload
> it again "invisibly"?
>
> The other approach I'm thinking is to simply recommend one of the many free
> file-hosting sites.
>
> Or, perhaps someone knows of an online service that offers this?
>
> Thoughts, suggestions?
>
> M


The easiest way is to display the Excel spreadsheet directly. You can
link to the spreadsheet which will then maintain all its formatting.
When it is to be updated then just replace the spreadsheet.
 
Reply With Quote
 
Helpful person
Guest
Posts: n/a
 
      01-19-2009
On Jan 19, 3:14*pm, Ed Mullen <e...@edmullen.net> wrote:
> Helpful person wrote:
> > On Jan 19, 1:13 pm, "Kabuki Armadillo" <kabuki.armadi...@geemail.com>
> > wrote:
> >> I'm an html / css hobbyist. Was persuaded to set up a friend's business
> >> "brochure" site.

>
> >> Now he wants interactivity -- specifically would like to edit online lists
> >> of clients, perhaps in some sort of spreadsheet form. The idea is that his
> >> staff would update online lists of students for the various first aid
> >> courses he teaches.

>
> >> He doesn't want to deal with the html behind the scenes -- just the text /
> >> data.

>
> >> Is such a thing possible without programming? I don't want to learn
> >> programming for just this guy.

>
> >> I was wondering if there was some server-side solution. I have used
> >> javascripts from script farms for some simple stuff. Is there a way to
> >> accomplish this with javascript? Say download the file, edit and then upload
> >> it again "invisibly"?

>
> >> The other approach I'm thinking is to simply recommend one of the many free
> >> file-hosting sites.

>
> >> Or, perhaps someone knows of an online service that offers this?

>
> >> Thoughts, suggestions?

>
> >> M

>
> > The easiest way is to display the Excel spreadsheet directly. *You can
> > link to the spreadsheet which will then maintain all its formatting.
> > When it is to be updated then just replace the spreadsheet.

>
> If you just link to it the site visitor will need to have Excel on his
> computer and launch it to view the spreadsheet. *Similar issue to using
> javascript: *The visitor may have it turned off in his browser.
>
> --
> Ed Mullenhttp://edmullen.net
> Is it my imagination, or do buffalo wings taste like chicken?


Yes that's true. However, how many people today cannot read an XLS
file? Otherwise the uploaded file is going to need to be formatted.
 
Reply With Quote
 
Kabuki Armadillo
Guest
Posts: n/a
 
      01-19-2009
"Helpful person" <> wrote in message
news:1dc208fe-146d-425c-9bbe-...
On Jan 19, 1:13 pm, "Kabuki Armadillo" <kabuki.armadi...@geemail.com>
wrote:
> I'm an html / css hobbyist. Was persuaded to set up a friend's business
> "brochure" site.
>
> Now he wants interactivity -- specifically would like to edit online lists
> of clients, perhaps in some sort of spreadsheet form. The idea is that his
> staff would update online lists of students for the various first aid
> courses he teaches.


> The easiest way is to display the Excel spreadsheet directly. You can
> link to the spreadsheet which will then maintain all its formatting.
> When it is to be updated then just replace the spreadsheet.


Sorry, but I don't understand this. Displaying the spreadsheet directly
doesn't give you the ability to update it directly AFAIK.

Or, are you suggesting downloading the spreadsheet, updating and then
uploading it again?

M

 
Reply With Quote
 
Helpful person
Guest
Posts: n/a
 
      01-19-2009
On Jan 19, 4:06*pm, "Kabuki Armadillo" <kabuki.armadi...@geemail.com>
wrote:
>
> Or, are you suggesting downloading the spreadsheet, updating and then
> uploading it again?
>
> M


Yes
 
Reply With Quote
 
Helpful person
Guest
Posts: n/a
 
      01-19-2009
On Jan 19, 4:19*pm, Helpful person <rrl...@yahoo.com> wrote:
> On Jan 19, 4:06*pm, "Kabuki Armadillo" <kabuki.armadi...@geemail.com>
> wrote:
>
>
>
> > Or, are you suggesting downloading the spreadsheet, updating and then
> > uploading it again?

>
> > M

>
> Yes


Sorry, I meant updating it in real time on the server. That way two
people couldn't be trying to change it at the same time.
 
Reply With Quote
 
dorayme
Guest
Posts: n/a
 
      01-19-2009
In article <6p3dl.98596$>,
"Kabuki Armadillo" <> wrote:

> I'm an html / css hobbyist. Was persuaded to set up a friend's business
> "brochure" site.
>
> Now he wants interactivity -- specifically would like to edit online lists
> of clients, perhaps in some sort of spreadsheet form. The idea is that his
> staff would update online lists of students for the various first aid
> courses he teaches.
>
> He doesn't want to deal with the html behind the scenes -- just the text /
> data.
>
> Is such a thing possible without programming? I don't want to learn
> programming for just this guy.
>
> I was wondering if there was some server-side solution. I have used
> javascripts from script farms for some simple stuff. Is there a way to
> accomplish this with javascript? Say download the file, edit and then upload
> it again "invisibly"?
>
> The other approach I'm thinking is to simply recommend one of the many free
> file-hosting sites.
>
> Or, perhaps someone knows of an online service that offers this?
>
> Thoughts, suggestions?
>


You don't have to learn programming but you will be able to solve this
if you have a php script in your name.html to process a csv file.

It works like this, your client alters a spreadsheet how he likes,
exports it or saves it as a CSV (comma separated values) file. This
latter is a text file that is formatted a simple way with each row
represented by a line and each cell on the row represented by comma
separated text.

This CSV file is uploaded with the name "name.csv" to the server (you or
your client can do this easily). Ready and waiting for it is an html
file that you have prepared, inside of which is some code that looks
like this:

<?php

$filename = "1-9.csv"; //here's the filename

$id = fopen($filename, "r"); //open the file
while ($data = fgetcsv($id, filesize($filename))) //start a loop
$table[] = $data; //put each line into its own entry in the $table array
fclose($id); //close file

echo "<table id=\"spreadsheet\" cellspacing=\"0\">";

echo "<tr><th>TOPIC</th><th>REFERENCE</th></tr>";

foreach($table as $row)
{
echo "<tr>";
foreach($row as $data)
echo "<td>$data&nbsp;</td>";
echo "</tr>\n";
}

echo "</table>\n";

?>

When this part of the html file is being scanned by the server (it will
be set up to note php code), it will then make up the html table
properly grabbing all the values in the CSV file.

You then end up with a proper html table, just what is wanted.

Here is an example of the sort of thing that results using pretty well
the code above. On the server, there is a file called a.csv and a file
called a.html. The html file you can see in View Source except that
where the table is, the actual one has the code above, it has been
executed already by the time it reaches the browser:

<http://www.khs.org.au/historian_database/a.html>

Ignore the javascript on it as this is just for an inessential striping
effect.

You might be able to get some help tailoring your particular php
requirement to your context at php.alt. Once set, you won't need to
fiddle with it.

And, you can either have the client upload the CSV file (which he will
prepare from his spreadsheet program, it is just a matter of a saving it
in as CSV) or he can send it or the original spreadsheet to you to do. I
always prefer this latter so I can run an eye out over it for any
anomalies (there are a few hiccups that can happen when saving as CSV..
but don't let this frighten you.).

--
dorayme
 
Reply With Quote
 
Kabuki Armadillo
Guest
Posts: n/a
 
      01-19-2009
"dorayme" <> wrote in message
news:doraymeRidThis-...
> In article <6p3dl.98596$>,
> "Kabuki Armadillo" <> wrote:
>
>> I'm an html / css hobbyist. Was persuaded to set up a friend's business
>> "brochure" site.
>>
>> Now he wants interactivity


>> Is such a thing possible without programming? I don't want to learn
>> programming for just this guy.




> You don't have to learn programming but you will be able to solve this
> if you have a php script in your name.html to process a csv file.
>
> It works like this, your client alters a spreadsheet how he likes,
> exports it or saves it as a CSV (comma separated values) file.


I understand your solution and, for me anyway, it's not insurmountable to
implement.

But I can tell this is already going to overwhelm some employees who are
going to be overwhelmed by the import / export and uploading issues.

Thx for the effort though.

I'm thinking now I might use Google Docs, setting up an account for his
employees who could all log on and edit via their browsers in real time. For
me anyway, it's probably the path of least resistance, though I eventually
would like to get a handle on this programming thing.

Thanks again for all the input. . .

Cheers,

M

 
Reply With Quote
 
houghi
Guest
Posts: n/a
 
      01-19-2009
Kabuki Armadillo wrote:
> I'm an html / css hobbyist. Was persuaded to set up a friend's business
> "brochure" site.
>
> Now he wants interactivity -- specifically would like to edit online lists
> of clients, perhaps in some sort of spreadsheet form. The idea is that his
> staff would update online lists of students for the various first aid
> courses he teaches.


How many of these lists are we talking about?

> I was wondering if there was some server-side solution. I have used
> javascripts from script farms for some simple stuff. Is there a way to
> accomplish this with javascript? Say download the file, edit and then upload
> it again "invisibly"?


I use on one site Tiny MCE. http://tinymce.moxiecode.com/ Basicaly I use
php and the text I just include. I have removed everything that might
distract the person from editing text. The person can only include text,
make links, bold and italic. All the rest is removed.

The hardest part was to let the person log in and have an icon they see
once they are logged in, so they can click on it and be able to edit it,
while others who can not log in are not able to edit.


houghi
--
> Knock-knock.
> Who's there?
> Under the Patriot Act, we don't have to tell you that.

 
Reply With Quote
 
 
 
Reply

Thread Tools

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
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
cause webpage one to reload when webpage two is closed. Paul ASP .Net 14 06-19-2008 03:02 PM
check if a webpage is forwarding to a other webpage martijn@gamecreators.nl Python 1 09-06-2005 02:27 PM
Email contents of webpage or Form on webpage w/o using Server scripting sifar Javascript 5 08-24-2005 05:47 PM
Snapshot restraint - edit, edit, edit Alan Browne Digital Photography 24 05-10-2005 10:15 PM
Snapshot restraint - edit, edit, edit Patrick Digital Photography 0 05-06-2005 10:53 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57