OnClick, onBlur, onChange etc function.
I'v browsed many threads and found that (for example) 'HTML Form Element Attributes' people can fill out 'onClick, onBlur, onChange etc'. Actually what programming language is used to fill out this ? How many 'onXXX' functions out there ? Any documentation may help.
Thanks.
Gamez.
Hi,
what you are talking about are javascript event handlers. Since I'm German I have this quick overview for you: http://de.selfhtml.org/javascript/sprache/eventhandler.htm
Maybe you can use it to search for those function names in the web.
Greets
Similar Messages
-
Problem with onBlur=validate_int_range javascript function
Hi i have a java script function which is use to check for the range of the integer i enter.
The function works fine but the problem is once i click ok on the validation boxes that come up when i enter a wrong value it allows me to click the submit box.But if i click back on the text box then the validation box appears again.
The report code is
to_clob(HTMLDB_ITEM.text(5, pref_val,15,30,'onBlur="validate_int_range('||pref_name||','''||pref_expr||''');"style="width: 220px;"',pref_name)),
and the javascript function is
<script language="JavaScript1.1" type="text/javascript">
function validate_int_range(pref_name, range) {
var pos = range.indexOf('-');
var start_val, end_val;
var actual_val = pref_name.value;
var non_digits = /\D/;
if ( non_digits.test(actual_val) ) {
alert('Validation Fail: only digits allowed. ' + range);
if ( pos > 0 ) {
start_val = range.substr(0,pos);
end_val = range.substr(pos+1, range.length-pos+1);
if ( eval(actual_val) < eval(start_val) ) {
alert('Validation Fail: smaller value than ' + start_val );
if ( eval(actual_val) > eval(end_val) ) {
alert('Validation Fail: larger value than ' + end_val);
function validate_rule(pref_name, exp) {
var actual_val = pref_name.value;
expression = new RegExp(exp);
if ( ! expression.test(actual_val) ) {
alert('Validation Fail: Rule ' + exp);
</script>>thanks you so much for the code, I'll test it out and
reply with >the
>results.
Shouldn't that be "Thanks so much for the Cod"?
"Dave Bar" <[email protected]> wrote in message
news:e28c7t$hk1$[email protected]..
> ahh yes, you are right..
> I should have said OR instead of AND.
> If Field is blank OR range is not between 1900 &
2006. Thanks for catching
> and pointing that out.
>
> thanks you so much for the code, I'll test it out and
reply with the
> results.
> Thanks
> -Dave
>
>
>
>
> "Lionstone" <[email protected]> wrote
in message
> news:e28b1a$fu5$[email protected]..
>> That's probably because you asked for a fish to help
you out
>>
>>> Can some kind sole help with a modified version
to also check for an
>>> entered
>>> number range?
>>
>> and fish can't type.
>>
>> You're off on the logic though, since something is
not likely to be both
>> blank and outside a certain number range. If it's
blank or outside the
>> range, either condition is sufficient for an error,
right?
>> You also want to make sure that no letters, etc, are
entered, because
>> that will mess up your comparisons to the other
numbers. Keeping in mind
>> that javascript validation can be defeated by
sneezing and you'll need to
>> re-validate on the server, this will be closer to
right (not tested).
>>
>> var ThisYear = ThisForm_Right.DOB_Year.value;
>> ThisYear = ThisYear.replace(/[^/d]/g,"");
>> if(ThisYear.length == 0)
>> {
>> alert("Please enter the year of your DOB.");
>> ThisForm_Right.DOB_Year.focus();
>> return false;
>> }
>> else
>> {
>> ThisYear = parseInt(ThisYear);
>> if((ThisYear < 1900) || (ThisYear > 2006))
>> {
>> alert ("The year of your DOB must be between 1900
and 2006.");
>> ThisForm_Right.DOB_Year.focus();
>> return false;
>> }
>> }
>>
>>
>
> -
T61 cd/dvd audio,burning etc. functions no longer perform.
When I place a CD or DVD into the laptop I can hear the DVD multi working but the default Windows Media Player does not respond. All other computer functions OK. Whats up? Thanks, MDO
Is DLA enabled on your drive? I've seen that cause some pretty strange problems.
Right click on the drive icon and look for a DLA tab.
Z.
The large print: please read the Community Participation Rules before posting. Include as much information as possible: model, machine type, operating system, and a descriptive subject line. Do not include personal information: serial number, telephone number, email address, etc. The fine print: I do not work for, nor do I speak for Lenovo. Unsolicited private messages will be ignored. ... GeezBlog
English Community Deutsche Community Comunidad en Español Русскоязычное Сообщество -
TOOL access to fscript (Partition, MakeAppDist etc)functions?
G'day All
Does anyone know how to access fscript functionality from within TOOL code?
I mean not the usual execute command then run fscript -i somefile.fsc but
true agent access within tool. I need the usual commands used to partition a
project, like FindPlan, SetProjType, FindActEnv, Partition 3, NewPart,
MoveServiceToPart, AssignAppComp, UnassignAppComp, MakeAppDist etc.
At the moment I have automated VMS scripts that generate specific temp.fsc
(fscript) files for me that then run like "ftscipt -i buildappABC.fsc". I
like to do so from within TOOL.
Many Thanks,
Dirk
Dirk Haben
Forté System Administrator
Sealcorp Holdings Limited
Level 38 Central Park, 152 St George's Terrace, Perth, WA 6000
e-mail: Dirk.Habensealcorp.com.au
phone: +61-8-9265-5758
================================================================================================
IMPORTANT INFORMATION
This message and any files transmitted with it are confidential and should be read only by those
persons to whom it is addressed.
If you have received this message in error, please notify us immediately by way of reply. Please
also destroy and delete the message from your computer. Any unauthorised form of reproduction
of this message is strictly prohibited.
It is the duty of the recipient to virus scan and otherwise test the information provided before
loading onto any computer system.
SEALCORP does not warrant that the information is free of a virus or any other defect or error.
SEALCORP is not liable for the proper and complete transmission of the information contained in
this communication, nor for any delay in its receipt.
Any views expressed in this message are those of the individual sender, except where the sender
specifically states them to be the views of SEALCORP.
================================================================================================Hi,
Please attach the project. I will check with internal build and let you know the outcome. -
Trig etc functions on fractions?
Fraction.java with trig methods?
I've been playing with geospatial stuff for a while now, and I've been striking a lot of problems with the inherent inaccuracies of floating point number representations, especially in complex-calculated values.
Here's a simple but pertinent example:
class TheSumOfSevenSevethsIsNotOne
public static void main(String[] args) {
double f = 1.0/7.0;
double sum = 0.0;
for (int i=0; i<7; i++) {
sum += f;
System.out.println("sum = "+sum);
// OUTPUT:
// sum = 0.9999999999999998
// not 1 as you might expectThe numbers I'm storing are latitudes and longitudes in degrees, so the max_value is just 360, but the requirement is that lat/lon must be accurate to 9 decimal places, which equates to about +/- 0.6 millimetres, which is (apparently) close enough to be regarded as "millimetre accuracy" by cartographers, even though total ambiguity is 1.2 mm.
So three digits, plus six digits, is only nine digits, right?... and the humble int can store a tad more than 9 digits...
123.123 456
Integer.MAX_VALUE = (2^31)-1 = 2,147,483,647So I got to thinking... How would it be if I stored all lat/lons in the database as integers (multiplied by a million)? and did all my calculations rounded (not truncated) to the nearest 1. I could even save a few hundred million bytes that way... But that still leaves the same ole ambiguity around the actual calculations, many of which involve division ;-(.
So I got to thinking maybe I could use fractions? How would a Fraction.java look?
I googled around and found some great stuff, including:<ul>
<li>[Diane Kramers Fraction.java|http://aleph0.clarku.edu/~djoyce/cs101/Resources/Fraction.java]
<li>[Working with Fractions in Java|http://www.merriampark.com/fractions.htm] (includes BigFraction.java - very handy)
<li>[Doug Leas Fraction.java|http://gee.cs.oswego.edu/dl/classes/EDU/oswego/cs/dl/util/concurrent/misc/Fraction.java]
</ul>
But I haven't found anything which implements the basic trigonometry functions like sin, cos, tan, cot (and whatever else)... but [Daves Short Trig Course|http://www.clarku.edu/~djoyce/trig/] might give me the understanding required to do so... nor does any existing Fraction.java (which I've found so far) implement handy things like x^y, log, modulo (and whatever else) ... and not being a mathematician myself, I'm not overly eager to implement them... I'd never be sure I'd done the job properly.
Please is anyone aware of any such implementations, even partial ones? Or could someone perhaps be persuaded to do part(s) of it just for the challenge?
Cheers all. Keith.Sir Turing Pest,
I do geospatial stuff amost exclusively and I dont understand this post.
Why not just use doubles? The "error" you're seeing is so trivial.
Put into perspective, if you were positioning something from the
Sun to Pluto you'd be off by half a millimeter.
How do you figure that you only need 9 digits?
ignore 360 degrees. the circumference of the earth is 41k km and you need
accuracy to .6 mm = 11 places
(40 075.02 kilometers) / (.5 millimeters) = 80,150,040,000I didn't figure it, our local GIS expert did, based mainly on the size of an integer,
When I do the math I get to 9 decimal places == about 1.11 mm, and that's allways rounded (not truncated) to 9 decimal places which I think means our points are accurate to plus or minus about 0.6 mm.... but I'm just a humble computer programmer, NOT a mathemetician or a geospatial expert.
We're storing lat/lon to 9 decimal places... So 1 is 1 degree.
40,075.160000000 kilometers circumference of the earth
equals 40,075,160.000000000 meters circumference of the earth
equals 111,319.888888889 meters meters per degree at the equator
equals 0.000000001 degrees storage accurracy
equals 0.000111320 meters
equals 1.113198889 millemeters storage accurracy in millimeters
So sure you established that aggregate double addition comes out "wrong".
Then dont do it, lol. Dont waste your time trying to invent new number
storage. Just try to write your algorithms so you don't do aggregate addition as much.We try not to aggregate calculated values... but there are certain algorithms, like the reverse/mercator transforms where it's unavoidable... So opportunities for improvement is this area a likely to be NOT very cost effective, ie: bigger than Ben Hur, harder than a bulls azz, and uglier than an extreme closeup of my scotum... My main concern has been (rightly or wrongly) the inherent inaccuracy in our storage of numbers.... thinking that improvements in this area just might be cost-effective, and therefore doable.
Iterestingly... we had a tree-clearing case kicked out of court recenctly because we couldn't define the boundaries of the national park in question to the satisfaction of the court... a "satisfaction level" which was based on our own "millimeter accuracy" definition of the required accuracy of survey data, which is based on international standards for GIS. ie: It's a bit of sore spot around the office at the moment, and I'm trying to do some bluddy thing about it... I'm just at a bit of a loss as to exactly what, without throwing literally millions of dollars at the problem to upgrade ALL our systems to 11 decimal places (or better). I'm in stress city.
Cheers. Keith. -
I'm getting an "invalid column name" error when I try to use the xmlelement() function (and the like). Is this function only available on 9i Release 2? How do I find the SQLX functions and/or load them up for use? Hopefully someone will see this as a quick question and answer it for me!
Cheers,
FishReply
Sorry. These are not loadable they are core database functionality only available with 9.2.0.1.0 and later.. -
OnClick Open Browser Window function
If I desire a media file to open up in a small window, it
would seem clear
how to do this with the "behaviors" menu, but my problem is
that I get two
windows opening, a main window, full size, and also the
smaller "behavior"
sized window I desire to be opened. Any help on this? Why do
I get both
opening up?
Here is the page that I'm having problems with. In the main
body of the
page, in the middle of that column is a paragraph that says:
Annalysis for Latter-day Saints of the New World Order, based
from the
Teachings of Ezra Taft Benson. None Dare Call It Conspiracy
is quoted in
this valuable article, a book endorsed by Ezra Taft Benson.
the highlighted "endorsed by Ezra Taft Benson"
is meant to open up a small window containing a 2 minute mp3,
but it opens
up twice.
Here is the URL:
http://www.awakeandarise.org/
Any help on getting this resolved would be much appreciated.
I'm using Dream Weaver MX (6.0) edition.Murray,
I'm not finding a way to update to 6.1. Usually there is an
update command
under the help menu, is there such a thing I should be able
to find?
"Murray *ACE*" <[email protected]> wrote
in message
news:[email protected]...
>I see - we'll have to wait for Mick, then, to sort
this....
>
>> I'm on a PC and the version is 6.0.
>
> Please update to 6.1 before doing anything else.
>
> --
> 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
> ==================
>
>
> "Gary Stewartson" <[email protected]>
wrote in message
> news:[email protected]...
>> Thanks Murry,
>>
>> Here is what I have in the code:
>>
>> <a href="media/ConspiracyFact.htm"
>> onclick="MM_openBrWindow(
>> this.href,'Conspiracy',
>> 'toolbar=yes,location=yes,
>> status=yes,menubar=yes,scrollbars=yes,
>> resizable=yes,width=600,height=375');
>> return false;"> endorsed by Ezra Taft
Benson.</a>
>>
>> I'm not having luck with it, it still opens just the
one full sized
>> window.
>>
>> Also, on another note, you graciously answered a
post from me weeks ago,
>> and my return answer came back undeliverable for
some reason. I was
>> asking about changing the title tag from a template,
and making that an
>> "editable region" so that all my pages would have
their own title, not
>> all taking on that given in the template as it now
stands. You asked
>> what version of Dreamweaver I had and what platform.
I'm on a PC and the
>> version is 6.0.
>>
>> Any direction on what to do to make the title tag
editable for all the
>> pages created from the template?
>>
>> Thanks,
>>
>> Gary.
>>
>> "Murray *ACE*"
<[email protected]> wrote in message
>> news:[email protected]...
>>> It's Mick, not Mike. And you are getting this
because you forget to add
>>> the ";return false" at the end.
>>>
>>> --
>>> 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
>>> ==================
>>>
>>>
>>> "Gary Stewartson"
<[email protected]> wrote in message
>>> news:[email protected]...
>>>> Mike,
>>>>
>>>> Thanks for this. It keeps two windows from
opening, but I have now the
>>>> .htm file open up in full window size,
rather than the smaller window
>>>> which I desired. Any thoughts?
>>>>
>>>> Thanks,
>>>>
>>>>
>>>> "Mick White"
<[email protected]> wrote in message
>>>> news:[email protected]...
>>>>> Gary Stewartson wrote:
>>>>>
>>>>>> If I desire a media file to open up
in a small window, it would seem
>>>>>> clear how to do this with the
"behaviors" menu, but my problem is
>>>>>> that I get two windows opening, a
main window, full size, and also
>>>>>> the smaller "behavior" sized window
I desire to be opened. Any help
>>>>>> on this? Why do I get both opening
up?
>>>>>>
>>>>>
>>>>>
>>>>> <a href="media/ConspiracyFact.htm"
>>>>> onclick="MM_openBrWindow(
>>>>> this.href,'Conspiracy',
>>>>> 'toolbar=yes,location=yes,
>>>>> status=yes,menubar=yes,scrollbars=yes,
>>>>> resizable=yes,width=600,height=375');
>>>>> return false;">
>>>>> endorsed by Ezra Taft Benson.</a>
>>>>>
>>>>> Mick
>>>>
>>>>
>>>
>>>
>>
>>
>
> -
Presently, our Mail, Calendars, etc. are being synced using Mobile Me accounts. Considering all of the changes coming to Calendars, etc. with Lion, anything special to do before / during a change to Lion?
Hi
If you already have a Mobile Me account it will work with Lion until you change to iCloud or June 2012, which ever comes first...
Calanders, Contacts, Mail, Notes will become part of iCloud when launched (in the very near future), your iDisk, Photo Gallery and iWeb hosting will cease when you register for iCloud or in June 2012. So if you use the features of Mobileme that will cease to be, carry on using Mobileme for as long as possible.
http://www.apple.com/uk/icloud/what-is.html
http://http://www.apple.com/uk/mobileme/transition.html
Hope this helps.
M. -
I'm signed in but the program asks me to sign in when I try to convert a file. Then it asks me to pay again! It was working fine for about an hour...then this snafu...
[topic moved to Acrobat.com Services forum]
-
Any help as to why this simple shortcut is suddenly not working in Illustrator CC?
I try to use it to duplicate an empty circle with a coloured path while scaling it down (with the intention of using Ctrl D to continue the progression). The shortcut simple resizes the path without duplicating it. Please help.
Many thanks,
Paul.Did it ever work in that context?
It works within the scale tool, but with the bounding box it scales to the center. -
Recently I updated all my anti spyware/malware software, and deleted all cookies and history. Since then I have been unable to load specific pages in the Gardens of Time Facebook game. I can play the game, but can't add neighbours, and send gifts. These pages should bring up lists of my current GOT friends, all my facebook friends and a recommended list of request recipients.
Thanks for this mha007 - I can now open FF with a new profile. Can I copy my settings from the old profile or will this bring over the same problem, maybe a corrupt file. If it would bring the same problem, is there any way I can check which file is corrupt, apart from taking them over one by one?
-
Javascript not firing with Pagination
Hello
I have an HTMLDB Report region where I have HTMLDB_ITEMs on which there are javascripts that fires onBlur, onChange etc. The report also has its pagination set.
The issue what I am facing is that the javascripts are firing only at the first page, when I traverse to the second page onwards, the javascript does not seem to fire. If I increase the pagination and get all the records to one page, the javascript fires for all the records. But as the number of records are huge, I need to use pagination.
Do i need to set any prameters to fire this for the pages. It will be a great help if anyone can help me.
Thanks
-GeorgeyHi Andy
Thanks for the message.
The javascript calls a function that resides in a .js file in the server. This files holds all the functions(for onBlur,onChange etc) which should be fired for different items on the report region. The javascript is not on the HTMLDB page, but on this file.
Do I need to move them all to the page? Please correct me if I am doing something wrong here. -
Date and Time Input Validation
Anyone know a good way to validate date and time that a user is entering on the screen. Our users want to enter AM and PM time vs. Military time.
Also, since Input fields don't have an "onBlur" command, what are other companies using in java script.What type of DATE/TIME validation are you looking for?
If you want to validate the format you could simply set the type to date/time and enable the dovalidate attribute to "TRUE".
for getting onBlur, onChange, etc for your input field you can use bsp:findandreplace.
<%
tmp_string =`<input onBlur="javascript:yourjsfunction();"`.
%>
<bsp:findAndReplace find = "<input"
replace = "<%= tmp_string %>" >
<htmlb:inputField id = "myInputField2"
value = "12345"
alignment = "left" />
</bsp:findAndReplace>
(courtesy Ulli Hoffmann)
Hope this helps.
Regards
Raja -
How to fire javascript Onchange function AUTOMATICALLY
Hi,
I have following 2 items both is having an Onchange javascript function.
P1_SELECT_LIST1 (javascript - Onchange1)
P1_SELECT_LIST2 (javascript - Onchange2)
I want to execute Onchange2 automatically whenever Onchange1 is executed.
I mean whenever Onchange1 is executed...I want Onchange2 javascript to fire automatocally..
Thanks,
DeepakDeepak,
I didn't get what you are trying to here?
P1_SELECT_LIST1 - HTML Form Element Attributes
onchange="javascript:f1(this);"
function f1(pThis)
$x_Value('P1_YYYY','XX');
}So on change of SL1, f1 will fire and you are passing the object to f1. But you are not using it? So whats the use of passing it?
In your initial post..
I want to execute Onchange2 automatically whenever Onchange1 is >executed.But you are doing it in reverse?
However you may try..
P1_SELECT_LIST1 - HTML Form Element Attributes
onchange="javascript:f1();"P1_SELECT_LIST2 - HTML Form Element Attributes
onchange="javascript:f2(this);"Page - HTML Header
<script type="text/javascript">
function f2(pThis)
//pThis is an OBJECT not item name
if (pThis.value == 'C')
// set P1_XXXX to null
$x('P1_XXXX').value = '';
else if (pThis.value == 'E')
// whats the use of doing this?
var v1 = $v('P1_SELECT_LIST1');
<!-- alert (v1); -->
f1(); // -- No need to pass parameters
function f1()
// set P1_YYYY with value XX
// XX is Constant?
$x_Value('P1_YYYY','XX');
</script>Regards,
Hari -
Coldfusion 8: Onblur doesn't fire on autosuggest cfinput
Hello,
I have a problem using the autosuggest cfinput. Here is the
sample of my code.
<cfinput name="item_number" maxlength="20" type="text"
maxResultsDisplayed="20"
autosuggest="cfc:Inventory.model.lookupRoom.lookup({cfautosuggestvalue})"
value=#getInventory.Item_Number# showAutosuggestLoadingIcon="no"
onBlur="javascript:loadData();" >
function loadData(){
document.frmInventoryData.isLoadData.value = '1';
target='_self';
document.frmInventoryData.submit();
The event Onblur does not fire after the autosuggest has been
selected. When the form is submitted, “item_number” has
the value that the user entered, but not the value that the user
selected from the autosuggest. I have tried all the available
events of cfinput like onChange, onMouseOut.., but it still
doesn’t work. Please help. Thanks for your time.
ViI am not sure whether SELinux is officially supported with ColdFusion or not. In permissive mode you shouldn't have these problems.
If it is enabled the following is required:
setsebool -P httpd_can_network_connect 1
This is necessary for mod_jk to talk to ColdFusion. It fixed the error you describe in my case. You might make sure that ColdFusion is running of course. Be patient - setsebool takes about a minute to run,
Also:
/opt/coldfusion10/config/wsconfig/1/mod_jk.so must be httpd_modules_t
mod_jk.log must be httpd_log_t. /var/log/httpd is a good place for it.
Use chcon -t to make these changes
Plus other contexts set as standard for Apache (httpd_sys_content_t, etc). I hope this helps.
Maybe you are looking for
-
Mac acting weird after download.
I recently installed a plugin from a somewhat sketchy site and my mac has since been acting odd. On startup the finder bar did not appear for a few minutes (this has never happened before) and my Safari is running slower than usual. In addition, it's
-
How to anchor two repeating frames
I have a tabular report with two queries, one as a parent frame and the other as a child frame. The master query is like a query displaying employees tables with some restricions. The child query is like displaying all employees that their manager_id
-
Adobe Captivate 5 Trial version
Hi All, I just downloade the Trial version of Captivate 5 and have a few questions about it: 1) What is the maximum lenght of full-motion recording in Captivate 5 ?and is 1024 x 678 the maxium size that can be exported in F4V format ? 2) Are the proj
-
Sir, I would like to work in oracle company & contribute something to the company from my part.Wht should i do?.I completed my MCA degree.
-
dear sir, how to disable windows 8.1 search and also how to exclude folder in search