How to disable in java script - a popup window
the below code works for enabledisable of the text box , but now the text box is a popup window, how do i refer to that, please help' Doug
function enableDisable(pValue)
if (pValue == '/')
document.getElementById("P4_END_ITEM_DESC").disabled = false;
else
document.getElementById("P4_END_ITEM_DESC").disabled = true;
footer
<script language="JavaScript">
enableDisable(document.getElementById('P4_END_ITEM_DESC').value);
</script>
onBlur="javascript:enableDisable(this.value); "
Hi,
The popups are constructed differently from normal page items so are a bit more complicated to disable.
Try something like:
function disablePOPUP()
var r = html_CascadeUpTill('P1_ITEMNAME', 'FIELDSET');
var img = r.getElementsByTagName('IMG');
var i = r.getElementsByTagName('INPUT');
i[0].disabled = true;
img[0].style.visibility = 'hidden';
}Note that this disables the input field but hides the icon
Andy
Similar Messages
-
How to use java script when popups are blocked in browser
How to use java script when popups are blocked in browser
Not. When people install a popup blocker they don't WANT popups, so stop trying to force them down their throats.
-
How to remove a java script pop up
Hi,
I imported a robohelp document from another company and i am
catering it to my company's needs. The problem is they have popups
which refer to .bmp and it is in java script. If i highlight the
word which has the pop up and remove the popup and then highlight
the normal word again and refer it to my topic in the project
manger; it still refers to their image and not mine. It is strange
but true. I don't know how to remove the java script cos each time
i hover over the highlighted text there are 2 red squares on the
left and right hand side of the word highlighted which i want to
change from their image to mine.
Any help would be much appreciated .
Thanks,
Ramyaplease take a look at this
//--></script></robohelp>
on the <b style="font-weight: normal;">Environmental
Consequence</b> window
captures and displays information that you reported to a
governmental
agency, police, rescue center, or internal company sources.
</p>
<div class=droptext id=POPUP286607275 x-ss-type=dropdown
style="display: none;">
<p class=Graphic style="margin-left: 0in;"><img
src="agency_notification_tab.bmp"
x-maintain-ratio=TRUE class=img_whs2 style="width: 1108px;
height: 120px; border-style: none; border-style: none;"
width=1108 height=120 border=0></p>
</div>
<p class=Body>The following is a description of some of
the fields that
display on the <b style="font-weight:
normal;">Agency Notification</b> tab:</p>
<ul class=whs3 style="list-style: disc;" type=disc>
<li class=p-BulletedList1><p
class=BulletedList1><b style="font-weight: bold;">Reported
By</b> - Person who reported the incident to an agency
or organization.</p></li>
<li class=p-BulletedList1><p
class=BulletedList1><b style="font-weight: bold;">Agencies
Notified</b> - Agencies or organizations notified
about the incident.</p></li>
<li class=p-BulletedList1><p
class=BulletedList1><b style="font-weight:
bold;">Contact</b>
- Contact person at the notified agency or
organization.</p></li>
<li class=p-BulletedList1><p
class=BulletedList1><b style="font-weight: bold;">Notify
Date</b> - Date the agency was
notified.</p></li>
<li class=p-BulletedList1><p
class=BulletedList1><span style="font-weight:
bold;">Comment/Report
Number</span> - This field can be used to record any
comments, notes,
agency report/case numbers associated with the agency
notification. </p></li>
</ul>
<p class=TableText><a href="javascript:void(0);"
onClick="var e; if (parseInt(navigator.appVersion)>=4){e=event;}
if (parseInt(navigator.appVersion) >=2 &&
typeof(PopupMenu_Invoke) == 'function')
PopupMenu_Invoke(e,'','Action
Buttons','../../03_Getting_Started_files/Action_Buttons.htm','Adding
a Row','../../03_Getting_Started_files/Adding_Row.htm','Adding Text
Entries','../../03_Getting_Started_files/Adding_Text_Entries.htm','Deleting
a
Row','../../03_Getting_Started_files/Deleting_Rows.htm','Environmental
Consequence
Record','EC_Environmental_Consequence_Record.htm','Searching by
Personnel
ID','../../03_Getting_Started_files/Searching_by_Personnel_ID.htm','Selecting
the
Time','../../03_Getting_Started_files/Selecting_Time.htm');return
false"
title="Related Topics" id=a2 style="position:
relative;"><img src="../../ss_btn_related_topics1.gif"
alt="Related Topics" style="width: 81px; height: 17px;
border-style: none; border-style: none;"
width=81 height=17
border=0></a><robohelp><script
type="text/javascript"
language=JavaScript1.2><!--
InitEffects('a2');
//--></script></robohelp>
</p>
<script language=javascript1.2
type="text/javascript"><!--
kadovTextPopupInit('a1','POPUP286607275');
//--></script>
if you could paste this code on your word doc and try to
search for .bmp it exactly shows where it is used i tried removing
that line but it acted strange as even when i added a pop up to a
word it does not show anything in the view mode. -
How to Use the JAVA SCRIPT code in .htm page of the component
Hi .
In my requirement i have to use Java Script Function in .htm code ..how to use the java script code and functions in .htm???
thank you
B.ManiCheck this document [Arun's Blog|http://wiki.sdn.sap.com/wiki/display/CRM/CRMWebClientUI-TalkingwithJava+Script]
Regards
Kavindra -
How to access a JAVA Script variable in JSP Code
How to access a JAVA Script variable in JSP Code. I have been unable todo this.
Plz Suggest a way.
Thanks
Soumyatry to do this code
String s=request.getParameter("javascriptvariablename"); -
How to call a java script in while eventprocessing?
hi friends,
How to call a java script from an event.
when i click a button, i want to display a message in IE.
For ex: BTN_CAN,
When i click on this in IE i want show a message like "clicked on cancelled".
how can i do this.....
in javascript WINDOW.ALERT i am trying....
Regards,
Shankar.you can do some thing like this...
< % @ pa g e la ng uag e="a b ap" %>
< % @ e xte n sion name="htmlb" prefix="h tm l b" % >
< h t m l b:co nt e nt d es ign="design2 00 3" >
< ht m lb:page title=" " >
< h tm lb :for m >
< h t mlb:textVi ew text = "Hello World!"
des ign = "EMPHASIZED" />
< ht m lb :bu tton text = "Press Me"
on Clie ntC lick = "al ert(' H ell w or l d')" / >
< / h t mlb :for m >
< / ht mlb :pa g e >
< / htm lb:co nt e nt >
Edited by: Vijay Babu Dudla on Oct 6, 2008 7:20 AM -
How to call a java script?
Hi,
I m new to Indesign and also to MAC OS...
I ve tried the sdk samples of InDesign CS3 on MAC OS. It works well.
I m making changes to one of the samples (BasicPanel). I ve added few check boxes and buttons in it. I donno where to give the code for button(in the panel) event/action?
I also need to know "how to call a java script from InDesign CS3 SDK ?"...
I have the Scripts ready... Can someone provide the code used to call JS...
Someone pls help me.....
Thank You...Here s the code to call a Javascript:
IDFile scriptFile;
FileUtils::GetAppInstallationFolder(&scriptFile); //application folder path
FileUtils::AppendPath(&scriptFile, PMString("Scripts", -1, PMString::kNoTranslate));
FileUtils::AppendPath(&scriptFile, PMString("Scripts Panel", -1, PMString::kNoTranslate));
//inside the scripts panel, append path of the folder in which ur script is present.
//Suppose, ScriptsPanel->NewFolder->Link.jsx
FileUtils::AppendPath(&scriptFile, PMString("NewFolder", -1, PMString::kNoTranslate));
FileUtils::AppendPath(&scriptFile, PMString("Link.jsx", -1, PMString::kNoTranslate));
InterfacePtr<IScriptRunner>scriptRunner(Utils<IScriptUtils>()->QueryScriptRunner(scriptFi le));
bool filestatus=scriptRunner->CanHandleFile(scriptFile);
if(filestatus==1)
scriptRunner->RunFile(scriptFile,kTrue,kFalse);
Regards,
tnhems -
How & where to use Java script to create new button in object detail page
Hi All,
I want to create "New/Add button" in object detail page. If i am not wrong i need to use java script for that but could you please let me know how & where to use Java script to create new button in object detail page in CRMOD.
Thanks in advance.
Regards,
ManishAny related object on the detail page should have an "Add" or "New" or both buttons by default - This is vanilla functionality and will do the required action.
If you want to modify this behaviour and do something tricky you will potentially have to go for javascript. You should add the javascript on a custom web tab on that Object.
Admin --> Application Customization --> Contact -->Contact Web Applet
Now, add your javascript in the code area, after you select the type = HTML for this web applet, expose this web applet on the Contact detail layout and your javascript will be invoked whenever this page is loaded.
Check this online document to see how javascript can be embedded in CRM on Demand http://helponmyproject.com/TTOCOD/
Cheers!
Royston -
HT1338 how can i update java script
how can we update java script on our mac book?
Apple supplies their own version of Java.
Try Software Update. -
How I can play java script game
Hello,how I can use java script games, such a chess
Go here: http://htmlchess.sourceforge.net/demo/example.html or http://valil.com/chess/chess_include.html on your iPad.
Those JavaScript chess games work fine on the iPad. There are others if you Google for "Javascript chess game", but as PogoPossum said, you'll find better ones in the AppStore. -
How do i disable a java script error that pops up everytime i click on something?
java script error Error: Permission denied to access property 'host'
this continues to come up every time i click on something. this has only started since i downloaded firefox 4.0. how do i disable the pop up or do i just stop using 4.0? would go back to the last version but when i try to download that i'm told the files are corruptedCreate a new profile exclusively for the 4.0 beta version and create a desktop shortcut with -P "profile" appended to the target to launch that profile.
* http://kb.mozillazine.org/Testing_pre-release_versions
* http://kb.mozillazine.org/Creating_a_new_Firefox_profile_on_Windows
* http://kb.mozillazine.org/Shortcut_to_a_specific_profile
* http://kb.mozillazine.org/Using_multiple_profiles_-_Firefox -
How to call a java script program in a vi?
Hi,
I have to call a script in java script with arguments. This script
contains 4 functions, and need an array to works. This array is
produced by my vi. It returns a float.
How can I call this script with parameters in my vi?
Thanks.
BD.
~ La programmeuse compile le C. ~
http://www.pmeonline.fr.st
http://www.nihon-fr.com
http://www.cinemasie.com
http://ippai.free.frNo, my java script program is composed of several functions. I just want to call the functions in my vi, with arguments, etc.
I don't know if it is easy to use
~ La programmeuse compile le C. ~
http://www.pmeonline.fr.st
http://www.nihon-fr.com
http://www.cinemasie.com
http://ippai.free.fr -
How to populate a java script array from a bean.
Hi all,
I have a list "mdfProductNames" which is further comprising of two fields "subGroup" and "mdfProductName"
The list is coming is a part of the form bean.(struts framework)
Now i want to have the values of these two fields in two different java script arrays.
i.e. Array x -> mdfProductName
and Array y -> subGroup
can someone give me any idea as to how to do this ?
Thanks
Edited by: Ramit on 17 Jul, 2008 9:53 AMhi,
assuming u use jstl, u need to create javascript variable during html generation out of the values got from struts form bean. it could look like this:
------ .jsp file ----
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
<script type="text/javascript">
var X = [];
var Y = [];
<c:forEach items="${formBeanName.mdfProductNames}" var="grpProdName">
X.push( '${grpProdName.mdfProductName}' );
Y.push( '${grpProdName.subGroup}' );
</c:forEach>
// here u already have the two arrays filled up with data
</script>
------- end of .jsp file
"formBeanName" is a name of a formbean u use to store the list of your beans
rafal baton zaczynski
http://baton.pop.e-wro.pl - tips and codes
http://www.belysio.com - free mobile localization soft -
How to integrate a java script date picker with jsf?
Hi I have a javascript data picker which I want to integrate with a text tield.. that is <jsf:inputtext tag...
I know about onlclick .. but I am more interested in knowing .. how will the java script set date into that input text field.. i mean how will it recognize the field..Pass the input element as 'this' reference to the JS function?onclick="doSomething(this);"This has not much to do with JSF though.
-
How create indesign using Java Script
I am new in indesign and want to create indesign application using JavaScript.
When i use AppleScript to create Indesign Application i use this statement
tell application "Adobe InDesign CS5.5"
set myDocument to make document with properties
end tell
Indesign Application create sucessfully.
How create Indesign Application using JavaScript ?
or what is equivelent statement of ( tell application "Adobe InDesign CS5.5" ) in Java Script.
There are some java scripting example given on forum or in sdk.These all example start with app.
when I debug these java script using ExtendScript ToolKit 3.6 It give error on app (undefined app).I think this app ia application object.
How create indesign application object app in javascript ?
While this script run sucessfully when i put these script in C:\Program Files\Adobe\Adobe InDesign CS5.5\Scripts
and to run these script use Scripts panel (choose Window > Utilities > Scripts), then double-click the script name in the Scripts panel in indesign application.But In this case first i start indesign application and then choose Window > Utilities > Scripts then double-click the script name in the Scripts panel.
I want to create Indesign Application (instance) using JavaScript.When I run or (debug) my JavaScript in any javaScript tool like ExtendScript ToolKit 3.6 then Indesign application should start, like in Apple Script.
ThanksThanks Vamitul for reply
For example when i run SelectObjects.jsx An InDesign CS5.5 JavaScript in ESTK then message prompt "Target Adove Indesign CS5.5 is not running. Do you want to lanch." Then on click yes Indesign application start.
I want to Know how indesign object "app" is created to start Indesign application on click yes.
http://wwwimages.adobe.com/www.adobe.com/content/dam/Adobe/en/devnet/indesign/cs55-docs/In DesignScripting/InDesign-ScriptingTutorial.pdf
Like in VB to create indesign object we use CreateObject("InDesign.Application"). In javascript how create object say "app" of InDesign Application.
For example if i write
var myDocument = app.documents.add();
var myTextFrame = myDocument.pages.item(0).textFrames.add();
myTextFrame.geometricBounds = ["6p", "6p", "24p", "24p"];
myTextFrame.contents = "Hello World!";
in a simple text file and save it with .js extention and to open this double click on this it give error undefined "app".
Source :Microsoft JScript runtime error
So how define "app" or create indesign object ?
Thanks
Maybe you are looking for
-
*Error while creating Trave Requset through ESS*
Hi, We are getting following error while creating request through ESS: Entry not found in table T706V. Argument: 40P IN 0010120090608 The estimated travel amounts could not be determined Errors have been discovered when checking the Expense Report. P
-
Error While Executing Sqlplus from shell
I am trying to execute the below shell script with out back ticks(`${ORACLE_HOME}/bin/sqlplus) while calling sqlplus in the below code. When i do that all the next lines after that are changing to red color in vi and when i execute the script i am ge
-
Error with doing sum of distinct value and displaying of data in SSRS
from the picture each food is 1 month. when the report if i put sum(output) so month 1 = 10 month 2 =20 month 3 =30. when i collapse the thing i want to see 10+20+30. but however it shows (10*6)+(20*6)+(30*6)=360.but the correct value should be 60..
-
TS3999 Is there a way to see the date you invited someone to an event on your calendar?
Is there a way to see the date you invited someone to an event on your calendar?
-
Can we update InfoPath field using Event Receiver ItemAdded method
Hi, Can we update InfoPath browser enabled form field using Event Receiver ItemAdded method. Following is the code snippet I used to update the field but it's not updating the field. Please help me on this issue. public override void ItemAdded(SPItem