[jQuery] jQuery $.post() over subdomains (created using mod_rewrite) NOT WORKING!

2009-12-10 Thread Pj
Hi there,
I've configured mod_rewrite rules to have pseudo sub domains for
pages.

I discovered that when i try to send a $.post() request to an absolute
path, the function() which needs to be executed after a successful
$.post, doesn't execute. In my code, it stays at "Please wait... "
stage.

After doing some tests i found out post values are not passed into the
target php script.

Also I found out sessions are not working in the target script.

Can't i use jquery's $.post() method for pseudo subdomains?
(this works perfectly in the actual page though)


Here's my code.

 function addContact(id){

   $(document).ready(function(){
$("#add-con-ok"+id).html("Please wait... ");
$.post("http://domain.com/add-contact.php";, { id: id}, 
function(){

  $("#add-con-ok"+id).html("Request Sent").animate({ opacity: "hide" }, 2000);

  });
$("#add-con-box"+id).hide();

});

}

backend:





[jQuery] connect a MySQL database to jQuery Autocomplete plugin by bassistance.de

2009-02-15 Thread Pj

Hello there,
Can anyone please advise me on how to connect a mysql database with
the  jQuery Autocomplete plugin by bassistance.de ?I do not wish to
have a js/php file with pre-defined tags.
Thanks in advance.



[jQuery] asp.net server control events in jquery

2008-10-31 Thread pj

Do asp.net server side control events like asp button click fire in
jquery? Please reply asap


[jQuery] Re: slideup/slidedown flicker

2008-01-08 Thread PJ

Hi

Anyone have a ny views on this issue? Posted it on a Friday so it
probably got overlooked at the weekend.

Thanks PJ

On Jan 4, 3:35 pm, PJ <[EMAIL PROTECTED]> wrote:
> I have seen this issue raised before but I haven't seen an answer to
> the issue yet for v1.2.1. If the answer does exist then please let me
> know and apologies for missing it - but just in case.
>
> I get a flicker when i use slideUp immediately after the element
> should disappear. This ONLY happens in IE6.
>
> The flicker also occurs just before I then use slideDown to replace
> the lement that was closed.
>
> So two flickers showing the underlying content. The process goes...
>
> div slideup -> closed div flickers -> to open div flicker -> to open
> div slides down.
>
> It works perfectly in FF1.5+. I haven't tested in any other browsers
> yet.
>
> The code:
> $("#loader")
>         .animate({opacity: 1.0}, 3000)
>         .slideUp(1500, function(){
>                         $("#loaded:hidden").slideDown(1500);}
>         );
>
> **I have tried all sorts of pauses in the code (using animate) to make
> sure enough time is allowed for the closed div to go button no
> change**
>
> The HTML:
>                 
>                         Generating 
> Documents
>                         
>                                 
>                         
>                 
>                 
>                         Heading
>                         ....
>                         Another Heading
>                         .
>                 
>
> If anyone has any ideas I would be very greatful.
>
> Thanks
>
> PJ


[jQuery] slideup/slidedown flicker

2008-01-05 Thread PJ

I have seen this issue raised before but I haven't seen an answer to
the issue yet for v1.2.1. If the answer does exist then please let me
know and apologies for missing it - but just in case.


I get a flicker when i use slideUp immediately after the element
should disappear. This ONLY happens in IE6.

The flicker also occurs just before I then use slideDown to replace
the lement that was closed.

So two flickers showing the underlying content. The process goes...

div slideup -> closed div flickers -> to open div flicker -> to open
div slides down.

It works perfectly in FF1.5+. I haven't tested in any other browsers
yet.

The code:
$("#loader")
.animate({opacity: 1.0}, 3000)
.slideUp(1500, function(){
$("#loaded:hidden").slideDown(1500);}
);

**I have tried all sorts of pauses in the code (using animate) to make
sure enough time is allowed for the closed div to go button no
change**

The HTML:

Generating Documents





Heading

Another Heading
.


If anyone has any ideas I would be very greatful.


Thanks

PJ


[jQuery] Re: cluetip: opening tips from non cluetip elements

2007-11-28 Thread PJ

Karl

I had tried that. It almost works but there were two issues:

1) The tip loads up (with positionBy: 'click' and 'mouse') at the
lowest point of the page (i.e. the last element on the page - not
anchered to bottom of page)
2) Repeating the $('#aParticularElement').trigger(click); command does
not close the open tip.


PJ


On Nov 28, 2:05 pm, Karl Swedberg <[EMAIL PROTECTED]> wrote:
> Hi PJ,
>
> Maybe you can give this a try? [using pseudo-code] ...
>
> Bind your cluetips to elements as usual:
> $('someelements').cluetip({options: values});
>
> Then, if you want to open a particularcluetip, you might be able to  
> use .trigger() :
>
> $('another-element').someEvent(function() {
> $('#aParticularElement').trigger('mouseover');
>
> });
>
> If you used the click activation option, you'd want to trigger 'click'  
> rather than 'mouseover'.
>
> Let me know how that goes.
>
> --Karl
> _
> Karl Swedbergwww.englishrules.comwww.learningjquery.com
>
> On Nov 28, 2007, at 4:30 AM, PJ wrote:
>
>
>
>
>
> > I have been playing with this some more overnight. I have some more
> > comments that make my request for support clearer...
>
> > Basically I want to be able to open/close tips whenever I want - but I
> > want to be able to open them by specifying the id of the span (as
> > detailed in code in previous post). So $(".cluetip-
> > help").fadeIn(slow); would need to specify which span I am referring
> > to. Looking at the code I am pretty sure this is not doable - as it
> > stands.
>
> > I thought initially that I wouldn't need to specify the span id as I
> > would be level with the span (the icons are located horizontally
> > adjacent to the input field) when I needed to display the message -
> > but the validation happens after the users has tabbed away to the next
> > field - so positionBy: mouse would no longer work and I would have to
> > reference the exact span I want to display.
>
> > Gr.
>
> > PJ
>
> > On Nov 27, 3:59 pm, PJ <[EMAIL PROTECTED]> wrote:
> >> [Help me Karl. You're my only hope!! Well my best chance of success  
> >> at
> >> least!]
>
> >> As I mentioned in a couple of other posts I am building an interface
> >> using thecluetipand validate plugins for jQuery. I have both  
> >> working
> >> well but I am trying to integrate them smoothly now and I have a few
> >> issues.
>
> >> I want to be able to controlcluetip"tips" without clicking on the
> >> elements used to define the tips in the first place.
>
> >> I have:
>
> >> 
> >> Name
> >> 
> >>  >> rel="#help_1" >
> >> 
>
> >> The label and input are obvious - the span is an icon showing the
> >> current state of the data entered. A tick if valid, a cross if not.
>
> >>cluetipworks great to help the user when explaining the data we
> >> require - they click the help icon and the tip tells them what to do.
> >> But I also want to useclueTipto show error messages. So the  
> >> validate
> >> plugin determines an error and then callsclueTipto display the
> >> correct "tip" ~(in the case above it would be the tip associated with
> >> help1).
>
> >> This is where I am struggling. How can I control specific "tips"
> >> without clicking on the defining elements?
>
> >> $(".cluetip-help").fadeIn(slow);
>
> >> The above would be nice - but I am having no joy with it - mainly as
> >> i'm not specifying the originating element (help1, help2,
> >> help3, .). I have had a look at your code but I've not been
> >> playing with it long enough to come up with a sensible line of  
> >> attack.
>
> >> Any help or ideas would (again) be greatly appreciated.
>
> >> Cheers
>
> >> PJ- Hide quoted text -
>
> - Show quoted text -


[jQuery] Re: cluetip: opening tips from non cluetip elements

2007-11-28 Thread PJ

I have been playing with this some more overnight. I have some more
comments that make my request for support clearer...

Basically I want to be able to open/close tips whenever I want - but I
want to be able to open them by specifying the id of the span (as
detailed in code in previous post). So $(".cluetip-
help").fadeIn(slow); would need to specify which span I am referring
to. Looking at the code I am pretty sure this is not doable - as it
stands.

I thought initially that I wouldn't need to specify the span id as I
would be level with the span (the icons are located horizontally
adjacent to the input field) when I needed to display the message -
but the validation happens after the users has tabbed away to the next
field - so positionBy: mouse would no longer work and I would have to
reference the exact span I want to display.

Gr.




PJ

On Nov 27, 3:59 pm, PJ <[EMAIL PROTECTED]> wrote:
> [Help me Karl. You're my only hope!! Well my best chance of success at
> least!]
>
> As I mentioned in a couple of other posts I am building an interface
> using the cluetip and validate plugins for jQuery. I have both working
> well but I am trying to integrate them smoothly now and I have a few
> issues.
>
> I want to be able to control cluetip "tips" without clicking on the
> elements used to define the tips in the first place.
>
> I have:
>
> 
> Name
> 
>  rel="#help_1" >
> 
>
> The label and input are obvious - the span is an icon showing the
> current state of the data entered. A tick if valid, a cross if not.
>
> cluetip works great to help the user when explaining the data we
> require - they click the help icon and the tip tells them what to do.
> But I also want to use clueTip to show error messages. So the validate
> plugin determines an error and then calls clueTip to display the
> correct "tip" ~(in the case above it would be the tip associated with
> help1).
>
> This is where I am struggling. How can I control specific "tips"
> without clicking on the defining elements?
>
> $(".cluetip-help").fadeIn(slow);
>
> The above would be nice - but I am having no joy with it - mainly as
> i'm not specifying the originating element (help1, help2,
> help3, .). I have had a look at your code but I've not been
> playing with it long enough to come up with a sensible line of attack.
>
> Any help or ideas would (again) be greatly appreciated.
>
> Cheers
>
> PJ


[jQuery] cluetip: opening tips from non cluetip elements

2007-11-27 Thread PJ

[Help me Karl. You're my only hope!! Well my best chance of success at
least!]

As I mentioned in a couple of other posts I am building an interface
using the cluetip and validate plugins for jQuery. I have both working
well but I am trying to integrate them smoothly now and I have a few
issues.

I want to be able to control cluetip "tips" without clicking on the
elements used to define the tips in the first place.

I have:


Name




The label and input are obvious - the span is an icon showing the
current state of the data entered. A tick if valid, a cross if not.

cluetip works great to help the user when explaining the data we
require - they click the help icon and the tip tells them what to do.
But I also want to use clueTip to show error messages. So the validate
plugin determines an error and then calls clueTip to display the
correct "tip" ~(in the case above it would be the tip associated with
help1).

This is where I am struggling. How can I control specific "tips"
without clicking on the defining elements?

$(".cluetip-help").fadeIn(slow);

The above would be nice - but I am having no joy with it - mainly as
i'm not specifying the originating element (help1, help2,
help3, .). I have had a look at your code but I've not been
playing with it long enough to come up with a sensible line of attack.

Any help or ideas would (again) be greatly appreciated.


Cheers



PJ


[jQuery] Re: clueTip: opening one tip closes another tip

2007-11-27 Thread PJ

Ha ha. One step ahead of you. For once!!

I saw John's post and had a play with it. Works well except for one
thing...

In my set up I have icons that show the state of an input field (a
green tick if data was valid, a red 'x' if there is an error). If you
click on an icon then the associated message pops up in a tip for an
error icon. If you have multiple errors then you can click on the
icons to see the relevant error. That was where I left you.

But the spec for the project actually requires John's idea also.
i.e.when tabbing through the form it pops up any errors.

The problem with John's code (no offence John if you're listening) is
that when you set the field to activation: 'focus' it breaks the code
if the user decides to click on the icon (which intuitively most will
do) - the tip does not pop up - instead the href behaves as a proper
link and loads the content (external HTML in this case) in the
browser.

I did start to have a play to fix this but I have been distracted with
validation issues for the last day. When I get back to it I will let
you know. If anyone beats me to the punch please let me know.



Cheers


PJ

On Nov 26, 8:40 pm, Karl Swedberg <[EMAIL PROTECTED]> wrote:
> Hi PJ,
>
> Glad you're happy with the fix. :-)
>
> Someone else (John Shapiro?) just requested adding "focus" as an  
> available value for the "activation" option and provided a patch. So,  
> I dropped it in. It seems like a reasonable thing to want to have. You  
> can grab it from the same SVN link until I get around to packaging  
> everything into a new release.
>
> http://jqueryjs.googlecode.com/svn/trunk/plugins/cluetip/
>
> Cheers,
>
> --Karl
> _
> Karl Swedbergwww.englishrules.comwww.learningjquery.com
>
> On Nov 26, 2007, at 4:05 AM, PJ wrote:
>
>
>
>
>
> > Nothing better than starting Monday morning with the solution to an
> > issue!! Many, many thanks Karl.
>
> > Works perfectly with IE6 and FF1.5. I shall do some testing later with
> > other browsers.
>
> > The changes really make the interface much more intuative. I just need
> > to add some bespoke onfocus functions for when users tab through form
> > fields and I'll be there.
>
> > Thanks again.
>
> > PJ
>
> > On Nov 23, 6:30 pm, Karl Swedberg <[EMAIL PROTECTED]> wrote:
> >> On Nov 23, 2007, at 4:43 AM, PJ wrote:
>
> >>> Phew. I thought it was just me being stupid!!
>
> >> Nope. that was me being stupid. ;-)
>
> >>> It is a great script and delivers 90% of what we are looking for -  
> >>> but
> >>> when I sent it off for testing the main feedback was that users want
> >>> to click on all the icons they can see - not open, then click the
> >>> closebutton so that they can open another tip.
>
> >> makes sense to me.
>
> >>> You have "thought out loud" exactly what we need. If you think it
> >>> might be doable in the short term please let me know. I will try to
> >>> make it work at my end and report back - but we are running close to
> >>> the deadline and I may need to change things round to appease the
> >>> powers that be.
>
> >> glad we're on the same page. definitely doable. In fact, I've just
> >> uploaded a new version to svn with the changes:
>
> >>http://jqueryjs.googlecode.com/svn/trunk/plugins/cluetip/
> >> jquery.cluet...
>
> >>> Great work by the way and thanks for the quick response.
>
> >> no problem. There is nothing that motivates me more than compliments,
> >> and yours were no exception. (In other words, flattery will get you
> >> everywhere with me.)  :-)
>
> >> Let me know if you run into any problems with the new version. I
> >> haven't had a chance to test the latest changes in IE, but I don't
> >> foresee any issues.
>
> >> Cheers,
>
> >> Karl- Hide quoted text -
>
> - Show quoted text -


[jQuery] Re: clueTip: opening one tip closes another tip

2007-11-26 Thread PJ

Nothing better than starting Monday morning with the solution to an
issue!! Many, many thanks Karl.

Works perfectly with IE6 and FF1.5. I shall do some testing later with
other browsers.

The changes really make the interface much more intuative. I just need
to add some bespoke onfocus functions for when users tab through form
fields and I'll be there.

Thanks again.



PJ


On Nov 23, 6:30 pm, Karl Swedberg <[EMAIL PROTECTED]> wrote:
> On Nov 23, 2007, at 4:43 AM, PJ wrote:
>
> > Phew. I thought it was just me being stupid!!
>
> Nope. that was me being stupid. ;-)
>
> > It is a great script and delivers 90% of what we are looking for - but
> > when I sent it off for testing the main feedback was that users want
> > to click on all the icons they can see - not open, then click the
> > closebutton so that they can open another tip.
>
> makes sense to me.
>
> > You have "thought out loud" exactly what we need. If you think it
> > might be doable in the short term please let me know. I will try to
> > make it work at my end and report back - but we are running close to
> > the deadline and I may need to change things round to appease the
> > powers that be.
>
> glad we're on the same page. definitely doable. In fact, I've just  
> uploaded a new version to svn with the changes:
>
> http://jqueryjs.googlecode.com/svn/trunk/plugins/cluetip/jquery.cluet...
>
> > Great work by the way and thanks for the quick response.
>
> no problem. There is nothing that motivates me more than compliments,  
> and yours were no exception. (In other words, flattery will get you  
> everywhere with me.)  :-)
>
> Let me know if you run into any problems with the new version. I  
> haven't had a chance to test the latest changes in IE, but I don't  
> foresee any issues.
>
> Cheers,
>
> Karl


[jQuery] Re: clueTip: opening one tip closes another tip

2007-11-23 Thread PJ

Phew. I thought it was just me being stupid!!

It is a great script and delivers 90% of what we are looking for - but
when I sent it off for testing the main feedback was that users want
to click on all the icons they can see - not open, then click the
closebutton so that they can open another tip.

You have "thought out loud" exactly what we need. If you think it
might be doable in the short term please let me know. I will try to
make it work at my end and report back - but we are running close to
the deadline and I may need to change things round to appease the
powers that be.

Great work by the way and thanks for the quick response.


PJ

On Nov 23, 2:23 am, Karl Swedberg <[EMAIL PROTECTED]> wrote:
> On Nov 22, 2007, at 8:24 AM, PJ wrote:
>
>
>
>
>
>
>
> > Hello
>
> > I'm pretty sure I am missing atrick here - but just in case...
>
> > I have the following collection of images/buttons that display a
> > sticky clueTip when clicked:
>
> > $('a.warn').cluetip({
> >activation: 'click',
> >width: 180,
> >'sticky': true,
> >cluetipClass: 'warning',
> >dropShadow: true,
> >'closePosition': 'title',
> >closeText: 'close',
> >arrows: true
> >});
>
> > Currently, with a "tip A" open, I have to close "tip A" before I open
> > another tip ("tip B") - clicking on the "tip B" launcher when "tip A"
> > is open does nothing. I would like it so that, if I have "tip A" open
> > already, then when i click to open "tip B" "tip A" closes itself.
>
> > I hope that makes sense? Can clueTip cope with this or do I need to do
> > something extra myself?
>
> > Many Thanks
>
> Hi PJ,
>
> You're not missing anything. What you've described is a limitation of  
> the plugin as it's currently implemented. I'm not sure how to go about  
> making it work the way you would like it, but I'll give it some more  
> thought. The problem is that, currently, if you have "activation:  
> click," the script tries to toggle the tooltip's visibility. When the  
> tooltip is visible, it hides it; when it's hidden, it shows it. But,  
> as you've pointed out, this becomes a problem when you click one link  
> to show a tooltip and then immediately click another. It'll try to  
> close it. Clicking again will show it with the new contents. I guess  
> what I have to do (I'm thinking out loud now) is remember the actual  
> element that gets clicked each time and then only hide the tooltip if  
> the same element is clicked the next time. If something else is  
> clicked, carry on as if the tooltip were hidden (reposition it and  
> dump in the new contents). Again, I'll have to dig through the code  
> and try to figure out how best to do this. But if anyone has a quick  
> idea, feel free to jump in. :-)
>
> --Karl
> _
> Karl Swedbergwww.englishrules.comwww.learningjquery.com- Hide quoted text -
>
> - Show quoted text -


[jQuery] clueTip: opening one tip closes another tip

2007-11-22 Thread PJ

Hello

I'm pretty sure I am missing atrick here - but just in case...

I have the following collection of images/buttons that display a
sticky clueTip when clicked:

$('a.warn').cluetip({
activation: 'click',
width: 180,
'sticky': true,
cluetipClass: 'warning',
dropShadow: true,
'closePosition': 'title',
closeText: 'close',
arrows: true
});

Currently, with a "tip A" open, I have to close "tip A" before I open
another tip ("tip B") - clicking on the "tip B" launcher when "tip A"
is open does nothing. I would like it so that, if I have "tip A" open
already, then when i click to open "tip B" "tip A" closes itself.

I hope that makes sense? Can clueTip cope with this or do I need to do
something extra myself?


Many Thanks



PJ