Use prototype.js in WC

Forum to discuss the Web client version of Servoy.

Use prototype.js in WC

Postby victor.rojo » Wed Dec 22, 2010 2:56 pm

Hi,
I'm tying to show images in html_area using lightbox2 (uses prototype library) script in a WC solution.
It works fine, but the problem is that if the prototype library is loaded in the html_area, the other fields don't fire the onDataChange event so the changes in the data aren´t stored...
Any idea?
Best regards/Un saludo,

Victor Rojo
Developer

NeoCursar, S.L. - Developers Team
--
Servoy 5.2.8 - build 1016 / Version: 6.0.2 - build 1222
Mac OS X 10.7
victor.rojo
 
Posts: 74
Joined: Mon Jan 11, 2010 1:49 pm

Re: Use prototype.js in WC

Postby pbakker » Thu Dec 23, 2010 11:07 am

You mean that because you have added prototype through an HTMLArea, it affects "normal" fields on the rest of the form?

Sounds a bit odd, what exactly do you have the prototype.js lib do? Maybe it's also modifying the standard Servoy elements.

In order to get any further with this, I'd fire up the Web Client solution in Google Chrome and start inspecting the source of the page to figure out that exactly the prototype lib is doing to the normal fields. Maybe there is already an error in the JavaScript console of the browser that gives some clues..

Paul
pbakker
 
Posts: 2822
Joined: Wed Oct 01, 2003 8:12 pm
Location: Amsterdam, the Netherlands


Return to Servoy Web Client

Who is online

Users browsing this forum: No registered users and 5 guests

cron