[Javascript] plesae give solution to my problem

seema varshney seema_varsh at yahoo.co.in
Fri Feb 11 04:01:34 CST 2005


sir/madam,
 
 
i want number and date validation check in either vbscript/javascript.
 
please help me out

javascript-request at LaTech.edu wrote:
Send Javascript mailing list submissions to
javascript at LaTech.edu

To subscribe or unsubscribe via the World Wide Web, visit
https://lists.LaTech.edu/mailman/listinfo/javascript
or, via email, send a message with subject or body 'help' to
javascript-request at LaTech.edu

You can reach the person managing the list at
javascript-owner at LaTech.edu

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Javascript digest..."


Today's Topics:

1. switch/ case activating (Richard )
2. re: WEIGHT-10 [Javascript] switch/ case activating (Peter Brunone)
3. How to include multiple paths (Richard )
4. Iframe's Real innerHTML (Flavio Gomes)
5. Re: Iframe's Real innerHTML (Roger Roelofs)
6. Re: Iframe's Real innerHTML (Shawn Milo)
7. Re: Iframe's Real innerHTML (Flavio Gomes)


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

Message: 1
Date: Wed, 9 Feb 2005 15:25:06 -0600
From: "Richard " 
Subject: [Javascript] switch/ case activating
To: 
Message-ID: <003901c50eed$d39f5600$7b057344 at stp.wi.charter.com>
Content-Type: text/plain; charset="iso-8859-1"

Ok I understand all the basics of the switch/case item.
Basically a more structured "if" array.

My problem is, understanding how to activate it.
In my menu of , which could be quite long, where and how do you state
what "case" is to be a certain value?"
I plan using string literals, such as "planes", "trains" and that.
For instance:

Do I trigger the function with getelementybyID routine or what?

If anyone can come with a short example as to how to do this, I'd appreciate
it.




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

Message: 2
Date: Wed, 9 Feb 2005 14:54:20 -0700
From: "Peter Brunone" 

Subject: re: WEIGHT-10 [Javascript] switch/ case activating
To: 
Message-ID: <86590fe269a141aca900f605f8075468 at brunone.com>
Content-Type: text/plain; charset="iso-8859-1"

Hi Richard,

   You may be over-analyzing this.  If you have strings to compare, you just stick 'em in there.

switch(myStringValue) {
 case "planes":
  alert("It's planes!!!");
  break;
  }

   On the other hand, if you're expecting that switch variable to be the ID of the appropriate element, you might not even need a switch statement (i.e. you'd just feed the value into your document.getElementById method and go).

Cheers,

Peter

From: "Richard " nomorebull at charter.net

Ok I understand all the basics of the switch/case item.
Basically a more structured "if" array.

My problem is, understanding how to activate it.
In my menu of , which could be quite long, where and how do you state
what "case" is to be a certain value?"
I plan using string literals, such as "planes", "trains" and that.
For instance:

Do I trigger the function with getelementybyID routine or what?

If anyone can come with a short example as to how to do this, I'd appreciate
it.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.LaTech.edu/pipermail/javascript/attachments/20050209/875f134e/attachment-0001.html

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

Message: 3
Date: Thu, 10 Feb 2005 02:24:44 -0600
From: "Richard " 
Subject: [Javascript] How to include multiple paths
To: 
Message-ID: <007001c50f49$fa66d680$7b057344 at stp.wi.charter.com>
Content-Type: text/plain; charset="iso-8859-1"

Using the script below, I want to use more than one list and path as shown
here.
Where "planes" could also be like "fruit", "bugs", "homes" or whatever.

User clicks open a main menu, clicks a group, thumbnails are displayed below
the main image.
Main image is replaced with the appropriate image.
Clues appreciated.



// put images to preload in this array
var preload_list = new Array("pic101.jpg", "pic102.jpg", "pic103.jpg",
"pic104.jpg");
var path_to_images = "planes/";

// preload (change path to images if necessary)
if (document.images) {
var image_list = new Array();
for (var preload_counter=0; preload_counter
preload_counter++) {
image_list[preload_counter] = new Image();
image_list[preload_counter].src = path_to_images +
preload_list[preload_counter];
}
}

function swapImage(num) {
if (document.images) {
document.main.src = image_list[num].src;
}
}



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

Message: 4
Date: Thu, 10 Feb 2005 12:04:43 -0200
From: Flavio Gomes 
Subject: [Javascript] Iframe's Real innerHTML
To: "[JavaScript List]" 
Message-ID: <420B69FB.5090507 at economisa.com.br>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed


Hello everyone,

I got myself on a kind of a little problem that I couldn't find a 
solution yet.
In my program there's an iframe that does some calculations and thru 
JavaScript I change it's (the iframe's) "src" attribute to recalculate 
the value. But I couldn't find the way to bring it back to JavaScript.

The better (and not working =] ) aproach I could do was:

"""""""""""""""""""""
This is not what I 
want 

        oFrame = document.getElementById(myIFrame);
        alert(oFrame.innerHTML);
    
"""""""""""""""""""""

Any help would be apreciated,

Thanks.


Ps.: Milo, have you got a regexp for that? ^^

--
Flavio Gomes
flavio at economisa.com.br


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

Message: 5
Date: Thu, 10 Feb 2005 09:14:43 -0500
From: Roger Roelofs 
Subject: Re: [Javascript] Iframe's Real innerHTML
To: "[JavaScript List]" 
Message-ID: <22ebfa9cf5e75aec9ff93b35fca82022 at datacompusa.com>
Content-Type: text/plain; charset=US-ASCII; format=flowed

Flavio,
On Feb 10, 2005, at 9:04 AM, Flavio Gomes wrote:

> Hello everyone,
>
> I got myself on a kind of a little problem that I couldn't find a 
> solution yet.
> In my program there's an iframe that does some calculations and thru 
> JavaScript I change it's (the iframe's) "src" attribute to recalculate 
> the value. But I couldn't find the way to bring it back to JavaScript.
>
> The better (and not working =] ) aproach I could do was:
>
> """""""""""""""""""""
> This is not what 
> I want 
>
>        oFrame = document.getElementById(myIFrame);
>        alert(oFrame.innerHTML);
>     
> """""""""""""""""""""

What about
oFrame = document.getElementById(myIFrame).document;

Roger
-------------------------------------------------------
Roger Roelofs web www.datacompusa.com
Datacomp Appraisal Services web www.mhvillage.com
3215 Eaglecrest Drive, NE Email rer at datacompusa.com
Grand Rapids, MI 49525-4593



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

Message: 6
Date: Thu, 10 Feb 2005 09:18:34 -0500
From: Shawn Milo 
Subject: Re: [Javascript] Iframe's Real innerHTML
To: "[JavaScript List]" 
Message-ID: <2dc0c81b050210061869d13b8c at mail.gmail.com>
Content-Type: text/plain; charset=US-ASCII

Sorry, no regex. :o( I'll try to throw one in to the list soon, in
response to a question that can be solved more simply some other way,
don't you worry. Regular expressions are fun. :o)

Shawn



On Thu, 10 Feb 2005 09:14:43 -0500, Roger Roelofs wrote:
> Flavio,
> On Feb 10, 2005, at 9:04 AM, Flavio Gomes wrote:
> 
> > Hello everyone,
> >
> > I got myself on a kind of a little problem that I couldn't find a
> > solution yet.
> > In my program there's an iframe that does some calculations and thru
> > JavaScript I change it's (the iframe's) "src" attribute to recalculate
> > the value. But I couldn't find the way to bring it back to JavaScript.
> >
> > The better (and not working =] ) aproach I could do was:
> >
> > """""""""""""""""""""
> > This is not what
> > I want 
> >
> >        oFrame = document.getElementById(myIFrame);
> >        alert(oFrame.innerHTML);
> >     
> > """""""""""""""""""""
> 
> What about
> oFrame = document.getElementById(myIFrame).document;
> 
> Roger
> -------------------------------------------------------
> Roger Roelofs web www.datacompusa.com
> Datacomp Appraisal Services web www.mhvillage.com
> 3215 Eaglecrest Drive, NE Email rer at datacompusa.com
> Grand Rapids, MI 49525-4593
> 
> _______________________________________________
> Javascript mailing list
> Javascript at LaTech.edu
> https://lists.LaTech.edu/mailman/listinfo/javascript
>


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

Message: 7
Date: Thu, 10 Feb 2005 15:32:22 -0200
From: Flavio Gomes 
Subject: Re: [Javascript] Iframe's Real innerHTML
To: "[JavaScript List]" 
Message-ID: <420B9AA6.3070003 at economisa.com.br>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed


Roger,

In which browser this solution worked?
I tried here in mozilla 1.7 and oFrame.document returned undefined and 
on IE 6.0 it returned a "Document Object" but oFrame.document is the 
same as window.document, so it didn't helped much.

If anyone has got any other idea, I'd be grateful to hear them!! ^^

Ps.: Only a magic RegExp will save this time?? o.O

Shawn Milo wrote:

>Sorry, no regex. :o( I'll try to throw one in to the list soon, in
>response to a question that can be solved more simply some other way,
>don't you worry. Regular expressions are fun. :o)
>
>Shawn
>
>
>
>On Thu, 10 Feb 2005 09:14:43 -0500, Roger Roelofs wrote:
> 
>
>>Flavio,
>>On Feb 10, 2005, at 9:04 AM, Flavio Gomes wrote:
>>
>> 
>>
>>>Hello everyone,
>>>
>>> I got myself on a kind of a little problem that I couldn't find a
>>>solution yet.
>>> In my program there's an iframe that does some calculations and thru
>>>JavaScript I change it's (the iframe's) "src" attribute to recalculate
>>>the value. But I couldn't find the way to bring it back to JavaScript.
>>>
>>>The better (and not working =] ) aproach I could do was:
>>>
>>>"""""""""""""""""""""
>>> This is not what
>>>I want 
>>>
>>>       oFrame = document.getElementById(myIFrame);
>>>       alert(oFrame.innerHTML);
>>>    
>>>"""""""""""""""""""""
>>> 
>>>
>>What about
>>oFrame = document.getElementById(myIFrame).document;
>>
>>Roger
>>-------------------------------------------------------
>>Roger Roelofs web www.datacompusa.com
>>Datacomp Appraisal Services web www.mhvillage.com
>>3215 Eaglecrest Drive, NE Email rer at datacompusa.com
>>Grand Rapids, MI 49525-4593
>>
>>_______________________________________________
>>Javascript mailing list
>>Javascript at LaTech.edu
>>https://lists.LaTech.edu/mailman/listinfo/javascript
>>
>> 
>>
>_______________________________________________
>Javascript mailing list
>Javascript at LaTech.edu
>https://lists.LaTech.edu/mailman/listinfo/javascript
> 
>



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

_______________________________________________
Javascript mailing list
Javascript at LaTech.edu
https://lists.LaTech.edu/mailman/listinfo/javascript


End of Javascript Digest, Vol 24, Issue 10
******************************************





		
---------------------------------
Do you Yahoo!?
 Yahoo! Search presents - Jib Jab's 'Second Term'
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.evolt.org/pipermail/javascript/attachments/20050211/cea9c8e4/attachment.htm>


More information about the Javascript mailing list