Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
beforeload with UL
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  5 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Alon Raskin  
View profile  
 More options Dec 23 2010, 12:14 pm
From: Alon Raskin <aras...@go3i.com>
Date: Thu, 23 Dec 2010 12:14:10 -0500
Local: Thurs, Dec 23 2010 12:14 pm
Subject: beforeload with UL

Hi Everyone,

Not sure if the problem is in front of the keyboard or behind it but I would appreciate your insight.

I have a UL element in my app which has a beforeload attribute set. This calls my JS function to be called. Problem is that this event is only raised if I navigate to my UL. If I simply load the page with the UL inside the Body tags the JS doesn't get called. Does anyone if this is a bug? And if so, has a fix been created for this.

I guess the easy answer is to simply attach my JS to the onload of the BODY but before I did that I wanted to see if there is a solution already out there.

Alon Raskin
e: aras...@go3i.com<mailto:aras...@3i-consulting.com>


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
RobG  
View profile  
 More options Dec 23 2010, 10:23 pm
From: RobG <rg...@iinet.net.au>
Date: Thu, 23 Dec 2010 19:23:30 -0800 (PST)
Local: Thurs, Dec 23 2010 10:23 pm
Subject: Re: beforeload with UL

On Dec 24, 3:14 am, Alon Raskin <aras...@go3i.com> wrote:

> Hi Everyone,

> Not sure if the problem is in front of the keyboard or behind it but I would appreciate your insight.

> I have a UL element in my app which has a beforeload attribute set. This calls my JS function to be called. Problem is that this event is only raised if I navigate to my UL. If I simply load the page with the UL inside the Body tags the JS doesn't get called. Does anyone if this is a bug? And if so, has a fix been created for this.

It is not a bug as there is no "beforeload" attribute specified in
HTML 4.01. Perhaps you are using a library that uses custom (non-
standard) attribute? Isn't any script that executes before the load
event "before load"?

You could use the load event, but that happens after load and the UL
element isn't specified as supporting it:

  <URL: http://www.w3.org/TR/html401/interact/scripts.html#adef-onload

> I guess the easy answer is to simply attach my JS to the onload of the BODY but before I did that I wanted to see if there is a solution already out there.

The body element is the appropriate place for attaching onload
listeners. Alternatively, you can place a script element immediately
after the UL closing tag - that doestn't guarantee all the content of
the UL has loaded, but should generally be OK.

But don't you want *before* load?

--
Rob


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Chrilith  
View profile  
 More options Dec 24 2010, 2:41 am
From: Chrilith <chril...@gmail.com>
Date: Thu, 23 Dec 2010 23:41:18 -0800 (PST)
Local: Fri, Dec 24 2010 2:41 am
Subject: Re: beforeload with UL

> I have a UL element in my app which has a beforeload attribute set. This calls my JS function to be called. Problem is that this event is only raised if I navigate to my UL. If I simply load the page with the UL inside the Body tags the JS doesn't get called. Does anyone if this is a bug? And if so, has a fix been created for this.

This seem to be the expected behavior with this iUI event.
You should indeed use "load" or execute your load script at the end of
your page in order to do something with your <ul> before navigating to
it.

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Remi Grumeau   
View profile  
 More options Dec 24 2010, 4:40 am
From: Remi Grumeau  <remi.grum...@gmail.com>
Date: Fri, 24 Dec 2010 10:40:13 +0100
Local: Fri, Dec 24 2010 4:40 am
Subject: Re: beforeload with UL
beforeload is an attribute i have done for Alon. It's a custom & spécific code.

It's ok we are working on it.

R.

On 24 déc. 2010, at 08:41, Chrilith <chril...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Alon Raskin  
View profile  
 More options Dec 24 2010, 7:06 am
From: Alon Raskin <aras...@go3i.com>
Date: Fri, 24 Dec 2010 07:06:37 -0500
Local: Fri, Dec 24 2010 7:06 am
Subject: RE: beforeload with UL
Thanks for clearing that up Remi. Appologies to the group. I was not aware that it was custom.

Regards,

Alon Raskin
e: aras...@go3i.com


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »