Re: values won't transfer [message #183664 is a reply to message #183663] |
Thu, 07 November 2013 18:56 |
Tim Streater
Messages: 328 Registered: September 2010
Karma:
|
Senior Member |
|
|
In article <e2vbaluuftp4$(dot)48nrw7i8j930(dot)dlg(at)40tude(dot)net>, richard
<noreply(at)example(dot)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
|
|
|