I'm Developing an application, that have several Pages for the application. And In it i thought to Say one information in it, it the user like to proceed means they can continue or can drop that..
Now i have query like,..
<input type="Button" onclick="window.open(myPage.php)" target="_blank" value="Guess It..!"/>
It opens a new page for showing the Data,.. Its looking good. But just now i came to knew about the Lightbox functionality in PHP with javascript. I Heard that it will perform my process in the Same page without disturbing the Previous one, it came as pop-up and after completing its Process we can close and continue our previous process..
I Hope i will help to my user to work easily without any confusion with the New Tab Open option, now i'm searching for the lightbox Tutorial, anybody suggest me for the Best tutorial or examples..
I think you shuuld look at Fancybox. Good documentation, easy to use, you can dynamic load content, images etc.
There is also tutorial and documentation.
http://fancybox.net/
Download and use this fancy box..This will be easy for you to implement and customize based on reqs.
For using it, refer http://fancybox.net/howto.
Hope it helps.
Related
Couple of weeks ago I started working with ZF2, with a new project. I need some guidance about how to implement a
feature. I want to implement a "Like" button (E.g FB like button) this button will be attach to almost all the components
like uploaded Photos, Videos, Etc.., Honestly I don't have a much idea how this should be implemented with ZF2. Can someone
put me to the correct track. I don't need to know how to code it but just need to know what path should I take what is the best way ?
Thanks,
Well, since a Facebook Button is nothing but a little Javascript-Snippet with a URL attached, all you'd have to do is to build a ViewHelper that get's the current Route or URL injected. That ViewHelper would then print out the JS Snippet and create the specific like button.
The JavaScript that is required for that would be injected using the head*()-viewHelpers.
No need to make it any more complex than that. Furthermore i see no easier solution than this, as the position of the button and the displayStatus would be different on pretty much each page.
I'd like to code a lightbox input dialogue in my application (like the one you see when you want to send a facebook message, except with a dark background), and I'm having a hardtime finding a jQuery plugin that does the job.
I've found Boxy, but it doesn't seem to have options for having a text field in the lightbox dialogue (even though there's a pic for it!), so that's unfortunate.
Which plugin do you suggest that I use to accomplish this? I would love if it works fine with mobile browsers by the way.
Your help is much appreciated :)
Think this is what you're looking for : http://chriswanstrath.com/facebox/
edit: now that I've checked the link, the plugin has changed since the last time I've used it. I have a prior version of the plugin, wich works fine and is pratically identical to what you see on facebook, so if you're looking for that, just reply and I'll share it.
take a look at http://www.gettopup.com/
You can put anything in (Take a closer look at the 'open google' example.
Hope this helps!
How to make a basic Forum Thread on my website ?
Like they click it shows the thread without going to a new page and what not.
EDIT*** Like the user he clicks something that says Thread or a Programming* and it shows all the posts and they may view that post as if it were on a whole new page without the Programming and thread just the post.
You wont be able to do this PHP only...
You can do this with JavaScript though I prefer JQuery as it makes dealing with JavaScript easier. This is a great tutorial on getting started with JQuery which covers show/hide effects (which is what you want to look at to achieve the functionality you've described.)
http://docs.jquery.com/Tutorials:Getting_Started_with_jQuery
Good Luck!
In my Wordpress-powered website (http://onomadesign.com/wordpress/identity-design/usx-corporation/ for example) I want the sidebar.php, the thumbnail navigation on the right, NOT to reload when people click another project. So that they not get lost in navigation.
Now, I have looked at iframes, jQuery cookies, 'AHAH-method', php sessions.. but I can't find an easy way to do this.
I am defenitely not a programming expert, could someone give me an easy solution for this?
Thanks a lot in advance!
IFrames or AJAX are the only two options you have. (I suppose unless you did full screen flash) Everything else is going to reload the page. Ahh those other technologies you mentioned do not address the problem of reloading the main page (except iframes)
It isn't really going to be "straight-forward", but what you're trying to do isn't straight forward. I really recommend you take a look at jQuery and how AJAX works, it's probably the better of the options all things considered.
There are a few Wordpress plugins that attempt to implement this functionality. I haven't used any, so I'm not sure if they completely avoid reloading the sidebar, but it's worth a shot. One in particular that seems fairly well scored would be http://ajaxedwp.com/ I found this plugin by going to the "Add New" plugins page in the Wordpress Admin panel and searching for "AJAX Page Load".
I own an image hosting site and would like to generate one popup per visitor per day. The easiest way for me to do this was to write a php script that called subdomains, like ads1.sitename.com
ads2.sitename.com
unfortunatly most of my advertisers want to give me a block of javascript code to use rather than a direct link, so I can't just make the individual subdomains header redirects.I'd rather use the subdomains that way I can manage multiple advertisers without changing any code on page, just code in my php admin page. Any ideas on how I can stick this jscript into the page so I don't need to worry about a blank ads1.sitename.com as well as the popup coming up?
I doubt you'll find much sympathy for help with pop-up ads.
How about appending a simple window.close() after the advertising code? That way their popup is displayed and your window closes neatly.
I'm not sure that I've ever had a browser complain that the window is being closed. This method has always worked for me. (IE, Firefox, etc.)
At the risk of helping someone who wants to deploy popup ads (which is bound to fail due to most popup blockers anyway), why can't you just have the subdomains load pages that load the block of Javascript the advertisers give you?
Hey, cut the guy some slack. Popups might not be very nice, but at least he's trying to reduce the amount of them. And popup blockers are going to fix most of it anyway. In any case, someone else might find this question with more altruistic goals (not sure how they'd fit that with popups, but hey-ho).
I don't quite follow your question, but here's some ideas:
Look into Server Side Includes (SSI) to easily add a block of javascript to each page (though you could also do it with a PHP include instead)
Do your advertiser choosing in your PHP script rather than calling the subdomains
Decipher the javascript to work out what it's doing and put a modified version in the subdomain page so it doesn't need an additional popup. Shouldn't be too hard.