Search the web
Sign In
New User? Sign Up
JS-Jive · The premiere Yahoo! Javascript Group
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Message search is now enhanced, find messages faster. Take it for a spin.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Messages 21062 - 21091 of 21091   Newest  |  < Newer  |  Older >  |  Oldest
Messages: Show Message Summaries   (Group by Topic) Sort by Date v  
#21091 From: "Dean Hamack" <lists@...>
Date: Mon Mar 30, 2009 8:12 pm
Subject: Progressive submenus
tactics2337
Offline Offline
Send Email Send Email
 
I've been searching all over the place, but can't seem to find an example of
what I'm trying to do. Hoping someone here can point me in the right direction.

Essentially, I'm trying to create progressive menus like this:

http://www.napaonline.com/MasterPages/NOLMaster.aspx?PageId=421

But rather than using select menus, I would like to do it with nested unordered
lists. Here's some basic sample code:

<ul>
<li><h2><a href="#">Apparel</a></h2>
<ul>
<li>Shoes</li>
<li>Denim</li>
<li>Underwear</li>
</ul>
</li>

<li><h2><a href="#">Electronics</a></h2>
<ul>
<li>TV's</li>
<li>Stereos</li>
<li>Games</li>
</ul>
</li>
</ul>

So in this example, "Apparel" and "Electronics" are visible items in the popup
menu, and the submenu items are hidden. If the user clicks on "Apparel" a second
popup menu appears next to it containing "Shoes", "Denim", "Underwear".

Anyone know how I might accomplish this?

#21090 From: Rafael Raposo <orapouso@...>
Date: Fri Feb 20, 2009 10:57 pm
Subject: Re: Making radio button submit form
porrak
Offline Offline
Send Email Send Email
 
You are making a big mistake.

Just do a onclick="Ship_Option(this.form)" on each item

And inside the function
function Ship_Option(form)
{
form.submit();
}

You don't need to re-write the value in the option to send it. As you click,
that option becomes checked and is sent in the submit.


And FYI, form.service is a collection, an Array, so form.service.value will
do nothing.
That would only work if you had just one radio button named service.

Cheers
Rafael



On Fri, Feb 20, 2009 at 19:39, Bob <helldrivers@...> wrote:

>   ----- Original Message -----
> From: "tmallan"
> > This form allows a customer to choose a shipping option. While it
> > submits the form, no matter which button is selected, the same value
> > is always submitted.
> > Thanks for any help.
> >
> > The code:
> > ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
> > <script language="JavaScript" type="text/javascript">
> > function Ship_Option(Form, Value) {
> > Form.service.value = Value;
> > Form.submit();
> > }
> > </script>
> >
> > <form method="post" action="ship.html">
> > <input type="radio" name="service" value="9"
> > onfocus="Ship_Option(this.form, 9)">UPS Ground<br>
> > <input type="radio" name="service" value="10"
> > onfocus="Ship_Option(this.form, 10)">UPS 3 Day Select<br>
> > <input type="radio" name="service" value="11"
> > onfocus="Ship_Option(this.form, 11)">UPS 2 Day Air
> > </form>
>
> Hi tmallan,
> This group doesn't seem to be very active of lately, though there seems to
> be quite a few group members.
>
> I'm a newbie at javascript myself, but when I tried your code, it didn't
> pass any value at all, for me. I was using PHP to get the $_POST['service']
> value passed.
>
> I guess you are trying to do this without using a Submit button, which
> would be nice.
>
> Hope some more experienced members can help you.
> Regards, Bob E.
>
>
>


[Non-text portions of this message have been removed]

#21089 From: "Bob" <helldrivers@...>
Date: Fri Feb 20, 2009 10:39 pm
Subject: Re: Making radio button submit form
robert_dehoure
Offline Offline
Send Email Send Email
 
----- Original Message -----
From: "tmallan"
> This form allows a customer to choose a shipping option. While it
> submits the form, no matter which button is selected, the same value
> is always submitted.
> Thanks for any help.
>
> The code:
> ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
> <script language="JavaScript" type="text/javascript">
> function Ship_Option(Form, Value) {
> Form.service.value = Value;
> Form.submit();
> }
> </script>
>
> <form method="post" action="ship.html">
> <input type="radio" name="service" value="9"
> onfocus="Ship_Option(this.form, 9)">UPS Ground<br>
> <input type="radio" name="service" value="10"
> onfocus="Ship_Option(this.form, 10)">UPS 3 Day Select<br>
> <input type="radio" name="service" value="11"
> onfocus="Ship_Option(this.form, 11)">UPS 2 Day Air
> </form>

Hi tmallan,
This group doesn't seem to be very active of lately, though there seems to be
quite a few group members.

I'm a newbie at javascript myself, but when I tried your code, it didn't pass
any value at all, for me. I was using PHP to get the $_POST['service'] value
passed.

I guess you are trying to do this without using a Submit button, which would be
nice.

Hope some more experienced members can help you.
Regards, Bob E.

#21088 From: "tmallan" <tmallan@...>
Date: Wed Feb 18, 2009 10:46 pm
Subject: Making radio button submit form
tmallan
Offline Offline
Send Email Send Email
 
This form allows a customer to choose a shipping option. While it
submits the form, no matter which button is selected, the same value
is always submitted.
Thanks for any help.

The code:
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
<script language="JavaScript" type="text/javascript">
function Ship_Option(Form, Value) {
Form.service.value = Value;
Form.submit();
	 }
</script>

<form method="post" action="ship.html">
<input type="radio" name="service" value="9"
onfocus="Ship_Option(this.form, 9)">UPS Ground<br>
<input type="radio" name="service" value="10"
onfocus="Ship_Option(this.form, 10)">UPS 3 Day Select<br>
<input type="radio" name="service" value="11"
onfocus="Ship_Option(this.form, 11)">UPS 2 Day Air
</form>

#21087 From: "Hassan Schroeder" <hassan.schroeder@...>
Date: Fri Jan 2, 2009 6:54 am
Subject: Re: Can I use js to include a stylesheet?
laughingandj...
Offline Offline
Send Email Send Email
 
On Thu, Jan 1, 2009 at 9:33 PM, Dean Hamack <lists@...> wrote:
> So how do I add the class to the body tag with js?

The method you're interested in is `addClassName()` -- google for
docs/examples. :-)

HTH,
--
Hassan Schroeder ------------------------ hassan.schroeder@...

#21086 From: "Dean Hamack" <lists@...>
Date: Fri Jan 2, 2009 5:33 am
Subject: Re: Can I use js to include a stylesheet?
tactics2337
Offline Offline
Send Email Send Email
 
Thanks Hassan. I think I like option number two. So how do I add the class to
the body tag
with js?

--- In JS-Jive@yahoogroups.com, "Hassan Schroeder" <hassan.schroeder@...> wrote:
>
>
> document.write is (IMO) clumsy and ugly, and doesn't work in a true
> XHTML page. Forget you ever heard of it :-)
>
> Alternatives:
>
> 1) directly manipulate the style rules -- google "DOM stylesheet" for
>      more info and examples; probably won't scale well if you have a
>      lot of rules. Also, there are some browser compatibility issues --
>      surprise!
>
> 2) put all your rules in one stylesheet; make the "with JS" rules depend
>      on the cascade, e.g.
>
> h1 { color: red; }  /* no JS style */
> .js h1 { color: green; }  /* with JS style */
>
> and add the class "js" to the body tag via JavaScript.
>
> FWIW!
> --
> Hassan Schroeder ------------------------ hassan.schroeder@...
>

#21085 From: "Hassan Schroeder" <hassan.schroeder@...>
Date: Thu Jan 1, 2009 6:19 am
Subject: Re: Can I use js to include a stylesheet?
laughingandj...
Offline Offline
Send Email Send Email
 
On Wed, Dec 31, 2008 at 3:48 PM, Dean Hamack <lists@...> wrote:
> The idea is I want to have a stylesheet for all users (both with and without
> js), and override
> some of those styles if the user has js. I tried the following, but it
> doesn't seem to work:

> Can you only use document.write in the body? And if so, is there another way
> to accomplish this?

document.write is (IMO) clumsy and ugly, and doesn't work in a true
XHTML page. Forget you ever heard of it :-)

Alternatives:

1) directly manipulate the style rules -- google "DOM stylesheet" for
      more info and examples; probably won't scale well if you have a
      lot of rules. Also, there are some browser compatibility issues --
      surprise!

2) put all your rules in one stylesheet; make the "with JS" rules depend
      on the cascade, e.g.

h1 { color: red; }  /* no JS style */
.js h1 { color: green; }  /* with JS style */

and add the class "js" to the body tag via JavaScript.

FWIW!
--
Hassan Schroeder ------------------------ hassan.schroeder@...

#21084 From: "Dean Hamack" <lists@...>
Date: Wed Dec 31, 2008 11:48 pm
Subject: Can I use js to include a stylesheet?
tactics2337
Offline Offline
Send Email Send Email
 
This is probably a dumb question, but I'm a js dummie, so forgive me.

The idea is I want to have a stylesheet for all users (both with and without
js), and override
some of those styles if the user has js. I tried the following, but it doesn't
seem to work:

<link href="nojs.css" rel="stylesheet" type="text/css" media="screen" />

<script language="javascript" type="text/javascript">
document.write("<link href="js.css" rel="stylesheet" type="text/css"
media="screen" />");
</script>

</head>

Can you only use document.write in the body? And if so, is there another way to
accomplish
this?

#21083 From: "Amineh" <sindy83us@...>
Date: Sun Aug 5, 2007 5:51 am
Subject: utf-8 to unicode conversion
sindy83us
Offline Offline
Send Email Send Email
 
i have a js file which reads data from my database in utf8 format,
unless i convert the data to unicode format it could not be shown on
my web pages and since i'm not using html in my js file i cant include
anything,
does anyone have a javascript could which converts this for me? or is
there any better way to do this?

#21082 From: "Ashish Kumar" <ashkumar97@...>
Date: Wed Jun 20, 2007 6:47 pm
Subject: IE 7 javascript issue
ashkumar97
Offline Offline
Send Email Send Email
 
Hi All,

I am facing issues with IE 7.

If I have a simple page with the following content:

<html><body><script>
var aaa = new Object();
aaa.data = "bbb";
//... and repeat the above statement 32767 times
</script></body></html>

The page will throw syntax errors on IE 7. If I reduce the number of
statement by one, it works. The page works on IE 6 and which much
more data.

Is there a setting in IE 7 which is restricting this to 2 pow 15
(=32768)assignments or something?

Regards,
Ash

#21081 From: "Robertson-Ravo, Neil (RX)" <Neil.Robertson-Ravo@...>
Date: Tue Jun 12, 2007 10:02 pm
Subject: Re: IE, making DIV visible, & FORM fields showing thru
Neil.Robertson-Ravo@...
Send Email Send Email
 
Yep, exactly you have to hide those elements in order for you div not take
go behind.



"This e-mail is from Reed Exhibitions (Gateway House, 28 The Quadrant,
Richmond, Surrey, TW9 1DN, United Kingdom), a division of Reed Business,
Registered in England, Number 678540.  It contains information which is
confidential and may also be privileged.  It is for the exclusive use of the
intended recipient(s).  If you are not the intended recipient(s) please note
that any form of distribution, copying or use of this communication or the
information in it is strictly prohibited and may be unlawful.  If you have
received this communication in error please return it to the sender or call
our switchboard on +44 (0) 20 89107910.  The opinions expressed within this
communication are not necessarily those expressed by Reed Exhibitions."
Visit our website at http://www.reedexpo.com

-----Original Message-----
From: Don Arnett
To: JS-Jive@yahoogroups.com
Sent: Tue Jun 12 23:01:09 2007
Subject: Re: IE, making DIV visible, & FORM fields showing thru

Thanks. Now I won't waste a ton of time looking for an answer.

By "switch them off when the DIV is shown", do you mean to hide the
SELECT objects?

--- In JS-Jive@yahoogroups-.com, "Robertson-Ravo, Neil (RX)"
<Neil.Robertson--Ravo@...> wrote:
>
> This is an age old known issue, you have to switch them off when
the DIV is
> shown.
>
>
>
>
>
>
> "This e-mail is from Reed Exhibitions (Gateway House, 28 The
Quadrant,
> Richmond, Surrey, TW9 1DN, United Kingdom), a division of Reed
Business,
> Registered in England, Number 678540. It contains information
which is
> confidential and may also be privileged. It is for the exclusive
use of the
> intended recipient(s)-. If you are not the intended recipient(s)
please note
> that any form of distribution, copying or use of this
communication or the
> information in it is strictly prohibited and may be unlawful. If
you have
> received this communication in error please return it to the
sender or call
> our switchboard on +44 (0) 20 89107910. The opinions expressed
within this
> communication are not necessarily those expressed by Reed
Exhibitions.-"
> Visit our website at http://www.reedexpo-.com
>
> -----Original Message-----
> From: Don Arnett
> To: JS-Jive@yahoogroups-.com
> Sent: Tue Jun 12 21:22:01 2007
> Subject: IE, making DIV visible, & FORM fields showing thru
>
> I am displaying/hiding a DIV by changing visibility between
visible
> and hidden when the user mouses over a link.
>
> So, when the user hovers over this link, a 'popup' with some
> information appears.
>
> This works fine except that in IE (6.0.2900.2180)--, if there are
any
> SELECT objects on the page underneath the visible DIV, they show
thru
> the DIV. This does not happen in FireFox.
>
> Radios and TextAreas underneath the DIV don't show thru. I don't
know
> about TEXT boxes.
>
> Does anyone know a fix for this?
>
> Thanks
>
>
>
>
>
>
> [Non-text portions of this message have been removed]
>






[Non-text portions of this message have been removed]

#21080 From: "Don Arnett" <yahoo@...>
Date: Tue Jun 12, 2007 10:01 pm
Subject: Re: IE, making DIV visible, & FORM fields showing thru
darnit78
Offline Offline
Send Email Send Email
 
Thanks.  Now I won't waste a ton of time looking for an answer.

By "switch them off when the DIV is shown", do you mean to hide the
SELECT objects?


--- In JS-Jive@yahoogroups.com, "Robertson-Ravo, Neil (RX)"
<Neil.Robertson-Ravo@...> wrote:
>
> This is an age old known issue, you have to switch them off when
the DIV is
> shown.
>
>
>
>
>
>
> "This e-mail is from Reed Exhibitions (Gateway House, 28 The
Quadrant,
> Richmond, Surrey, TW9 1DN, United Kingdom), a division of Reed
Business,
> Registered in England, Number 678540.  It contains information
which is
> confidential and may also be privileged.  It is for the exclusive
use of the
> intended recipient(s).  If you are not the intended recipient(s)
please note
> that any form of distribution, copying or use of this
communication or the
> information in it is strictly prohibited and may be unlawful.  If
you have
> received this communication in error please return it to the
sender or call
> our switchboard on +44 (0) 20 89107910.  The opinions expressed
within this
> communication are not necessarily those expressed by Reed
Exhibitions."
> Visit our website at http://www.reedexpo.com
>
> -----Original Message-----
> From: Don Arnett
> To: JS-Jive@yahoogroups.com
> Sent: Tue Jun 12 21:22:01 2007
> Subject: IE, making DIV visible, & FORM fields showing thru
>
> I am displaying/hiding a DIV by changing visibility between
visible
> and hidden when the user mouses over a link.
>
> So, when the user hovers over this link, a 'popup' with some
> information appears.
>
> This works fine except that in IE (6.0.2900.2180)-, if there are
any
> SELECT objects on the page underneath the visible DIV, they show
thru
> the DIV. This does not happen in FireFox.
>
> Radios and TextAreas underneath the DIV don't show thru. I don't
know
> about TEXT boxes.
>
> Does anyone know a fix for this?
>
> Thanks
>
>
>
>
>
>
> [Non-text portions of this message have been removed]
>

#21079 From: "Robertson-Ravo, Neil (RX)" <Neil.Robertson-Ravo@...>
Date: Tue Jun 12, 2007 8:38 pm
Subject: Re: IE, making DIV visible, & FORM fields showing thru
Neil.Robertson-Ravo@...
Send Email Send Email
 
This is an age old known issue, you have to switch them off when the DIV is
shown.






"This e-mail is from Reed Exhibitions (Gateway House, 28 The Quadrant,
Richmond, Surrey, TW9 1DN, United Kingdom), a division of Reed Business,
Registered in England, Number 678540.  It contains information which is
confidential and may also be privileged.  It is for the exclusive use of the
intended recipient(s).  If you are not the intended recipient(s) please note
that any form of distribution, copying or use of this communication or the
information in it is strictly prohibited and may be unlawful.  If you have
received this communication in error please return it to the sender or call
our switchboard on +44 (0) 20 89107910.  The opinions expressed within this
communication are not necessarily those expressed by Reed Exhibitions."
Visit our website at http://www.reedexpo.com

-----Original Message-----
From: Don Arnett
To: JS-Jive@yahoogroups.com
Sent: Tue Jun 12 21:22:01 2007
Subject: IE, making DIV visible, & FORM fields showing thru

I am displaying/hiding a DIV by changing visibility between visible
and hidden when the user mouses over a link.

So, when the user hovers over this link, a 'popup' with some
information appears.

This works fine except that in IE (6.0.2900.2180)-, if there are any
SELECT objects on the page underneath the visible DIV, they show thru
the DIV. This does not happen in FireFox.

Radios and TextAreas underneath the DIV don't show thru. I don't know
about TEXT boxes.

Does anyone know a fix for this?

Thanks






[Non-text portions of this message have been removed]

#21078 From: "Don Arnett" <yahoo@...>
Date: Tue Jun 12, 2007 8:22 pm
Subject: IE, making DIV visible, & FORM fields showing thru
darnit78
Offline Offline
Send Email Send Email
 
I am displaying/hiding a DIV by changing visibility between visible
and hidden when the user mouses over a link.

So, when the user hovers over this link, a 'popup' with some
information appears.

This works fine except that in IE (6.0.2900.2180), if there are any
SELECT objects on the page underneath the visible DIV, they show thru
the DIV.  This does not happen in FireFox.

Radios and TextAreas underneath the DIV don't show thru.  I don't know
about TEXT boxes.

Does anyone know a fix for this?


Thanks

#21077 From: "Don Arnett" <yahoo@...>
Date: Fri Jun 1, 2007 2:42 pm
Subject: Re: JavaScript Debugging on IE7?
darnit78
Offline Offline
Send Email Send Email
 
I downloaded VS Web Developer Edition.  It wasn't obvious how to use
(or even find) the debugger on an existing page.

Today I found this webpage (link below) with instructions on how to
use VS Web Developer to debug on an existing page.  I haven't tried
it yet, but given that I haven't used VS for quite a while (and
never the Web Developer version), this should save the time of
figuring it out step by step.

http://www.berniecode.com/blog/2007/03/08/how-to-debug-javascript-
with-visual-web-developer-express/

--- In JS-Jive@yahoogroups.com, liorean <liorean@...> wrote:
>
> On 05/02/07, darianlassan <darianlassan@...> wrote:
> >  I wonder if there are any similar tools for debugging
JavaScript on
> >  internet explorer 7 like I got used to on firefox and opera. I
have no
> >  useful error messages in IE7. (They are far too unprecise and
do not
> >  even point to the right file.)
> >
> >  Can anybody point me to a nice tool?
>
> There has for a long time existed a totally worthless free
debugging
> tool called the "Microsoft Script Debugger".
>
> A much better debugger comes with the Visual Studio program. You
can
> get Visual Studio Express for free, so that is a much better
choice.
>
> A third and pretty good choice is the script debugger that comes
with
> Microsoft Office. Enabling it may require you to run the installer
> again, though, to check in the debugger option.
> --
> David "liorean" Andersson
>

#21076 From: "Don Arnett" <yahoo@...>
Date: Thu May 31, 2007 6:58 pm
Subject: How to specifiy parameter for eventhandle as assigning to dynamically created el
darnit78
Offline Offline
Send Email Send Email
 
I have some code that adds a new row of INPUT fields to a form when a
button is pressed.

I use the following line to assign an onchange eventhandler.

    element.onchange = function(){updateItemCost(rowNum);};

The 'rowNum' parameter is defined in the Javascript function that
calls the above code.

This works great if the user adds one row, enters the data, then adds
the next row, enters data, etc.

But if the user adds two or more rows, the 'rowNum' received is always
the number of the last row added.

I can tell that separate INPUT objects are being created, because if I
SUBMIT, I can see the proper fields names (itemQuantity3,
itemQuantity4, etc) in the POST data.

#21075 From: Niels Fanøe <niels.f@...>
Date: Wed May 16, 2007 9:49 am
Subject: Date modified for linked file
denelo2000
Offline Offline
Send Email Send Email
 
Hi,
Did you ever get an answer to your question from 2001 about getting
the modified date of a linked file..?
(Long shot, I know!)

-Niels Fanøe

#21074 From: "Snake" <snake.lists@...>
Date: Fri Apr 13, 2007 9:17 pm
Subject: RE: Internet Explorer rendering problem
snake_hollywwod
Offline Offline
Send Email Send Email
 
I did wonder as the last post was 29th  March.

It turned out to be something in the CSS causing it as getting rid of the
stylesheet fixes the problem, now I just have to figure out what.



Russ



From: JS-Jive@yahoogroups.com [mailto:JS-Jive@yahoogroups.com] On Behalf Of
Hassan Schroeder
Sent: 13 April 2007 20:30
To: JS-Jive@yahoogroups.com
Subject: Re: Internet Explorer rendering problem



Russ michaels wrote:

> is this list still alive ?

Yep :-)

But I, at least, wouldn't hazard the wildest quess about your issue
without test case code that demonstrates the failure. Hint. :-)

--
Hassan Schroeder ----------------------------- hassan@...
<mailto:hassan%40webtuitive.com>
Webtuitive Design === (+1) 408-938-0567 === http://webtuitive.com
opinion: webtuitive.blogspot.com

dream. code.





[Non-text portions of this message have been removed]

#21073 From: Hassan Schroeder <hassan@...>
Date: Fri Apr 13, 2007 7:26 pm
Subject: Re: Internet Explorer rendering problem
laughingandj...
Offline Offline
Send Email Send Email
 
Russ michaels wrote:

> is this list still alive ?

Yep :-)

But I, at least, wouldn't hazard the wildest quess about your issue
without test case code that demonstrates the failure.    Hint. :-)

--
Hassan Schroeder ----------------------------- hassan@...
Webtuitive Design ===  (+1) 408-938-0567   === http://webtuitive.com
                 opinion: webtuitive.blogspot.com

                           dream.  code.

#21072 From: "Russ michaels" <snake.lists@...>
Date: Fri Apr 13, 2007 5:40 pm
Subject: Re: Internet Explorer rendering problem
snake_hollywwod
Offline Offline
Send Email Send Email
 
--- In JS-Jive@yahoogroups.com, "Russ michaels" <snake.lists@...> wrote:
>
> Greetings all, it has been a very long time since I posted here :-)
>
> I have made a dynamic form builder and All I am doing is cloning a DIV
> that contains some form fields, and using insertBefore to repeat that
> clone.
> There is no errors in the code and it does work, but in IE7 nothing is
> displayed unless I resize the window, after which everything appears.
> But I must do this after any change is made to the content.
> Is there some hack/fix for Internet Explorer to make it render
properly ?
>
> Russ
>


is this list still alive ?

#21071 From: "Russ michaels" <snake.lists@...>
Date: Fri Apr 13, 2007 9:00 am
Subject: Internet Explorer rendering problem
snake_hollywwod
Offline Offline
Send Email Send Email
 
Greetings all, it has been a very long time since I posted here :-)

I have made a dynamic form builder and All I am doing is cloning a DIV
that contains some form fields, and using insertBefore to repeat that
clone.
There is no errors in the code and it does work, but in IE7 nothing is
displayed unless I resize the window, after which everything appears.
But I must do this after any change is made to the content.
Is there some hack/fix for Internet Explorer to make it render properly ?

Russ

#21070 From: "spot_notrub" <spot_notrub@...>
Date: Fri Mar 23, 2007 5:24 am
Subject: Javascript "permission denied" error - .parent
spot_notrub
Offline Offline
Send Email Send Email
 
Hi,
I am trying to get some training material to run within an LMS
(learning management system). This material is produced
with "Articulate" software which takes PowerPoint files and converts
them to a Flash presentation.
In the presentation is an "exit" button which exits the Articulate
presentation and I need it to go to the next page in the LMS.
After much experimentation I added the JavaScript function:
parent.ReturnToDOTS(); into a text file called flashcommand.js which
is the "general fscommand handler for ALL output formats". DOTS is
the name of our LMS.
The exact code is:
case "ART_CloseAndExit":
if (!g_bLMS)
{
parent.ReturnToDOTS();
}
break;

Here is the problem: This function works fine on some of our PCs but
not others (permission denied error)! Any idea why that might happen?
We have checked the version of Java on the PCs and it appears to be
the same.
regards
spot

#21069 From: "caitlin_weaver" <caitlin_weaver@...>
Date: Sat Mar 24, 2007 3:13 am
Subject: checkbox values?
caitlin_weaver
Offline Offline
Send Email Send Email
 
I have a form with three checkboxes, and want to set another variable
depending on which boxes are checked.

The boxes have values of 1, 2, and 4, and I want to add up the values
of whichever boxes are checked.

The problem is that I'm getting a value of 7 no matter what boxes are
checked.

Any ideas?

---------------------------------


<script language="javascript">
	 <!--
		 function getbase() {

  var b1 = document.form1.base1.value;
  var b2 = document.form1.base2.value;
  var b3 = document.form1.base3.value;

  document.form1.bases.value = parseFloat(b1) + parseFloat(b2) +
parseFloat(b3);

}
	 //-->

</script>

</head>

<body>

<form name="form1">

1<input type="checkbox" name="base1" value="1">
2<input type="checkbox" name="base2" value="2">
3<input type="checkbox" name="base3" value="4">

<br><br>

<input name="bases" type="text">

<br><br>

<input type=submit onclick="getbase()">


</form>

#21068 From: "Robertson-Ravo, Neil (RX)" <Neil.Robertson-Ravo@...>
Date: Thu Mar 29, 2007 6:20 am
Subject: Re: Javascript "permission denied" error - .parent
Neil.Robertson-Ravo@...
Send Email Send Email
 
Update IE on the broken PCs, there is a fix from Microsoft on this issues.

Also note: Java is *NOT* JavaScript.




"This e-mail is from Reed Exhibitions (Gateway House, 28 The Quadrant,
Richmond, Surrey, TW9 1DN, United Kingdom), a division of Reed Business,
Registered in England, Number 678540.  It contains information which is
confidential and may also be privileged.  It is for the exclusive use of the
intended recipient(s).  If you are not the intended recipient(s) please note
that any form of distribution, copying or use of this communication or the
information in it is strictly prohibited and may be unlawful.  If you have
received this communication in error please return it to the sender or call
our switchboard on +44 (0) 20 89107910.  The opinions expressed within this
communication are not necessarily those expressed by Reed Exhibitions."
Visit our website at http://www.reedexpo.com

-----Original Message-----
From: JS-Jive@yahoogroups.com
To: JS-Jive@yahoogroups.com
Sent: Fri Mar 23 06:24:00 2007
Subject: Javascript "permission denied" error  -   .parent

Hi,
I am trying to get some training material to run within an LMS
(learning management system). This material is produced
with "Articulate" software which takes PowerPoint files and converts
them to a Flash presentation.
In the presentation is an "exit" button which exits the Articulate
presentation and I need it to go to the next page in the LMS.
After much experimentation I added the JavaScript function:
parent.ReturnToDOTS-(); into a text file called flashcommand.-js which
is the "general fscommand handler for ALL output formats". DOTS is
the name of our LMS.
The exact code is:
case "ART_CloseAndExit"-:
if (!g_bLMS)
{
parent.ReturnToDOTS-();
}
break;

Here is the problem: This function works fine on some of our PCs but
not others (permission denied error)! Any idea why that might happen?
We have checked the version of Java on the PCs and it appears to be
the same.
regards
spot






[Non-text portions of this message have been removed]

#21067 From: "Robertson-Ravo, Neil (RX)" <Neil.Robertson-Ravo@...>
Date: Thu Mar 29, 2007 6:20 am
Subject: Re: Javascript "permission denied" error - .parent
Neil.Robertson-Ravo@...
Send Email Send Email
 
Update IE on the broken PCs, there is a fix from Microsoft on this issues.

Also note: Java is *NOT* JavaScript.




"This e-mail is from Reed Exhibitions (Gateway House, 28 The Quadrant,
Richmond, Surrey, TW9 1DN, United Kingdom), a division of Reed Business,
Registered in England, Number 678540.  It contains information which is
confidential and may also be privileged.  It is for the exclusive use of the
intended recipient(s).  If you are not the intended recipient(s) please note
that any form of distribution, copying or use of this communication or the
information in it is strictly prohibited and may be unlawful.  If you have
received this communication in error please return it to the sender or call
our switchboard on +44 (0) 20 89107910.  The opinions expressed within this
communication are not necessarily those expressed by Reed Exhibitions."
Visit our website at http://www.reedexpo.com

-----Original Message-----
From: JS-Jive@yahoogroups.com
To: JS-Jive@yahoogroups.com
Sent: Fri Mar 23 06:24:00 2007
Subject: Javascript "permission denied" error  -   .parent

Hi,
I am trying to get some training material to run within an LMS
(learning management system). This material is produced
with "Articulate" software which takes PowerPoint files and converts
them to a Flash presentation.
In the presentation is an "exit" button which exits the Articulate
presentation and I need it to go to the next page in the LMS.
After much experimentation I added the JavaScript function:
parent.ReturnToDOTS-(); into a text file called flashcommand.-js which
is the "general fscommand handler for ALL output formats". DOTS is
the name of our LMS.
The exact code is:
case "ART_CloseAndExit"-:
if (!g_bLMS)
{
parent.ReturnToDOTS-();
}
break;

Here is the problem: This function works fine on some of our PCs but
not others (permission denied error)! Any idea why that might happen?
We have checked the version of Java on the PCs and it appears to be
the same.
regards
spot






[Non-text portions of this message have been removed]

#21066 From: Hassan Schroeder <hassan@...>
Date: Wed Mar 28, 2007 11:17 pm
Subject: Re: checkbox values?
laughingandj...
Offline Offline
Send Email Send Email
 
caitlin_weaver wrote:

> I have a form with three checkboxes, and want to set another variable
> depending on which boxes are checked.
>
> The boxes have values of 1, 2, and 4, and I want to add up the values
> of whichever boxes are checked.
>
> The problem is that I'm getting a value of 7 no matter what boxes are
> checked.

> var b1 = document.form1.base1.value;
> var b2 = document.form1.base2.value;
> var b3 = document.form1.base3.value;

Exactly -- you're adding *all the values* regardless of whether the
box is "successful", i.e. checked. :-)

Untested, but something like

  var b1 = (document.form.base1.checked)? document.form1.base1.value: 0;

would probably do it.

Alternatively, add event handlers to the checkboxes so they keep a
running total as they're clicked and un-clicked. :-)

HTH!
--
Hassan Schroeder ----------------------------- hassan@...
Webtuitive Design ===  (+1) 408-938-0567   === http://webtuitive.com
                 opinion: webtuitive.blogspot.com

                           dream.  code.

#21065 From: "spot_notrub" <spot_notrub@...>
Date: Fri Mar 23, 2007 5:24 am
Subject: Javascript "permission denied" error - .parent
spot_notrub
Offline Offline
Send Email Send Email
 
Hi,
I am trying to get some training material to run within an LMS
(learning management system). This material is produced
with "Articulate" software which takes PowerPoint files and converts
them to a Flash presentation.
In the presentation is an "exit" button which exits the Articulate
presentation and I need it to go to the next page in the LMS.
After much experimentation I added the JavaScript function:
parent.ReturnToDOTS(); into a text file called flashcommand.js which
is the "general fscommand handler for ALL output formats". DOTS is
the name of our LMS.
The exact code is:
case "ART_CloseAndExit":
if (!g_bLMS)
{
parent.ReturnToDOTS();
}
break;

Here is the problem: This function works fine on some of our PCs but
not others (permission denied error)! Any idea why that might happen?
We have checked the version of Java on the PCs and it appears to be
the same.
regards
spot

#21064 From: "caitlin_weaver" <caitlin_weaver@...>
Date: Sat Mar 24, 2007 3:13 am
Subject: checkbox values?
caitlin_weaver
Offline Offline
Send Email Send Email
 
I have a form with three checkboxes, and want to set another variable
depending on which boxes are checked.

The boxes have values of 1, 2, and 4, and I want to add up the values
of whichever boxes are checked.

The problem is that I'm getting a value of 7 no matter what boxes are
checked.

Any ideas?

---------------------------------


<script language="javascript">
	 <!--
		 function getbase() {

  var b1 = document.form1.base1.value;
  var b2 = document.form1.base2.value;
  var b3 = document.form1.base3.value;

  document.form1.bases.value = parseFloat(b1) + parseFloat(b2) +
parseFloat(b3);

}
	 //-->

</script>

</head>

<body>

<form name="form1">

1<input type="checkbox" name="base1" value="1">
2<input type="checkbox" name="base2" value="2">
3<input type="checkbox" name="base3" value="4">

<br><br>

<input name="bases" type="text">

<br><br>

<input type=submit onclick="getbase()">


</form>

#21063 From: Hassan Schroeder <hassan@...>
Date: Wed Mar 28, 2007 11:17 pm
Subject: Re: checkbox values?
laughingandj...
Offline Offline
Send Email Send Email
 
caitlin_weaver wrote:

> I have a form with three checkboxes, and want to set another variable
> depending on which boxes are checked.
>
> The boxes have values of 1, 2, and 4, and I want to add up the values
> of whichever boxes are checked.
>
> The problem is that I'm getting a value of 7 no matter what boxes are
> checked.

> var b1 = document.form1.base1.value;
> var b2 = document.form1.base2.value;
> var b3 = document.form1.base3.value;

Exactly -- you're adding *all the values* regardless of whether the
box is "successful", i.e. checked. :-)

Untested, but something like

  var b1 = (document.form.base1.checked)? document.form1.base1.value: 0;

would probably do it.

Alternatively, add event handlers to the checkboxes so they keep a
running total as they're clicked and un-clicked. :-)

HTH!
--
Hassan Schroeder ----------------------------- hassan@...
Webtuitive Design ===  (+1) 408-938-0567   === http://webtuitive.com
                 opinion: webtuitive.blogspot.com

                           dream.  code.

#21062 From: Hassan Schroeder <hassan@...>
Date: Wed Mar 28, 2007 11:17 pm
Subject: Re: checkbox values?
laughingandj...
Offline Offline
Send Email Send Email
 
caitlin_weaver wrote:

> I have a form with three checkboxes, and want to set another variable
> depending on which boxes are checked.
>
> The boxes have values of 1, 2, and 4, and I want to add up the values
> of whichever boxes are checked.
>
> The problem is that I'm getting a value of 7 no matter what boxes are
> checked.

> var b1 = document.form1.base1.value;
> var b2 = document.form1.base2.value;
> var b3 = document.form1.base3.value;

Exactly -- you're adding *all the values* regardless of whether the
box is "successful", i.e. checked. :-)

Untested, but something like

  var b1 = (document.form.base1.checked)? document.form1.base1.value: 0;

would probably do it.

Alternatively, add event handlers to the checkboxes so they keep a
running total as they're clicked and un-clicked. :-)

HTH!
--
Hassan Schroeder ----------------------------- hassan@...
Webtuitive Design ===  (+1) 408-938-0567   === http://webtuitive.com
                 opinion: webtuitive.blogspot.com

                           dream.  code.

Messages 21062 - 21091 of 21091   Newest  |  < Newer  |  Older >  |  Oldest
Advanced
Add to My Yahoo!      XML What's This?

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help