Thu 30 Aug 2007
Just thought I’d give everyone a shot to request any more features for Impromptu? Currently on my list is to make the options more global so you don’t have to declare your custom show method everytime.. unless thats what makes you happy :). So with this next release you might say something like…
$.ImpromptuOptions = { show: ‘mycustomeffect’, prefix: ‘myprompt’ };
Now you can just $.prompt() with just a message. Again this wont be required and may not be the exact syntax, but this is what I’m shooting for along with being completely backwards compatible. I wont be releasing this one for a while yet to try and get some feedback. So what do you think??

August 30th, 2007 at 7:53 am
Please, allow positions.
Top-Left, Top-Center, Top-Right
Mid-Left, Mid- Center, Mid-Right
Bottom-Left, Bottom-Center, Bottom-Right
And custom X,Y positioning.
Also, Fixed Height/Width if possible.
Please contact me about this.
August 30th, 2007 at 12:07 pm
Dan,
Sorry I have to ask, which situations would need the prompt to be elsewhere besides centered in it’s container? Have you tried adjusting the position with your CSS? I’m definitely open for suggestions if its a well needed addition, and by no means am I ruling
this out.
August 31st, 2007 at 5:57 am
what about passin’ variables to the callback function?
think is impossible to execute some ajax request from the callback with a specific variables if the user click on “OK” button, right? or Ima mistaken?!
August 31st, 2007 at 7:04 am
If I am understanding you correctly sure you can! Everything from the prompt is passed back as the second parameter. So considering I have an input field called “foo” in my prompt, the Ok button has a value of true, and I want to send an ajax request in the callback I might do this:
function mycallback(v,m){
fooVal = m.find(”input[name=foo]“).val();
if(v){
$.post(”mypage.php”,{foo:fooVal},ajaxCallback);
}
}
Is this what you’re asking?
September 1st, 2007 at 3:08 pm
Yea
thats it
thanks again
September 4th, 2007 at 7:31 am
Hi Trent,
Can you extend the plugin to make the blockUI functionality possible? For some reason the blockUI plugin doesnt work together with the other plugins I’m using for my current project and I want to have the blocking to look and act the same as my prompts. Basically what you would have to do is let me call the prompt with an empty button object and to be able to close the prompt from other scripts.
I know how to mod your plugin to show now buttons (and no button div) if the button object is empty, but I have no idea how to close the prompt.
Fredi
September 4th, 2007 at 12:50 pm
Hey Fredi,
The solution to your problem might be pretty simple if I understand you correctly. You dont want to show any buttons and allow another piece of javascript to close the prompt. If so here is how I would go about this.
First allow a button named “BtnName” and use css to hide it so we don’t lose any functionality..
#jqibuttonBtnName{ display: none; }
Then from your javascript use the jquery trigger function to trigger the click.
http://docs.jquery.com/Events/trigger#typedata
$(”#jqibuttonBtnName”).trigger(”click”);
Now you havn’t lost any functionality and triggering the click event will close the prompt.
September 5th, 2007 at 3:41 am
Interesting solution. Thx.
Fredi
September 6th, 2007 at 1:59 am
Hello,
I’m trying to use impromptu here:
http://indieed.com/temp/hermitkrab/index.php/restaurant/view/1/t
click on the ‘photos’ tab, then click ‘edit caption’ button anywhere.
As you can see, in IE6 the positioning is off. The impromptu div looks to be on the top left of the screen, and partially cut off. I am using the latest version.
September 6th, 2007 at 7:22 am
Hey Jake,
One of the other posters had a very similar problem in ie and the doctype fixed their problem.. although I see you have your doctype, but I noticed you were using a strict doctype and there were some xhtml errors(looks as if it was a repetative error, probably is just a couple elements that are throwing everything off). This might even fix a few other cross-browser differences.
http://validator.w3.org/