PROFESSIONAL NEWSGROUPS
WINDEV
,
WEBDEV
and
WINDEV Mobile
Home
|
Recent messages
|
Connect
|
Sign out
|
English
Home
→
WEBDEV 2024
→
Index on Php Looper
Index on Php Looper
Started by Sandro Abramo, Aug., 27 2009 1:18 PM - 1 reply
Connect yourself…
Sandro Abramo
#1
Posted on August, 27 2009 - 1:18 PM
Hello,
I have tried to use a looper in PHP. It works but when I try to retrieve the link selected by user in the looper I have all the ATT_* attribute empty. I have already tried to use the PAGE_Looper.wwh (transformed in PHP page) but it is the same. Clicking on the link, I got blank info.
The question is.. how can I identify the image clicked by user if the image is in the looper ? all the site is in php.
thank you in advance
Sandro
Report
0
0
Hilario PEREZ CORONA
#2
Posted on August, 28 2009 - 10:03 PM
What i use to do is save the Index of the looper in a hidden EDT, and executing a hidden Button...
In the Click event of the Browser code of the Image:
// Assign the Current Looper Index
EDT_
LooperIndex
=
LOOP_
Looper
// Execute the Button
ExecuteProcess
(
BTN_
ImageClick
,
trtClick
)
Now, on the Server code of the BTN_ImageClick (the button is Hidden):
[code]
// Here i can get the Attributes....
Trace(ATT_Attribute1[EDT_LooperIndex])
[code]
It's a little "cheat", but it works for me.
Report
0
0
→ Go back to WEBDEV 2024
WINDEV 2024
WEBDEV 2024
WINDEV Mobile 2024
WINDEV (earlier versions)
Français
English
Español
Portuguesa
Close this window
Search type
Only topics
All the messages
Search period
Any time
Past hour
Past 24 hours
Past week
Past month
Past year
Cancel
Preview of your message
Adding an image
Import an image from a URL
Send an image from a file of your disk
Drop a file or click "Browse..."
or
Cancel
0%
WLanguage
SQL
XML, HTML
JAVA, Javascript
Text