OJS OCS OMP OHS

You are viewing the PKP Support Forum | PKP Home Wiki



page not working when javascript is turned off

OJS development discussion, enhancement requests, third-party patches and plug-ins.

Moderators: jmacgreg, btbell, michael, bdgregg, barbarah, asmecher

Forum rules
The Public Knowledge Project Support Forum is moving to http://forum.pkp.sfu.ca

This forum will be maintained permanently as an archived historical resource, but all new questions should be added to the new forum. Questions will no longer be monitored on this old forum after March 30, 2015.

page not working when javascript is turned off

Postby cabotine » Sat Feb 28, 2009 10:55 am

Hi,
do you think its possible to change the javascript usage, so that the page is still working even if javascript is turned off?
Thank you
Frank J.
cabotine
 
Posts: 39
Joined: Tue Feb 19, 2008 1:25 pm

Re: page not working when javascript is turned off

Postby jmacgreg » Mon Mar 02, 2009 4:50 pm

Hi Frank,

Which page are you talking about? We make a conscious effort to have OJS work without Javascript (although not necessarily 100% gracefully).

Cheers,
James
jmacgreg
 
Posts: 4191
Joined: Tue Feb 14, 2006 10:50 am

Re: page not working when javascript is turned off

Postby cabotine » Mon Mar 02, 2009 11:40 pm

Hi,
I meant the reading tools for example, contact the athour and so on...
Or did I missed an option somewhere?
Thank you
cabotine
 
Posts: 39
Joined: Tue Feb 19, 2008 1:25 pm

Re: page not working when javascript is turned off

Postby mcrider » Thu Mar 05, 2009 12:30 pm

Hi Frank,

The javascript being called on those pages just opens up popup windows to display information and forms related to the reading tools. It is very basic javascript code, and should be supported by just about anything that supports javascript. If you require compatibility with people that don't use javascript, you would have to go through the templates and remove all instances of javascript:open* (e.g. javascript:openComments, javascript:openRTWindow). So for example in templates/rt/rt.tpl at line 82 change
Code: Select all
<a href="javascript:openRTWindow('{url page="rt" op="emailAuthor" path=$articleId|to_array:$galleyId}');">{translate key="rt.emailAuthor"}</a>
..to..
Code: Select all
<a href="{url page="rt" op="emailAuthor" path=$articleId|to_array:$galleyId}">{translate key="rt.emailAuthor"}</a>
.. and if you still want it to be a popup window, you can add the 'target' attribute, like so:
Code: Select all
<a href="{url page="rt" op="emailAuthor" path=$articleId|to_array:$galleyId}" target="_blank">{translate key="rt.emailAuthor"}</a>


Hope that helps,
Matt
mcrider
 
Posts: 952
Joined: Mon May 05, 2008 10:29 am
Location: Vancouver, BC

Re: page not working when javascript is turned off

Postby cabotine » Thu Mar 05, 2009 12:40 pm

thanks I an going to work on this Saturday my OpenAccess-day ;)
cabotine
 
Posts: 39
Joined: Tue Feb 19, 2008 1:25 pm


Return to OJS Development

Who is online

Users browsing this forum: No registered users and 1 guest