Jump to content

Recommended Posts

Posted

Hi team,

Looking at the code that I have...

$ocalldocs = _IEGetObjById($newRl, "ct100_Some_text")
$scalldocs = _IEFormElementGetValue($ocalldocs)
ControlSetText("My Tool", "", "[CLASS:Edit; INSTANCE:5]", $scalldocs)

the div ID "ct100_Some_text" contains paragraphs that I want to get. However as I transfer the data to [CLASS:Edit; INSTANCE:5], it seems to disregard the many @crlfs of the said paragraph.

Is there a way to get this with the proper carriage returns and line feeds?

or the option that I have left would be _IEHeadInsertEventScript?

Any ideas  would help. Thank you so much.

~XN~

;) ~XN~ ;)

Posted

The above mentioned code is actually the code that im working with. 3 of those to be exact.

Im not particularly familiar with the "raw" option. does it have something to do with _ieformelementgetvalue?

copying and pasting was already tested, just now. it is moving the paragraph together with crlfs

;) ~XN~ ;)

Posted

Ill try to work it with the raw flag.

$scalldocs returns no crlf. this is because the information its getting is from and ID inside an ie div.

ill keep this thread posted for updates. if none works, ill have no choice but to use _IEHeadInsertEventScript and insert a decent amount of javascript to get it done.

Kudos Danp2

;) ~XN~ ;)

Posted

I feel like you are sending us on a wild goose chase. As posted, it would appear that the initial issue was with ControlSetText. You mentioned _IEHeadInsertEventScript in the OP, but it wasn't clear to me why this was even brought up. Now it sounds like the issue is that $scalldocs contains the wrong information. 

So, it sounds like the issue is really with this line --

$scalldocs = _IEFormElementGetValue($ocalldocs)

which makes sense because the div is probably a wrapper for the actual elements holding the desired text. 

Have you tried grabbing the innertext from the div to see if that gives you the desired contents?

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
  • Recently Browsing   0 members

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