You are not logged in.

esys

Intermediate

  • "esys" started this thread

Posts: 267

Location: Balazé France

Occupation: photographer

  • Send private message

1

Thursday, March 1st 2012, 6:19pm

Variable "if" doesn't work with onclick="" plugin attribute?

Hi everybody,

I've a plugin for all devices. I'd like to set the onclick attribute only for desktop. I used the "if" var, didn't work? I've checked the doc syntax about "if" i've seen no restriction?!

Source code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
	<plugin name="fond_texte" 
			url="plugins/Fond_champ_texte.png" 
			keep="true"
            align="right"   
            edge="right" 
    		visible="false"
    		scale="0.65"
			zorder="69"
			x="20" y="-10" 			
			alpha="0.0"	
			onclick="if(isdesktop, hideinfo() );"
			onloaded="if(isphone, set(y, 0); set(scale, 0.85); ); 
					  if(ismobile, set(y, 0); set(scale, 0.85); );"
			onover=""
			onout=""				
			effect="dropshadow(5,0x30,3,1.5);"
			enabled="true"
			capture="true"			
			selectable="false"
		    devices="all"
			/>
		


Thanks for any help. *smile*
Steph
Steph

2

Thursday, March 1st 2012, 6:24pm

Hi,

there are not if restrictions of course,

how are you testing?
have tested on a real device or were you using the iphone/ipad simulator (or the simulatedevice setting),
when just using the iphone/ipad useragent the desktop will be still detected,

best regards,
Klaus

esys

Intermediate

  • "esys" started this thread

Posts: 267

Location: Balazé France

Occupation: photographer

  • Send private message

3

Friday, March 2nd 2012, 1:49am

Hi Klaus,

Ok I didn't know that! Thanks. ;-)

Steph.
Steph

Similar threads