DW - set text of layer behaviour
I selected a small image, and applied the SetTextofLayer
behaviour, making sure the layer was the chosen layer. Then typed
<img src=/images/image1.jpg width="350" height="480"> as per
the instructions from the resources page. The error came up that
there already was an image. According to the instructions, you can
apply the SetTextofLayer behaviour to an image. What do I need to
do to have the larger image appear in the layer when you mouse over
the smaller image. It does work with the show/hide behaviour, but
was told doing it that way would make the page too big.
Thanks!
Share the Irish, because I'm seeing quite a few double posts
across the
forum... (trying to catch up).
Nadia
Adobe� Community Expert : Dreamweaver
http://www.csstemplates.com.au
- CSS Templates | Free Templates
http://www.DreamweaverResources.com
- Dropdown Menu Templates|Tutorials
http://www.macromedia.com/devnet/dreamweaver/css.html
- CSS Tutorials
"Murray *ACE*" <[email protected]> wrote
in message
news:e2jcfe$esj$[email protected]..
> Is everybody seeing doubles of these posts, or do I need
a little more
> Irish in my coffee?
>
> --
> Murray --- ICQ 71997575
> Adobe Community Expert
> (If you *MUST* email me, don't LAUGH when you do so!)
> ==================
>
http://www.dreamweavermx-templates.com
- Template Triage!
>
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
>
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
>
http://www.macromedia.com/support/search/
- Macromedia (MM) Technotes
> ==================
>
>
> "projectinfo" <[email protected]> wrote
in message
> news:e2jbfu$dk2$[email protected]..
>>I typed the information into the behaviour box, then
I checked the code
>>because
>> it didn't work. There were symbols instead of the
< and > , also for the
>> ".
>> This is what it looks like: td><img
src="/images/thumbnails/pic1t.jpg"
>> width="35" height="35"
onMouseOver="MM_setTextOfLayer('layer1','','%3Cimg
>> src=/images/pics/pics1.jpg width=%22300%22
height=%22300%22%3E')"> I
>> changed
>> the symbols to how I had typed it in the behaviour
box to see if that
>> helped
>> but it didn't.
>>
>
>
Similar Messages
-
Set text of layer...again
hi everybody
any ideas as to why when i use the set text of layer
behaviour i'm losing the hand cursor when you mouseover the link?
the behaviour works fine, but i'm getting the text cursor, so it
doesn't look like a link when you view the page, although it
works...i've tried changing the cursor option in the css, but that
still doesn't seem to make any difference...thanks in advance
saraIt would have nothing to do with the STOL behavior, but
rather what you are
pasting into it.
Any event handler directly on an <img> tag will fail to
produce the pointer.
You need to make sure that when applying behaviors directly
to <img> tags,
you always use the <A> onMouse event. Try that....
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com
- Template Triage!
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
http://www.macromedia.com/support/search/
- Macromedia (MM) Technotes
==================
"sara-jane.s" <[email protected]> wrote in
message
news:e7j97s$7co$[email protected]..
> hi everybody
>
> any ideas as to why when i use the set text of layer
behaviour i'm losing
> the
> hand cursor when you mouseover the link? the behaviour
works fine, but
> i'm
> getting the text cursor, so it doesn't look like a link
when you view the
> page,
> although it works...i've tried changing the cursor
option in the css, but
> that
> still doesn't seem to make any difference...thanks in
advance
>
> sara
> -
Set text of layer problem (escaping ' and " in javascript)
Hi all
I am using the Dreamweaver behaviour "set text of layer" and
I am having problems with escaping
single AND double quotes in the javascript.
Because the text I want to set the Layer with contains some
javascript.
So the text of my layer contains both single and double
quotes.
I can escape the single quotes like this:
But I can't escape the double quotes the same way for some
reason.
even if I use \" javascript thinks it's the end of the
javascript function.
So I have tried using " in the javascript of the
text to set, but strangely, although it works
in Safari, it does not work in FireFox and IE.
When I mouse over my javascript link set in the layer, the
browser status bar shows the right thing
in Safari, but in IE and FireFox, it shows extra double
quotes...
onClick="MM_setTextOfLayer('list','','<a
href="javascript:;"
onClick="MM_showHideLayers(\'options\',\'\',\'show\')">designers</a>')"
Anybody knows the answer to this one?
seb ( [email protected])
http://webtrans1.com | high-end web
design
Downloads: Slide Show, Directory Browser, Mailing ListWhat about using the " entity? That *should* work.
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com
- Template Triage!
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
http://www.macromedia.com/support/search/
- Macromedia (MM) Technotes
==================
"(_seb_)" <[email protected]> wrote in message
news:[email protected]...
> doubling the quotes did not work.
> But I solved the problem by removing the quotes all
together:
>
> onClick="MM_setTextOfLayer('list','','<a
href=javascript: ...
>
> that does it!
>
> Randy Edmunds wrote:
>> Try doubling the quotes to escape them, for example:
>>
>> onClick="MM_setTextOfLayer('list','','<a
href=""javascript:"" ...
>>
>> HTH,
>> Randy
>>
>>
>>> I am using the Dreamweaver behaviour "set text
of layer" and I am having
>>> problems with escaping single AND double quotes
in the javascript.
>>>
>>> Because the text I want to set the Layer with
contains some javascript.
>>>
>>> So the text of my layer contains both single and
double quotes.
>>>
>>> I can escape the single quotes like this:
>>> \'
>>> But I can't escape the double quotes the same
way for some reason.
>>> even if I use \" javascript thinks it's the end
of the javascript
>>> function.
>>>
>>> So I have tried using " in the
javascript of the text to set, but
>>> strangely, although it works in Safari, it does
not work in FireFox and
>>> IE.
>>> When I mouse over my javascript link set in the
layer, the browser
>>> status bar shows the right thing in Safari, but
in IE and FireFox, it
>>> shows extra double quotes...
>>>
>>> onClick="MM_setTextOfLayer('list','','<a
href="javascript:;"
>>>
onClick="MM_showHideLayers(\'options\',\'\',\'show\')">designers</a>')"
>>> Anybody knows the answer to this one?
>
>
> --
> seb ( [email protected])
>
http://webtrans1.com | high-end web
design
> Downloads: Slide Show, Directory Browser, Mailing List -
A Very Easy Question.
I attempt to "set text of layer." I click on the plus sign on
the behaviors window, and set text to layer. A cute little box pops
up. In the Layer drop down box is a host of "unnamed
<span>"s. None of my divs are listed. In the body of this
page are Plenty of ID'd divs. I have named layers out the wazoo.
Why Are My Named Layers Not Listed In the Layer Drop Down
Box?> seen it done many times over in rss readers, although
when I look at the
> page
> source I secretly hope that it's not as complicated as
it appears.
It would depend entirely on your level of HTML expertise.
One way to solve the problem would be to use an IFrame to
contain the
external content on the page, but a frame is a frame is a
frame. By that I
mean that IFrames usually provide all the user problems that
frames do.
> With the accordion widget I'm using as the main visual
feature of the site
> I'm
> creating, I find it unnacceptable to think I'll have to
reload the entire
> page
> every time a user wants click on something to view
information; I thought
> programming like that was a thing of the past.
Linking from one page to another is how static HTML pages
work. Having a
single page to display multiple content elements as loaded
from a database
requires that the page return to the server to fetch new
content from the
database on each click. Either method requires a page
refresh.
Linking to content that is placed within an IFrame doesn't
require this page
refresh, but carries other disadvantages as mentioned above.
Does that help at all?
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com
- Template Triage!
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
http://www.macromedia.com/support/search/
- Macromedia (MM) Technotes
==================
"iiinsomniiiac" <[email protected]> wrote in
message
news:[email protected]...
> Well, my apologies for not knowing exactly what you mean
by
> "round-trip"ing -
> but - I suppose I'm simply looking for the easiest way
to do just what I
> explained: an onclick event that loads an html file into
a div or td.
> I've
> seen it done many times over in rss readers, although
when I look at the
> page
> source I secretly hope that it's not as complicated as
it appears.
>
> With the accordion widget I'm using as the main visual
feature of the site
> I'm
> creating, I find it unnacceptable to think I'll have to
reload the entire
> page
> every time a user wants click on something to view
information; I thought
> programming like that was a thing of the past.
> -
Set Text of Layer Blowup?
Hi all,
Here is the page in question:
http://globalvisiondesigns.com/graphics.html
The box of cd's to the lower left is contained in two divs
with the set text of layer behavior. In FF and Safari in Mac it
works great. On the other hand, IE in Mac, it blows the bottom of
the page up, adding about 300-400 pixels of white space below the
footer. Usually when I notice something disastrous happening in IE
in Mac, it's worse in PC. Could someone please have a look at this
page in IE on a PC/Window XP etc. Perhaps I will get lucky this
time out, and it will be fine on that platform.
I have to admit, I copied the code and divs from a layout
that I did using tables. I don't think that is the problem though,
because this might have been happening in the tables layout as
well, just not as bad.
Thanks for any help!Looks fine to me in IE/WXPPro, and FF 1.5.0.6.
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com
- Template Triage!
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
http://www.macromedia.com/support/search/
- Macromedia (MM) Technotes
==================
"engmix" <[email protected]> wrote in
message
news:ec148p$4m0$[email protected]..
> Hi all,
> Here is the page in question:
http://globalvisiondesigns.com/graphics.html
>
> The box of cd's to the lower left is contained in two
divs with the set
> text
> of layer behavior. In FF and Safari in Mac it works
great. On the other
> hand,
> IE in Mac, it blows the bottom of the page up, adding
about 300-400 pixels
> of
> white space below the footer. Usually when I notice
something disastrous
> happening in IE in Mac, it's worse in PC. Could someone
please have a look
> at
> this page in IE on a PC/Window XP etc. Perhaps I will
get lucky this time
> out,
> and it will be fine on that platform.
>
> I have to admit, I copied the code and divs from a
layout that I did
> using
> tables. I don't think that is the problem though,
because this might have
> been
> happening in the tables layout as well, just not as bad.
>
> Thanks for any help!
> -
Can links inside "set text of container" behaviours open in a new page?
I am using the set text of container behaviour to show different information within the same page, to keep things neat and simple to navigate. Some of the text needs to be external links, but they open in the current page, not a new page even though I have set the target to _blank.
Is there another way to keep using the set text of container and have the links open in another page?
thanks!
Using CS6 on Macbook Pro 2.6Ghz OSX10.8gryffun wrote:
Well, after some further google searches, I'll answer my own question...
selecting the link inside the set text of container and adding a behaviour to it - "open in browser" will make the link open in a new window.
Or ading target="_blank" to each link will do the same -
Setting Text of Layer Conflicts
Hello everyone. Thank you for taking the time to check this
out!-)
Attempting to accomplish:
In a single parent browser window, I have a layer containing
an image (that is viewable because it has already been initiated by
a "set text of layer" behavior), and a second layer containing a
text link that I would like to coordinate multiple behaviors.
Behavior 1: On Mouse over, set text of layer (PHOTOLAYER) to
JPEG2
Behavior 2: On Mouse Out, set text of layer (PHOTOLAYER) to
JPEG1
Behavior 3: On Click, Set text of layer to JPEG2
Behavior 4: On Click, Open new browser window containing new
html page (SECONDWINDOW.html)
Code:
<a href="slideShows/SECONDWINDOW.html" target="TARGET"
onclick="MM_openBrWindow('slideShows/SECONDWINDOW.html','TARGET','width=886,height=750');M M_setTextOfLayer('PHOTOLAYER','','<img
src="assets/JPEG2.jpg"
width="944"
height="403">')"
onmouseover="MM_setTextOfLayer('PHOTOLAYER','','<img
src="assets/JPEG2.jpg"
width="944"
height="403">')"
onmouseout="MM_setTextOfLayer('PHOTOLAYER','','<img
src="assets/JPEG1.jpg"
width="944"
height="403">')">LINKNAME</a>
Further explanation:
When I test this, noted Behaviors 1, 2 and 4 work fine.
However, I'm not getting the JPEG2 on click.
Any ideas as to why this isn't working? Or, is there a
simpler way of coding this whole thing? Any help is appreciated.
Thank you in advance!Change this -
MM_setTextOfLayer('PHOTOLAYER','','<img
src='assets/JPEG2.jpg' width='944'
height='403'>')"
to this -
MM_setTextOfLayer('PHOTOLAYER','','<img
src='assets/JPEG2.jpg'
width='944'
height='403'>')"
and this -
onmouseover="MM_setTextOfLayer('PHOTOLAYER','','<img
src='assets/JPEG2.jpg'
width='944' height='403'>')"
to this -
onmouseover="MM_setTextOfLayer('PHOTOLAYER','','<img
src=='assets/JPEG2.jpg='
width=='944='
height=='403='>')"
and this -
onmouseout="MM_setTextOfLayer('PHOTOLAYER','','<img
src='assets/JPEG1.jpg'
width='944' height='403'>')">LINKNAME</a>
to this -
onmouseout="MM_setTextOfLayer('PHOTOLAYER','','<img
src=='assets/JPEG1.jpg='
width=='944='
height=='403='>')">LINKNAME</a>
It's the improperly nested quotes that is killing you.
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
==================
"Muskieman5000" <[email protected]> wrote in
message
news:[email protected]...
> Hello everyone. Thank you for taking the time to check
this out!-)
>
> Attempting to accomplish:
> In a single parent browser window, I have a layer
containing an image
> (that is
> viewable because it has already been initiated by a "set
text of layer"
> behavior), and a second layer containing a text link
that I would like to
> coordinate multiple behaviors.
>
> Behavior 1: On Mouse over, set text of layer
(PHOTOLAYER) to JPEG2
>
> Behavior 2: On Mouse Out, set text of layer (PHOTOLAYER)
to JPEG1
>
> Behavior 3: On Click, Set text of layer to JPEG2
>
> Behavior 4: On Click, Open new browser window containing
new html page
> (SECONDWINDOW.html)
>
> Code:
> <a href="slideShows/SECONDWINDOW.html"
target="TARGET"
>
>
>
onclick="MM_openBrWindow('slideShows/SECONDWINDOW.html','TARGET','width=886,heig
> ht=750');MM_setTextOfLayer('PHOTOLAYER','','<img
src='assets/JPEG2.jpg'
> width='944' height='403'>')"
>
> onmouseover="MM_setTextOfLayer('PHOTOLAYER','','<img
> src='assets/JPEG2.jpg'
> width='944' height='403'>')"
>
> onmouseout="MM_setTextOfLayer('PHOTOLAYER','','<img
src='assets/JPEG1.jpg'
> width='944' height='403'>')">LINKNAME</a>
>
> Further explanation:
> When I test this, noted Behaviors 1, 2 and 4 work fine.
However, I'm not
> getting the JPEG2 on click.
>
> Any ideas as to why this isn't working? Or, is there a
simpler way of
> coding
> this whole thing? Any help is appreciated. Thank you in
advance!
> -
Below is the code I added to the behavior for a graphic image
to show in the layer. It works perfectly on my computer. But not
working after uploading page. It seems that the image is not
loading from my server? The image is in my httpdocs/images folder.
Could someone please show me what the correct url should look like
in the html below?
<img src=./images/lcdcover1.jpg width="260"
height="260">
link to page in question:
http://globalvisiondesigns.com/graphics.html
Thanksyou need 2 dots
../images
not
./images
and the URL needs to be enclosed in parentheses, which it is
not. -
Manually creating image menu that will use Set Text of Layer
onMouseOver. How do I set the Text of Layer back to default layer?
In other words, onMouseOut executes like Swap Image Restore, only
for text layer.Disregard - I got it.
-
Behaviour: "Set Text of Text Filed"
I am attempting to apply the behaviour "Set Text of Text
Filed" to a radio button pair (the NO of Yes, NO) in order to fill
in a text field with "skip to question 4"
However, when attempting to apply, I get an error message "no
ID. Set ID in the Property Inspector. I also not that while the
form text fields all have names (eg., "name", "street", etc.) The
"Set Text of Text Filed" behaviour windows shows them as "input
<unidentified> why?
The radio button name in the property inspector is "radio"
and the checked value is "yesno". I see no other fields on the
property inspector to apply an ID. I have even encapsulated the
"NO" radio button in a "DIV" tage with a ID=NO. But it also does
not show up in the "Set Text of Text Filed" behaviour window. Still
shows them as "input <unidentified>. Why?
Can anyone advise what I am doing wrong?
The "set text of container" and the "set text of status bar"
behaviours work just fine.
CarverW> why?
Because this behavior requires you to select elements with an
ID assigned,
not just a name (I am referring to the TARGET of the
behavior, not the
trigger).
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
==================
"CarverW" <[email protected]> wrote in
message
news:fldsdh$q60$[email protected]..
>I am attempting to apply the behaviour "Set Text of Text
Filed" to a radio
> button pair (the NO of Yes, NO) in order to fill in a
text field with
> "skip to
> question 4"
> However, when attempting to apply, I get an error
message "no ID. Set ID
> in
> the Property Inspector. I also not that while the form
text fields all
> have
> names (eg., "name", "street", etc.) The "Set Text of
Text Filed" behaviour
> windows shows them as "input <unidentified> why?
>
> The radio button name in the property inspector is
"radio" and the
> checked
> value is "yesno". I see no other fields on the property
inspector to apply
> an
> ID. I have even encapsulated the "NO" radio button in a
"DIV" tage with a
> ID=NO. But it also does not show up in the "Set Text of
Text Filed"
> behaviour
> window. Still shows them as "input <unidentified>.
Why?
>
> Can anyone advise what I am doing wrong?
>
> The "set text of container" and the "set text of status
bar" behaviours
> work
> just fine.
>
> CarverW
> -
"Set text of container" behavior crashes Dreamweaver! (CS3)
When I try to change pages which use the "Set text of
container" behavior it
crashes DW-CS3. The dialog which used to come up first shows
a series of
asterisks in the drop-down for the container selected, and
the CPU does
overtime for about a minute before the correct values appear.
If I change
any values and OK it, then CPU starts using over 90% on DW
and nothing
happens until I force a shut-down (I've left it running for
over 15 mins!)
I have tried setting up a new "Set text of container"
behavior and the same
thing happens.Oh it truly needs work...
http://www.jackbooks.com/Wystan/Regional/Regionalism.htm
Even on a simple new page with a couple of divs this
behaviour is now very
slow and the line of asterisks comes up while waiting for the
dialog to
load. What has changed? How can a simple behaviour be now so
demanding?
"Murray *ACE*" <[email protected]> wrote
in message
news:f4opvn$sod$[email protected]..
> Can we see the page, please?
>
> --
> Murray --- ICQ 71997575
> Adobe Community Expert
> (If you *MUST* email me, don't LAUGH when you do so!)
> ==================
>
http://www.dreamweavermx-templates.com
- Template Triage!
>
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
>
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
>
http://www.macromedia.com/support/search/
- Macromedia (MM) Technotes
> ==================
>
>
> "Stephen C" <[email protected]>
wrote in message
> news:f4nd0t$8lq$[email protected]..
>> When I try to change pages which use the "Set text
of container" behavior
>> it crashes DW-CS3. The dialog which used to come up
first shows a series
>> of asterisks in the drop-down for the container
selected, and the CPU
>> does overtime for about a minute before the correct
values appear. If I
>> change any values and OK it, then CPU starts using
over 90% on DW and
>> nothing happens until I force a shut-down (I've left
it running for over
>> 15 mins!)
>>
>> I have tried setting up a new "Set text of
container" behavior and the
>> same thing happens.
>>
> -
Set text of container - javascript help, please!
I have used Dreamweaver behaviours to "Set text of container" and make different writing appear inside a box when I click a hotspot. Now I want people to be able to click on the writing that just appeared and make more text appear in another box. Could someone tell me how to do this? I don't think I can use Dreamweaver's behaviours for this because there's no material trigger... in that the writing that is the trigger only appears when the first trigger is clicked, but I'm more than happy to be corrected!!
So, I've been trawling through javascript libraries but I don't know what I'm doing, so if someone could either tell me how to do this in dreamweaver or really spell out what libraries etc. I need to download and what code I need to make a bit of text that's already a set text of a container into a trigger for a set text of another container, that would be great!
Sorry for the complicated question, it's difficult to explain what I mean.
All help very much appreciated ^^flozzle19262010 wrote:
I... really don't see how that will help you, considering I'm just asking HOW to do something. It's not like there's a mistake in my CSS or whatever, I just want to know if such a thing as described above is possible...
As I say, I'm reluctant to upload it as it's for someone else.
Have a look here http://forums.adobe.com/message/2691056#2691056.
Both Nancy (one of the best in the business) and I have been trying to help. It's your call.
I wish you the best of luck.
Ben -
I have made a picture rotator for my website, but when I
click on the image (which initiates the rotation to the next
picture) the javascript SHOULD change the text of the specified
layer, but instead of changing the HTML, it just posts the code on
the page. Below are the codes I am using (without the picture
locations, file names, ect.)
Layer11 is the layer which the info is posted. The initial
click works fine, the text is put into the layer as HTML, and the
pic shows. When I think click on the pic, the code for the next pic
is set to the layer. Where I went wrong, I dont know.
A little help?No this a Flex layout text area. Now what it does once the page is build I dont know. I just dragged a text area control and gave it an id. Is my setStyle syntax look right?
-Miguel -
Set Text of Container to HTML not working
I have a div tag named "theAnswer" on a page. When the user
clicks the "Submit" button, I want some text to appear inside the
div that has HTML formatting.
The HTML code for the text I want to appear is below:
You are correct! We are committed to conducting
business with
the highest degree of integrity, complying with legal
standards and
regulations and serving others with respect, fairness and
caring. Click here for <a
href="javascript:;"
onClick="MM_openBrWindow('../docs/
Ethics_Standard_1.pdf','','scrollbars=yes,resizable=yes,width=790,height=575')">More
Info</a> or click Continue.
After I put in the Behavior to "Set Text > Set Text of
Container to", choose the correct Div tag, and paste the above into
the "New HTML" field, when I click the Submit button, I get the
following appearing in the div "theAnswer" exactly how it appears
below as text without it being actual formatted HTML.
You are correct! We are committed to conducting
business with
the highest degree of integrity, complying with legal
standards and
regulations and serving others with respect, fairness and
caring. Click here for <a
href="javascript:;"
onClick="MM_openBrWindow('../docs/
Ethics_Standard_1.pdf','','scrollbars=yes,resizable=yes,width=790,height=575')">More
Info</a> or click Continue.
It's not formatted as HTML, it just comes out exactly what
the coding is. Why?!Let's see the page, please.
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
==================
"Jim Rehmann" <[email protected]> wrote in
message
news:g6a3in$dv4$[email protected]..
>I have a div tag named "theAnswer" on a page. When the
user clicks the
> "Submit" button, I want some text to appear inside the
div that has HTML
> formatting.
>
> The HTML code for the text I want to appear is below:
>
> You are correct! We are committed to
conducting business with
> the highest degree of integrity, complying with legal
standards and
> regulations and serving others with respect, fairness
and
> caring. Click here for <a
href="javascript:;"
> onClick="MM_openBrWindow('../docs/
>
>
Ethics_Standard_1.pdf','','scrollbars=yes,resizable=yes,width=790,height=57?5')"
>>More
> Info</a> or click Continue.
>
>
> After I put in the Behavior to "Set Text > Set Text
of Container to",
> choose
> the correct Div tag, and paste the above into the "New
HTML" field, when I
> click the Submit button, I get the following appearing
in the div
> "theAnswer"
> exactly how it appears below as text without it being
actual formatted
> HTML.
>
>
> You are correct! We are committed to
conducting business with
> the highest degree of integrity, complying with legal
standards and
> regulations and serving others with respect, fairness
and
> caring. Click here for <a
href="javascript:;"
> onClick="MM_openBrWindow('../docs/
>
>
Ethics_Standard_1.pdf','','scrollbars=yes,resizable=yes,width=790,height=57?5')"
>>More
> Info</a> or click Continue.
>
> It's not formatted as HTML, it just comes out exactly
what the coding is.
> Why?!
>
> -
Getting error while trying to set text for form value field in oaf
Hi ALL,
When i am trying to set text for a form value type field it is giving null pointer exception, please help me out.
I tried below way.
OAFormValueBean containlineid=(OAFormValueBean)webBean.findChildRecursive("item11");
containlineid.setText(pageContext,"test");
ThanksHI Keerthi,
I am able to set and get the value now, i am able to see the data in my log window, but in my page it is erroring out, giving null pointer exception.
after commenting the two lines setting and getting value page is running fine, so any clue on this, please check the below code.
public class XXDPECONTAINLINESCO extends OAControllerImpl
public static final String RCS_ID="$Header$";
public static final boolean RCS_ID_RECORDED =
VersionInfo.recordClassVersion(RCS_ID, "%packagename%");
* Layout and page setup logic for a region.
* @param pageContext the current OA page context
* @param webBean the web bean corresponding to the region
public void processRequest(OAPageContext pageContext, OAWebBean webBean)
super.processRequest(pageContext, webBean);
OAApplicationModule am = (OAApplicationModule) pageContext.getApplicationModule(webBean);
OARawTextBean startDIVTagRawBean =
(OARawTextBean) webBean.findChildRecursive("DivStart");
System.out.println("debhorizontal"+ startDIVTagRawBean);
// addScrollBarsToTable(pageContext, webBean,"DivStart", "DivEnd", true , "400",true,"400");
* Procedure to handle form submissions for form elements in
* a region.
* @param pageContext the current OA page context
* @param webBean the web bean corresponding to the region
public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
super.processFormRequest(pageContext, webBean);
String preplenish = pageContext.getParameter("item1");
String pworkorder = pageContext.getParameter("item2");
String pdmr = pageContext.getParameter("item4");
String punloading = pageContext.getParameter("item6");
String prrnum=pageContext.getParameter("item16");
String pworknum=pageContext.getParameter("item14");
String pdtr=pageContext.getParameter("item13");
Serializable param[] = {preplenish,pworkorder,pdmr,punloading,prrnum,pworknum,pdtr};
OAApplicationModule am = (OAApplicationModule) pageContext.getApplicationModule(webBean);
if(pageContext.getParameter("item11")!=null)
if(am !=null)
am.invokeMethod("getSearchData",param);
if (pageContext.getParameter("item30") != null) {
String recout = (String)am.invokeMethod("getSelectedData");
System.out.println("deb multi select test"+recout);
System.out.println("1111test1"+pageContext.getParameter("item32"));
OAFormValueBean containlineid=(OAFormValueBean)webBean.findChildRecursive("item32");
System.out.println("1111test2"+pageContext.getParameter("item32"));
//containlineid.setValue(pageContext,recout);
System.out.println("1111"+pageContext.getParameter("item32"));
/// System.out.println("22222"+containlineid.getValue(pageContext));
containlineid.setValue(pageContext,recout);
containlineid.getValue(pageContext);
System.out.println("1111test3"+pageContext.getParameter("item32"));
--------------Error it is giving in the page as----------------
Exception Details.
oracle.apps.fnd.framework.OAException: java.lang.NullPointerException at oracle.apps.fnd.framework.OAException.wrapperException(Unknown Source) at oracle.apps.fnd.framework.webui.OAPageErrorHandler.prepareException(Unknown Source) at oracle.apps.fnd.framework.webui.OAPageErrorHandler.processErrors(Unknown Source) at oracle.apps.fnd.framework.webui.OAPageBean.processFormRequest(Unknown Source) at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(Unknown Source) at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(Unknown Source) at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(Unknown Source) at _OA._jspService(_OA.java:71) at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59) at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:462) at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594) at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518) at javax.servlet.http.HttpServlet.service(HttpServlet.java:856) at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:713) at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370) at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871) at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453) at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:221) at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:122) at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:111) at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260) at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:239) at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:34) at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:880) at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303) at java.lang.Thread.run(Thread.java:595) ## Detail 0 ## java.lang.NullPointerException at xxdpe.oracle.apps.ak.xxdpecontain.webui.XXDPECONTAINLINESCO.processFormRequest(XXDPECONTAINLINESCO.java:123) at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(Unknown Source) at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(Unknown Source) at oracle.apps.fnd.framework.webui.beans.layout.OAMessageComponentLayoutBean.processFormRequest(Unknown Source
Thnaks
Maybe you are looking for
-
ISE 1.2 Multi-Portal Identity Group Mapping
Hi, Quick question regarding the use of Multi-Portal on ISE 1.2: Is it possible to map a single portal to a certain identity group? e.g. I have a portal for guest users, to which only users in the "ACME_guests" identity group can authenticate. I have
-
I'm running Mac OS X 10.8.1 on a 24-inch, Early 2009 iMac. I have a USB-connected Epson R2400 printer. I was having trouble in Photoshop where I couldn't get the printer settings dialog to appear. I figured maybe the drivers needed to be re-install
-
Hi, I am writing an About dialog that is just a frame filled with an image that I have made for the About screen. The problem is that I want the image size to be exactly fit to the JFrame. setBounds seem to be not right when I setBounds to the Image
-
PO Header change history for Foreign trade data
Hi, If we change the mode of transport in PO header, it is not getting updated in the change log of PO header. How to make it for appearing in change history of table EIKP? Regards, Vengat
-
The keyword bind seems to BE a bug
Anyone else noticed that "bind" contains that many bugs that one might even say it IS a bug? It's just terrible. Sometimes it matters on which line in the code I write it, no matter if the other lines affect the data behind the bound variable. Also I