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


Groups > comp.lang.php > #11756

Re: values won't transfer

From Tim Streater <timstreater@greenbee.net>
Newsgroups comp.lang.php, comp.lang.javascript
Subject Re: values won't transfer
Date 2013-11-07 18:56 +0000
Message-ID <071120131856545872%timstreater@greenbee.net> (permalink)
References <e2vbaluuftp4$.48nrw7i8j930.dlg@40tude.net>

Cross-posted to 2 groups.

Show all headers | View raw


In article <e2vbaluuftp4$.48nrw7i8j930.dlg@40tude.net>, richard
<noreply@example.com> wrote:

> www.mroldies.net/index.php
> 
> this is not the same page as the home page as that is still active for the
> moment.

But you reference that in your code below. So that is what will be
used, not some other version.

> I am trying to pass the value in the url to the iframe.
> No matter what I try, it won't.
> I had to use the \" in order for the link to show properly.
> The iframe is named "show".
> 
> My thinking is that the javascript has somehow destroyed that.

What javascript? You haven't shown any.

> Question is, how do I make it work so that the value "tune" will pass
> properly?
> 
> 
> 
> 
> 
> 
>      <div style="float:left; width:5in; height:6in; overflow:auto;
> border:solid 2px #00ff00; padding:10px;">
>       <ol>
>         <?php
>         $numbers=range(1,200);
>         shuffle($numbers);
>         
>         foreach($numbers as $play) {
> 
>         $htp="http://mroldies.net/index.php?tune=".$play." target=\"show\"";
> 
>         echo "<li>";
>         $asong=$playme[$play][4];
>         echo "<a class='aplay' href='".$htp."'
> data-src='http://mroldies.net/200/";
>         echo $asong;
>         echo ".mp3'>";
>        echo $playme[$play][2]." - ".$playme[$play][0]." #
> ".$playme[$play][1];
>         echo "<br>";
>         echo $playme[$play][3];
>         echo "</a>";
>         
>         echo "</li>\n";
>         }
>         
>         ?>
>       </ol>
>      </div>


Is the above part of your new mroldies.net file? If so, why are you
loading another copy of it into an iframe within it? And otherwise,
what are you doing inside the iframe to try to obtain the value of
tune?

The above didn't load anything into the iframe when I tried it; I
haven't looked into why. Personally I use open(), write(), and close()
to write an html string into an iframe, which may not be the best way
to do it but works well enough for me.

-- 
Tim

"That excessive bail ought not to be required, nor excessive fines imposed,
nor cruel and unusual punishments inflicted"  --  Bill of Rights 1689

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


Thread

values won't transfer richard <noreply@example.com> - 2013-11-07 13:06 -0500
  Re: values won't transfer Tim Streater <timstreater@greenbee.net> - 2013-11-07 18:56 +0000
  Re: values won't transfer Ben Bacarisse <ben.usenet@bsb.me.uk> - 2013-11-07 19:58 +0000
    Re: values won't transfer richard <noreply@example.com> - 2013-11-07 15:37 -0500
  Re: values won't transfer Arno Welzel <usenet@arnowelzel.de> - 2013-11-07 22:01 +0100
    Re: values won't transfer richard <noreply@example.com> - 2013-11-07 16:29 -0500
      Re: values won't transfer Arno Welzel <usenet@arnowelzel.de> - 2013-11-08 08:33 +0100

csiph-web