Yes I know I need to use a proxy to make that call but I did try
it and I got the same result...
You know what is funny... it works with the internal browser in
Eclipse but not with any of the other browsers I've been testing.
On Aug 6, 7:27 am, Walter Lee Davis wrote:
> Unless you work at
Hello,
---
document.observe('click', function() { $('toto').update('1 2
3'); });
---
If I click on the document, firebug raise the following exception:
---
$("toto") is null
---
Great!
No
Hi all,
Im using the jNice plugin on a select box in a form of mine. Im also
calling a custom JS function which uses prototype on the same select
box.
<%= f.collection_select :item_name, Item.all, :item_for_order, :name,
{ :name => "select", :onchange => "item_row($(this));"} %>
now both jNice
In your first code $('toto') does not exist.
Alex Mcauley
http://www.thevacancymarket.com
- Original Message -
From: "Nicolas Terray"
To:
Sent: Thursday, August 06, 2009 12:47 PM
Subject: [Proto-Scripty] dom:loaded & exceptions
>
> Hello,
>
> ---
>
>
>
>
> document.observe('cl
2009/8/6 Alex McAuley :
> In your first code $('toto') does not exist.
Yes I know :D
My message is not about 'toto' but about exception catched by dom:loaded.
I do want my exceptions displayed by the browser. I don't want to add
a try{}catch in all dom:loaded
--~--~-~--~~
Hi All,
I am working on the new Palm Pre WebOS, the Apps for Palm Pre are
developed in MojoSDK which is developed on top of Prototype Javascript
Framework.
I am trying to access variables defined at assistant level in event
handlers which are a part of the same assistant as well. When I access
t
Thanks a lot.
Best Regards,
Benedikt.
--~--~-~--~~~---~--~~
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 prototype-scriptaculous@googlegroups.com
To unsubscribe
Omar, can you try rewriting this code to use the native XmlHttpRequest
API? If that version works, then the problem definitely lies with
Prototype, and I'll open a bug for this.
Cheers,
Andrew
On Aug 5, 4:30 pm, 0m4r wrote:
> Hi All,
>
> I have a strange behavior with a pice of code I wrote usi
Sure,
I will and I will let you to know.
Thanks,
Omar
Sent from Düsseldorf, North Rhine-Westphalia, Germany
On Thu, Aug 6, 2009 at 15:48, Andrew Dupont wrote:
>
> Omar, can you try rewriting this code to use the native XmlHttpRequest
> API? If that version works, then the problem definitely
Here's one quick way to cut down on duplication:
function applyCheckboxBehavior(checkboxes, toggleControl) {
toggleControl.observe('click', function() {
checkboxes.each( function(box) {
box.checked = toggleControl.checked;
});
});
}
applyCheckbo
We are working on and html page which has a div with id="container"
that gets updated when pressing link buttons that are on the top.
This is very simple code:
new Ajax.Updater('container', 'somepage.html', {
parameters: { method: GET }
});
The thing is that one of the pages has a link with
Explain lightwindow for me, does it use javascript to display? If so
then post that script too please.
On 8/6/09, Martín Marqués wrote:
>
> We are working on and html page which has a div with id="container"
> that gets updated when pressing link buttons that are on the top.
>
> This is very si
Don't call a method on an element unless it exists. This is a basic
defensive coding technique.
var thing = $('toto');
if (thing) thing.update('some text');
// or in one line
$$('#toto').invoke('update', 'some text');
-justin
--~--~-~--~~~---~--~~
You received th
Very common problem when trying to use the "this" object for the first
time. Please show the code where you are creating your event observer,
as it needs to be bound to the current instance of "this" at runtime.
See here for more info: http://www.prototypejs.org/api/function
--~--~-~--~--
Please show the code of your item_row function. There is likely an
exception occurring in Safari, halting your script execution.
I am not familiar with jNice at all, never heard of it. I assume it is
a jQuery plugin?
-justin
--~--~-~--~~~---~--~~
You received this
This maybe a newbie questions but I am having some trouble with this.
1. I would like use prototype to make an ajax call to load a page ..
grab a particular div target_div
from that page and stick it into a destination div dest_div on this
page.
$("#dest_div").load("load_test.html #target_div
Hi,
jNice is a jQuery plugin for nice form elements basically ->
http://www.whitespace-creative.com/jquery/jNice/
i narrowed down the issue to one line of code in the item_row
function. it tries to insert a value into a hidden_field which is kind
of like hanging inside tags. Here's the HTML and
17 matches
Mail list logo