View Single Post
  #255  
Old 07-02-2015, 01:00 PM
  mcanitano's Avatar 
mcanitano mcanitano is offline
 

eXpert
  
Join Date: Feb 2006
Location: Melbourne, FL
Posts: 216
 

Default Re: X-Cart Mobile module released

So we're having an odd issue with this module.

When you visit our site, it looks/works great, when you first click say "New Arrivals" collapsible button, it drops down and shows you the new arrivals (as it should).

But then, you click "Catalog" (or "Shop" as it is on our site) and then click the 'Back' button, to the home page, it shows duplicate content basically.

The

Code:
<div data-role="page" class="page-holder fancycat-page-skin-icons fancycat-page-subskin-e uo-container ui-page ui-body-c ui-page-active" data-dom-cache="false" data-add-back-btn="true" data-url="/" tabindex="0" style="min-height: 1227px;">

div is shown, but there are two of the same divs with "ui-page-active" in the class. Thus, showing duplicate content.

So if you click the new arrivals drop down again, it shows/uncollapses, but below it shows a div with the new arrivals drop down unclicked/collapsed.

See attached photo of end error. We're not sure what could be causing this..

We're on xc 4.5.5 with mobile mod version 1.4.3 installed.

I think the issue may be since we are using an older JQuery Mobile version. And the new 1.5.0 X-Cart Mobile mod comes with 1.4.5 JQuery mobile


EDIT/UPDATE:

So we found the code that is causing an issue for this. Still doing a little debugging, but in "/skin/common_files/modules/Xcart_Mobile/lib/jquery.mobile.js" around line 3044:

The code:
Code:
url = fileUrl = path.getFilePath( $( "<div>" + RegExp.$1 + "</div>" ).text() );

Is causing the error, (we commented it out for now). See below:

Code:
if ( pageElemRegex.test( html ) && RegExp.$1 && dataUrlRegex.test( RegExp.$1 ) && RegExp.$1 ) { //url = fileUrl = path.getFilePath( $( "<div>" + RegExp.$1 + "</div>" ).text() ); }
Attached Images
File Type: png ui-page-active_error.png (139.8 KB, 7 views)
__________________
Marcello Canitano
New Site: X-Cart v4.5.5 GOLD
X-Cart Mobile v1.4.3
X-Payments v1.0.6
CDSEO Pro v2
Total Server Solutions xCDN

www.silverhorseracing.com
Reply With Quote