• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1322
  • Last Modified:

invisible popup

Can i create a invisible popup window ?

I have a popup created which updates some stuff and closes automatically. I dotn want the user to see it.

Please let me know.

Thanks

rohan
0
rohanbairat3
Asked:
rohanbairat3
  • 3
  • 3
1 Solution
 
justinbilligCommented:
i dont think you can do that, why not just use a 1pixel by 1pixel i frame


<iframe name="ifraUpdate" style="width:1px;height1px;"></iframe
0
 
RoonaanCommented:
Can the update be done using some other method perhaps?

Possibly you could use a javascript to call to a remote url.

Where you now have:
window.open(some_url);

You could also have:

var i = new Image();
i.src = some_url;

This would load an url in the background, without having to use a popup.

Regards

-r-
0
 
justinbilligCommented:
you can do that roonaan? make a remote url call into an image?
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
RoonaanCommented:
Offcourse you can.

That exactly how you would generate random images run by php wouldn't you?

<img src="random.php?ext=.png" />

You then have random.php select one image from a series of images randomly and pass that one thru.

Wo is going to stop you, when you would use

<img src="update.php" />

This would result in a error image (red cross thingy), but doesn't prevent from update.php to be run, because will be called. The browser just won't recognize its output.

But then again, when using javascript the image will not be visible until you say it should, so therefor you have an ideal "invisible" updating mechanism.

(Except for the fact that some users don't support javascript offcourse ;-) )

Regards

-r-
0
 
justinbilligCommented:
i dont know php so htis is all new to me =(
0
 
rohanbairat3Author Commented:
Thanks Justin, That worked also i positioned it in such a way that nobody notices.

Sorry roonan justin got it first.

-rohan
0
 
RoonaanCommented:
though luck ;-)

Just use position:absolute; top:-100px;left:-100px; then nobody will ever notice.

Regards

-r-
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

  • 3
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now