How to remove existing scripts, css etc from WAHtmlRoot?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

How to remove existing scripts, css etc from WAHtmlRoot?

Tim Murray

Hello.

 

We are running Seaside 3.0

 

Our application uses the JQDeployment and JQUIDeployment libraries along with a custom library.

 

For some components, I would like to unload the JQ*Deployment libraries and load an older version.

 

Specifically, I am trying to use JGCharts1.0

 

http://maxb.net/scripts/jgcharts/include/demo/

 

I am successfully loading the jgcharts.js library on the fly in my component’s updateRoot:anHtmlRoot method.

However, the library uses an older version of jquery:  jquery-1.3.1.min.js
Before loading this library in updateRoot:anHtmlRoot, I would like to unload the existing libraries.

Examining the protocol for WAHtmlRoot shows now removeScript or removeCSS elements.

 

Any ideas?

 

Thanks in advance.


_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: How to remove existing scripts, css etc from WAHtmlRoot?

John McKeon
I would remove the JQ*Deployment libraries from the appication and add the required scripts via updateRoot: implemented on the main component. Then you can be more selective about which js files get loaded.
On Tue, Sep 21, 2010 at 8:27 AM, Tim Murray <[hidden email]> wrote:

Hello.

 

We are running Seaside 3.0

 

Our application uses the JQDeployment and JQUIDeployment libraries along with a custom library.

 

For some components, I would like to unload the JQ*Deployment libraries and load an older version.

 

Specifically, I am trying to use JGCharts1.0

 

http://maxb.net/scripts/jgcharts/include/demo/

 

I am successfully loading the jgcharts.js library on the fly in my component’s updateRoot:anHtmlRoot method.

However, the library uses an older version of jquery:  jquery-1.3.1.min.js
Before loading this library in updateRoot:anHtmlRoot, I would like to unload the existing libraries.

Examining the protocol for WAHtmlRoot shows now removeScript or removeCSS elements.

 

Any ideas?

 

Thanks in advance.


_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside




--
http://john-mckeon.us

_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside