[jQuery] $.modal() Not a function driving me crazy

2008-09-22 Thread JohnC

Hi

I know this is going to be something simple, but I've been looking at
it for hours and just can't see it.

Problem page can be found here:

http://www.fridgeframes.co.uk/dashtest.html

I'm trying to use the Simple Modal plugin, but just get a $
().modal() is not a function error each time.

I've put a Go! button in to see if it was a timing thing, but no
joy.

According to Firebug, the files are all loaded.

So what am I doing wrong?

Many thanks

Regards

John


[jQuery] Re: $.modal() Not a function driving me crazy

2008-09-22 Thread JohnC

OK - I have it

The modal was calling in an external HTML file that contained a
reference to the jquery script.

Clearly a no-no!

John


[jQuery] Mouse moves on one element triggering a drag on another

2008-07-07 Thread JohnC

I have a series of elements the top of which partly or wholly covers
the rest (initially positioned/layered using CSS).

I want to drag one of the lower elements but (I guess obviously) only
the top element gets the mousedown/mousemove events.

Is there a way of passing those events through to one of my lower
elements?

In case you're wondering what I'm doing, I have a transparent PNG file
and so the user can see the lower elements, just not click on them
directly.

Regards and thanks

John


[jQuery] $.width() not giving me the true size....

2008-02-25 Thread JohnC

I have a DIV that I'm appending n spans to. The spans are positioned
absolutely, the Div relatively. Also, the spans have whitespace set to
nowrap and the Div's parent overflow is set to hidden.

When I call $(#divname).width() I get its absolute width ( which is
its parent's width since it's set to 100%) and not the true width
including the size of the overflowed elements.

Am I expecting too much?

How can I find the real size without looping through all the child
elements and adding their widths together?

Many thanks.

john


[jQuery] Re: document.onmousedown=selectmouse vs $(document).mousedown(function(){})

2008-02-25 Thread JohnC

jquertil

I put my hand up to being no jQUery expert - I'm just starting out -
but shouldn't it be

$(body).click( function() {.. ?

Regards

John


[jQuery] What am I missing with jQuery Forms ajaxSubmit?

2008-02-06 Thread JohnC

Hi

This is my script:

$(#frmTargets).submit(function(){
var frmTargetsOptions = { 'dataType':'json', target:
'#output', 'success':addTargetsResponse, 'error':
addTargetsResponseFailed };
$(this).ajaxSubmit(frmTargetsOptions);
return false;
 });

I'm posting to a .NET ashx. All the post works fine and the .Net code
does it's stuff correctly.

But instead of getting the JSON response from this code:

context.Response.ContentType = application/json
context.Response.Write({status:   status  })
context.Response.End()

my browser (Firefox 2.0.0.1.1) gets the ashx and tries to open it in
an eternal app.

What I am doing wrong?

Many thanks.


[jQuery] Re: What am I missing with jQuery Forms ajaxSubmit?

2008-02-06 Thread JohnC

The form being submitted does have a file being uploaded.

I've removed the ContentType from the .net code and now that works
just fine.

Can anyone explain why this behaviour occurred? It worked fine in IE -
but not FF. Normally I'd expect things the other way around!

Thanks for the advice.

John

On Feb 6, 3:55 pm, Mike Alsup [EMAIL PROTECTED] wrote:
  Mike, does the form plugin ever use hidden iFrames, perhaps in upload
  forms?

 Yes, good point, Diego. This probably would happen if there is a file being
 uploaded.  Removing the ContentType header would solve the problem.