List Info

Thread: Re: Is there something like for array?




Re: Is there something like <a name=#filename2050> for array?
country flaguser name
United States
2007-07-20 22:24:32

Hi Hans,

You need to use the window.location and location.search properties.

Experiment with these functions:

// originating doc function:

function send() {
// target destination:
var urlDestination = "target.html&quot;;
// destination filename:
var myFileName = "file007.jpg&quot;;
// build the "query" or "search" string
urlDestination += "?&quot; + myFileName;
// go there:
window.location = urlDestination;
}

// destination function:

function getSearchString() {
var searchString = location.search;
// shows "?file007.jpg&quot;:
alert("search string contains = " + searchString);
}

Of course you will need to parse the parameters in a URL search
string if there are multiple name-value pairs. At the very least you
will need to get rid of the "?&quot;.

Paul

--- In JavaScript_Official%40yahoogroups.com">JavaScript_Officialyahoogroups.com, "hwitche" <hwitche...>
wrote:
>
&gt; I have a slideshow which takes the information for the image and
> description from an array like this:
&gt;
> "1|filename1|Title1|more information1",
> "2|filename2|Title2|more information2",
> ...
> "2050|filename2050|Title2050|more information2050",
> "2051|filename2051|Title2051|more information2051"
> ...
>
> Now I would like to invoke the slideshow from a link in another html
>; file BUT with the capability of jumping directly to "filename2050&quot;
and
&gt; running the show from that point on forward.
>
> Question: How can I pass the value "filename2050&quot; to my
slideshow.html?
>
> Thank you for your hints.
&gt;
> Hans
>;

__._,_.___
Recent Activity
Visit Your Group
SPONSORED LINKS
HDTV Support

on Yahoo! Groups

Help with Samsung

HDTVs and devices

Ads on Yahoo!

Learn more now.

Reach customers

searching for you.

Yoga Groups

Exchange insights

with members of

the yoga community.

Re: Is there something like <a name=#filename2050> for array?
country flaguser name
United States
2007-07-30 01:55:00

--- In JavaScript_Official%40yahoogroups.com">JavaScript_Officialyahoogroups.com, "Paul Donahue&quot;
<scramjetter...> wrote:
&gt;
> Hi Hans,
&gt;
> You need to use the window.location and location.search properties.
>
> Experiment with these functions:
>
> // originating doc function:
>
> function send() {
> // target destination:
> var urlDestination = "target.html&quot;;
> // destination filename:
> var myFileName = "file007.jpg&quot;;
> // build the "query" or "search" string
&gt; urlDestination += "?&quot; + myFileName;
> // go there:
&gt; window.location = urlDestination;
>; }
>
>
> // destination function:
>
> function getSearchString() {
> var searchString = location.search;
&gt; // shows "?file007.jpg&quot;:
>; alert(&quot;search string contains = " + searchString);
>; }
>
> Of course you will need to parse the parameters in a URL search
> string if there are multiple name-value pairs. At the very least
you
> will need to get rid of the "?&quot;.
>
> Paul
>;
>
>
>
>
> --- In JavaScript_Official%40yahoogroups.com">JavaScript_Officialyahoogroups.com, "hwitche" <hwitche>
> wrote:
&gt; >
>; > I have a slideshow which takes the information for the image and
> > description from an array like this:
&gt; >
> > "1|filename1|Title1|more information1",
> > "2|filename2|Title2|more information2",
> > ...
> > "2050|filename2050|Title2050|more information2050",
> > "2051|filename2051|Title2051|more information2051"
> > ...
> >
> > Now I would like to invoke the slideshow from a link in another
html
> > file BUT with the capability of jumping directly
to "filename2050&quot;
> and
> > running the show from that point on forward.
> >
> > Question: How can I pass the value "filename2050&quot; to my
> slideshow.html?
>; >
> > Thank you for your hints.
&gt; >
> > Hans
>; >
>;

__._,_.___
.

__,_._,___
[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )