Links

Lists

Latest Updates

Ruby On Rails List
Python list
Advanced Java
The JavaScript List
Apache Users
Full Disclosure
Linux Security

Search the archives!


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Javascript] Firefox and setAttribute


  • From: schalk at volume4.com (Schalk Neethling)
  • Subject: [Javascript] Firefox and setAttribute
  • Date: Tue Oct 18 06:47:21 2005

Steve

Not sure if it will work, you might have even tried it but, have you 
tried a double forward slash?

Steve Clason wrote:

> Hi,
>
> Can anyone point me to a good source that explains Firefox's problem 
> handling of setAttribute? I keep running into problems and would like 
> to take the time to understand what's going on.
>
> Right now, I have this:
>
> <code>
> var slide = document.createElement("img");
> slide.setAttribute("src","images/image.gif");
> slide.setAttribute("alt","this is alt text");
> slide.setAttribute("id","slide");
> document.appendChild(slide);
> </code>
>
> The image element is placed and has an id and alt text attributes, but 
> no src.
>
> If I try:
>
> <code>
> slide.src = "images/image.gif";
> </code>
>
> I get the same thing--no image, but id and alt text.
>
> Both techniques work in IE and Opera so I'm pretty sure this is a FF 
> peculiarity.
>
> I'll take all the help I can get on this.
>
> Thanks in advance,
>

-- 
Kind Regards
Schalk Neethling
Web Developer.Designer.Programmer.President
Volume4.Business.Solution.Developers
emotionalize.conceptualize.visualize.realize
Landlines
Tel: +27125468436
US Tel: (440) 499-5484
Fax: +27125468436
Web
email:schalk@xxxxxxxxxxx
Global: www.volume4.com
Messenger
Yahoo!: v_olume4
AOL: v0lume4
MSN: volume4_@xxxxxxxxxxx

We support OpenSource
Get Firefox!- The browser reloaded - http://www.mozilla.org/products/firefox/
 
The information transmitted is intended solely for the individual or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of or taking action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this email in error, please contact the sender and please delete all traces of this material from all devices.