Hi guys,

thx for the help. I wasnt able to answer at the weekend cuz i can only use this mail at my work.

I already solved the problem. It was a very complex JS Popup and for some reason some functions

did not create objects like the onclick method does but i fixed it ^^ my boss is happy and so am i.

thx for all the help

 

best regards

michael

 


Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von Attebery, Bill
Gesendet: Freitag, 6. Oktober 2006 15:59
An: [email protected]
Betreff: Re: [Wtr-general] JavasScript Menu .click not working

 

Not sure why that would happen, the syntax looks identical.

But one thing to note is the way I’ve done this in the past and there’s a couple posts on the archives for this is to create the window object as such:

window=ie.ie.document.parentWindow and then use window.execScript

So as you can see it seems that I have an extra layer here so to speak – ie.ie…  I don’t see that in your statements.

 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Michael Ehrich
Sent: Friday, October 06, 2006 12:15 AM
To: [email protected]
Subject: Re: [Wtr-general] JavasScript Menu .click not working

 

Hi bill,

 

thx for the help. I tried the execScript method but i got weird error.

 

When i checked it with ie.frame("mainFrame").document.parentWindow.execScript("alert('TEST');")

It worked perfect but then i used ie.frame("mainFrame").document.parentWindow.execScript("myfunction('TEST');")

And watir told me

 

Z:/Watir/scripts/frame.rb:44:in `method_missing': execScript (WIN32OLERuntimeError)

 

Maybe you have an idea ? im done after checking the whole Watir Archieve for similar problems and other local

tests. My boss is already looking for a similar software which is able to handle this :/

 

best regards

michael ehrich

 


Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von Attebery, Bill
Gesendet: Donnerstag, 5. Oktober 2006 18:54
An: [email protected]
Betreff: Re: [Wtr-general] JavasScript Menu .click not working

 

Sounds like you may be encountering the same thing I found when trying to work with the google ajax tree – seems that the click event is actually being handled at the window level and not the browser level (or something along those lines) – so using onClick or .click through water isn’t the same.

 

 

 

http://www.mail-archive.com/[email protected]/msg04974.html

 

 

Hi,

 

im not sure if my posts actually reach the mailinglist cuz i did not seem to get any answers so far.

I’m still messing with the problem described in that post http://www.mail-archive.com/wtr-general%40rubyforge.org/msg05416.html

maybe someone can help me or maybe someone can tell me where i can report that bug. Because for me it seems like

this is a bug. No error is reported but i still only get a little blink and no click which is very weird cuz i tried a simple

version of that menu myself and it worked pretty well. So ist maybe a frame bug or i dont know. Doesnt look like ist

right.

 

Best regards

Michael Ehrich

_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to