search for: javascript

Displaying 20 results from an estimated 4509 matches for "javascript".

2005 Aug 10
1
Issues with Canoo WebTest
...ght be causing this? Thanks, Matt [canoo] [appfuse-tapestry] ERROR [Thread-2] Window.run(245) | Caught exception in Window.setTimeout() [canoo] ======= EXCEPTION START ======== [canoo] EcmaError: lineNumber=[1] column=[72] lineSource= [function GargoyleWrapper0() {org.mozilla.javascript.InterpretedFunction@f78a5] name=[SyntaxError] sourceName=[Wrapper definition for Window.setTimeout()] message= [illegal character] errorObject=[SyntaxError: illegal character] [canoo] com.gargoylesoftware.htmlunit.ScriptException: illegal character [canoo] at com.gargoylesoftwa...
2007 Jan 23
3
Too many session numbers per page request?
If I view the source on one of my pages I see: <script src="/javascripts/prototype.js?1168898271" type="text/javascript"></script> <script src="/javascripts/effects.js?1169242655" type="text/javascript"></script> <script src="/javascripts/dragdrop.js?1169241657" type="text/javascript">&lt...
2006 Jun 23
16
Help please-draggable
...e the demos are working. Here is my simple code. I''ve also had the "new Draggable" between the select tags. Didn''t change anything. <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <script src="/javascripts/prototype.js" type="text/javascript"></script> <script src="/javascripts/scriptaculous.js" type="text/javascript"></script> <script src="/javascripts/dragdrop.js" type="text/javascript"></script> <script typ...
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/javascr...
2017 Jul 18
3
Creating/Reading a complex string in R
Hi again, Let say I have below string (arbitrary) <html> <head> <script type="text/javascript" <script type="text/javascript"> mystatement('current', {'pac':['']}); mystatement; I want to pass above string to some R variable for further analysis. So I have tried below : String = '<html> <head> <script t...
2011 Mar 19
2
I get an error message
...drive, I get a popup text box that says the following: <html><head id="AM_Offline_Page"><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><meta name="am-version" content="6.1"> <script language="JavaScript" src="am_include.js" type="text/javascript"></script> <script language="JavaScript" src="language.js" type="text/javascript"></script> <script language="JavaScript" src="author.js" type="text/jav...
2014 Nov 27
2
centos.org List of Mirrors & Javascript
Hello, I would like to propose a small change to http://centos.org/download/mirrors/ Currently the mirror list is generated using Javascript but there is neither non-Javascript version of the list nor fallback a message for users without Javascript. It would be great to have non-Javascript version but at least a fallback message "you need Javascript" would greatly improve the user experience. Without Javascript, the page loo...
2006 Feb 03
2
JavaScript Prototype Help?
...quot; but that doesn''t update until you leave the text area. I was able to get it working using AJAX, but it''s silly to make a needless round trip to the server, when the page already knows everything it needs to know. What I wanted was an element observer which executes JavaScript immediately. So I decided to write my own helper using the observe_field code as a model. In my view I have: <%= observe_field_length(''text_area'', { :frequency => 5, :update => ''count_display'', :with => "''Current characters =...
2006 Jun 16
2
RJS replaces JavaScript?
Hi All, I am currently devleoping a Rails application and I need to do following as part of client side operations, 1. HTML Form validations 2. AJAX I am currently calling Javascript methods from views of my application; I heard about RJS(Remote Javascripts) templates; are the replacing Javascript altogether? can I use RJS for HTML Form validations and AJAX? What I believe is that with RJS there would be a server round trip as for every RJS template I have to write a method in...
2006 May 02
5
How to call a javascript function from rails view?
Is there a way to call a javascript function from within a rails view? I can''t use the onLoad javascript method inside the <body> tag because I don''t have control over the body tag, it''s in my header. There are several rss feed reading functions that are in the page and I would like to call those fu...
2006 Apr 21
13
Sorttable.js
I have come across this neat Javascript table sorter at http://kryogenix.org/code/browser/sorttable/ It seems straigh forward to use but i cant get it to work. I have included in the head <script src="javascripts/sorttable.js" type="text/javascript"></script> In the View <table class="sortable&q...
2006 May 05
6
RJS implementation question
Why is RJS so dependant on programatic creation of Javascript? RHTML is a great implementation in that it puts HTML first, and Ruby second. I would have thought RJS would be the same way: a .js with ERb helpers for generating Javascript functions. RJS putting Javascript second means: - I have to learn a whole new set of commands to use Scriptaculous. - De...
2017 Jul 18
4
Creating/Reading a complex string in R
...am aware of gsub() function, however not sure I can apply it directly on my original string. Regards, On Tue, Jul 18, 2017 at 10:27 PM, John McKown <john.archie.mckown at gmail.com> wrote: > Try: > > String = '<html> > <head> > <script type="text/javascript" <script type="text/javascript"> > mystatement(\'current\', {\'pac\':[\'\']}); > mystatement;' > > > To embed a single ' mark in a string delimited by ' marks, you must "escape" > them by prefixing...
2006 Jan 28
2
javascripts
Trying to use auto_complete_for which works fine on my home system. I see that when I use <%= javascript_include_tag "defaults" %> that when used, the webrick reports GET /javascripts/prototype.js GET /javascripts/dragdrop.js GET /javascripts/effects.js GET /javascripts/controls.js but on the system that I am trying to develop on and doing similarly, the webrick only reports GET /javas...
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 type="text/javascript" src="/javascript/scriptaculous.js"></script>''); } catch (e) {}; Unfortunately that makes Mozilla display this in the docum...
2017 Jul 18
0
Creating/Reading a complex string in R
Try: String = '<html> <head> <script type="text/javascript" <script type="text/javascript"> mystatement(\'current\', {\'pac\':[\'\']}); mystatement;' To embed a single ' mark in a string delimited by ' marks, you must "escape" them by prefixing them with a back-slash \....
2006 Jan 25
3
Application Helper and Javascript
I have a "javascript_include_tag" including a Javascript function. I have a function being invoked via a helper in the same view, which prints out a script tag that uses the javascript function above. Problem is, the function being invoked via the helper can''t find the javascript function included in the...
2006 Aug 13
4
Javascript compression / How to hook in to rails development
Hi there, I thought it''s rather neat to use the javascript compression from http://dojotoolkit.org/docs/compressor_system.html This removes javascript comments and renames variables and seems pretty reliable and effective. For example, I keep the original htmlarea.js file from http://xinha.gogo.co.nz/ in a file htmlarea.js.txt and it compresses from...
2005 Dec 12
7
possible opera+prototype bug in evalscripts?
...ript> tags, I get this error in Opera 8.51: ------------------- snip ----------------------------- http://ccml.uni-weimar.de/ Timeout thread: delay 10 ms Error: name: EvalError message: Statement on line 258: Illegal use of eval Backtrace: Line 258 of linked script http://ccml.uni-weimar.de/javascripts/prototype.js results.push(iterator(value, index)); Line 227 of linked script http://ccml.uni-weimar.de/javascripts/prototype.js iterator(value, index++); Line 417 of linked script http://ccml.uni-weimar.de/javascripts/prototype.js iterator(this[i]); Line 231 of linked script http...
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 --...