473,545 Members | 1,884 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Saving content of Html page in another server

Hi everyone,

I'm incharge of updating the stats on a chl hockey teams Web Site. I
would like to know if there is a way (javascript) to be able to save
the content of the CHL Statistics WebPage on our Server with
Javascript, in a txt file.

If it possible, then I would take the content of that page. Execute
another script that will take this information an place it in our
database on our server. By doing this, our Team WebSite would be
update automaticaly.

At this time, I have to open the CHL Statistics WebPage. Then Save the
HTML page as a txt file, upload it on our server via FTP, then execute
my script that places it in our database.

Could you send your suggestions to re*******@gnb.c a?

Any help would be greatly appreciated and Thank You in advance.

Rene Aube
Jul 20 '05 #1
4 1940
In article <2d************ **************@ posting.google. com>, re*******@gnb.c a
(Rene Aube) writes:
Hi everyone,

I'm incharge of updating the stats on a chl hockey teams Web Site. I
would like to know if there is a way (javascript) to be able to save
the content of the CHL Statistics WebPage on our Server with
Javascript, in a txt file.
If you have access to server side javascript, sure. But javascript executed in
the browser has no access to write files on the server.
If it possible, then I would take the content of that page. Execute
another script that will take this information an place it in our
database on our server. By doing this, our Team WebSite would be
update automaticaly.
Modify the script that puts it in the database so that it reads what you are
wanting to save, and then puts it in the database.
At this time, I have to open the CHL Statistics WebPage. Then Save the
HTML page as a txt file, upload it on our server via FTP, then execute
my script that places it in our database.
See above, or you can write a form script that does it on the server, but
client side javascript has no way to write files on the server.
Could you send your suggestions to re*******@gnb.c a?


No thanks. See the group FAQ, paragraph 6, line 1:

http://www.jibbering.com/faq/#FAQ2_3

--
Randy
Jul 20 '05 #2
What kind of Database system are you using?
Some (like FileMaker), dependant on their version can be programmed to
fetch and import data like this automatically.

It just sounds a bit unusual that you want to use JavaScript (which,
from my understanding is more tailored towards manipulating the user's
interface rather than doing work on the server).
Jul 20 '05 #3
In article <4c************ **************@ posting.google. com>,
is****@hotmail. com says...
What kind of Database system are you using?
Some (like FileMaker), dependant on their version can be programmed to
fetch and import data like this automatically.

It just sounds a bit unusual that you want to use JavaScript (which,
from my understanding is more tailored towards manipulating the user's
interface rather than doing work on the server).

Are you replying to something? If you are, what? How about quoting?

--
Hywel I do not eat quiche
http://hyweljenkins.co.uk/
http://hyweljenkins.co.uk/mfaq.php
Jul 20 '05 #4

"Rene Aube" <re*******@gnb. ca> wrote in message
news:2d******** *************** ***@posting.goo gle.com...
Hi everyone,

I'm incharge of updating the stats on a chl hockey teams Web Site. I
would like to know if there is a way (javascript) to be able to save
the content of the CHL Statistics WebPage on our Server with
Javascript, in a txt file.

If it possible, then I would take the content of that page. Execute
another script that will take this information an place it in our
database on our server. By doing this, our Team WebSite would be
update automaticaly.

At this time, I have to open the CHL Statistics WebPage. Then Save the
HTML page as a txt file, upload it on our server via FTP, then execute
my script that places it in our database.

Could you send your suggestions to re*******@gnb.c a?

Any help would be greatly appreciated and Thank You in advance.

Rene Aube


JavaScript is typically used in client-side applictions, in the browser.
What you are looking for is a server-side method for storing the data, and
reformatting it for the user. Do a search for CGI, ASP, PHP, or any other
server-side scripting technology. There exist Javascript server-side
engines, but that is not likely the answer you are looking for.

Getting the data from CHL to your database may be the trickiest... in that
case, if they do it in a constant way, you could write a tool using HTA
(Search MS's website for it) to load the CHL page in one frame, and the
other frame, use a script to pull the data out. The script would then use
some sort of CGI technology (ASP, PHP, Perl, etc) to put the data directly
into your database. Then, the users of your site will access another CGI
app that goes into your database, and formats the data in a page, the way
you want it to.

There are other server-side methods that can be used to get the data, like
having the server download the page, parse it with something like Tidy, and
pull the data out of the DOM model, and put into the database. This tool
could be run by a Cron job, or something similar...

Just some ideas,
Brian
Jul 20 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
1599
by: Rene Aube | last post by:
Hi everyone, I'm incharge of updating the stats on a chl hockey teams Web Site. I would like to know if there is a way to be able to save the content of the CHL Statistics WebPage on our Server and using it to update our Microsoft Access 2000 database. If it possible, then I would take the content of that page. Execute some code that...
5
3130
by: Thaynann | last post by:
I have an app that (at the moment) moves through files that are on a web site, and deletes them, wat i want to do for the next stage, is to be able to download each file before i delete it. i have tried POSTin to be able to view the image, then saving it, but it doesnt work, the problem i have is that all the files on the server have the...
2
3174
by: Jay Walker | last post by:
I created a custom DataGridColumn based on Marcie Robillard's MSDN Article: Creating Custom Columns for the ASP.NET Datagrid http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnaspp/html/creatingcustomcolumns.asp The problem I am having is that the data in the custom datagridcolumn is not saved to viewstate and after...
3
1414
by: jad101 | last post by:
I have an asp.net web page that: 1. Shows a message 2. Posts back (using javascript) 3. Reads contents of a file 4. response.write the contents of the file to the browser My issue is this: If a user hits this page and decides to save the page for offline browsing, they are not saving the output of the response.write, but instead the...
3
4553
by: RCS | last post by:
I have an app that I have different "sections" that I want to switch back and forth from, all while having the server maintain viewstate for each page. In other words, when I am on Page1.aspx and set textboxes, radio buttons, etc - that viewstate is fine. Then I have a linkbutton that does a Server.Transfer over to Page2.aspx. When I...
7
8690
by: xkeops | last post by:
Thinking of creating a website, most of the pages will have a general toolbar menu, a content and a footer. The content will be the only one who's gonna change but the rest (header,footer) will remain the same. I am interested to know your opinions/suggestions in finding an easy way of doing it. In asp one could have something like this:
3
2142
by: ajaycfd | last post by:
hi all, I need to implement the following functionality in asp. I have got an asp page which renders some html onto the browser.Now instead of rendering the html to the browser i should save that as an html file in server itself. Please advise how i can accomplish this. Thanks for help!!
3
2448
by: pozze | last post by:
Hi, I've just made the change from ASP to .net. I have a file (code below) that saves a user submitted file to a MS SQL 2005 database. It collects the file name, file size, file type, and lastly the binary data for the file. I can sucessfully take the files out of the databse again and display them in a data grid. I would like to resize the...
2
1670
by: houghi | last post by:
I am trying to do two things at a time. I want to give the user the opportunity to save a file and at the same time see new information on the screen. I can do it seperately, but not together. What I have is the following: @ob_end_clean(); $SHOW = "1"; if ($SHOW == 1) { // Show all the info on a page
0
7416
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7676
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
7932
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7442
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
6001
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5347
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
4965
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
1
1905
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1032
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.