Hi,
There's no reason you couldn't do it as a single `update`:
* * * *
catch(e)
{
var jsfile = 'mso.Common.js';
var routine = 'init';
var body = $$('body')[0];
body.insert(
new Element('div',
{
'id':'errordlg',
'class': 'console',
Here's a rather more readable copy of the final version of that:
http://pastie.org/1585294
-- T.J. :-)
On Feb 20, 10:59 am, "T.J. Crowder" wrote:
> Hi,
>
> There's no reason you couldn't do it as a single `update`:
>
> * * * *
> catch(e)
> {
> var jsfile = 'mso.Common.js';
> var routine
Thanks T.J., very helpful. My final implementation is this:
catch(e)
{
document.fire('MSO:error', {ID: 'errorEventReg',
Routine:'pageReadyEvent', JSFile: 'Event.Registration.js',
Message:e.message});
}
This works nicely since the host page now can subscribe to to MSO:error
event. I'm tryi
T.J., one question for:
div = $("#errordlg");
if (div) { // Paranoia
div.remove();
I don't recognize this syntax: $("#errordlg");
This is different than (what I would typically write): $('errordlg');
What am I missing?
--
You received this message because you are subscribed to t
On Feb 20, 2011, at 12:18 PM, kstubs wrote:
T.J., one question for:
div = $("#errordlg");
if (div) { // Paranoia
div.remove();
I don't recognize this syntax: $("#errordlg");
This is different than (what I would typically write): $('errordlg');
Either TJ has been moonlighting i
Well quite directly, is this illegal syntax:
var div = $('#errordlg');
Should it have been:
var divs = $$('#errodlg');
Which I understand, collect all elements who's ID is "errordlg"...
--
You received this message because you are subscribed to the Google Groups
"Prototype & script.aculo.us"
On Sun, Feb 20, 2011 at 20:39, kstubs wrote:
> Well quite directly, is this illegal syntax:
> var div = $('#errordlg');
Not illegal _syntax_, but it will never find anything, since it asks
for an element
that has the id "#errordlt" - inluding the "#" charater in the id! I
don't think that's
even
Got it! Wasn't sure if that was syntactical sugar or not..
--
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 from this group, send email
Hey everybody,
I want to apply a scriptaculous toggle effect to a div, but I do not
want the effect to impact the full div...
I try to be a bit clearer :
I have a div, with a variable height of, let's say, for example,
1000px.
I want the div to be "half-hidden" : when the page is loaded I want t
Hi,
> T.J., one question for:
>
> div = $("#errordlg");
> if (div) { // Paranoia
> div.remove();
>
> I don't recognize this syntax: $("#errordlg");
Walter was right, a bit of jQuery-ism crept in. It should, of course,
have been `div = $('errordlg');`. The amusing thing is that the v
10 matches
Mail list logo