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
Developer Resources:

Documentation: The OJS Technical Reference and the OJS API Reference are both available from the OJS Documentation page.

Git: You can access our public Git Repository here. Comprehensive Git usage instructions are available on the wiki.

Bugzilla: You can access our Bugzilla report tracker here.

Search: You can use our Google Custom Search to search across our main website, the support forum, and Bugzilla.

Questions and discussion are welcome, but if you have a workflow or usability question you should probably post to the OJS Editorial Support and Discussion subforum; if you have a technical support question, try the OJS Technical Support subforum.

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: 4190
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

cron