PDA

View Full Version : Newbie Question


telterry
12-21-2004, 01:57 AM
can someone look at this code and tell me where I am going wrong. All I want to do is accept an item code then add it to a URL and retrieve data from a cgi script. Using the code attached I just get as below:-
iinq49.lzx:19: reference to undefined variable 'itemView'
iinq49.lzx:19: undefined object does not have a property 'item_code'
iinq49.lzx:19: reference to undefined property 'item_code'
iinq49.lzx:19: undefined object does not have a property 'getText'
item_code
iinq49.lzx:10: reference to undefined variable 'item_code'
backend timeout for http://192.1680.0.1/cgi-bin/xml49?item=: null http response body

jsundman
12-21-2004, 11:53 AM
I don't know why the backend timeout is happening, but you can get rid of some of the error messages, anyway, by changing the onclick method
from

item_code = itemView.item_code.getText();

to


item_code = parent.parent.itemView.item_code.getText();



By the way, in order to even get this far I had to change your "library" tags to "canvas", invoke the debugger, and set visible="false" to visible="true". So I wonder if you even posted the file you meant to post? The file you posted doesn't work at all.

telterry
12-23-2004, 06:08 AM
Jsundman,
Thanks for your reply, soory I posted the library file and not the whole code. My apologies, I will try your fix over the hols. Merry Christmas to you.