|
Posted by Rik on 07/23/07 17:32
On Mon, 23 Jul 2007 19:16:05 +0200, <rynato@gmail.com> wrote:
> Having a devil of a time with something very simple. I have my site
> set up so that all tags are written with functions which get the
> various attributes for each tag from a mySQL table.
>
> I've included a column for javascript in the table which stores <img>
> attributes.
>
> I have an image preload js function which has to be put in one of the
> <img> tags because I'm using Google EZMaps and it doesn't like
> javascript in the <body> tag, where normally it would go.
Normally it would go in an external file, and an event would be attached=
=
to the image, for instance like:
document.getElementById('id_of_image').onload preloadImages;
But comp.lang.javascript can tell you more about that.....
> Whenever this bit of text is called up from the mySQL table and run
> through the <img> writing function, it comes out as:
>
> <img src=3D"foo.jpg" title=3D"foo" (etc etc) onLoad=3D"
What does your '<img> writing function' actually do?
> can someone please explain WTF is going on here and a workaround?
> Thanks in advance!
Without the code I cannot tell you what's wrong. Probably some simple =
error, as it would be absolutely not problem for PHP normally. So: show =
=
the piece of code that doesn't work.
-- =
Rik Wasmus
Navigation:
[Reply to this message]
|