Communication between html pages
I do have an SWF sequence of images in the main html page. In
the second page I do have sections. Each section has a title of an
image of the SWF file. The role of this section is to describe the
image.
I trying to whenever I click on each image of the SWF in the
main page, I should be directed to its description in the second
page, meaning, that the second page should be loaded and its scroll
down bar should go down and stop where the specific section
(describing the image I’ve just clicked on) starts.
Actually, many of the problems I have already solved. I have an applet now that queries the database and stores and HTML page within a JEditorPane. But the pages are beginning to be quite large and not all of the HTML stuff is taken care of by JEditorPane. Ex) images, sounds, have to manually do hyperlinks, etc. So the database stuff is done. I already know how to write a servlet to create an applet in html.
I just need to figure out how to get this new applet to communicate with the 1st.
I tried this but not working:
import javax.swing.*;
public class AppletA extends JApplet
AppletB theOtherApplet = null;
public void init()
callAppletB();
public void callAppletB() {
theOtherApplet = AppletB.selfRef;
theOtherApplet.createText();
import javax.swing.*;
public class AppletB extends JApplet
public static AppletB selfRef = null;
public void init()
selfRef = this;
public void createText() {
javax.swing.JLabel label = new javax.swing.JLabel("New Label");
getContentPane().add(label);
repaint();
}
Similar Messages
-
How to create a cross ref. between html page to external PDF file
Hi all,
I don't know if it can be done but i'd like to create cross ref. or link from an html page (using robo#7) to a pdf file - in a spesific location i.e heading/bookmark inside the pdf. Is it possible? & if so, how do I do it?
Thanks a lot,
TaliHi Tali.
I believe it is, although I've never tried. The syntax is the same as for bookmarks in a HTM file. You just specify the URL for the PDF with #bookmark on the end (where bookmark = the PDF bookmark name). For example <a href=http://www.adobe.com/prodlist.pdf#bookmark>.
Read the RoboColum(n) for a tips, tricks and musings on the Technical Communication Suite products.
Follow the RoboColum(n) on Twitter -
Communication between multiple page flow portlets
Hi, I am working on weblogic portal 8.1.
I've been struggling to communicate between different page flow portlets,
I have a login page flow portlet and i need to submit login details to indeex page after login action is done.
I am able to do this by using PageUrl class and RequestDispatcher's forward method using definition label of the index page flow portlet.
but it is not happening again when i logged out.
If anybody have worked on it, please let me know the soltution.
Thanks,
Vidya sagarNot sure whether you tried this option(I tried it works for me).
configuration has to be done is portlet-2:
=========================
Create an custom event namely(messageCustomEvent) and also add an action for it for invoking a portlet method getMessage in Portlet-2.
//Place this method in Portlet-2
public void getMessage(ActionRequest request, ActionResponse response,
Event event) {
CustomEvent customEvent = (CustomEvent) event;
String message = (String) customEvent.getPayload();
response.setRenderParameter("message0", message);
configuration has to be done is portlet-1:
=========================
when click on Login in portlet1, in the pageflow code you fire an custom event as shown below
PortletBackingContext context =
PortletBackingContext.getPortletBackingContext(getRequest());
context.fireCustomEvent("messageCustomEvent", form.getMessage());
return new Forward("success");
Thanks & Regards,
Murali.
============ -
Continuity in Banner Animation between HTML pages..
I have a banner animation at
http://www.sierratec.com/skills.html
that plays a series of slides at the banner.
I need the animation to continue, from the previous
transition slide before other html like products, clients etc., are
clicked.
For ex. If we are in the skills.html page and we navigate to
partners section , then the animation at the banner must continue
from the place from where it was left before leaving the the skills
section and before clicking the partners section and not start from
the beginning as it is seen now.When javascript window.focus() is invoked and there are more than 1 IE windows open the focus will go
to the IE window that executed the window.focus();
If you have notepad open and focused it will not focus on the IE window (you need an API call to do that)
Anyway, you can call a javascript function from java, here is an example:
// new class for jsObject!!!! compile this: C:\harmpie>javac -classpath "C:\Program Files\Java\j2re1.4.2_01\lib\plugin.jar" test.java
// since jaws.jar does not exsist anymore
// to compile: javac -classpath "C:\j2sdk1.4.0_03\jre\lib\jaws.jar" someApplet.java
import netscape.javascript.*;
public class someApplet extends java.applet.Applet {
JSObject win;
public void run(){
try{
win = JSObject.getWindow(this);
win.eval("window.focus();");
}catch(Exception e){
e.printStackTrace();
public void init() {
new Thread(this).start();
} -
Data communication between jsp pages in different context
hi,
I've two web applications one calling the other. The calling app needs to pass user id but not in the url
How can this be acheived.?
Even though i searched in several forums about forward and redirect, i donot have a clear idea.
Please help.
Thanks.Use POST. The form action URL can just point to a different context.
-
How do I publish an existing HTML page?
Hello,
This might sound a bit basic...possibly because I am not that smart...
I have an NT file system - with in it there is an HTML page with icons and other html pages that are linked (relative links). There are other .html pages and images needed in this area.
I have set up a community and want to point to the existing HTML page on that file system - so when a client goes to that community, that HTML page opens up automatically in a portlet.
The path if Q:\Public\Health\Mainpage.html
I want mainpage.html to open up with the Health Community is selected.
So I made the community, and community page. The was going to place a publisher portlet on it - but do not want the clients to se e a blank page with a portlet linking to Q:\Public\Health\Mainpage.html, but instead see Mainpage.html.
What is the best way of doing this - set up a web service? If so - which one?
Suggestions for a pre-exisiting website residing on a file system?
Thanks,
V
Computers are like Old Testament gods; lots of rules and no mercy. ~Joseph Campbell
Edited by vivekvp at 05/07/2008 10:19 AMI would serve up the documents with IIS or Apache and create a standard web service remote portlet to the document.
Another option is to copy and paste the contents of the document into a content item with a long text property. Then use a presentation template which just emits the html from the content item.
Create a published content portlet for that content item. The good part is that you can edit the document in the portal. The downside is that if someone edits the mainpage.html on the q drive, you will have to copy their changes back into the content item. -
Vs 2013 community screws up formatting of html page when saving file
I have seen other people having this issue with suggestions like 'Formatting and visualizations, tag specific options. However this is not solving my issue
example
I type the following code this way
<asp:Panel ID="Panel1" runat="server">
<asp:Label ID="Label1" runat="server" Text="Days Old " />
</asp:Panel>
<asp:Panel ID="Panel2" runat="server">
<asp:Label ID="Label2" runat="server" Text="Days Old " />
</asp:Panel>
then when I hit save the code changes to
<asp:Panel ID="Panel1" runat="server">
<asp:Label ID="Label1" runat="server" Text="Days Old " />
</asp:Panel><asp:Panel ID="Panel2" runat="server">
<asp:Label ID="Label2" runat="server" Text="Days Old " />
</asp:Panel>
This messes with the outlining and makes it hard to see where controls like Panel2 is in the code.
I am using a fresh install of visual studio community 2013 on a fresh install of windows 8.1 so this is not an issue with my istallation.
I have tried setting tag Specific options with no change
It doesn't do this every time or just on asp:panels
I have tried adding line breaks and spaces etc. this doesn't help either.
is this just a bug in visual studio or is there a general setting out of wack. I didn't have this problem with vs express for web 2012. but I did have it with vs express for web 2013 and community 2013Hi PBPuddin,
Thank you for posting in MSDN forum.
Based on your issue, I tried to add this code as you said into a html page and then I saved the code. I found that the code formatting of the html page did not occur like you said that in VS2013 Community.
So to check if this issue is related to the VS2013 Community IDE, I suggest you could try to copy the same version of the VS2013 Community setup file on other machine and then install it check this issue again.
(1) If you still get the issue, I assume that the issue maybe related to this VS2013 Community setup file, so please download it from Microsoft official website and then install it again.
https://www.visualstudio.com/en-us/news/vs2013-community-vs.aspx
(2) If you did not get same issue, I suggest you could try the following suggestion to check the issue.
(2.1) please try to open your VS in safe mode and then check if you install some add-ins in the VS IDE.
https://msdn.microsoft.com/en-us/library/ms241278.aspx?f=255&MSPPError=-2147217396
Or you could try to check if you install some third-party tool/ software on your machine.
Hope it help you!
Best Regards,
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
Hey,
Does anyone know how to pass a variable (string) from one swf
to another if there in separate html pages?
I assume I’d have to send the variable from the first
page and load it into the second but I don’t know what
functions or code I should be using. Any suggestions would be a
HUGE help.
Thanks
If it helps: I’m creating a log in and sign up sheet
that can be accessed from several sites. I’d like to record
which site the user has come from when they signup.
Thanksif they are open at the same time (for the same user), you
can use the localconnection class to communicate between the
two. -
Communication with Files on different HTML Pages
I have a flex application that leads the user out of the
application in a new html window. When the user leaves the
application, a new flex application is embeded in the new page.
Once the new page is loaded, i want to to communicate the new swf
with the old swf app. When trying to communicate between the two I
get:
Error #2044: Unhandled AsyncErrorEvent:. text=Error #2095:
flash.net.LocalConnection was unable to invoke callback
completeSale. error=ReferenceError: Error #1069: Property
completeSale not found on flash.net.LocalConnection and there is no
default value.
For the sending swf file (the flash file), I have:
<mx:Application xmlns:mx="
http://www.adobe.com/2006/mxml"
layout="absolute" initialize="init()">
<mx:Script>
<![CDATA[
import flash.net.LocalConnection;
import mx.controls.Alert;
private function init():void {
var sending_lc:LocalConnection = new LocalConnection();
//sending_lc.connect('myCon');
try
sending_lc.connect('myCon');
catch (error:ArgumentError)
// server already created/connected
trace ("ERROR SENDING")
sending_lc.send('myCon', 'completeSale');
public function completeSale():void {
Alert.show ("SALE COMPLETE");
]]>
</mx:Script>
</mx:Application>
For the recieving swf file, I have:
import flash.net.LocalConnection;
public var recieve_lc:LocalConnection = new
LocalConnection();
public function init():void {
recieve_lc.connect('myCon');
recieve_lc.allowDomain("
http://localhost/");
//completeSale();
public function completeSale():void {
Alert.show ("SALE COMPLETE");
Init is called of course at the initialization of the app.
I have no problem communucating between two swf on a single
page, but can two swf on two different html pages communicate?
Thankshi
For this , you should try to use ExternalInterface instead of
localconnection, it's a new way to communicate between to swfs or
between felx and other languages such as javascript -
Transfert between Labview and HTML page
Is it possible to transfert data between LABVIEW and a HTML page without using a java applet?
Is Labview including this possibility?
The aim is to pilot a system via internet with a html page.Hi Mat,
LabVIEW CGI is the best solution for that. I know that you can build ActiveX controls (in Visual Basic) that talk to labVIEW. But LabVIEW CGI is the easiest way of doing that. You should have some knowledge of HTML inorder to work with LabVIEW CGI.
Also note that in order to have the LabVIEW CGI capability you should have Internet Toolkit for LabVIEW (available from NI). For more information
http://www.ni.com/labview/internet/
The examples that ship with the toolkit should get you started on it. LabVIEW CGI VIs would allow you to execute VI from web browser and get results back in web browser in form of HTML page.
Hope this helps,
A Rafiq
National Instruments
Hope this help. -
IView communication between URL iView containing asp pages
Could someone tell/show me if its possible to have iView to iView communication between URL iView's containing asp pages? I've seen some reference to using the EPCF and that it must be included in the asp pages but I'm confused... Client Eventing Problem with URL Iview
Where is the EPCF? so I can place a copy with my asp pages? Has anyone ever done this before? Is it possible?
Thanks.Could someone tell/show me if its possible to have iView to iView communication between URL iView's containing asp pages? I've seen some reference to using the EPCF and that it must be included in the asp pages but I'm confused... Client Eventing Problem with URL Iview
Where is the EPCF? so I can place a copy with my asp pages? Has anyone ever done this before? Is it possible?
Thanks. -
Communication between separate ADF Web Applications
Using 11.1.1.5 of JDeveloper I have two Fusion Web Applications that each have a single "view" task flow. Those task flows will be dropped into regions within a WebCenter Portal application so they behave like portlets. I'd like to have a value from one app passed to the other app and have the second app respond to the change. It seems like it should take about 10 minutes but so far... two weeks without any progress. I'm incredibly frustrated. Does anyone have a simple list of the steps I need to perform to pass parameters between task flows? Please help! All I'm looking for is step 1: set up this, step 2: set up that. I can't believe it's this hard.
All of the samples I find on line are about inter portlet communication with JSR 286 portlets, WSRP portlet producers or inter-component communication. I've read this too: http://www.oracle.com/technetwork/issue-archive/2011/11-may/o31adf-352561.html but I haven't been working with JDev and WebCenter for 5 years so it simply doesn't make sense. For example, one piece of sample code looks like this
public void handleEventStringPayload(String customPayLoad) {
FacesContext fctx = FacesContext.getCurrentInstance();
ELContext elctx = fctx.getELContext();
ExpressionFactory exprFactory =
fctx.getApplication().getExpressionFactory();
ValueExpression ve =
exprFactory.createValueExpression(elctx, "#{backingBeanScope.mirrorPageBean}",
Object.class);
MirrorPageBean mirrorPageBean = (MirrorPageBean)ve.getValue(elctx);
mirrorPageBean.setMirrorValue(customPayLoad);
AdfFacesContext adfFacesContext = AdfFacesContext.getCurrentInstance();
adfFacesContext.getCurrentInstance().addPartialTarget(mirrorPageBean.getMirrorTextField());
Pretend I don't know the nine layers of technology involved here. Why in the world do I need all of this stuff in this order just to set a parameter... or is that NOT what this is doing? Why are they doing addPartialTarget? What does that do? Why do they have an EventObjectHandler and an EventStringHandler? The article is clearly written for an experienced WebCenter developer and that simply isn't me. If anyone has a resource that shows me how to pass parameters between web apps that actually explains the steps needed and why they need to be taken, that would be great.
Thanks in advance for any help.Hi!.
To communicate two regions (ADF Task Flows) in a WebCenter Portal Page you have "Contextual Events Framework".
You can learn it following this Blog entries:
http://technology.amis.nl/blog/3365/adf-11g-how-events-in-one-region-cause-other-regions-to-refresh
http://andrejusb.blogspot.com/2010/10/contextual-events-framework-and-adf-11g.html
http://www.oracle.com/technetwork/issue-archive/2011/11-may/o31adf-352561.html
Video: http://www.youtube.com/watch?v=XIVom59Kq2U
In addition, you can communicate two regions without Contextual Events following this entry:
http://andrejusb.blogspot.com/2010/04/communicating-between-adf-regions.html
Regards!
Edited by: Daniel Merchán on 22-feb-2012 22:15
Edited by: Daniel Merchán on 22-feb-2012 22:18 -
Html pages linked to a stylesheet
Is there a report in DW CS3 which will show all html pages
linked to a particular stylesheet?
Thanks, CMANobody is wanting to replace anything.
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
==================
"AndrTa" <[email protected]> wrote in message
news:f6d4dq$1l9$[email protected]..
> It's wise... But include only
href="yourstylesheetname.css" to find and
> replace with href="yournewstylesheetname.css" if you
want to replace
>
>
> John Waller wrote:
>>> Is there a report in DW CS3 which will show all
html pages linked to a
>>> particular stylesheet?
>
>>
>> Not specifically but you can use Find & Replace
to get this info.
>>
>> Edit > Find & Replace
>>
>> Find in: Entire current local site
>>
>> Search: Source Code
>>
>> Find: <link href="stylesheet.css"
rel="stylesheet" type="text/css">
>>
>> NOTE: cut-and-paste the <link> tag from your
code -- it's between the
>> <head> tags -- containing the stylesheet
you're looking for.
>>
>> Find All
>> -
My index page (a .html page) wants to save as a template... I
do not want it saved as a template, but the only way I can
apparently save it is to do a "save as" rather than just save.....
If I try to just "save" it goes to the "save as template" screen.
Help!Huh? You certainly do not need to go to save as everytime.
And what do you
mean, anyhow?
Besides, the suggestion you make here will destroy the link
between this
template page and its child pages. I think you are confused
big time.
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
==================
"phenixwars" <[email protected]> wrote in
message
news:g7ctu8$cbd$[email protected]..
> hi. same thing happened to me recently. when you're
learning you're
> learning
> right? anyway, just go into the code and delete all the
areas that say
> <!--TemplateBeginEditable or anything that says
template anything in your
> code
> and then you should be able to save it without having to
go to save as
> everytime.
>
> hope it works
> -
Hello,
can i make script in the extendedScript toolkit(this script place document to indesign application) and run this script from html page?
or is there integration between extendedscript and html?
thanksHTML pages are usually displayed in web browsers, whose security model is designed specifically against any access to local resources, especially such calls to local applications.
Besides to browsers, on the Mac, the "Dashboard" allows you to write little applications "widgets" exactly the way you're suggesting. It uses WebKit to display HTML.
http://www.apple.com/downloads/dashboard/
In order to communicate with extendscript, you'd have to go through the operating system's command line.
http://developer.apple.com/documentation/AppleApplications/Conceptual/Dashboard_ProgTopics /Articles/CommandLine.html
From there you'd invoke the scripting system with "OSAScript"
http://developer.apple.com/documentation/Darwin/Reference/Manpages/man1/osascript.1.html
then pass on your extendscript and arguments into InDesign via doScript.
Another alternative to the main HTML browser is AIR, which also has an instance of WebKit for HTML display.
http://livedocs.adobe.com/labs/air/1/quickstartshtml/
Apparently it is possible to invoke BridgeTalk - the Creative Suite's inter application communication used by extendscript - straight from AIR. I don't yet have references how to do that, found the link below just yesterday.
http://www.inthemod.com/bps/?p=165
Dirk
Maybe you are looking for
-
The only thing that appears above is the URL and the tabs that have been open. I have no other bars across the top of the screen. I especially need the Firefox Box in the left hand corner which includes commands to print, commands to bookmark a page,
-
The item Hierarchical Context Menu does not support pre-calculation
Hello, Trying to download pre-calculated web templates via RepAgent, using the Hierarchical Context Menu feature within the template (populated via control query with Hierarchy) the system returned the following message upon file download: "The item
-
How to Identify program is running in background or Foreground mode?
Hello Experts, I have developed on Z report and from this report BDC for Transaction CO11 is runnning using CALL TRANSACTION statement. On Selection screen there is a option for selecting the BDC mode either in Background or Forground or Error mode.
-
Missing surpress Advanced options on rows in Hyperion financial reporting
Hi All, I am facing challenge on missing suppress advanced options. account dimention on row Children of PB_001 (PB_0001,PB_0002,PB_0003,PB_0004) The account of the children in one row. But it will disyplay in the report row by row. if the Accou
-
Why does iPad go to sleep when listening to music?
Tried listening to music on the iPad last night, but after a few minutes it just stops playing. I didn't think this should happen. Any suggestions?