CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Intermediate:
Cure!!

 



perlkid
stranger

Apr 22, 2000, 1:26 AM

Post #1 of 5 (654 views)
Cure!! Can't Post

 
Cure, I need some of your magic!

I am using a java scipt to open a popup window and that part works fine. The part the I'm having trouble with is when It open it displays a hour glass next to the mouse. So I know that it's still trying to preform somthing after the window is open. It seems like it is looping, and while it's doing whatever it is You can't click on anything but it's not a lock up, you can still close the window.
I don't know much about java so I hope you can help me out here.
The java script is;
######################
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
function popUp$number() {
props=window.open('http://www.home.com/myscript.cgi?variable=$scalar', 'poppage', 'toolbars=0, scrollbars=0, location=0, statusbars=0, menubars=0, resizable=0, width=380, height=390');
}
// End -->
</script>
######################

The $number counts starting at one until there is nothing left. The java is being printed in search results so it's in foreach brackets. Could that be the problem?
Foreach time the java script is printed it will have a unique number in the name and it will have the same values in it as the search results. And in the search results the url to open the java window is;

<a href="javascript:popUp$number();"

So that's what the environment around the java is like.

Thanks a lot!

perlkid


Cure
User

Apr 22, 2000, 1:08 PM

Post #2 of 5 (654 views)
Re: Cure!! [In reply to] Can't Post

Hi perlkid

Thas not a JavaScript problem. Your CGI script isnt returning HTML to the browser

The new window is opening which means the JavaScript worked fine. The window is sitting there waiting for a response from the CGI


Post your code(including javascript) so I can debug it..

Cure




perlkid
stranger

Apr 23, 2000, 8:59 PM

Post #3 of 5 (654 views)
Re: Cure!! [In reply to] Can't Post

 
Thanks cure, But I'm re-writing the script so I don't want to give it to you and then you'll fix the problem and it's an old version, So I will post it here tomorrow.

Thanks a lot Cure,

perlkid


perlkid
stranger

Apr 25, 2000, 2:02 PM

Post #4 of 5 (654 views)
Re: Cure!! [In reply to] Can't Post

 
Cure, Just your virtual presents fixed my problem.
While I was re-writing the script to speed things up I took out and added a lot of code and html. Somehow while rearranging the code it started to work and the problem disappeared.

Thanks for you wisdom,

perlkid


Cure
User

Apr 25, 2000, 10:17 PM

Post #5 of 5 (654 views)
Re: Cure!! [In reply to] Can't Post

They dont call me the `Cure` for no reason-->hehe

Cure

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives