|
-
Nov 13th, 2010, 06:04 AM
#25
Re: UserControl javascript: get control by id
Nick,
As you will see, I put an extra alert in the code, on the very first line.
This meant that I could see that at the very least, the function was getting called. From there, given that there is another alert directly after the offending line, it narrowed down what was happening. Then, on looking at the line, I thought about what could be causing the problem.
Then I tried this:
I tried this (my jQuery isn't that hot, and I wondered if motil was trying to work magic) and when that didn't return anything, I knew that this was the culprit.
From there, it was a short step to do this:
And when that returned an HtmlElement, I altered the code as above.
I hope that little explanation helps.
Gary
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|