How to implement the function like this?
I'm sorry, don't know why the previous post was approved then deleted.
User visit http://aa.com/show?id=1 then the player plays 1.swf
User visit http://aa.com/show?id=2 then the player plays 2.swf
User can only see the url id, but can't see which swf is played.
Should I build a FMS server and a player embed in the browser? Thanks,
it disappeared because both links are for the same american arilines page which makes it appear as if you're posting spam on behalf on aa and your question is only superficially related to flash.
anyway, to use query strings to determine what to show on a web page (or which web page to show), the window.location string contains the full url. among the ways you can use that to retrieve the query string is:
<script>
var qs=window.location.substring(window.location.indexOf("?")+1);
if(qs=='id=1'){
//window.location=embedding html for 1.swf
} else if(qs=='id=2'){
//window.location=embeddign html for 2.swf
</script>
Similar Messages
-
How to implement the grid like this?
Dear All:
I have this grid view as following the sketch :
|DS1|DS2|DS3|DS4|
|------|------|------|------|
|sss |sss |sss |sss |
|sss |sss | sss |sss|
| -----|------|------|------|
|DS5|DS6|DS7|DS8|
|------|------|------|------|
|sss |sss |sss |sss |
|sss | sss|sss| sss |
Note:
1. the border is solid line and "sss" represents white space.
2. might have multiple rows or columns like this pattern.
3. smaller cells are labels and bigger cells are filled with a few different colors
4. when hovering mouse on each bigger cell, the tool tip text will be shown.
5. sizes of the cells are fixed and not changed when the container is resized.
Any clue for implementation? I appreciate all for reply.
JohnosnUse a JTable. If your data is algorithmically derived, consider implementing your own TableModel. You may need to implement your own TableCellRenderer.
-
How to call C++ function like this...
hi!everyone!
i have a C++ function like this:
java_call_c::test()
how do i write codes in java in order to call the function ???
thanksa lot !!!Actually there is no way to write C code with C++ functions (as well as you can't call Pascal functions).
But you can create function in C style to call C++ function.
void test( )
java_call_c c = new java_call_c( );
c->test( );
delete c;
}:) -
How to implement the function "Slow Play" using MPMoviePlayerController?
Does anybody have idea to implement the function "Slow Play" using MPMoviePlayerController or some other indirect solutions? Thanks. Kevin.
You can use the changeSelection(...) method to change the cell with focus.
-
How to realize the functionality like the JLayer in Swing?
JLayer in Swing is a decorator for Swing components. It enables us to draw on components and respond to component events without modifying the underlying component directly, which is interesting to me. How to do that in JavaFX?
Technique Description - Use a StackPane
For simple layering, wrap the underlying node in a StackPane and add further nodes to the stackpane to layer them on top.
One technique is to just use two nodes in the StackPane, the original node and a Pane on top the original node. Because the Pane is a automatically resizable Node, the Pane size will adjust to completely cover the Node below. By setting the pickOnBounds and mouseTransparent properties of the Pane appropriately, you can decide whether you want to top pane to consume all mouse events, consume only mouse events on the areas where the top Pane is not transparent and let the rest pass through to the underlying node or let all mouse events be handled by the underlying node. The top pane is sometimes known as a glass pane.
Links to examples which use the described technique
A very simple example with no input processing is =>
javafx 2 - How to implement a transparent Pane with non-transparent children? - Stack Overflow
A more comprehensive demonstration of the technique is han solo's blog post on using a glass pane for processing =>
http://harmoniccode.blogspot.com/2013/04/validate-it.html
For a supported library by a commercial company see the Decoration Utilities from JideFX =>
Highlights of the JideFX Beta Release (2 of 3) | David Qiao's Blog
Suggested Approach
If you just have one-off requirements than rolling your own like in the StackOverflow answer or han solo's blog is the way to go.
If you have more sophisticated requirements, you should look into JideFX (it is an open source library).
And I hope I've got this answer right because I've never used JLayer in Swing, but it appears similar to what I have described. -
Quick selection tool,How to programme the function of this tool?
Recently, I intend to extract from a picture on the edge of oil tank。I found that this quick selection tool can meet my
requirement。 But I do not know how to achieve it in VC ++ 。I would like to ask somebody who knows it???thanks~~~~~The question doesn't make sense in the SDK forum either.
Why are you trying to control the tool programmatically?
And I don't think you really can control that tool programatically - it's meant to be interactive. -
Dear all,
I wanted to use SDO_GEOM.SDO_BUFFER function to generate a
buffer polygon around a geometry object while it is pretty slow
to perform for a large spatial database. I think it better
to use Spatial Operators for it takes advantage of spatial index.
But within operators, there are no availble function. Can anyone
tell me how to do it with Spatial Operators?
Thanks a lot,
FanFabio,
Error 13349 indicates that the polygons intersect with themselves.
You need to fix these errors. There are tools in MapInfo Professional 7.5 to check and automatically fix them. There are other tools commercially available which also fix geometry errors.
If you know MapInfo I would fix these errors there.
Ivan -
How to get the output like this in a single sql
input is
2 date range
output is
date week
01-01-2000 1
08-01-2000 2
31-12-2000 54
06-01-2001 55
so onwith sample_table as (
select date '2000-01-01' from_dt, date '2001-01-06' to_dt from dual
select to_char(from_dt + level - 1,'dd-mm-yyyy') dt,
ceil(level / 7) week
from sample_table
connect by level <= to_dt - from_dt + 1
DT WEEK
01-01-2000 1
02-01-2000 1
03-01-2000 1
04-01-2000 1
05-01-2000 1
06-01-2000 1
07-01-2000 1
08-01-2000 2
09-01-2000 2
10-01-2000 2
11-01-2000 2
01-01-2001 53
02-01-2001 53
03-01-2001 53
04-01-2001 53
05-01-2001 53
06-01-2001 54
372 rows selected.
SQL> SY. -
How to implement the Export to Excel funtionality in VC like in Webdynpro
Hi
I have requirement to display the BAR charts, Pie charts ,Line graphs based on the data retreiving from the R/3 thorgh VC.
I hope it is possible .
i have requirement like exporting the data whichis pulled from the R3 to display those charts, this data need to be exported to the Excel sheet by providing the button in VC. Like same way we have the privision in WEbdynpro exporting table data to excell sheet.
How to implement the same thing in VC,
Can any body help me
Regards
Vijay1) yes, it's possible
2) Another one that's in the Visual Composer WIKI:
https://wiki.sdn.sap.com/wiki/display/VC/Exportingdatafrom+VC -
How to implement the barcode printing functionality working on the Prod.
Hi,
Can anyone help me "How to implement the barcode printing functionality working on the Prod".
Thanks
GangadharaCheck this link --> barcode
-
Hi fellow apple guys, i have this problem. Hope you can help me. I don't know how to use the function keys (F1 to F12) on my macbook air. Pls help
Out of the box, to use the function keys as function keys, hold down the fn key when you press the key. Otherwise, you get the picture function on the key. You can reverse this behavior in the Keyboard system prefs.
-
How can I put a music link in the page like this?
How can I put a music link in the page like this?
http://members.aol.com/trumanj/midi/tjsragtime.htm
ThanksHola JB
No, I haven't...I'm trying to learn flash and it's been keeping me very busy...maybe it's the age..
Len, I been trying to do it that way, but, as I just mention, Flash don't like me :)
Thanks, I will do that for sure.
Daniel Ulysses -
II found a phone that had been stolen, so I asked apple id to its original owner she said that she had forgotten and replace the apple id, how to solve a problem like this?
Send the original owner this link.
(120249) -
How to get the function name/ID of the current page
HI,
I searched the forum and google, but it is not clear on how to get the function name of the current page.
I have 4 functions in my self service A ,B,C,D (seeded page links ) they all have to go to a page called hhhPG. Based on which function user is clicks I have to show the data in hhhPG.
so my question is how to get the function name ? I mean I need to know if user click on link A , B, C or D link and came to this page.
I found below in one forum and also there is getfunctionID in pageContext , but I do not know what to pass to getfunctionid("???") to get value.
FunctionSecurity funcSecurity = pageContext.getFunctionSecurity();
Or is there a better way of know where user is coming from ? like geturl....
Please help, I need this ASAP.
Thank you.Use below to find out how the user came into the page
FunctionSecurity funcSecurity = pageContext.getFunctionSecurity();
boolean isFunc1 = funcSecurity.testFunction(funcSecurity.getFunction("YOUR_FUNCTION_SHORT_NAME1"));
boolean isFunc2 = funcSecurity.testFunction(funcSecurity.getFunction("YOUR_FUNCTION_SHORT_NAME2"));
boolean isFunc3 = funcSecurity.testFunction(funcSecurity.getFunction("YOUR_FUNCTION_SHORT_NAME3"));
boolean isFunc4 = funcSecurity.testFunction(funcSecurity.getFunction("YOUR_FUNCTION_SHORT_NAME4"));
So one of them will be true based on the function the user came in.
Write your logic based on these flags.
Regards,
Peddi. -
How to implement the spell check in oracle forms 10g or 6i...
How to implement the spell check in oracle forms.
Is there any different method is there.
Please help me....
Praveen.KHere is one different from Jspell..
In 6i client/server you can call MS Word spell checker using OLE. Below sample code for 6i.
For 10g you will need webutil to use same code. install webutil and just replace "OLE2." with "CLIENT_OLE2."
PROCEDURE spell_check (item_name IN VARCHAR2)
IS
my_application ole2.obj_type;
my_documents ole2.obj_type;
my_document ole2.obj_type;
my_selection ole2.obj_type;
get_spell ole2.obj_type;
my_spell ole2.obj_type;
args ole2.list_type;
spell_checked VARCHAR2 (4000);
orig_text VARCHAR2 (4000);
BEGIN
orig_text := NAME_IN (item_name);
my_application := ole2.create_obj ('WORD.APPLICATION');
ole2.set_property (my_application, 'VISIBLE', FALSE);
my_documents := ole2.get_obj_property (my_application, 'DOCUMENTS');
my_document := ole2.invoke_obj (my_documents, 'ADD');
my_selection := ole2.get_obj_property (my_application, 'SELECTION');
ole2.set_property (my_selection, 'TEXT', orig_text);
get_spell :=ole2.get_obj_property (my_application, 'ACTIVEDOCUMENT');
ole2.invoke (get_spell, 'CHECKSPELLING');
ole2.invoke (my_selection, 'WholeStory');
ole2.invoke (my_selection, 'Copy');
spell_checked := ole2.get_char_property (my_selection, 'TEXT');
spell_checked :=SUBSTR (REPLACE (spell_checked, CHR (13), CHR (10)),1,LENGTH (spell_checked));
COPY (spell_checked, item_name);
args := ole2.create_arglist;
ole2.add_arg (args, 0);
ole2.invoke (my_document, 'CLOSE', args);
ole2.destroy_arglist (args);
ole2.RELEASE_OBJ (my_selection);
ole2.RELEASE_OBJ (get_spell);
ole2.RELEASE_OBJ (my_document);
ole2.RELEASE_OBJ (my_documents);
ole2.invoke (my_application, 'QUIT');
ole2.RELEASE_OBJ (my_application);
END;Call it like this: SPELL_CHECK ('BLOCK.MY_TEXT_ITEM' );
Maybe you are looking for
-
Im trying to convert a PDF into an excel document and I keep getting an error message that reads "An error has occurred while trying to access the service". WHat am I doing wrong?
-
Logs for cluster config change
Hi, I've noticed some rather odd behavior on my cluster configuration. Before, in our production, I noticed who ever did the orginal config put the admin server as part of a cluster. I'm looking at it now a month later and see that the admin is not p
-
Exception in declarative section to propagating in PL/SQL Block
Hi All, I have a requirement to send emails to some receipient whenever there is an error in a process. The is working untill the put a wrong database link in the parameter, the cursor is in declarative statement, hence when other exception does not
-
Netflix Silverlight not working in Chrome?
I just got a MacBook Pro and I have never had a Mac before. I want to watch Netlix but it told me to download Silverlight which I did. I then restarted Chrome and it still said I hadn't downloaded it but it was there in the downloads section of the c
-
Importing SAS Datasets into Oracle Tables
Is there a way to load SAS Data sets into Oracle Tables through SQL loader/SQL Dvlpr Migration Workbench/DataPump? MS Access has facility to import SAS Datasets into its .mdb files, but Would greatly appreciate if anyone could suggest a direct load i