[jQuery] [Autocomplete] - Doesn't always work

2009-05-18 Thread MeanStudios

Greetings,

I'm currently using this awesome plugin for my web app but I'm having
a bit of an annoying bug with it.  It sometimes does not pull up any
results when typing in.  Like if I have something in the database with
the name "March" and I type in "mar" it shows the little loading.gif
but then disappears and doesn't give me any results.  If I tab away
and come back to it and try it again, then it will work.  And even
that doesn't make it work.  Sometimes I have to totally refresh the
page.  I thought it might be the cache mechanism so I turned that off
setting "cacheLength" to "1".
Any other ideas as to why it sometimes works and sometimes doesn't?


[jQuery] Re: adding $("

2009-05-18 Thread Ricardo

Script elements are not really appended. To ensure execution you have
to append them to the head of the document or eval them. jQuery does
the latter, so the element ends up not being in the DOM at all. What
are you trying to achieve? There's no point in creating a script tag
when you can just declare a function instead.

On May 18, 8:40 pm, Paul Tarjan  wrote:
> If I have a node that isn't in the DOM, and then I add a script to it,
> then it is actually executed. Example
>
> Expected behavior : s variable contains the string "alert('hi')
> ".
>
> Observed behavior : alert box pop up and s contains ""
>
> 

[jQuery] Re: Need "QuickLinks" jQuery functionality as seen on NorthPoint.org at top of page

2009-05-18 Thread Mohd.Tareq
Hi,
This is made by flash.Try it with Flash hope flash can give you same
solution.

   Or

If you wana do with jquery then you have to use carousel plugin of jquery.

see this example :
http://www.5bosses.com/examples/agile_carousel/jqueryui_example/carousel.html

creating carousel using jquery :
http://www.nightdrops.com/2009/01/creating-a-carousel-using-jquery/

After add carousel you need to add script to show its description on 'click'
event.
[ Need to check which image got click event & display description according
to that image. ]

Hope this will work for you.

Cheers ;)

On Mon, May 18, 2009 at 10:33 PM, JonDod  wrote:

>
> Does anyone know where I can grab jQuery code that will give me the
> "QuickLinks" functionality as seen on NorthPoint.org at the top of
> their web pages?  When clicked it slides the pages content down to
> display a links menu.  When mousing over the link the boxes resize to
> display a brief explanation in a box beside it telling the visitor
> what the link is for.
>
> I appreciate any help anyone can give me to find these scripts or
> point to a tutorial to make it happen.
>
> JonDod
>




Mohd.Tareque


[jQuery] Superfish broken by Community Builder

2009-05-18 Thread Albs

Hi,

Superfish works fine all all parts of my site, but in pages which
involve Community Builder, the menu no longer works (the menu becomes
transparent and disappears as soon as you move your mouse pointer to
it).

Has anyone else come across this issue, and does anybody (including
the author) know of a fix for this?

Thanks,
Albert


[jQuery] Events : click & blur

2009-05-18 Thread Mohd.Tareq
Hi All,
I am trying to add two event on one button
Events are 'click' & 'blur'
But when ever I am trying to click on button which is having two event, then
first its executing 'blur' event, logically it should execute 'click' event
first.

Is it bug of javascript? Or am I doing something wrong :(

I have tried with JQuery & plain javascript too.

Can any one suggest me what is the solution for the same.



Thanks &  Regard

Mohd.Tareque


[jQuery] Re: [Validation] Internationalization support

2009-05-18 Thread MaxMax

But all the range, min, max don't work because they use the "standard"
javascript string to number conversions that are USA only. I "patched"
the validation plugin to work in italy (but now it works only in
italy)

On 18 Mag, 22:22, Jörn Zaefferer 
wrote:
> You can write custom methods to extend the plugin with whatever
> methods you need:http://docs.jquery.com/Plugins/Validation/Validator/addMethod
>
> You should be able to use numberDE for that number format. Look at
> dateDE or any of the other date methods to see how they are
> implemented.
>
> Jörn
>
>
>
> On Mon, May 18, 2009 at 9:28 PM, MaxMax  wrote:
>
> > Does the JQuery Validation plugin supports internationalization? Here
> > in Italy for example we write 1,5 instead of 1.5 and 1.500,5 instead
> > of 1,500.5 and the dates are in another format (dd/MM/)...
>
> > Thanks
> > Massimiliano- Nascondi testo citato
>
> - Mostra testo citato -


[jQuery] Re: replace existing div with fadeIn

2009-05-18 Thread jan

does anyone know solution for this? thank you


[jQuery] Re: Event is not triggered when the removed from one table to another table

2009-05-18 Thread Karl Swedberg


On May 18, 2009, at 2:30 PM, Josh Nathanson wrote:



Events are not automatically bound to new elements added to the dom.
However if you are using jquery 1.3+ you can do this to achieve  
dynamic

binding:

$("tr").live("dblclick",function(event) {
// etc.


True, but the OP was referring to rows that were already there in the  
first place. All he has to do is append them to the "#bottomTable  
tbody" without first using .remove()


$("tr").dblclick(function(event){
$(this).appendTo("#bottomTable > tbody");
});

Works great. Less filling.

--Karl


Karl Swedberg
www.englishrules.com
www.learningjquery.com



[jQuery] Re: Best book to learn jQuery?

2009-05-18 Thread Karl Swedberg


On May 18, 2009, at 9:58 AM, Brandon Aaron wrote:



On Mon, May 18, 2009 at 8:35 AM, Karl Swedberg  
 wrote:

I've heard Learning jQuery 1.3 is a great read, too. ;-)


HAHAHA... I think you forgot your disclaimer. :p  Karl is a co-author
of Learning jQuery.

Nonetheless, Learning jQuery 1.3 would be a great choice. :)

--
Brandon Aaron


Busted! I figured he'd make the connection, but it's probably a good  
idea to add a disclaimer anyway. :)


Alex, for what it's worth, I've read through jQuery in Action, and I  
think it's a terrific book, too.




--Karl


Karl Swedberg
www.englishrules.com
www.learningjquery.com



[jQuery] Re: index() problem

2009-05-18 Thread Sasha

I bow, MorningZ.  Many thanks and much respect - SA

On May 18, 10:47 pm, MorningZ  wrote:
> The index of the object you are looking for needs to be in the
> collection of objects you select. which isn't the case of your
> selector, as you are looking for an  tag in a collection
> (that's just one item) of  tags
>
> Right from the docs (http://docs.jquery.com/Core/index)
>
> "Searches every matched element for the object and returns the index
> of the element, if found, starting with zero"
>
> so, knowing this
>
> $("#mySelect option").index($("option[value=1]"))
>
> Should give you the value you are looking for
>
> On May 18, 10:07 pm, Sasha  wrote:
>
> > Seems like this should be straightforward based on the documentation:
>
> > ...
> > 
> >         whatever
> >         other whatever
> > 
> > ...
> > 
> > $(document).ready(function(){
> >         alert($("#mySelect").index($("option[value=1]")));});
>
> > 
>
> > ought to alert "1" - right?  Instead I get "-1".
>
> > If I change "#mySelect" in the 

[jQuery] Re: index() problem

2009-05-18 Thread MorningZ

The index of the object you are looking for needs to be in the
collection of objects you select. which isn't the case of your
selector, as you are looking for an  tag in a collection
(that's just one item) of  tags

Right from the docs (http://docs.jquery.com/Core/index)

"Searches every matched element for the object and returns the index
of the element, if found, starting with zero"

so, knowing this

$("#mySelect option").index($("option[value=1]"))

Should give you the value you are looking for




On May 18, 10:07 pm, Sasha  wrote:
> Seems like this should be straightforward based on the documentation:
>
> ...
> 
>         whatever
>         other whatever
> 
> ...
> 
> $(document).ready(function(){
>         alert($("#mySelect").index($("option[value=1]")));});
>
> 
>
> ought to alert "1" - right?  Instead I get "-1".
>
> If I change "#mySelect" in the 

[jQuery] index() problem

2009-05-18 Thread Sasha

Seems like this should be straightforward based on the documentation:

...

whatever
other whatever

...

$(document).ready(function(){
alert($("#mySelect").index($("option[value=1]")));
});


ought to alert "1" - right?  Instead I get "-1".

If I change "#mySelect" in the 

[jQuery] adding $("

2009-05-18 Thread Paul Tarjan

If I have a node that isn't in the DOM, and then I add a script to it,
then it is actually executed. Example

Expected behavior : s variable contains the string "alert('hi')
".

Observed behavior : alert box pop up and s contains ""


[jQuery] Re: Web dev problem face to face with JAVA J2EE Dev's

2009-05-18 Thread Steven Yang
Well the 2 major ways to communicate between server and client are XML and
JSON I guess, besides HTML of course.I believe any "hardcore" java developer
is familiar with XML. So if you are willing to deal with XML you can ask
them to format their "input"(for you, or output for them) in decided XML
format.
Or you can ask them to read something about JSON and format to that and send
as plain text to you.


[jQuery] Re: :contains selector error/bug in IE

2009-05-18 Thread Spiderhawk

I found a bug listed on the jQuery site that contained a patch and I
applied the patch to my copy of jQuery 1.3.2

Bug is listed here:
http://dev.jquery.com/ticket/1612

Patch was listed here:
http://dev.jquery.com/changeset/3300

And here is what I did to the minimized version I downloaded.

Change this text:
else{if(U==="contains"){return(Z.textContent||Z.innerText||"").indexOf
(V[3])>=0}

To this:
else{if(U==="contains"){return(Z.textContent||Z.innerText||jQuery
(Z).text()||"").indexOf(V[3])>=0}

On May 15, 9:06 am, Spiderhawk  wrote:
> I am loading an XML doc with the jQuery ajax call and then trying to
> search it using this statement.
>
> var myRow = $(myXML).find('Cell:contains(0100)')
>
> This works just fine in FireFox and Chrome but I get 0 results in IE
>
> Can someone suggest an alternate way to accomplish this same search
> that works in IE?
>
> Thank you,
> Art
>
> Details
> ---
> WinXP
> IE7
> jQuery 1.3.2


[jQuery] Re: Calling ASMX from JQuery

2009-05-18 Thread Jeffrey Kretz
Correct.

 

Try visiting your asmx page in a browser.

 

http: //localhost/BoATransformation/Survey.asmx?op=GetSurvey

 

You will be shown the exact format needed to make your request.

 

JK

 

 

From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On
Behalf Of Joseph Le Brech
Sent: Monday, May 18, 2009 1:47 PM
To: jquery-en@googlegroups.com
Subject: [jQuery] Re: Calling ASMX from JQuery

 

doesn't asmx wrap the json in a soap object?

> Date: Mon, 18 May 2009 12:51:05 -0700
> Subject: [jQuery] Re: Calling ASMX from JQuery
> From: brakes...@gmail.com
> To: jquery-en@googlegroups.com
> 
> 
> Check in Firebug if the service returns data or a 501 error. Its
> under CONSOLE. You should allow it to "Show XMLHTTPRequests"
> 
> Also,
> 
> 1. The URL part seems to have an extra space after HTTP.. or maybe
> its just a typo:
> url: "http: //localhost/BoATransformation/Survey.asmx/
> GetSurvey"
> 
> 2. Or try removing "http://localhost totally
> 
> 
> 
> 
> On May 18, 3:30 pm, ebeworld  wrote:
> > Hi,
> >
> > I am trying to call ASMX method from JQuery without success. Following
> > is my code  and don't understand what i am missing.
> >
> > Thanks,
> > Ebe
> >
> > ///Something.js
> > function setQuestion() {
> > $.ajax({
> > type: "POST",
> > data: "{}",
> > dataType: "json",
> > url: "http: //localhost/BoATransformation/Survey.asmx/
> > GetSurvey",
> > contentType: "application/json; charset=utf-8",
> > success: onSuccess
> > });
> >
> > }
> >
> > function onSuccess(msg) {
> > $("#questionCxt").append(msg);
> >
> > }
> >
> > ///SomethingElse.cs
> >
> > [WebService(Namespace = "http://tempuri.org/";)]
> > [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
> > [System.Web.Script.Services.ScriptService]
> > public class Survey : System.Web.Services.WebService {
> >
> > public Survey () {
> >
> > }
> >
> > [WebMethod]
> > [ScriptMethod(UseHttpGet = true)]
> > public string GetSurvey() {
> > return "Question: Who is Snoopy?";
> > }
> >
> > }

  _  

" Upgrade to Internet Explorer 8 Optimised for MSN. " Download Now
 



[jQuery] Re: Best book to learn jQuery?

2009-05-18 Thread bittermonkey

Best book for me were jQuery In Action and Learning jQuery.

On May 18, 3:37 pm, alex  wrote:
> Ah. I'm sure this sounds dunce-y because 'jQuery does it for me', but
> is a solid grounding in Javascript necessary to a solid grounding in
> jQuery (or at least, being able to use jQuery), or just good
> practice?
>
> I would guess, as a complete novice, that just using what is already
> available may not require pure JS knowledge, but more advanced things
> like building plugins would? I assume then that 'Learning jQuery'
> would not be the first port of call for me?
>
> On May 18, 2:55 pm, mdk  wrote:
>
> > Yes, but because he has no JS he will like have a tough time.  I would
> > read a basic JS book first, then go for Learning jQuery 1.3.
>
> > Mike
>
> > On May 18, 8:35 am, Karl Swedberg  wrote:
>
> > > I've heard Learning jQuery 1.3 is a great read, too. ;-)
>
> > > --Karl
>
> > > 
> > > Karl Swedbergwww.englishrules.comwww.learningjquery.com
>
> > > On May 18, 2009, at 9:07 AM, MorningZ wrote:
>
> > > > I always recommend "jQuery in Action" it's a great read
>
> > > > On May 18, 3:19 am, alex  wrote:
> > > >> Just wondering what your opinions are on the best book out there, for
> > > >> a beginner, to learn jQuery? I know HTML and CSS well enough, but  
> > > >> have
> > > >> no javascript knowledge.
>
> > > >> Thanks


[jQuery] Re: Best book to learn jQuery?

2009-05-18 Thread Josh Powell

You can learn javascript as you learn jQuery. In fact, I would say it
is much, much easier to learn jQuery then do a deep dive into learning
javascript.  And learning javascript extremely well isn't actually a
requirement for getting started in web application development any
longer because of libraries like jQuery.  It makes things easier if
you know javascript, helps with debugging, and if you have a more
complicated app it becomes necessary.  But if just starting out,
learning jQuery first is a valid starting point, then in order to
learn more start diving into how jQuery abstracts browser issues away
and how it works to do things like selectors/inserting/events/ajax.

for example,

$('td .class').hide();

is much easier to learn then:

var allElements = document.getElementByTagName('*');
var arr = [];

for (var a = 0; a < allElements.length; a++) {
  if (allElements[a].className === 'class') {
allElements[a].setAttribute('display', 'none');
  }
}

Not to mention any cross browser issues that are created in rolling
your own way to do this.

Learning jQuery 1.3 is an excellent book for getting started in
jQuery, especially since it is up to date with the latest version of
jQuery.  But, I might be biased since I've written a couple of
articles for Karls site :)

Eventually, you'l want to get Douglas Crockfords excellent book,
Javascript: The Good Parts as well.  It isn't really a javascript
primer but there is lots of good stuff in there.
You can also start readign at: http://javascript.crockford.com/

Josh Powell



On May 18, 12:37 pm, alex  wrote:
> Ah. I'm sure this sounds dunce-y because 'jQuery does it for me', but
> is a solid grounding in Javascript necessary to a solid grounding in
> jQuery (or at least, being able to use jQuery), or just good
> practice?
>
> I would guess, as a complete novice, that just using what is already
> available may not require pure JS knowledge, but more advanced things
> like building plugins would? I assume then that 'Learning jQuery'
> would not be the first port of call for me?
>
> On May 18, 2:55 pm, mdk  wrote:
>
> > Yes, but because he has no JS he will like have a tough time.  I would
> > read a basic JS book first, then go for Learning jQuery 1.3.
>
> > Mike
>
> > On May 18, 8:35 am, Karl Swedberg  wrote:
>
> > > I've heard Learning jQuery 1.3 is a great read, too. ;-)
>
> > > --Karl
>
> > > 
> > > Karl Swedbergwww.englishrules.comwww.learningjquery.com
>
> > > On May 18, 2009, at 9:07 AM, MorningZ wrote:
>
> > > > I always recommend "jQuery in Action" it's a great read
>
> > > > On May 18, 3:19 am, alex  wrote:
> > > >> Just wondering what your opinions are on the best book out there, for
> > > >> a beginner, to learn jQuery? I know HTML and CSS well enough, but  
> > > >> have
> > > >> no javascript knowledge.
>
> > > >> Thanks


[jQuery] Re: Calling ASMX from JQuery

2009-05-18 Thread Joseph Le Brech

doesn't asmx wrap the json in a soap object?

> Date: Mon, 18 May 2009 12:51:05 -0700
> Subject: [jQuery] Re: Calling ASMX from JQuery
> From: brakes...@gmail.com
> To: jquery-en@googlegroups.com
> 
> 
> Check in Firebug if the service returns data or a 501 error.  Its
> under CONSOLE.  You should allow it to "Show XMLHTTPRequests"
> 
> Also,
> 
> 1.  The URL part seems to have an extra space after HTTP.. or maybe
> its just a typo:
> url: "http: //localhost/BoATransformation/Survey.asmx/
> GetSurvey"
> 
> 2.  Or try removing "http://localhost totally
> 
> 
> 
> 
> On May 18, 3:30 pm, ebeworld  wrote:
> > Hi,
> >
> > I am trying to call ASMX method from JQuery without success. Following
> > is my code  and don't understand what i am missing.
> >
> > Thanks,
> > Ebe
> >
> > ///Something.js
> > function setQuestion() {
> > $.ajax({
> > type: "POST",
> > data: "{}",
> > dataType: "json",
> > url: "http: //localhost/BoATransformation/Survey.asmx/
> > GetSurvey",
> > contentType: "application/json; charset=utf-8",
> > success: onSuccess
> > });
> >
> > }
> >
> > function onSuccess(msg) {
> > $("#questionCxt").append(msg);
> >
> > }
> >
> > ///SomethingElse.cs
> >
> > [WebService(Namespace = "http://tempuri.org/";)]
> > [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
> > [System.Web.Script.Services.ScriptService]
> > public class Survey : System.Web.Services.WebService {
> >
> > public Survey () {
> >
> > }
> >
> > [WebMethod]
> > [ScriptMethod(UseHttpGet = true)]
> > public string GetSurvey() {
> > return "Question: Who is Snoopy?";
> > }
> >
> > }

_
Share your photos with Windows Live Photos – Free.
http://clk.atdmt.com/UKM/go/134665338/direct/01/

[jQuery] Re: [Validation] Internationalization support

2009-05-18 Thread Jörn Zaefferer

You can write custom methods to extend the plugin with whatever
methods you need:
http://docs.jquery.com/Plugins/Validation/Validator/addMethod

You should be able to use numberDE for that number format. Look at
dateDE or any of the other date methods to see how they are
implemented.

Jörn

On Mon, May 18, 2009 at 9:28 PM, MaxMax  wrote:
>
> Does the JQuery Validation plugin supports internationalization? Here
> in Italy for example we write 1,5 instead of 1.5 and 1.500,5 instead
> of 1,500.5 and the dates are in another format (dd/MM/)...
>
> Thanks
> Massimiliano
>


[jQuery] Re: Calling ASMX from JQuery

2009-05-18 Thread bittermonkey

Check in Firebug if the service returns data or a 501 error.  Its
under CONSOLE.  You should allow it to "Show XMLHTTPRequests"

Also,

1.  The URL part seems to have an extra space after HTTP.. or maybe
its just a typo:
url: "http: //localhost/BoATransformation/Survey.asmx/
GetSurvey"

2.  Or try removing "http://localhost totally




On May 18, 3:30 pm, ebeworld  wrote:
> Hi,
>
> I am trying to call ASMX method from JQuery without success. Following
> is my code  and don't understand what i am missing.
>
> Thanks,
> Ebe
>
> ///Something.js
> function setQuestion() {
>     $.ajax({
>         type: "POST",
>         data: "{}",
>         dataType: "json",
>         url: "http: //localhost/BoATransformation/Survey.asmx/
> GetSurvey",
>         contentType: "application/json; charset=utf-8",
>         success: onSuccess
>     });
>
> }
>
> function onSuccess(msg) {
>     $("#questionCxt").append(msg);
>
> }
>
> ///SomethingElse.cs
>
> [WebService(Namespace = "http://tempuri.org/";)]
> [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
> [System.Web.Script.Services.ScriptService]
> public class Survey : System.Web.Services.WebService {
>
>     public Survey () {
>
>     }
>
>     [WebMethod]
>     [ScriptMethod(UseHttpGet = true)]
>     public string GetSurvey() {
>         return "Question: Who is Snoopy?";
>     }
>
> }


[jQuery] Re: Best book to learn jQuery?

2009-05-18 Thread alex

Ah. I'm sure this sounds dunce-y because 'jQuery does it for me', but
is a solid grounding in Javascript necessary to a solid grounding in
jQuery (or at least, being able to use jQuery), or just good
practice?

I would guess, as a complete novice, that just using what is already
available may not require pure JS knowledge, but more advanced things
like building plugins would? I assume then that 'Learning jQuery'
would not be the first port of call for me?

On May 18, 2:55 pm, mdk  wrote:
> Yes, but because he has no JS he will like have a tough time.  I would
> read a basic JS book first, then go for Learning jQuery 1.3.
>
> Mike
>
> On May 18, 8:35 am, Karl Swedberg  wrote:
>
>
>
> > I've heard Learning jQuery 1.3 is a great read, too. ;-)
>
> > --Karl
>
> > 
> > Karl Swedbergwww.englishrules.comwww.learningjquery.com
>
> > On May 18, 2009, at 9:07 AM, MorningZ wrote:
>
> > > I always recommend "jQuery in Action" it's a great read
>
> > > On May 18, 3:19 am, alex  wrote:
> > >> Just wondering what your opinions are on the best book out there, for
> > >> a beginner, to learn jQuery? I know HTML and CSS well enough, but  
> > >> have
> > >> no javascript knowledge.
>
> > >> Thanks


[jQuery] Re: [validate] can I fool the validator into letting me submit the form?

2009-05-18 Thread Sasha

Hi Jörn - One example is this:  I've got a form on a page, and when
the contents are valid they can be added to a dynamically-generated
table via a button at the bottom of the page, which also blanks out
the form.  Then the user can click through to the next page with a
"Next" button below that.  As long as either 1) the form's contents
are valid or 2) there is at least one row in the table, I want the
"Next" button to be enabled and allow the user to continue.
(Actually, it'd be nice to specify for #2 "there's at least one row in
the table AND the form is blank," but I'd settle for the above for
now.)

My thought was to set a flag when I added a row to the table that
would simply tell the validator that the form was valid, no matter
what it thought it saw, then remove the flag if the user deletes all
the rows in the table.  Is this possible?

On May 18, 2:54 pm, Jörn Zaefferer 
wrote:
> Could you give a more specific example how you would use that?
>
> Jörn
>
> On Mon, May 18, 2009 at 7:25 PM, Sasha  wrote:
>
> > Hi everyone - I've used and loved the form validation plugin developed
> > by Jörn Zaefferer, and I've run into several cases in which I would
> > like to be able to essentially say, "if these conditions are met, the
> > form's valid, period," without actually checking through valid(),
> > element() or any other means.
>
> > Is there a method I can call that just forces the validator element to
> > think it's valid, without actually validating the form?
>
> > Thanks much in advance!


[jQuery] [Validation] Internationalization support

2009-05-18 Thread MaxMax

Does the JQuery Validation plugin supports internationalization? Here
in Italy for example we write 1,5 instead of 1.5 and 1.500,5 instead
of 1,500.5 and the dates are in another format (dd/MM/)...

Thanks
Massimiliano


[jQuery] Calling ASMX from JQuery

2009-05-18 Thread ebeworld

Hi,

I am trying to call ASMX method from JQuery without success. Following
is my code  and don't understand what i am missing.

Thanks,
Ebe


///Something.js
function setQuestion() {
$.ajax({
type: "POST",
data: "{}",
dataType: "json",
url: "http: //localhost/BoATransformation/Survey.asmx/
GetSurvey",
contentType: "application/json; charset=utf-8",
success: onSuccess
});
}

function onSuccess(msg) {
$("#questionCxt").append(msg);
}


///SomethingElse.cs

[WebService(Namespace = "http://tempuri.org/";)]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
[System.Web.Script.Services.ScriptService]
public class Survey : System.Web.Services.WebService {

public Survey () {

}

[WebMethod]
[ScriptMethod(UseHttpGet = true)]
public string GetSurvey() {
return "Question: Who is Snoopy?";
}

}


[jQuery] Slide to Unlock - doesn't work with latest jQuery and UI

2009-05-18 Thread Build Interactive

Why would this script not work with jQuery 1.3.2 and UI 1.7.1? Is it
because the slide-to-unlock script is not compatible or because of new
limitations of the UI?

http://www.marcofolio.net/webdesign/the_iphone_unlock_screen_in_xhtml_css_and_jquery.html


[jQuery] Re: [validate] blur

2009-05-18 Thread Jörn Zaefferer

Try this:

$("...").validate({
  onfocusout: function(element) {
this.element(element);
  }
});

Not really intended to be used that way, but may solve your problem.

Jörn

On Mon, May 18, 2009 at 7:28 PM, Ravi  wrote:
>
> Hello,
>
> I really liked the JQuery validate plugin. I am trying to use the
> plugin for one of my projects. I want the validate to work on blur as
> soon I move our from required field without entering any data. I know
> this something which should be very simple, I've been searching for
> this and I did find something which said 'event:'blur' I tried this
> and didn't work. It will be great if anyone can divert me to a example
> which uses Validate function on Blur.
>
> Many Thanks
>


[jQuery] Re: [validate] can I fool the validator into letting me submit the form?

2009-05-18 Thread Jörn Zaefferer

Could you give a more specific example how you would use that?

Jörn

On Mon, May 18, 2009 at 7:25 PM, Sasha  wrote:
>
> Hi everyone - I've used and loved the form validation plugin developed
> by Jörn Zaefferer, and I've run into several cases in which I would
> like to be able to essentially say, "if these conditions are met, the
> form's valid, period," without actually checking through valid(),
> element() or any other means.
>
> Is there a method I can call that just forces the validator element to
> think it's valid, without actually validating the form?
>
> Thanks much in advance!
>


[jQuery] Re: scrollTop on jQuery object

2009-05-18 Thread Brandon Aaron

There are two ways to get the DOM element out of the jQuery object.
Assuming $msgs from your code example, you could get the first message
as a DOM element like this:

var msg = $msgs.get(0);
// or
var msg = $msgs[0];
// then get scrollHeight
msg.scrollHeight

--
Brandon Aaron

On Mon, May 18, 2009 at 12:36 PM, Arrviasto  wrote:
>
> Hi!
> I have to use scrollTop and scrollHeight properties, but on jQuery
> object it returns `undefined`. Is there any method to get this
> property from jq object?
>
> It doesn't matter, but my object looks like this:
>
> var $win = $(this) // div on my page
> var $msgs = $win.find('.msgs');
>
>
> $msgs.scrollHeight returns 'undefined'
>
> Thanks,
> Arrviasto (Poland)
>


[jQuery] Re: Validate

2009-05-18 Thread James

How about:

$("#myform").validate({
  rules: {
end_value: {
  required: true,
  min: function() {
   return $("#start_value").val();
  }
}
  }

On May 18, 8:37 am, Oscar  wrote:
> Hi
> I like the validate plugin, but it only works with values defined on
> load, not dynamic values. I'd like to be able to compare field values.
> For example, if I got 2 fields: #start_value and #end_value and I want
> to check the end_value is bigger than start_value, should be something
> like this:
>
> $("#myform").validate({
>   rules: {
>     end_value: {
>       required: true,
>       min: '#start_value'
>     }
>   }
>
> });


[jQuery] Validate

2009-05-18 Thread Oscar

Hi
I like the validate plugin, but it only works with values defined on
load, not dynamic values. I'd like to be able to compare field values.
For example, if I got 2 fields: #start_value and #end_value and I want
to check the end_value is bigger than start_value, should be something
like this:

$("#myform").validate({
  rules: {
end_value: {
  required: true,
  min: '#start_value'
}
  }
});


[jQuery] Re: Event is not triggered when the removed from one table to another table

2009-05-18 Thread Josh Nathanson

Events are not automatically bound to new elements added to the dom.
However if you are using jquery 1.3+ you can do this to achieve dynamic
binding:

$("tr").live("dblclick",function(event) {
// etc.

-- Josh

-Original Message-
From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On
Behalf Of naresh
Sent: Monday, May 18, 2009 11:05 AM
To: jQuery (English)
Subject: [jQuery] Event is not triggered when the  removed from one
table to another table


Hi I have a query(JQuery) here. can you plz help me in fixing the
issue with this code.

That is when I click on  of first table that should get removed
from first table and added to second table. It is happening fine and
good. But when I double click on the  that is added to second
table no event is triggered. Why?

$("tr").dblclick(function(event){
var row = $(this).html();
$(this).remove();
$("#bottomTable").append(""+row+"");
});

do I need to call any method?



[jQuery] Re: Event is not triggered when the removed from one table to another table

2009-05-18 Thread Karl Swedberg



On May 18, 2009, at 2:04 PM, naresh wrote:



Hi I have a query(JQuery) here. can you plz help me in fixing the
issue with this code.

That is when I click on  of first table that should get removed
from first table and added to second table. It is happening fine and
good. But when I double click on the  that is added to second
table no event is triggered. Why?

$("tr").dblclick(function(event){
var row = $(this).html();
$(this).remove();
$("#bottomTable").append(""+row+"");
});

do I need to call any method?


It looks like you're doing more than you need to. When you  
use .remove(), jQuery removes all event and data bindings from the  
element(s) as well. But you don't even need to remove the row.

Make sure you have a tbody in your table, then do this instead:

$("tr").dblclick(function(event){
$(this).appendTo("#bottomTable > tbody");
});



--Karl


Karl Swedberg
www.englishrules.com
www.learningjquery.com



[jQuery] Re: Event is not triggered when the removed from one table to another table

2009-05-18 Thread James

Any future elements added to the DOM will not automatically inherit
events that are set on the page.
Try using the live() function to set your dblclick:

$("tr").live("dblclick", function(event) {...});

More info on it here: http://docs.jquery.com/Events/live#typefn

On May 18, 8:04 am, naresh  wrote:
> Hi I have a query(JQuery) here. can you plz help me in fixing the
> issue with this code.
>
> That is when I click on  of first table that should get removed
> from first table and added to second table. It is happening fine and
> good. But when I double click on the  that is added to second
> table no event is triggered. Why?
>
> $("tr").dblclick(function(event){
>                 var row = $(this).html();
>                 $(this).remove();
>                 $("#bottomTable").append(""+row+"");
>
> });
>
> do I need to call any method?


[jQuery] jqModal - Deactivate a register trigger

2009-05-18 Thread Leandro Tuttini

hi,

It is possible to deactivates trigger registered ?

I am using :

$('#data-info-div').jqm({
trigger: false,
modal: true,
overlay: 50
});

$("#data-info-div").jqmAddTrigger("a.data-info-trigger");



but I cann´t find the opposed function to jqmAddTrigger()

Dimanically I need to assign a trigger to a link, but depending the
logic I need to remove this assignation.
Is possible ?


greetings


[jQuery] [validate] blur

2009-05-18 Thread Ravi

Hello,

I really liked the JQuery validate plugin. I am trying to use the
plugin for one of my projects. I want the validate to work on blur as
soon I move our from required field without entering any data. I know
this something which should be very simple, I've been searching for
this and I did find something which said 'event:'blur' I tried this
and didn't work. It will be great if anyone can divert me to a example
which uses Validate function on Blur.

Many Thanks


[jQuery] jQuery cool down timer to simulate a World of Warcraft style action button icon.

2009-05-18 Thread d3a1i0

Does anyone know of a plugin to simulate a World of Warcraft style
action button icon's cool down timer?  If no plugin can someone point
me in the right direction on to accomplish this?  I am very new to
jQuery and JavaScript, but I am familiar with general programming.

For those who are not familiar with WOW the action bars are the icons
along the bottom of the screen that you can activate to use different
abilities.  When one is activated it kind of "grays-out" the button
with an translucent overlay and it starts completely filled with this
overlay and as a timer ticks down it clears the overlay in the way a
analog clock ticks off seconds.  Maybe not the best description, but
it's the best way I can describe it.


[jQuery] Event is not triggered when the removed from one table to another table

2009-05-18 Thread naresh

Hi I have a query(JQuery) here. can you plz help me in fixing the
issue with this code.

That is when I click on  of first table that should get removed
from first table and added to second table. It is happening fine and
good. But when I double click on the  that is added to second
table no event is triggered. Why?

$("tr").dblclick(function(event){
var row = $(this).html();
$(this).remove();
$("#bottomTable").append(""+row+"");
});

do I need to call any method?


[jQuery] BlockUI "dialog" unblocking from iFrame

2009-05-18 Thread Khimaira

Hi. I downloaded the BlockUI plugin today. I'm having this problem
with unblocking from iFrame.
I'm making a register page using jquery and ajax, and inform the user
if the data given is valid without reloading the page.

ok so everything's right, except that after i've blocked the screen
after the form is submitted, i cannot unblock it manually (with a
button). it works well with the setTimeout -function, but i don't want
to try to read 5 lines of text in 2-3 seconds. Nor do i want to make
the user to wait 10 seconds before the thing unblocks itself.

this is what i'm having:

var okstyle = 'Success!A
Confirmation E-mail has been sent to your E-mail Address.Please
check both your inbox and junkmail
Proceed';
var errorstyle = ' Back';

$("#submit").click(function() {
parent.$.blockUI({ message: 'Just a 
moment...' });
$.post("./registerck.php", {
email: $("#email").val(),
pass: $("#pass").val(),
cpass: $("#cpass").val(),
question: $(question).val(),
answer: $("#answer").val(),
bdate: $("#date").val(),
bmonth: $("#month").val(),
byear: $("#year").val() }, 
function(data) {
if(data == "Success!") {

parent.$.blockUI({ message: ''+okstyle+'' });

$("#okback").click(function() {

parent.$.unblockUI();
});
}
else {

parent.$.blockUI({ message: ''+data+''+errorstyle });

$("#errorback").click(function() {

parent.$.unblockUI();
});
$("#errorback", 
top.window).click(function() {

parent.$.unblockUI();
});
}
});
});

and yes there is some php too, but i'm positive it's not causing the
problem.


[jQuery] Re: Events - Live -v- Livequery

2009-05-18 Thread Nick Jones

Unsubscribe


[jQuery] finer positioning of the jquery overlay 1.0.1

2009-05-18 Thread estrand

I've been trying to figure out how to get the overlay shown here...

http://flowplayer.org/tools/demos/overlay/index.html  (demo 1 is fine)

...to be positioned relative to the button (0,0) buttons upper left
corner and not centered to the browser window. The concept is that
there will be a table of multiple rows and a control icon on the far
left end of each row - when the user clicks the control icon an
overlay box with settings for changing row data will appear on top of
the table and aligned to the icon (row).

thoughts?

Thanks


[jQuery] EasySlider 1.5: Tabbing through forms

2009-05-18 Thread Francis "Pat" Patterson

I'm developing a form using the jQuery plugin EasySlider 1.5:

http://cssglobe.com/post/4004/easy-slider-15-the-easiest-jquery-plugin-for-sliding

I want to add the ability to initiate the slider action when a user
tabs to a field located off-screen, as in this example:

http://www.fordpas.org/registration/teachers_coordinators/form_v2.asp

So, when someone tabs through that first form area, and gets to
"Repeat Email", when they tab to the next field, it triggers the
EasySlider much like the "Next >>" span tag.

Any suggestions?  It has to be possible, but I haven't come up with a
solution yet.

Help me Obi-Wan, you're my only hope.


[jQuery] Need "QuickLinks" jQuery functionality as seen on NorthPoint.org at top of page

2009-05-18 Thread JonDod

Does anyone know where I can grab jQuery code that will give me the
"QuickLinks" functionality as seen on NorthPoint.org at the top of
their web pages?  When clicked it slides the pages content down to
display a links menu.  When mousing over the link the boxes resize to
display a brief explanation in a box beside it telling the visitor
what the link is for.

I appreciate any help anyone can give me to find these scripts or
point to a tutorial to make it happen.

JonDod


[jQuery] Ajax history/back button - with a twist

2009-05-18 Thread Sven Dahlstrand

Hi folks,

I have the classic ajax history/back button problem - with a
twist. :-) I'm developing a simple order form using Rails and jQuery.

On the top of the page there's a cart and right below it a search form
for products. When the user start to type in the search box results
are presented on the fly using ajax. When the user clicks on the item
he/she wants it's added to the shopping cart with ajax.

Now to my problem(s). If the user, after leaving the page, hits the
back button he/she is presented with an empty cart - because I updated
it with ajax before. Of course a browser refresh reveals the cart -
because there's a new request to the web server which renders it.
Thats the first problem, the second one regards the product search. If
the user performed a search before leaving the page the search results
are gone - because they where displayed with the help of ajax.

>From my Google searches I have found these plugins:

* History/Remote
* jquery.history.js
* jQuery Address

Maybe one of these solves the search problem? (if I add the search
query as a hash to the url). But it doesn't solve the empty cart
problem. My gut feeling tells me that these plugins are more for
history when you have ajax style navigation - thats not really my
case. Please correct me if I'm wrong. :-)

What would be your approach in this situation? Thanks in advance.

Cheers
Sven Dahlstrand


[jQuery] scrollTop on jQuery object

2009-05-18 Thread Arrviasto

Hi!
I have to use scrollTop and scrollHeight properties, but on jQuery
object it returns `undefined`. Is there any method to get this
property from jq object?

It doesn't matter, but my object looks like this:

var $win = $(this) // div on my page
var $msgs = $win.find('.msgs');


$msgs.scrollHeight returns 'undefined'

Thanks,
Arrviasto (Poland)


[jQuery] BlockUI "dialog" unblocking from iFrame

2009-05-18 Thread Khimaira

Hi. I downloaded the BlockUI plugin today. I'm having this problem
with unblocking from iFrame.
I'm making a register page using jquery and ajax, and inform the user
if the data given is valid without reloading the page.

ok so everything's right, except that after i've blocked the screen
after the form is submitted, i cannot unblock it manually (with a
button). it works well with the setTimeout -function, but i don't want
to try to read 5 lines of text in 2-3 seconds. Nor do i want to make
the user to wait 10 seconds before the thing unblocks itself.

this is what i'm having:

var okstyle = 'Success!A
Confirmation E-mail has been sent to your E-mail Address.Please
check both your inbox and junkmail
Proceed';
var errorstyle = ' Back';

$("#submit").click(function() {
parent.$.blockUI({ message: 'Just a 
moment...' });
$.post("./registerck.php", {
email: $("#email").val(),
pass: $("#pass").val(),
cpass: $("#cpass").val(),
question: $(question).val(),
answer: $("#answer").val(),
bdate: $("#date").val(),
bmonth: $("#month").val(),
byear: $("#year").val() }, 
function(data) {
if(data == "Success!") {

parent.$.blockUI({ message: ''+okstyle+'' });

$("#okback").click(function() {

parent.$.unblockUI();
});
}
else {

parent.$.blockUI({ message: ''+data+''+errorstyle });

$("#errorback").click(function() {

parent.$.unblockUI();
});
$("#errorback", 
top.window).click(function() {

parent.$.unblockUI();
});
}
});
});

and yes there is some php too, but i'm positive it's not causing the
problem.


[jQuery] [validate] can I fool the validator into letting me submit the form?

2009-05-18 Thread Sasha

Hi everyone - I've used and loved the form validation plugin developed
by Jörn Zaefferer, and I've run into several cases in which I would
like to be able to essentially say, "if these conditions are met, the
form's valid, period," without actually checking through valid(),
element() or any other means.

Is there a method I can call that just forces the validator element to
think it's valid, without actually validating the form?

Thanks much in advance!


[jQuery] Re: jquery: display external page inside popups (mail goggles)

2009-05-18 Thread Liam Byrne


$("#content").load("newfile.php") ?

rayche...@gmail.com wrote:

Back again,
I mean most method consist of hidding inside a 
inside the same page.
Then the popup will display the what's inside the 
Is there a way to display from an external html or php file.
Tks

 Raymond



No virus found in this incoming message.
Checked by AVG - www.avg.com 
Version: 8.5.339 / Virus Database: 270.12.33/2120 - Release Date: 05/18/09 06:28:00


  




[jQuery] Re: I'll Donate $20USD to Jquery if you can teach me how to do this

2009-05-18 Thread KrushRadio - Doc

I'll have to check that out... seeing i can eventually craft the data
however i want to when it comes out..

But note to self and completly off conversation... Based on that
example, I could use jquery to parse LUA that comes from World Of
Warcraft   The dataformat is very very similar.

On May 18, 9:33 am, "CarComplaints.com"  wrote:
> I'll second the JSON suggestion. Assuming from your XML code example
> that you're only ever going to have day/show nodes, here's the JSON:
>
> {
>   'Monday' : [
>     { time : "0800-1000", dj : "mc funk", name : "nonstop music" },
>     { time : "1000-1200", dj : "mc rap", name : "nonstop music" }
>   ],
>   'Tuesday' : [
>     { time : "0800-1000", dj : "mc stoner", name : "nonstop music" },
>     { time : "1000-1200", dj : "mc ambient", name : "nonstop music" }
>   ]
>
> }
>
> The Javascript code looks like
> $(function() {
>   $.ajax({
>     url:'test.php',
>     dataType:'json',
>     success:function(schedule) {
>       for (var day in schedule) {
>         $('body').append('' + day + '');
>         for (var i = 0; i < schedule[day].length; i++) {
>           var s = schedule[day][i];
>           $('body').append('' + s.time + '' + s.dj + ''
> + s.name + '');
>         }
>       }
>     },
>     error:function(r,t,e) { alert(t); }
>   });
>
> });
>
> Hope that helps .. JSON is about as lightweight as it gets.
>
> -Wickhttp://www.CarComplaints.com
>
> On May 18, 3:21 am, Josh Powell  wrote:
>
>
>
> > If you aren't forced to use XML, look at trying JSON instead.  It is a
> > MUCH friendlier format for passing information around.- Hide quoted text -
>
> - Show quoted text -


[jQuery] Re: jquery: display external page inside popups (mail goggles)

2009-05-18 Thread geronimo3

Use an iframe for that

instead of
 
use:




On May 18, 6:04 pm, "rayche...@gmail.com"  wrote:
> Back again,
> I mean most method consist of hidding inside a 
> inside the same page.
> Then the popup will display the what's inside the 
> Is there a way to display from an external html or php file.
> Tks
>
>  Raymond


[jQuery] jQuery Workshop - We Want Your Input!

2009-05-18 Thread Justin Kozuch

Hi Everyone

Apologies for the intrusion, but I'm looking for your input on
something.

We're looking for input on a jQuery Workshop - let us know what's on
your mind! Please fill out our poll at
http://spreadsheets.google.com/viewform?formkey=cnN3VWxKcjNOYkZzX1lCNjgwZ29kNVE6MA
when you have a moment (poll should take you only 15 seconds to
complete).

Thank you for your input!

Sincerely,

Justin Kozuch
Founder, Refresh Events
w: www.refresh-events.ca
e: jus...@refresh-events.ca
t: twitter.com/RefreshEvents


[jQuery] Re: cycle plugin not working

2009-05-18 Thread surreal5335


Thanks a lot for pointing that out, I made the change which changed
nothing sadly. I even cleared my cache and refreashed everything to
get the changes to take effect, but still nothing.

I am sure that was one of the problems but there seems to other
problems still

Could you tell me if it is working for you?
Also the iframe with the feedback inside of it, where it is appearing
on the page for you. ( other people seem to be seeing it on a
different place than me).

Thanks a lot


[jQuery] Re: Internet Explorer OMG

2009-05-18 Thread Ricardo

When you call activate() inside the click handler, you add one more
event listener for the click, which calls activate() again and so on.
You should either not call the function from within itself or move the
bind() outside.

On May 18, 9:29 am, Dmitri  wrote:
> I have a function
>
> caps = []; /* some array */
> function activate()
>     {
>       var index = parseInt(Math.random() * caps.length);
>
>       if( caps.length > 0) {
>         caps[index].addClass("active");
>         $("#tip").html(caps[index].html());
>       } else {
>         win();
>       }
>
>       $("a.active").bind("click", function() {
>         var cap = $(this);
>         $(this).fadeOut("fast", function() {
>           cap.replaceWith("");
>         });
>         caps.splice(index, 1);
>         activate();
>
>         return false;
>       });
>
>       return;
>     }
>
> it's simple  when you click on  tag with active class something is
> happing.
> The problem is that ONLY Internet Explorer calls this function
> recursively in infinite loop, why??? Lost half of the day.


[jQuery] Re: Events - Live -v- Livequery

2009-05-18 Thread chris thatcher
fascinating, i didn't even know you could do that...

On Mon, May 18, 2009 at 11:56 AM, Brandon Aaron wrote:

>
> Only Live Query supports calling a function when an element is matched
> (or unmatched). If you need this functionality, then you'll need to
> stick with Live Query.
>
> --
> Brandon Aaron
>
>
> On Mon, May 18, 2009 at 9:58 AM, Meander365 
> wrote:
> >
> > Hi all,
> >
> > I normally do this with livequery:
> >
> >$('.mylink').livequery(function(event) {
> >$(this).mycustomFunction();
> >});
> >
> > So any new .mylink's on a page would also be bound with my custom
> > function.
> >
> > How can I do this with the new LIVE event?  or is it even possible?
> >
> > Thanks in advance!
> >
> >
>



-- 
Christopher Thatcher


[jQuery] Re: jquery: display external page inside popups (mail goggles)

2009-05-18 Thread rayche...@gmail.com

Back again,
I mean most method consist of hidding inside a 
inside the same page.
Then the popup will display the what's inside the 
Is there a way to display from an external html or php file.
Tks

 Raymond


[jQuery] JQUERY Pagination

2009-05-18 Thread bharani kumar
Hi all,
Please refer few jquery pagination plugins ,

Also need in the able heading with sort type ,


for example

Assume if i click the date , then i want sort by date , if i click subject ,
need to sort by subject ,


 *Date*

*Subject*

*09-08-1984*

Subject 1

*10-09-1986*

Subject 2

*10-08-1996*

Subject 3


Thanks

-- 
உங்கள் நண்பன்
பரணி  குமார்

Regards
B.S.Bharanikumar

POST YOUR OPINION
http://bharanikumariyerphp.site88.net/bharanikumar/


[jQuery] Re: Events - Live -v- Livequery

2009-05-18 Thread Brandon Aaron

Only Live Query supports calling a function when an element is matched
(or unmatched). If you need this functionality, then you'll need to
stick with Live Query.

--
Brandon Aaron


On Mon, May 18, 2009 at 9:58 AM, Meander365  wrote:
>
> Hi all,
>
> I normally do this with livequery:
>
>                $('.mylink').livequery(function(event) {
>                        $(this).mycustomFunction();
>                });
>
> So any new .mylink's on a page would also be bound with my custom
> function.
>
> How can I do this with the new LIVE event?  or is it even possible?
>
> Thanks in advance!
>
>


[jQuery] Re: Events - Live -v- Livequery

2009-05-18 Thread ryan.j

i'm pretty sure you can only bind event handlers with .live, so you'd
need to link it to a click or something.

On May 18, 3:58 pm, Meander365  wrote:
> Hi all,
>
> I normally do this with livequery:
>
>                 $('.mylink').livequery(function(event) {
>                         $(this).mycustomFunction();
>                 });
>
> So any new .mylink's on a page would also be bound with my custom
> function.
>
> How can I do this with the new LIVE event?  or is it even possible?
>
> Thanks in advance!


[jQuery] Re: remove() method IE 7 ERROR

2009-05-18 Thread ryan.j

i'd actually be tempted to try...

try {
  pDialog.remove();
}
catch(e) {
  /* console.log("remove method failed"); */
  pDialog.parentNode.removeChild(pDialog);
}

...which isn't very pretty but it should start working properly as
soon as somebody gets around to fixing remove() without needing the
code to be changed straight away.

On May 18, 3:55 pm, snakebit  wrote:
> I know the feeling :)
> my temporary solution is almost the same as yours:
>
> var pDialog = data_responce.getElementsByTagName("PDialog");
> data_responce.documentElement.removeChild(pDialog[0])
>
> On 18 Май, 17:13, "ryan.j"  wrote:
>
> > monday morning mate, i completely misread what you wrote :|
>
> > it's a bug i guess, have you tried to bypass the remove() method?
>
> > eg.  pDialog.parentNode.removeChild(pDialog);
>
> > On May 18, 12:17 pm, snakebit  wrote:
>
> > > I'm little confused. Why you think I want to remove a string? What I'm
> > > doing is with find('PDialog') to access the  node and after
> > > that to remove it.
>
> > > On 18 Май, 13:01, "ryan.j"  wrote:
>
> > > > remove() will remove an object from the DOM, but essentially you're
> > > > just trying to remove part of a string aren't you?
>
> > > > maybe try replace()?
>
> > > > On May 18, 9:42 am, snakebit  wrote:
>
> > > > > Hi,
>
> > > > > I have an ajax request which is returning an xml, but when I tray to
> > > > > remove an element from the xml response I'm receiving the following
> > > > > error message:
>
> > > > > This is happening only in IE7 (I didn't tray in IE6)
> > > > > Line: 1283
> > > > > EROOR: "Object doesn't support this property or method"
>
> > > > > This is my code:
> > > > > var pDialog = $(data_responce).find('PDialog');
> > > > > if(pDialog ){
> > > > > pDialog .remove();
>
> > > > > }
>
> > > > > This is what I find in 1283 when i debugged it :
> > > > > // Compute a unique ID for the element
> > > > >                 if ( !id )
> > > > >                         id = elem[ expando ] = ++uuid;
>
> > > > >                 // Only generate the data cache if we're
> > > > >                 // trying to access or manipulate it
> > > > >                 if ( name && !jQuery.cache[ id ] )
> > > > >                         jQuery.cache[ id ] = {};


[jQuery] Re: Onwidow resize element width

2009-05-18 Thread weidc

might not help but i did those window resize once for one of my
objects.
was always at the right place after resize.

$(window).resize(function()
{
//footer
var leftabstand = $(".footer_08").offset();
var width = $(".footer_08").width();
var left= leftabstand.left + width;
$(".footers").css("left",left);
});


On 18 Mai, 03:07, dPO  wrote:
> Hey i am trying to create a plugin that changes the css of a div
> according to size of window.
>
> I cant use a % based layout because it causes a gap in the layout that
> i dont like.
>
> a small description of the script would be something like this:
>
> windowwidth = 1000px
>
> calculation = 1000(windowwidth) - 300 (this is for columns) / 150(this
> is for child elemnts that fit div) = 4.66(answer from this sample
> data)
>
> if calculation = 4 (use integer only)
>
> then element width = 600px
>
> if calculation = 5
>
> then element width = 752px
>
> if calculation = 6
>
> then element width = 904px
>
> and so on.
>
> I don't have much knowledge with writing my own scripts only the
> basics of taking premade scripts and modifying them to my needs so if
> someone can help me with this it will be much appreciated.
>
> here is a tutorial that might be of help with 
> this.http://net.tutsplus.com/videos/screencasts/learn-how-to-create-a-jque...
>
> Thanks,
> dP


[jQuery] Re: Cross Port Jquery Library Call

2009-05-18 Thread Shadraq

In case anyone stumbles in here with the same issue, I was able to
solve this pretty easily...

As long as your library includes aren't port specific, and your $.post
() url is pointing to the port you need (http(s)) then, there won't be
any problems.

Your library call should be something like this: 

hope it helps someone...


[jQuery] Events - Live -v- Livequery

2009-05-18 Thread Meander365

Hi all,

I normally do this with livequery:

$('.mylink').livequery(function(event) {
$(this).mycustomFunction();
});

So any new .mylink's on a page would also be bound with my custom
function.

How can I do this with the new LIVE event?  or is it even possible?

Thanks in advance!



[jQuery] Re: How to display additional text along with link

2009-05-18 Thread vmrao

Thanks. This helped reduce the code but still not perfect.

Here is my present code which works but still I cannot eliminate some
redundant code.

$("a[href$='.doc']:not(a[href^='http']),a[href$='.xls']:not(a
[href^='http']),a[href$='.ppt']:not(a[href^='http']),a[href
$='.pdf']:not(a[href^='http']),a[href$='.mpg']:not(a
[href^='http'])").each(function(){
   var ext=$(this).attr("href").match(/\.[^\.]*$/);
   if (ext) $(this).after($('').attr
('class','fileExtension').html(" (" + ext + ") "));
} );

I have modified your code as I was getting errors due to a variety of
links on my page (links with neither url value for href nor any
extension etc.,).

In the above code as you see I had to append :not(a[href^='http']) to
all different kinds of file extensions I am interested in.

I tried the following to eliminate the redundant code but it does not
work.

$("a:not[href^='http']").find("a[href$='.doc'],a[href$='.docx'],a[href
$='.xls'],a[href$='.xlsx'],a[href$='.ppt'],a[href$='.pptx'],a[href
$='.pdf'],a[href$='.mpg']").each(function(){
   var ext=$(this).attr("href").match(/\.[^\.]*$/);
   if (ext) $(this).after($('').attr
('class','fileExtension').html(" (" + ext + ") "));
} );

Thanks



On May 15, 11:31 am, Jason Persampieri  wrote:
> Is this what you're looking for?
>
> $("a:not[href^=http]").each(function(){
>     var ext=$(this).attr("href").match(/\.[^\.]*$/);
>     if (ext) $(this).after("("+ext.slice
> (1)+")");
>
> } );
>
> On May 15, 8:09 am, infoaddicted  wrote:
>
>
>
> > This calls for a function, where you can hide the gory details.  Use a
> > selector to gather up the "a" elements, and pass that as the argument
> > to the function.
> > pseudocode:
>
> > var linksToChange = JQuery Selector;
> > function changeLinks( linksToChange ){
>
> >     either:
> >         a "for" loop to step through the object links ToChangelike an
> > array
> >         probably an "if" conditional in every iteration
> >         see:http://tinyurl.com/3sdkgl
> >         also check out jquery's .each() iterator in the Utilities
> > section of the docs
>
> >     or:
> >        a "switch" statement
> >        see:http://tinyurl.com/osezq2
>
> > }
>
> > On May 14, 3:18 pm, vmrao  wrote:
>
> > > OK. I was able to add the text as well as apply special style to it
> > > using the following code.
>
> > > $("a[href$='.doc']:not(a[href^='http'])").after($('').attr
> > > ('class','fileExtension').html(" (" + '.doc' + ") "));
> > > $("a[href$='.docx']:not(a[href^='http'])").after($('').attr
> > > ('class','fileExtension').html(" (" + '.docx' + ") "));
> > > $("a[href$='.xls']:not(a[href^='http'])").after($('').attr
> > > ('class','fileExtension').html(" (" + '.xls' + ") "));
> > > $("a[href$='.xlsx']:not(a[href^='http'])").after($('').attr
> > > ('class','fileExtension').html(" (" + '.xlsx' + ") "));
> > > $("a[href$='.ppt']:not(a[href^='http'])").after($('').attr
> > > ('class','fileExtension').html(" (" + '.ppt' + ") "));
> > > $("a[href$='.pptx']:not(a[href^='http'])").after($('').attr
> > > ('class','fileExtension').html(" (" + '.pptx' + ") "));
> > > $("a[href$='.pdf']:not(a[href^='http'])").after($('').attr
> > > ('class','fileExtension').html(" (" + '.pdf' + ") "));
> > > $("a[href$='.mpg']:not(a[href^='http'])").after($('').attr
> > > ('class','fileExtension').html(" (" + '.mpg' + ") "));
>
> > > However, I am not sure if there is scope to minimize the above code
> > > (as you see one line for every file extension).
>
> > > On May 14, 2:42 pm, vmrao  wrote:
>
> > > > I think it is not clear. Here is my code.
>
> > > > $("a[href$='.doc']").after(" (" + '.doc' + ") ");
> > > > $("a[href$='.docx']").after(" (" + '.docx' + ") ");
> > > > $("a[href$='.xls']").after(" (" + '.xls' + ") ");
> > > > $("a[href$='.xlsx']").after(" (" + '.xlsx' + ") ");
> > > > $("a[href$='.ppt']").after(" (" + '.ppt' + ") ");
> > > > $("a[href$='.pptx']").after(" (" + '.pptx' + ") ");
> > > > $("a[href$='.pdf']").after(" (" + '.pdf' + ") ");
> > > > $("a[href$='.mpg']").after(" (" + '.mpg' + ") ");
>
> > > > I would like to know if it is possible to have a one-line code which
> > > > replaces all the above code. Also, for the extra text (ex: .doc) being
> > > > added, I need to add a special CSS style. I tried this and it does not
> > > > work.
>
> > > > $("a[href$='.doc']").after(" (" + '.doc' + ") ").addClass
> > > > ("fileExtension");
>
> > > > On May 14, 2:00 pm, waseem sabjee  wrote:
>
> > > > > here i modified my code for class adding
>
> > > > > var obj = $("a");
>
> > > > > for(var i = 0; i < obj.length; i++) {
> > > > > obj.eq(i).wrap(""
>
> > > > > > ); // wrap the hyperlink in a span tag
> > > > > > obj.parent().eq(i).prepend('This is text 
> > > > > > before the
> > > > > > hyperlink');
> > > > > > obj.parent().eq(i).append('This is text after 
> > > > > > the
> > > > > > hyperlink');
> > > > > > }
>
> > > > > On Thu, May 14, 2009 at 7:58 PM, waseem sabjee 
> > > > > wrote:
>
> > > > > > var obj = $("a");
>
> > > > > > for(var i = 0; i < obj

[jQuery] Re: remove() method IE 7 ERROR

2009-05-18 Thread snakebit

I know the feeling :)
my temporary solution is almost the same as yours:

var pDialog = data_responce.getElementsByTagName("PDialog");
data_responce.documentElement.removeChild(pDialog[0])

On 18 Май, 17:13, "ryan.j"  wrote:
> monday morning mate, i completely misread what you wrote :|
>
> it's a bug i guess, have you tried to bypass the remove() method?
>
> eg.  pDialog.parentNode.removeChild(pDialog);
>
> On May 18, 12:17 pm, snakebit  wrote:
>
> > I'm little confused. Why you think I want to remove a string? What I'm
> > doing is with find('PDialog') to access the  node and after
> > that to remove it.
>
> > On 18 Май, 13:01, "ryan.j"  wrote:
>
> > > remove() will remove an object from the DOM, but essentially you're
> > > just trying to remove part of a string aren't you?
>
> > > maybe try replace()?
>
> > > On May 18, 9:42 am, snakebit  wrote:
>
> > > > Hi,
>
> > > > I have an ajax request which is returning an xml, but when I tray to
> > > > remove an element from the xml response I'm receiving the following
> > > > error message:
>
> > > > This is happening only in IE7 (I didn't tray in IE6)
> > > > Line: 1283
> > > > EROOR: "Object doesn't support this property or method"
>
> > > > This is my code:
> > > > var pDialog = $(data_responce).find('PDialog');
> > > > if(pDialog ){
> > > > pDialog .remove();
>
> > > > }
>
> > > > This is what I find in 1283 when i debugged it :
> > > > // Compute a unique ID for the element
> > > >                 if ( !id )
> > > >                         id = elem[ expando ] = ++uuid;
>
> > > >                 // Only generate the data cache if we're
> > > >                 // trying to access or manipulate it
> > > >                 if ( name && !jQuery.cache[ id ] )
> > > >                         jQuery.cache[ id ] = {};


[jQuery] Re: Validate textbox on option selected value

2009-05-18 Thread matheus

Are you using the validation plugin?

On 18 maio, 07:33, Jörn Zaefferer 
wrote:
> Try this (untested):
>
> required: "#viaFornitura[selectedIndex=1]"
>
> Jörn
>
> On Mon, May 18, 2009 at 12:13 PM, ciupaz  wrote:
>
> > How can I make this Jorn?
>
> > Luigi
>
> > On May 18, 10:42 am, Jörn Zaefferer 
> > wrote:
> >> select-options don't have a checked property. You have to fix the
> >> selector "#AltraVia:checked".
>
> >> Jörn
>
> >> On Mon, May 18, 2009 at 10:33 AM, ciupaz  wrote:
>
> >> > Hi all,
> >> > I have this validate code to validate a textbox if the user select a
> >> > combo value:
>
> >> > 
>
> >> >    $(document).ready(function() {
> >> >                $("form#2form").validate({
> >> >                rules: {
> >> >                viaAltro: {
> >> >                    required: "#AltraVia:checked"
> >> >                }
> >> >            },
>
> >> >            messages: {
> >> >        viaAltro: {
> >> >                    required: "Insert 'Altra via'"
> >> >                }
>
> >> >            }
> >> >        })
> >> >    });
> >> > 
>
> >> > and this is the HTML:
>
> >> > 
> >> >                Seleziona la via
> >> >                 Altro
> >> > 
>
> >> > Altra via
> >> >        
>
> >> > but it doesn't work.
> >> > Where the problem?
>
> >> > Thanks a lot.
>
> >> > Luigi- Hide quoted text -
>
> >> - Show quoted text -


[jQuery] [validate] - disabling focusInvalid for a given element

2009-05-18 Thread Steve J

Group,

I'm putting together a form using the Validate plugin, and have run
into an issue it would be nice to resolve.
My issue Is around the focusInvalid option. I'd like to disable the
focusInvalid behavior for a particular element, yet keep it enabled
for the rest.

Is this possible?

Any help or input you could provide would be appreciated.

thanks

Steve


[jQuery] Re: Validate textbox on option selected value

2009-05-18 Thread matheus

Are you using the validation plugin?

On 18 maio, 07:33, Jörn Zaefferer 
wrote:
> Try this (untested):
>
> required: "#viaFornitura[selectedIndex=1]"
>
> Jörn
>
> On Mon, May 18, 2009 at 12:13 PM, ciupaz  wrote:
>
> > How can I make this Jorn?
>
> > Luigi
>
> > On May 18, 10:42 am, Jörn Zaefferer 
> > wrote:
> >> select-options don't have a checked property. You have to fix the
> >> selector "#AltraVia:checked".
>
> >> Jörn
>
> >> On Mon, May 18, 2009 at 10:33 AM, ciupaz  wrote:
>
> >> > Hi all,
> >> > I have this validate code to validate a textbox if the user select a
> >> > combo value:
>
> >> > 
>
> >> >    $(document).ready(function() {
> >> >                $("form#2form").validate({
> >> >                rules: {
> >> >                viaAltro: {
> >> >                    required: "#AltraVia:checked"
> >> >                }
> >> >            },
>
> >> >            messages: {
> >> >        viaAltro: {
> >> >                    required: "Insert 'Altra via'"
> >> >                }
>
> >> >            }
> >> >        })
> >> >    });
> >> > 
>
> >> > and this is the HTML:
>
> >> > 
> >> >                Seleziona la via
> >> >                 Altro
> >> > 
>
> >> > Altra via
> >> >        
>
> >> > but it doesn't work.
> >> > Where the problem?
>
> >> > Thanks a lot.
>
> >> > Luigi- Hide quoted text -
>
> >> - Show quoted text -


[jQuery] jquery: display external page inside popups (mail goggles)

2009-05-18 Thread rayche...@gmail.com

Hi,
I've been through various jQuery windows popups (modal, fancybox,boxy,
à la facebook ...)  but none of them convinced me.  I want to display
inside the popup php/html file not images. I really like the modal
style but it displays only javascript files.
My goal is to have kind of mail goggles popup. The user can't disclose
it if he clicks outside of the window.

Raymond


[jQuery] Web dev problem face to face with JAVA J2EE Dev's

2009-05-18 Thread elpatator

Hi all,

my problem is quite, I have to admit it, confusing. My client has a
couple of JAVA hardcore coders, but obviously none of them understands
the concept of ajax (not so hardcore now, huh ? ...).
As myself am not confident with the JAVA/J2EE/STRUTS concepts, I'm
trying to find out a way to explain to them what I need as an output
from a request for Jquery to work with.
In simple words, what do they need to output for my client-side Jquery
scripts to understand, and how do they format server's answers ?
Ah... the gap between a webdev rookie and J2EE dev's...


[jQuery] Internet Explorer OMG

2009-05-18 Thread Dmitri

I have a function


caps = []; /* some array */
function activate()
{
  var index = parseInt(Math.random() * caps.length);

  if( caps.length > 0) {
caps[index].addClass("active");
$("#tip").html(caps[index].html());
  } else {
win();
  }

  $("a.active").bind("click", function() {
var cap = $(this);
$(this).fadeOut("fast", function() {
  cap.replaceWith("");
});
caps.splice(index, 1);
activate();

return false;
  });

  return;
}

it's simple  when you click on  tag with active class something is
happing.
The problem is that ONLY Internet Explorer calls this function
recursively in infinite loop, why??? Lost half of the day.


[jQuery] Re: Best book to learn jQuery?

2009-05-18 Thread mdk

Yes, but because he has no JS he will like have a tough time.  I would
read a basic JS book first, then go for Learning jQuery 1.3.

Mike

On May 18, 8:35 am, Karl Swedberg  wrote:
> I've heard Learning jQuery 1.3 is a great read, too. ;-)
>
> --Karl
>
> 
> Karl Swedbergwww.englishrules.comwww.learningjquery.com
>
> On May 18, 2009, at 9:07 AM, MorningZ wrote:
>
>
>
>
>
> > I always recommend "jQuery in Action" it's a great read
>
> > On May 18, 3:19 am, alex  wrote:
> >> Just wondering what your opinions are on the best book out there, for
> >> a beginner, to learn jQuery? I know HTML and CSS well enough, but  
> >> have
> >> no javascript knowledge.
>
> >> Thanks


[jQuery] Re: Validate textbox on option selected value

2009-05-18 Thread matheus

Are you using the validation plugin?

On 18 maio, 05:33, ciupaz  wrote:
> Hi all,
> I have this validate code to validate a textbox if the user select a
> combo value:
>
> 
>
>     $(document).ready(function() {
>                 $("form#2form").validate({
>                 rules: {
>                 viaAltro: {
>                     required: "#AltraVia:checked"
>                 }
>             },
>
>             messages: {
>         viaAltro: {
>                     required: "Insert 'Altra via'"
>                 }
>
>             }
>         })
>     });
> 
>
> and this is the HTML:
>
> 
>                 Seleziona la via
>                  Altro
> 
>
> Altra via
>         
>
> but it doesn't work.
> Where the problem?
>
> Thanks a lot.
>
> Luigi


[jQuery] Re: Best book to learn jQuery?

2009-05-18 Thread ryan.j

they have a blog on the official site, which details changes to jquery
and any updates to popular/interesting plugins

http://blog.jquery.com/

On May 18, 3:44 pm, alex  wrote:
> Are there any problems when jQuery is updated, or is it solely no
> information about new effects and stuff? I've only been using jQuery
> for a couple of weeks, are new releases frequent?
>
> On May 18, 2:35 pm, Karl Swedberg  wrote:
>
> > I've heard Learning jQuery 1.3 is a great read, too. ;-)
>
> > --Karl
>
> > 
> > Karl Swedbergwww.englishrules.comwww.learningjquery.com
>
> > On May 18, 2009, at 9:07 AM, MorningZ wrote:
>
> > > I always recommend "jQuery in Action" it's a great read
>
> > > On May 18, 3:19 am, alex  wrote:
> > >> Just wondering what your opinions are on the best book out there, for
> > >> a beginner, to learn jQuery? I know HTML and CSS well enough, but  
> > >> have
> > >> no javascript knowledge.
>
> > >> Thanks


[jQuery] Re: Best book to learn jQuery?

2009-05-18 Thread Richard D. Worth
A look through

http://docs.jquery.com/History_of_jQuery

may help answer both questions. Dot releases (1.1, 1.2, 1.3) can contain new
features and API changes that can require code updates, but it's always well
documented, as you can see by clicking on a few links on that page, that
take you to release notes. Minor releases (1.2.1, 1.2.2, 1.2.3, 1.3.1,
1.3.2) typically would contain only critical bug fixes, without affecting
anything else.

- Richard

On Mon, May 18, 2009 at 10:44 AM, alex  wrote:

>
> Are there any problems when jQuery is updated, or is it solely no
> information about new effects and stuff? I've only been using jQuery
> for a couple of weeks, are new releases frequent?
>
> On May 18, 2:35 pm, Karl Swedberg  wrote:
> > I've heard Learning jQuery 1.3 is a great read, too. ;-)
> >
> > --Karl
> >
> > 
> > Karl Swedbergwww.englishrules.comwww.learningjquery.com
> >
> > On May 18, 2009, at 9:07 AM, MorningZ wrote:
> >
> >
> >
> >
> >
> > > I always recommend "jQuery in Action" it's a great read
> >
> > > On May 18, 3:19 am, alex  wrote:
> > >> Just wondering what your opinions are on the best book out there, for
> > >> a beginner, to learn jQuery? I know HTML and CSS well enough, but
> > >> have
> > >> no javascript knowledge.
> >
> > >> Thanks
>


[jQuery] Re: How to animate background images or background of div

2009-05-18 Thread ryan.j

i may be completely misunderstanding you, but have you tried to
combine a fadeOut() on the first image then a fadeIn() on the next
image?

you can change the background-color of a div with

$('#yourDiv').css("background-color", newColour)

but that will just change it, it won't fade it gradually on it's own.

or if you're feeling fruity you can layer the 2 images up and fade
one out to reveal the other one or whatever.

you'd probably want to change the src of the new img.inactive to point
to the next image, switch their classes between active to inactive,
with active having the higher z-index and .inactive being hidden.

something like that should do the trick, anyway.

On May 18, 3:21 pm, g10tto  wrote:
> bump


[jQuery] Re: Best book to learn jQuery?

2009-05-18 Thread alex

Are there any problems when jQuery is updated, or is it solely no
information about new effects and stuff? I've only been using jQuery
for a couple of weeks, are new releases frequent?

On May 18, 2:35 pm, Karl Swedberg  wrote:
> I've heard Learning jQuery 1.3 is a great read, too. ;-)
>
> --Karl
>
> 
> Karl Swedbergwww.englishrules.comwww.learningjquery.com
>
> On May 18, 2009, at 9:07 AM, MorningZ wrote:
>
>
>
>
>
> > I always recommend "jQuery in Action" it's a great read
>
> > On May 18, 3:19 am, alex  wrote:
> >> Just wondering what your opinions are on the best book out there, for
> >> a beginner, to learn jQuery? I know HTML and CSS well enough, but  
> >> have
> >> no javascript knowledge.
>
> >> Thanks


[jQuery] Re: Best book to learn jQuery?

2009-05-18 Thread MorningZ

Damn, I missed the memo that there was a 1.3 version out and about !


On May 18, 9:35 am, Karl Swedberg  wrote:
> I've heard Learning jQuery 1.3 is a great read, too. ;-)
>
> --Karl
>
> 
> Karl Swedbergwww.englishrules.comwww.learningjquery.com
>
> On May 18, 2009, at 9:07 AM, MorningZ wrote:
>
>
>
> > I always recommend "jQuery in Action" it's a great read
>
> > On May 18, 3:19 am, alex  wrote:
> >> Just wondering what your opinions are on the best book out there, for
> >> a beginner, to learn jQuery? I know HTML and CSS well enough, but  
> >> have
> >> no javascript knowledge.
>
> >> Thanks


[jQuery] Re: I'll Donate $20USD to Jquery if you can teach me how to do this

2009-05-18 Thread CarComplaints.com


I'll second the JSON suggestion. Assuming from your XML code example
that you're only ever going to have day/show nodes, here's the JSON:

{
  'Monday' : [
{ time : "0800-1000", dj : "mc funk", name : "nonstop music" },
{ time : "1000-1200", dj : "mc rap", name : "nonstop music" }
  ],
  'Tuesday' : [
{ time : "0800-1000", dj : "mc stoner", name : "nonstop music" },
{ time : "1000-1200", dj : "mc ambient", name : "nonstop music" }
  ]
}

The Javascript code looks like
$(function() {
  $.ajax({
url:'test.php',
dataType:'json',
success:function(schedule) {
  for (var day in schedule) {
$('body').append('' + day + '');
for (var i = 0; i < schedule[day].length; i++) {
  var s = schedule[day][i];
  $('body').append('' + s.time + '' + s.dj + ''
+ s.name + '');
}
  }
},
error:function(r,t,e) { alert(t); }
  });
});

Hope that helps .. JSON is about as lightweight as it gets.

-Wick
http://www.CarComplaints.com


On May 18, 3:21 am, Josh Powell  wrote:
> If you aren't forced to use XML, look at trying JSON instead.  It is a
> MUCH friendlier format for passing information around.
>


[jQuery] Re: How to animate background images or background of div

2009-05-18 Thread ryan.j

i may be completely misunderstanding you, but have you tried to
combine a fadeOut() on the first image then a fadeIn() on the next
image?

you can change the background-color of a div with $('#yourDiv').css
("background-color", newColour) or if you're feeling fruity you can
layer the 2 images up and fade one out as you fade the other one in or
whatever.

On May 18, 3:21 pm, g10tto  wrote:
> bump


[jQuery] Re: How to animate background images or background of div

2009-05-18 Thread ryan.j

you mean like like fadeIn() and fadeOut() ?

On May 14, 5:27 pm, g10tto  wrote:
> I'm putting together a portfolio site and I'd like to use high-res
> images that take up most of the screen to show different works. There
> would be a menu bar with links to each work, where a click on that
> work's link would change the background by doing a standard "dissolve"
> effect.
>
> I have seen many different plugins for "rotating" images and changing
> background colors at the click of a button. Is there a method
> specifically for this purpose?
>
> As an alternative to altering the background-image of the body itself,
> I would be willing to use a properly sized div (or div's) to achieve
> this effect.
>
> Help appreciado! Thanks!


[jQuery] Re: How to animate background images or background of div

2009-05-18 Thread g10tto

bump


[jQuery] Re: remove() method IE 7 ERROR

2009-05-18 Thread ryan.j

monday morning mate, i completely misread what you wrote :|

it's a bug i guess, have you tried to bypass the remove() method?

eg.  pDialog.parentNode.removeChild(pDialog);






On May 18, 12:17 pm, snakebit  wrote:
> I'm little confused. Why you think I want to remove a string? What I'm
> doing is with find('PDialog') to access the  node and after
> that to remove it.
>
> On 18 Май, 13:01, "ryan.j"  wrote:
>
> > remove() will remove an object from the DOM, but essentially you're
> > just trying to remove part of a string aren't you?
>
> > maybe try replace()?
>
> > On May 18, 9:42 am, snakebit  wrote:
>
> > > Hi,
>
> > > I have an ajax request which is returning an xml, but when I tray to
> > > remove an element from the xml response I'm receiving the following
> > > error message:
>
> > > This is happening only in IE7 (I didn't tray in IE6)
> > > Line: 1283
> > > EROOR: "Object doesn't support this property or method"
>
> > > This is my code:
> > > var pDialog = $(data_responce).find('PDialog');
> > > if(pDialog ){
> > > pDialog .remove();
>
> > > }
>
> > > This is what I find in 1283 when i debugged it :
> > > // Compute a unique ID for the element
> > >                 if ( !id )
> > >                         id = elem[ expando ] = ++uuid;
>
> > >                 // Only generate the data cache if we're
> > >                 // trying to access or manipulate it
> > >                 if ( name && !jQuery.cache[ id ] )
> > >                         jQuery.cache[ id ] = {};


[jQuery] $.load() doesn't fires script tags?

2009-05-18 Thread asrij...@googlemail.com

Hi Guys,

just facing an issue: I'm creating a worklflow for my "app" and found
$.load() very usefull. It works except that  tags aren't
loaded. I got some jQuery Objects (like Flexbox etc) in my remote
pages and would like to have access to this objects after the load()
but after load() there are no  tags sadly.

Is this a regular behaviour? Or a bug?

Regards


[jQuery] Re: Best book to learn jQuery?

2009-05-18 Thread Brandon Aaron

On Mon, May 18, 2009 at 8:35 AM, Karl Swedberg  wrote:
> I've heard Learning jQuery 1.3 is a great read, too. ;-)

HAHAHA... I think you forgot your disclaimer. :p  Karl is a co-author
of Learning jQuery.

Nonetheless, Learning jQuery 1.3 would be a great choice. :)

--
Brandon Aaron


[jQuery] Re: Best book to learn jQuery?

2009-05-18 Thread Karl Swedberg

I've heard Learning jQuery 1.3 is a great read, too. ;-)

--Karl


Karl Swedberg
www.englishrules.com
www.learningjquery.com




On May 18, 2009, at 9:07 AM, MorningZ wrote:



I always recommend "jQuery in Action" it's a great read



On May 18, 3:19 am, alex  wrote:

Just wondering what your opinions are on the best book out there, for
a beginner, to learn jQuery? I know HTML and CSS well enough, but  
have

no javascript knowledge.

Thanks




[jQuery] Re: I'll Donate $20USD to Jquery if you can teach me how to do this

2009-05-18 Thread CarComplaints.com

jQuery selectors take an optional 2nd parameter to provide a search
context (object to search through). Pretty minor but it reduces the
code nicely... you can get rid of the 3 find()'s.

  var time = $('time',this).text();
  var dj = $('dj',this).text();
  var showname = $('showname',this).text();

Docs about it are here:
http://docs.jquery.com/Core/jQuery#expressioncontext

-Wick
http://www.CarComplaints.com


On May 17, 8:43 pm, "comslash.com"  wrote:
> $(function(){
>
>                         $.ajax({
>                                 type: "GET",
>                                 url: "test.xml",
>                                 dataType: "xml",
>                                 success: function(data){
>                                  $('day[name=Monday]>show', 
> data).each(function(){
>                                                         time     = 
> $(this).find('time').text();
>                                                         dj               = 
> $(this).find('dj').text();
>                                                         showname 
> =$(this).find('showname').text();
>
>                                                         $('body').append(time 
> + '' + dj + '' + showname +
> '');
>                                          });
>                                 }
>                         });
>
>                 });

[jQuery] Re: Best book to learn jQuery?

2009-05-18 Thread MorningZ

I always recommend "jQuery in Action" it's a great read



On May 18, 3:19 am, alex  wrote:
> Just wondering what your opinions are on the best book out there, for
> a beginner, to learn jQuery? I know HTML and CSS well enough, but have
> no javascript knowledge.
>
> Thanks


[jQuery] Re: [autocomplete] Can I validate and update the entered value before doing the search?

2009-05-18 Thread Tom Worster

On 5/18/09 2:57 AM, "ulf.ren...@gmail.com"  wrote:

> My best though right now is to patch the plugin to include another
> option - substituteValue - which could be a function that validates
> and rewrites the data in any desired way before the match is done.

i've thought in the past that a useful feature of the plugin would be an
option to specify a general purpose search handler function. the plugin
would call this handler when it has a search key that it wants suggestions
for (either local or ajax search). it's a similar idea.




[jQuery] Re: Hiding a menu in Superfish

2009-05-18 Thread joems

Did it, instead of using display none I instead used jquery remove
function instead.

On May 17, 6:38 pm, joems  wrote:
> Hi, I want to make a dynamic menu where the items being shown depends
> on the access of the user. I tried having a code in codebehind of my
> aspx page that will set a certain li to style display none, but when
> viewed in IE6 I get a white space within the menu.


[jQuery] Re: .onclick - Executing a function before another - Help Solve

2009-05-18 Thread weidc

what about adding a class to the open div's.
like this:

$(".button1").click(function() {
   if($("div").hasClass("open"))
   {
 $(".open").removeClass("open").slideUp('slow', function()
  {
 $(".div1").addClass("open").slideDown('slow');
   });
}
else
   {
   $(".div1").addClass("open").slideDown('slow');
   }
});

On 18 Mai, 03:16, MattLewisDesign  wrote:
> Need the closeAll() function to execute before the div's slidedown.
> All divs are initially hidden, just making a check that if one is
> open, it must close before any new div runs.
> Can someone help point me in the right direction?
>
> Here is what I have so far.
>
> function closeAll() {
> $(".div1").slideUp('slow');
> $(".div2").slideUp('slow');
> $(".div3").slideUp('slow');
>
> }
>
> $(document).ready(function() {
>
> $(".button1").click(function() {
> closeAll();
> $(".div1").slideDown('slow');
>
> });
>
> $(".button2").click(function() {
> closeAll();
> $(".div2").slideDown('slow');
>
> });
>
> $(".button3").click(function() {
> closeAll();
> $(".div3").slideDown('slow');
>
> });
> });
>
> Thanks in advance


[jQuery] accesing array/variables with a function

2009-05-18 Thread introvert

Hello

I'm having problems with the following code:

for (var i = 0; i < images.length; i++) {
var img = new Image();
img.src = images[i][0];
$(img).bind('load', function() {
stack.push( $('').attr('href', 
images[i][1]).append(this)[0] );
});
}

The problems seems to be because stack.push cannot access images[i][1]
which is a two-dimensional array, defined after/in $(document).ready
(function().

The error I get:

images[i] is undefined
[Break on this error] stack.push( $('').attr('href', images[i]
[1]).append(this)[0] );
event is not defined
[Break on this error] stack.push( $('').attr('href', images[i]
[1]).append(this)[0] );

If I replace images[i][1] with the value such as 'somelink.htm' it
will work just fine.

What am I doing wrong?

Thanks a lot for help!


[jQuery] Re: cycle plugin not working

2009-05-18 Thread Mike Alsup





This is backwards.  You need to include jquery before you include the
cycle plugin.




On May 18, 1:31 am, surreal5335  wrote:
> I am trying to use the cycle plugin but all I get is a static list. I
> have checked to make sure all my code is matching with the demos
> online and still I dont get anywhere.
>
> I have loaded this code inside the .ready function
>
> $('#s1').cycle({
>    fx:     'fade',
>    speed:  'fast',
>   timeout: 0,
>   next:   '#next2',
>  prev:   '#prev2'
>
> });
>
> This part has been loaded into the body tag obviously.
>
> 
>  width="600"/>
>  width="600"/>
>  width="600"/>
>  width="600"/>
>  width="600"/>
>  width="600"/>
>         
>
> This part has been loaded into the body tag obviously.
>
> The page containing the code is:
>
> http://royalvillicus.com/photo_site/...e/photo_1.html
>
> The images are shown at the bottom
>
> Thanks a lot for all your help


[jQuery] Re: What's the best way to replace text in a node?

2009-05-18 Thread George

That's what I was after - knew jQuery wouldn't disappoint!

Many thanks

George

On May 18, 1:08 pm, "Michael Price" 
wrote:
> You can use either:
>
> $("selector").text("New text");
> Or
> $("selector").html("New text");
>
> Both also work as getters if you don't provide an argument:
> theText = $("selector").text();
> theHTML = $("selector").html();
>
> Is this what you were after?
>
> Regards,
> Michael Price
>
> -Original Message-
> From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On
>
> Behalf Of George
> Sent: 18 May 2009 12:09
> To: jQuery (English)
> Subject: [jQuery] Re: What's the best way to replace text in a node?
>
> Sorry, folks, I'm not using remove(), I'm using empty() - like this:
>
> JQUERY
> text to be replaced
> $('#dText').empty().append('New text string')
>
> On May 18, 12:02 pm, George  wrote:
> > I'm guessing this should be a simple one for the jQuery stalwarts
> > here.  I've recently moved over from Protoype and was used to using
> > the update() function to replace text within a node - something like
> > this:
>
> > PROTOTYPE
> > text to be replaced
> > $('dText').update('New text string')
>
> > JQUERY
> > text to be replaced
> > $('#dText').remove().append('New text string')
>
> > Now it appears to me that in jQuery, there isn't an out of the box
> > function to replace the contents of a node without also replacing the
> > node too, hence the reason I am chaining remove() and append().  Is
> > there a better way to achieve this?
>
> > Many thanks
>
> > George


[jQuery] Re: What's the best way to replace text in a node?

2009-05-18 Thread Michael Price

You can use either:

$("selector").text("New text");
Or
$("selector").html("New text");

Both also work as getters if you don't provide an argument:
theText = $("selector").text();
theHTML = $("selector").html();

Is this what you were after?

Regards,
Michael Price

-Original Message-
From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On
Behalf Of George
Sent: 18 May 2009 12:09
To: jQuery (English)
Subject: [jQuery] Re: What's the best way to replace text in a node?


Sorry, folks, I'm not using remove(), I'm using empty() - like this:

JQUERY
text to be replaced
$('#dText').empty().append('New text string')



On May 18, 12:02 pm, George  wrote:
> I'm guessing this should be a simple one for the jQuery stalwarts
> here.  I've recently moved over from Protoype and was used to using
> the update() function to replace text within a node - something like
> this:
>
> PROTOTYPE
> text to be replaced
> $('dText').update('New text string')
>
> JQUERY
> text to be replaced
> $('#dText').remove().append('New text string')
>
> Now it appears to me that in jQuery, there isn't an out of the box
> function to replace the contents of a node without also replacing the
> node too, hence the reason I am chaining remove() and append().  Is
> there a better way to achieve this?
>
> Many thanks
>
> George




[jQuery] Hiding a menu in Superfish

2009-05-18 Thread joems

Hi, I want to make a dynamic menu where the items being shown depends
on the access of the user. I tried having a code in codebehind of my
aspx page that will set a certain li to style display none, but when
viewed in IE6 I get a white space within the menu.


[jQuery] Best book to learn jQuery?

2009-05-18 Thread alex

Just wondering what your opinions are on the best book out there, for
a beginner, to learn jQuery? I know HTML and CSS well enough, but have
no javascript knowledge.

Thanks


[jQuery] Problem how to set left value for top navigation menu

2009-05-18 Thread borgy manotoy

Hi All,

I would like to ask how will I set the left value of my currently
selected list.

such that:

var a = getViewportWidth();
var b = getMouseXPosition(e);
var list_width = 150;

var c = b + list_width;

if(c > a) {
//HOW TO: CODE FOR ADJUSTING LEFT VALUE OF SELECTED LIST
}else{
   //NO CHANGES TO BE DONE HERE.
}

[IMG]http://i605.photobucket.com/albums/tt139/borgymanotoy/problem.gif
[/IMG]


[jQuery] Re: Problems with JQuery Cycle Plugin and IE6

2009-05-18 Thread abelafonte

This is exactly what I needed.  Had no idea what was going on when the
slide mysteriously had a background color that matches a div three
levels up in the hierarchy.  I guess there's no fix for the lack of
transparency with this attribute set?

On May 11, 1:37 pm, Maksym Melnyk  wrote:
> Here's the solution from the Mike Alsup.
>
> "Hi Shane,
>
> There are two cleartype options in Cycle, and unfortunately one of
> them is not documented (yet).
>
> The general purpose of the cleartype logic in Cycle is to workaround a
> rendering issue in IE when cleartype is enabled on the system.  When a
> Windows machine has cleartype enabled, IE6/7 render text aliased when
> there is an opacity filter applied to an element.  In IE6, the effects
> of this can be greatly minimized if the element in question has an
> explicit background color.
>
> When Cycle's 'cleartype' option is true the plugin will attempt to set
> a background color on all of the slides to provided better
> antialiasing support on IE6.  To determine the best bg color, the
> plugin walks up the parent hierarchy until it finds a parent with a
> non-transparent background color.  If it doesn't find one then it uses
> white.  In addition, when the cleartype option is true the plugin will
> always try to remove the opacity filter after the transition
> completes, this fixes the aliased text on IE7.
>
> Since Cycle is used in many, many different environments I realized
> that there are some cases in which setting a specific background color
> is not desirable.  A long time ago I added an option called
> 'cleartypeNoBg'.  When this option is true Cycle will *not* set a
> background color on the slide elements (but it will still remove the
> opacity filter after each slide transition).
>
> In Internet Explorer the default value of Cycle's 'cleartype' option
> is true in recent versions of the plugin.
>
> So to use the undocumented option you would do this:
>
> $('#slideshow').cycle({
>    cleartypeNoBg: true
>
> });
>
> Hope this helps with the problem you're having.
>
> Mike"
>
> On May 8, 11:03 pm, Chris  wrote:
>
> > Hi,
>
> > I am having a problem with IE6 and thecycleplugin. In IE6 it shows a
> > black background over my div background image (I set via css a
> > background image to a master div). cleartype set to false,
> > cleartypeNoBg to true. I am cycling transparent png images. In IE7+
> > and Firefox everything is ok.
>
> > Any tip?
>
> > Thanks
> > Chris


[jQuery] replace existing div with fadeIn

2009-05-18 Thread jan

Hi,
I am trying to create a simple menu.
Here is what I am trying to accomplish.
When you click a link from a  list a div fades in on top of the
list. When you click another link from the list I want previously
faded in div to be replaced by new div. What I have now is all the
links fades in randomly. Here is the code I have.

$(".rs-salads").click(function(){
$("#salad-panel").fadeIn("slow");
});

$(".rs-soups").click(function(){
$("#soup-panel").fadeIn("slow");
});

How should I change the code that does what I want. I have nine links
on my list. Thank you very much in advance for the help.

Jan


[jQuery] Onwidow resize element width

2009-05-18 Thread dPO

Hey i am trying to create a plugin that changes the css of a div
according to size of window.

I cant use a % based layout because it causes a gap in the layout that
i dont like.

a small description of the script would be something like this:

windowwidth = 1000px

calculation = 1000(windowwidth) - 300 (this is for columns) / 150(this
is for child elemnts that fit div) = 4.66(answer from this sample
data)

if calculation = 4 (use integer only)

then element width = 600px

if calculation = 5

then element width = 752px

if calculation = 6

then element width = 904px

and so on.

I don't have much knowledge with writing my own scripts only the
basics of taking premade scripts and modifying them to my needs so if
someone can help me with this it will be much appreciated.

here is a tutorial that might be of help with this.
http://net.tutsplus.com/videos/screencasts/learn-how-to-create-a-jquery-plugin/

Thanks,
dP


  1   2   >