You cannot post messages because only members can post, and you are not currently a member.
|
Sychronize many asynchronous Ajax.Request
|
| |
Hello
I have problem. When my page is load I build many objects (aprox 15)
by Ajax.Request (asynchronous : true) but last object I can create
when all previous object is ready. Any idea how do that ?
maaalek
|
|
X-JSON header or application/json MimeType
|
| |
Hello everyone, firstly thank you very much.
I have the following questions:
Since I work with prototypejs AJAX requests to return, I always return
calls as application/json parsing the JSON object in the response, so
I had to always use something like the following to use the object:
var json = transport.responseText.evalJSO N();... more »
|
|
Limit number of draggables allowed in a droppable
|
| |
How do I limit a Droppable to contain only 1 Draggable?
I have a Droppable:
<div id="myDroppable">
<div id="staticText">Description</d iv>
</div>
And a Draggable:
<div id="myDraggable">
DRAG ME
</div>
Which I setup like this:
Droppables.add('myDroppable');
new Draggable('myDraggable');... more »
|
|
PDoc documentation modification
|
| |
Hi,
I was not too happy about the fact that the new version of the
documentation wasn't on par with the old one in terms of examples and
coverage. So I dove into github and began tackling the issue (the docs
are open source after all).
I wanted to send a tiny modification at first and my goal was to add... more »
|
|
How do I drag out of a droppable
|
| |
I have several draggables and several droppables on the page. Using
script.aculo.us, I have the ability to put draggables into droppables.
I'm using this code for the onDrop to achieve this:
function drop(dragged, dropped, event) {
dragged.style.top = 0;
dragged.style.left = 0;
dropped.appendChild(dragged);... more »
|
|
Local autocomplete issue when searching for 'IN' string
|
| |
Hello, I am using a local autocomplete and everything is working fine
except when I search using the IN letters. When I search like that,
the drop down menu show the first match and then other 9 items that do
not match the search. This is only happening with this string. I think
this maybe because I have this setup and the word "informal" is in all... more »
|
|
Maybe OT: passing a function name to a function
|
| |
I suspect this is not a prototype question, but then again, every time I turn around I am learning new capabilities of the framework.
I need to pass a function name as an argument to a function for a call-back function.
Do I just pass the function name as a quoted text argument ?
If I do, do I need to eval the function when I want to execute it.... more »
|
|
Hourglass cursor appear on whole page
|
| |
When the user clicks a button, I want to show an hourglass cursor
while its onclick handler is being run. I tried this:
$$('body').first().setStyle({c ursor: 'progress'});
The hourglass only appears when I hover over the body background. When
hovering over the button itself (which is an <a>), the cursor does not... more »
|
|
Animated Drop Down with Scrollbar won't display
|
| |
I am using a script for an animated drop down menu with a scrollbar.
It will not display normally. If I run the following script in
Firebug:
scrollbar.recalculateLayout();
It works just fine. My problem, not having in-depth javascript
knowledge,
is how I can have the above script called. I have tried 'onmouseover'... more »
|
|
onClick vs Element.observe
|
| |
Hi all,
I have an app that is going to put out a list of items onto a page
and each one has a number of click targets. Now i could setup the
event handler in one of two ways.
1. add it into the template that is rendered with the following code
<div onclick="doIt()" id="item_1" class="item">Item Name 1</div>... more »
|
|
|