similar to: javascript and caching

Displaying 20 results from an estimated 30000 matches similar to: "javascript and caching"

2005 Dec 05
1
Scriptaculous conflict with TinyMCE
I''m using TinyMCE[1], a popular javascript WYSIWYG html editor. The editor fails to work when I load Scriptaculous before it -- well depending on the browser. I can make my application load the javascript in a different order, but just in case it''s an issue in scriptaculous I thought I''d report. I have a few pages up -- I''d like to find out if anyone else
2005 Dec 23
3
RE: Scriptaculous and Prototype based Rich TextEditor
What I have so far. In my main HTML: <script type="text/javascript" src="/javascripts/tiny_mce/tiny_mce_src.js"></script> <script type="text/javascript"> tinyMCE.init({ mode: "textareas", theme: ''advanced'', theme_advanced_toolbar_location: ''top'' }); ... </script> My Ajax form
2005 Oct 12
2
AJAX and disapear javascript tags
Hello everyone. I''m writing web aplications using AJAX (library prototype and scriptaculous). I have situation that I want to change content of one div in my site. I make ajax request to server and getting new content of that div. The problem is that this div should have javascript code (e.g. looks like that <div><script>js code</script>
2007 Feb 04
10
where to install script.aculo.us ?
I''d like to try autocompletion, and my understanding based on AWDWR:2, and on various website tutorials, is that I should install the script.aculos.us javascript library. My question is how to do that. The instructions on their site tell me to "Put prototype.js, scriptaculous.js, builder.js, effects.js, dragdrop.js, slider.js and controls.js in a directory of your website,
2007 Oct 27
1
Edge Javascript caching just not working
For some reason, in production, with this one line of code: javascript_include_tag :all, :cache => true I get this: <script cached="true" src="/javascripts/prototype.js?1193454472" type="text/javascript"></script> <script cached="true" src="/javascripts/effects.js?1193454472" type="text/javascript"></script>
2012 Jan 01
3
'require_tree .' does not seem to be including the available *.js files as expected. Why?
Hi, all, Happy new year :) Referring to http://guides.rubyonrails.org/asset_pipeline.html, it seems that ''require_tree .'' in myapp/app/assets/javascripts/ application.js will include all *.js files in the myapp/app/assets/ javascripts/. I have a few other *.js files in this directory : parts.js, makes.js and categories.js. Here''s an extract from the html file I
2005 Dec 27
2
can I load javascript inside a ''try'' block?
Ok, I have a need to load the scriptaculous files inside a ''try...catch'' block in order to degrade gracefully on older browsers (IE 5.0 is one I have to support, unfortunately). I tried this: try { document.write(''<script type="text/javascript" src="/javascript/prototype.js"></script>''); document.write(''<script
2005 Dec 22
6
Scriptaculous and Prototype based Rich Text Editor
Hi Guys, I'm currently using the Dojo Rich text editor on my site https://wideword.net but am not 100% happy with it as I'm a prototype kind of guy. So I started writing this Rich Text Editor the other day on an experiment. I used the In Place Editor as a template for it and have gotten it to more or less work under IE and Gecko. Unfortunately it still isn't working on Safari ( The
2006 Jun 07
3
Including scriptaculous.js causes page to "hang"
When I say hang, I mean the browsers spinner keeps spinning and Firefox''s info bar at the bottom says "Transfering data from ...... " I''m just including the js like this: <script src="/js/prototype.js" type="text/javascript"></script> <script src="/js/scriptaculous.js" type="text/javascript"></script>
2009 Nov 29
3
Views/index to views/show loses javascript functionality
I am testing a local copy of my website using Mongrel trying to introduce a scriptaculous multi-level drop down menu. the menu is a partial that is loaded into every layout I have many pages with their individual layout file. When I jump from page to page(index to index) all works OK. When I jump from any "view/index" to "view/show" I lose the javascript and the drop down menu
2006 Apr 14
1
Script.aculo.us Effects with callbacks not working as it should.
Hello all! I''m having a problem which is driving me insane. It''s probably related to the fact that I''m new to javascript.... :) Here''s the thing, I have a couple of effects which are all being put in the queue. Some of these effects have callbacks; e.g. "afterFinish". But the calback is being made directly instead of after the effect is done. The
2010 Aug 21
1
Rendering a different Javascript file in respond_to
Hi everyone, I am stuck in an (apparently) simple problem. In my event_controller I have the i_like_it action: def i_like_it @event = Event.find(params[:id]) ... # logic respond_to do |format| format.js end end In my case "i_like_it" is called with :method => PUT (it is an Ajax call, "i_like_it.js.erb" will be returned as a script and it wil be
2008 Apr 04
4
Auto Complete Problems
Hello All, I''m a RoR newbiew, trying to experiment with Autocomplete, but I''m having some difficulties. When I start typing in my input box, instead of getting a nice drop down, the styling on my page is getting all out of wack (ie my background colours change, link styling changes, etc) and I''m not seeing any autcompletion data. Here are the steps I''ve taken
2012 Jun 28
2
Best practice on Javascript and rails
Hi, I get constantly nervy whenever trying to implement any javascript / jquery in rails, basically because I''m not sure where to put things in the project! I know the people at rails have thought long and hard about how to best structure an app, so I''d like to learn the correct way. I''m using rails 3.2, ruby 1.9.3 ///////////// 1st situation - using a gem to include
2006 Feb 17
6
Ajax.Updater and loading new javascript functions.
I working on rebuilding my CMS software using AJAX, and have run into a couple problems I cant seem to find the solution to. I am loading up a new component of my system using the Ajax.Updater, and it loads up the HTML fine but as the component I am loading up is fairly complicated I want to load up its relevant javascript functions as well at the same time. I am using the
2006 Jan 10
2
Is there a best practice in dealing with javascript dependencies?
As I''ve begun to work with several javascript libraries out there, I''ve run in to some dependency issues that must have been solved by others before. For example, I''m trying to implement the jstree library from Laurie Harper in to BundledResource. Breaking the ''jstree'' javascript from the sample html out in to its own file caused it to fail
2006 Nov 24
5
Merge, Compact Ofuscate or Compress Javascript Lib ?
Hi !, A little question about JS Lib manipulation... - I found that DOJO toolkit gives a DOJO Compressor jar file to compress JavaScript http://dojotoolkit.org/docs/compressor_system.html - On the other hand there''s no docs in Prototype or Scriptaculous and prototype files are merged. Why ??? 1. Compacting file will reduce bandwidth but is it useful with a server that gzip .js ? 2.
2011 Jan 15
3
respond_with javascript
My ajax stopped working when I switched to using respond_with. For my Votes, I have the create action and the corresponding create.js.erb, and respond_to :html, :js, :xml in the controller. Heres the log when I try and create a vote: Started POST "/stories/3-asdfasdf1111/votes" for 127.0.0.1 at Fri Jan 14 20:46:36 -0800 2011 Processing by VotesController#create as */* Parameters:
2012 Sep 16
2
flash plugin
How do I get a flash plugin to work with firefox? I thought that I installed it correctly, but I have yet to see any flash videos through firefox. I keep being told that I need an additional plugin. When I folow directions, I'm told I already have it? At least once, I was told I needed to upgrade. In case it helps, here is the output of yum provides '*flash*' | grep -e lash -e dobe
2006 Mar 04
12
cross domain ajax
I''m trying to implement a cross domain solution for my rails app. I want people to be able to fill out a form on their site and the data will be passed back to my site through ajax, and their site gets updated. I''m looking for the best way to implement this. I would like to use a JSON approach like yahoo does, but i''m not sure if it will work. Though the form is