Use of HTML and Javascript within EP

I have a newbie question:
I have several HTMl documents with javascript embedded like e.g. various calculators we use on the current website.
If I want to migrate these html sources to EP content, what can I best do than?
I assume that all existing html and javascript renders as normal without too many development involved?
Is there a good example how-To source which I can use to demonstrate this?
many thanks for your help

Hi,
Well there are two options:
<b>1) If you are interested to make the portal component and then use in Portal.
2) If you want to use your earlier HTML document as it is inside the portal.</b>
In case 1 you need to make the Portal objects and then make a portal project. You can use javascript in that as well.
In case 2 you can directly make the URL iView of the HTML document and then view it from the portal. Well this is not a good way of using your javascript. Personally I suggest you to go for Portal Project.
I hope this help you!!
Regards
Pravesh
PS: Please consider reewarding points.

Similar Messages

  • Can I package an app using just html and javascript and not flash ?

    Hi :
    Sorry for the question, but I'm a little confused. 
    I know I can use javascript with adobe air, I made some test and works great, but I'm not sure if my app will work in an iphone after I build the package.
    Thanks in advanced.

    No, that's not supported in this version of PFI.  From the Developer Guide: "You cannot write HTML- and JavaScript-based AIR applications for the mobile device profile."

  • What HTML and JavaScript engine is used within Adobe AIR on the desktop?

    HTML and JavaScript within Adobe AIR are handled by the WebKit HTML/JavaScript engine.

    I've made a little headway with this. Within your initHandler just make a call to login:
    FacebookMobile.login(loginCallback, this.stage, [], webview);
    webview is a StageWebView instance with the viewPort defined. If I left it null, or didn't set the viewPort nothing happens...
    var webview:StageWebView = new StageWebView();
    webview.viewPort = new Rectangle(0,0,400,400);
    I'm now getting a login screen.

  • How best to store 10KB file with html and javascript

    Hello,
    I am using Oracle 11g and pl/sql.
    I want to store a 10KB of text into a table. The text has many html and javascript characters.
    What type of table column should be used for text of this size and type?
    What is the best or easiest way to get the text into the table on a regular basis?
    Should I read it from a file? Or, ideally, I would like to paste the text into a textbox in the same way it is done here when submitting questions to this forum.
    Any suggestions are greatly appreciated.

    CLOB

  • Simple HTML and Javascript iView

    Hello,
    I am new to portal content development so please just point me in the right direction...
    I have a simple requirement to render some HTML and javascript in an iView for EP 6. I do not need to pull anything from a backend system etc so I think this is a pretty straight forward work.
    Any suggestions?

    Hi,
    There are two ways, you can achieve this:
    1. To create a AbstractPortalComponent and include your HTML as resource in responce.
    Check this example, where a JSP is included in responce you should put your HTML and also IResource type as IResource.STATIC_PAGE
    IResource staticResource = request.getResource(IResource.STATIC_PAGE , "html/checkres.html");
    http://help.sap.com/saphelp_nw70/helpdata/EN/49/4dae42cb9f0f31e10000000a1550b0/frameset.htm
    2. You can place your HTML and Javascripts in KM and use the KM Doc IView to show them.
    http://help.sap.com/saphelp_nw70/helpdata/EN/fc/cf14bcd42911d5994400508b6b8b11/frameset.htm
    If you want to have the flexibility to change the HTML quite often with out redeploying the par file then choose option 2.
    Regards,
    Praveen Gudapati

  • Sending Email using both HTML and plain text

    I could use some advise on how to start researching email for
    both HTML and plain text messages.
    I have a script called class.phpMail.php, but the code is
    alittle advanced for me. Basically I can't get
    it to work on my server and I don't know where to begin the
    learning process here.
    I talked to my provider, "HOST" company goDaddy.com and I was
    told that to connect so that I could send email I would need this
    line of code. They didn't say it should by in my php.ini file but
    that was where I found it.
    SMTP = relay-hosting.secureserver.net
    This is the smtp address that my provider uses to make the
    connection with my mail client.
    I was told that with this line of code I would not need a
    password or username
    I did some further reseach and I found an article that stated
    that my original error:
    Warning: fsockopen() expects parameter 2 to be long, string
    given in ...../php/class.smtp.php on line 105
    was being caused by this code because the $port value needed
    to be between 1 - 65365:
    $this->smtp_conn = fsockopen($host, # the host of the server
    $port, # the port to use ----- "this is line 105"
    $errno, # error number if any
    $errstr, # error message if any
    $tval); # give up after ? secs
    In particular the $port value was coming in corrupted and
    that I needed to cast it.
    I did as they suggested and made it an (int) as they
    suggested.
    $this->smtp_conn = fsockopen($host, # the host of the server
    (int)$port, # the port to use
    $errno, # error number if any
    $errstr, # error message if any
    $tval); # give up after ? secs
    It resolved part of the error message however, the other half
    of the error message is shown below:
    Message could not be sent.
    Mailer Error: Language string failed to load: connect_host
    What exactly is the connect_host they refer to in this
    message?
    Would it be the string in my php.ini file refering to the
    SMTP = relay-hosting.secureserver.net
    I have allot of what I think are disconnected questions as I
    really have just begun to work
    with the mail() function. If anyone has the time to educate
    this newbie into the wonderful
    world of email() I would appreciate it.
    Thank You
    Kevin Raleigh

    Sorry to dig up an old post, but we've spent the last few days trying to work out why an email campaign being sent from BC is going into the Junk folder of recipients that use MS Exchange. We've fixed quite a lot of issues, including the fact that Legacy Templates have random JS injected just before they get sent, so we had to switch to the new template system. We've narrowed the issue down to one of three things:
    1. A missing alt tag on the tracking image that BC drops into the email (pretty unlikely)
    2. The BC Europe IP (54.240.14.45) is blacklisted here: UCEPROTECTL2 (possible, but if you actually look it's not the IP itself, but another IP on the same network, so unlikely)
    3. The fact that the HTML email has no text component.
    I agree, BC is late on this but I think that it needs to be added, even if most users have HTML-ready email clients, spam checkers do seem to prefer multi-MIME emails.
    This is backed up by the following SpamAssassin rule, which we are currently unable to resolve:
    -1.105
    MIME_HTML_ONLY
    Message only has text/html MIME parts
    You should also include a text version of your message (text/plain)
    So in my opinion, BC do still need to add this as a feature, otherwise the system is not viable for our customers and we'll have to look elsewhere.

  • Anychart: Bug when using chart template and Javascript

    Hi all,
    When I create a chart using custom xml and a template -
    <templates path="#IMAGE_PREFIX#Chart_templates/my_chart_template.xml"/>If I call toggle a series using some javascript:
       var chart = getChart(); // function created by the chart embedding javascript to capture a reference to the chart object
       chart.showSeries('population_average', $('input[is_series_toggle="true"]').is(':checked'));
       chart.refresh();The series is toggled correctly but the chart is refreshed without applying the chart template, so it looks ugly.
    Anychart claim this is an Apex specific issue because Apex uses a special build of Anychart? Anyone else encountered this problem and have a workaround. Or any other suggestions would be welcome.

    Hello Sara,
    The behavior you are describing is a long time known issue. It is a bug that should have been resolved by now, but for some reason was not. Maybe it’s because none of the default (built-in) page templates is using images with TABs.
    The workaround is to create your own img tag in the appropriate page template section, using the #TAB_NAME# substitution string. The principle is to name your corresponding images like current_#TAB_NAME#.gif and non_current_#TAB_NAME#.gif, where the #TAB_NAME# part in the file name is replaced with the actual tab name. So, for a TAB called EMP, you’ll have two image files by the names current_EMP.gif and non_current_EMP.gif.
    Regards,
    Arie.
    &diams; Please remember to mark appropriate posts as correct/helpful. For the long run, it will benefit us all.
    &diams; Author of Oracle Application Express 3.2 – The Essentials and More

  • Use of Framesets and javascript in JSP

    Hello,
    In my main.jsp I have defined a javascrip function as follows which submits my form:
    function onclick() {
    document.getElementById("mainform").action = "<%=request.getContextPath()%>/MainController";
    document.getElementById("mainform").submit();
    In main.jsp I am using framesets:
    <form id="mainform" action="" method="post">
    <frameset rows="80%,20%" frameborder="1" border="0" framespacing="0" >
    <frame name="1" src="<%=middlePage%>" scrolling="no">
    <frameset cols="80%,20%" frameborder="1" border="0" framespacing="0">
    <frame name="2" src="pages/footer.html" scrolling="no">
    <frame name="3" src="pages/footer.jsp" scrolling="no">
    </frameset>
    </frameset>
    </form>
    In footer.jsp i have defined a Next button. Basically I want the middlePage (which is the jsp) to be changed on click of Next. I am developing this wizard based UI.
    However when I click next button in footer.jsp it tries to call the onclick() of main.jsp and it is not able to find it. Why this is so? If I inlucde the footer.jsp using <jsp:include> the onclick function is accessible from footer.jsp. then why not using framesets?
    Also another question: Should we use framesets for a wizard based UI? Or should we use divs and use Css to create left , right and middle panes?
    Abhijit

    Hi,
    Well there are two options:
    <b>1) If you are interested to make the portal component and then use in Portal.
    2) If you want to use your earlier HTML document as it is inside the portal.</b>
    In case 1 you need to make the Portal objects and then make a portal project. You can use javascript in that as well.
    In case 2 you can directly make the URL iView of the HTML document and then view it from the portal. Well this is not a good way of using your javascript. Personally I suggest you to go for Portal Project.
    I hope this help you!!
    Regards
    Pravesh
    PS: Please consider reewarding points.

  • Newby Question: Can AIR app have BOTH use HTML and Flex?

    I need to make a desktop app using HTML and JavaScript but I want 99% of the logic to be written in Flex.  Is that possible?
    Also, do I need to buy Flash in order to compile Flex?  Or does AIR SDK include a compiler?
    Pete

    Yes, it is possible.  For Air apps, Flex has an html control that is basically a self-contained webkit browser you can drop into your application.  You can insert html either by loading an html string, or pointing the browser to a particular location on your filesystem or on the internet.  As far as javascript, it can either be part of the site you load into the browser, or you can "cross-script" javascript in action script.  Cross-scripting may be better in certain instances, because then you can use controls written in flex to access or manipulate the html content.  To cross-script, you do something like this: var dom:Object = html.window.document, where "html" is the id of your html control.  Then, you can access javascript methods and properties through the dom object, like this: var p1:Object = dom.getElementById("p1").  See the webkit docs for available javascript methods and properties.
    No, you don't need to buy Flash.  The Flex SDK has a compiler.  You still might want to get Flex Builder (or the upcoming Flash Builder, which is the same as Flex Builder, but very different than Flash--not confusing at all...).  Or I think there are some third party IDEs for Flex, one or more of  which might be free, but I'm not sure.  I imagine it would be pretty hard for someone just learning flex and air to start building apps without Flex Builder.  Also, I think the beta of Flash Builder is still available for free, if you want to try it out.

  • Javascript, HTML, and some pictures

    Hello.
    Some background.
    We have Sharepoint Online 2013...the version that comes with the current Office 365 for businesses.  On one of our sharepoint sites, we want to create a rotating image.  I have put together for testing purposes an html file that will randomly rotate
    through a series of images. 
    I can embed the html and javascript into a page easy enough but where can I put image files, and how to I reference those in my code?

    Hi,
    A common practice is that you can upload the images to a Document Library in the current site, then you can get the URL of the images like this:
    We can see that, the path of images will have a similar structure and you can take use of it in your code easily.
    Best regards
    Patrick Liang
    TechNet Community Support

  • No HTML nor Javascript in wiki and forums...

    Hello,
    Particularly in BSP forums, I am not able to post messages that contain HTML and/or Javascript. I have got a security error I don't have with normal posts...
    It seems that the HTML and Javascript code parts are somehow interpreted, which results in an error. For example, one can write:
    document.getElementById(<id of button>).click();
    which is an invalid Javascript statement, but the same sentence with <id of button> replaced by a real Javascript character string raises an error...
    I also tried in the Wiki, but the same error occurs.
    Is there any way this can be avoided? Sometimes code samples are clearer than long explanations...
    Thanks and regards,
    Tanguy

    Hello,
    Particularly in BSP forums, I am not able to post messages that contain HTML and/or Javascript. I have got a security error I don't have with normal posts...
    It seems that the HTML and Javascript code parts are somehow interpreted, which results in an error. For example, one can write:
    document.getElementById(<id of button>).click();
    which is an invalid Javascript statement, but the same sentence with <id of button> replaced by a real Javascript character string raises an error...
    I also tried in the Wiki, but the same error occurs.
    Is there any way this can be avoided? Sometimes code samples are clearer than long explanations...
    Thanks and regards,
    Tanguy

  • Closing the browser windows created by web.show_document and javascript

    From Forms I am issuing a http request using web.show_document and javascript:window.open(). The http request makes a remote procedure call to a coldfusion component on a JRun appserver. I want this rpc to fire in the background so that the current forms browser window remains as is.
    The logic is as follows
    l_rpcURL := 'http://....just a standard URL.....'; -- edited for this thread
    l_jsURL := 'javascript:window.open("' || l_rpcURL || '","","fullscreen=no,titlebar=no,location=no,toolbar=no,menubar=no,status=no,resizable=no");self.close();';
    WEB.SHOW_DOCUMENT (l_jsURL,'_blank');
    The http request works fine but leaves a browser window behind. It's the one created by the javascript.window.open(). If I remove the self.close() from the javascript then I have two browser windows open, one from web.show_document and the other, as described previously, from the window.open().
    Any idea how I can force closure of the window opened by the window.open() ?
    Thanks

    Hi,
    did this occured afer installing service pack 2?
    A work around is The only solution that is to create a close.html file and calling this file in the code: Web.show_document('http://server:port/close.html','_self');
    <html>
    <body onload="closeit()">
    <script>
    window.close();
    </script>
    </body>
    </html>
    Monica

  • Loading HTML with javascript from SDCard

    Hi - my first post so please be kind
    My handset is a BES connected 8100 running v4.2.1.66.
    I've only recently discovered how to load files from the local media card using the file:///SDCard/example.html semantics, but I'm very frustrated I cannot seem to load scripts embedded in these files, that will load and run normally when the file is retrieved using http.
    Is there some magic extension I need to give my files to enable processing of scripts from local files?  I've tried the obvious file extensions without luck (htm, html, wml, jsp, asp).
    It seems to me that for local files the handset is setting the MIME type from the extension alone, given the error you get when you load a file with an unknown extension - "The returned page had no content type, and therefore cannot be processed."
    Can anybody help me shed any light on this behavior and how to get around my lack of javascript on locally loaded files?
    Feel free to slap me if this is a know bug in the software I'm running, or has been answered 50 times.
    Many thanks; Andrew.

    Under which folder we can put the html and javascript files. I have installed balackberry sdk4.6(i.e;
    Research In Motion\BlackBerry JDE 4.6.1).
    Objective:To open and see a local html file  in blackberry browser.

  • Image upload from HTML5 and Javascript

    I have been struggling with this since a week. 
    No tutorial on the web was able to help me.
    Here is what i am trying to do. I am trying to upload an image via HTML5 . I am confused on how i should send the image as. Should i send it directly the response from HTML5 File reader API or i should convert it to a blob and send it? I am able to upload
    text data. But when i upload image data. They won't turn up .

    You should send the data you read from File API. So in your code above, you should send the data in "requestData" variable. I wrote a blog post some time ago about uploading large files using HTML 5, jQuery and Shared Access Signature which you
    may find useful:
    http://gauravmantri.com/2013/02/16/uploading-large-files-in-windows-azure-blob-storage-using-shared-access-signature-html-and-javascript/
    Relevant code from that blog post:
    var reader = new FileReader();
    reader.onloadend = function (evt) {
    if (evt.target.readyState == FileReader.DONE) { // DONE == 2
    var uri = submitUri + '&comp=block&blockid=' + blockIds[blockIds.length - 1];
    var requestData = new Uint8Array(evt.target.result);
    $.ajax({
    url: uri,
    type: "PUT",
    data: requestData,
    processData: false,
    beforeSend: function(xhr) {
    xhr.setRequestHeader('x-ms-blob-type', 'BlockBlob');
    xhr.setRequestHeader('Content-Length', requestData.length);
    success: function (data, status) {
    console.log(data);
    console.log(status);
    bytesUploaded += requestData.length;
    var percentComplete = ((parseFloat(bytesUploaded) / parseFloat(selectedFile.size)) * 100).toFixed(2);
    $("#fileUploadProgress").text(percentComplete + " %");
    uploadFileInBlocks();
    error: function(xhr, desc, err) {
    console.log(desc);
    console.log(err);
    Hope this helps.

  • Can I use the HTML created in Adobe Edge Reflow?

    Can I use the HTML and CSS code generated to create the webpage preview in Adobe Edge Reflow?

    Hi Joseph,
    After creating and saving your Edge Reflow project, you can use View-> Preview In Chrome. This will create your HTML and CSS in your project folder's "assets" directory.  While our goal with this code is to provide a way for you to preview and share your designs in the browser (not to output production quality code), you can do anything you'd like with the output.
    Joan

Maybe you are looking for

  • Cinema display sound problem after Mavericks update

    Since I updated to Mavericks, sound only comes from my laptop speakers, instead of from my LED Cinema display's speakers. And when I look at Sound in Preferences, there is no longer the option to change the sound source. Anyone come across this and k

  • Is it possible to detach an external firewire BOOT disk during sleep?

    Hi, I have an aging PowerBook G4 17 inch (3 years and 3 months) which is still good and fast enough for my needs. Last year the display and motherboard were changed which cost me some money so I would like to hold on to it for one or two more years.

  • Firefox uses too much CPU when displaying flash sites

    When I have a site with flash and/or java open, firefox uses minimum 40% of my CPU power, even when I'm doing nothing, when firefox is idle and waiting for input. P.S. This could be a recent issue, probably related to the newest version of firefox, h

  • Need BAPI for Purchasing Order Reject through Workflow

    Hi All. I need a bapi to reject Purchase Order(PO) through Workflow. i've found some to release but not to reject, ('08' status Code). Can anybody hlp me please. Thanks & Regards, Mani.

  • Not able to draw any AP Divs

    Hello everyone. I'm quite new to Dreamweaver so please bear with me. For some reason all of a sudden I can't draw any AP Divs anywhere except  on the background of a window. When I try to draw an AP div over another layer I can't; my mouse gets the b