Retrieving html text not html document from RichEditableText control
Hi,
I have some html text
Ex- This is <b> test </b>
which i am setting to RichEditableText using TextConvert.importToFlow(),I want to format this text just bold and italic and then get back same html text back with
only formatting i have done.
Suppose i have formatted this text in RichEditableText like;
Ex- This <i>is</i> <b> test</b>
But when i am trying to get back this from RichEditableText using;
TextConverter.export(richedittxt.textFlow,TextConverter.TEXT_FIELD_HTML_FORMAT,ConversionT ype.STRING_TYPE);
It gives a complete html document with <html><body><font> tags, which i dont want. It should not includes all these extra tags.
Can any one suggest, whether it is feasible or not ? Please reply if any one has solution
Thanks..
Leao,
> I didn't write the original actionscript so I don't
> really know how to implement what you suggested.
Aha! Well, that can be a bit like painting yourself into a
corner. ;)
> Could you explain a little more?
Spend a bit of time with the String class. Before you even
do that, you
may want to familiarize yourself with the concept of objects
in general.
See this introductory article ...
http://www.quip.net/blog/2006/flash/actionscript-20/ojects-building-blocks
... then spend a bit of time in a completely new FLA
experimenting with the
String class. Many of its methods are specifically geared
toward changing
the value of the text content, including stripping away
certain characters.
e.g., you can use String.indexOf() to return the position of
a particular
character (or characters) in a string of text. You may then
use that
position in cahoots with String.substr() to return a new
string that as been
"pruned" of undesired content.
David Stiller
Adobe Community Expert
Dev blog,
http://www.quip.net/blog/
"Luck is the residue of good design."
Similar Messages
-
Html snippet not working; created from Taco html edit Component Library
Ok, I've searched for days on the discussion board for the answer to this one..... hopefully someone can give me a couple of pointers....
I have a component created from Taco html edit Component Library that I cannot get to work as an inserted snippet into iWeb 3.0.2.
Why can't I get this to work? I've seen first hand that they work on someone else's website that she constructs in html directly, not using iWeb. Any help greatly appreciated.
Taco created three files. They are:
TSWAccordion.css
TSWDomUtils.js
TSWAccordion.js
Here is the code:
<html>
<head>
<title></title>
<script type="text/javascript" src="Scripts/TSWAccordion.js"></script>
<script type="text/javascript" src="Scripts/TSWDomUtils.js"></script>
<link rel="stylesheet" type="text/css" href="Scripts/TSWAccordion.css" />
<!-- BEGIN COMPONENT Accordion - Taco HTML Edit -->
<style type="text/css">
#myAccordion.tswAccordion
width: 200px;
height: 400px;
background-color: #f0f0f0;
#myAccordion .tswAccordionActiveSection, #myAccordion .tswAccordionInactiveSection
background-color: #f0f0f0;
width: 100%;
height: 400px;
#myAccordion .tswAccordionHeader
text-align: center;
padding: 2px;
font-family: Verdana;
font-size: 16.0px;
#myAccordion .tswAccordionActiveSection .tswAccordionHeader
background-color: #7086aa;
color: #ffffff;
border: 1px solid #cccccc;
#myAccordion .tswAccordionInactiveSection .tswAccordionHeader
background-color: #f0f0f0;
color: #000000;
border: 1px solid #cccccc;
#myAccordion .tswAccordionHeader
#myAccordion .tswAccordionBody
padding: 5px;
</style>
<!-- END COMPONENT Accordion - Taco HTML Edit -->
</head>
<body>
<!-- BEGIN COMPONENT Accordion - Taco HTML Edit -->
Title 1
<!--Content for section 1-->
Title 2
<!--Content for section 2-->
Title 3
<!--Content for section 3-->
<script type="text/javascript">
var accordion = tswAccordionGetForId('myAccordion');
</script>
<!-- END COMPONENT Accordion - Taco HTML Edit -->
</body>
</html>You need to upload these three files in a folder to the root folder on your server:
TSWAccordion.css
TSWDomUtils.js
TSWAccordion.js
The folder cannot be named "Scripts" as shown in your code as you already have one of that name.
Say it is named "Accordion". You then need to give the absolute URL to these files rather than the relative one shown in the code....
http://www.yourdomainname.com/Accordion/TSWAccordion.css
http://www.yourdomainname.com/Accordion/TSWDomUtils.js
http://www.yourdomainname.com/Accordion/TSWAccordion.js -
CSS Issues , HTML text not rendering properly
I've loaded and parsed some xhtml in my DataManager class that is validated against the W3C strict dtd.I'm pushing certian bits of this into public arrays in my DataManager. My ContentManager, calls to the DataManager, and is returned a corresponding data set , instantiates a new GenericSection , and passes in the array as an argument in the constructor.
var targetData : Array = new Array();
targetData = DataManager.getInstance().returnAboutData();
var targ : String = targetData[0].toString();
var targFormat : String = targ.slice( ( targ.indexOf( '">' , 0 ) + 2 ) , ( targ.lastIndexOf( '/p>' , 0 ) - 3 ) );
var newSection : GenericContent = new GenericContent( targFormat );
newSection.publicId = ind;
contentContainer.addChild( newSection );
The output of formatTarg is :
The purpose of this site is to serve as an online portfolio and work reference. I am a 28 year old WEB/INTERACTIVE developer who has worked in the Los Angeles and Greater Orlando areas since 2004. I specialize in
<span class="bulletText">ADOBE FLASH</span>
<span class="bulletText">FLASH ANIMATION</span>
<span class="bulletText">ACTIONSCRIPT 2.0/3.0</span>
, and
<span class="bulletText">ACTIONSCRIPT PROJECTS IN FLEX</span>
. The client links listed above will provide several examples of media that I developed for the web. Please select the ACTIVE TEXT to the right of the PROJECT LINK heading in each section , if available , to view the site.
My GenericContent class i linked to a movieclip in the library , with one dynamic textfield, with the following settings :
instanceName : sectionText;
anti-aliasing : for readability;
embed : uppercase , lowercase , numerals , and puncutation
behavior : muliline
render as html : selected( true );
sectionText is declared as a public var in the GenericContent instance.
I have tried applying styles as such :
private var css : StyleSheet;
private var cssDeclarations : String;
css = new StyleSheet();
var bulletText : Object = new Object();
bulletText .fontSize = 20;
bulletText .fontWeight = "bold";
bulletText .color = "#336699";
bulletText .leading = 12;
css.setStyle( ".bulletText ", bulletText );
sectionText.wordWrap = true;
sectionText.embedFonts = true;
sectionText.styleSheet = css;
sectionText.htmlText = contentText;
and
css = new StyleSheet();
cssDeclarations = ".bulletText{font-size:12px;color:#FFFF00"};
css.parseCSS(cssDeclarations);
sectionText.wordWrap = true;
sectionText.embedFonts = true;
sectionText.styleSheet = css;
sectionText.htmlText = contentText;
The html is not being rendered properly , the tags themselves do not show up , but no style is being applied. Any ideas , or perhaps a better approach ? thanks !Upon further investigation i figured out what was wrong.
This property :
bulletText .fontWeight = "bold";
was causing my text to not render because bold character weren't used within the symbol associated with the class. By removing that and cleaning up the code a bit ,
var span : Object = new Object();
span.fontSize = 12;
span.color = "#336699";
css = new StyleSheet();
css.setStyle( ".bulletText", span );
sectionText.styleSheet = css;
sectionText.htmlText = contentText;
it rendered semi correctly , except with erronious line breaks , the solution for that was to , remove any instances of "/n" from the contentText string before setting the sectionText , done like this :
var pattern : RegExp = /\n/g;
contentText = contentText.replace( pattern , "" );
now it looks great ! -
Need to Remove html text in Saved PDF from OBIEE Dashboard
Hi,
It's OBIEE 10g related issue...
Customer wants a Dashboard as PDF, Dashboard has a footer which has a HTML link. While saving this Dashboard into PDF file, it has the HTML text in footer place rather than HTML link.
Can you please help me on this issue that how to resolve this.
Thanks in advance...Hi,
This is a known bug in OBIEE. Refer to :
BUG:7369585 - SUPPORT OF HTML TAGS IN PRINT TO PDF (NARRATIVE VIEW, DASHBOARD TEXT OBJECT)
BUG:7476622 - HTML TO PDF NARRATIVE AND OTHER FORMATTING DIFFERS
BUG:8787191 - NARRATIVE DOES NOT DISPLAY CORRECT FONT SIZE AND CENTER IN PDF
BUG:9372634 - HTML TAGS SHOWN WHEN PRINT/EXPORT TO PDF
NOTE:749246.1 - OBIEE 10g: When a Report is Downloaded to PDF Format it Shows the Embedded HTML Option Tag Values in the Report.
BUG:12826562 - HTML TAGS AND CODE USED IN COLUMN FORMULA ARE VISIBLE IN REPORT PDF
BUG:5747757 - NARRATIVE VIEW IN PDF DOES NOT KEEP FORMAT
The workaround is to print the report to Excel or HTML.
Thanks,
-Amith. -
HTML text not showing properly in CR 11
I am trying to display the html text in the crystal report but the first screen shot displays something ugly text interpretation:
But when i change the text interpretation to HTML then instead of showing nice html tags like ul, li AND table tags it is not recognizing the html tags at all
is there any way to display the html nicely???????Not all HTML tags are supported by CR.
Per KB 1657131, the supported HTML tags in CR2008 and later are:
html
body
div (causes a paragraph break)
tr (causes only a paragraph break; does not preserve column structure of a table)
span
font
p (causes a paragraph break)
br (causes a paragraph break)
h1 (causes a paragraph break, makes the font bold & twice default size)
h2 (causes a paragraph break, makes the font bold & 1.5 times default size)
h3 (causes a paragraph break, makes the font bold & 9/8 default size)
h4 (causes a paragraph break, makes the font bold)
h5 (causes a paragraph break, makes the font bold & 5/6 default size)
h6 (causes a paragraph break, makes the font bold & 5/8 default size)
center
big (increases font size by 2 points)
small (decreases font size by 2 points if it's 8 points or larger)
b
i
s
strike
u
strong
ol (ordered list)
ul (unordered list)
li (list item)
-Abhilash -
Search for Text in a Document from Finder Spotlight
Is there any way to find a specific word or text string in a document from Finder without having to save a new search eac time? I perform many different searches and do not want to have to save a new search each time.
You never have to save ANY search ever if you don't want to. So I'm afraid I'm not understanding what you mean. Also, if you have a saved search and you bring it up to use it, you can change it by going to the Action item (the little gear) in the toolbar, click to see the options, and then select "Show Search Criteria"--I have a specialized saved search that includes "Name matches xyz" as one of the criteria, when I want to find something using it I click in the sidebar, go to Action, have it show the search criteria, and then replace "xyz" with whatever I really want to seach for. You may find my article on Spotlight useful:
http://www.pinkmutant.com/articles/Leopard/leospot.html
There's a link near the end of the section to more examples.
Francine
Francine
Schwieder -
Word Viewer will not open documents from Sharepoint 2013 in IE11
I've run into an issue while trying to open documents from SharePoint 2013 after upgrading to IE11. My organization uses Word Viewer with the compatibility pack and all other Word documents (local files, intranet hosted) will open with no problems. When
trying to open a Word document from SharePoint the Word Viewer will open, but the file does not. We have verified that all Windows Updates are installed. We have tried opening SharePoint in Compatibility View and Enterprise Mode. We have re-downloaded the
latest version of Word Viewer and reinstalled it along with the compatibility pack. If we open the SharePoint site in Explorer view and then open a Word document it will open in Word Viewer with no problem. Excel and PowerPoint documents open from SharePoint
with no problem. This is only affecting Word documents with Word Viewer. When using the full version of Word the documents open fine. Within SharePoint we have tried activating the site collection feature "Open Document In Client Applications by Default"
but it made no difference. We're completely at a loss how to make this work as there doesn't seem to be much information specifically pertaining to issues with Word Viewer.Hi Victoria.
1. The PCs do not have Microsoft Office installed, nor are we using the Office Web Apps. "Word Viewer" means the Microsoft Word Viewer application available here (http://www.microsoft.com/en-us/download/details.aspx?id=4) that is available
free for read-only viewing of Word documents.
2. There are no errors when I open Word docs in Word Viewer. The Word Viewer application launches after clicking a Word document link in Sharepoint, but there is no file open in it. When that happens the IE11 Sharepoint window on the taskbar is flashing
yellow, but when I click back to it there are no messages or alerts to click on.
3. This issue does occur with all Word documents (.doc, .docx) in SharePoint. However, it does not occur when opening Word documents in the Word Viewer when they are local files or through IE11 from a non-SharePoint website like our local intranet.
Those files will open with no problem in Word Viewer.
4. I will try to get a screenshot, but we are working on creating images for deployment and I don't currently have a machine configured the same way. I'll work on reconfiguring one and post a screenshot.
Thank you for your help! -
ADF/Struts Generated tag code variations? Struts html:text vs Html input
Hi,
JDev 10.1.2.1
ADF/Struts
I noticed that the JDev IDE generates different code for a same component/binding combination.
Example:Data Control of type Input form with same VO selection.
Generated code for 1 field:
case 1)
JSP code:
<tr>
<td>
<c:out value="${bindings['TitleLang1'].label}"/>
</td>
<td>
<html:text property="TitleLang1"/>
</td>
</tr>
HTML output:
<tr>
<td>
Short Title Language 1
</td>
<td>
<input type="text" name="TitleLang1" value="Preliminary Demo">
</td>
</tr>
case 2)
JSP code:
<tr>
<td>
<c:out value="${bindings['TitleLang1'].label}"/>
</td>
<td>
<input type="text" name="<c:out value='${bindings.TitleLang1.path}'/>" value="<c:out value='${bindings.TitleLang1}'/>"/>
</td>
</tr>
HTML output:
<tr>
<td>
Short Title Language 1
</td>
<td>
<input type="text" name="VB_TitleLang1" value="Preliminary Demo"/>
</td>
</tr>
Case 1 generated code is obvious to me, the html name of the field equals the field binding id.
In Case 2, the VB_ prefix is added and the binding variable references bindings.fieldName.path?
Could someone explain me the second flavor?
When should we use the path reference and replace the Struts html:text tag with html input tag?
Thanks
FredI dont think you can mix static values and rt expressions together in attribute values.
String onBlurString = "dontLeaveItEmpty(this);referenceEntered(" + recordNumber + ")" ;
html:text styleClass="textFieldInTable" name="refrences" property="referenceName" onblur="<%=onBlurString%>" />cheers,
ram. -
Keynote 4.0.2 does not recognize documents from 4.0.1
Since I upgraded to version 4.0.2, Keynote does not open documents created under version 4.0.1. The error message reads that I need a newer version of keynote to open the document.
Welcome to the discussions, Cristiane.
Do you also have iWork '06 still installed. If so, then rename Keynote in the iWork '06 folder so there's not two copies of a "Keynoe" app on your system.
http://www.keynoteuser.com/news/?p=259 -
Project Not Checking out From Version Control
All of our help projects are managed using version control
(Team Foundation Server).
I recently had an XPJ file that became corrupted. As per
Adobe's instructions, I deleted the XPJ and CPD files and
regenerated the project from the HHP file. That worked fine, but
now launching the project from the XPJ file opens the project
outside of version control. (I'm no longer being prompted to check
the files out.) I think this is because the newly created XPJ file
now disassociated with the source control. If this is true, how do
I get the XPJ file back into source control?
Hopefully this makes sense.
Christina StommelHi Christina,
My understanding of the entire "version control" process is
limited but since no one else has thrown in, I will try to pass
along what little I know. What I have learned is that version
control works great until it doesn't.
What I've had to do in the past, when I've had these sort of
synchronization problems, is to remove the entire project from
version control (I would be sure to back up your local project as
well as your version-controlled project). Then, you should be able
to add the repaired project back to your source control software
(we use MS VSS but I think it shouldn't matter).
I have tried, in the past, to add individual files to the
database from the RH interface (you could try "check in all files")
and I have gone into the database and manually added the necessary
files, but I have had mixed results. In the end, it seems that
removing the project from version control, then adding it back, is
the only thing that is guaranteed to work.
Good luck! -
Configuring email to send plain text, not HTML
When sending a mail message from my Palm Pre, the resulting message was in plaintext. Now I have a Pre 2 with WebOS 2.1, my recipients get HTML-formatted email. I can't find an option to set this back to plaintext - is this possible?
Post relates to: Pre p100eww (Sprint)I am having this exact issue too. I have a trigger that sends an email using a stored procedure. The dbmail is sending the email using the Exchange 2010 server SMTP. It does not login so the email is relayed as user = "Anonymous".
The SQL dbmail email header is showing the following:
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: base64
MIME-Version: 1.0
X-MS-Exchange-Organization-AuthSource: MX01.domain.local
X-MS-Exchange-Organization-AuthAs: Anonymous
Here is the header if I send via Outlook profile using the legacy program I am trying to automate using SQL Server 2008R2:
Content-Type: application/ms-tnef; name="winmail.dat"
Content-Transfer-Encoding: binary
MIME-Version: 1.0
X-MS-Has-Attach:
X-MS-Exchange-Organization-SCL: -1
X-MS-TNEF-Correlator: <[email protected]>
MIME-Version: 1.0
X-MS-Exchange-Organization-AuthSource: MX01.domain.local
X-MS-Exchange-Organization-AuthAs: Internal
X-MS-Exchange-Organization-AuthMechanism: 03
X-Originating-IP: [192.168.13.66]
Any help would be greatly appreciated! -
Links in dynnamic html text not working?...
Hi all
I have a dynamic text field, set to format html.
The link that loads in the dynamic text field is:
<a
href="portfolio_template.php?sec=housing%2F&sub=townhouses%2F&pro=rheingold+gardens%2F&st =2&id=5">Rheingold
Gardens receives 2006 Building Brooklyn Award</a>
It does not work.
If I make a very simple link, like:
<a href="
http://example.com">link</a>
It works.
I have seen in the Flash (MX2004) doc that
"<a href> must be a string, up to 128 characters."
My href string is not longer than 128 chars...
What is wrong?...
seb ( [email protected])
http://webtrans1.com | high-end web
design
Downloads: Slide Show, Directory Browser, Mailing ListHave tried putting
http:// in front of your link? -
Websites are plain text not HTML
I've been having a lot of issues lately with Firefox. I get nothing but plain text websites, it's always asking for the certificates even though it's added them. I've been an avid firefox user for years since my son said it's the best browser out there. Now I'm beginning to wonder.. I've cleared the cache, uninstalled, reinstalled a clean version and still same problems over and over.
Please help.Can you attach a screenshot?
*http://en.wikipedia.org/wiki/Screenshot
*https://support.mozilla.org/kb/how-do-i-create-screenshot-my-problem
Use a compressed image type like PNG or JPG to save the screenshot.
Note that some firewalls monitor secure (https) connections and send their own certificate instead of the website's certificate.
*ESET Setup -> Advanced setup -> Web and email -> Protocol filtering -> SSL
*Certificates: Add the root certificate to known browsers
See also:
*SSL protocol: Do not scan SSL protocol
Check the date and time in the clock on your computer: (double) click the clock icon on the Windows Taskbar.
*https://support.mozilla.org/kb/Secure+Connection+Failed
Check the connection settings.
*Tools > Options > Advanced > Network : Connection > Settings
*https://support.mozilla.org/kb/Options+window+-+Advanced+panel
If you do not need to use a proxy to connect to internet then try to select "No Proxy" if "Use the system proxy settings" or one of the others do not work properly.
See "Firefox connection settings":
*https://support.mozilla.org/kb/Firefox+cannot+load+websites+but+other+programs+can -
Retrieve item text in SO document
Hi Experts,
How can i retrieve text stored at item level in a Sales Order Document.
Iam able to retreive header text through by table STXH.
But this tables does not show item level text.
Pls suggest?
Thanx in advance.
Rajiv RanjanHi,
You can retrive this using the Fun Module;
READ_TEXT
have to pass 4 paramters for this:
go to the text, double click on it, takes to text editor
from there GOTO -> header
will give the OBJECT, ID, OBJECTNAME(mostly the SO doc no and Item No has to be concatenated and to be passed), and lang.
reward if useful
regards,
Anji -
Function to retrieve long text in FI document for payment file
Hi
Is there a function i could use to retrieve the long text in the invoice document for the payment reference field in the payment file?
Would appreciate your urgetn advice.
Thanks.Possiblity could be that you have passed the wrong object name id or any parameters.
See below the similar code.
If you want to know the correct tdobject and correct tdname combinations go to table STXH and under name give the document number ie 1900000000 ie docno then you will come to know the correct tdname and object and tdid from which you can use the read_text function module
DATA : tdobject TYPE thead-tdobject,
tdname TYPE thead-tdname,
tdid TYPE thead-tdid,
tdspras TYPE thead-tdspras.
DATA : lines TYPE STANDARD TABLE OF tline INITIAL SIZE 0,
wa_lines TYPE tline.
CONCATENATE bkpf-bukrs bkpf-belnr bkpf-gjahr INTO tdname.
tdobject = 'BELEG'.
tdid = '0005'.
tdspras = sy-langu.
CALL FUNCTION 'READ_TEXT'
EXPORTING
* CLIENT = SY-MANDT
id = tdid
language = tdspras
name = tdname
object = tdobject
* ARCHIVE_HANDLE = 0
* LOCAL_CAT = ' '
* IMPORTING
* HEADER =
TABLES
lines = lines
EXCEPTIONS
id = 1
language = 2
name = 3
not_found = 4
object = 5
reference_check = 6
wrong_access_to_archive = 7
OTHERS = 8.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ELSE.
READ TABLE lines INTO wa_lines INDEX 1.
IF sy-subrc = 0.
write at 51(10) wa_lines-tdline.
ENDIF.
ENDIF.
Regards
Gopi
Maybe you are looking for
-
Font Size You are chatting with an Advisor now. This chat will be recorded. At the end of the session, you can print the transcript or request a copy via email. Privacy Policy Advisor [4:49 p.m.]: Hi, my name is Jacob. It'll be just a moment while I
-
Whenever i try to open microsoft word it doesn't open. What should I do?
Whenever I try to open Microsoft word it doesn'nt open. I have tried everything, what should i do?
-
E-Recruiting - active on both central ECC + Standalone box and integrated?
Hi, Can someone tell me if the following landscape is possible with E-rec? (we are installing ehp4) a) Our central ECC system with the E-Rec component activated. Used for internal recruiting. + b) A standalone E-Rec box , connected and integrated v
-
Revision: 11899 Revision: 11899 Author: [email protected] Date: 2009-11-17 10:24:33 -0800 (Tue, 17 Nov 2009) Log Message: Cleaning up some FIXMEs assigned to me in the code: In UIMC, we now call invalidateParentSizeAndDL() on setting explicitM
-
Why does it login to another database spontanously?
I got three databases created on the same machine under the single Ora9i. And when I do below, it goes as you see. And my question is, why it login me to PLM when I do 'connect /as sysdba'? I would expect to login GTP as well. is it normal or it is d