Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > alt.computer > #10956 > unrolled thread
| Started by | Robert Baer <robertbaer@localnet.com> |
|---|---|
| First post | 2018-12-09 23:44 -0800 |
| Last post | 2018-12-12 18:14 -0800 |
| Articles | 4 — 2 participants |
Back to article view | Back to alt.computer
HTML question Robert Baer <robertbaer@localnet.com> - 2018-12-09 23:44 -0800
Re: HTML question JJ <jj4public@vfemail.net> - 2018-12-10 18:17 +0700
Re: HTML question Robert Baer <robertbaer@localnet.com> - 2018-12-10 14:28 -0800
Re: HTML question Robert Baer <robertbaer@localnet.com> - 2018-12-12 18:14 -0800
| From | Robert Baer <robertbaer@localnet.com> |
|---|---|
| Date | 2018-12-09 23:44 -0800 |
| Subject | HTML question |
| Message-ID | <JPoPD.1266992$RN2.180826@fx40.iad> |
Did searches, got basically nowhere; about 90 percent used JavaScript, and most of the scripts did not work. One of them does work but everything is invisible: no input prompt, only the highlighted found item seen. Once upon a time, i had HTML "controlling" the browser "find" facility, and it was perfect! Now it does not work: <a href="vendor-profile.html?find='334519'">Vendor Profile</a> One can bring up vendor-profile.html in a browser, and MANUALLY find something; a "find" box at the bottom of the screen pops up, ready for input. When it worked, above code (or something damn near like it) would show that SAME "find" box filled out with the given search term. Like i said above, now it does not work; NO "search" box. Is there a simple fix, and what is it? Thanks.
[toc] | [next] | [standalone]
| From | JJ <jj4public@vfemail.net> |
|---|---|
| Date | 2018-12-10 18:17 +0700 |
| Message-ID | <4mei4rgfmq0f.1k765ajwoyxg7$.dlg@40tude.net> |
| In reply to | #10956 |
On Sun, 9 Dec 2018 23:44:40 -0800, Robert Baer wrote: > Did searches, got basically nowhere; about 90 percent used > JavaScript, and most of the scripts did not work. > One of them does work but everything is invisible: no input prompt, > only the highlighted found item seen. > > Once upon a time, i had HTML "controlling" the browser "find" > facility, and it was perfect! > Now it does not work: > > <a href="vendor-profile.html?find='334519'">Vendor Profile</a> > > One can bring up vendor-profile.html in a browser, and MANUALLY find > something; a "find" box at the bottom of the screen pops up, ready for > input. > When it worked, above code (or something damn near like it) would > show that SAME "find" box filled out with the given search term. > > Like i said above, now it does not work; NO "search" box. > > Is there a simple fix, and what is it? > > Thanks. I vaguely remember such browser feature in Netscape era. That's no longer available in nowaday browsers, since it's not part of the web standard. Except for browser's internal pages, URL variables do not mean anything for the browser. i.e. they won't trigger anything on the browser. i.e. they're simply meant either for the web server's or page's scripts.
[toc] | [prev] | [next] | [standalone]
| From | Robert Baer <robertbaer@localnet.com> |
|---|---|
| Date | 2018-12-10 14:28 -0800 |
| Message-ID | <gMBPD.976919$3L2.349231@fx44.iad> |
| In reply to | #10957 |
JJ wrote:
> On Sun, 9 Dec 2018 23:44:40 -0800, Robert Baer wrote:
>> Did searches, got basically nowhere; about 90 percent used
>> JavaScript, and most of the scripts did not work.
>> One of them does work but everything is invisible: no input prompt,
>> only the highlighted found item seen.
>>
>> Once upon a time, i had HTML "controlling" the browser "find"
>> facility, and it was perfect!
>> Now it does not work:
>>
>> <a href="vendor-profile.html?find='334519'">Vendor Profile</a>
>>
>> One can bring up vendor-profile.html in a browser, and MANUALLY find
>> something; a "find" box at the bottom of the screen pops up, ready for
>> input.
>> When it worked, above code (or something damn near like it) would
>> show that SAME "find" box filled out with the given search term.
>>
>> Like i said above, now it does not work; NO "search" box.
>>
>> Is there a simple fix, and what is it?
>>
>> Thanks.
>
> I vaguely remember such browser feature in Netscape era.
>
> That's no longer available in nowaday browsers, since it's not part of the
> web standard.
>
> Except for browser's internal pages, URL variables do not mean anything for
> the browser. i.e. they won't trigger anything on the browser. i.e. they're
> simply meant either for the web server's or page's scripts.
>
DAMN!
BUT,,,browsers still have that find facility; it would be profoundly
STUPID to rip that out.
Howsomeever, you said a magic word: "scripts", and therefor a
variable in the URL like my "example" could somehow be accessed by a
JavaScript function and used for a search.
If _that_ is true, then the code as shown (the URL string) need not
be an ugly mess (eg: embedded code).
Thanks! Will snoop in that direction.
[toc] | [prev] | [next] | [standalone]
| From | Robert Baer <robertbaer@localnet.com> |
|---|---|
| Date | 2018-12-12 18:14 -0800 |
| Message-ID | <DgjQD.4155$964.4129@fx40.iad> |
| In reply to | #10958 |
[Multipart message — attachments visible in raw view] — view raw
Robert Baer wrote:
> Robert Baer wrote:
>> JJ wrote:
>>> On Sun, 9 Dec 2018 23:44:40 -0800, Robert Baer wrote:
>>>> Did searches, got basically nowhere; about 90 percent used
>>>> JavaScript, and most of the scripts did not work.
>>>> One of them does work but everything is invisible: no input prompt,
>>>> only the highlighted found item seen.
>>>>
>>>> Once upon a time, i had HTML "controlling" the browser "find"
>>>> facility, and it was perfect!
>>>> Now it does not work:
>>>>
>>>> <a href="vendor-profile.html?find='334519'">Vendor Profile</a>
>>>>
>>>> One can bring up vendor-profile.html in a browser, and MANUALLY
>>>> find
>>>> something; a "find" box at the bottom of the screen pops up, ready for
>>>> input.
>>>> When it worked, above code (or something damn near like it) would
>>>> show that SAME "find" box filled out with the given search term.
>>>>
>>>> Like i said above, now it does not work; NO "search" box.
>>>>
>>>> Is there a simple fix, and what is it?
>>>>
>>>> Thanks.
>>>
>>> I vaguely remember such browser feature in Netscape era.
>>>
>>> That's no longer available in nowaday browsers, since it's not part
>>> of the
>>> web standard.
>>>
>>> Except for browser's internal pages, URL variables do not mean
>>> anything for
>>> the browser. i.e. they won't trigger anything on the browser. i.e.
>>> they're
>>> simply meant either for the web server's or page's scripts.
>>>
>> DAMN!
>> BUT,,,browsers still have that find facility; it would be
>> profoundly STUPID to rip that out.
>>
>> Howsomeever, you said a magic word: "scripts", and therefor a
>> variable in the URL like my "example" could somehow be accessed by a
>> JavaScript function and used for a search.
>> If _that_ is true, then the code as shown (the URL string) need not
>> be an ugly mess (eg: embedded code).
>>
>> Thanks! Will snoop in that direction.
>>
>>
> OK; have _some_ success.
> Of many JavaScript "find" routines that were supposed to work, only
> one did, and it is a bit strange.
> You see your page and nothing else; you start typing and the findbox
> appears and what you typed gets highlighted.
> You can also use Ctrl+F for find.
> Attached TEST.HTML is a working example of that original code.
>
> BUT.
> I want to use a findterm specified from a calling HTML:
> <a href="vendor-profile.html?find='334519'">Vendor Profile</a>
> OR
> <a href="vendor-profile.html?find=334519">Vendor Profile</a>
>
> So i tried a modification of that JavaScript code; see noTEST.HTML
> (attached).
> The first 7 lines i added to fetch what i want to search for; that
> works - "yep" is the variable for that search.
> So far so good..except that "if (parseInt(.." blather then killed
> JavaScript, sowas forced to REMove the return.
>
> Then we have code that works all the way into the "if (window.find.."
> and discover a big whoopsie; the "self.find(res.." FAILS to find the
> string "the" in the document UNLESS one does a document.write(res ...
>
> Methinks that maybe the reason for the first error is goofing this
> part up also.
>
> Help please.
>
>
ErrrGH!
In HTML, the JS not seen, so that exercise was futile.
So, i changed the filetype to try again.
Thanks.
[toc] | [prev] | [standalone]
Back to top | Article view | alt.computer
csiph-web