[jQuery] Re: blockUI problem

2009-07-20 Thread MorningZ
showing some code would be of value to helping others help you... On Jul 20, 4:49 am, Ulici Adrian wrote: > I just started using blockUI plugin for jQuery, and I have a problem > with forms. > I use blockUI to overlay the background and show a form. The problem > is that when I'm trying to acc

[jQuery] Re: Blockui problem

2007-07-20 Thread Mike Alsup
Tony, The error says it all. 'question' is not defined. It looks like you removed this line: var question = $('#question')[0]; This line should execute one time, in a doc-ready block. It is just a quick way to cache the element so that you can use it over and over, even if it is removed fro

[jQuery] Re: Blockui problem

2007-07-20 Thread Anthony Leboeuf(Worcester Wide Web)
anyone have any idea? im really stumped on this one. hours and still cant figure out the deal in firefox Anthony Leboeuf(Worcester Wide Web) wrote: The error is right, question is not defined. Is there a way to bipass it looking for that variable in firefox? works perfect in IE -Tony fu

[jQuery] Re: Blockui problem

2007-07-20 Thread Anthony Leboeuf(Worcester Wide Web)
The error is right, question is not defined. Is there a way to bipass it looking for that variable in firefox? works perfect in IE -Tony function addtocart(formName,product) { var obj = findObj(formName); if (obj != null) { $.blockUI(question, { width: '275px' }); $('#ca

[jQuery] Re: Blockui problem

2007-07-20 Thread Anthony Leboeuf(Worcester Wide Web)
Hey I just noticed, It doesnt work in firefox, it says question is not defined which wierd because question is not a function? http://pioneer.dlg360.com/order/index.php?act=viewProd&productId=2641 question is not defined $.blockUI(question, { width: '275px' }); Anthony Leboeuf(Worce

[jQuery] Re: Blockui problem

2007-07-20 Thread Anthony Leboeuf(Worcester Wide Web)
Excellent, Thanks for the info, Im reading up on it right now -Tony Mike Alsup wrote: Anthony, The doc-ready construct provides a place to put code that needs to *execute* after the DOM has fully loaded. For example, this line: var question = $('#question')[0]; should be in a doc-ready bl

[jQuery] Re: Blockui problem

2007-07-20 Thread Mike Alsup
Anthony, The doc-ready construct provides a place to put code that needs to *execute* after the DOM has fully loaded. For example, this line: var question = $('#question')[0]; should be in a doc-ready block because you want to ensure the element is available before you select it. But your "a

[jQuery] Re: Blockui problem

2007-07-20 Thread Anthony Leboeuf(Worcester Wide Web)
Hi Mike, Thanks allot that worked great! now to help out a nooby here this is considered DOM right? and in DOM you dont need doc ready functions ? Thanks again -Anthony Mike Alsup wrote: Anthony, You've got script errors on that page. You need to get those cleared up first. Also, your

[jQuery] Re: Blockui problem

2007-07-20 Thread Mike Alsup
Anthony, You've got script errors on that page. You need to get those cleared up first. Also, your blockUI code doesn't need to be in a doc-ready block (ie: $(function(){})) since you're calling it from an event handler. Try something like this: var question = $('#question')[0]; function ad

[jQuery] Re: Blockui problem

2007-07-20 Thread Anthony Leboeuf(Worcester Wide Web)
Can I not use blockui within another function? Anthony Leboeuf(Worcester Wide Web) wrote: Hello everyone, Im having a bit of trouble using blockui. I've added the plugin here http://pioneer.dlg360.com/order/index.php?act=viewProd&productId=2678