I have created a demo page to better describe my problem,
take a look here: http://www.dantilley.net/dnd_problem.html
This is a simplified version of a page I am working on,
the problem is that if I scroll down to the lower objects I can no
longer drop them on the areas at the top.
On 7 Oct,
i would suggest using onDrag and checking if the current X/Y of the dragged
element is outside the viewport ... if it is then scroll the window up to
suit.
Alex Mcauley
http://www.thevacancymarket.com
- Original Message -
From: BlackEel dan.til...@gmail.com
To: Prototype
Hi,
I'm trying to replace the Prototype JavaScript framework version (1.5)
with the 1.6.0.3 one into a PHP project using Zend framwork, Smarty
and Scriptaculus.
I do a Ajax.Request according to the parameters from the
UserRegistrationForm.
The response is sent using this helper method:
I have two strings 'part1' and 'partF'.
I want to get the reference to the element that have the two strings
in its id:
input type=text id=partA part1 part2 partD
input type=text id=partB part1 part3 partE
input type=text id=partC part1 part4 partF
input type=text id=partD part1 part5
Hello anyone,
i try to select a label for=options_10_2 like this:
$('options-10-list').select('[for=options_10_2!]').each(function(e)
{
e.addClassName('highlight');
});
or this:
$('options-10-list').down(3).each(function(e) {
e.addClassName('highlight');
});
But its doing nothing. What
Hi all,
I'm trying to send the text from a textarea via the Ajax.Request
Method to my PHP-Script. If the lenght of the text in the textarea
exceeds 6000 characters it seems not to work. Is there a limit
somewhere? I can't find anything about that in the API Doc.
Thanks for any help!
Frank
Hi,
I'm afraid those IDs are invalid. IDs cannot contain spaces.[1] Do
you mean to be uses classes, perhaps?
But leaving aside that issue, yes, $$ can do substring matches within
attributes using substring attribute selectors[2]. So for instance,
if you used underscores instead:
div
I dont think onFormSuccess is valid.. i think it was changed to
onSuccess but check the docs just incase
HTH
Alex Mcauley
http://www.thevacancymarket.com
- Original Message -
From: Romain Dequidt dequidt.rom...@gmail.com
To: Prototype script.aculo.us
those ID's are illegal - ID's should not contain spaces.
Alex Mcauley
http://www.thevacancymarket.com
- Original Message -
From: lodecesa lorenzo.deces...@gmail.com
To: Prototype script.aculo.us prototype-scriptaculous@googlegroups.com
Sent: Thursday, October 08, 2009 10:27 AM
As you can see, onFormSuccess method is bound to the onSuccess
callback of the Ajax.Request
onSubmit : function(e) {
Event.stop(e);
var options = {
parameters : this.form.serialize(),
method :
My problem (http://groups.google.fr/group/prototype-scriptaculous/t/
313d3a8b674d5b28?hl=fr) comes from that issue.
The errors object is actually a empty array when there is no error.
But when I try to create my hash by doing:
$H(transport.responseJSON.errors)
the result is a weird hash (size()
Would that be a relevant wrapper?
function hash_wrapper(var)
{
if (var (var.constructor == Array) (var.length == 0)) {
return;
}
return $H(var);
}
On 8 oct, 15:55, Romain Dequidt dequidt.rom...@gmail.com wrote:
My problem
@Radoslav,
I took some time today to look through your patch. It would make this
function very easy to implement.
It would take the form of a keypress event with ctrlkey=true and the
necessary keyCode and charCode values.
What is it's status? Will it make it into a future version of
Prototype
Am I the only one that missed the old online api docs? This new one
seems hard to use.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
Prototype script.aculo.us group.
To post to this group, send email to
I agree with you as it seems less documented (read: less examples seem
to be provided).
I'm sure though that since it's only a relatively new release of the
documentation system, more information and examples will probably be
added soon.
Either way - we should all be thankful to anyone investing
I guess the thread I started may help you:
http://groups.google.com/group/prototype-scriptaculous/browse_thread/thread/e7ab39d744d6dfb9/17370bb6381fdad9?hl=en#17370bb6381fdad9
On Oct 8, 1:01 pm, clicforw...@googlemail.com
clicforw...@googlemail.com wrote:
Hello anyone,
i try to select a
just thinking out loud here, when you $H ur array object, is it
hashing all the extra functions prototype put in Array.prototype like
find(), findAll(), etc?
cuz if i do
var hash1 = $H([1,2,3])
hash1.size() is not equal to hash1.length because
length is an array property and size is a hash
So just as a recap, you're looking to simulate the ctrl + mouse wheel
event such that the native processing for zoom magnification applies?
This is a highly useful feature, I would love to add some widgets
type icons (magnifier glasses with a + and -) on my site that allows
people to rescale
It's also just plain hard to navigate and understand all of the
different methods available.
An example. If I select Event there is no longer the list of available
methods appearing in the sidebar menu. Then I need to scroll down a
page which is visually hard to scan to be able to pick out
You failed to see his point.
Ctrl + mouse wheel scales the page not the text - it scales images,
elements, text and everything
LOL
Alex Mcauley
http://www.thevacancymarket.com
- Original Message -
From: Matt Foster mattfoste...@gmail.com
To: Prototype script.aculo.us
@MattAlex,
Yes, a page zoom scales everything not just text. Early testing showed
just changing text size is OK most of the time but can lead to page
mis-alignment issues in some cases.
A synthetic event that replicates either (1) a mouse scroll wheel
movement while cntrl key is held down or,
Hello,
Thanks for the reply. I tried doing that but it didn't work for me.If
you point out the mistake in following code, it will be great.Thanks
again.
script type="text/_javascript_"
new Ajax.Autocompleter("search","hint","server_class.php",
{afterUpdateElement : getSelectedId,
22 matches
Mail list logo