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


Groups > comp.lang.javascript > #25659

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

From Thomas 'PointedEars' Lahn <PointedEars@web.de>
Newsgroups comp.lang.javascript
Subject Re: can javascript post a link to a php file?
Date 2014-08-09 10:44 +0200
Organization PointedEars Software (PES)
Message-ID <1689703.Okl4DyZsQU@PointedEars.de> (permalink)
References <cdi2zsntrsgw$.1mqa5pfr9je79$.dlg@40tude.net> <090820140850200399%timstreater@greenbee.net>

Show all headers | View raw


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*.

He should stop abusing domains, too, see <http://example.com/>.

-- 
PointedEars
FAQ: <http://PointedEars.de/faq> | SVN: <http://PointedEars.de/wsvn/>
Twitter: @PointedEars2 | ES Matrix: <http://PointedEars.de/es-matrix>
Please do not Cc: me. / Bitte keine Kopien per E-Mail.

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