Re: Multiple <a> Tags, Filled With MySQL DB data with PHP [message #179257 is a reply to message #179249] |
Wed, 26 September 2012 12:16 |
Captain Paralytic
Messages: 204 Registered: September 2010
Karma:
|
Senior Member |
|
|
On Sep 26, 2:45 am, Jerry Stuckle <jstuck...@attglobal.net> wrote:
> On 9/25/2012 8:04 PM, Christoph Becker wrote:
>
>> Jerry Stuckle wrote:
>>> What javascript is being used here?
>
>> Tom wants to present the images with Fancybox <http://fancybox.net/>
>> (see the OP). Since the generated (X)HTML is /reportedly/ the same as
>> the hand-written one, there /might/ be a problem on the javascript side
>> -- even if that's quite unlikely, if the generated code is /exactly/ the
>> same.
>
> The HTML he's trying to emulate does not use javascript.
>
> And even if it did - it would be the same javascript in both cases, and
> would either work or fail in both cases.
The HTML he is trying to emulate is "input" to the fancybox
javascript. The class and rel attributes are picked up by the fancybox
javascript.
However, as you say, if the HTML code produced by the php was (as the
OP has said) EXACTLY the same as the hand written stuff then, since
the browser knows nothing about anything apart from the HTML, CSS &
Javascript, it would either work in both the "hand crafted" and the
"php generated" cases or it would not work in both.
Since the OP "says" that the HTML source is exactly the same in both
cases, yet it works with the hand crafted one but not in the php
generated one, we have to assume that he is either lying, or he has
not examined the two sets of HTML code accurately.
|
|
|