[FX.php List] Pulling a Javascript variable into a PHP variable?

Derrick Fogle derrick at fogles.net
Tue Mar 11 19:47:23 MDT 2008


If the image is being displayed, especially if it's by a Javascript  
that does rotating images, you've already got the image URL in  
Javascript somewhere. All you've got to do is figure out how to  
display it. Pure Javascript.


On Mar 11, 2008, at 8:43 PM, Leo R. Lundgren wrote:

> I'm not entirely sure I understand your workings. Are you using JS  
> to load a specified image from the server and display it?
>
>
> 12 mar 2008 kl. 02.36 skrev Bob Patin:
>
>> Well, not really understanding the difference until now...
>>
>> I'm using a Javascript to do some image display stuff, and wanted  
>> to retrieve the # of the currently-showing graphic. I was hoping  
>> that I could grab the value of the counter (which in this case is  
>> "j") and pull it into PHP so that I could then tie different URLs  
>> to each image as they are displayed in rotation.
>>
>> So failing that...
>>
>> Is there a way to dynamically set a different URL with each image  
>> as it is shown in rotation using a javascript?
>>
>> I know, I know, this is off-topic...
>>
>> Thanks,
>>
>> Bob Patin
>> Longterm Solutions
>> bob at longtermsolutions.com
>> 615-333-6858
>> http://www.longtermsolutions.com
>> Member of FileMaker Business Alliance and FileMaker TechNet
>>
>>  CONTACT US VIA INSTANT MESSAGING:
>>     AIM or iChat: longterm1954
>>     Yahoo: longterm_solutions
>>     MSN: tech at longtermsolutions.com
>>     ICQ: 159333060
>>
>> --------------------------
>> Contact us for FileMaker hosting and programming for all versions  
>> of FileMaker
>> PHP • CDML • Full email services • Free DNS hosting • Colocation •  
>> Consulting
>>
>> On Mar 11, 2008, at 8:29 PM, Leo R. Lundgren wrote:
>>
>>> Since PHP is on the server-side and Javascript is on the client- 
>>> side, you will have to send the variable data to the server. In  
>>> short, you need to make a http request to send it, such as a  
>>> normal get/post or an ajax request.
>>>
>>> You DO mean a variable that you have on a client when it's viewing  
>>> a javascript html-page, right?
>>
>> _______________________________________________
>> FX.php_List mailing list
>> FX.php_List at mail.iviking.org
>> http://www.iviking.org/mailman/listinfo/fx.php_list
>
>
> -|
>
> _______________________________________________
> FX.php_List mailing list
> FX.php_List at mail.iviking.org
> http://www.iviking.org/mailman/listinfo/fx.php_list



More information about the FX.php_List mailing list