Go Back   CodingForums.com > :: Client side development > JavaScript programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 08-01-2006, 12:38 AM   PM User | #1
dtra
New to the CF scene

 
Join Date: Aug 2006
Location: melbourne, aus
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
dtra is an unknown quantity at this point
key listener disappears

hi all

i've been playing with the yahoo dialog widget, and trying to get it to work with some code similar to google suggest
(was here, http://www.nsftools.com/tips/ZipLookupTest.htm, not sure now)

originally i had this code working without the yahoo dialog, so it was all on the page, and visible

but i decided it would be cool to have it working as a popup

http://dtracorp.com/tmp/qt_yui_image_url.php

atm, it is in test mode, so i have a couple of alerts popping up for key events
once, when the page loads, you should see the alert saying what the onkeydown handler is for the text field

then when you select "enter new/other category", a popup should show up saying the same stuff

in firefox, this works, but in ie and opera, it does not
the first popup is fine, the second says null

the relevant js files i think, are http://dtracorp.com/js/XmlHttpLookup.js
and
http://dtracorp.com/js/image_category_handle.js

the code to look for is in the InitQueryCode function of XmlHttpLookup.js, there is a line that sets the onkeydown handler as keyPressHandler, which is the key listener later in that file

can anyone help me out, why does the keyhandler disappear?

don't bother entering anything into the popups, the ajax only works if you are logged in

thanks
dave
dtra is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

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

Forum Jump


All times are GMT +1. The time now is 03:06 AM.


Advertisement
Log in to turn off these ads.