Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Re: BUG? OR NOT A BUG?

Reply
Thread Tools

Re: BUG? OR NOT A BUG?

 
 
John
Guest
Posts: n/a
 
      09-20-2005
Bruce,

Firstly, thanks a heck of a lot for your reply.

I've since discovered that the issue I previously described only happens
when the rendering is a label object (i.e. every time a label is rendered as
a column, at 2 to the ordinal position).

That aside, I am new to Javascript. Could you please provide a link of an
example of how to look for td's undare the current tr that my Javascript is
in?

Regards
John.


"Bruce Barker" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> if you use the dom, you can not assume the node ordering for the table (0
> = cell 0, 1 = cell 1). you should scan the table for tr, then look under
> the tr children for td's. there is a table api that may be better suited
> to what you are doing.
>
> -- bruce (sqlwork.com)
>
>
>
>
>
> "John" <(E-Mail Removed)> wrote in message
> news:%(E-Mail Removed)...
>> Hi all,
>>
>> This is a Javascript issue for me but it is (I feel, think, expect)
>> brought on as a result of ASP.NET and in particular VS2005.
>>
>> My app uses a GridView and I bind some labels and textboxes to the grid
>> and render to user.
>>
>> The first column which is not bindable is simply an image. The users
>> clicks this image and a popup appears. The user selects something on that
>> popup (it's a lookup page) and then Javascript within that popup
>> populates an object and returns it to the parent page --> so far fine...
>>
>> The receiving (i.e. parent) page receives the object and then attempts to
>> populate column values ON THE SAME ROW --> problem!
>>
>> The very next column (i.e. immediately to the right of the image) is
>> populated. Columns after that are not. I'm using the following notation:
>> oSourceParent.children(1).firstChild.innerText = o.Code;
>>
>> The above works fine but the following doesn't:
>>
>> oSourceParent.children(2).firstChild.innerText = o.Code;
>>
>> It seems to me that every subsequent cell being generated by ASP.NET 2.0
>> is creating a double end cell (i.e. </TD></TD>).
>>
>> Now when I change the Javascript to:
>>
>> oSourceParent.children(3).firstChild.innerText =
>> ode; -------------> It sets the value correctly
>>
>> Any takes on this? If it is a bug, does that mean MS will fix down the
>> line and my code will break at that point?
>>
>> Regards
>> John.
>>

>
>



 
Reply With Quote
 
 
 
 
Bruce Barker
Guest
Posts: n/a
 
      09-20-2005
http://www.mozilla.org/docs/dom/technote/tn-dom-table/


-- bruce (sqlwork.com)


"John" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Bruce,
>
> Firstly, thanks a heck of a lot for your reply.
>
> I've since discovered that the issue I previously described only happens
> when the rendering is a label object (i.e. every time a label is rendered
> as a column, at 2 to the ordinal position).
>
> That aside, I am new to Javascript. Could you please provide a link of an
> example of how to look for td's undare the current tr that my Javascript
> is in?
>
> Regards
> John.
>
>
> "Bruce Barker" <(E-Mail Removed)> wrote in message
> news:%(E-Mail Removed)...
>> if you use the dom, you can not assume the node ordering for the table (0
>> = cell 0, 1 = cell 1). you should scan the table for tr, then look under
>> the tr children for td's. there is a table api that may be better suited
>> to what you are doing.
>>
>> -- bruce (sqlwork.com)
>>
>>
>>
>>
>>
>> "John" <(E-Mail Removed)> wrote in message
>> news:%(E-Mail Removed)...
>>> Hi all,
>>>
>>> This is a Javascript issue for me but it is (I feel, think, expect)
>>> brought on as a result of ASP.NET and in particular VS2005.
>>>
>>> My app uses a GridView and I bind some labels and textboxes to the grid
>>> and render to user.
>>>
>>> The first column which is not bindable is simply an image. The users
>>> clicks this image and a popup appears. The user selects something on
>>> that popup (it's a lookup page) and then Javascript within that popup
>>> populates an object and returns it to the parent page --> so far fine...
>>>
>>> The receiving (i.e. parent) page receives the object and then attempts
>>> to populate column values ON THE SAME ROW --> problem!
>>>
>>> The very next column (i.e. immediately to the right of the image) is
>>> populated. Columns after that are not. I'm using the following notation:
>>> oSourceParent.children(1).firstChild.innerText = o.Code;
>>>
>>> The above works fine but the following doesn't:
>>>
>>> oSourceParent.children(2).firstChild.innerText = o.Code;
>>>
>>> It seems to me that every subsequent cell being generated by ASP.NET 2.0
>>> is creating a double end cell (i.e. </TD></TD>).
>>>
>>> Now when I change the Javascript to:
>>>
>>> oSourceParent.children(3).firstChild.innerText = ode; ------------->
>>> It sets the value correctly
>>>
>>> Any takes on this? If it is a bug, does that mean MS will fix down the
>>> line and my code will break at that point?
>>>
>>> Regards
>>> John.
>>>

>>
>>

>
>



 
Reply With Quote
 
 
 
 
John
Guest
Posts: n/a
 
      09-21-2005
Will check out - thanks a lot...

"Bruce Barker" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> http://www.mozilla.org/docs/dom/technote/tn-dom-table/
>
>
> -- bruce (sqlwork.com)
>
>
> "John" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
>> Bruce,
>>
>> Firstly, thanks a heck of a lot for your reply.
>>
>> I've since discovered that the issue I previously described only happens
>> when the rendering is a label object (i.e. every time a label is rendered
>> as a column, at 2 to the ordinal position).
>>
>> That aside, I am new to Javascript. Could you please provide a link of an
>> example of how to look for td's undare the current tr that my Javascript
>> is in?
>>
>> Regards
>> John.
>>
>>
>> "Bruce Barker" <(E-Mail Removed)> wrote in message
>> news:%(E-Mail Removed)...
>>> if you use the dom, you can not assume the node ordering for the table
>>> (0 = cell 0, 1 = cell 1). you should scan the table for tr, then look
>>> under the tr children for td's. there is a table api that may be better
>>> suited to what you are doing.
>>>
>>> -- bruce (sqlwork.com)
>>>
>>>
>>>
>>>
>>>
>>> "John" <(E-Mail Removed)> wrote in message
>>> news:%(E-Mail Removed)...
>>>> Hi all,
>>>>
>>>> This is a Javascript issue for me but it is (I feel, think, expect)
>>>> brought on as a result of ASP.NET and in particular VS2005.
>>>>
>>>> My app uses a GridView and I bind some labels and textboxes to the grid
>>>> and render to user.
>>>>
>>>> The first column which is not bindable is simply an image. The users
>>>> clicks this image and a popup appears. The user selects something on
>>>> that popup (it's a lookup page) and then Javascript within that popup
>>>> populates an object and returns it to the parent page --> so far
>>>> fine...
>>>>
>>>> The receiving (i.e. parent) page receives the object and then attempts
>>>> to populate column values ON THE SAME ROW --> problem!
>>>>
>>>> The very next column (i.e. immediately to the right of the image) is
>>>> populated. Columns after that are not. I'm using the following
>>>> notation:
>>>> oSourceParent.children(1).firstChild.innerText = o.Code;
>>>>
>>>> The above works fine but the following doesn't:
>>>>
>>>> oSourceParent.children(2).firstChild.innerText = o.Code;
>>>>
>>>> It seems to me that every subsequent cell being generated by ASP.NET
>>>> 2.0 is creating a double end cell (i.e. </TD></TD>).
>>>>
>>>> Now when I change the Javascript to:
>>>>
>>>> oSourceParent.children(3).firstChild.innerText = ode; ------------->
>>>> It sets the value correctly
>>>>
>>>> Any takes on this? If it is a bug, does that mean MS will fix down the
>>>> line and my code will break at that point?
>>>>
>>>> Regards
>>>> John.
>>>>
>>>
>>>

>>
>>

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
To be not, or not to be not? Ruby Freak Ruby 2 09-23-2008 08:04 AM
Why not 'foo = not f' instead of 'foo = (not f or 1) and 0'? Kristian Domke Python 11 01-23-2008 07:27 PM
'' is not a valid name. Make sure that it does not include invalid characters or punctuation and that it is not too long. rote ASP .Net 2 01-23-2008 03:07 PM
Cisco 3640 3620 3600 not detecting, not enabling, not working: NM-2FE2W Taki Soho Cisco 0 09-22-2004 07:28 AM
maintaining control with cookies (not strictly an ASP or even server side question. But not not either) Stephanie Stowe ASP General 2 04-07-2004 04:23 PM



Advertisments