Andy Parker
Posts: 0
Joined: Wed Mar 27, 2013 10:21 am

Using jQuery in HTML panel causes navigateTo functions to fail

Hi, I've added some external javascript code to allow zooming of pictures in an HTML panel.

The code (when used in conjunction with ddpowerzoomer.js (added to the source files) gives a magnified view over the picture where-ever the user clicks.

However, when using a navigateTo("pagename") or a call service function after using the zoom, I get the following error in the developers console:

error after navigateTo:
Uncaught TypeError: Cannot call method 'changePage' of undefined

I can overcome the navigateTo by forcing a full page refresh, this seems to work, but I can't overcome the Service Start error.

error after start service:
Uncaught TypeError: Cannot call method 'loading' of undefined

Can the error be cause because I'm using the j_Query(document) . ready(f_unction($) in my javascript code?
If so, is there any way around this?hope you can help, this is really causing me some trouble.

The error after a start service call mentions the following:
mobilebase.js:23 which is the following:

-f-unction hideSpinner()
$ . mobile . loading ('hide'); Image

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

Using jQuery in HTML panel causes navigateTo functions to fail

Hi Andy,

Please replace:prenavigateTo("page");/prewithpreAppery.navigateTo("page");/pre

Andy Parker
Posts: 0
Joined: Wed Mar 27, 2013 10:21 am

Using jQuery in HTML panel causes navigateTo functions to fail

Thanks Katya, I have tried various navigate options and the only way to clear this problem is to ensure I request a full page refresh, then the problem goes away.
I've added some code so that if the zoom function is used a full page refresh takes place before any service call us requested.
This is a workaround, any idea why this should happen?

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Using jQuery in HTML panel causes navigateTo functions to fail

Hello! You use custom JS - create new page, add jQuery (zoom0 - zoom10) on this page, but it's not clear where you place this page, what events you use, on what event navigation is triggered. Looks like there is some error in your app logic. Sorry, but custom app logic and JS are outside the scope f our support.

Return to “Issues”