Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Using XC's Jquery UI

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 02-06-2014, 01:37 AM
 
Rachelsea Rachelsea is offline
 

Newbie
  
Join Date: Feb 2014
Posts: 1
 

Default Using XC's Jquery UI

Hi

This is our first XC build and I am trying to use the built in Jquery UI for a simple accordion style hide/show content.

When I use the following code:

{literal}
<script>
$(document).ready(function() {
$( "#accordion" ).accordion({
active: false, autoHeight: false, collapsible: true
});
});
</script>
{/literal}

Nothing happens.

When I link to <script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js"></script>

It works fine, but any pop up on the site, like "Sign In" on the checkout page just hangs with the animation and please wait, remove the link pop up works, but accordion doesn't .

So my question is, how do I access Jquery UI built into XC?

Many thanks
__________________
Version 4.6.1
Reply With Quote
  #2  
Old 06-07-2014, 09:48 AM
 
lambow lambow is offline
 

Member
  
Join Date: Dec 2013
Posts: 14
 

Default Re: Using XC's Jquery UI

I am experiencing sort of similar issue.

I am trying to add a custom form to my x-cart store which will load in jquery ui dialog widget when someone clicks a button. But I can't get any responce out of this no matter what I do.

I just can't believe that something as simple as this is buggin me for three days straight now.


I am using the most simple scenario I can think of:
Code:
<button id="opener">Click me for alert</button>
Simple jQuery code snippets:
Code:
$(function () { $(document).on("click", '#opener', function (e) { alert("BOOM!!?"); }); });
or
Code:
$('#clickMe').click(function () { alert("BOOM!!?"); });
Works fine in jsfiddle, static html page, asp.net page, but x-cart is not having any of it.


Some help is greatly appreciated.
(X-Cart v4.5.4)
__________________
X-Cart GOLD Plus
Product Configurator
Feature Comparison
X-RichGoogleSearchResults
Reply With Quote
  #3  
Old 06-07-2014, 04:20 PM
  cherie's Avatar 
cherie cherie is offline
 

X-Wizard
  
Join Date: May 2003
Location: USA
Posts: 1,534
 

Default Re: Using XC's Jquery UI

Wouldn't the second one be written as:
Code:
$("#opener").click(...
Otherwise, try checking the browser console for errors.
__________________
redlimeweb.com
custom mods and design integration
4.7 linux
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 10:12 PM.

   

 
X-Cart forums © 2001-2020