CSS & JS in profiles
Thread poster: Mirko Mainardi

Mirko Mainardi  Identity Verified
Italy
Local time: 07:52
Member
English to Italian
+ ...
Sep 26

Hi everyone.

Has someone here been able to successfully implement CSS/JS code in their "About me" sections?

In the site FAQ, I read:
19.1 - Why might some ProZ.com profiles include user-supplied dynamic content (javascript)?

Some users have chosen to customize their ProZ.com profiles with dynamic content such as instant messaging tools, clocks, hit counters, etc. This dynamic content may be implemented in a scripting language such as javascript, which can be run by the viewer's web browser.

19.8 - Can I include CSS in my profile?

CSS styles can be defined inline in your profile, inside of HTML "style" tags. External stylesheets are filtered unless the user viewer has allowed dynamic content.
http://www.proz.com/faq/10126#10126

And, on the forum: http://www.proz.com/forum/prozcom_translator_coop/142348-changes_made_to_the_way_java_is_handled_in_prozcom_profiles.html

In fact, my profile does show a (not so reassuring, truth be told...) "Dynamic content (javascript) enabled in this profile" message with a yellow warning sign, which asks visitors whether to enable JS or not...

So, based on that, both CSS and JS are supposed to be supported in our profiles, however, I have so far been unable to use them in the 'About me' section, while (at least) some support seems to be enabled in customs tabs, for instance (which I used to add a localized version of a tab, since localization of custom tabs is not natively supported...). Am I missing something?


P.S. I also opened a support ticket about this, but I haven't received an answer to my original question.


Direct link Reply with quote
 

Gerard de Noord  Identity Verified
France
Local time: 07:52
Member (2003)
German to Dutch
+ ...
Why do you want to know? Sep 27

Hi Mirko,

I'd never use JavaScript on this website because of the ugly warning vistitors get.

Normally the link to CSS resides in the head element of the html file. Our profiles on ProZ only give us access to the body element.

At
https://stackoverflow.com/questions/11833325/css-hack-adding-css-in-the-body-of-a-website
people discuss ways to use CSS anyhow, including placing a head element within the body element.

But CSS is only an efficient way to apply styles on multiple pages. You could apply your styles in a less efficient way, since it's only one profile page.

Cheers,
Gerard


Direct link Reply with quote
 

Mirko Mainardi  Identity Verified
Italy
Local time: 07:52
Member
English to Italian
+ ...
TOPIC STARTER
Why not? Sep 29

Hi Gerard. Thanks for your reply

Why do I want to know? Why not?

Specifically, I wanted to use a few lines of code (I tried both JS and CSS) to show a popup when clicking or hovering over a picture, instead of using plain HTML to open a new browser window. But it could be anything else, really...

Also, since both forum posts and FAQs (as previously quoted) say this should be possible, I'd like to know how to do that...

Gerard de Noord wrote:

I'd never use JavaScript on this website because of the ugly warning vistitors get.


Yeah, I know. In fact that's a con...


Normally the link to CSS resides in the head element of the html file. Our profiles on ProZ only give us access to the body element.

At
https://stackoverflow.com/questions/11833325/css-hack-adding-css-in-the-body-of-a-website
people discuss ways to use CSS anyhow, including placing a head element within the body element.

But CSS is only an efficient way to apply styles on multiple pages. You could apply your styles in a less efficient way, since it's only one profile page.


Well, I'm not a coder, so going out of my way to circumvent limitations in "creative" ways (as suggested in the link you provided) is not really an option for me. I just thought it would've been possible to use some CSS and JavaScript, as advertised. If I'm told I can use JS and CSS, but then it doesn't work, I'd expect to be told how to make it work, or why it doesn't work (while the "instructions" say otherwise), also considering that, as I previously wrote, there seems to be a difference between the behavior of code entered in "About me" and in custom tabs. At any rate, I didn't find a guide anywhere on the site about his, and my question to support (which also included the simple code I wanted to use) went unanswered...
I find the whole thing "a bit less than satisfactory", to use a slight euphemism.


Direct link Reply with quote
 


To report site rules violations or get help, contact a site moderator:

Moderator(s) of this forum
Lucia Leszinsky[Call to this topic]

You can also contact site staff by submitting a support request »

CSS & JS in profiles

Advanced search






Wordfast Pro
Translation Memory Software for Any Platform

Exclusive discount for ProZ.com users! Save over 13% when purchasing Wordfast Pro through ProZ.com. Wordfast is the world's #1 provider of platform-independent Translation Memory software. Consistently ranked the most user-friendly and highest value

More info »
PDF Translation - the Easy Way
TransPDF converts your PDFs to XLIFF ready for professional translation.

TransPDF converts your PDFs to XLIFF ready for professional translation. It also puts your translations back into the PDF to make new PDFs. Quicker and more accurate than hand-editing PDF. Includes free use of Infix PDF Editor with your translated PDFs.

More info »



Forums
  • All of ProZ.com
  • Term search
  • Jobs
  • Forums
  • Multiple search