Ask a Question related to Macromedia Dynamic HTML, Design and Development.
-
BeniRose #1
Tag Type Detection
I am building some dynamic menus and I want do place them in different
positions based on what my parent tag is. I'm using object.parentNode to get
the parent tag of something I'm inserting. I know that I can use the typeof
function, but that only returns "object" to me, doesn't it? And I know if
Safari, when I alert() the object it tells me what type of tag it is, but
that's the only browser that does this. Is there an easy way to find out what
type of tag (td, tr, table, ul, li, etc) my parentNode is, or am I stuck
testing to see if specific properties exist on the object? Thanks in advance!
BeniRose Guest
-
ldap DirectoryServices.DirectoryEntry System.NotImplementedException: Handling of this ADSVALUE type is not yet implemented (type = 0xb).
hi, i'm trying to make a query to a ldap server (version v2 or v3 doen't matter) with c#. the query works just fine but the problem is that i... -
Error: Webcontrol must have items of type X. SubLinks is of type Y
Hi, I have made a web control that has two sorts of items. The first is the Links property that has a persistence attribute of InnerProperty, the... -
Problem with character palette and Tracking field: can't type zero after type is modified
System: Illustrator CS, Panther 10.3.3 Try this: Create a few characters of type. Select some letters and change their tracking (Option + Command... -
Cast from type 'Field' to type 'String'
Hi, Getting the above error - further info shown below Line 36: II2 = 0 Line 37: response.write ("var questions" & II & " = new Array();"... -
Cast from type 'DBNull' to type 'String' is not valid error
Trying to add an insert button Sub btnAddRow_Click event for adding a row to the datagrid and dataset back to SQL. Had it working per the... -
Lionstone #2
Re: Tag Type Detection
The tagName property should help you out.
var parentType = object.parentNode.tagName;
if(parentType=='table')
{
//do something
}
etc, etc.
"BeniRose" <webforumsuser@macromedia.com> wrote in message
news:ekhvej$2vi$1@forums.macromedia.com...>I am building some dynamic menus and I want do place them in different
> positions based on what my parent tag is. I'm using object.parentNode to
> get
> the parent tag of something I'm inserting. I know that I can use the
> typeof
> function, but that only returns "object" to me, doesn't it? And I know if
> Safari, when I alert() the object it tells me what type of tag it is, but
> that's the only browser that does this. Is there an easy way to find out
> what
> type of tag (td, tr, table, ul, li, etc) my parentNode is, or am I stuck
> testing to see if specific properties exist on the object? Thanks in
> advance!
>
Lionstone Guest
-
BeniRose #3
Re: Tag Type Detection
That was easy! Man, I feel like a newb, but I guess we all have our newb
moments (I hope!). I kept searching for "html tag type" and "tag type
detection" but all I came up with was a lot of flash detection and html
reference tutorials. Guess I need to work on my keyword skills! Thanks a bunch.
BeniRose Guest
-
Lionstone #4
Re: Tag Type Detection
No problem. :)
"BeniRose" <webforumsuser@macromedia.com> wrote in message
news:ekkc6l$ro6$1@forums.macromedia.com...> That was easy! Man, I feel like a newb, but I guess we all have our newb
> moments (I hope!). I kept searching for "html tag type" and "tag type
> detection" but all I came up with was a lot of flash detection and html
> reference tutorials. Guess I need to work on my keyword skills! Thanks a
> bunch.
>
Lionstone Guest



Reply With Quote

