PDA

View Full Version : Ampersands in the image source


applejade
05-16-2005, 05:08 AM
Hi,

I couldn't find anything about this in the Fast Answer Search or the Knowledge Base. I'm getting HTML ampersand entities in the image source which will not work on my site. I can edit them to make them work, but I didn't want to edit it without permission though.

My steps are:

1. Log in and go to http://...project/standard/install.php
2. Down in the "StatCounter Code Options", I select the boxes for: Invisible Counter, W3C Compliant, xhtml compliant and HTML Only Counter.
3. Click "Generate new code".

I expect the HTML source to read:


http://c6.statcounter.com/counter.php?sc_project=######&java=0&security=######&invisible=1 (http://www.statcounter.com/)


What actually shows up is:


http://c6.statcounter.com/counter.php?sc_project=######&java=0&secur ity=######&invisible=1 (http://www.statcounter.com/)


The '&' is expanded as '&' which isn't right and I get an error from the HTML parsing utility on my site. I've tried unselecting the W3C Compliant and xhtml compliant options, but that didn't make a difference. Like I said, if I fix the code myself to not include the ampersand entities, it works. Would that count as "editing the code"?

Thanks,

-- J.

webado
05-16-2005, 05:30 AM
What browser are you using? and what editor?

applejade
05-16-2005, 05:34 AM
What browser are you using? and what editor?

I'm using Mozilla 1.7.7 and I'm not using an editor at all, I'm looking right at the text box above the "generate code" button.

-- J.

webado
05-16-2005, 05:52 AM
Are you seeing the character & followed by amp; and then again amp; ?

Don't worry, that wouldn't coiunt as changing the code, just as fixing a possible bug.

What is happening is that somehow your version of Mozilla works differently from other browsers apparently.


A fix had to be put in for Firefox I think because it was gobbing up the amp; that was following the & - possibly Mozilla does not need this or your version of Mozilla does not need this.

I don't have Mozilla, only Firefox and IE, and I'm not seeing any anomaly there.

applejade
05-16-2005, 06:07 AM
Yes, I'm getting extra 'amp's wherever there's a key delimiter.

> Don't worry, that wouldn't coiunt as changing the code, just as fixing a possible bug.

Cool, thanks =)

-- J.

webado
05-16-2005, 06:22 AM
Please open a support ticket for this yourself explaining, or it may get overlooked in the forum.