Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

Add a variable to see the source who/what called s_doPlugins

Avatar

Avatar
Boost 500
Level 10
adierl
Level 10

Likes

806 likes

Total Posts

188 posts

Correct Reply

0 solutions
Top badges earned
Boost 500
Boost 50
Boost 5
Boost 3
Boost 250
View profile

Avatar
Boost 500
Level 10
adierl
Level 10

Likes

806 likes

Total Posts

188 posts

Correct Reply

0 solutions
Top badges earned
Boost 500
Boost 50
Boost 5
Boost 3
Boost 250
View profile
adierl
Level 10

17-02-2010

Since there are tons of reasons why the s_doPlugins function is called, it would be beneficial to have a parameter to read who/what called the function. Currently it's hard to write fool-proof code since a simple click somewhere on an empty space of the document already calls s_doPlugins.

1 Comment

Avatar

Avatar
Applaud 5
Level 1
ufc117
Level 1

Likes

0 likes

Total Posts

1 post

Correct Reply

0 solutions
Top badges earned
Applaud 5
View profile

Avatar
Applaud 5
Level 1
ufc117
Level 1

Likes

0 likes

Total Posts

1 post

Correct Reply

0 solutions
Top badges earned
Applaud 5
View profile
ufc117
Level 1

19-08-2010

Absolutely!!!

 

And here's one reason why:

s.eVar2 =s.getValOnce('eVar2', s.prop2, (30/60/24));

 

Looks innocuous, right? 

But e.g.  a client'side form validation scenario with Form Analysis enabled, say s.prop2 is given a value and do_Plugins is called because of a click, eVar2 is assigned a value and the cookie is written, but no data is sent.

When the users submits the form and s.sendFormEvent() or s.tl() is called eVar2's value will be cleared.