FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » another value passing problem
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
another value passing problem [message #183660] Thu, 07 November 2013 00:39 Go to next message
Mr Oldies is currently offline  Mr Oldies
Messages: 241
Registered: October 2013
Karma: 0
Senior Member
I know how to pass values using href side of things.
How about when the link is in "data-src"?

such as data-src="www.example.com/song.mp3"
this does not work. data-src="www.example.com/somg.mp3?x=1"

Then, how do you retrieve the value?
Re: another value passing problem [message #183661 is a reply to message #183660] Thu, 07 November 2013 01:35 Go to previous message
Denis McMahon is currently offline  Denis McMahon
Messages: 634
Registered: September 2010
Karma: 0
Senior Member
On Wed, 06 Nov 2013 19:39:56 -0500, richard wrote:

> such as data-src="www.example.com/song.mp3"
> Then, how do you retrieve the value?

If data-src="some_string_here" is an attribute of an html element that
you're trying to extract from the page on the client, then you'll
probably need to do something with javascript which is outside the scope
of this ng to get the value using dom manipulation and stuff it into an
ajax request to the server to deliver it to your php processing.

--
Denis McMahon, denismfmcmahon(at)gmail(dot)com
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Mysqli or PDO Persistent prepared statements
Next Topic: Trying to create a .bat file for windows using fwrite(
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Wed Jun 05 10:38:06 GMT 2024

Total time taken to generate the page: 0.02529 seconds