Boxy: multiple questions

22 views
Skip to first unread message

julien43

unread,
Oct 26, 2010, 2:46:31 AM10/26/10
to boxy
Hello Boxy group,

I have few questions which didn't got feedback on jquery forum (http://
forum.jquery.com/topic/boxy-misc-questions) so I come ask here :)

I'm discovering jQuery and Boxy and find them very powerful. My base
example is
http://www.varnagiris.net/2009/04/11/ajax-feedback-form-using-jquery-boxy-plugin/

on the questions side:

* is there a way to make boxy popup/alert appears on page load ? (some
kind of body onload)

* to call a remote feedbackp script aka $.post(‘http://domain/
script’) ? (not sure to understand json data return whereas server saw
only OPTIONS http request) or do this with a $.get('http://domain/
script’) if relevant ?

* automatically redirect or close the window after submitting and few
seconds like a meta refresh ?

Do not hesitate to show some code to illustrate :-).

Thanks a lot.
Best regards

Sam C

unread,
Oct 27, 2010, 6:35:38 AM10/27/10
to boxy
In jQuery on page load is made *very* easy! You've got two options
which, to my knowledge, do the same thing. You could either have a
snippet of javascript somewhere on your page with the following:
$(function() {
//on load boxy code here
}
or
$(document).ready(function() {
//on load boxy code here
}

For your third question you don't necessarily need jQuery. You could
simply have the form submit to a page that says thank you etc. And
includes a piece of javascript like:
setTimeout(function() { self.close(); },3000);
Where 3000 is 3 seconds before it closes (might need longer). Note
that this will only work on popups, so javascript would have to launch
a popup with the form etc, only then would self.close(); work. This is
a good article on it:
http://www.javascript-coder.com/window-popup/javascript-window-close.phtml

I'm not sure what question you're asking in 2. You would use post if
you have post data to send to the server, if not just do a normal get
request.

--Sam

On Oct 26, 7:46 am, julien43 <julien....@gmail.com> wrote:
> Hello Boxy group,
>
> I have few questions which didn't got feedback on jquery forum (http://
> forum.jquery.com/topic/boxy-misc-questions) so I come ask here :)
>
> I'm discovering jQuery and Boxy and find them very powerful. My base
> example ishttp://www.varnagiris.net/2009/04/11/ajax-feedback-form-using-jquery-...

julien

unread,
Oct 27, 2010, 8:47:18 AM10/27/10
to boxy-...@googlegroups.com

2010/10/27 Sam C <s...@beaver6813.com>:

> In jQuery on page load is made *very* easy! You've got two options
> which, to my knowledge, do the same thing. You could either have a
> snippet of javascript somewhere on your page with the following:
[...]

> For your third question you don't necessarily need jQuery. You could
> simply have the form submit to a page that says thank you etc. And
> includes a piece of javascript like:
[...]

Thanks sam for this tips. too easy to see those ;-)

>
> I'm not sure what question you're asking in 2. You would use post if
> you have post data to send to the server, if not just do a normal
> get request.

more here
https://forum.jquery.com/topic/boxy-misc-questions

It's "only" how to split files (html source popup page and php target
script) between multiples servers and how make it work.


Thanks a lot.
Best regards,

Julien

Reply all
Reply to author
Forward
0 new messages