This content has been marked as final. Show 5 replies
Here are the rules for the id attribute:
The id must start with a letter (a-z or A-Z)
All subsequent characters can be letters, numbers (0-9), hyphens (-), underscores (_), colons (:), and periods (.).
Each id must be unique within the document
You have a path in yours which contains an illegal character. Firefox is probably being being lenient. IE is not... change to something simple/short within those rules and try it then.
Thanks for the reply GWD!! That was correct in a sense. It actually began with a dollar symbol ($image_server/images2/gadget/gadget_messages) - because it was a value.
However, when I tried to hardcode th path in so that it began with a regular character: " http://dev-images.com/images2/gadget/gadget_messages", that still did not work.
Is there something else that may be causing this not to work?
Why are your putting the url in there like that? The "/" character is the one that's not allowed. The $image_server etc is in your php code and is a variable name I'd imagine... but it doesn't seem to be useful to be trying to put a path into an id attribute like that.
Just call it id="myswf" or something like that.
Thanks so much (again) GWD for your help!!! :)
I thought that the ID and the embed name had to be the exact same as the path to the file.
No... not the same as the path. id is used in the web page for accessing the DOM node.
It is however a good idea to have the embed tag's name attribute the same as the id attribute you use in the object tag... yes. but not a path like that. You can call it "heyYou" or "mySwf" or "yeehaaa" .