Javascript gets invisible
Hi Experts,
I'm trying to get some javascript code into a xsl file which is responsible for the rendering of a xml file created with the wep page composer. I tried the following:
<xsl:text disable-output-escaping="yes">
</script>
document.write("Hallo");
</script>
</xsl:text>
When I'm looking into the source code of the rendered document, I can't find these lines. When I'm trying something like this:
<xsl:text disable-output-escaping="yes">
"Hallo"
</xsl:text>
it is displayed in the page. I also had this problem (javascript is removed automatically) when I want to add some js into a jsp page. What do I have to regard when implementing javascript? Thank you!
Edit: The / char in the first script tag is required for displaying the code in this threa, otherwise it doesn't show the code.
Hi,
the javascript is suppressed because of the xsl tags around it. When I use
</script>
alert
</script>
it works. But I can't put any " chars in the code because they get replaced. Is there any possibility to avoid this? I tried <xsl:script language="JavaScript">....</xsl:script> but that does not work. Maybe any other xsl tags where I can set the property html
Similar Messages
-
I would like to display a "Confirm message box " with javascript , eg Confirm ("Sure to Delete (Y/N") , the confirm message should depend on some condition from session bean . For example , if the user select the current lanuage on Login , session bean should keep a value to store the current language , afterward if the user delete a record , the content of the confirm message will depend on the lanugage which the user selected .
Do anyone can help me how to get a value from session in javascript .
ThanksHi,
You can create invisible static field (or other component) bound to session bean property you need. In JavaScript, you can get value of this static field.
Thanks, Misha
(Creator team) -
Resizing problem , table inside panel gets invisible
when i reduce the size of the panel,
the table inside that panel get shrik at its max almost invisible.
what is the way to avoid this?If you need further help then you need to create a [url http://homepage1.nifty.com/algafield/sscce.html]Short, Self Contained, Compilable and Executable, Example Program (SSCCE) that demonstrates the incorrect behaviour, because I can't guess exactly what you are doing based on the information provided.
Don't forget to use the [url http://forum.java.sun.com/help.jspa?sec=formatting]Code Formatting Tags so the posted code retains its original formatting. -
How does javascript get string from applet?
hi, sir/madam:
I use an applet to deal with simulation, make the results to be a string and want to save it in a text file. Certainly, using applet to write local file is not good method (though I have some idea about it). I want that javaScript write something in browser and I save it with my mouse (manual) as a text file.
thank for your help.
xn
could javaScript write/read local file?There is a nice JavaScript forum that you can visit if you have tough JavaScript questions:
http://forums.webdeveloper.com/forumdisplay.php?s=a23bf83c088c66ac3adde0c3c5616bae&forumid=3
I'm not implying that ppl here don't know JavaScript or anything like that.....
In answering your questions, a Java applet can read from and write to local disk if proper permissions are granted either via a signed applet or setting the Java access right. Signing an applet can be a royal pain in the butt because you have to sign it one way for IE, another way for NN4, and yet another way if you use a plugin, etc....but here is a link in case you're interested:
http://developer.java.sun.com/developer/qow/archive/167/index.jsp
A JavaScript definitely cannot read from or write to a local disk unless you get help from something like MS ASP or VB scripts. The only reason you were able to read thru the appletviewer is because it's not a true browser and it's written by Sun to work with their own product.
As far as using javascript to get information from an applet, you can try to make your applet scriptable via Netscape JSObject. I know for sure it works with IE and NN4+ but last time I tried, Sun and Netscape were still having trouble getting LiveConnect to work properly with NN6+.
And there you have it.
;o)
V.V. -
Hi there,
I am using some client side javascript, does anybody know what function I can use to get a label for an item, can I use the $x function? thanks, AnilHi,
You can query APEX_APPLICATION_PAGE_ITEMS view
Regards,
Jari -
ANYONE KNOW WHERE TO GET Invisible Shield FROM A UK SITE?
I want to get this: http://www.shieldzone.com/item_description/APPMCBF.html
But anyone know where to get it from in the UK?
I've also seen this:
http://cgi.ebay.co.uk/MacBook-Palmrest-Shield-palm-hand-wrist-rest-protection_W0 QQitemZ180135792711QQihZ008QQcategoryZ141177QQssPageNameZWDVWQQrdZ1QQcmdZViewIte m
and this: http://cgi.ebay.co.uk/MacBook-13-Top-case-Anti-Scratch-Protector-cover_W0QQitemZ 180136037644QQihZ008QQcategoryZ4601QQtcZphotoQQcmdZViewItem
But can anyone help with the Invisible Shield please...
And has anyone used it before, how good is it?
Thanks.get a total body skin from www.bestskinsever.com
they also ship internationally.
they are exactly the same thing as the invisible shield but cheaper and they have
great support if u mess up the application. (ie they will send you a replacement)
i have it on my blackbook and it looks great. -
Javascript get.clear('RP');
I am using this function to reset the pagination for a report. However, I couldn't find any
documentation on this function. Can it be used to reset the pagination of any page or it is
just for the current one?
Denes Kubicek
http://deneskubicek.blogspot.com/
http://www.opal-consulting.de/training
http://htmldb.oracle.com/pls/otn/f?p=31517:1
-------------------------------------------------------------------Hi Denes, Carl,
I need to incorporate a repaginate call in one of my javascript functions, so as to conditionally reset pagination before refreshing a report with html_PPR_Report_Page(...).
I can't find anything on get.clear('RP').
I have:
//clear chatmsglist pagination
get.clear('RP');
//which doesn't work. Investigate.
//refresh the report
html_PPR_Report_Page (null,'R33122...
//which is fine
Could either of you - or anyone else - spell out how this might be done?
Thanks
jd -
Acrobat Javascript get Windows PDF creation time
Is there a way to get the Windows creation time of a PDF in Acrobat Javascript? When you copy a PDF the Windows creation time changes but the PDF creation time does not. I'm looking for a way to detect if someone copied the PDF.
I know you can get the PDF creation time through the info object but that isn't what I want. When you copy-paste a PDF in Windows the creation time of the info object doesn't change. It always stays the same so I can't detect a copy that way. I want the creation time that Windows provides. Is that possible?
-
Javascript - getting part of a string
I guess this is not a dreamweaver question per se, more
strictly javascript
but I know a lot of people here are pretty well versed so I
hope it is ok
if I ask here.
I have the strings
Method1 ($5.49)
Method2 ($9.99)
I wish to retrieve just the numerical values and assign them
to variables.
So I guess in pseudocode what I want is to get whatever lies
between the
character strings '$' and ')' leaving me with 5.49 and 9.99
respectively.
I've been fiddling with str.match and other regular
expression things which
I do not fully understand and so far no luck.
Any help is much appreciated.I know about regexp but don't know how to do what I need.
Anywhere in
particular you know of that can explain it? I've been stuck
trying to
figure it out for quite a while now.
"Franz Marksteiner" <[email protected]> wrote
in
news:f4diu5$7of$[email protected]:
> "E Eds" <[email protected]> schrieb im Newsbeitrag
> news:[email protected]..
>>I guess this is not a dreamweaver question per se,
more strictly
>>javascript
>> but I know a lot of people here are pretty well
versed so I hope it
>> is ok if I ask here.
>>
>> I have the strings
>>
>> Method1 ($5.49)
>> Method2 ($9.99)
>>
>> I wish to retrieve just the numerical values and
assign them to
>> variables.
>>
>> So I guess in pseudocode what I want is to get
whatever lies between
>> the character strings '$' and ')' leaving me with
5.49 and 9.99
>> respectively.
>>
>> I've been fiddling with str.match and other regular
expression things
>> which
>> I do not fully understand and so far no luck.
>>
>> Any help is much appreciated.
>
> Try to read into "RegExp" (Regular Expressions).
> RegExp will allow you to specify some pattern, and
extract parts (in
> your case the numerical ones) of it.
>
> -
CFAJAXPROXY / JavaScript: get @@IDENTITY ?
Hello, everyone.
(This is back on, now.)
Been giving this one a lot of thought, and just don't know enough about using CFAJAXPROXY to figure it out.
Another developer has created a CFC that has many, many functions in it. I'm using CFAJAXPROXY and JavaScript to access one or two of the functions.
One of the functions will add a row of data to a table with just a few of the columns populated with data (the rest are 'allow null').
What I'm trying to do is get the page to refresh with that new record populating some of the form fields. The data that populates is chosen by a CFSELECT tag with an onChange event.
Can anyone think of a way, via JavaScript, to get the @@IDENTITY of the data that was just entered into the table? If it were pure CF, I'd just put another query immediately after the insert query, and surround both of them with a CFTRANSACTION tag. But I don't think JavaScript has an equivalent.
Thanks,
^_^cfsilence wrote:
cfajaxproxy is just a - proxy - that calls the server side component via Ajax so if you need to return the ID of the newly created record you can just return it from the component and the ajaxproxy should get the value. You might also want to look at getting the generated key/id via cfquery's result attribute instead of using @@Identity.
Unfortunately, I don't think modifying the method is an option; it's currently returning a string that is the query generated to insert the data into the table.
Is there a way to access the generated key/id from the query that is being run by the method?
Thanks,
^_^ -
CFAJAXPROXY / JavaScript: get @@IDENTITY of data just entered
Hello, everyone.
Been giving this one a lot of thought, and just don't know enough about using CFAJAXPROXY to figure it out.
Another developer has created a CFC that has many, many functions in it. I'm using CFAJAXPROXY and JavaScript to access one or two of the functions.
One of the functions will add a row of data to a table with just a few of the columns populated with data (the rest are 'allow null').
What I'm trying to do is get the page to refresh with that new record populating some of the form fields. The data that populates is chosen by a CFSELECT tag with an onChange event.
Can anyone think of a way, via JavaScript, to get the @@IDENTITY of the data that was just entered into the table? If it were pure CF, I'd just put another query immediately after the insert query, and surround both of them with a CFTRANSACTION tag. But I don't think JavaScript has an equivalent.
Thanks,
^_^Nevermind. I was just informed that I'm adding data to the database when I'm supposed to wait and add it, later. Sorry.
^_^ -
Part of javascript gets displayed on website
Hi for my webform I have a javascript validation function to
help make sure user's don't accidently leave some parts blank. Well
the validation part works great. However, when I load up the
webpage it displays part of the javascript at the top.
Here is a link so you can see for yourself:
http://www.drmarcverner.com/eforms/patient_registration_text_leftalign.htm
I hope somebody knows how to fix this.
Thanksnevermind. I just realized that i'm an idiot and accidently
had stuff outside of the <script></script> tags.
Sorry to waste your time. -
Air Javascript - Get path from user selected directory
Solution: The resulting variable is just an air.File, and
nativePath is accessible, as I expected. It just did nothing the
first few times I tried it.Try this:
SPPlatformFileSpecification spec;
// do sADMBasic->StandardGetDirectoryDialog()
ai::FilePath path;
sAIFilePath->SetFromSPFileSpec(spec, path);
Then talk to path to get your location. Hopefully that does the job. I've never used StandardGetDirectoryDialog() though, so for all I know its broken. -
Adobe InDesign CS5 Server JavaScript: Get rectangle by XML tag
Hi,
Current set-up:
Adobe InDesign Server CS5 scripted through ExtendScript via PHP SOAP
The problem:
I'm currently placing an image file into a rectangle using the following code:
frame = doc.rectangles[0];
imgList = frame.place(new File(img));
This works fine; the img file is placed into the rectangle as expected. However, this only refers to the first rectangle in the document: if I have two rectangles in the document, the image is placed into the last created rectangle.
What I'd ideally like to be able to refer to the rectangle by its XML tag - something like:
frame = doc.getRectangleByTag('Pic'); // <Pic> being the name of the XML tag
imgList = frame.place(new File(img));
Does anyone have any advice as to how this can be achieved? I realise this is rudimentary question, but am finding no joy after several hours of searching.
Many thanksWhat I'd ideally like to be able to refer to the rectangle by its XML tag - something like:
frame = doc.getRectangleByTag('Pic'); // <Pic> being the name of the XML tag
imgList = frame.place(new File(img));
Are you sure you want to do it this way?
Could you explain why? I suspect there is a better solution.
In any case, at least in my test case, the XML tag is associated with the image inside the frame and not the frame itself. So if you want the frame, you must get the image associated with the tag and then go up to the parent. This works in a simple test:
var frame =
app.activeDocument.xmlElements[0].
evaluateXPathExpression("//tennis")[0].
graphics[0].parent;
[object Rectangle] -
Csom javascript get Document Libraries with particular Content Type
I need to filter result to particular content types fo document library. I cannot seem to retrieve the content type of library. How is this <g class="gr_ gr_29 gr-alert gr_gramm Punctuation multiReplace" data-gr-id="29" id="29">possible.</g>
When I try with oList.get_contentTypes() <g class="gr_ gr_28 gr-alert gr_spell ContextualSpelling only-del replaceWithoutSep" data-gr-id="28" id="28">object object</g> is being returned.
function retrieveAllListProperties() {
var clientContext = new SP.ClientContext();
var oWebsite = clientContext.get_web();
this.collList = oWebsite.get_lists();
clientContext.load(collList);
clientContext.executeQueryAsync(
Function.createDelegate(this, this.onQuerySucceeded),
Function.createDelegate(this, this.onQueryFailed)
function onQuerySucceeded() {
var listInfo = '';
var listEnumerator = collList.getEnumerator();
while (listEnumerator.moveNext()) {
var oList = listEnumerator.get_current();
listInfo += 'Title: ' + oList.get_title() + oList.get_contentTypes() + '\n';
alert(listInfo);
}oList.get_contentTypes() returns a collection and hence it needs to be iterated to get information about each content type.
UPDATE
var clientContext = new SP.ClientContext.get_current();
var oWebsite = clientContext.get_web();
var collList = oWebsite.get_lists();
clientContext.load(collList, 'Include(ContentTypes, Title)');
clientContext.executeQueryAsync(onQuerySucceeded, onQueryFailed);
function onQuerySucceeded() {
var listInfo = '';
var listEnumerator = collList.getEnumerator();
while (listEnumerator.moveNext()) {
var oList = listEnumerator.get_current();
listInfo += 'Title: ' + oList.get_title() + '\n';
var ct_enumerator = oList.get_contentTypes().getEnumerator();
while (ct_enumerator.moveNext()) {
var ct = ct_enumerator.get_current();
var contentTypeName = ct.get_name();
alert(contentTypeName);
alert(listInfo);
function onQueryFailed(sender, args)
{ alert('error'); }
Maybe you are looking for
-
What are the steps in configuring the PA
hi, can u help in configuration of PA (Personnel Administration) what r the steps.wht is the process. Thanks n Regds, Archana.
-
Using Remote Desktop on older iMacs
If I buy the current Remote Desktop will I be able to monitor my kids' older iMacs? Their max OS is 10.7.5. The mac that I am using is running Yosemite. Or would I have to find an older version of Remote Desktop? Once upon a time I lived with an I
-
Terminals bouncing between AP's
We just installed WCS, 2 WLC 4402's with 29 1131 AP's. I have a user who is half way between 2 AP's. He keeps bouncing between the 2 AP's and gets a pop up message each time he does. He has an IBM T43 with a built in wireless card. How can I keep him
-
Cannot access pacman man page since update...
Okay, so I just updated pacman to 3.1.1-1, and I can't access pacman's man page. I checked and found that the page does exist on my system (I think, /usr/man/man5/pacman.conf.5.gz and /usr/man/man8/pacman.8.gz both exist). When I try execute 'man pac
-
Enabling Parallel Calc (CALCTASKDIMS)
Hi,I'm looking for information related to the CALCTASKDIMS function. The issue is to identify additional tasks for parallel calculation. As I rode it in DBA guide, Essbase uses the last spare dimension in an outline to identify tasks that can be perf