Executing javascript code for button click
in my application i have report page where i am displaying table data when i click a button it selects first row and returns it using htp.prn() now i m getting that record in jvascript now i want to execute this java script code when the button is clicked i tried using onClick attribute but it didn't work can anyone tell me how to do it?
Hi,
I think this is related to Application express, right ?
You could post your question in Application Express forum
Oracle Application Express (APEX)
Also please give more detail about your issue. Post e.g. code (pl/sql & javascript) you try to use.
Also if you setup sample about your problem to http://apex.oracle.com will help others to help you.
Help us to help you =)
Br, Jari
Similar Messages
-
How to find function code for buttons on toolbar in oops alv
Hi experts,
I want to remove some buttons from toolbar in oops alv, i know the procedure like get function code and pass the value in a table and pass that table to IT_TOOLBAR_EXCLUDING of
method set_table_for_first_display but I WANT TO KNOW HOW TO FIND FUNCTION CODE FOR BUTTONS ON TOOLBAR IN OOPS ALVHi Prakash,
-->First you have to set the pf status in your alv program by,
{FORM pf_status USING rt_extab TYPE slis_t_extab.
SET PF-STATUS 'FIRST'.
ENDFORM. "PF_STATUS}
-->Pass this Subroutine name in the Function module, Reuse_alv_grid_display's parameters i.e,
i_callback_pf_status_set = 'PF_STATUS'}
*-->Then doble click on that pf status,
From the menu bar, select Extras->Adjust Template->List Viewer,
This will give you the existing statndard gui status of the program*
->Then catch that function codes in the User command Parameter of the Function module Reuse.. i.e,
i_callback_user_command = 'COMM'
And make a subroutine of the name 'COMM'i.e,
FORM comm USING ucomm LIKE sy-ucomm selfield TYPE slis_selfield.
DATA: okcode TYPE sy-ucomm.
okcode = ucomm.
CASE okcode.
WHEN 'REF'.
CALL FUNCTION 'POPUP_TO_INFORM'
EXPORTING
titel = 'MANSI'
txt1 = 'CREATED BY'
txt2 = SY-UNAME
TXT3 = ' '
TXT4 = ' '
endcase.
Hope it helps you
Regrds
Mansi -
I had an existing, functional datepicker in a web page.
Recently I downloaded the UI Datepicker in the Widget Browser and installed it in DW CS5. Now every time I load the file that calls the datepicker that I added myself, a warning opens with the following text:
This document contains JavaScript code for a widget that no longer exists. If you don't remove the code, the browser might display JavaScript errors when loading the page. Would you like Dreamweaver to find all instances of this code for you?
Widget: $("#reservDateBegin").datepicker();
Widget: $("#reservDateEnd").datepicker();
Clicking "Yes" opens the file and shows the search box at the bottom of the window with [current document] in File and $("#reservDateEnd").datepicker(); in Matched Text. Clicking "No" just opens the file.
The error is wrong, since installing the widget is what caused the error in the first place!
How can I get DW to stop showing this message?
Thanks for any help.I do understand you're trying to be helpful. I was just hoping providing the relevant code snippets would be sufficient so I didn't have to take the time to provide a "cleaned" version of the files and upload those to a public-safe location.
Zabeth69 wrote: If you don't understand what 'code at the bottom of the page' means, you have not used one of those systems. I don't know what causes the error code to come up (besides removing a Spry widget, I mean). So if it doesn't apply to you, ignore it.
This is exactly my point: I haven't used any of the DW "systems". I've always manually coded in DW, so I can't have removed a Spry widget in the first place. It wasn't until I installed the Widget using the Widget Browser that I started getting the error (I don't mean adding the datepicker widget to the code using the DW Insert menu - I mean installing the Widget into DW itself). Ignoring such an erroneous/incorrect error seems kind of silly, since every time I open the file I get the error message.
Anyway, as requested, the following are links to the contactUsCleaned.php page, and the php included headerCleaned.php file. Since these use php includes to complete the rendered HTML, they won't look right in the browser, but as you know viewing the source will show the relevant html, javascript, and jquery code. I didn't see any way to upload the files in this forum, which, due to the php code, would be preferable to see exactly what my code looks like...
http://www.eventidewebdesign.com/public/contactUsCleaned.php
http://www.eventidewebdesign.com/public/headerCleaned.php
The footer.php file the contactUs page includes is simply a set of HTML links to the pages on the site, copyright info, and the Google Analytics script. There is no other code in the footer.php file. -
How to code on button click how to increase row height in iphone/ios/uitableview
how to code on button click how to increase row height in iphone/ios/uitableview
- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath;
pppp=[postText objectAtIndex:indexPath.row];
CGSize maxSize = CGSizeMake(280, MAXFLOAT);//set max height
CGSize cellSize = [pppp sizeWithFont:[UIFont systemFontOfSize:14]
constrainedToSize:maxSize
lineBreakMode:NSLineBreakByWordWrapping];//this will return correct height for text
// return cellSize.height+115;
BOOL isSelected = [self.selectedIndexPaths containsObject:indexPath];
CGFloat maxHeight = MAXFLOAT;
CGFloat minHeight = cellSize.height+115;
CGFloat constrainHeight = isSelected?maxHeight:minHeight;
CGFloat constrainWidth = tableView.frame.size.width - 20.0f;
NSString *text = hChildPost[indexPath.row];
CGSize constrainSize = CGSizeMake(constrainWidth, constrainHeight);
CGSize labelSize = [text sizeWithFont:[UIFont systemFontOfSize:15.0f]
constrainedToSize:constrainSize
lineBreakMode:NSLineBreakByCharWrapping];
// return MAX(labelSize.height+75, 100.0f); return MAX(labelSize.height+75,cellSize.height+115);
i used this code but it crashed appOn what line did it "crashed app" and what was the exception? The line within this function, not in main.m. If you haven't figured this out yet: view the debugger output, try single stepping, and/or add NSLog messages in the function.
-
How to execute javascript code in VBScript?
I'd like to execute similar javascript code for some particular PDF files(parameters for pagenumber are quite different),such as:
this.setPageLabels(0, [ "A", "", 3] );
this.setPageLabels(1, [ "r", "", 1] );
this.setPageLabels(16, [ "D", "", 1] );
How to write the code in VBScript?
Thanks in advance!
P.S. I try to add code but end up with error messages
=================================================================
path = "E:\test.pdf"
'//Write the first and last pagenumbers and label to a txt.
set oWs = CreateObject ("Wscript.Shell")
set fs = CreateObject("Scripting.FileSystemObject")
oWs.run "Acrobat.exe"
While not oWs.AppActivate("Adobe Acrobat") : Wscript.Sleep 1000 : Wend
Set objArgs = WScript.Arguments
if objArgs.Count = 1 then path = ObjArgs(0)
Set gApp = CreateObject("AcroExch.App")
Set AVDoc = CreateObject("AcroExch.AVDoc")
If (AVDoc.Open(Path,"")) Then
Set AVDoc = gApp.GetActiveDoc()
Set PDDoc = AVDoc.GetPDDoc()
Set JSO = PDDoc.GetJSObject
'// Write Bookmark JS to a variable
Ex = " var vTOC = """"; "&vbLF _
& " var s = """"; "&vbLF _
& " var i=0; "&vbLF _
& " p = i+1; "&vbLF _
& " vTOC += ( this.getPageLabel(i) +""|""); "&vbLF _
& " i= this.numPages-1 ; "&vbLF _
& " p = i+1; "&vbLF _
& " vTOC += ( this.getPageLabel(i) +""|""+p+""|""); "
' // Execute the JavaScript
Set AForm = CreateObject("AFormAut.App") 'from AFormAPI
AForm.Fields.ExecuteThisJavaScript EX
' // Write Bookmarks to CSV (PageNr;Level;Text)
Set JSO = PDDoc.GetJSObject '//->renew JSO for some unknown reasons
xf = jso.vToc
Set objIE = CreateObject("InternetExplorer.Application")
objIE.Navigate("about:blank")
objIE.document.parentwindow.clipboardData.SetData "text", xf
objIE.Quit
CsvFN = left(path, InstrRev(path, ".")-1) &"_page.txt"
set FL = fs.OpenTextFile(CsvFN, 2, true) '//-> 2=ForWriting
xWr = split(xf,"|")
for x=0 to UBound(xWr)
FL.WriteLine xWr(x)
next
FL.Close
Else
MsgBox "Failed to Open: " & Path
End If
Set JSO = Nothing
Set PDDoc = Nothing
Set AVDoc = Nothing
Set AForm = Nothing
Set gApp = NothingIf I remember right, I wrote this script a while back to demonstrate how java script can be direct executed and how you can get back the results. Didn't I wrote a commentary to that?
However the parts you need:
' // Write JS code from help file or whatever to a VBS variable:
JsFromHelp = " this.setPageLabels(0, [ ""A"", """", 3] ); "&vbLF _
& " this.setPageLabels(1, [ ""r"", """", 1] ); "&vbLF _
& " this.setPageLabels(16, [ ""D"", """", 1] ); "
' // Execute the JavaScript
Set AForm = CreateObject("AFormAut.App") 'from AFormAPI
AForm.Fields.ExecuteThisJavaScript JsFromHelp
From the rest keep only:
end if
set .. = nothing
Untested, but should work - as far as you have a little bit more then only Reader.
HTH, Reinhard -
Integrating code for mouse click!
Hello!
I'm trying to get this code working where I want to integrate a shortcut for clicking an button made in Egde Animate.
The code snippets you see is just some copied areas of the whole working code,
Serial.print(c);
if (c == '\n') {
if (readString.indexOf("?") <0)
//do nothing
else
if(readString.indexOf("UP=UP") >0)
movetiltupstep();
// now output HTML data starting with standard header
client.println("HTTP/1.1 200 OK");
client.println("Content-Type: text/html");
client.println();
//set background to green
client.print("<body style=background-color:green>");
client.println("<hr />");
client.println("<center>");
client.println("<h1>Servo control</h1>");
client.println("<form method=get name=SERVO>");
client.println("<input type=submit value=UP name=UP style=\"width:100px\"><br>");
client.println("<input type=submit value=LT name=LT style=\"width:100px\"><input type=submit value=CN name=CN style=\"width:100px\"><input type=submit value=RT name=RT style=\"width:100px\"><br>");
client.println("<input type=submit value=DN name=DN style=\"width:100px\">");
client.println("</form>");
client.println("</center>");
client.println("</body></html>");
//clearing string for next read
readString="";
//stopping client
client.stop();
void movetiltupstep(){
tiltpos = tilt.read();
Serial.println(tiltpos);
if (tiltpos >= 66)
tilt.write(tiltpos - 2);
This is just an overview of my setup for a webpage, where I can move a servo with a button and this is called movetiltupstep();
The button is made here, ("<input type=submit value=UP name=UP style=\"width:100px\"><br>"); and I want to use this with the button in Edge Animate.
For a button this is the setup, function(sym, e) and I tried to integrate something like this:
// insert code for mouse click here
sym.$("<input type=submit value=UP name=UP>") but not working.
How would i proceed with this problem, ideas anyone?
Regards, Torimport javax.swing.*;
import java.awt.event.MouseMotionListener;
import java.awt.event.MouseListener;
import java.awt.event.MouseEvent;
import java.awt.*;
public class MouseTracker extends JFrame implements MouseListener, MouseMotionListener
private JLabel statusBar;
public MouseTracker()
super("Demonstrating Mouse Events");
statusBar = new JLabel();
getContentPane().add(statusBar, BorderLayout.SOUTH);
addMouseListener(this);
addMouseMotionListener(this);
setSize(275, 100);
setVisible(true);
public static void main(String[] args)
MouseTracker application = new MouseTracker();
application.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
public void mouseClicked(MouseEvent e)
statusBar.setText("Clicked at [" + e.getX() + ", " + e.getY() + "]");
public void mouseReleased(MouseEvent e)
statusBar.setText("Released at [" + e.getX() + ", " + e.getY() + "]");
public void mouseEntered(MouseEvent e)
statusBar.setText("Clicked at [" + e.getX() + ", " + e.getY() + "]");
getContentPane().setBackground(Color.GREEN);
public void mousePressed(MouseEvent e)
statusBar.setText("Pressed at [" + e.getX() + ", " + e.getY() + "]");
public void mouseExited(MouseEvent e)
statusBar.setText("Mouse outside window");
getContentPane().setBackground(Color.WHITE);
public void mouseDragged(MouseEvent e)
statusBar.setText("Dragged at [" + e.getX() + ", " + e.getY() + "]");
public void mouseMoved(MouseEvent e)
statusBar.setText("Moved at [" + e.getX() + ", " + e.getY() + "]");
} -
Hi ,
Could anyone let me know the BDC OK Code for Double click.
I need to select a row by double clicking it in my recording but not able to capture the code for it.
Please do the needful.
Thanks in Advance,
Sowmmya BHi sowmmya,
1. If the row you are talking about is
ALV Grid OO concepts,
then i think there is a problem.
It won't work with BDC as u are trying.
2. Well, for getting the code,
before double clicking go in debug mode /H
and then double click.
3. Now in deubbing mode,
see the value of sy-ucomm.
regards,
amit m. -
Code for double clicking rows in alvgrido/p and moving it to internal tabl
hi,
code for double clicking rows in alvgrido/p and moving it to internal tablehi,
see the following code which uses layout , double_click event in ALVGRID.
TABLES: mara,marc.
DATA:obj_custom TYPE REF TO cl_gui_custom_container,
obj_alv TYPE REF TO cl_gui_alv_grid.
DATA: it_mara TYPE TABLE OF mara,
wa_mara TYPE mara,
wa_layout TYPE lvc_s_layo,
wa_variant TYPE disvariant,
x_save.
DATA:it_marc TYPE TABLE OF marc,
wa_marc TYPE marc.
SELECT-OPTIONS: s_matnr FOR mara-matnr DEFAULT 1 TO 500.
START-OF-SELECTION.
SELECT * FROM mara INTO TABLE it_mara
WHERE matnr IN s_matnr.
CALL SCREEN '100'.
CLASS cl_dbclick DEFINITION
CLASS cl_dbclick DEFINITION.
PUBLIC SECTION.
METHODS dbl FOR EVENT double_click OF cl_gui_alv_grid
IMPORTING e_row e_column.
ENDCLASS.
DATA: obj1 TYPE REF TO cl_dbclick.
CLASS cl_dbclick IMPLEMENTATION
CLASS cl_dbclick IMPLEMENTATION.
METHOD dbl.
IF e_row-rowtype = space AND NOT e_row-index IS INITIAL.
READ TABLE it_mara INDEX e_row-index INTO wa_mara.
SELECT * FROM marc INTO TABLE it_marc
WHERE matnr = wa_mara-matnr.
CALL METHOD obj_custom->free
EXCEPTIONS
cntl_error = 1
cntl_system_error = 2
OTHERS = 3.
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
CALL SCREEN '200'.
ENDIF.
ENDMETHOD. "dbl
ENDCLASS. "cl_dbclick IMPLEMENTATION
*& Module USER_COMMAND_0100 INPUT
text
MODULE user_command_0100 INPUT.
CALL METHOD obj_custom->free
EXCEPTIONS
cntl_error = 1
cntl_system_error = 2
OTHERS = 3.
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
CASE sy-ucomm.
WHEN 'BACK'.
LEAVE PROGRAM.
ENDCASE.
ENDMODULE. " USER_COMMAND_0100 INPUT
*& Module filldata OUTPUT
text
MODULE filldata OUTPUT.
CREATE OBJECT obj_custom
EXPORTING
container_name = 'CONTROL'.
CREATE OBJECT obj_alv
EXPORTING
i_parent = obj_custom.
CREATE OBJECT obj1.
SET HANDLER obj1->dbl FOR obj_alv.
CALL METHOD obj_alv->set_table_for_first_display
EXPORTING
i_buffer_active =
i_bypassing_buffer =
i_consistency_check =
i_structure_name = 'MARA'
is_variant = wa_variant
i_save = x_save
i_default = 'X'
is_layout = wa_layout
is_print =
it_special_groups =
it_toolbar_excluding =
it_hyperlink =
it_alv_graphics =
it_except_qinfo =
ir_salv_adapter =
CHANGING
it_outtab = it_mara
it_fieldcatalog =
it_sort =
it_filter =
EXCEPTIONS
invalid_parameter_combination = 1
program_error = 2
too_many_lines = 3
others = 4
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDMODULE. " filldata OUTPUT
*& Module STATUS_0100 OUTPUT
text
MODULE status_0100 OUTPUT.
SET PF-STATUS 'STATUS'.
SET TITLEBAR 'xxx'.
ENDMODULE. " STATUS_0100 OUTPUT
*& Module STATUS_0200 OUTPUT
text
MODULE status_0200 OUTPUT.
SET PF-STATUS 'STATUS'.
* SET TITLEBAR 'xxx'.
SUPPRESS DIALOG.
SET PARAMETER ID 'MAT' FIELD wa_mara-matnr.
LEAVE TO LIST-PROCESSING AND RETURN TO SCREEN 0.
*WRITE:/ wa_mara-matnr,
wa_mara-mbrsh,
wa_mara-meins.
CREATE OBJECT obj_custom
EXPORTING
container_name = 'CONTROL'.
CREATE OBJECT obj_alv
EXPORTING
i_parent = obj_custom.
CALL METHOD obj_alv->set_table_for_first_display
EXPORTING
i_buffer_active =
i_bypassing_buffer =
i_consistency_check =
i_structure_name = 'MARC'
is_variant = wa_variant
i_save = x_save
i_default = 'X'
is_layout = wa_layout
is_print =
it_special_groups =
it_toolbar_excluding =
it_hyperlink =
it_alv_graphics =
it_except_qinfo =
ir_salv_adapter =
CHANGING
it_outtab = it_marc
it_fieldcatalog =
it_sort =
it_filter =
EXCEPTIONS
invalid_parameter_combination = 1
program_error = 2
too_many_lines = 3
others = 4
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDMODULE. " STATUS_0200 OUTPUT
*& Module layout OUTPUT
text
MODULE layout OUTPUT.
wa_layout-grid_title = 'MATERIAL DATA'.
wa_layout-zebra = 'X'.
wa_layout-edit = 'X'.
ENDMODULE. " layout OUTPUT
*& Module variant OUTPUT
text
MODULE variant OUTPUT.
wa_variant-report = 'ZALV_GRID1'.
x_save = 'A'.
ENDMODULE. " variant OUTPUT
*& Module USER_COMMAND_0200 INPUT
text
MODULE user_command_0200 INPUT.
CASE sy-ucomm.
WHEN 'BACK'.
CALL METHOD obj_custom->free
EXCEPTIONS
cntl_error = 1
cntl_system_error = 2
OTHERS = 3.
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
LEAVE TO SCREEN '100'.
ENDCASE.
ENDMODULE. " USER_COMMAND_0200 INPUT
thanks,
raji
reward if helpful -
I wish I can click on a bookmarklet on the Bookmarks bar to display the Wayback Machine's search results for the current page. In other words, I wish there can be a bookmarklet that opens the following URL:
http://wayback.archive.org/web/*/'''''URL_of_current_page'''''
I know I can drag a bookmarklet to the Bookmarks bar, and then, from its righ-click Properties menu, change the Location text to the JavaScript codes which opens the above Wayback Machine's URL. I just know nothing about programming.
So, could someone assist me with the needed JavaScript?
Thanks.
PS: I know there are some add-ons that deals with WaybackMachine, such as "Resurrect Pages" or "Wayback Machine 20100602". But I have not found one that does what I want.Thank you very much.
I hide the label text of this bookmarklet and use a Wayback Machine favicon for it. Now I have an icon on the Bookmarks bar, a click on which takes me to the old vesions of the current web page.
I will drink a glass of champaigne for that.
The Wayback Machine favicon I use is here:
http://www.archive.org/download/waybackfavicon32/wayback_favicon32.ico -
Code for button located inside the MC
I decided to rearange my flash site and now things don't work.
I used to have an image collage where all the images were buttons and each image was located on the stage ( which made a stage with 10+ loose images)
I made each image a button. Below is a code example for one of the images named "icysophistication_app_btn". The previously working code for it was:
icysophistication_app_btn.addEventListener(MouseEvent.CLICK, onClick_IcySophisticationPopUp);
function onClick_IcySophisticationPopUp(event:MouseEvent) :void {
gotoAndPlay("icysophistication");
Then I decided to unite all the images into one mc called "imgscollage_buttons_mc" (because later on I want to build another collage and have them sliding on the screen with tweener engine)
imgscollage_buttons_mc.icysophistication_app_btn.addEventListener(MouseEvent.CLICK, onClick_IcySophisticationPopUp);
function onClick_IcySophisticationPopUp(event:MouseEvent) :void {
gotoAndPlay("icysophistication");
I am guessing I have to put something before - gotoAndPlay("icysophistication");
but can't figure out what.
Please suggestyour original code was on the main timeline and it was the main timeline that contained the frame labeled "icysophistication"?
your new code is still on the main timeline and the main timeline still has that frame label? -
Plsql code for button.....
i have a page which contain fields term_id,*term_desc*,*term_condition*
and some buttons Add,*delete* and save..
Actually no data in the table..
when i press Add button the term_id should get increment by '1' .
where i have to wite the below coding in Edit Add button?
can i put the coding in Conditional Item Display condition type PLSQL?
declare
a number;
begin
select max(nvl(term_id,0))+1 into a from term_creation;
*:P5_TERM_ID*:=a;
end;
Edited by: skud on Mar 5, 2011 2:05 AMYou can submit the page with a request say "MY_REQUEST" and run a conditional PLSQL block(request equal to MY_REQUEST) and add the PLSQL code there.
If you want to do it without submitting page
<li>Apex Version 4 : Add an id to button (button attributes, id ="MY_BUTTON" ) and add a Dynamic Action fired on click of DOM element : MY_BUTTON , event type would be PLSQL and write your PLSQL code there(add required page items to be submitted in the field)
<li>Apex 3.x and 2.x(works iwth apex 4 too), create an ondemand PLSQL process, call the process from a javascript function(add the item values to session using the ajax request handle) and call the javascript function from the button click( action type: redircet to URL , javascript:function_name(parameter1,parameter2) ) -
Hello Folks ,
Iv'e Created a new screen using BDT technology and added a button inside screen .
how can i handle the function code within this screen in a way that i won't have system messeage "Unknown function code XXX" while clicking on this button.
tanks in advance.
Herzel .Hi,
You need to implement for your button a function module for the BDT event FCODE. You can have a look at the fms *_BUPA_EVENT_FCODE, to get an idea on how to implement it.
Thanks and warm regards,
Smita. -
Help with writing code for button
Hi!
Can someone help me with the code for a button that sends my menu back to 0?
This is the code current code, and I've created a button called sistapilen that I want to insert where the regular button "arrow" is not visible. I want sistapilen to navigate me back to 0. (Or if I can get "arrow" to do it and delete "sistapilen").
/Jen
// File downloaded from www.riacodes.com
import com.greensock.*;
var arrayX :Array = [0,-800,-1600,-2400,-3200,-4000,-4800];
var currentIndex:Number=6;
left_mc.addEventListener(MouseEvent.CLICK,navigate);
right_mc.addEventListener(MouseEvent.CLICK,navigate);
left_mc.buttonMode = true;
right_mc.buttonMode = true;
checkArrows();
function navigate(e:MouseEvent):void{
if(e.currentTarget == left_mc) currentIndex --;
else currentIndex ++;
checkArrows();
TweenLite.to(content_mc,.5 ,{x:arrayX[currentIndex]});
function checkArrows():void{
if(currentIndex == 0) left_mc.visible=false;
else if (currentIndex == arrayX.length - 1) right_mc.visible = false;
else{
left_mc.visible = true;
right_mc.visible= true;Add a listemer for whichever other button you plan to use...
sistapilen.addEventListener(MouseEvent.CLICK,navigate);
And try changing your navigate function as follows...
function navigate(e:MouseEvent):void{
if(e.currentTarget == left_mc) {
currentIndex--;
} else if(e.currentTarget == right_mc){
currentIndex ++;
} else {
currentIndex = 0;
checkArrows();
TweenLite.to(content_mc,.5 ,{x:arrayX[currentIndex]}); -
OK CODE FOR SINGLE CLICK IN DYNPRO
HEY GUYS,
CAN YOU PLEASE TELL ME WHATS THE OKCODE FOR SINGLE CLICK.
IF I MAKE SINGLE CLICK IN TABLE CONTROL COLUMN HEADER ITS NOT GOING TO PAI FLOW LOGIC.
PLEASE SUGGEST ME ..HOW TO GO WITH PAI USING SINGLE CLICK ACTION WITH TABLE CONTROL COLUMN HEADER.
IS THERE ANY FUNCTION CODE I HAVE MAKE TO ON READY TO STATUS AT TABLE CONTROL COLUMNS.
THANKS IN ADVANCE.
AMBICHANHi Chan,
Instead of Single click better u can handle trying Double click... Then PAI will definitely be triggered..
Regards,
Sridhar -
Hi,
I've developed custom application in Office365(Sharepoint Online) using CSOM/Javascript. Security team from client side has been reported one major issue to the our application that any end user can comment our CSOM/Javascript code and bypass the validation
or can update / insert into sharepoint list item using developer tool/ Console in Google Chrome(F12 Key).
Also end user can write his own separate code in console of Google Chrome (Developer Tool / F12) and can update / insert into Sharepoint List.
Note:- End user has Add, Edit, View permission on all Sharepoint List.
This is one major security flaw of the Sharepoint/Office365 to use CSOM /Javascript for writing code, to overcome this issue could you please provide me some solution.
Your help would be greatly appreciated!!!
Looking for reply.
Thanks,
Mahesh Sherkar
Web: http://Mahesh-Sherkar.com
Email: [email protected]Hello Paras,
Did you get any solution for this? I think your website was implemented this form. Can you please tell me the way how I can achieve it? I am also facing same problem. Please reply me as early as possible.
Thanks,
Mihir
Maybe you are looking for
-
Incoming calls bypass the general iphone lock
Although I've set up the general lock on my IPhone 3G, incoming calls bypass the mechanism and make the phone accessible by anyone who picks it up. Is there a way to require a passcode for receiving calls....I want to block all access to my phone! An
-
Creation of Transfer Order for Inbound Delivery
Hi, I am using L_TO_CREATE_DN for creation of a TO for Inbound Delivery. I am getting this message."""Item 180000166 000010 does not exist or is not relevant for picking""" The delivery is having Ware House number so i think it is relevent for pickin
-
Hi All, I have been using JMS queues for few of my OSB projects. From what I have noticed, the JMS server fails to queue messages often. This is solved once the weblogic server is restarted. I come across this problem atlest thrice a week. Everytime
-
Hi.. How do i unauthorise a computer (3) that are no longer in use i.e i have formatted my harddrive 4 times now and itunes says i am using 4 out of 5 of my licenses or whatever but i only have computer now (single boot) help plz
-
I have photoshop elements 11 and can't print to my local HP6210 inkjet printer. Its as if photoshop 11 isn't talking to my printer. Can anyone advise?