Advanced JavaScript Question
I am using code that was supplied by a client to built an
order form. It can be seen at
http://www.digidonkey.com/flypmobile/helio-phone-sales-addons.html
We have everything workling except for STEP 4 "Add
insurance". I have tried various ways to get the Total Due to
increase by $7 when the user selects "Yes" with no luck. Any
suggestions would be appreciated.
First change the name of the two radio buttons to something
like
"insurance" (which I'll use in my supplied code)
In your function:
function calculatePrice()
TotalPrice = 0;
for(var cp=1; cp<6; cp++)
var optVal = document.app["phone_choice"+cp].value;
var price=optVal.split('');
if (price[4] != undefined) {
TotalPrice += parseInt(price[4]);
Change to:
function calculatePrice()
TotalPrice = 0;
for(var cp=1; cp<6; cp++)
var optVal = document.app["phone_choice"+cp].value;
var price=optVal.split('');
if (price[4] != undefined) {
TotalPrice += parseInt(price[4]);
TotalPrice+=(document.app.insurance[1].checked)?7:0;
ADD this function:
function calcTotalPrice() {
calculatePrice();
document.getElementById("checkouttotal").innerHTML="$" +
TotalPrice;
document.getElementById("DUETODAY").innerHTML="DUE TODAY:
$"+TotalPrice+".00";
document.app.ChargeTotal.value = TotalPrice;
if (TotalPrice > 0){
document.getElementById('paymentselection').style.display =
comparecredit = true;
else
document.getElementById('paymentselection').style.display =
'none';
comparecredit = false;
Then, on the radio buttons add:
onclick="calcTotalPrice()"
Paul Davis
http://www.kaosweaver.com/
Visit us for dozens of useful Dreamweaver Extensions.
http://www.communitymx.com/
Partner at Community MX - Extend your knowledge
J in FLA wrote:
> I am using code that was supplied by a client to built
an order form. It can be
> seen at
http://www.digidonkey.com/flypmobile/helio-phone-sales-addons.html
>
> We have everything workling except for STEP 4 "Add
insurance". I have tried
> various ways to get the Total Due to increase by $7 when
the user selects "Yes"
> with no luck. Any suggestions would be appreciated.
>
Similar Messages
-
How can I access Advanced Javascript Settings?
I'm aware that, in recent versions of Firefox, the ability to disable Javascript has been removed. I don't intend to re-open discussion of that particular decision. But removing that option has also removed access to the Advanced Javascript Settings menu, which was far more useful than simply disabling Javascript itself. For example, although I rarely disabled Javascript entirely (other than when debugging my own site), I routinely disabled the ability of websites to disable context menus or to move and resize pop-up windows.
Unlike disabling Javascript entirely, these are settings which provide a positive benefit for "ordinary" (non-developer) users. If, say, I want to open a link in a new tab, then the correct way to do that is to right-click on it. Sites which disable right-click degrade the user experience, and allowing a way to override that is a good thing. Whatever the justification for removing the ability to disable Javascript entirely (and I do understand it, even if I don't agree with it), I can't see any justification for removing access to these advanced settings.
So my question is, how can I re-enable access to the Advaned javascript Settings? I can't see any obvious setting for it in about:config, and simply disabling javascript entirely via that method isn't what I want to do.The href value javascript:void(0) is a placeholder to be shown when you hover a link, so you can see that this is not a normal link.<br />
The actual action is done via an onclick handler that is tied to the button (link), so if this isn't working then this can be caused by a script that didn't run properly to add this onclick action to the button or that JavaScript is blocked on that website possibly by an extension.
Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Firefox/Tools > Add-ons > Appearance).
*Do NOT click the Reset button on the Safe Mode start window.
*https://support.mozilla.org/kb/Safe+Mode
*https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes
Note that there is also security software that can block pop-ups and JavaScript, so check that as well.
Boot the computer in Windows Safe Mode with network support (press F8 on the boot screen) as a test to see if that helps. -
In Firefox 2.0+ you can go to Advanced JavaScript Settings and check a box to allow scripts to change status bar text. How do I do this is Firefox 10.0.1?
Two items in the Advanced JavaScript window were removed as of the Firefox 4.0 version, but they are still available thru about:config .
Type '''about:config''' in the URL bar and hit Enter. <br />
''If you see the warning, you can confirm that you want to access that page.''
Filter = '''dom.disable_window_status_change''' = double-click to toggle to '''false''' to allow websites to mess with status text. -
Additional Pageflow - JavaScript Questions
I was hoping someone (bea employee???) could answer a couple more JavaScript questions
for me?? First one is how do I (can I) do something similar to what John Rohrlich
(see below) suggested inside a netui-data:grid tag? Among other things that didn't
workI tried this:
<netui-data:anchorColumn action="deleteUsr" title="">
<netui:anchor action="deleteUsr" onClick="return confirmDelete('user', {container.item.usr_nm}
); return false;">
Drop
<netui:parameter name="userToDrop" value="{container.item.usr_nm}" />
</netui:anchor>
</netui-data:anchorColumn>
From this snippet you might be able to guess what my next question is. Is there
a way to render a variable inside the onClick value? I have tried a number of
things to no avail, stuff like:
<netui-data:getData resultId="thisId" value="{container.item.userId}" />
<netui:anchor action="dropUser" onClick="return confirmDelete('user', '<%=(String)pageContext.getAttribute("thisId");%>');
return false;">
BTW this is in a repeater I have else ware in my code. I would really like to
convert everything to grids to get the sorting, filtering and paging capabilities.
I would like to be able to pass the parameter to my JavaScript so the user has
a little more info on what he is dropping - here is the script:
function confirmDelete(){
//arg 1 would be the record type i.e. "user"
//arg 2 would be the key identifier i.e. "Fred"
var question = "Are you sure you want to drop this record?";
var argNum = confirmDelete.arguments.length;
if (argNum == 1){
question = "Are you sure you want to drop this "+confirmDelete.arguments[0]+"?";
else if (argNum == 2){
question = "Are you sure you want to drop the "+confirmDelete.arguments[0]+"
"+confirmDelete.arguments[1]+"?";
return confirm(question);
Thanks,
John
"John Rohrlich" <[email protected]> wrote:
John,
If you want to put up a confirm dialog before calling an action from
an
anchor it is done as follows.
Here is an example from code of mine that deletes a customer order, if
the
user confirms the delete. I pass the order id as a parameter.
- john
Here is the JavaScript -
function confirmDelete() {
if(confirm('Continue with order delete?'))
return true;
else
return false;
Here is a sample anchor tag -
<netui:anchor action="requestToDeleteOrder" onClick="return
confirmDelete(); return false;">
Delete
<netui:parameter name="orderId" value="{container.item.orderId}"/>
</netui:anchor>Thanks Eddie, I looked at that reply when you gave it but it didn't give me enough
to go on. You suggested:
<netui-data:expressionColumn title="Show Alert" value="<a href='javascript:alert(12345);return
false;> {container.item.customername}</a>" />
I started a new thread after that one - What is the best way to call a pageflow
action from JavaScript? Guess I was sort of beating around the bush on this. Can
you see where I was going? If I use the method you describe above how do I call
my dropUser pageflow action if the user confirms the drop in the java dialog?
Thanks, John
Eddie O'Neil <[email protected]> wrote:
John--
You might check an earlier response about this from a different thread.
"Re: Confirmation dialog w/netui:anchor and netui-data:anchorColumn"
on
1/28/2004.
It's possible to do though not intentional; the 8.1 grid wasn't
really designed to do this.
The NetUI team is certainly aware of the limitations with using this
version of the grid and is working to address said limitations with a
much improved tag set in v9. If you have additional feedback on
features you'd like to see, please feel free to send them along --
including your top 10 (or whatever!) reasons not to use the grid. :)
In the meantime, depending on what you need to do, the repeater may
suit your needs well, though you may need to do some work to implement
sort / filter logic.
Hope that helps.
Eddie
John H wrote:
So what you are telling me is that a cant do somthing as simple aspop up a confirmation
when using a grid? That really stinks if that is the case. I am thinkingI need
to write up "Top ten reasons not to use a grid." Thanks for the repeatercode.
"John Rohrlich" <[email protected]> wrote:
John,
The grid doesn't support event handlers like onClick but I have included
code here to show you how to pass parameters to your javaScript event
handler when using the repeater. Let me know if you have any questions
about
the code.
Most of the code is standard repeater code. The interesting code is
below
(also see my code comments). I have also attached the full jsp fileand
the
jpf file you need to try my example.
- john
<script language="JavaScript">
function confirmDelete(phrase) {
if(confirm(phrase))
return true;
else
return false;
</script>
<netui-data:repeater dataSource="{pageInput.orders}" defaultText="No
orders">
<netui-data:repeaterItem>
<tr valign="top">
<td>
<netui:label value="{container.item.orderId}"
defaultValue=" "></netui:label>
</td>
<!-- You can't bind data to onClick so you need to build
a
string. -->
<!-- The string will be the function call with the
parameters you are passing. -->
<!-- Here is the building of the string -->
<netui-data:getData resultId="orderId"
value="{container.item.orderId}" />
<%
String somePhrase = "Do you want to delete item " +
pageContext.getAttribute("orderId") + "?";
String foo = "return confirmDelete(\'" + somePhrase+
return false";
%>
<td>
<netui:anchor action="requestToDeleteOrder"
onClick="<%=foo%>" >
Delete
<netui:parameter name="orderId"
value="{container.item.orderId}"/>
</netui:anchor>
</td>
</tr>
</netui-data:repeaterItem>
"John H" <[email protected]> wrote in message
news:[email protected]...
I was hoping someone (bea employee???) could answer a couple moreJavaScript questions
for me?? First one is how do I (can I) do something similar to whatJohn
Rohrlich
(see below) suggested inside a netui-data:grid tag? Among other thingsthat didn't
workI tried this:
<netui-data:anchorColumn action="deleteUsr" title="">
<netui:anchor action="deleteUsr" onClick="return confirmDelete('user',{container.item.usr_nm}
); return false;">
Drop
<netui:parameter name="userToDrop" value="{container.item.usr_nm}"/>
</netui:anchor>
</netui-data:anchorColumn>
From this snippet you might be able to guess what my next questionis. Is
there
a way to render a variable inside the onClick value? I have trieda
number of
things to no avail, stuff like:
<netui-data:getData resultId="thisId" value="{container.item.userId}"/>
<netui:anchor action="dropUser" onClick="return confirmDelete('user','<%=(String)pageContext.getAttribute("thisId");%>');
return false;">
BTW this is in a repeater I have else ware in my code. I would reallylike to
convert everything to grids to get the sorting, filtering and pagingcapabilities.
I would like to be able to pass the parameter to my JavaScript sothe
user has
a little more info on what he is dropping - here is the script:
function confirmDelete(){
//arg 1 would be the record type i.e. "user"
//arg 2 would be the key identifier i.e. "Fred"
var question = "Are you sure you want to drop this record?";
var argNum = confirmDelete.arguments.length;
if (argNum == 1){
question = "Are you sure you want to drop this"+confirmDelete.arguments[0]+"?";
else if (argNum == 2){
question = "Are you sure you want to drop the"+confirmDelete.arguments[0]+"
"+confirmDelete.arguments[1]+"?";
return confirm(question);
Thanks,
John
"John Rohrlich" <[email protected]> wrote:
John,
If you want to put up a confirm dialog before calling an action
from
an
anchor it is done as follows.
Here is an example from code of mine that deletes a customer order,if
the
user confirms the delete. I pass the order id as a parameter.
- john
Here is the JavaScript -
function confirmDelete() {
if(confirm('Continue with order delete?'))
return true;
else
return false;
Here is a sample anchor tag -
<netui:anchor action="requestToDeleteOrder" onClick="return
confirmDelete(); return false;">
Delete
<netui:parameter name="orderId" value="{container.item.orderId}"/>
</netui:anchor> -
Creating a Survey - Novice Javascript Question
Hello,
I am extrememely new to Javascript. I have been doing some research online and copy/pasting code to create the results I need. I am trying to create an online survey in Dreamweaver in which users select buttons to answer questions and then the total results appear at the bottom of the survey. So far this is what I have:
http://sicolaconsulting.com/SurveyTest4.php
The problem I have with this is that on each line, a user can select more than one box. I don't want this so I thought radio buttons would be better. I then came up with this:
http://sicolaconsulting.com/SurveyTest3.php
The problem with this is that with the function I am using, I can only get it to display the value of the first line. I need it to calculate the sum of all the lines.
Can you help me revise the script I have to get my desired result.
Here is my code for the first page, followed by the code for the second page. THANK YOU!
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<title>Survey</title>
<style type="text/css">
body,td,th {
font-family: Tahoma, Geneva, sans-serif;
</style>
<link href="stylesheets/SCG_Styles.css" rel="stylesheet" type="text/css" />
<title>Survey</title>
<script type="text/javascript">
function TotalPart1A() {
document.survey.Total1A.value = '';
var sum = 0;
for (i=0;i<document.survey.Part1A.length;i++) {
if (document.survey.Part1A[i].checked) {
sum = sum + parseInt(document.survey.Part1A[i].value);
document.survey.Total1A.value = sum;
</script>
<link href="stylesheets/SCG_Styles.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="wrapper"><br />
<div id="survey-header"><strong>Purpose:</strong><br />
The Learning Style Survey assesses your general approach to learning. <br />
It does not predict your behavior, but it is a clear indication of your overall style preferences.<br />
<br />
<strong>Instructions:</strong><br />
For each item circle the response that represents your approach. Complete all items. <br />
There are eleven major activities representing twelve different aspects of your learning style. <br />
When you read the statements, try to think about what you generally do when learning. <br />
<br />
<strong>Time:</strong><br />
It takes about 30 minutes to complete the survey. Do not spend too much time on any item. Indicate your immediate response (or feeling) and move on to the next item. <br />
<br />
<strong>For each item, enter your immediate response:<br />
0 = Never 1 = Rarely 2 = Sometimes 3 = Often 4 = Always</strong><br />
</div>
<div id="survey">
<form name="survey">
<div id="survey-section1">
<table class="survey-table" cellspacing="0" width="812">
<tr>
<td height="24" colspan="2" align="left" bgcolor="#CCCCCC"><strong>Part 1: How I Use My Physical Senses</strong></td>
<td height="24" align="center" bgcolor="#CCCCCC"><strong>1</strong></td>
<td height="24" align="center" bgcolor="#CCCCCC"><strong>2</strong></td>
<td height="24" align="center" bgcolor="#CCCCCC"><strong>3</strong></td>
<td height="24" align="center" bgcolor="#CCCCCC"><strong>4</strong></td>
</tr>
<tr>
<td width="31" height="27">1</td>
<td width="515" align="left">I remember something better if I write it down.</td>
<td width="60"><input type="checkbox" name="Part1A" value="1" onchange="TotalPart1A()"/></td>
<td width="60"><input type="checkbox" name="Part1A" value="2" onchange="TotalPart1A()"/></td>
<td width="60"><input type="checkbox" name="Part1A" value="3" onchange="TotalPart1A()"/></td>
<td width="60"><input type="checkbox" name="Part1A" value="4" onchange="TotalPart1A()"/></td>
</tr>
<tr>
<td width="31" bgcolor="#EAEAEA">2</td>
<td height="27" align="left" bgcolor="#EAEAEA"> I take detailed notes during lectures.</td>
<td bgcolor="#EAEAEA"><input type="checkbox" name="Part1A" value="1" onchange="TotalPart1A()"/></td>
<td bgcolor="#EAEAEA"><input type="checkbox" name="Part1A" value="2" onchange="TotalPart1A()"/></td>
<td bgcolor="#EAEAEA"><input type="checkbox" name="Part1A" value="3" onchange="TotalPart1A()"/></td>
<td bgcolor="#EAEAEA"><input type="checkbox" name="Part1A" value="4" onchange="TotalPart1A()"/></td>
</tr>
<tr>
<td>3</td>
<td height="27" align="left">When I listen, I visualize pictures, numbers, or words in my head.</td>
<td><input type="checkbox" name="Part1A" value="1" onchange="TotalPart1A()"/></td>
<td><input type="checkbox" name="Part1A" value="2" onchange="TotalPart1A()"/></td>
<td><input type="checkbox" name="Part1A" value="3" onchange="TotalPart1A()"/></td>
<td><input type="checkbox" name="Part1A" value="4" onchange="TotalPart1A()"/></td>
</tr>
<tr>
<td bgcolor="#EAEAEA">4</td>
<td height="27" align="left" bgcolor="#EAEAEA"> I prefer to learn with TV or video rather than other media. </td>
<td bgcolor="#EAEAEA"><input type="checkbox" name="Part1A" value="1" onchange="TotalPart1A()"/></td>
<td bgcolor="#EAEAEA"><input type="checkbox" name="Part1A" value="2" onchange="TotalPart1A()"/></td>
<td bgcolor="#EAEAEA"><input type="checkbox" name="Part1A" value="3" onchange="TotalPart1A()"/></td>
<td bgcolor="#EAEAEA"><input type="checkbox" name="Part1A" value="4" onchange="TotalPart1A()"/></td>
</tr>
<tr>
<td>5</td>
<td height="27" align="left"> I use color coding to help me as I learn to work.</td>
<td><input type="checkbox" name="Part1A" value="1" onchange="TotalPart1A()"/></td>
<td><input type="checkbox" name="Part1A" value="2" onchange="TotalPart1A()"/></td>
<td><input type="checkbox" name="Part1A" value="3" onchange="TotalPart1A()"/></td>
<td><input type="checkbox" name="Part1A" value="4" onchange="TotalPart1A()"/></td>
</tr>
<tr>
<td bgcolor="#EAEAEA">6</td>
<td height="27" align="left" bgcolor="#EAEAEA"> I need written directions for tasks.</td>
<td bgcolor="#EAEAEA"><input type="checkbox" name="Part1A" value="1" onchange="TotalPart1A()"/></td>
<td bgcolor="#EAEAEA"><input type="checkbox" name="Part1A" value="2" onchange="TotalPart1A()"/></td>
<td bgcolor="#EAEAEA"><input type="checkbox" name="Part1A" value="3" onchange="TotalPart1A()"/></td>
<td bgcolor="#EAEAEA"><input type="checkbox" name="Part1A" value="4" onchange="TotalPart1A()"/></td>
</tr>
<tr>
<td>7</td>
<td height="27" align="left"> I have to look at people to understand what they say.</td>
<td><input type="checkbox" name="Part1A" value="1" onchange="TotalPart1A()"/></td>
<td><input type="checkbox" name="Part1A" value="2" onchange="TotalPart1A()"/></td>
<td><input type="checkbox" name="Part1A" value="3" onchange="TotalPart1A()"/></td>
<td><input type="checkbox" name="Part1A" value="4" onchange="TotalPart1A()"/></td>
</tr>
<tr>
<td bgcolor="#EAEAEA">8</td>
<td height="27" align="left" bgcolor="#EAEAEA">I understand lecturers better when they write on the board.</td>
<td bgcolor="#EAEAEA"><input type="checkbox" name="Part1A" value="1" onchange="TotalPart1A()"/></td>
<td bgcolor="#EAEAEA"><input type="checkbox" name="Part1A" value="2" onchange="TotalPart1A()"/></td>
<td bgcolor="#EAEAEA"><input type="checkbox" name="Part1A" value="3" onchange="TotalPart1A()"/></td>
<td bgcolor="#EAEAEA"><input type="checkbox" name="Part1A" value="4" onchange="TotalPart1A()"/></td>
</tr>
<tr>
<td>9</td>
<td height="27" align="left">Charts, diagrams, and maps help me understand what someone says. </td>
<td><input type="checkbox" name="Part1A" value="1" onchange="TotalPart1A()"/></td>
<td><input type="checkbox" name="Part1A" value="2" onchange="TotalPart1A()"/></td>
<td><input type="checkbox" name="Part1A" value="3" onchange="TotalPart1A()"/></td>
<td><input type="checkbox" name="Part1A" value="4" onchange="TotalPart1A()"/></td>
</tr>
<tr>
<td bgcolor="#EAEAEA">10</td>
<td height="27" align="left" bgcolor="#EAEAEA">I remember people’s faces, but not their names. </td>
<td bgcolor="#EAEAEA"><input type="checkbox" name="Part1A" value="1" onchange="TotalPart1A()"/></td>
<td bgcolor="#EAEAEA"><input type="checkbox" name="Part1A" value="2" onchange="TotalPart1A()"/></td>
<td bgcolor="#EAEAEA"><input type="checkbox" name="Part1A" value="3" onchange="TotalPart1A()"/></td>
<td bgcolor="#EAEAEA"><input type="checkbox" name="Part1A" value="4" onchange="TotalPart1A()"/></td>
</tr>
<tr>
<td> </td>
<td height="27" align="right">A TOTAL: </td>
<td colspan="2"><input type="text" size="10" name="Total1A" value="0"/></td>
<td align="right"> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td height="27" align="right"> </td>
<td> </td>
<td> </td>
<td align="right"> </td>
<td> </td>
</tr>
</table>
</form>
</div>
</div>
</body>
</html>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<title>Survey</title>
<style type="text/css">
body,td,th {
font-family: Tahoma, Geneva, sans-serif;
</style>
<link href="stylesheets/SCG_Styles.css" rel="stylesheet" type="text/css" />
<script type="text/javascript">
function TotalPart1A() {
document.survey.Total1A.value = '';
var sum = 0;
for (i=0;i<document.survey.radiogroup1A.length;i++) {
if (document.survey.radiogroup1A[i].checked) {
sum = sum + parseInt(document.survey.radiogroup1A[i].value);
document.survey.Total1A.value = sum;
</script>
<link href="stylesheets/SCG_Styles.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="wrapper"><br />
<div id="survey-header"><strong>Purpose:</strong><br />
The Learning Style Survey assesses your general approach to learning. <br />
It does not predict your behavior, but it is a clear indication of your overall style preferences.<br />
<br />
<strong>Instructions:</strong><br />
For each item circle the response that represents your approach. Complete all items. <br />
There are eleven major activities representing twelve different aspects of your learning style. <br />
When you read the statements, try to think about what you generally do when learning. <br />
<br />
<strong>Time:</strong><br />
It takes about 30 minutes to complete the survey. Do not spend too much time on any item. Indicate your immediate response (or feeling) and move on to the next item. <br />
<br />
<strong>For each item, enter your immediate response:<br />
0 = Never 1 = Rarely 2 = Sometimes 3 = Often 4 = Always</strong><br />
</div>
<div id="survey">
<form name="survey" id="survey">
<div id="survey-section1">
<table class="survey-table" cellspacing="0" width="812">
<tr>
<td height="24" colspan="2" align="left" bgcolor="#CCCCCC"><strong>Part 1: How I Use My Physical Senses</strong></td>
<td height="24" align="center" bgcolor="#CCCCCC"><strong>1</strong></td>
<td height="24" align="center" bgcolor="#CCCCCC"><strong>2</strong></td>
<td height="24" align="center" bgcolor="#CCCCCC"><strong>3</strong></td>
<td height="24" align="center" bgcolor="#CCCCCC"><strong>4</strong></td>
</tr>
<tr>
<td width="31" height="27">1</td>
<td width="515" align="left">I remember something better if I write it down.</td>
<td width="60"><input type="radio" name="radiogroup1A" value="1" onchange="TotalPart1A()"/></td>
<td width="60"><input type="radio" name="radiogroup1A" value="2" onchange="TotalPart1A()"/></td>
<td width="60"><input type="radio" name="radiogroup1A" value="3" onchange="TotalPart1A()"/></td>
<td width="60"><input type="radio" name="radiogroup1A" value="4" onchange="TotalPart1A()"/></td>
</tr>
<tr>
<td width="31" bgcolor="#EAEAEA">2</td>
<td height="27" align="left" bgcolor="#EAEAEA"> I take detailed notes during lectures.</td>
<td bgcolor="#EAEAEA"><input type="radio" name="radiogroup2A" value="1" onchange="TotalPart1A()"/></td>
<td bgcolor="#EAEAEA"><input type="radio" name="radiogroup2A" value="2" onchange="TotalPart1A()"/></td>
<td bgcolor="#EAEAEA"><input type="radio" name="radiogroup2A" value="3" onchange="TotalPart1A()"/></td>
<td bgcolor="#EAEAEA"><input type="radio" name="radiogroup2A" value="4" onchange="TotalPart1A()"/></td>
</tr>
<tr>
<td>3</td>
<td height="27" align="left">When I listen, I visualize pictures, numbers, or words in my head.</td>
<td><input type="radio" name="radiogroup3A" value="1" onchange="TotalPart1A()"/></td>
<td><input type="radio" name="radiogroup3A" value="2" onchange="TotalPart1A()"/></td>
<td><input type="radio" name="radiogroup3A" value="3" onchange="TotalPart1A()"/></td>
<td><input type="radio" name="radiogroup3A" value="4" onchange="TotalPart1A()"/></td>
</tr>
<tr>
<td bgcolor="#EAEAEA">4</td>
<td height="27" align="left" bgcolor="#EAEAEA"> I prefer to learn with TV or video rather than other media. </td>
<td bgcolor="#EAEAEA"><input type="radio" name="radiogroup4A" value="1" onchange="TotalPart1A()"/></td>
<td bgcolor="#EAEAEA"><input type="radio" name="radiogroup4A" value="2" onchange="TotalPart1A()"/></td>
<td bgcolor="#EAEAEA"><input type="radio" name="radiogroup4A" value="3" onchange="TotalPart1A()"/></td>
<td bgcolor="#EAEAEA"><input type="radio" name="radiogroup4A" value="4" onchange="TotalPart1A()"/></td>
</tr>
<tr>
<td>5</td>
<td height="27" align="left"> I use color coding to help me as I learn to work.</td>
<td><input type="radio" name="radiogroup5A" value="1" onchange="TotalPart1A()"/></td>
<td><input type="radio" name="radiogroup5A" value="2" onchange="TotalPart1A()"/></td>
<td><input type="radio" name="radiogroup5A" value="3" onchange="TotalPart1A()"/></td>
<td><input type="radio" name="radiogroup5A" value="4" onchange="TotalPart1A()"/></td>
</tr>
<tr>
<td bgcolor="#EAEAEA">6</td>
<td height="27" align="left" bgcolor="#EAEAEA"> I need written directions for tasks.</td>
<td bgcolor="#EAEAEA"><input type="radio" name="radiogroup6A" value="1" onchange="TotalPart1A()"/></td>
<td bgcolor="#EAEAEA"><input type="radio" name="radiogroup6A" value="2" onchange="TotalPart1A()"/></td>
<td bgcolor="#EAEAEA"><input type="radio" name="radiogroup6A" value="3" onchange="TotalPart1A()"/></td>
<td bgcolor="#EAEAEA"><input type="radio" name="radiogroup6A" value="4" onchange="TotalPart1A()"/></td>
</tr>
<tr>
<td>7</td>
<td height="27" align="left"> I have to look at people to understand what they say.</td>
<td><input type="radio" name="radiogroup7A" value="1" onchange="TotalPart1A()"/></td>
<td><input type="radio" name="radiogroup7A" value="2" onchange="TotalPart1A()"/></td>
<td><input type="radio" name="radiogroup7A" value="3" onchange="TotalPart1A()"/></td>
<td><input type="radio" name="radiogroup7A" value="4" onchange="TotalPart1A()"/></td>
</tr>
<tr>
<td bgcolor="#EAEAEA">8</td>
<td height="27" align="left" bgcolor="#EAEAEA">I understand lecturers better when they write on the board.</td>
<td bgcolor="#EAEAEA"><input type="radio" name="radiogroup8A" value="1" onchange="TotalPart1A()"/></td>
<td bgcolor="#EAEAEA"><input type="radio" name="radiogroup8A" value="2" onchange="TotalPart1A()"/></td>
<td bgcolor="#EAEAEA"><input type="radio" name="radiogroup8A" value="3" onchange="TotalPart1A()"/></td>
<td bgcolor="#EAEAEA"><input type="radio" name="radiogroup8A" value="4" onchange="TotalPart1A()"/></td>
</tr>
<tr>
<td>9</td>
<td height="27" align="left">Charts, diagrams, and maps help me understand what someone says. </td>
<td><input type="radio" name="radiogroup9A" value="1" onchange="TotalPart1A()"/></td>
<td><input type="radio" name="radiogroup9A" value="2" onchange="TotalPart1A()"/></td>
<td><input type="radio" name="radiogroup9A" value="3" onchange="TotalPart1A()"/></td>
<td><input type="radio" name="radiogroup9A" value="4" onchange="TotalPart1A()"/></td>
</tr>
<tr>
<td bgcolor="#EAEAEA">10</td>
<td height="27" align="left" bgcolor="#EAEAEA">I remember people’s faces, but not their names. </td>
<td bgcolor="#EAEAEA"><input type="radio" name="radiogroup10A" value="1" onchange="TotalPart1A()"/></td>
<td bgcolor="#EAEAEA"><input type="radio" name="radiogroup10A" value="2" onchange="TotalPart1A()"/></td>
<td bgcolor="#EAEAEA"><input type="radio" name="radiogroup10A" value="3" onchange="TotalPart1A()"/></td>
<td bgcolor="#EAEAEA"><input type="radio" name="radiogroup10A" value="4" onchange="TotalPart1A()"/></td>
</tr>
<tr>
<td> </td>
<td height="27" align="right">A TOTAL: </td>
<td colspan="2"><input type="text" size="10" name="Total1A" value="0"/></td>
<td align="right"> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td height="27" align="right"> </td>
<td> </td>
<td> </td>
<td align="right"> </td>
<td> </td>
</tr>
</table>
</form>
</div>
</div>
</body>
</html>Hi Nancy,
I've been away from this for a while and have picked it back up. I tried your suggested code and I'm having problems getting it to work. I created a file using the code you supplied for the survey here:
view-source:http://www.littlechisel.com/clients/GreenSurvey/GreenSurvey.html
It doesn't work so I know I'm missing something. If you could advise me on this, it would be great. Thanks! Here is the code as I have it:
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<script type="text/javascript">
function calcscore() {
var score = 0;
$(".calc:checked").each(function() {
score += parseInt($(this).val(), 10);
$("input[name=sum]").val(score)
$().ready(function() {
$(".calc").change(function() {
calcscore()
</script>
<link href="stylesheets/Survey.css" rel="stylesheet" type="text/css">
</head>
<body>
<h1>jQuery Sum of Radio Fields</h1>
<form action="">
<h2>HOW GREEN ARE YOU?</h2>
<p><strong>I walk/bicycle to work/school. </strong><br>
Yes
<input class="calc" type="radio" name="radio1" value="10">
No
<input class="calc" type="radio" name="radio1" value="0">
Sometimes
<input class="calc" type="radio" name="radio1" value="5"></p>
<p><strong>I buy locally grown food. </strong><br>
Yes
<input class="calc" type="radio" name="radio2" value="10">
No
<input class="calc" type="radio" name="radio2" value="0">
Sometimes
<input class="calc" type="radio" name="radio2" value="5"></p>
<p><strong>I recycle. </strong><br>
Yes
<input class="calc" type="radio" name="radio3" value="10">
No
<input class="calc" type="radio" name="radio3" value="0">
Sometimes
<input class="calc" type="radio" name="radio3" value="5"></p>
<p><strong>I compost. </strong><br>
Yes
<input class="calc" type="radio" name="radio4" value="10">
No
<input class="calc" type="radio" name="radio4" value="0">
Sometimes
<input class="calc" type="radio" name="radio4" value="5"></p>
<p>Total Green Score:
<input type="text" name="sum">
</p>
</form>
</body>
</html> -
Please help me...Javascript question
Hi everyone,
what i am trying to do is..
EX:
TABLE: EMP
empno empname sal entered_by
1 john 1000 user1
I have a form on the table EMP.The users want to enter the same record again(because mutiple users enter the same record) but want an alert message when they hit the create button like.. Eg:
when user2 is trying to enter this data..
empno: 2 (generated by sequence)
empname: john
sal: 1000
he wants to see an alert message like: THE Record is Already exists in the database which was entered by USER1 (But he can enter the same record)
what i did is.. I have a javascript which calls the application process (PL/SQL) where it check whether the data entered is already there in the database and returns back an alert message like this:
JAVASCRIPT:
==========
<script language=javascript>
function f_insert_record()
var get = new htmldb_Get(null,&APP_ID.,'APPLICATION_PROCESS=INSERT_RECORD',0);
get.add('P2_EMPNAME',html_GetElement('P2_EMPNAME').value);
get.add('P2_SAL',html_GetElement('P2_SAL').value);
gReturn = get.get();
var a = gReturn.split("|");
if(gReturn)
if (a.length > 0) {alert(a[0]);}
else
null;
</script>APPLICATION_PROCESS
===================
DECLARE
l_error VARCHAR2 (4000);
V_NAME VARCHAR2(1000);
V_MSPR_ID NUMBER(15);
I NUMBER;
V_MYNUM STRING_OBJ := STRING_OBJ();
BEGIN
FOR C1 IN (SELECT DISTINCT entered_by ENTERED_BY_USER_NM
from emp
WHERE
empname = :P2_EMPNAME
AND sal = :P2_SAL
) LOOP
V_MYNUM.EXTEND;
V_MYNUM(V_MYNUM.COUNT) := C1.ENTERED_BY_USER_NM;
END LOOP;
V_NAME := NULL;
l_error := NULL;
FOR I IN V_MYNUM.FIRST..V_MYNUM.LAST LOOP
--dbms_output.put_line(V_MYNUM(I));
V_NAME := V_NAME || ' ' || V_MYNUM(I);
END LOOP;
IF V_NAME IS NOT NULL THEN
l_error := 'The record already exists in the database which was created by '||V_NAME;
END IF;
HTP.PRN(l_error);
END;everything works fine...when i have a ONBLUR event on the SALARY field.
But i want the same thing to be achieved with the ONCLICK event on the CREATE button (Template based button).
The code i have shown over here is just an example...But the requirement is the same..Multiple Users can enter the same record but they want to see an alert message like this record was entered by USER1,USER2.
The only think i am not able to figure out is the ONCLICK event on that create button.
I tried like this Target: URL
javaScript:(f_insert_record();doSubmit('CREATE');)
I am not getting the alert message.
Please help me to solve this
thanks
phanidamn it! Those little quotation marks.....
I already did figure it out awhile after I posted my question
Thanks anyway! -
Javascript Question - How to Insert a Dynamic/Current Date into the Footer of a Scanned Document
Hi!
I am looking for help in finding a Javascript that would allow the insertion of a dynamic/current date into the footer of a scanned document at the time the document is printed.
I am currently using Adobe Acrobat Professional 8.0 at my work and there has arisen a need to have a dynamic/current date in the footer on scanned documents when they are printed out on different days by different people.
I am new to the Forum and I am also very new to Javascript and what this entails.
Thank you in advance for your help and input!
Tracythis.addWatermarkFromText({
cText: util.printd("mmmm dd, yyyy", new Date()),
nTextAlign: app.constants.align.right,
nHorizAlign: app.constants.align.right,
nVertAlign: app.constants.align.bottom,
nHorizValue: -72, nVertValue: 72
Will insert the current Monday/Day/Year as a text watermark at the bottom of every page of a document, 1 inch up and 1 inch in from the right corner. -
I'd like to have a javascript image gallery with controls
that look like that:
< 1 | 2 | 3 | 4 | 5 >
All images preload, and clicking on the numbers display the
corresponding image, without reloading
the page.
I have had no problem making the numbers work, but I can't
figure out how to make the previous and
next arrows work. I don't want them to be Form buttons, just
links that call a function that will
decrement or increment a variable and at the same time change
the image to the new variable value
(all my images are called "1.jpg" "2.jpg" "3.jpg" etc. so
this should be fairly simple...)
Yet I could not find a simple example of this on the web...
seb ( [email protected])
http://webtrans1.com | high-end web
design
Downloads: Slide Show, Directory Browser, Mailing List> Beyond this, I have a general question: your script is
so simple, I don't
> understand why I would ever use Macromedia's set text of
layer behavior
> (or swap image behavior for that matter) which are way
more complicated.
> My question is why are these behaviors so complicated
while your script
> which just changes the source of an image by its id is
so incredibly
> simple. Is there a catch?
Mick's script is optimized for you and your specific
application. MM's
scripts are generalized to cover all bases - and to do error
checking.
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
==================
"(_seb_)" <[email protected]> wrote in message
news:[email protected]...
> Mick White wrote:
>> (_seb_) wrote:
>>
>>> I'd like to have a javascript image gallery with
controls that look like
>>> that:
>>>
>>> < 1 | 2 | 3 | 4 | 5 >
>>>
>>>
>>> All images preload, and clicking on the numbers
display the
>>> corresponding image, without reloading the page.
>>> I have had no problem making the numbers work,
but I can't figure out
>>> how to make the previous and next arrows work. I
don't want them to be
>>> Form buttons, just links that call a function
that will decrement or
>>> increment a variable and at the same time change
the image to the new
>>> variable value
>>> (all my images are called "1.jpg" "2.jpg"
"3.jpg" etc. so this should be
>>> fairly simple...)
>>>
>>> Yet I could not find a simple example of this on
the web...
>>>
>>
>> CURRENT=1 //global
>> function next(max){
>> document.images["gallery"].src=CURRENT+".jpg";
>> CURRENT++;
>> if(CURRENT>max)CURRENT=1;
>> }
>>
>> Similarly with "previous"
>> CURRENT--;
>> if(CURRENT<1)CURRENT=max;
>>
>> Mick
>
> thanks a lot Mick.
> I have a few questions.
> I assume ["gallery"] can refer to the image ID, which in
my case is
> "mainImg"
>
> So I used:
> document.images["mainImg"].src=CURRENT+".jpg";
>
> and it sort of works, I also tried
>
> document.images.mainImg.src=CURRENT+".jpg";
>
> and it sort of works too.
>
> It works as long as I do not use the numbers in between
the previous and
> next arrows. But if I click on the numbers in between,
which so far use
> MM_setTextOfLayer() to swap the image, then the previous
and next arrows
> stop working, I don't know why.
>
> Beyond this, I have a general question: your script is
so simple, I don't
> understand why I would ever use Macromedia's set text of
layer behavior
> (or swap image behavior for that matter) which are way
more complicated.
> My question is why are these behaviors so complicated
while your script
> which just changes the source of an image by its id is
so incredibly
> simple. Is there a catch?
>
> --
> seb ( [email protected])
>
http://webtrans1.com | high-end web
design
> Downloads: Slide Show, Directory Browser, Mailing List -
Javascript question about objects
Hi,
Let's say I've created a new object. One of the properties of my object
is an array. I would like another property to return the length of that
array. How do I do this.
For instance here's some code (and I hope that the email interface
doesn't screw this up so badly to make it unreadable. I'm going to avoid
using square brackets as well by using round ones instead even though
it's a syntax error, since square ones are known not to work with email.)
function test(){
this.a = new Array();
this.b = this.a.length;
x = new test();
x.a(0) = 3;
x.a(1) = 3;
x.b;
Returns 0. In other words, just setting this.b = this.a.length doesn't
not get updated automatically as this.a is added to.
Now, I tried turning this.b into a method (ie this.b = function(){return
this.a.length) and that works, but then to get the length I keep having
to refer to myObject.b().
How can I avoid that? How can I have a built-in length property for an
object.
Hope this is clear and has come out legibly via email. Apologies in
advance if it hasn't.
Thanks,
ArielHi all,
1) About the original question—which doesn't regard prototype inheritance in itself: "How can I have a built-in length property for an object"—I think the most obvious approach is to directly use an Array as the base object. Since any Array is an Object you can append methods and properties to it while keeping benefit from the whole array's API:
var myData = [];
myData.myProp = 'foo';
myData.myMeth = function(){ return [this.myProp, this.length, this.join('|')]; };
// Usage
myData[0] = 10;
myData[1] = 20;
alert( myData.myMeth() ); // => foo,2,10|20
// etc.
2) Now, if for whatever reason you cannot use the previous technique or need to deal with a precustomized Object structure such as:
var myObj = {
items: [],
meth: function(){ alert("Hello World!"); },
// etc.
then the challenge is more difficult for the reasons that Jeff mentioned above. You can anyway mimic a kind of 'binding' mechanism this way:
// The original obj
var myObj = {
items: [],
meth: function(){ alert("Hello World!"); }
// Adding length as a 'fake property' (getter and setter)
(myObj.length = function F(n)
if( !F.root )
(F.root=this).watch('length', function(_,ov,nv){ F(nv); return ov; });
F.valueOf = function(){ return F().valueOf(); };
F.toString = function(){ return F().toString(); };
if( 'undefined' == typeof n )
n = F.root.items.length >>> 0;
else
F.root.items.length = n;
return n;
}).call(myObj);
// Usage
myObj.meth(); // => Hello World!
myObj.items[0] = 10;
myObj.items[1] = 20;
alert( myObj.length ); // => 2
var x = myObj.length-1; // works too, thanks to F.valueOf
alert( x ); // => 1
myObj.length = 5; // testing the setter
alert( myObj.length ); // => 5
alert( myObj.items ); // => 10,20,,,
Of course it's totally unreasonable to implement such an artillery just for the convenience of writing myObj.length instead of myObj.length()—and myObj.length=x instead of myObj.length(x)—so I only suggest this for the sake of experimentation.
@+
Marc -
I hope I'm asking this question right. Do any of you know if Advanced Security supports IOS module 12.4 13 on a 2811?
Hi,
For your first question about exception list: If Windows Firewall is blocking a program and you want to allow that program to communicate through the firewall, you can usually do that by selecting the program in the list of allowed programs (also called
the exceptions list) in Windows Firewall.
For the second question, that means Firewall allow your Skype to communicate through Firewall.
You can add items manually, or just choose following settings after installing or configuring first open network app:
Eg.
Kate Li
TechNet Community Support -
I have some existing code from their previous web coder and wondered on the code below, how can i make some of these links open in a new window?
Is this Javascript used specifically from GoLive?
thakns for any help!
<script type="text/javascript">
<!--
CSAct[/*CMP*/ 'C2B3FE26189'] = new Array(CSGotoLink,/*URL*/ 'main.html','');
CSAct[/*CMP*/ 'C2B3FE26190'] = new Array(CSGotoLink,/*URL*/ tour/Tour.html','');
CSAct[/*CMP*/ 'C2B3FE26191'] = new Array(CSGotoLink,/*URL*/ 'members/index.html','');
CSAct[/*CMP*/ 'C2B3FE26195'] = new Array(CSGotoLink,/*URL*/ 'Join.html','');
CSAct[/*CMP*/ 'C2B3FE26196'] = new Array(CSGotoLink,/*URL*/ 'FAQs.html','');
CSAct[/*CMP*/ 'C2B3FE26197'] = new Array(CSGotoLink,/*URL*/ 'links.html','');
CSAct[/*CMP*/ 'C2B3FE26198'] = new Array(CSGotoLink,/*URL*/ 'Contact.html','');
CSAct[/*CMP*/ 'C2B3FE26199'] = new Array(CSGotoLink,/*URL*/ 'webmasters.html','');selecting the link in layout view takes me to this-
<a title="free tour" onclick="CSAction(new Array(/*CMP*/'C2B3FE0E190'));return CSClickReturn()" onmouseover="changeImages('tour','navigation/tour-over.gif');return true" onmouseout="changeImages('tour','navigation/tour.gif');return true" href="#"><img id="tour" src="navigation/tour.gif" alt="tour button" name="tour" width="55" height="45" border="0"></a>
which seems to call the javascript code i pasted earlier, hence the question. -
Able to advance past question with wrong answer
The following applies to a multiple choice question in Captivate 3.0.1 Build 589. You are able to advance through a question even if you have selected the wrong answer by doing the following:
Answer a question incorrectly. A box saying "Try Again" pops up.
Press the previous button on the Captivate navigation bar to go to the previous slide.
Press the next button on the Captivate navigation bar to advance to the question slide. The incorrect answer is still selected.
Press the next button on the Captivate navigation bar while the incorrect answer is still selected.
Captivate advances, even though you have not answered the question correctly.
This is a major issue for me for two reasons. A) It allows learners to advance without demonstrating that they learned what we are trying to teach them, and B) It actually misinforms learners by letting them advance with the wrong answer selected, so they may actually believe that what they answered is correct.
Does anyone else have this problem? Anyone have any ideas how I can fix it?
Thanks very much for your help,
MarcMarc,
Do you know what wrong answer options you have selected? If you do not want the user to advance when they select a wrong answer, you can make sure they do not. On the question slides of interest, go to Edit Question. Select Options. Under "If wrong answer" section, select Infinite attempts. Now the user will not be able to advance until he/she gets the answer correct. The only side note on this is the user will get the Incorrect Answer message only one time. After that there are no response message until the correct answer is chosen. Hope this helps.
Darin -
LocalConnection Advanced use question
Does anybody know if it is actually possible to have two
flash movies talk to each other when one is in an iframe at a
different domain and one is in the page containing the iframe?
I spent quite a bit of time yesterday going through varoius
permutaions on naming the connections. The closest I got to
anythign was when I got my sender movie in Flash to successfully
talk to the reciever movie in the browser, that was accomplished
having an underscore in front fo the connection name in sender and
reciever. But when the reciever swf is in a page containing an
iframe with the sender swf nothing appears to happen.
Since I got flash player (and an executable version of the
sender) to commicate with the browser based reciever I figure this
should be possible. But i can't seem to figure out what I'm missing
in the browser based versions.
The intent of this exercise is to allow technology I am
helping to delop to be included in a page using an iframe while
providing feedback to listener movie in the site the iframe is
embedded in. From there we would provide an api for interacting
with the listener movie so that sites wishing to embed our
technology could handle certain events. I realize of course that
interframe communication between frames at different domains is a
violation of the same domain rule at the heart of most browser
security. So, I wouldn't be surprised if it isn't possible. And
yet, I could communicate between flash player and the listener so I
still wonder at the possibility.
Does anybody know if what I'm attempting is even possible?
And if so, any clues as to what may be the problem? If anybody
chooses to help with the problem or innovate a work around I would
be happy to share the source files I've been playing with, which
are simple bare bones swfs."> One more question along this topic of advanced usage
> of LocalConnections ... is there a reccomended method
> of dealing with multiple windows being open with the
> same reciever movie so that the sender movies aren't all
> sending back to the originally opened movie?
What about sending an arbitrary id as one of the parameters
with your
message? All movies listen, but when a message comes, each
movie checks to
see if the id param matches a correlating id of its own. This
could be a
variable stored in the root of each listening movie. (Am I
movie "A"? Yes?
Okay, I'll follow these instructions.)"
The problem with the arbitrary id is that I have to send it
somewhere, and I need to know the name of the connection to send it
to, but each connection name must be unique. That is why if you
open a new window messaging goes to the first window, the
connection command in the second window will fail because the name
will aready be taken in window one. And the other movies won't know
that and will all send to the named connection which is still in
window one.
The connect function will fail if a connection already
exist.s So, on the one hand all I have to have is a loop that keeps
trying to connect until it finds a free connection. The problem I
am thinking about is having two movies in the same window, one in
the page displayed, and one in an iframe, as I set up on that demo
page. I'll want the one in the iframe to communicate with the one
in the outer page for validation purposes. If all there is is one
window then that's fine. But if sombody were to hit Ctrl+N in IE
they would get a new browser window with the same page. The problem
is how to make it so that the two movies in each window know to
only communicate with each other in only that window?
My thought is that I can use the incremental connection id
technique in each movie and figure that if the increment is
firstMovie_2 in one movie then it should communicate with
otherMovie_2. What I'm worried about in this scenario though is
what happens if the user is caffienated and hits Ctrl+N five times?
Will the two movies increment correctly for each browser window? Or
will there end up a couple windows with a firstMovie_3 and
secondMovie_2 because things didn't load in a controlled sort of
way?
I think the incremental technique would be fine for if a
window closed because that would free the connection id and the
loop would always start at 0, so if you had five windows opened and
closed the first one and opened a new one, the new window would use
the ids with the _0 increment.
Anyway, its helping me to write this stuff out. I'm going to
implement the incremental id thing and I'll report my findings.
As to looking deep into the technotes and docs. That
http://www.adobe.com/devnet/flash/articles/fplayer8_security_05.html
article was great for the table it has in the middle of it which
outlines what is needed for the various ways you try to connect
movies.
My only other reccomendation is the help docs and Excedrin
since it has both Acetometaphin AND caffeine and both are useful
for trudging through the fine points of the flash docs ;). -
Hi,
I am not knowledgeable in JavaScript. Is there a way in a CF
form/dropdown list to act as a "sumbit" when an item in the
dropdown list is selected without an actual submit button being
used? I know you can runs scripts with "onClick" - but I don't know
if a JavaScript can submit a form?
Thanks in advance,
hefterrquote:
Originally posted by:
hefterr
Hi,
I am not knowledgeable in JavaScript. Is there a way in a CF
form/dropdown list to act as a "sumbit" when an item in the
dropdown list is selected without an actual submit button being
used? I know you can runs scripts with "onClick" - but I don't know
if a JavaScript can submit a form?
Thanks in advance,
hefterr
Yes, but you punish people that know how to use a keyboard.
You also don't give people a chance to look at what they selected
before submitting the form. -
I have Adobe Acrobat version 8 Professional
Lets say I have a two page PDF document . On page 1 I have some text
that says Goto Page 2 for instance. Is it possible using Javascript to
alter that text to be a sort of hyperlink so that when a user clicks
it it will indeed take them to page 2? If anyone can provide some
sample code that would be would be great.I need this to be automated, also I was trying to simplify the situation in my question. The reality is I'll ultimately have a header page with approx 50 links to 50 separate data pages. Each of the data pages will itself have a link back to the header page.
Maybe you are looking for
-
No wifi and horrible battery life after iOS 7 install on iPhone 4S!
After the iOS 7 install on my iPhone 4S, my battery life is markedly worse and my phone will not connect to my home wifi. Every other device, including my wife's iPhone 5 and two iPad 2's, still connect perfectly. Please help. I wish I could go back
-
Front End Variable to Multiple Queries
I need to create a front end variable selection on plant that will then pass the plant as a parameter to run a Bex query that is based on plant. I cannot seem to accomplish this in BEX Query designer am I new to WAD. I don't want to publish 20+ que
-
hi all, i have to add one screen field in t-code 'CJ01', but problem is that how i can add the field in include 'CI_PROJ' of table 'PROJ'? can anyone plz. reply soon ?? its urgent. regards saurabh.
-
Forum session login/timeouts
We've had some changes made for session timeouts. Are people still having to constantly log-in throughout the day? Today I've managed to stay logged in without any forum activity for up to 3 hours or slightly longer. Has it improved for others? The l
-
Accessing an Unknown User account
Sorry if this is covered I could only find how to get rid on them and I need to access them not get rid of them. I had a system crash with a blue screen. When it came back there was only a temp profile loading. In System Properties under the tab Adva