interchange

Zurb Foundation Interchange not working, 'nodeName' undefined

∥☆過路亽.° 提交于 2020-01-02 07:18:30
问题 I'm trying to use interchange to change images based on the screen size. However, when interchange is initialised no images load. Then when I resize the browser (1024px and lower) I get an error in the console saying: Uncaught TypeError: Cannot read property 'nodeName' of undefined Which relates to line 47 of foundation.interchange.js, which is: if (/IMG/.test(el[0].nodeName)) { The code I'm trying to use is: <img data-interchange="[http://www.example.com/image.png, (default)], [http://www

Disable Command Button in IC (Interchange)

爷,独闯天下 提交于 2019-12-25 02:15:20
问题 I want to disable my command button when the no of hits reach 100 ,retrieving no of hits from mysql using IC. I am doing something like this but its not working. my $cc= [sql-param hits]; [if $cc>= 100 ] <input type="Submit" name="cv" value="Vote" disabled="true"><br /><br /> [/if] Thanks Isha 回答1: You'll probably want to stick with ITL, if you can. You shouldn't need Perl code for this. I haven't messed with IC in a while, but something similar to this (within the [query] tag, of course)

Zurb Foundation Interchange not working, 'nodeName' undefined

旧街凉风 提交于 2019-12-05 18:27:07
I'm trying to use interchange to change images based on the screen size. However, when interchange is initialised no images load. Then when I resize the browser (1024px and lower) I get an error in the console saying: Uncaught TypeError: Cannot read property 'nodeName' of undefined Which relates to line 47 of foundation.interchange.js, which is: if (/IMG/.test(el[0].nodeName)) { The code I'm trying to use is: <img data-interchange="[http://www.example.com/image.png, (default)], [http://www.exmaple.com/image-large.png, (large)]" /> This is completely standard as per Zurb's documentation. I've