By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,480 Members | 1,808 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,480 IT Pros & Developers. It's quick & easy.

AJAX library still using previous namespace

P: n/a

Hello,

The following JavaScript code is created for a custom AJAX Web Control:

[
Sys.Application.add_init(function() {
$create(CustomScripts.AjaxListBox, null, null, null, $get("AvailableInstructionsListBox"));
});
]

I initially had the namespace of CustomScripts, but changed the namespace to something else. (At least I thought so.)

Is 'CustomScripts' a JavaScript notation?

If not, how do I update my JavaScript Control code?

In short, my double-click event handler is not firing.

Thanks,
William Johnston

Jul 15 '08 #1
Share this Question
Share on Google+
3 Replies


P: n/a
William Johnston meinte:
Hello,

The following JavaScript code is created for a custom AJAX Web Control:

[
Sys.Application.add_init(function() {
$create(CustomScripts.AjaxListBox, null, null, null, $get("AvailableInstructionsListBox"));
});
]
What are the [] good for?
I initially had the namespace of CustomScripts, but changed the namespace to something else. (At least I thought so.)
Did you or did you not? And to what? I suppose it's still "CustomScripts".
Is 'CustomScripts' a JavaScript notation?
No. It's an object containing another object (or property) "AjaxListBox".
If not, how do I update my JavaScript Control code?
Update to what?
In short, my double-click event handler is not firing.
I can't see a "double-click event handler" in your code.

Looks like your are using $evil_library_like_jquery_or_prototype. There
are groups dealing with those libraries in particular - perhaps you
should try there.
Thanks,
You're welcome.

Gregor
--
http://photo.gregorkofler.at ::: Landschafts- und Reisefotografie
http://web.gregorkofler.com ::: meine JS-Spielwiese
http://www.image2d.com ::: Bildagentur für den alpinen Raum
Jul 15 '08 #2

P: n/a
On 15 srp, 19:26, Gregor Kofler <use...@gregorkofler.atwrote:
William Johnston meinte:
Hello,
The following JavaScript code is created for a custom AJAX Web Control:
[
Sys.Application.add_init(function() {
* * $create(CustomScripts.AjaxListBox, null, null, null, $get("AvailableInstructionsListBox"));
});
]

What are the [] good for?
I initially had the namespace of CustomScripts, but changed the namespace to something else. *(At least I thought so.)

Did you or did you not? And to what? I suppose it's still "CustomScripts"..
Is 'CustomScripts' a JavaScript notation?

No. It's an object containing another object (or property) "AjaxListBox".
If not, how do I update my JavaScript Control code?

Update to what?
In short, my double-click event handler is not firing.

I can't see a "double-click event handler" in your code.

Looks like your are using $evil_library_like_jquery_or_prototype. There
are groups dealing with those libraries in particular - perhaps you
should try there.
Thanks,

You're welcome.

Gregor

--http://photo.gregorkofler.at::: Landschafts- und Reisefotografiehttp://web.gregorkofler.com*::: meine JS-Spielwiesehttp://www.image2d.com* ** ::: Bildagentur für den alpinen Raum
Why "evil"? :)
Jul 16 '08 #3

P: n/a
Ivan S meinte:
On 15 srp, 19:26, Gregor Kofler <use...@gregorkofler.atwrote:
>Looks like your are using $evil_library_like_jquery_or_prototype.
Why "evil"? :)
Jehova!

Just use your favourite search engine on this NG with "prototype jquery
good bad" or something like that. You'll find plenty of hits.

Gregor
--
http://photo.gregorkofler.at ::: Landschafts- und Reisefotografie
http://web.gregorkofler.com ::: meine JS-Spielwiese
http://www.image2d.com ::: Bildagentur für den alpinen Raum
Jul 16 '08 #4

This discussion thread is closed

Replies have been disabled for this discussion.