Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Javascript > Please help a newbie...

Reply
Thread Tools

Please help a newbie...

 
 
Al Murphy
Guest
Posts: n/a
 
      12-08-2004
Folks,

I've been given a heads-up on a Javascript project that I have to
do. As I'm a wee bit new to Javascript I'm wondering can you help me
please?
As part of the functionality of this project I have to do the
following:

1. Make a call to a remote box and cache some data on the page (I
believe JS can do this)

2. Extract a substring from a string

3. Detect a particular string and make decisions based upon it's value
(bunch of if-else statements)

Part 3 - I don't have any problems with. But part 1 and 2 is a bit
more challenging.
Can anyone offer any suggestions/comments/code snippets etc... on
either part 1 or 2 please?

Thanks a million,
Merci,
Al.
 
Reply With Quote
 
 
 
 
Evertjan.
Guest
Posts: n/a
 
      12-08-2004
Al Murphy wrote on 08 dec 2004 in comp.lang.javascript:

> 1. Make a call to a remote box and cache some data on the page (I
> believe JS can do this)


What is a "remote box"?

A candy container in the Sahara ?



> 2. Extract a substring from a string


myResult = myString.substr(2,7)



--
Evertjan.
The Netherlands.
(Replace all crosses with dots in my emailaddress)

 
Reply With Quote
 
 
 
 
Noozer
Guest
Posts: n/a
 
      12-08-2004
It's the place where you keep all your spare TV remotes!

"Evertjan." <> wrote in message
news:Xns95B9AFADA5D55eejj99@194.109.133.29...
> Al Murphy wrote on 08 dec 2004 in comp.lang.javascript:
>
> > 1. Make a call to a remote box and cache some data on the page (I
> > believe JS can do this)

>
> What is a "remote box"?
>
> A candy container in the Sahara ?



 
Reply With Quote
 
Michael Winter
Guest
Posts: n/a
 
      12-08-2004
On 8 Dec 2004 08:07:07 -0800, Al Murphy <> wrote:

[snip]

> 1. Make a call to a remote box and cache some data on the page (I
> believe JS can do this)


It *may* be possible to do this. See
<URL:http://jibbering.com/2002/4/httprequest.html>. You'll notice that the
introduction makes it fairly clear that support is limited.

> 2. Extract a substring from a string


That's simple enough:

string.substring(s, e)

where s and e are zero-order numbers; s denotes where extraction should
begin, and e specifies the (non-inclusive) end-point. For example:

'together'.substring(2, 5)

returns 'get'. Note that the string doesn't get modified; a new string is
returned.

[snip]

Hope that helps,
Mike

--
Michael Winter
Replace ".invalid" with ".uk" to reply by e-mail.
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Please please please help this guy with his open source java app casioculture@gmail.com Java 4 05-05-2005 08:24 AM
Console profile for Windows app in VC++ - PLEASE PLEASE PLEASE HELP! MuZZy C++ 7 01-07-2005 08:40 PM
Computer problems please please please help Nick Computer Support 0 06-04-2004 08:49 PM
HELP! HELP! PLEASE, PLEASE, PLEASE tpg comcntr Computer Support 11 02-15-2004 06:22 PM
please help... ...me learn C++ please please please :) KK C++ 2 10-14-2003 02:08 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57