How to load text in div
Hi. I am relatively new to DW and I am trying to find a simple solution to this issue. I have 2 situations in which I need to load text:
1) I have 2 side by side div tags. The left will have links, that when clicked, I need an image to show in the right div. How can I do that?
2) I need to load text via a text document to a div on the site. How do I code to "get text" from the doc on my ftp?
I appreciate any advice you can offer.
1) I have 2 side by side div tags. The left will have links, that when clicked, I need an image to show in the right div. How can I do that?
2) I need to load text via a text document to a div on the site. How do I code to "get text" from the doc on my ftp?
I appreciate any advice you can offer.
For the first, you can use a 'disjoint' rollover technique. Clicking on the link will swap an image that is present anywhere else on the page with a new incoming image. You need to have a 'static' or holding image there already to hold that location for the incoming image. You do this exactly the same way as you do a rollover, using DW's swap image behavior, except that you scroll through the list of images on your page to find the holding image by name before browsing to find the incoming swap image.
To load text from a text document to a div on the site is more complex. However it could be done pretty easily by using the DW "Change Property" behavior to change the 'src' property of an IFRAME that has been placed inside the target div. The bugger here is your requirement to use an external text file. If you didn't want to do that, it could be done more simply using DW's Set Text of Container behavior.
Similar Messages
-
How to load text data in BI 7
Hi Mark.
You can load text like you load the data to Master data attributes.
The flat file format foe text is like 'EN', 'MAT001', 'MATERIAL1'.
Cheers
Sunil -
How to load text file data to Oracle Database table?
By using Oracle Forms, how to load text file data to Oracle Database table?
Metalink note 33247.1 explains how to use text_io as suggested by Robin to read the file into a Multi-Row block. However, that article was written for forms 4.5 and uses CREATE_RECORD in a loop. There was another article, 91513.1 describing the more elegant method of 'querying' the file into the block by transactional triggers. Unfortunately this more recent article has disappeared without trace and Oracle deny its existence. I know it existed as I have a printed copy in front of me, and very useful it is too.
-
plz tell me .. how to load and compare two text files using file popup's . example file i have attached..
Attachments:
testW_FF.txt 2 KBI don't understand whether your question is on how to load text files or how to show them on a panel or how to compare them... or all aspects together!
The first operation (loading the file) can be accomplished with functions included in the Formatting and I/O Library like OpenFile, ReadFile and so on; with a file like yours even FileToArray could be an option.
How to show the data on screen is heavily dependent on what you intend to do with them: data can be shown in textboxes, listboxes, tables or graphs so... what do you want to do?
The same applies with comparison: without additional details is difficult to give you the proper hint.
Proud to use LW/CVI from 3.1 on.
My contributions to the Developer Zone Community
If I have helped you, why not giving me a kudos? -
How to load text data into internal table
I have a text file to load txt data into internal table. So how to read text data with validation and to load all text data into the internal table?
Say this is the text file:
IO_NAME, IO_TYPE, IO_SHTXT, IO_LONGTEXT, DATATYPE, DATA LENGTH
ZIO_TEST1, CHA, IO TEST1, IO TEST 1, CHAR, 20
ZIO_TEST2, CHA, IO TEST2, IO TEST 2, CHAR, 20
Regards,
MauHi,
U can use GUI_UPLOAD for this...
Declare an internal table like
data: begin of itab occurs 0,
string(1200),
end of itab.
check the sample code:
cange as you need
DATA: DATEI_PC TYPE STRING VALUE 'C:\MATNR.TXT'.
DATA: BEGIN OF ITAB occurs 0,
TXT(1024),
END OF ITAB.
CALL METHOD CL_GUI_FRONTEND_SERVICES=>GUI_UPLOAD
EXPORTING
FILENAME = DATEI_PC
FILETYPE = 'ASC'
CHANGING
DATA_TAB = ITAB[]
EXCEPTIONS
FILE_OPEN_ERROR = 1
FILE_READ_ERROR = 2
NO_BATCH = 3
GUI_REFUSE_FILETRANSFER = 4
INVALID_TYPE = 5
NO_AUTHORITY = 6
UNKNOWN_ERROR = 7
BAD_DATA_FORMAT = 8
HEADER_NOT_ALLOWED = 9
SEPARATOR_NOT_ALLOWED = 10
HEADER_TOO_LONG = 11
UNKNOWN_DP_ERROR = 12
ACCESS_DENIED = 13
DP_OUT_OF_MEMORY = 14
DISK_FULL = 15
DP_TIMEOUT = 16
NOT_SUPPORTED_BY_GUI = 17
ERROR_NO_GUI = 18
OTHERS = 19.
IF SY-SUBRC NE 0. WRITE: / 'Error in Uploading'. STOP. ENDIF.
WRITE: / 'UPLOAD:'.
LOOP AT ITAB. WRITE: / ITAB-TXT. ENDLOOP. -
How to load text for Z-objects?
Hello Experts!!
I am implementinh HR for BI reports.
Now in some of the Zobjects created for details like bank details(for acoount number etc) i am getting only the key values from the attribute datasource.
How to get the releated text values.
do i need to create a text datasource? How to link the text and attributes , so that we can load text and see it in reporting as well
Thanks
ShilpaGenerally, you dont always need to create a text datasource if it is not relevant. Just uncheck the checkbox "With text" in the InfoObject itself. Otherwise if you need a text datasource, you need to identify the text table in source system or identify the table where the key value (and maybe other attributs) is existing and you can read the text. Then create a generic text datasource (if no standard text datasource is available).
But your question seems to be, how to get more attribute and text in the same ZObject? Just adding attribut objects you need and match them with the attribut datasource. You can also use a charateristic field here for the text field. The text field will be a attribut of that ZOBJECT and you dont need to create an extra text datasource. -
How to load text data from multiple source systems.
Hello Gurus,
I am facing an issue of loading master data text into 0Material. I have loaded attribute data from 2 source systems. But i am not able load text data from the same 2 source systems as i am not able to see 0logsys in transfermation rules of 0MATERIAL.
Please gimme some inputs to proceed.
Thanks in advance
PeterHi,
I dont think that you need the source system info here, texts are mapped to attributs and attributs to source systems.
so try to load simply:
material key, text, lang (optional)
Hope it helps. -
How to load text without a variable
As far as i know in AS2 to load a text i need to define a
variable in text like:
text=this is the text displayed.
right now i have to display a text verision of a website
which i cant put a variable like "text=" into it, im wondering is
there anyway to load text in AS2 without using a variable? because
in AS3 you can use the URLLoader.
Andrei1 pointed out that getURL might work, does anyone know?
thanks a lotyay it works, some what, errm, right now im getting errors
when i publish anything with actionscript 2.0
the errors are :
BitmapData.as
lines 7,16, 26, 27, 28, 31, 41, 43, 45, 46, 53, 63, 76, 83
line 7:unable to add 'flash.geom.Rectangle' [my flash is in
another language so i translated this]
the rest of the lines are: unable to add 'Rectangle'
Transform.as:
line 15:unable to add 'flash.geom.Rectangle'
Movieclip.as:
line 36:unable to add 'flash.geom.Rectangle'
the code is working but the text box is weird here is a
screenshot:
http://img512.imageshack.us/img512/8532/loaderha4.jpg
and i have to select the text and drag to the right to see
the rest of the text.
I think this is something to do with the errors? because i
can't add Rectangle? or its the text box needs more
tweaking? -
Newbie with a really simply question. How would one center this text smack dab in the middle of this DIV (assuming that this DIV were already centered on the page?
If you were doing it by hand in Source View, you would add text-align:center; to the css for the div.
From Design View, highlight the text and click the Align Center button in the Properties tab.
EDIT: That would be for horizontal alignment. To align the text vertically (this only works if the text is on one line) you can set the line-height of the div to the same as the height of the div in the css...
#your_div_id {
text-align:center;
line-height:70px;
height:70px;
width:400px;
border:1px solid black; -
Dear All,
How is it possible load a text file that contain SQL commands in the form and then execute the commands.
RegardsHello,
You can have dynamic SQL within the Forms module via the EXEC_SQL package, but it is not really made to execute a whole file content.
You could write a databased function (or procedure) that uses the EXECUTE IMMEDIATE instruction, then call this procedure from Forms.
Anyway, I think that in all cases, you probably have to split your text file in several comprehensives single SQL orders, or at least send entire PL/SQL blocks.
Francois -
How to Load Text Data whish is depended on Location --Compounding
Hi,
Employee is Compounded on Location
JOB is an attribute of an Employee
Job Description (Text) is Location Dependent...
Ex: Job- ADMIN in One location is describes as Administrator and in another location is describes as Supervisior...
I want to see both Administrator and Supervisior in the report in the respective location
How can i acheve this
ThanksHi,
Location and Employee will acts as a primary keys in both P and T tables. You have to Load Location and Employee and job in ur data.
Location Employee Job
India ABC Admin
US ABC Supervisor
In the above example the Location and Employee will be the primary keys. Depending on those same keys the data will gets overwirited.
Khaja -
How to load content in div without re-loading page
Im looking for a way to keep all my static content loaded but
only load new content in my center div when a user clicks on a
link. Is there a way to do this that is friendly on all browsers?
Please help I value any help!!I would suggest that you remove the mp3s from playing but if
you must have
it....
...I've written some script in Flash that uses sharedObjects
(kind of like
cookies) to read and see if the object exists. If it does, it
goes to a
different frame. If not, then it goes to another.
The script(actionscript 2) is as follows. Put it on frame 1
of your
timeline:
stop();
var my_so:SharedObject = SharedObject.getLocal("seenThis");
if (my_so.data.name == "seen it") {
//been here before.
//here is where you go if you have already seen it,
//make sure there is no music playing on frame 25
gotoAndStop(25); } else {
//first visit
gotoAndPlay(26);
my_so.data.name = "seen it";
my_so.flush(1000);
Now, there are some considerations in using shared objects
...Sometimes your
SWF files may not be allowed to write local shared objects,
and sometimes
the data stored in local shared objects can be deleted
without your
knowledge. Flash Player users can manage the disk space that
is available to
individual domains or to all domains. When users lower the
amount of disk
space available, some local shared objects may be deleted.
Flash Player
users also have privacy controls that can prevent third-party
domains
(domains other than the domain in the current browser address
bar) from
reading or writing local shared objects. But, in something
like this seen it
example.no real harm if the object gets deleted.
Dan Smith > adobe community expert
Flash Helps >
http://www.smithmediafusion.com/blog/?cat=11
http://www.dsmith.tv -
How to load texts to the infoobject?
I am having old material infoobject with 7 attributes and loaded the data using flat file for that. Now the thing is I have to load the texts to this infoobject from 0TXTMD infoobject help me out to do this guys..
Have you enabled master data for 0txtmd?
by default this infoobject dose not have any table and i think its not supposed to be used for extraction.
with absence of txt table for this infoobject DTP is giving you error saying source is not active but it actually might not be existing.
go to infoobjects in RSA1 and look for 0txtmd infoobject then double click on it and see if you have any tables mentioned in this tab.
I think you are trying to extract it from wrong place.
Regards
Sudeep -
Hi BW Gurus
I am new to BI and would like to have steps / procedures on how to load TEXTS 0VENDOR -( I think is Master Data )
if possible in the following order
1.
2.
3.
etc etc etc .
Many Thanx in AdvanceHello;
1. In ECC run RSA5 and fiind 0VENDOR_TEXT
2. Activate it
3. Go to BW -> RSA1 -> Datasources -> Find MM-IO
4. Right button -> replicate (the datasource should be available when replication finished)
5. Change it and activate Datasource
6. Right click over DS -> Create transformation between 0VENDOR and 0VENDOR_TEXT
7. Create DTP for that transformation.
8. Create infopackage for datasource
9. upload data and check if everything is correct.
Regards;
Ricardo -
How to Load Master Data Text from Multiple Source Systems
Situation: Loading vendor master (text) from two systems. Some of the vendor keys/number are the same and so is the description. I understand that if I was loading Attributes, I could create another attribute such a source system id and compound it to 0Vendor. However, I don't believe you can do the same when loading text.
Question: So, how can I load duplicate vendor keys and description into BW using the *_TEXT datasource so they do not overwrite?
Thanks!Hi,
Don't doubt, it'll work!
Sys ID as compound to 0Vendor.
If you doubt about predefined structure of the *_TEXT datasource and direct infosource, then use a flexible infosource. Maybe you'll have to derive the sys ID in a routine or a formula.
Best regards,
Eugene
Maybe you are looking for
-
I am unable to send any messages on iMessage
i am unable to send any messages on iMessage. I have never used it before so maybe I haven't set it up properly? When I choose a person to send a message to its fine, but when I type the message, the send button is grey and my message won't send. My
-
How do i find out the speed of file transfers
Hi all, first i have to admit i dont actually have a Time Capsule, i have a Western Digital MyBookLive with which i backup my MacBookPro using Time Machine. I have also upgraded my Router to one with Gigabit LAN, my MacBookPro is gigabit and so is my
-
'Remote' Button not visible in Mac iTunes 12.1
My Remote app on iPhone 6 (iOS 8.2) suddenly stopped working with my Macbook Pro (mid 2012, Yosemite 10.10.2) and iTunes 12.1. The documentation points to a Remote button in iTunes 12.1 that isn't there. In the Remote app, my Mac's iTunes library
-
How to import songs from my iPod nano into my iTunes library
I don't know how
-
Regarding file 2 file using BPM
Hi Experts, In file to file using BPM scenario my file is being picked in the server but it is not displaying again after polling interval. please help me one this issue as early as possible.