473,322 Members | 1,719 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

Read data from serverside file?

Hey, This is a pretty simple question. Is there any easy way to read data from a server side file. I know that Javascript is client side. I was thinking you write a php script to get the data, then open that url in Javascipt? Is it possible to use javascript to get the code of a url? Sorry this is probably very noobish. Thanks guys!
Aug 21 '08 #1
5 2423
hsriat
1,654 Expert 1GB
Perhaps this is what that/those person(s) would have thought to do, who ended up developing Ajax.
Aug 21 '08 #2
Ok wow, I'm smart. (sarcasm) Thanks!
Aug 21 '08 #3
hsriat
1,654 Expert 1GB
Of course you are smart! The only thing is you are few years late :) (j/k)
Aug 22 '08 #4
acoder
16,027 Expert Mod 8TB
If the server-side file returns something which JavaScript can read, e.g. JSON, then you can also use a dynamically created script element.

PS. Ajax wasn't necessarily developed. It was a term coined to make it easier to refer to the new approach in web development in this article.
Aug 22 '08 #5
hsriat
1,654 Expert 1GB
PS. Ajax wasn't necessarily developed. It was a term coined to make it easier to refer to the new approach in web development in this article.
Oh man, could you please atleast let something sound good? :p

(j/k)


Regards
Aug 22 '08 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: michel | last post by:
Hi all, wuold it be possible to read the userinformation from a machine? I am trying to create a database application and would like only certain (logged on to the network) users, to have...
5
by: Peter | last post by:
I have 3 ASP.NET forms written in C#, I also have 3 frames (left, top and bottom) one for each form. My question is if I have data on one form in the bottom frame how do I access this data when I...
7
by: Brian Henry | last post by:
Hi, I have a data grid that has the following properties EnableViewState = false AllowPaging = true AllowSorting = true AllowCustomPaging = false now, when the page switches I want to get...
1
by: leifwessman | last post by:
Google Analytics are using a encrypted JavaScript library to send and read 1st party cookies using. The JS library can be found here http://www.google-analytics.com/urchin.js Is there a free JS...
2
by: agphoto | last post by:
There is big or problem in open file in read and write mode.. $file = "data.txt"; $fp = fopen($file,"w+"); $line = fgets($fp,"120"); // i need only 1st line to read and upto 120 bytes echo...
7
by: Mike | last post by:
I have developed an application, for psyc patients.... they type in very personal information in a web form to help them work through problems in their lives. Once they enter the info, I encrypt...
1
by: marcarlem | last post by:
Sorry about my english but it´s not my first lenaguage. i got a problem using ftp_get. My FTP server is working properly (I can upload and download files to it) but when I try to download a File...
1
by: Sachin Garg | last post by:
I have a program which opens a fstream in binary input+output mode, creating the file if it doesn't exists. But writing doesn't works after reading, it must be something obvious that I am not aware...
7
by: L. Ximenes | last post by:
Hello everyone, I know how to parse data from an XML file with Javascript; but what if I would like to parse data from a user-submitted XML file via the " <input type='file'"? Would it be...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.