Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #25660

Re: can javascript post a link to a php file?

From Tim Streater <timstreater@greenbee.net>
Newsgroups comp.lang.javascript
Subject Re: can javascript post a link to a php file?
Date 2014-08-09 09:52 +0100
Message-ID <090820140952142993%timstreater@greenbee.net> (permalink)
References <cdi2zsntrsgw$.1mqa5pfr9je79$.dlg@40tude.net> <090820140850200399%timstreater@greenbee.net> <1689703.Okl4DyZsQU@PointedEars.de>

Show all headers | View raw


In article <1689703.Okl4DyZsQU@PointedEars.de>, Thomas 'PointedEars'
Lahn <PointedEars@web.de> wrote:

> Tim Streater wrote:
> 
> > richard wrote:
> >> In the script for the html5 audio player I am using, there is a bit of
> >> code that changes the active "<li>" class to "playing".
> >> It is at this point in time I need to send a bit of information to a php
> >> file to update the database with.
> >> What could I use to do this with?
> > 
> > ajax,
> 
> (_AJAX_, Asynchronous JavaScript and XML) is a misnomer.  In this case, it 
> does not have to be asynchronous, it does not have to be JavaScript, and it 
> does not have to be XML; the request can be handled synchronously, the 
> programming language can be JScript, for example, and the data format to be 
> used should be JSON, if any.
> 
> > aka httprequest
> 
> is insufficient a term/hint.  The proper term and more helpful hint is 
> _XMLHttpRequest_ or _XMLHTTPRequest_, commonly abbreviated XHR.
> 
> > You need to make one.
> 
> He needs (the client) to make an _HTTP request_, and can do that with XHR, 
> *for example*.

What I posted was plenty enough, with an intelligent bit of googling.
If he can't figure it out from that, he shouldn't be bothering at all.
This is an opportunity for him to do it all by himself.

-- 
"Freedom is sloppy. But since tyranny's the only guaranteed byproduct of
those who insist on a perfect world, freedom will have to do." -- Bigby Wolf

Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

can javascript post a link to a php file? richard <noreply@example.com> - 2014-08-08 20:15 -0400
  Re: can javascript post a link to a php file? Tim Streater <timstreater@greenbee.net> - 2014-08-09 08:50 +0100
    Re: can javascript post a link to a php file? Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2014-08-09 10:44 +0200
      Re: can javascript post a link to a php file? Tim Streater <timstreater@greenbee.net> - 2014-08-09 09:52 +0100
        Re: can javascript post a link to a php file? Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2014-08-09 11:02 +0200
      Re: can javascript post a link to a php file? richard <noreply@example.com> - 2014-08-09 09:05 -0400
        Re: can javascript post a link to a php file? Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2014-08-09 16:12 +0200
          Re: can javascript post a link to a php file? Evan Platt <evan@theobvious.espphotography.com.invalid> - 2014-08-09 08:35 -0700

csiph-web