prototypejs Questions
30
Solved
I have an HTML string representing an element: '<li>text</li>'. I'd like to append it to an element in the DOM (a ul in my case). How can I do this with Prototype or with DOM methods?
...
Galitea asked 30/1, 2009 at 1:13
6
Solved
If the user selects an option in a dropdown box, there must be added a label and a textbox. Using appendChild, these elements get added to the end of the container.
var newFreeformLabel = document...
Megavolt asked 6/3, 2009 at 8:47
4
Solved
I've come across an oddity while using Prototype to handle click events. If you click the button in the code below, it will trigger three alerts: 'Click 1', 'Click 2' and 'Click 3'. Modern browsers...
Fluoridate asked 1/3, 2012 at 7:58
6
Solved
What's the most robust way of creating a global keyboard shortcut handler for a Web application using JavaScript i.e. which event(s) should I handle and what should the event handler(s) be attached...
Chlamydospore asked 4/3, 2009 at 16:24
6
Solved
A poorly-written back-end system we interface with is having trouble with handling the load we're producing. While they fix their load problems, we're trying to reduce any additional load we're gen...
Batts asked 18/9, 2008 at 23:23
6
Solved
Hi I'm wondering if there's anyway to stream a binary response in AJAX? This would be an ultimate solution otherwise I would need to realize the binary image to a file then stream that file to the ...
Outage asked 29/10, 2009 at 18:59
25
Solved
In Prototype I can show a "loading..." image with this code:
var myAjax = new Ajax.Request( url, {method: 'get', parameters: pars,
onLoading: showLoad, onComplete: showResponse} );
function show...
Cleanup asked 16/9, 2008 at 1:18
5
Solved
I want to display a dialog when a user mouses over a certain image. That part works. Unfortunately if the mouse even just passes over the corner of the image quickly it will display the dialog. I w...
Oribelle asked 3/6, 2011 at 18:18
8
I trying to implement reCAPTCHA in one of my forms,...but i am using ajax as the submission. (More specifically the prototype ajax.updater)
Once I submit and error check my form I try to load the ...
Catacomb asked 27/2, 2009 at 5:17
6
var NewdateData[] = [1,2,3,4,5,6,7,8,9,1,2,1,23,45,56]
This NewdateData is dynamically filled from database depending upon the selection made from the user interface.
I am using this NewdateData...
Doubly asked 2/5, 2011 at 11:39
4
In JavaScript I want to do the following:
var pi = {};
pi[0]['*']['*'] = 1;
of course this throws a "Cannot read property '*' of undefined" error. Clearly I can define p[0] = {}, but that's kind...
Escutcheon asked 11/4, 2013 at 9:15
3
Solved
The newest release version of the Google Maps JavaScript (3.32.13) is conflicting with Prototype.js version 1.7.3.
When I have Prototype included on the page, the Street View of Google Maps will n...
Lacewing asked 18/5, 2018 at 20:18
4
Solved
I need to add prototype and then add scriptaculous and get a callback when they are both done loading. I am currently loading prototype like so:
var script = document.createElement("script");
scri...
Excretory asked 8/12, 2009 at 12:42
9
I have seen Scriptaculous.js file to include its required javascript files dynamically. Is there any better approach to include javascript dynamically.
For example, I would like to include my js f...
Straggle asked 22/4, 2011 at 2:5
9
Solved
How to select a div using it's ID but with a widcard?
If the DIV's ID is statusMessage_1098, I would like to select it in some way like document.getElementById('statusMessage_*').
This is because...
Circumjacent asked 21/12, 2009 at 5:1
3
Solved
i've following problem and since i upgraded my prototypeJS framework.
the JSON parse is not able anymore to convert this string to an object.
"{empty: false, ip: true}"
previously in version 1....
Clunk asked 24/1, 2011 at 11:5
2
Solved
I have a custom CMS and would like to add a "shortcuts menu" triggered by the pressing of the Ctrl key twice within, say, 300 milliseconds.
I use prototype, so my starting point obviously is:
Eve...
Bristling asked 10/11, 2009 at 12:36
4
Solved
I have an img tag in jsp page where the src path requires header parameters to pass to get the image. How can we achieve it?
Huth asked 12/5, 2014 at 13:8
2
Solved
Magento 1 use prototypejs, this library overrides Array.form line 1081 in its 1.7 version:
Array.from = $A;
This cause the following JavaScript error in the Console:
This site overrides Array...
Clo asked 17/10, 2019 at 9:56
3
Solved
New to javascript and trying to learn! I am trying to map through two array of objects, and if a certain property matches, pull in specific information into an array.
let result;
let arrNames = ...
Analyze asked 11/10, 2019 at 19:33
4
Solved
I'm trying to compare two strings in JavaScript using endsWith(), like
var isValid = string1.endsWith(string2);
It's working fine in Google Chrome and Mozilla. When comes to IE it's throwing a...
Influx asked 31/5, 2016 at 11:24
4
Solved
Background:
My site is in magento open source ecommerce solution, and in the top (header) it has a shopping cart icon. On dekstop, when user hovers mouse over that icon, it shows the content (item...
Cerecloth asked 5/6, 2014 at 10:51
4
The 'this' keyword returns the window object within an object's prototype in Javascript?
I have the following function in a class:
MyClass.prototype.myFunction = function(item, args)
{
console.log(this);
}
This function is called from an external library that I don't have access ...
Zackzackariah asked 5/11, 2012 at 0:51
8
Solved
For some reason, the prototype framework (or another JavaScript code) that is shipped with Magento is replacing standard console functions, so I can't debug anything. Writing down in JavaScript con...
Globose asked 17/8, 2011 at 7:52
6
Solved
I'm wondering what the best practice is for passing variables to JavaScript functions in a rails view. Right now I'm doing something like:
<% content_for :javascript do %>
<script type=...
Steverson asked 17/3, 2010 at 18:44
1 Next >
© 2022 - 2024 — McMap. All rights reserved.