Insert script into html file
Hello,
I am using jdev 10.1.3. In my Project, I cannot add script to html file, because there is not any icon on the component paletta>html common.
Also there is not any jsp page on the paletta too.
Do you know anything about this issue? Am I change jdev release or is there anything that I can do on this release?
this should work
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"%>
<%@ page language="java" contentType="text/html;charset=iso-8859-1"%>
<html>
<head>
<title>TEST PAGE</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>
<meta http-equiv="Content-Script-Type" content="text/javascript"/>
<meta http-equiv="Content-Style-Type" content="text/css"/>
<script language="JavaScript" src="javascript/ClientFunktionen.js"></script>
</head>
<body>
<h1>TEST</h1>
</body>
</html>If you don't use struts, remove the tablib entries.
Timo
Similar Messages
-
Anyone know how I can insert a javascript command into my iWeb page? My teamspeak provider gives me a script,but I'm not sure how to insert it.
So it sounds like this code snippet will display something on the page. In that case, you will need to follow the "standard" steps to add external HTML code into your page. Here is a thread where I have gone through the process in steps. The thread is actually about adding an ad banner, but the steps and principles are the same: Reserve space on the page in iWeb, then find the space in the published HTML file and replace it with your code. Here's the link....
http://discussions.apple.com/thread.jspa?messageID=2446855�
If you have any questions, please don't hesitate to post them here. Good luck! -
Loading different banners into html file depending on screen width? (Responsive)
I have a html file that has my banner in it. I call my banner into the html file with this script in the head section: <script type="text/javascript" charset="utf-8" src="banner_edgePreload.js"></script>
I also have a second banner called banner2. So all I have to do to switch the banners in my html file is put a 2 after the word banner in the script above ^ because they use the same resources.
Now im trying to get it to change from banner to banner2 when screen width is 1200 or less.
I was using this code but it doesn't seem to be working:
<script type="text/javascript" charset="utf-8" src="banner_edgePreload.js"></script>
<script type="text/javascript" charset="utf-8" media="screen and (max-device-width: 1200px)" src="banner2_edgePreload.js"></script>
Any ideas on how I can get this to work?
Thanks!Not sure if this is what you are looking for
Different Banners (and sizes) for different pages? - Squarespace Answers -
How to insert characters into a file using Labview
I have collected acoustic data that I am turning into wav files. After the collection, I now know the file size and need to insert the wav file header on top of this file. Can anyone tell me how to concatenate two files, or insert the wav header (string) data into the other file? My current method is very inefficient. The collected data file can become extremely large, so I am trying to avoid reading this file. I would rather poke data into it without overwriting any existing data. Thanks in advance.
hello
See attached vi. It is a modification of NI warite wav vi. It only writes header. So Write a default header, append your data and write heder again using the number of bytes of audio.
Hope this helps.
"Qod natura non dat, Salmantica non praestat"
Attachments:
Cabecera_Wav.vi 77 KB -
How to export spool file into HTML file
Hi,
I have one Oracle procedure which meets our business requirement. I am keeping the output data into a log file and I am sharing that log file to the users.
Sample Code:
spool path\logile.log
declare
begin
dbms_output.Put_line('output will come here');
end;
Now I want to spool the same output data into a HTML file and need to share with the users.
Can any one please guide me, how to export our spool data into HTML format?
Thanks in advance.Hello 909127,
welcome to the forum.
This is the forum for the tool Oracle Reports, not a general forum for reporting. Your question might be better posted in {forum:id=75} or {forum:id=144}.
Nevertheless you need to give us more information, how your output looks like now and what you expect in HTML.
Regards
Marcus -
Converting Smartforms output content into HTML File
Hi,
I have a requirement, Smartforms output contents needs be converted as HTML File and it should be sent as email.
I am able to get the Smartforms output in html format but the output is shown as binary format.
After the fm call the job_output_info parameter is holding the smartforms output content in
job_output_info-XMLOUTPUT[] (xsf content)
job_output_info-XMLOUTPUT-STSHEET[] (css content)
job_output_info-XMLOUTPUT-TRFRESULT[] (html content)
Help me out how to handle the job_output_info details to html format.
Code
DATA v_fm_name TYPE rs38l_fnam.
DATA v_tdsfname TYPE tdsfname VALUE 'ZVR39_SF'.
DATA output_options TYPE ssfcompop.
DATA job_output_info TYPE ssfcrescl.
DATA document_output_info TYPE ssfcrespd.
DATA job_output_options TYPE ssfcresop.
DATA w_control TYPE ssfctrlop.
*-Finding the Smartform Layout Name
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
formname = v_tdsfname
IMPORTING
fm_name = v_fm_name
EXCEPTIONS
no_form = 1
no_function_module = 2
OTHERS = 3.
*-Defining the output to HTML Format
*-Activating XSF Output
output_options-xdfcmode = 'X'.
output_options-xdf = space.
output_options-xsfcmode = 'X'.
output_options-xsf = 'X'.
output_options-xsfoutmode = 'A'. "
output_options-xsfoutdev = 'P863'.
output_options-xsfformat = 'X'.
*-Calling the Smartform Layout
CALL FUNCTION v_fm_name
EXPORTING
output_options = output_options
user_settings = 'X'
IMPORTING
document_output_info = document_output_info
job_output_info = job_output_info
job_output_options = job_output_options
EXCEPTIONS
formatting_error = 1
internal_error = 2
send_error = 3
user_canceled = 4
OTHERS = 5.
GiriHi,
Check this link.In that,I am converting the output of smartform to PDF and then attaching it through mail.
https://sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/abap/abap code samples/smartforms/smartform in abap.pdf -
Automatically splitting documents into Html files
Hi,
I would like to generate several HTML files from a single FM document. Splitting should be done at the 'Heading 1' paragraph level, or the like.
By reading the program's documentation, it seems FM9 can do this splitting automatically: in "Generating Ouput > Generating HTML > Preparing documents for conversion to HTML > Create links that simulate a TOC" you can read:
"Adjust your document’s mappings so that a heading starts a new file. Do this by using the Start New, Linked Web Page option in the HTML Setup dialog box."
Now, the File > Utilities > HTML Setup dialog box in the program does not appear to contain this option. I cannot find it anywhere else. I'm for sure looking for the wrong option, but would be grateful if someone can point me toward the right place where to look at.
Paolothis video from Adobe TV makes Frame9/Robohelp/HTML look pretty easy:
http://tv.adobe.com/watch/single-sourcing-and-multi-channel-publishing-in-technical-commun ication/single-sourcing-documentation-in-adobe-technical-communication-suite-25
I know the original post said the HTML files were from a single Framemaker document (not multiple chapters in a book) but I thought this video would be an interesting watch for the Original Poster anyways. -
Dear all,
How i will print the result directly to the html file instead of print output in the console.
Give the sample code.
Thanks & Regards,
kumarHi kumar :)
I'm not sure if this is what you mean but Jakarta has an Element Construction
Set (ECS) API that can generate elements for HTML and XML mark-up
languages.
Please checkout their site: http://jakarta.apache.org/ecs/ -
Can i embed HTML file into HTML file?
Recently i learn to design and code my website from scratch with some help from my friend and asking here and there.
I want to make it easier for editing so i make header and footer. At first i want to embed header.html and footer.html into index.html, as my friend said index.html is more google friendly than index.php
I can't find the answer anywhere for embedding HTML into HTML, is there a way?
My website is at http://www.baliweddingphoto.com
Probably you guys can check and help me embed .html into .html
Thanks before.Already did, i'm glad to hear from MurraySummers and Rob Hecker2 that no differences between index.html and index.php, so i will stick on using my index.php
Now i can sleep well and continue my code learning without doubt
Thanks Guys. -
Hi there,
I would like to import or insert a pdf file (acrobat) into an
html document
and be able to write above and below the document. I have
copied the document
into MS paint and saved it as a gif file and inserted it that
way...Is there any more
direct way to do this? I have not been able to copy and paste
directly into DW from
adobe acrobat....Please advise!!
Thanks abunch!
RCcrash wrote:
> Adobe Acrobat is a plugin, and as such it requires the
plug-in to view. You
> cannot "mix" a pdf and HTML AFAIK. The PDF must be view
in the PDF
> application.
>
> You can, of course, convert your PDF to any image format
and place it within
> your content as you've done.
>
> You might try using frames, but I don't know how
successful that would be
> (sounds a bit nightmarish to me).
>
> HTH,
>
> Jon
>
> "rcshell" <[email protected]> wrote in
message
> news:e48u6r$nmi$[email protected]..
>> Hi there,
>> I would like to import or insert a pdf file
(acrobat) into an html
>> document
>> and be able to write above and below the document. I
have copied the
>> document
>> into MS paint and saved it as a gif file and
inserted it that way...Is
>> there
>> any more
>> direct way to do this? I have not been able to copy
and paste directly
>> into
>> DW from
>> adobe acrobat....Please advise!!
>> Thanks abunch!
>> RC
>>
>
>
Or you could convert the pdf to FlashPaper, then insert as
you would an
image. You choose the size. -
Hi,
I' m developing a form that, when submitted, generate (using
cfdocument) a PDF with the content of form fields and send it as
attachment to an email that is sent to a specific mail adress.
Now, my questions are:
- there is a way to disable cut and paste on that generated
PDF using only coldfusion?
- there is a way to insert into generated PDF a script for
the expiration of the document itself?
Tnks for help
p.s.
I'm Using CFMX7.02 std.What you are describing should not be caused by the script, but the
best PDF placer script I've seen is Scott Zanelli's script here: http://indesignsecrets.com/zanelli-releases-multipageimporter-for-importing-both-pdf-and-i ndd-files.php
Harbs -
Hi all,
I don't know if my question has already been answered in former postings so excuse if it has.
I have a textfile opened as RandomAccessFile for read and write. Now I'm looking for a string in this file by this code:
do{
sText=fFile.readLine();
while (!(sText.equalsIgnoreCase("Information")));
Now I want to extend the String "Information" with "read=1" so the complete string is "Information read=1" and want to write this back in my File. Now I have two problems:
1. How can I replace the old "Information" in my file with my new string?
2. How can I prevent overwriting the following data?
Please help
Thanks in advance
MarkoI also thought copying the whole file into a string but this function is part of an often used class and the file's sitze may vary up to some megabytes with many "information" strings inside so this may cause problems.
Hello,
if this file isn't too big, I would prefer to load the
hole file in a string and simply insert " read=1"
behind the "information" position in that string. When
this is done simply write the hole string back to the
file.
greetings
Marsian -
CQ inserting divs into HTML output?
Hey y'all,
I'm working on a project using CQ5.5 and am noticing a bizarre result in the HTML that I am getting from my templates. I'm noticing divs inserted that appear nowhere in my jsp files that I can only assume are being put there by CQ (because the naming convention "cq-gen#" appears). Example below (textandheading is the name of a custom component I created):
<div id="cq-gen7" class="textandheading text parbase textheading cq-element-textheading">
This wouldn't be a problem except that some of these divs are overriding the styles from the CSS I'm using and causing my text/images etc to display incorrectly. Has anyone experienced anything like this before? It's inserting a whole bunch of divs like the one I pasted in above all over the place. I would like to find a way of removing these divs from my HTML output.
Thanks in advance for your help!Please try the suggestions mentioned in http://forums.adobe.com/message/4294983
Jörg -
Inserting data into a file in Webdynpro java
hi,
My requirement is, i am using html code in my webdynpro application. i want to send the html code to a file(.txt file) .can any body help me how to send the data to file in webdynpro java.
thans,
kishoreHi,
For export file in format XML, TXT, ...
continue steps
1) create node with name FileResource and type binary
2) create view and add control filedownload and properties control set data binding node FileResource
3) create following code
//@@begin javadoc:wdDoInit()
/** Hook method called to initialize controller. */
//@@end
public void wdDoInit()
//@@begin wdDoInit()
IWDAttributeInfo attInfo = wdContext.getNodeInfo().getAttribute(IPrivateExportListView.IContextElement.FILE_RESOURCE);
IWDModifiableBinaryType binaryType = (IWDModifiableBinaryType) attInfo.getModifiableSimpleType();
binaryType.setFileName(ExportListView.FILE_NAME);
binaryType.setMimeType(WDWebResourceType.TXT);
try {
String resourcePath = WDURLGenerator.getResourcePath(wdComponentAPI.getDeployableObjectPart(), ExportListView.FILE_NAME);
wdContext.currentContextElement().setFileResource(this.getByteArrayFromResourcePath(resourcePath));
} catch (WDAliasResolvingException e) {
wdComponentAPI.getMessageManager().reportException(e.getLocalizedMessage(), true);
} catch (Exception e) {
throw new WDRuntimeException(e);
//@@end
and add following code
//@@begin others
private byte[] getByteArrayFromResourcePath(String resourcePath) throws FileNotFoundException, IOException {
FileInputStream in = new FileInputStream(new File(resourcePath));
ByteArrayOutputStream out = new ByteArrayOutputStream();
int length;
String Prueba = "hola esto es una prueba" + new Date().getSeconds();
//byte[] part = new byte[10 * 1024];
byte[] part = Prueba.getBytes();
while ((length = in.read(part)) != -1) {
out.write(part, 0, length);
out.write(Prueba.getBytes());
in.close();
return out.toByteArray();
// store image file name in constant FILE_NAME
private static final String FILE_NAME = "doc.txt";
//@@end
4)Create file ext(txt,xml,...) in following dir of the project
...\_comp\src\mimes\Components\com.prueba.ReporteComp
regards from colombia-medellín -
Is there a way to insert AFDs into a file upon export?
I don't *think* this is possible, but I wanted to get confirmation. Can Premiere insert an AFD flag to a file upon export?
AFD = Active Format Description. A flag contained in either a file's metadata or VANC that tells a receiver/IRD/set-top-box how to display an image. For example, an HD file/stream may contain an AFD flag for 16:9 Letterbox, so if the file/stream is downconverted the receiver/IRD/set-top box will display the SD version letterboxed, as opposed to center cut, anamorphic, etc.
I know there are a lot of hardware items that can insert AFDs (AJA FS1, FS2, etc) and dedicated transcoders (FlipFactory, Carbon Coder, Elemental) but it would seem like this is something an editor could do as well. Maybe not, but I'd like to know for certain...
Maybe you are looking for
-
HELLO FRIENDS, WHILE DOING A GR WITH RESPECT TO A PURCHASE ORDER THE STOCK ACCOUNT GETS DEBITED AND THE GR/IR ACCOUNT GETS CREDITED. NOW MY QUESTION IS THE AMOUNT WHICH SHOWS IN THE STOCK ACCOUNT ASWELLAS THE GR/IR ACCOUNT IS WHICH AMOUNT TAKEN FROM
-
Plug-ins in Photoshop CS3 Extended are disabled when editing a photo from lightroom
When using Lightroom 1.4.1 and editing a photo dng in Photoshop CS3 Extended alot of my plug-in filters are disabled. Please Help! I am on a IMac Version 10.5.3, 2.16GHz Intel Core 2 Duo, 1.5 GB SDRAM. I have everything updated. I have also tried dif
-
Could anyone help. I just realised that my touch screen doesn't work. The phone has never fallen or touch water. What should I do?
-
Apple's announcement was pretty shock. Flash (and also flex) won't be in iPhone. Then, will AIR be on iPhone?
-
on the ipad version how can i aligned the title. i see on their templates the ability to left center or right alignment. on my tables it is always centered