WEB event

WEB event

Postby Natter » Fri Jun 24, 2011 7:42 am

Hi, all !

I need to make an event handler for elements WEB of page(IE). Has written so:

el:=oDk:GetElementsByTagName("input")
for st=1 to el:Length
itm:=el:item(st-1)
if itm:Type=="text"
fl:=iif(empty(itm:id), itm:name, itm:id)

itm:onFocus:='My_Prc_1("'+fl+'")'
itm:onClick:='My_Prc_2("'+fl+'")'
endif
next

procedure My_Prc_1(id)
? id
return

procedure My_Prc_2(id)
? id
return

But it doesn't work. In what an error?
Natter
 
Posts: 1215
Joined: Mon May 14, 2007 9:49 am

Re: WEB event

Postby lailton.webmaster » Wed Jun 29, 2011 3:21 am

It's wrong...

Never will work, maybe you can test other way but it no.

:)
lailton.webmaster
 
Posts: 603
Joined: Sun May 04, 2008 8:44 pm


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 84 guests