I started with the standard scriptaculous drag and drop tree, and that all works fine.
Then started implementing this:
http://www.artweb-design.de/2008/5/30/scriptaculous-sortabletree
which gives a good drag and drop tree
Where I am stuck is how to get serialize the tree (unordered list)? It's not in a form, and I can't find a way to s...
Is there some equivalent to jQuery's getScript in Prototype ?
...
I'm developing social faq solution.
When I click on vote up or vote down, i want to make an ajax call to a java function.
I've worked with struts on another project, and i was making call to struts action.
Now I work only with simple jsp, servlets ... and I dont know how to make an ajax call to a java function which will send me json ...
Is there anyway by which i can use the $ or $$ utility selectors with arguments containing special characters?
<div id="my example">
$('my example')
<div class="item1\item2">
$$('div.item1\item2')
I've tried using the standard escape sequence \ but am having no luck.
...
Am adding to a sortable list using Ajax, and to get the Scriptaculous effects to kick in after the add, the only way I have found is by re-executing sortable_element.
Can anyone suggest a better way of doing this, at the complete code is a hack:
<%= link_to_remote "Add",
:url => { :controller => "pages", :action => "add_fragme...
I have three divs set up in the following way:
<div class="outer-div">
<div class="inner1"></div>
<div class="inner2" style="display:none;"></div>
</div>
I have the second inner div hidden via the inline style. What I am trying to accomplish is that when the outer div, or basically any of the content is hovered over then the inner2 wo...
function Psend()
{
new Ajax.Request('Handler.ashx',
{
method: 'get',
onSuccess: function(transport) {
var response = transport.responseText || "no response text";
//alert("Success! \n\n" + response);
var obj = response.evalJSON(true);
...
Guys, Ive been using jquery to do this, but now I need to do it with Prototype and Im little confused due lack of documentation
I have 2 lists of check boxes
First List:
Check box 1
Check box 2
Second list:
Check box x
check box y
check box z
I need the JS code, using prototype to work like this: Second list, remains disabled unl...
Normally, I've seen prototype functions declared outside the class definition, like this:
function Container(param) {
this.member = param;
}
Container.prototype.stamp = function (string) {
return this.member + string;
}
var container1 = new Container('A');
alert(container1.member);
alert(container1.stamp('X'));
This code prod...
I need to be able to set the order of event handlers for a click event using Prototype. I need to insert an "Are you sure?" pop-up before an Ajax call modifies data. Due to the way the program is structured, I can't change the order of js click bindings.
I love jQuery and there's an elegant solution to this problem right here on Stack...
I may get killed for this but I have been trying for a few days using Prototype to show a hidden div when hovering over another div. I have this working fine in jquery but I could use some help porting it over to prototype.
The code sample:
<script type="text/javascript">
$(document).ready(function(){
$(".recent-question").hover(func...
Okay, so I'm not a Java guy, but I work with loads of them. We generally load Prototype with Tapestry 5, as Tapestry was built on this javascript library.
As a UI/front end developer/engineer, I know the awesomeness of jQuery and the lack of prototype therein. (Feel free to debate that elsewhere -- this ticket doesn't concern that que...
I have a problem here, when I select any of the 'father' checkboxes all the child checkboxes are getting enabled or disabled. So I need each father checkbox to affect it own child fieldset. Could someone help me with this.
Thank you
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang...
Hi there
I'm coming from a Prototype background and looking into JQuery. I'd like to know the 'right' way to do attach a click event to a bunch of elements, but then know in the event handler which one of my elements was clicked.
I've come up with the following:
MYNS.CarouselHelper.prototype.attachImgHandlers = function () {
$j("...
I have a web page that uses tooltips. I am using Prototip specifically. One of the options is to use Ajax to load another page within the tool. The Ajax functionality is coming from the Prototype framework, http://www.prototypejs.org/api/ajax/request/.
All I really want to load is an image. I just don't want the image to load on pag...
Hey guys just been looking at the Steam website and noticed it doesnt use Flash.
What technologies are being used to create the page? For example the slide bar to scroll through the different games, how exactly is that happening?
Thanks in advance for any replys.
...
I have a rails application in which i am using scriptaculous,prototip,controlMModal(livepipe.net).
I am getting an error in IE 7 and 8 as web page error (alert box)
The error is
"Stack overflow at line 1715"
Versions used:
scriptaculous v 1.8.3
prototip 2.2.0.2
prototype 1.6.1
controlmodal 2.2.3 (livepipe.net)
...
Hi this question is more a consulting of best practice, Sometimes when I'm building a complete ajax application I usually add elements dynamically for example. When you'r adding a list of items, I do something like:
var template = new Template("<li id='list#{id}'>#{value}</li>");
var arrayTemplate = [];
arrayOfItem.each(function(item, i...
Hi,
I'm trying to get two things done after a user clicks on a link:
Delete a div
Add another element at the bottom of the page
I played with Rails link_to_remote and what I get with the code below is that the element is added before the div is deleted:
<%= link_to_remote "✓",
:url => {
:controller => :movies,
:act...
I am very new to Ruby on Rails and was never really big on writing JavaScript, so the built in helpers were like a tiny silce of heaven.
However I have recently learned that using the helper methods creates "obtrusive javascript" so I am doing a tiny bit of refactoring to get all this messy code out of my view. I'm also using the Prototy...