Jump to content

Problem with Textarea


 Share

Recommended Posts

Hi,

my script should open a page and fill in some text in a textarea.

the page opens but i get this error all the time

__FFSend: try{window.content.top.document.getElementsByName('comment6105272054')[0].value='testtesttest'}catch(e){'_FFCmd_Err';};
__FFRecv: _FFCmd_Err
_FFSetValue ==> No match: $sElement: .getElementsByName('comment6105272054')[0]
__FFSend: try{window.content.top.document.forms[0].elements.length;}catch(e){'_FFCmd_Err';};
__FFRecv: _FFCmd_Err
_FFFormSubmit ==> No match: No Elements found in form: forms[0]

here my source

#include <FF.au3>

   If ProcessExists("firefox.exe") = 0 Then
      run("C:Program FilesMozilla Firefoxfirefox.exe")
   EndIf
   _FFConnect()
   _FFTabAdd("http://#############",true,true)
   _FFAction("max")
   _FFLoadWait()
   _FFSetValue("testtesttest","comment6105272054","name")
   _FFFormsubmit()

here the source snippet of the textarea

<div>


<label class="required" for="comment6105272054">Eintrag: *</label>

<br>

<textarea id="comment6105272054" cols="80" style="width: 99%" rows="6" name="comment"><textarea>
</div>

and the url of the page, just in case

http://############/

i hope someone can help me, because after 2 hours of searching through the web, i have no idea anymore

greets airrs

Edited by Melba23
url removed
Link to comment
Share on other sites

  • Moderators

airrs,

You appear to be trying to fill the "Comment" field on a web page. Why are you trying to automate this? :huh:

M23

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see my UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Link to comment
Share on other sites

this is part of a bigger script (you already helped me on this one with the cpu issues)

the basic idea of my script is to check if i have pressed CTRL+C,

then a pop up window shows up with a selection of different pages.

After the selection, the particular page opens in a new firefox tab, fill in the string i've copied before

and click on search.

the case with the commet field: usually i forget very much things i look up on the internet (videos, articles, websites...)

and i just created this simple page with a webpage builder to have a place where i can store such things, to help myself not to forget so much ^_^

Link to comment
Share on other sites

  • Moderators

airrs,

I would add some security to that page if I were you - at the moment anyone can post there. :o

I have removed the url before you get even more spam! Please buy a notebook instead. ;)

M23

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see my UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Link to comment
Share on other sites

i know. it's just for testuse.

i add a password to access this commentbox later.

and i have a notebook. but i cant copy paste in that :D

so how can i solve my problem?

Edited by airrs
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...