Find the answer to your Linux question:
Results 1 to 9 of 9
The javascript based pop-ups of my php scripts are not working at all. Do I need to install the JVM for that & if yes then where to find it???...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Aug 2005
    Location
    India
    Posts
    22

    Javascript pop-ups not working


    The javascript based pop-ups of my php scripts are not working at all.
    Do I need to install the JVM for that & if yes then where to find it???

  2. #2
    Linux Engineer
    Join Date
    Aug 2004
    Posts
    826
    Javascript and Java are completely different. All you need is a browser that supports Javascript, such as Mozilla Firefox. Perhaps it's your scripts that are the problem?

  3. #3
    Linux Engineer
    Join Date
    Nov 2004
    Location
    home
    Posts
    796
    You shouldn't use popups. Many users block them, they're very annoying, but moreso because it takes control away from the user, which you shouldn't do. If it's for ads, putting them on the page will probably get more clicks than a popup will.

    If it's not working, make sure that you're not blocking it, that javascript is enabled, and that your code is right. Java has very little to do with javascript.

  4. $spacer_open
    $spacer_close
  5. #4
    Just Joined!
    Join Date
    Aug 2005
    Location
    India
    Posts
    22
    Quote Originally Posted by valan
    You shouldn't use popups. Many users block them, they're very annoying, but moreso because it takes control away from the user, which you shouldn't do. If it's for ads, putting them on the page will probably get more clicks than a popup will.

    If it's not working, make sure that you're not blocking it, that javascript is enabled, and that your code is right. Java has very little to do with javascript.
    Actually, I have made an app which needs some fields to be entered through pop-ups. The function of the pop-ups is to transmit the data entered into it's fields back to the parent form which is why pop-ups are necessay in my app.

    My app is perfectly fine as I have already tested it on another linux machine, the one which a hosting company has provided to me. So it should be running on this one as well.

    As for checking the JS, the firefox has been configured to allow pop-ups but I don't know whether the JS support in it is enabled or not & I don't know how to check that.

    Can you help me figure it out...

  6. #5
    Linux Engineer
    Join Date
    Nov 2004
    Location
    home
    Posts
    796
    Unfortunately I can't help you figure it out, I have no firefox install atm.

  7. #6
    Linux Engineer
    Join Date
    Aug 2004
    Posts
    826
    Edit -> Preferences -> Web Features -> Enable Javascript

  8. #7
    Just Joined!
    Join Date
    Aug 2005
    Location
    India
    Posts
    22
    Quote Originally Posted by sether
    Edit -> Preferences -> Web Features -> Enable Javascript
    js is enabled

  9. #8
    Linux User
    Join Date
    Jan 2003
    Location
    Cardiff, Wales
    Posts
    478

    popup code

    how are you launching the popups?
    or give us a link to the web page and I'll have a look myself.
    No trees were harmed during the creation of this message. Its made from a blend of elephant tusk and dolphin meat.

  10. #9
    Just Joined! napolian's Avatar
    Join Date
    Aug 2005
    Posts
    20
    try this code

    Code:
    <Body onLoad="javascript&#58;&#40;the function name&#41;">
    - Justin

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •