Re: Preexecute JQuery

2018-02-14 Thread Hilmar Bunjes
As Mario said you could use JScript via ASP. However, I do not recommend 
that.

In most cases you would use a scripting language like PHP and get the image 
width via attribute. Then you can write it like that:
" 
src="<%img_image%>">

In the example above you should make sure that img_image is set or that the 
check for width can handle an empty value if img_image is not set yet.

Best,
Hilmar

On Tuesday, February 13, 2018 at 11:02:43 PM UTC+1, Heather Napoleone wrote:
>
> I was wondering if I can preexecute a jquery function before my page 
> publishes.  I want the function to run before it gets publishes.  Putting a 
> preexcute tage around it, does not work.
>
> For example I want to add a class to all images that have a width of less 
> than 200.  I don't want this function to be seen on the published page and 
> just have the class on all the images that are less than 200 in width.  
>

-- 
You received this message because you are subscribed to the Google Groups 
"RedDot CMS Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to reddot-cms-users+unsubscr...@googlegroups.com.
To post to this group, send email to reddot-cms-users@googlegroups.com.
Visit this group at https://groups.google.com/group/reddot-cms-users.
For more options, visit https://groups.google.com/d/optout.


AW: Preexecute JQuery

2018-02-14 Thread Mario Brandt
You could do that with asp. (vbscript or jscript)
Or add an attribute from the image into the image tag as a class.

Cheers



Von: Heather Napoleone
Gesendet: Dienstag, 13. Februar 2018 23:02
An: RedDot CMS Users
Betreff: Preexecute JQuery

I was wondering if I can preexecute a jquery function before my page publishes. 
 I want the function to run before it gets publishes.  Putting a preexcute tage 
around it, does not work.

For example I want to add a class to all images that have a width of less than 
200.  I don't want this function to be seen on the published page and just have 
the class on all the images that are less than 200 in width.  
-- 
You received this message because you are subscribed to the Google Groups 
"RedDot CMS Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to reddot-cms-users+unsubscr...@googlegroups.com.
To post to this group, send email to reddot-cms-users@googlegroups.com.
Visit this group at https://groups.google.com/group/reddot-cms-users.
For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"RedDot CMS Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to reddot-cms-users+unsubscr...@googlegroups.com.
To post to this group, send email to reddot-cms-users@googlegroups.com.
Visit this group at https://groups.google.com/group/reddot-cms-users.
For more options, visit https://groups.google.com/d/optout.


Re: Preexecute JQuery

2018-02-13 Thread Gavin Cope

Short answer is no.

If you want to run Server-side JavaScript, you could try Node.js.

Cheers,

Gavin


On 14 February 2018 08:02:47 Heather Napoleone  
wrote:



I was wondering if I can preexecute a jquery function before my page
publishes.  I want the function to run before it gets publishes.  Putting a
preexcute tage around it, does not work.

For example I want to add a class to all images that have a width of less
than 200.  I don't want this function to be seen on the published page and
just have the class on all the images that are less than 200 in width.

--
You received this message because you are subscribed to the Google Groups 
"RedDot CMS Users" group.
To unsubscribe from this group and stop receiving emails from it, send an 
email to reddot-cms-users+unsubscr...@googlegroups.com.

To post to this group, send email to reddot-cms-users@googlegroups.com.
Visit this group at https://groups.google.com/group/reddot-cms-users.
For more options, visit https://groups.google.com/d/optout.


--
You received this message because you are subscribed to the Google Groups "RedDot 
CMS Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to reddot-cms-users+unsubscr...@googlegroups.com.
To post to this group, send email to reddot-cms-users@googlegroups.com.
Visit this group at https://groups.google.com/group/reddot-cms-users.
For more options, visit https://groups.google.com/d/optout.


Preexecute JQuery

2018-02-13 Thread Heather Napoleone
I was wondering if I can preexecute a jquery function before my page 
publishes.  I want the function to run before it gets publishes.  Putting a 
preexcute tage around it, does not work.

For example I want to add a class to all images that have a width of less 
than 200.  I don't want this function to be seen on the published page and 
just have the class on all the images that are less than 200 in width.  

-- 
You received this message because you are subscribed to the Google Groups 
"RedDot CMS Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to reddot-cms-users+unsubscr...@googlegroups.com.
To post to this group, send email to reddot-cms-users@googlegroups.com.
Visit this group at https://groups.google.com/group/reddot-cms-users.
For more options, visit https://groups.google.com/d/optout.