Click to See Complete Forum and Search --> : Preview_HTML_&_search in Textarea Problem


chapimp
01-25-2003, 11:52 AM
Hi maybe someone can help me with this problem.

I have a search box in this page, which will search only in the Textarea provided. This works fine, then I can preview whatever is on this textarea in a new window as HTML, that's fine too, But when I come back to my first window from the HTML peview window and I try to search again. I get this message:

Line: 20
Char: 1
Error: The Callee (server [not server application]) is not
available
and disappeared: all connections are invalid.
The call did not execute
Code: 0

Here is tha page so you see what's wrong:
http://mysite.verizon.net/vze5289y/x/X.html

Energizer74
01-25-2003, 12:08 PM
Please don't hurt me if I am wrong. If you look at what it is telling you where the problem lies is:
Line: 20
Char: 1
If you look at your code, count lines down 20 from the very top, including lines that have nothing in them, you will find,
19 if (n == 0) alert(str + " was not found on this page.");}if (IE4) {
20 txt = win.document.mytext.htmlArea.createTextRange();for (i = 0; i <= n && (found = txt.findText(str)) != false; i++) {txt.moveStart("character", 1);txt.moveEnd("textedit");}if (found) {
21 txt.moveStart("character", -1);txt.findText(str);txt.select();txt.scrollIntoView();n++;
22 }else {if (n > 0) {n = 0;findInPage(str);}else
I think you are breaking up this code in the wrong places.
JavaScript is very touchy when it comes to this kind of stuff, unlike HTML, you can't just put more coding on the next line if you feel it is getting too long. If you got this from somebody else, go back and copy and paste exactly how you see it and it should work.
If that iis NOT the problem, then I think the problem lies with the server, Verizon.

chapimp
01-25-2003, 12:30 PM
I tryed it before upload and it was giving me the same
error massage
and I copied and pasted it exactly as I got it.

maybe you have some other ideas on how to do this

khalidali63
01-25-2003, 06:21 PM
When I clicked the link provided and the page I was broght it has the following text in the text area

[I can search for any text in this textarea,
I can preview it as HTML, but
when I close my HTML preview window and come back to this window
and I try to search for more words I get this message :

Line: 20
Char: 1
Error: The Callee (server [not server application]) is not
available
and disappeared: all connections are invalid.
The call did not execute
Code: 0

]

isn't that the error?
or there is some other page where this originates?

Khalid