Able to add colspan with jQuery to table on one page but not the other.


i able use jquery add colspan attribute 1 of table rows on regular catalog page products, when try catalog has sub-catalogs instead of products, not see colspan attribute when inspect table rows.

 

the catalog talking http://www.thesanfordcenter.net/suite-menu. catalog secured. have set temp account , password if wish view pages.

 

login name: test

password: account1

 

i wondering if problem jquery or maybe layout have jquery on. appreciated. thanks.

that page has few javascript errors coming on it.  if hit ctrl-shift-j or cmd-shift-j on mac in google chrome bring javascript console.  in red javascript error or 404 error assets aren't found... should try clean up.

 

in case, "expstickybar.js" file loaded on page , initiates "jquery.noconflict();" statement removes ability use "$" variable quick way trigger jquery methods.  reason isn't happening on main catalog pages because referencing script relative url: "expstickybar.js" when on catalog page @ http://www.thesanfordcenter.net/suite-menu/appetizers looking javascript file @ http://www.thesanfordcenter.net/suite-menu/appetizers/expstickybar.js , it's not find it's coming 404 error.

 

a quick fix try , remove or comment out first line in expstickybar.js says "jquery.noconflict();".  might work it's possible break expstickybar.js script. if doesn't work should go each of jquery statments in pages , wrap them in function explicitly tells use "$" variable jquery:

 

(function($) {

 

  // old javascript here

 

})(jquery);

 

 

on side note, including 2 jquery libraries in site , that's never idea... have jquery 1.4.2 loading in head of page or page template , loading jquery 1.6.2 in body of page or page template.  should using 1 or other.  1.4.2 pretty old if you, after try , fix jquery.noconflict() error you've got going on, should move jquery 1.6.2 reference in body element , replace jquery reference 1.4.2 in head.

 

also-- should change reference in page templates make "expstickybar.js" file root-relative url instead of relative url.  change:

 

<script src="expstickybar.js">

 

to

 

<script src="/expstickybar.js">

 

so no matter page site on file @ root of site.



More discussions in Business Catalyst


adobe

Comments

Popular posts from this blog

Thread: gpg: Conflicting Commands

Adobe Acrobat Pro , Terminal Server Use

when i try using AE CC 3d camera tracker after the first step it says "Analysis solve failed." help?