Skip to main content

Search and Top Navigation

#15107 closed bug (duplicate)

Opened November 30, 2016 02:01PM UTC

Closed November 30, 2016 04:24PM UTC

Unexpected auto-loading attempt with URI inline GET parameters

Reported by: brainforgeUK Owned by:
Priority: minor Milestone: none
Component: ui.tabs Version: 1.12.1
Keywords: Cc:
Blocked by: Blocking:
Description

Had strange effect with TABs not working / attempting auto-loading.

For example with this URI tab worked as expected :

http://ontrain.info/location/seaton

But with this URI they did not (in example issue now fixed):

http://ontrain.info/?location=seaton

These are treated identically as far as the code is concerned.

Stripped stuff out of site code and narrowed issue to jQueryUI tabs.

The solution found was to add the _isLocal function below.

if (jQuery.fn.tabs) {
  jQuery.ui.tabs.prototype._isLocal = function() { return true; };
  jQuery("#tabs").tabs();
}');

Looked as the jQueryUI JS code and can see the place where it is making the unexpected Ajax call, but not familiar enough with the source / not time to look further.

The accordion is working correctly, thought it might have similar issue.

Attachments (0)
Change History (2)

Changed November 30, 2016 03:24PM UTC by rjollos comment:1

description: Had strange effect with TABs not working / attempting auto-loading. \ \ For example with this URI tab worked as expected : \ http://ontrain.info/location/seaton \ \ But with this URI they did not (in example issue now fixed): \ http://ontrain.info/?location=seaton \ \ These are treated identically as far as the code is concerned. \ Stripped stuff out of site code and narrowed issue to jQueryUI tabs. \ \ The solution found was to add the _isLocal function below. \ \ if (jQuery.fn.tabs) { \ jQuery.ui.tabs.prototype._isLocal = function() { return true; }; \ jQuery("#tabs").tabs(); \ }'); \ \ Looked as the jQueryUI JS code and can see the place where it is making the unexpected Ajax call, but not familiar enough with the source / not time to look further. \ \ The accordion is working correctly, thought it might have similar issue.Had strange effect with TABs not working / attempting auto-loading. \ \ For example with this URI tab worked as expected : \ http://ontrain.info/location/seaton \ \ But with this URI they did not (in example issue now fixed): \ http://ontrain.info/?location=seaton \ \ These are treated identically as far as the code is concerned. \ Stripped stuff out of site code and narrowed issue to jQueryUI tabs. \ \ The solution found was to add the _isLocal function below. \ \ {{{#!js \ if (jQuery.fn.tabs) { \ jQuery.ui.tabs.prototype._isLocal = function() { return true; }; \ jQuery("#tabs").tabs(); \ }'); \ }}} \ \ Looked as the jQueryUI JS code and can see the place where it is making the unexpected Ajax call, but not familiar enough with the source / not time to look further. \ \ The accordion is working correctly, thought it might have similar issue.

Changed November 30, 2016 04:24PM UTC by scottgonzalez comment:2

resolution: → duplicate
status: newclosed

Duplicate of #7822.