I had to do this to input a date that is normally selected by a
javascript calendar pop up.

frame.text_field(:name, fieldName).document.readonly = ""
frame.text_field(:name, fieldName).set(date)
frame.text_field(:name, fieldName).document.readonly = "read only"

this seems to work for me for now, but if there is another way to do
it id be happy to find out.

Ray

On Jul 7, 11:03 pm, ashokmpm password <bhavesh1_sha...@yahoo.com>
wrote:
>     Hi,
>
> Any bodyknowhow tomaketextboxwritable.
>
> Actually, i have atextboxwhich is read only.  However i need to insert values 
> into it.
>
> I got somewhere like, we candotextboxwritableon the fly --
>
> the code is --
>
>    $ie.Document.parentWindow.execScript("document.getElementById('CopyfSystem').readOnly
>  = false;")
>    $ie.text_field(:name, "CopyfSystem").set(fsname)
>
> However this is not working?
>
> So what i missed or what else need to be done.
>
> If anybody knows, it is an great help
>
> thanks
> Bhavesh
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~----------~----~----~----~------~----~------~--~---

Reply via email to