redirect to java site for update latest version

49 views
Skip to first unread message

Paresh Patel

unread,
Feb 24, 2015, 9:26:46 AM2/24/15
to jzebra...@googlegroups.com
I loads the deployJava.js and qz-plug-in related js file when site loads.
But it redirect to java site on some PC as no java or old java installed on that PC. It not redirected to java site on the PC who have latest Java installed.
Clients/users may getting confused on redirecting other site who are not using print receipt feature.

I just need to alert the message like "Please install/update java" and stay on my site but do not want to redirect on java update page.

I tried commenting some redirect code in deployJava.js but facing some issue of redirecting infinite etc. mysite/undefined etc error.

Please help me.

Tres Finocchiaro

unread,
Feb 24, 2015, 12:01:09 PM2/24/15
to jZebra users
Agreed completely.  I can't stand this redirect and I couldn't find much on it.

So I took a look at Oracle's source code and this seems to be a valid work-around (Subject to Oracle deployJava changes of course)

function deployQZ() {
// var attributes = {...}
// var parameters = {...}
 
 

// Override the installJRE redirect function
deployJava.installJRE = function(requestVersion, ignore) { alert("Sorry, Java " + requestVersion + " does not appear to be installed"); }

 
 
deployJava.runApplet(attributes, parameters, '1.5');

}

You could modify this to update a div tag with a message, etc.  Thanks for asking because we get a lot of complaints about this.

-Tres

--
--
To unsubscribe from this group, send email to jzebra-users...@googlegroups.com
 
http://code.google.com/p/jzebra

---
You received this message because you are subscribed to the Google Groups "jZebra users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jzebra-users...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Paresh Patel

unread,
Feb 25, 2015, 8:06:04 AM2/25/15
to jzebra...@googlegroups.com
Thanks its working :)
Reply all
Reply to author
Forward
0 new messages