[jQuery] Re: Protect images

2009-06-25 Thread Jonathan Vanherpe (T & T NV)


I guess you could just put an absolutely positioned div with a 100%x100% 
transparent gif/png over your image, but it's my opinion that any kind 
of image protection is useless, and usually easily defeated by just 
dragging the image out of the cache folder.


I personally think it's a waste of time to try to 'protect' media on the 
internet, as there's always a way of getting it. It's better to just 
assume that everything you put online will be copied and either turned 
into a lolcat or a motivational poster.


Jonathan

Mario Soto wrote:

Actually, sorry for not putting a good descrpition. You're right. What
I want to do is to make harder for a visitor to get the immage,
putting a transparent gif or similar in front of the immage. So, the
immage is loaded by ajax, and never has the same address, and cannot
download the image by right clicking and select save image.

Of course, if can crack a password mostly with patiente, it would not
be hard to keep the immage, but, for the average user (mostly my
users) want to make as imposible as I can.

The immage type I'm dealing with are documents, so it should not be
give "full" access to anyone cappable of right clicking.

Thanks.

On 25 jun, 11:52, Lee R Lemon III  wrote:

If by protecting you mean keeping from being downloaded NO...

If you want some watermarking, you could use something like php's gd
function that could aloow for a watermark...

You could also use javascript canvas but that does not work in IE
without a plugin

On Jun 24, 1:49 pm, Mario Soto  wrote:


Hi. I want to know if there is a way to protect images that are styled
with an overflow auto. I found a lot of tutorials, scripts and plugins
for that with "static" images. The big issue here is that the image
can (and is usual) to be resized (two buttons are added for that + and
-).
Any ideas? Will be vary good recieved. Thanks.
--
Mario Soto
marios...@cancuen.net
..._





--
Jonathan Vanherpe - Tallieu & Tallieu NV - jonat...@tnt.be


[jQuery] Re: Autocomplete - trouble with getJSON callback function not executing?

2009-06-25 Thread David here

Thanks a bunch!

Looks like my JSON data is not correctly formatted or wrapped in the callback 
function.  Let me see if I can tweak it and see what happens.

David

> Date: Thu, 25 Jun 2009 16:24:54 -0700
> Subject: [jQuery] Re: Autocomplete - trouble with getJSON callback function 
> not  executing?
> From: jmay...@gmail.com
> To: jquery-en@googlegroups.com
> 
> 
> The link to your json file didn't work, so I couldn't look it over.
> But incorrectly formatted json will result in a failure in getJSON()
> call and your callback would never be executed. Your json has to be
> perfect, so look it over very carefully.
> 
> Here's a couple of common gotchas:
> 
> [
>   {
>   "date": "1-Jun",
>   "time": "2:00 PM",
>   },
>   {
>   "date": "3-Jun",
>   "time": "2:00 PM",
>   },
> ]
> 
> 1) Note that the "time" field on both records has a comma at the end.
> This is incorrect, the last field should have no comma at the end.
> 
> 2) Same thing on the last record, there is a comma following the
> ending curly bracket. No comma should come after the last record.
> 
> This file should fail if you try it, but will succeed when removing
> these commas. There are other formatting errors not quite as common.
> Basically, json files have to be perfect. A lot of people have json
> generators to ensure they will be correct.
> 
> hth!

_
Windows Live™: Keep your life in sync. 
http://windowslive.com/explore?ocid=TXT_TAGLM_WL_BR_life_in_synch_062009

[jQuery] Re: PDF + Jquery + thickbox is not suppoting to Mozilla

2009-06-25 Thread bharathbhooshan ambati
Is there any other options?

On Wed, Jun 24, 2009 at 1:15 AM, Chippo  wrote:

>
> Hi
>
> this will do what your after I think
> http://www.adobe.com/products/flashpaper/
> costs though.
>
> On Jun 23, 8:21 am, bharathbhooshan ambati
>  wrote:
> > any solution for this issue??
> >
> > On Mon, Jun 22, 2009 at 5:30 PM, bharathbhooshan ambati <
> >
> >
> >
> > bharathbhooshan.amb...@gmail.com> wrote:
> > > Yeah you are right...
> >
> > > when i used iframes in IE it worked fine(when i clicked a link the pdf
> will
> > > be popup)...
> > > where as in mozilla,i am facing the problem of viewing pdfs in both
> frame
> > > as well as iframe
> >
> > > thanks for spending time on this..please rep asap
> >
> > > Regards,
> > > Bharath
> >
> > > On Mon, Jun 22, 2009 at 5:07 PM, Peter Edwards 
> wrote:
> >
> > >> Hi Bharath,
> >
> > >> Your code would never work on my machine (even in IE) as I have set it
> up
> > >> so PDFs display in a standalone reader (i.e. do NOT use the browser
> > >> plug-in).
> > >> Is the problem that the PDF does not download at all in Mozilla under
> some
> > >> set of circumstances?
> >
> > >> Peter
> >
> > >> on 22/06/2009 11:10 jazz said::
> >
> > >>  Hi Folks,
> >
> > >>> I am facing a severe problem in Mozilla,i.e.i cannot open a pdf in a
> > >>> frame which users Jquery thickbox.
> >
> > >>> is there any solution?
> >
> > >>> Regards,
> > >>> Bharath
> >
> > > --
>


Bharath


[jQuery] Re: getJSON flicker works but not mine -- URGENT HELP

2009-06-25 Thread David here

Thanks for the pointer, Etienne.

After some more tweaks and research, it seems I have to wrap the JSON object in 
the call back function, like "jsonpx({json object}).

Hope this works!

> Date: Thu, 25 Jun 2009 21:19:17 -0400
> From: robillard.etie...@gmail.com
> To: jquery-en@googlegroups.com
> Subject: [jQuery] Re: getJSON flicker works but not mine -- URGENT HELP
> 
> 
> 
> Since I can't debug pretty much on the server-side, I'd suspect that
> somehow the data coming from flickr is more clean than from your host.
> 
> I also get the following error, indicating most likely a problem parsing
> the json data:
> 
> Error: invalid label
> Source File:
> http://include.classistatic.com/include/c3js/classifieds/rel1/auto2/a/p10.js?jsoncallback=jsonp1245978837391&_=1245978837487
> Line: 2, Column: 2
> Source Code:
>   "title": "Recent Uploads tagged cat",
> 
> How (which api) are you using to generate the json data ?
> I recommend "demjson" if you're using Python.
> 
> Hope this helps,
> Etienne
> 
> 
> dtrannn wrote:
> > 
> > Etienne,
> > 
> > I'm using getJSON because I need to do cross-domain data fetching.  I
> > thought getJSON is the best way for doing that from reading the docs.
> > 
> > No error messages show up in FF.  In HTTP watch, I see the JSON content
> > coming throw as
> > 
> > {
> > "title": "Recent Uploads tagged cat",
> > "link": "http://www.flickr.com/photos/tags/cat/";,
> > "description": "",
> > "modified": "2009-06-25T17:40:33Z",
> > "generator": "http://www.flickr.com/";,
> > .
> > .
> > .
> > }
> > 
> > but the callback never fires.
> > 
> > Any other ideas?
> > 
> > 
> > Etienne Robillard-3 wrote:
> >>
> >>
> >> Hi dtrann,
> >>
> >> I never tried the $.getJSON method before but generally have better
> >> results using the plain $.ajax method. If you switch to that
> >> alternative, you should also pay attention to specifying the "json"
> >> dataType param. Oh and what is the error message reported ? ;-)
> >>
> >> Hope this helps,
> >> Etienne
> >>
> >> dtrannn wrote:
> >>> Hi, I'm a newbie trying to understand getJSON callbacks.  I have 2
> >>> getJSON
> >>> calls below.  One for flicker which works fine - the alert goes off - but
> >>> when I tried my js file, nothing happens.  Both files are returning the
> >>> exact same JSON data.
> >>>
> >>> I know I'm doing something wrong.  Can someone help me out?
> >>>
> >>> 
> >>> 
> >>>>>> src="http://include.classistatic.com/include/c3js/classifieds/rel1/jquery-1.2.6.js";>
> >>>   
> >>>   
> >>>   $(document).ready(function(){//alert("1");
> >>>
> >>> $.getJSON("http://include.classistatic.com/include/c3js/classifieds/rel1/auto2/a/p10.js?jsoncallback=?";,
> >>>  
> >>> //$.getJSON("http://api.flickr.com/services/feeds/photos_public.gne?tags=cat&tagmode=any&format=json&jsoncallback=?";,
> >>>  
> >>> function(data){alert(data);});
> >>>   
> >>> 
> >>> 
> >>> 
> >>> 
> >>>
> >>
> >> -- 
> >> Etienne Robillard 
> >> Green Tea Hackers Club 
> >> Blog: 
> >> PGP Fingerprint: AED6 B33B B41D 5F4F A92A  2B71 874C FB27 F3A9 BDCC
> >>
> >>
> > 
> 
> 
> -- 
> Etienne Robillard 
> Green Tea Hackers Club 
> Blog: 
> PGP Fingerprint: AED6 B33B B41D 5F4F A92A  2B71 874C FB27 F3A9 BDCC

_
Windows Live™ SkyDrive™: Get 25 GB of free online storage.
http://windowslive.com/online/skydrive?ocid=TXT_TAGLM_WL_SD_25GB_062009

[jQuery] ajax get issue

2009-06-25 Thread jhm

I'm having an issue with the $.get() method. When I request a file
local to my site (with a relative path), everything works fine. When I
request the same file with a full URL, the $.get() isn't successful. I
don't know if its a security issue (requesting data from a 3rd party
site) or maybe a timing issue, or maybe something else.

Here's the essence of the call when it fails:

$.get('http://files.myurl.com/myxml.xml', function(data) {
alert('got it');
}

If I call it with just the 'myxml.xml' as the path, it works fine.

Thanks!



[jQuery] Re: Slide back affter slide from right to left;

2009-06-25 Thread meoluoibieng

Hi, I have done as you say, so this is the

code for the left to right:
[

function()
{
$slide1.animate(
{
left: parseInt($slide1.css('left'),100) == 0 ?
-$slide1.outerWidth() : 350
})

}
]

It get right but affter i continue click , nothing happen ( after
slide right to left, and left to right);


[jQuery] jQuery Cycle Plugin is appearing inside DIV's

2009-06-25 Thread Erik R. Peterson

I'm using DIV's and I can't figure out how to remove the html text  
from the inside DIV from the last slide.

I've tried everything.

When I remove the  outside the DIV, the script won't work!!

http://www.enaturalskin.com

The Main Banner.

Erik


[jQuery] Re: jQ animate doesn´t work in FireFox

2009-06-25 Thread Karl Swedberg


On Jun 25, 2009, at 1:38 PM, Enano wrote:



Hi I´m having problems if I try to run code with Fire Fox.
I used some "animate" code examples from the tutorial but doesn´t
work...
Everything looks good with IE or Safari.
Any help please.

Thanks.



Can you show us the code?  Which "tutorial"? Which elements are you  
trying to animate? Try putting your attempt on jsbin.com so we can  
have a look.


thanks,

--Karl


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






[jQuery] IE Superfish/jQuery Frustration

2009-06-25 Thread Caleb

What I have works perfectly in every browser but IE 6 and 7. The issue
I have is not with the CSS ... I think. I'm unsure because I'm a
jQuery and Superfish newb.

The menus drop down as expected but when I click the link it doesn't
seem to do anything. It maybe some weird JS quirk ... but I'm at a
loss as to what and or how to fix this.

Thanks for you help in advance.

// initialise plugins
$(document).ready(function() {
$('ul.sf-menu').superfish();

// Check for hash value in URL - needs more work come back to it
later.
var hash = window.location.hash.substr(1);
var href = $('#nav li a').each(function(){
var href = $(this).attr('href');
if(hash==href.substr(0,href.length-5)){
var toLoad = hash+'.html';
$('#meterInfo').load(toLoad);
}
});

// The Functionality that brings in requested content from external
page
// This is the key to making this work.
$('.nav li a').click(function(){
var toLoad = $(this).attr('href');
$('#meterInfo').slideUp('fast',loadContent);
function loadContent(){
$('#meterInfo').load(toLoad,showNewContent);
}
function showNewContent(){
$('#meterInfo').slideDown();
}
return false;
});
});

- for the moment the Superfish CSS is unchanged, and I don't plan on
changing anything other than colors.


[jQuery] Jquery Tabs moves to 2nd row when tab is clicked on Fireforx 3

2009-06-25 Thread son

Hi. Can anybody help me on this.

I have 2 issues with the JQuery Tabs.

1.) I am using a JQuery tabs with 4 tabs which works well with IE6 & 7
and safari. But not perfectly in Fireforx.
When it first loaded, the tabs are lined up correctly, and  can see
the first tab's content. When I click the 2nd, 3rd or 4th tab, the
tabs moves 1 row down, and I see a small light color spacer on the
first row that may have pushed down the other tabs. I can see the
content of the tabs from one to the other without problem.

2.) Some of my tabs make the local reference ()
call  while others via remote () call.

I am using the class="ui-tabs-hide" to hide the div section of the
local reference call so it will not show up during the load. This
works, but how do I hide the UL list? While the tabs is loading, I can
see the unordered list.

Looking to hear from someone.

Thanks,
Son


[jQuery] Can I get code example ?

2009-06-25 Thread Jaikit

Hello Doc,

Can I get example which uses jquery autocomplete which fetches json
data using webservice.

I am not able to figure it out myself.

Thank YOu


[jQuery] Jquery Tabs moves to 2nd row when tab is clicked on Fireforx 3

2009-06-25 Thread son

Hi. Can anybody help me on this.

I have 2 issues with the JQuery Tabs.

1.) I am using a JQuery tabs with 4 tabs which works well with IE6 & 7
and safari. But not perfectly in Fireforx.
When it first loaded, the tabs are lined up correctly, and  can see
the first tab's content. When I click the 2nd, 3rd or 4th tab, the
tabs moves 1 row down, and I see a small light color spacer on the
first row that may have pushed down the other tabs. I can see the
content of the tabs from one to the other without problem.

2.) Some of my tabs make the local reference ()
call  while others via remote () call.

I am using the class="ui-tabs-hide" to hide the div section of the
local reference call so it will not show up during the load. This
works, but how do I hide the UL list? While the tabs is loading, I can
see the unordered list.

Looking to hear from someone.

Thanks,
Son


[jQuery] Re: getJSON flicker works but not mine -- URGENT HELP

2009-06-25 Thread Etienne Robillard


Since I can't debug pretty much on the server-side, I'd suspect that
somehow the data coming from flickr is more clean than from your host.

I also get the following error, indicating most likely a problem parsing
the json data:

Error: invalid label
Source File:
http://include.classistatic.com/include/c3js/classifieds/rel1/auto2/a/p10.js?jsoncallback=jsonp1245978837391&_=1245978837487
Line: 2, Column: 2
Source Code:
  "title": "Recent Uploads tagged cat",

How (which api) are you using to generate the json data ?
I recommend "demjson" if you're using Python.

Hope this helps,
Etienne


dtrannn wrote:
> 
> Etienne,
> 
> I'm using getJSON because I need to do cross-domain data fetching.  I
> thought getJSON is the best way for doing that from reading the docs.
> 
> No error messages show up in FF.  In HTTP watch, I see the JSON content
> coming throw as
> 
> {
>   "title": "Recent Uploads tagged cat",
>   "link": "http://www.flickr.com/photos/tags/cat/";,
>   "description": "",
>   "modified": "2009-06-25T17:40:33Z",
>   "generator": "http://www.flickr.com/";,
> .
> .
> .
> }
> 
> but the callback never fires.
> 
> Any other ideas?
> 
> 
> Etienne Robillard-3 wrote:
>>
>>
>> Hi dtrann,
>>
>> I never tried the $.getJSON method before but generally have better
>> results using the plain $.ajax method. If you switch to that
>> alternative, you should also pay attention to specifying the "json"
>> dataType param. Oh and what is the error message reported ? ;-)
>>
>> Hope this helps,
>> Etienne
>>
>> dtrannn wrote:
>>> Hi, I'm a newbie trying to understand getJSON callbacks.  I have 2
>>> getJSON
>>> calls below.  One for flicker which works fine - the alert goes off - but
>>> when I tried my js file, nothing happens.  Both files are returning the
>>> exact same JSON data.
>>>
>>> I know I'm doing something wrong.  Can someone help me out?
>>>
>>> 
>>> 
>>>   >> src="http://include.classistatic.com/include/c3js/classifieds/rel1/jquery-1.2.6.js";>
>>>   
>>>   
>>>   $(document).ready(function(){//alert("1");
>>>
>>> $.getJSON("http://include.classistatic.com/include/c3js/classifieds/rel1/auto2/a/p10.js?jsoncallback=?";,
>>>  
>>> //$.getJSON("http://api.flickr.com/services/feeds/photos_public.gne?tags=cat&tagmode=any&format=json&jsoncallback=?";,
>>>  
>>> function(data){alert(data);});
>>>   
>>> 
>>> 
>>> 
>>> 
>>>
>>
>> -- 
>> Etienne Robillard 
>> Green Tea Hackers Club 
>> Blog: 
>> PGP Fingerprint: AED6 B33B B41D 5F4F A92A  2B71 874C FB27 F3A9 BDCC
>>
>>
> 


-- 
Etienne Robillard 
Green Tea Hackers Club 
Blog: 
PGP Fingerprint: AED6 B33B B41D 5F4F A92A  2B71 874C FB27 F3A9 BDCC


[jQuery] Re: browser window size change event?

2009-06-25 Thread jhm

Not sure how I missed, but thank you very much!


On Jun 25, 5:09 pm, James  wrote:
> http://docs.jquery.com/Events/resize
>
> On Jun 25, 1:32 pm, jhm  wrote:
>
> > Does jquery have an event defined for when the user changes the size
> > of his browser window? I couldn't find one, but sometimes I don't see
> > the forest for the trees.
>
> > Thanks!


[jQuery] Re: browser window size change event?

2009-06-25 Thread James

http://docs.jquery.com/Events/resize

On Jun 25, 1:32 pm, jhm  wrote:
> Does jquery have an event defined for when the user changes the size
> of his browser window? I couldn't find one, but sometimes I don't see
> the forest for the trees.
>
> Thanks!


[jQuery] Re: getJSON flicker works but not mine -- URGENT HELP

2009-06-25 Thread dtrannn


Etienne,

I'm using getJSON because I need to do cross-domain data fetching.  I
thought getJSON is the best way for doing that from reading the docs.

No error messages show up in FF.  In HTTP watch, I see the JSON content
coming throw as

{
"title": "Recent Uploads tagged cat",
"link": "http://www.flickr.com/photos/tags/cat/";,
"description": "",
"modified": "2009-06-25T17:40:33Z",
"generator": "http://www.flickr.com/";,
.
.
.
}

but the callback never fires.

Any other ideas?


Etienne Robillard-3 wrote:
> 
> 
> 
> Hi dtrann,
> 
> I never tried the $.getJSON method before but generally have better
> results using the plain $.ajax method. If you switch to that
> alternative, you should also pay attention to specifying the "json"
> dataType param. Oh and what is the error message reported ? ;-)
> 
> Hope this helps,
> Etienne
> 
> dtrannn wrote:
>> 
>> Hi, I'm a newbie trying to understand getJSON callbacks.  I have 2
>> getJSON
>> calls below.  One for flicker which works fine - the alert goes off - but
>> when I tried my js file, nothing happens.  Both files are returning the
>> exact same JSON data.
>> 
>> I know I'm doing something wrong.  Can someone help me out?
>> 
>> 
>> 
>>   > src="http://include.classistatic.com/include/c3js/classifieds/rel1/jquery-1.2.6.js";>
>>   
>>   
>>   $(document).ready(function(){//alert("1");
>>
>> $.getJSON("http://include.classistatic.com/include/c3js/classifieds/rel1/auto2/a/p10.js?jsoncallback=?";,
>>  
>> //$.getJSON("http://api.flickr.com/services/feeds/photos_public.gne?tags=cat&tagmode=any&format=json&jsoncallback=?";,
>>  
>> function(data){alert(data);});
>>   
>> 
>> 
>> 
>> 
>> 
> 
> 
> -- 
> Etienne Robillard 
> Green Tea Hackers Club 
> Blog: 
> PGP Fingerprint: AED6 B33B B41D 5F4F A92A  2B71 874C FB27 F3A9 BDCC
> 
> 

-- 
View this message in context: 
http://www.nabble.com/getJSON-flicker-works-but-not-mineURGENT-HELP-tp24212290s27240p24212806.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



[jQuery] Re: getJSON flicker works but not mine -- URGENT HELP

2009-06-25 Thread Etienne Robillard


Hi dtrann,

I never tried the $.getJSON method before but generally have better
results using the plain $.ajax method. If you switch to that
alternative, you should also pay attention to specifying the "json"
dataType param. Oh and what is the error message reported ? ;-)

Hope this helps,
Etienne

dtrannn wrote:
> 
> Hi, I'm a newbie trying to understand getJSON callbacks.  I have 2 getJSON
> calls below.  One for flicker which works fine - the alert goes off - but
> when I tried my js file, nothing happens.  Both files are returning the
> exact same JSON data.
> 
> I know I'm doing something wrong.  Can someone help me out?
> 
> 
> 
>src="http://include.classistatic.com/include/c3js/classifieds/rel1/jquery-1.2.6.js";>
>   
>   
>   $(document).ready(function(){//alert("1");
>
> $.getJSON("http://include.classistatic.com/include/c3js/classifieds/rel1/auto2/a/p10.js?jsoncallback=?";,
>  
> //$.getJSON("http://api.flickr.com/services/feeds/photos_public.gne?tags=cat&tagmode=any&format=json&jsoncallback=?";,
>  
> function(data){alert(data);});
>   
> 
> 
> 
> 
> 


-- 
Etienne Robillard 
Green Tea Hackers Club 
Blog: 
PGP Fingerprint: AED6 B33B B41D 5F4F A92A  2B71 874C FB27 F3A9 BDCC


[jQuery] browser window size change event?

2009-06-25 Thread jhm

Does jquery have an event defined for when the user changes the size
of his browser window? I couldn't find one, but sometimes I don't see
the forest for the trees.

Thanks!


[jQuery] Re: Autocomplete - trouble with getJSON callback function not executing?

2009-06-25 Thread jhm

The link to your json file didn't work, so I couldn't look it over.
But incorrectly formatted json will result in a failure in getJSON()
call and your callback would never be executed. Your json has to be
perfect, so look it over very carefully.

Here's a couple of common gotchas:

[
{
"date": "1-Jun",
"time": "2:00 PM",
},
{
"date": "3-Jun",
"time": "2:00 PM",
},
]

1) Note that the "time" field on both records has a comma at the end.
This is incorrect, the last field should have no comma at the end.

2) Same thing on the last record, there is a comma following the
ending curly bracket. No comma should come after the last record.

This file should fail if you try it, but will succeed when removing
these commas. There are other formatting errors not quite as common.
Basically, json files have to be perfect. A lot of people have json
generators to ensure they will be correct.

hth!


[jQuery] Re: Expand and close Accordion List by choice without hover

2009-06-25 Thread Charlie





they are patches for file superfish.js   you'll have to compare file vs
patch to implement 

ironwiller wrote:

  ok. gr8 i ve found several familiar topics...my question now is where
exactly must i add this extra code/patch? i'm using superfish menu
module for Joomla 1.5.x. which file must i add specific and in which
line in this file must i add what exactly...cause these several topics
are a little bit confusing...

ty again in advanced

On Jun 25, 8:03 pm, Charlie  wrote:
  
  
superfish menu was never designed to work on a click
if you search this group  with "superfish click" you will find some threads on this.  There are some patches for click in this search, i tried them one day but never got them working
ironwiller wrote:hi, i would like to ask what must i change and in which file / line so i can have instead of on hover and closing automatically the ability to expand by myself and close myself the menu with accordion list choise...the site preview is:http://preview.nosmoke.grty in advanced for your help

  
  
  






[jQuery] Re: one div, multiple clicks

2009-06-25 Thread Charlie





here's a working example , using addClass() and removeClass to test
which animation to use. Works on multiple clicks

http://jsbin.com/ulafa

mkauppinen wrote:

  Ok, but it works only once. What if I want to open it again?


On Jun 25, 3:20 pm, Charlie  wrote:
  
  
in your click function:
if ($(this).is(":animated")){
       //do whatever you mean by "close"
     }
     //original animation here and remove $(this).animate from mouseleave

  
  
  






[jQuery] getJSON flicker works but not mine -- URGENT HELP

2009-06-25 Thread dtrannn


Hi, I'm a newbie trying to understand getJSON callbacks.  I have 2 getJSON
calls below.  One for flicker which works fine - the alert goes off - but
when I tried my js file, nothing happens.  Both files are returning the
exact same JSON data.

I know I'm doing something wrong.  Can someone help me out?



  http://include.classistatic.com/include/c3js/classifieds/rel1/jquery-1.2.6.js";>
  
  
  $(document).ready(function(){//alert("1");
   
$.getJSON("http://include.classistatic.com/include/c3js/classifieds/rel1/auto2/a/p10.js?jsoncallback=?";,
 
//$.getJSON("http://api.flickr.com/services/feeds/photos_public.gne?tags=cat&tagmode=any&format=json&jsoncallback=?";,
 
function(data){alert(data);});
  





-- 
View this message in context: 
http://www.nabble.com/getJSON-flicker-works-but-not-mineURGENT-HELP-tp24212290s27240p24212290.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



[jQuery] Autocomplete - trouble with getJSON callback function not executing?

2009-06-25 Thread dtrannn


Hi, I'm a jquery newbie, and I'm having trouble making the autocomplete
plugin working with cross-domain calls.  The alert in my callback function
is never executed.  Can't figure out why!

Here's the plugin I'm using:
http://plugins.jquery.com/project/jq-autocomplete

Here's the simple JSON data returned from external server
http://include.classistatic.com/include/c3js/classifieds/rel1/auto/a/p3.js:

{"kjq":["apple1","apple2","apple3","apple4","apple5","apple6","apple2"]}  
//Let me know if this is invalid JSON

I've modified this line to include a JSONP callback parameter
"jsoncallback=?":
$.getJSON(ajax, "val=" + input.val() + "&jsoncallback=?", function
(json) { alert("Hello");});

What am I doing wrong?

Any help would be appreciated!

Here's my complete code:
http://www.w3.org/TR/html4/loose.dtd";>





 







http://include.classistatic.com/include/c3js/classifieds/rel1/jquery-1.2.6.js";>

//This part is from jquery.ui.autocomplete.ext.js
(function($) {
$.ui = $.ui || {};
$.ui.autocomplete = $.ui.autocomplete || {};
$.ui.autocomplete.ext = $.ui.autocomplete.ext 
|| {};

$.ui.autocomplete.ext.ajax = function(opt) {
var ajax = opt.ajax;
return { getList: function(input) { 
$.getJSON(ajax, "val=" + 
input.val() + "&jsoncallback=?",
function(json) { alert("Hello");}); 
} };
};

$.ui.autocomplete.ext.templateText = 
function(opt) {
var template = 
$.makeTemplate(opt.templateText, "<%", "%>");
return { template: function(obj) { 
return template(obj); } };
};

})(jQuery);

http://include.classistatic.com/include/c3js/classifieds/rel1/jquery.ui.autocomplete.js";>
http://include.classistatic.com/include/c3js/classifieds/rel1/jquery.dimensions.js";>

  $(document).ready(function(){

$("input.keyword").autocomplete({ajax:"http://include.classistatic.com/include/c3js/classifieds/rel1/auto/a/p3.js"});
//$("input.keyword").autocomplete({ajax:"p.js"});
  });
   




-- 
View this message in context: 
http://www.nabble.com/Autocomplete---trouble-with-getJSON-callback-function-not-executing--tp24207659s27240p24207659.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



[jQuery] Re: tablesorter and pager: How to modify table cells in cache?

2009-06-25 Thread paulhagstrom

I worked on something related to this like a year ago, I don't
remember all that much about what I did.  However, looking back at the
code: What I was trying to do was inject an entire row into the cache
(not modify the rows) (after which I resorted). I built it basically
on the model of appendToCache as I recall.

You might just try looking at the cache attribute of the tablesorter
object, something like the following:

c = jQuery('#table').cache;
totalrows = c.normalized.length;
for(var i=0; i < totalrows; i++) {
c.row[i][9].attr('disabled', 'disabled);
}

This isn't great, since it also disables the actually checked
checkboxes, you could presumably test to see if they're checked before
disabling them if this actually works.

The way I actually did it was more complicated; I'd added into
tablesorter an injectToCache(table, cache, newrow) function to
tablesorter, then created an event handler for injectRow (on the model
of, e.g., applyWidgets, appendCache), which I fired on the table. The
existing appendCache handler, for example, has access to the cache.

On Jun 25, 3:50 pm, Lee R Lemon III  wrote:
> Do you have this working somewhere I can look at I have some
> ideas, but not sure...
>
> Worst case if you can not find the cached rows you could just
> create a javascript array of the choosen row when they click the check
> box then refer to your own array
>
> On Jun 25, 11:23 am, Darren Brierton 
> wrote:
>
>
>
> > I'm using tablesorter with the pager plugin. The last cell of each row
> > in the table contains a checkbox. The user should not be allowed to
> > check more than 10 rows (out of several hundred); once ten checkboxes
> > are checked I want to make all the others disabled. Now if I wasn't
> > using the pager plugin this would be simplicity itself; using the
> > pager plugin it is still simple to disable all the unchecked
> > checkboxes currently displayed. But how do I access the rows of the
> > table that are cached by the tablesorter plugin that are not currently
> > in the DOM? I'm sure it is quite easy, I just can't seem to figure out
> > how to access the cached table. I assume that once I can access the
> > cache I can disable the checkboxes just as I would the ones on the
> > page (and I also assume that I still have to separately disable the
> > ones on the page as well as the ones in the cache). Can anyone
> > enlighten me?
>
> > Thanks in advance.
>
> > Best, Darren


[jQuery] Re: (validate) Radio button values

2009-06-25 Thread Matt Riley

Yeah, like I thought, I'm back again.  ;-)

Below is the code I've been cobbling together from your previous post.
Please feel free to slap me around and tell me where I've done bad.
Right now, the form validation works fine (if there is nothing
selected then the jquery validation comes up). However, when I hit the
submit button, nothing happens. I'm sure I've screwed something up
royally but I'm not an experienced enough programmer to figure it all
out before the sun dies.


$.validator.setDefaults({
submitHandler: function() {
var correctAnswer = 1
$('.theAnswer').each(
   function(){
   var temp_val =  $('.theAnswer').val();
   var temp_id =  $('.theAnswer').attrib('id');
   if(temp_val=='selected'){
   if(temp_id == correctanswer){
  alert("Correct!");
   }
   else{
  alert("Try Again.");
  }
   }
});
}
});

$.metadata.setType("attr", "validate");
$(document).ready(function() {
$("#quiz_form").validate();
});











Answer 1



Answer 2



Answer 3



Answer 4

Please select an 
answer.










On Jun 25, 4:27 pm, Matt Riley  wrote:
> Thanks for your reply. I'm going to give it a go with what you
> suggested, although I'm not exactly a seasoned pro at this so I will
> probably get stuck and come back begging for more help.  :-)
>
> I should have mentioned that this thing needs to run locally from a
> user's hard disk without a requirement for server-side processing. If
> this was not the case, I would've probably pursued a php solution as
> I'm slightly more comfortable with that (jquery is very new to me). It
> doesn't much matter if the correct answer is hidden in the source of
> the page somewhere; these quizzes will just be used for basic users
> who wouldn't know/care to look in the source anyway.
>
> Again, thank you for your reply. I'll probably be back. LOL.
>
> -Matt
>
> On Jun 25, 3:16 pm, Lee R Lemon III  wrote:
>
>
>
> > well like many things this has a variable answer...
>
> > but what I think you will need to do is write a script that gets the
> > correct answer (I would use ajax calls to server so the answer can not
> > be seen in the browser code)
> > then set an event on the submit button that cycles through your radio
> > buttons for the correct answer easiest way to do that is add a class
> > to each and do something sorta like..
> > //outside a function (before your document.ready as well)
> > var correctanswer;
> > //somewhere set the value of correctanwser
> > $('.your_class').each(
> >    function(){
> >    var temp_val =  $('.your_class').val();
> >    var temp_id =  $('.your_class').attrib('id');
> >    if(temp_val=='selected'){
> >        if(temp_id == correctanswer){
> >            //code for correct answer here
> >        }
> >        else{
> >           //code for wrong answer here
> >       }
> >    }
>
> > )
>
> > On Jun 25, 2:35 pm, Matt Riley  wrote:
>
> > > I'm making a simple quiz using jquery and the validate plug-in. I
> > > think I'm really close but just need a nudge over the last hump.  :-)
>
> > > I have a radio button group that requires the user to select at least
> > > one button. That part is working. However, what I want to do is also
> > > check to see if the user selected a certain button (i.e. the correct
> > > answer). Only if the correct answer is satisfied will the form then
> > > validate and move on to the next quiz question.
>
> > > Here's my code so far. Any help is greatly appreciated.
>
> > > 
> > > $.validator.setDefaults({
> > > submitHandler: function() {
> > > alert("Submitted!");
>
> > > }
> > > });
>
> > > $.metadata.setType("attr", "validate");
>
> > > $(document).ready(function() {
> > >         $("#quiz_form").validate();});
>
> > > 
>
> > > 
> > > 
>
> > > 
>
> > > 
> > >         
> > >                 
> > >                         
> > >                                  > > value="1" name="answers"
> > > validate="required:true" />
> > >                                 Answer 1
> > >                         
> > >                         
> > >                                  > > value="2" name="answers" />
> > >                                 Answer 2
> > >                         
> > >                         
> > >                                  > > value="3" name="answers" />
> > >                                 Answer 3
> > >                         
> > >                         
> > >                                  > > value="4" name="answers" />
> > >                   

[jQuery] Re: Expand and close Accordion List by choice without hover

2009-06-25 Thread ironwiller

ok. gr8 i ve found several familiar topics...my question now is where
exactly must i add this extra code/patch? i'm using superfish menu
module for Joomla 1.5.x. which file must i add specific and in which
line in this file must i add what exactly...cause these several topics
are a little bit confusing...

ty again in advanced

On Jun 25, 8:03 pm, Charlie  wrote:
> superfish menu was never designed to work on a click
> if you search this group  with "superfish click" you will find some threads 
> on this.  There are some patches for click in this search, i tried them one 
> day but never got them working
> ironwiller wrote:hi, i would like to ask what must i change and in which file 
> / line so i can have instead of on hover and closing automatically the 
> ability to expand by myself and close myself the menu with accordion list 
> choise...the site preview is:http://preview.nosmoke.grty in advanced for your 
> help


[jQuery] Re: Help ::Without URL / pagerefresh to get into login ((-->very urgent<--))

2009-06-25 Thread Charlie





did you look at the tutorial i posted earlier in this thread  
"submit-a-form-without-page-refresh-using-jquery"  ?

it even has a source code download

bharani kumar wrote:
Hi all, 
  
  
  for example am saying , 
  
  
  around 10 fields in the form , u have entered all the fields,
then u are see card selection ,
  
  
  the site asking u , u have account in our site, if yes means, we
have show the login link ,
  
  
  Here please consentrate , if the enter the username and password
, then they submit the form , what will happen , the page gets refresh
, so other values get disappears ,
  
  
  Thats y am asking / looking the code ,
  
  
  without page refresh to login , 
  
  
  Thanks 
  
  
  
  
  On Thu, Jun 25, 2009 at 9:38 PM, Charlie 
wrote:
  
 I tried to prompt a
reasonable discussion on this , it doesn't appear
you wish to help anyone help you

personally I have no idea *exactly* what you are looking for , provided
a multitude of resources to try to narrow it down and got a 6 word reply

good luck to you...maybe someone else might try to help or get the
code from youtube





bharani kumar wrote:
nothing
simply like , you tube login 
  
  On Thu, Jun 25, 2009 at 5:52 PM, Charlie
  
wrote:
  
Your request is so vague
have
no idea what you really need or what your
expectations are

The following  were all very *easy* to find using jquery site and/or
google !

http://docs.jquery.com/Ajax

http://malsup.com/jquery/form/

http://docs.jquery.com/Plugins/Validation

http://net.tutsplus.com/tutorials/_javascript_-ajax/submit-a-form-without-page-refresh-using-jquery/

 suggestion : do some  research and then ask specific questions, 






bharani kumar wrote:
Hi all ,
  
  
  Yes this is second post , i don't get reply for my first
post ,
  
  
  Am working on the travel booking site,
  
  
  In my site user select the oder , after selected , there
i
given
the divertion , pay by card or cash , 
  
  
  Assume if they choose card , then i show the links like
,
login(existing customer) , register , directly enter card details ,
  
  
  So if they click the login LINK,
  
  
  Then am showing the login form without page refresh ,
  
  
  HERE i need your help
  
  
  If they enter the username and password , after they
hit
the
submit ,
  
  
  I want to login without page refresh and URL changes ,
  
  
  Any great suggestion i really appreciate , 
  
  
  Any doubt in my question , hesitate to  reply ,
  
  
  Thanks 
  
  
  B.S.Bharanikumar
  
  
  very urgent very urgent very urgent
  
  
  
  
  
  
-- 
Regards
B.S.Bharanikumar
  http://php-mysql-jquery.blogspot.com/
  





  
  
  
  
  
-- 
Regards
B.S.Bharanikumar
  http://php-mysql-jquery.blogspot.com/





  
  
  
  
  
-- 
Regards
B.S.Bharanikumar
  http://php-mysql-jquery.blogspot.com/
  






[jQuery] Re: (validate) Radio button values

2009-06-25 Thread Matt Riley

Thanks for your reply. I'm going to give it a go with what you
suggested, although I'm not exactly a seasoned pro at this so I will
probably get stuck and come back begging for more help.  :-)

I should have mentioned that this thing needs to run locally from a
user's hard disk without a requirement for server-side processing. If
this was not the case, I would've probably pursued a php solution as
I'm slightly more comfortable with that (jquery is very new to me). It
doesn't much matter if the correct answer is hidden in the source of
the page somewhere; these quizzes will just be used for basic users
who wouldn't know/care to look in the source anyway.

Again, thank you for your reply. I'll probably be back. LOL.

-Matt



On Jun 25, 3:16 pm, Lee R Lemon III  wrote:
> well like many things this has a variable answer...
>
> but what I think you will need to do is write a script that gets the
> correct answer (I would use ajax calls to server so the answer can not
> be seen in the browser code)
> then set an event on the submit button that cycles through your radio
> buttons for the correct answer easiest way to do that is add a class
> to each and do something sorta like..
> //outside a function (before your document.ready as well)
> var correctanswer;
> //somewhere set the value of correctanwser
> $('.your_class').each(
>    function(){
>    var temp_val =  $('.your_class').val();
>    var temp_id =  $('.your_class').attrib('id');
>    if(temp_val=='selected'){
>        if(temp_id == correctanswer){
>            //code for correct answer here
>        }
>        else{
>           //code for wrong answer here
>       }
>    }
>
> )
>
> On Jun 25, 2:35 pm, Matt Riley  wrote:
>
>
>
> > I'm making a simple quiz using jquery and the validate plug-in. I
> > think I'm really close but just need a nudge over the last hump.  :-)
>
> > I have a radio button group that requires the user to select at least
> > one button. That part is working. However, what I want to do is also
> > check to see if the user selected a certain button (i.e. the correct
> > answer). Only if the correct answer is satisfied will the form then
> > validate and move on to the next quiz question.
>
> > Here's my code so far. Any help is greatly appreciated.
>
> > 
> > $.validator.setDefaults({
> > submitHandler: function() {
> > alert("Submitted!");
>
> > }
> > });
>
> > $.metadata.setType("attr", "validate");
>
> > $(document).ready(function() {
> >         $("#quiz_form").validate();});
>
> > 
>
> > 
> > 
>
> > 
>
> > 
> >         
> >                 
> >                         
> >                                  > name="answers"
> > validate="required:true" />
> >                                 Answer 1
> >                         
> >                         
> >                                  > name="answers" />
> >                                 Answer 2
> >                         
> >                         
> >                                  > name="answers" />
> >                                 Answer 3
> >                         
> >                         
> >                                  > name="answers" />
> >                                 Answer 4
> >                         
> >                         Please select an 
> > answer.
> >                 
> >                         
> >         
> > 
> > 
>
> > 
> > 


[jQuery] Re: GM_xmlhttpRequest sort data

2009-06-25 Thread Dman

bump help please

On Jun 25, 1:16 am, Dman  wrote:
> Hello,
> I am trying to get a html page using GM_xmlhttpRequest, store the html
> page code, in a var, and sort some data from it.
> GM_xmlhttpRequest({
> method: 'GET',
> url: 'http://www.myurl.com/test.html',
> onload: function(html)
> {
>         html = html.responseText;
>         $(html).("div[style*='font-size']").each(function(i){
>         alert(i);
>                                                                            
> });}
>
>                            });
> html contains the correct code, but I can't sort the data like I could
> in $(document).("div[style*='font-size']"). Any ideas?
>
> Thanks


[jQuery] Nested Fieldsets

2009-06-25 Thread paulinstl

So I have a nested fieldset group 4 levels deep (potentially).  I'd
like to be able to click on the legend to expand and collapse the
fieldsets within.

I don't want to hide the fieldsets, just reduce the height so that the
contents within are not seen until they click on the legend.

ideas?


[jQuery] Re: The Balance between PHP and JQuery

2009-06-25 Thread Andy Matthews

In my opinion, if you control the server side code, it's always best to do
it there, rather than depend on jQuery for that. For several reasons.

1) Since PHP has to write the code anyway, tacking an extra few chars is no
big deal
2) Users without JS will see the correct version.
3) No need to maintain two separate sets of code.


andy

-Original Message-
From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On
Behalf Of Pkunzipula
Sent: Thursday, June 25, 2009 2:16 PM
To: jQuery (English)
Subject: [jQuery] The Balance between PHP and JQuery


Hello Everyone!

I am new to both PHP and JQuery, and I am running into conflict over which
language is right for which task.

For instance:

I have a simple content management system (PHP) which allows administrators
to add and update stories with a textarea form.

I then use PHP to retrieve the input from the textarea, find the new line
breaks and convert them to  tags.  It works.

I then use the JQuery selector $('#slide div p:first').addClass
('noIndent') to take indenting off the first paragraph of each story where
#slide and div are both hard-coded into the HTML, but the p is generated by
PHP.

It doesn't work.  Is it my syntax, or do I really have to use PHP to
generate the classes too?  Or do I need to back it up and use JQuery instead
to output the  tags?

I appreciate any effort to clarify this matter, and in the process, could
you give me some simple guidelines of where you draw the line between PHP
and JQuery?

Thanks for your time!

Arlen




[jQuery] Re: Help ::Without URL / pagerefresh to get into login ((-->very urgent<--))

2009-06-25 Thread Frédéric Pillonel
Hey
Either send every values to refill fields after the page refresh, or use an
ajax request instead of a standard submit. It sends a request to the server
without refreshing the page, so you have to define a javascript function to
be executed when the response comes back. This function is most likely to
modify the dom tree of your page to give some sort of result, at least hide
the login form.

Hope it helps.


[jQuery] Re: The Balance between PHP and JQuery

2009-06-25 Thread Michael Lawson

The best thing you can keep in mind here is that PHP runs on the backend,
and jQuery runs on the front end.  In most cases php will run "first".  So
for example, if php generates an html page with some javascript on it, the
javascript, once it makes it to your browser, has access to everything on
the page (well, besides iframes with src attributes not in your domain, but
thats another topic) , whether php generated it or not.

Does that make sense and/or help at all?

cheers

Michael Lawson
Development Lead, Global Solutions, ibm.com
Phone:  1-276-206-8393
E-mail:  mjlaw...@us.ibm.com

'Examine my teachings critically, as a gold assayer would test gold. If you
find they make sense, conform to your experience, and don't harm yourself
or others, only then should you accept them.'


   
  From:   Pkunzipula   
   
  To: "jQuery (English)"   
   
  Date:   06/25/2009 04:37 PM  
   
  Subject:[jQuery] The Balance between PHP and JQuery  
   






Hello Everyone!

I am new to both PHP and JQuery, and I am running into conflict over
which language is right for which task.

For instance:

I have a simple content management system (PHP) which allows
administrators to add and update stories with a textarea form.

I then use PHP to retrieve the input from the textarea, find the new
line breaks and convert them to  tags.  It works.

I then use the JQuery selector $('#slide div p:first').addClass
('noIndent') to take indenting off the first paragraph of each story
where #slide and div are both hard-coded into the HTML, but the p is
generated by PHP.

It doesn't work.  Is it my syntax, or do I really have to use PHP to
generate the classes too?  Or do I need to back it up and use JQuery
instead to output the  tags?

I appreciate any effort to clarify this matter, and in the process,
could you give me some simple guidelines of where you draw the line
between PHP and JQuery?

Thanks for your time!

Arlen

<><>

[jQuery] Remote control of web pages for use as a test harness - clicking A links from script

2009-06-25 Thread Nikki Locke

I am devising a test harness for a complex web application. The
application inserts a javascript file into the HTML it outputs -
record.js when recording tests, and playback.js when playing them
back.

Record.js attaches event handlers to all the objects the user might
interact with (mostly INPUT, SELECT, TEXTAREA, BUTTON and A tags). The
event handler uses Ajax to send details of the event to a server,
which saves them to a database.

Playback.js is supposed to query the server to retrieve events, then
use javascript to play them back.

I've got things mostly working, but I seem to have hit a brick wall
when it comes to A links. I can't find a way to get the event to
replay.

I've tried obj.click() and obj.trigger("click"), but neither causes
the link to be followed.

The hrefs in the links are a mixture of urls and javascript, so I
can't simply do window.location=obj.attr("href").

Is it just not possible to fire clicks on A links so that the normal
browser behaviour is emulated?

Nikki Locke


[jQuery] (validate) multiple checkbox groups

2009-06-25 Thread jtotheh

Hi all,

Anyone have an idea of how I could look for a single checked box
across two different checkbox groups?

I have two groups, emailto[] and emailgroup[], and i need one box
checked in either group to proceed. I've seen some similar scenarious,
but haven't been able to implement the solutions successfuly.

Thanks!


[jQuery] getScript does not always work for me

2009-06-25 Thread Nikki Locke

I am building a web app that is controlled from a server. I want the
server to send objects to the app, which the app then processes. I am
using getScript for this, but it doesn't seem to be working for me.
I have example code at //jsbin.com/umuwi

This code calls getScript on the url ://jsbin.com/utake - this returns
the following text:
_jq_action={type:"href"};

I call getScript as follows:

var _jq_action;

$(document).ready(function(){
_jq_getaction();
});

function _jq_getaction() {
try {
_jq_action = null;
$.getScript("http://jsbin.com/utake";, _jq_processaction);
_jq_log("sent request");
} catch(e) {
alert(e);
}
}

function _jq_processaction() {
try {
_jq_log("got reply");
if(_jq_action) {
_jq_log(_jq_action.type + " received");
} else {
_jq_log("no action");
}
} catch(e) {
alert(e);
}
}

_jq_log is a function which merely outputs messages to the screen, so
I can see what is going on.

The request gets sent, but _jq_action is always null.

Nikki Locke


[jQuery] The Balance between PHP and JQuery

2009-06-25 Thread Pkunzipula

Hello Everyone!

I am new to both PHP and JQuery, and I am running into conflict over
which language is right for which task.

For instance:

I have a simple content management system (PHP) which allows
administrators to add and update stories with a textarea form.

I then use PHP to retrieve the input from the textarea, find the new
line breaks and convert them to  tags.  It works.

I then use the JQuery selector $('#slide div p:first').addClass
('noIndent') to take indenting off the first paragraph of each story
where #slide and div are both hard-coded into the HTML, but the p is
generated by PHP.

It doesn't work.  Is it my syntax, or do I really have to use PHP to
generate the classes too?  Or do I need to back it up and use JQuery
instead to output the  tags?

I appreciate any effort to clarify this matter, and in the process,
could you give me some simple guidelines of where you draw the line
between PHP and JQuery?

Thanks for your time!

Arlen


[jQuery] Re: Attempting to Get jQuery to load into SQL Server Reporting Services Report Manager

2009-06-25 Thread Lee R Lemon III

Try using a lazy loader  which will inject the jquery request into the
page
http://wonko.com/post/painless_javascript_lazy_loading_with_lazyload

I did something like this
var LazyLoad=function(){var E=document,D=null,A=[],C;function B(){if
(C){return }var G=navigator.userAgent,F;C={gecko:0,ie:0,webkit:
0};F=G.match(/AppleWebKit\/(\S*)/);if(F&&F[1]){C.webkit=parseFloat(F
[1])}else{F=G.match(/MSIE\s([^;]*)/);if(F&&F[1]){C.ie=parseFloat(F[1])}
else{if((/Gecko\/(\S*)/).test(G)){C.gecko=1;F=G.match(/rv:([^\s\)]
*)/);if(F&&F[1]){C.gecko=parseFloat(F[1])}return{load:function
(K,L,J,I){var H=E.getElementsByTagName("head")[0],G,F;if(K)
{K=K.constructor===Array?K:[K];for(G=0;G=420)
{F.onload=LazyLoad.requestComplete;F.onerror=LazyLoad.requestComplete}}
H.appendChild(F);if(!C.ie&&!C.gecko&&!(C.webkit>=420))
{F=E.createElement("script");F.appendChild(E.createTextNode
("LazyLoad.requestComplete();"));H.appendChild(F)}},loadOnce:function
(N,O,L,P,G){var H=[],I=E.getElementsByTagName
("script"),M,J,K,F;N=N.constructor===Array?N:[N];for(M=0;M0){LazyLoad.load(H,O,L,P)}
else{if(G){if(L){if(P){O.call(L)}else{O.call(window,L)}}else{O.call
(),requestComplete:function(){if(D.callback){if(D.obj){if(D.scope)
{D.callback.call(D.obj)}else{D.callback.call(window,D.obj)}}else
{D.callback.call()}}D=null;if(A.length){LazyLoad.load()();
function loadme(){
LazyLoad.loadOnce(['http://ajax.googleapis.com/ajax/libs/jquery/
1.3.2/jquery.min.js'],loadComplete);
};
function loadComplete(){
//fire your jquery code

};

then you just need to fire this after page is loaded  but this ca
inject multiple files but they have to be OOP to really work clean
you need to fire them after this is done laoding stuff

On Jun 25, 10:03 am, Walt  wrote:
> I'm having trouble loading jQuery into SQL Server Reporting Services
> Report Manager.  Since SSRS is a proe-compiles ASPX
>
> page, and we are not given the source code, we have little ability to
> make changes to the interface.  If I could add jQuery
>
> directly, the progblem would be trivial.  However, all we have the
> ability to modify is an existing Javascript file that is
>
> loaded at runtime in the head of each page.
>
> I have been able to get this to load relatively reliably using IE 8,
> but other browsers either don't load it at all, or
>
> only on the first pass.
>
> Here is the structure that I have in place:
>
> 1.  Each page load /Reports/ReportManager/js/ReportingServices.js:
>
> 
>          type="text/Javascript">
>
> 2.  ReportingServices.js Contains the following lines at the top:
>
> addLoadEvent(SetMultiSelectParamWidth);
> addLoadEvent(loadjQueryFile);
>
> function addLoadEvent(fn)
> {
>     if (window.addEventListener)
>        window.addEventListener('load', fn, false)
>     else if (window.attachEvent)
>        window.attachEvent('onload', fn);
>
> }
>
> function loadjQueryFile()
> {
>         loadjscssfile("/Reports/js/jquery-1.3.2.min.js", "js"); //dynamically
> load and add this .js file
>         loadjscssfile("/Reports/js/jQueryPageCommands.js", "js");  //
> dynmically load the js Page Commands
>
> }
>
> function loadjscssfile(filename, filetype){
>  if (filetype=="js"){ //if filename is a external JavaScript file
>   var fileref=document.createElement('script')
>   fileref.setAttribute("type","text/javascript")
>   fileref.setAttribute("src", filename)
>  }
>  else if (filetype=="css"){ //if filename is an external CSS file
>   var fileref=document.createElement("link")
>   fileref.setAttribute("rel", "stylesheet")
>   fileref.setAttribute("type", "text/css")
>   fileref.setAttribute("href", filename)
>  }
>  if (typeof fileref!="undefined")
>   document.getElementsByTagName("head")[0].appendChild(fileref)
>
> }
>
> The first addLoadEvent is for a user interface modification for SSRS
> itself.  The second loads the jquery system as well as
>
> some jquery commands.
>
> I understand that there is some discussion that the addLoadEvent that
> I am using will wipe out an existing LoadEvent.  I
>
> also understand that Simon Willison has specified a more reliable
> loader at
>
> http://simonwillison.net/2004/May/26/addLoadEvent/ -- however, when I
> try that version, I don't seem to get it to load at
>
> all.  Willison's code looks like:
>
> function addLoadEvent(func) {
>   var oldonload = window.onload;
>   if (typeof window.onload != 'function') {
>     window.onload = func;
>   } else {
>     window.onload = function() {
>       oldonload();
>       func();
>     }
>   }
>
> }
>
> 3  The jQueryPageCommands contains:
>
>    $(document).ready(function(){
>         $("a:contains('Test 1')").attr('href','http://www.google.com');
>    });
>
> Which I use as a test to modify a URL.  On the browsers that this
> works on, the URL is modified as requested.
>
> Some of the things that I have been thinking about:
>
> 1.  Switch to the googleapu method of loading jquery.
> 2.  trying to get S

[jQuery] Re: Superfish spacing between modules/Row height

2009-06-25 Thread Charlie





superfish doesn't apply any heights to elements in default install. All
height is resultant of padding on inner most tag which is 
tags, line 119 of superfish.css

johnnyg wrote:

  I'm definitely not a coder, don't know very much about css, know
nothing about _javascript_.
So that said, I'm trying to make the table row height smaller on a
Joomla! site with Superfish menu module, and have managed to do that a
bit, but not as much as I wanted to, (don't even know how I did it
now!) but ended up with space between the H3 module header/title, and
menu content items, and also at the end of each menu to the header of
the next. Purpose in changing row height is to save 'real estate' so I
have to close up these gaps. Plus it looks weird.

Can't put an image in to show what I mean, so here's the url:
http://www.memex.ca/jonefive/

Having a lot of trouble finding just where to go to tweak this stuff,
and have spent hours and hours on it. Numb! There are so many .css
files involved too - 3 with the Superfish Joomla extension, and two
with the template I don't know much!
Appreciate any pointer with this. Sorry if its in here already
somewhere - did a search and couldn't find it.

John

  






[jQuery] Re: Need help in Login

2009-06-25 Thread Lee R Lemon III


http://www.reynoldsftw.com/2009/03/using-jquery-and-ajax-to-create-php-sessions/

important set your session up before anything else on the page or php
errors




On Jun 24, 3:50 am, bharani kumar 
wrote:
> Hi ,
> Am very much confusion in php login session tracking ,
>
> This is my requirement ,
>
> Am doing travel booking portal ,
>
> Before submit checkout , i have the radio option , that is existing user Yes
> No for new new user ,
>
> If user  clicks  yes , then am showing the login form ,
>
> Here i am entering the username and password , if i submit the button ,
>
> I don't want to refresh the page or no changes in URL ,
>
> After submitted , then i want to track the user details with as usual login
> functionlaity , that is need to track that user details and all ,
>
> If possible without page refresh ,
>
> Thanks
>
> B.S.Bharanikumar


[jQuery] Re: (validate) Radio button values

2009-06-25 Thread Lee R Lemon III

well like many things this has a variable answer...

but what I think you will need to do is write a script that gets the
correct answer (I would use ajax calls to server so the answer can not
be seen in the browser code)
then set an event on the submit button that cycles through your radio
buttons for the correct answer easiest way to do that is add a class
to each and do something sorta like..
//outside a function (before your document.ready as well)
var correctanswer;
//somewhere set the value of correctanwser
$('.your_class').each(
   function(){
   var temp_val =  $('.your_class').val();
   var temp_id =  $('.your_class').attrib('id');
   if(temp_val=='selected'){
   if(temp_id == correctanswer){
   //code for correct answer here
   }
   else{
  //code for wrong answer here
  }
   }

)


On Jun 25, 2:35 pm, Matt Riley  wrote:
> I'm making a simple quiz using jquery and the validate plug-in. I
> think I'm really close but just need a nudge over the last hump.  :-)
>
> I have a radio button group that requires the user to select at least
> one button. That part is working. However, what I want to do is also
> check to see if the user selected a certain button (i.e. the correct
> answer). Only if the correct answer is satisfied will the form then
> validate and move on to the next quiz question.
>
> Here's my code so far. Any help is greatly appreciated.
>
> 
> $.validator.setDefaults({
> submitHandler: function() {
> alert("Submitted!");
>
> }
> });
>
> $.metadata.setType("attr", "validate");
>
> $(document).ready(function() {
>         $("#quiz_form").validate();});
>
> 
>
> 
> 
>
> 
>
> 
>         
>                 
>                         
>                                  name="answers"
> validate="required:true" />
>                                 Answer 1
>                         
>                         
>                                  name="answers" />
>                                 Answer 2
>                         
>                         
>                                  name="answers" />
>                                 Answer 3
>                         
>                         
>                                  name="answers" />
>                                 Answer 4
>                         
>                         Please select an 
> answer.
>                 
>                         
>         
> 
> 
>
> 
> 


[jQuery] Re: Slide back affter slide from right to left;

2009-06-25 Thread Lee R Lemon III

since you are learning

rather then click you will want to use toggle on the one state you
will move right, on the other left

http://docs.jquery.com/Events/toggle#fnfn2fn3.2Cfn4.2C...

probablye easiest tot ake your animate code and create 2 function one
for going left and on for right and fire those using toggle


On Jun 25, 11:36 am, meoluoibieng  wrote:
> Dear all, I'm a newbie , glad to know you, i have read the tutorial
> about Animate Left Margin (http://www.learningjquery.com):
> The code:
> [
>    1.
>       $(document).ready(function() {
>    2.
>         $('#slidemarginleft button').click(function() {
>    3.
>           var $marginLefty = $(this).next();
>    4.
>           $marginLefty.animate({
>    5.
>             marginLeft: parseInt($marginLefty.css('marginLeft'),10) ==
> 0 ?
>    6.
>               $marginLefty.outerWidth() :
>    7.
>               0
>    8.
>           });
>    9.
>         });
>   10.
>       });
>
> ]
>
> Every thing go well but i want to click the button again, and the
> frame return to the position before ( so it slide from right, and i
> want to click the button again and it slide to left to right), my
> problem is after slide left to right , the button not work, please
> help me solve this problem, sorry because English is not the main
> language of me, thanks all;


[jQuery] Re: one div, multiple clicks

2009-06-25 Thread mkauppinen

Ok, but it works only once. What if I want to open it again?


On Jun 25, 3:20 pm, Charlie  wrote:
> in your click function:
> if ($(this).is(":animated")){
>        //do whatever you mean by "close"
>      }
>      //original animation here and remove $(this).animate from mouseleave


[jQuery] Re: tablesorter and pager: How to modify table cells in cache?

2009-06-25 Thread Lee R Lemon III

Do you have this working somewhere I can look at I have some
ideas, but not sure...

Worst case if you can not find the cached rows you could just
create a javascript array of the choosen row when they click the check
box then refer to your own array

On Jun 25, 11:23 am, Darren Brierton 
wrote:
> I'm using tablesorter with the pager plugin. The last cell of each row
> in the table contains a checkbox. The user should not be allowed to
> check more than 10 rows (out of several hundred); once ten checkboxes
> are checked I want to make all the others disabled. Now if I wasn't
> using the pager plugin this would be simplicity itself; using the
> pager plugin it is still simple to disable all the unchecked
> checkboxes currently displayed. But how do I access the rows of the
> table that are cached by the tablesorter plugin that are not currently
> in the DOM? I'm sure it is quite easy, I just can't seem to figure out
> how to access the cached table. I assume that once I can access the
> cache I can disable the checkboxes just as I would the ones on the
> page (and I also assume that I still have to separately disable the
> ones on the page as well as the ones in the cache). Can anyone
> enlighten me?
>
> Thanks in advance.
>
> Best, Darren


[jQuery] Re: Image Processing!!

2009-06-25 Thread Lee R Lemon III

You can use canvas (NOT IE SAFE) in javascript...
or you can use a php/GD script to take the uploaded image and
reprocess it to a transparent png setting the block color when you did
this.

This could be done via ajax, but may be slow on the server so may have
issues there.

On Jun 24, 2:03 pm, rosie  wrote:
> Hi there,
> Just wondering is it possible to take an image, for instance an item
> of clothing and remove the background (all one block color), or make
> it transparent so that the item of clothing which was uploaded onto a
> portfolio on a website can be fited onto a model...to be done
> automaticaly using jQuery.
>
> Thanks,
>
> Rosie


[jQuery] Re: jquery selector

2009-06-25 Thread Lee R Lemon III

try this

jQuery(document).ready(function() {

$(".some-class").hover(
  function () {
 $(this).children('.inside').css
("display", "block");

  },
  function () {
  $(this).children('.inside').css
("display", "none");

  }
);
});

On Jun 25, 7:36 am, vladush  wrote:
> hi,
>
> could anybody help me with jquery selectors?
> i have this code:
> 
>      
> 
> 
>      
> 
> ...
>
> on hover on each "some-class" element i want to set "display: block;"
> for div with "inside" class, but only on div which is child of
> actually hovered element.
>
> is it possible do something like this?
>
>         jQuery(document).ready(function() {
>
>                 $(".some-class").hover(
>                               function () {
>                                      $(this).$(".inside').css("display", 
> "block");
>
>                               },
>                               function () {
>                                      $(this).$(".inside').css("display", 
> "none");
>
>                               }
>                             );
>         });
>
> thank you very much.


[jQuery] (validate) Radio button values

2009-06-25 Thread Matt Riley

I'm making a simple quiz using jquery and the validate plug-in. I
think I'm really close but just need a nudge over the last hump.  :-)

I have a radio button group that requires the user to select at least
one button. That part is working. However, what I want to do is also
check to see if the user selected a certain button (i.e. the correct
answer). Only if the correct answer is satisfied will the form then
validate and move on to the next quiz question.

Here's my code so far. Any help is greatly appreciated.


$.validator.setDefaults({
submitHandler: function() {
alert("Submitted!");
}
});

$.metadata.setType("attr", "validate");

$(document).ready(function() {
$("#quiz_form").validate();
});












Answer 1



Answer 2



Answer 3



Answer 4

Please select an 
answer.










[jQuery] Re: jquery tabs (loading remote content and form submit)

2009-06-25 Thread Lee R Lemon III

If I remember correctly the tabs plugin has can fire a function
you can then use jquery to collect all the values from that form
page... and send them via ajax to a jsp that will post this
datayou will likely want to set a Unique ID of some sort so you
can handle if they go back and change the data...

Then you can load the tab...

If you need more help let me know
On Jun 23, 7:55 pm, psycho_gamer  wrote:
> Hello,
>
> I am incredibly new to the world of jquery.
>
> What I am trying to do is create tabs (using the tabs plug-in) that
> load dynamic content via AJAX (so it makes a call to a jsp). What this
> does is this loads a new part of a form. What I want to do is when the
> user clicks on a new tab, I also want to submit the data that was in
> the original form. I wanted to do this with one request (i.e. the
> request does the save, then loads up the new content).
>
> However, I have no idea how to do this. Please help!


[jQuery] Re: Protect images

2009-06-25 Thread Mario Soto

Actually, sorry for not putting a good descrpition. You're right. What
I want to do is to make harder for a visitor to get the immage,
putting a transparent gif or similar in front of the immage. So, the
immage is loaded by ajax, and never has the same address, and cannot
download the image by right clicking and select save image.

Of course, if can crack a password mostly with patiente, it would not
be hard to keep the immage, but, for the average user (mostly my
users) want to make as imposible as I can.

The immage type I'm dealing with are documents, so it should not be
give "full" access to anyone cappable of right clicking.

Thanks.

On 25 jun, 11:52, Lee R Lemon III  wrote:
> If by protecting you mean keeping from being downloaded NO...
>
> If you want some watermarking, you could use something like php's gd
> function that could aloow for a watermark...
>
> You could also use javascript canvas but that does not work in IE
> without a plugin
>
> On Jun 24, 1:49 pm, Mario Soto  wrote:
>
> > Hi. I want to know if there is a way to protect images that are styled
> > with an overflow auto. I found a lot of tutorials, scripts and plugins
> > for that with "static" images. The big issue here is that the image
> > can (and is usual) to be resized (two buttons are added for that + and
> > -).
>
> > Any ideas? Will be vary good recieved. Thanks.
>
> > --
> > Mario Soto
> > marios...@cancuen.net
> > ..._


[jQuery] Re: [tooltip] dont close tooltip after click

2009-06-25 Thread Frédéric Pillonel
Hi,
I don't know JQuery or JavaScript much, but tooltip takes what's in 'title'
field of its target to create header and body when page loads. I suppose it
creates and put in DOM tree everything else like onMouseOver() or other
functions, so it should be possible to just modify DOM tree to take them in
after it has been initialized, and put them in a timer or somewhere else in
DOM tree.

2009/6/25 Erwin Purnomo 

>
> Hi all
>
> I'm using jquery tooltip by Jorn (http://jquery.bassistance.de/)
>
> It's a great plugin, and pretty too :)
>
> But I want to change it so the tooltip wont close on mouse click
>
> Anyone has idea?


[jQuery] Re: Protect images

2009-06-25 Thread Lee R Lemon III

If by protecting you mean keeping from being downloaded NO...

If you want some watermarking, you could use something like php's gd
function that could aloow for a watermark...

You could also use javascript canvas but that does not work in IE
without a plugin

On Jun 24, 1:49 pm, Mario Soto  wrote:
> Hi. I want to know if there is a way to protect images that are styled
> with an overflow auto. I found a lot of tutorials, scripts and plugins
> for that with "static" images. The big issue here is that the image
> can (and is usual) to be resized (two buttons are added for that + and
> -).
>
> Any ideas? Will be vary good recieved. Thanks.
>
> --
> Mario Soto
> marios...@cancuen.net
> ..._


[jQuery] Attempting to Get jQuery to load into SQL Server Reporting Services Report Manager

2009-06-25 Thread Walt

I'm having trouble loading jQuery into SQL Server Reporting Services
Report Manager.  Since SSRS is a proe-compiles ASPX

page, and we are not given the source code, we have little ability to
make changes to the interface.  If I could add jQuery

directly, the progblem would be trivial.  However, all we have the
ability to modify is an existing Javascript file that is

loaded at runtime in the head of each page.

I have been able to get this to load relatively reliably using IE 8,
but other browsers either don't load it at all, or

only on the first pass.

Here is the structure that I have in place:

1.  Each page load /Reports/ReportManager/js/ReportingServices.js:




2.  ReportingServices.js Contains the following lines at the top:

addLoadEvent(SetMultiSelectParamWidth);
addLoadEvent(loadjQueryFile);

function addLoadEvent(fn)
{
if (window.addEventListener)
   window.addEventListener('load', fn, false)
else if (window.attachEvent)
   window.attachEvent('onload', fn);
}


function loadjQueryFile()
{
loadjscssfile("/Reports/js/jquery-1.3.2.min.js", "js"); //dynamically
load and add this .js file
loadjscssfile("/Reports/js/jQueryPageCommands.js", "js");  //
dynmically load the js Page Commands
}

function loadjscssfile(filename, filetype){
 if (filetype=="js"){ //if filename is a external JavaScript file
  var fileref=document.createElement('script')
  fileref.setAttribute("type","text/javascript")
  fileref.setAttribute("src", filename)
 }
 else if (filetype=="css"){ //if filename is an external CSS file
  var fileref=document.createElement("link")
  fileref.setAttribute("rel", "stylesheet")
  fileref.setAttribute("type", "text/css")
  fileref.setAttribute("href", filename)
 }
 if (typeof fileref!="undefined")
  document.getElementsByTagName("head")[0].appendChild(fileref)
}

The first addLoadEvent is for a user interface modification for SSRS
itself.  The second loads the jquery system as well as

some jquery commands.

I understand that there is some discussion that the addLoadEvent that
I am using will wipe out an existing LoadEvent.  I

also understand that Simon Willison has specified a more reliable
loader at

http://simonwillison.net/2004/May/26/addLoadEvent/  -- however, when I
try that version, I don't seem to get it to load at

all.  Willison's code looks like:

function addLoadEvent(func) {
  var oldonload = window.onload;
  if (typeof window.onload != 'function') {
window.onload = func;
  } else {
window.onload = function() {
  oldonload();
  func();
}
  }
}

3  The jQueryPageCommands contains:

   $(document).ready(function(){
$("a:contains('Test 1')").attr('href','http://www.google.com');
   });

Which I use as a test to modify a URL.  On the browsers that this
works on, the URL is modified as requested.

Some of the things that I have been thinking about:

1.  Switch to the googleapu method of loading jquery.
2.  trying to get Simon Willison's addLoadEvent to properly work.
3.  Trying to load fewer js files into Head, and seeing if I can load
some of this stuff inline
4.  Finding an already used inline function that is running in SSRS on
each page, and trying to stuff my code into that.
5.  Decompile Report Manager and try to rebuild it myself.

Any ideas or recommendations would be gladly accepted.

Walt Crosby
VP of Development
Interval Data Systems, Inc.


[jQuery] Using instance-variables when creating a new Plugin

2009-06-25 Thread Mickel

Hi,
here is a plug-in that I have been working on:

(function($) {

$.fn.extend({
prioritySelector : function() {
// Private members
var list;
var textbox;

// Takes value from textbox and highlights appropriate
button
function refreshGui() {
deselectAll();
var prio = parseInt(textbox.val());

$(list.find('li').get(prio))
.addClass('selected');
}

// Binds events to each prio-button
function bindEvents() {
list.find('li').click(priority_click);
}

// Event: Occurs when prio-button gets clicked
function priority_click() {
var index = list.find('li').index(this);
textbox.val(index);
refreshGui();
}

// Deselects all prio-buttons
function deselectAll() {
list.find('li').removeClass('selected');
}

// Constructor
return this.each(function() {
list = $(this);
textbox = list.parent().parent().find('.tbPrio');

refreshGui();
bindEvents();
});
}
});

})(jQuery);


It works good if I apply it only once, however if I use it multiple
times on the same page, the click-event (handled in priority_click() )
only works on the last one added.

I think it is because the way I have stored my "instance-variables"
and they become class-variables instead, wich makes this work only
once.


Is there a way to store instance-variables for a jQuery-plugin?

Any other suggestions?


Thanks!


[jQuery] [autocomplete] Autocomplete plugin help please

2009-06-25 Thread rm

Well, the issue is - it doesnt seem to work on my server. My local
copy works perfectly, but th server copy doesnt.

See here: http://mousehunt.thetoxiczone.com/autosugg.html

Thanks for helping out!


[jQuery] Superfish spacing between modules/Row height

2009-06-25 Thread johnnyg

I'm definitely not a coder, don't know very much about css, know
nothing about Java Script.
So that said, I'm trying to make the table row height smaller on a
Joomla! site with Superfish menu module, and have managed to do that a
bit, but not as much as I wanted to, (don't even know how I did it
now!) but ended up with space between the H3 module header/title, and
menu content items, and also at the end of each menu to the header of
the next. Purpose in changing row height is to save 'real estate' so I
have to close up these gaps. Plus it looks weird.

Can't put an image in to show what I mean, so here's the url:
http://www.memex.ca/jonefive/

Having a lot of trouble finding just where to go to tweak this stuff,
and have spent hours and hours on it. Numb! There are so many .css
files involved too - 3 with the Superfish Joomla extension, and two
with the template I don't know much!
Appreciate any pointer with this. Sorry if its in here already
somewhere - did a search and couldn't find it.

John


[jQuery] jCarousel and li width !important crashes Safari

2009-06-25 Thread dvs

Couldn't find this bug reported previously. If the width of a
carousel's list items are defined with an !important declaration in
the CSS, Safari 3 crashes after jQuery advances the carousel and
attempts to remove the old slides from the DOM in the
itemVisibleOutCallback function.

Workaround is simple, just remove the !important declaration and make
your CSS selector more specific.


[jQuery] jquery selector

2009-06-25 Thread vladush

hi,

could anybody help me with jquery selectors?
i have this code:

 


 

...


on hover on each "some-class" element i want to set "display: block;"
for div with "inside" class, but only on div which is child of
actually hovered element.

is it possible do something like this?

jQuery(document).ready(function() {

$(".some-class").hover(
  function () {
 $(this).$(".inside').css("display", 
"block");

  },
  function () {
 $(this).$(".inside').css("display", 
"none");

  }
);
});


thank you very much.


[jQuery] Superfish - click menu to wrap

2009-06-25 Thread Oscar_Aldana

Hello, mental know how to make the menu is collected after you click
on the options menu


[jQuery] jQ animate doesn´t work in FireFox

2009-06-25 Thread Enano

Hi I´m having problems if I try to run code with Fire Fox.
I used some "animate" code examples from the tutorial but doesn´t
work...
Everything looks good with IE or Safari.
Any help please.

Thanks.


[jQuery] [autocomplete] Autocomplete plugin help please

2009-06-25 Thread rm

Well, the issue is - it doesnt seem to work on my server. My local
copy works perfectly, but th serever doesnt.

See here: http://mousehunt.thetoxiczone.com/autosugg.html

Thanks for helping out!


[jQuery] [autocomplete] Autocomplete plugin help please

2009-06-25 Thread rm

Well, the issue is - it doesnt seem to work on my server. My local
copy works perfectly, but th server copy doesnt.

See here: http://mousehunt.thetoxiczone.com/autosugg.html

Thanks for helping out!


[jQuery] tablesorter and pager: How to modify table cells in cache?

2009-06-25 Thread Darren Brierton

I'm using tablesorter with the pager plugin. The last cell of each row
in the table contains a checkbox. The user should not be allowed to
check more than 10 rows (out of several hundred); once ten checkboxes
are checked I want to make all the others disabled. Now if I wasn't
using the pager plugin this would be simplicity itself; using the
pager plugin it is still simple to disable all the unchecked
checkboxes currently displayed. But how do I access the rows of the
table that are cached by the tablesorter plugin that are not currently
in the DOM? I'm sure it is quite easy, I just can't seem to figure out
how to access the cached table. I assume that once I can access the
cache I can disable the checkboxes just as I would the ones on the
page (and I also assume that I still have to separately disable the
ones on the page as well as the ones in the cache). Can anyone
enlighten me?

Thanks in advance.

Best, Darren


[jQuery] Slide back affter slide from right to left;

2009-06-25 Thread meoluoibieng

Dear all, I'm a newbie , glad to know you, i have read the tutorial
about Animate Left Margin ( http://www.learningjquery.com ):
The code:
[
   1.
  $(document).ready(function() {
   2.
$('#slidemarginleft button').click(function() {
   3.
  var $marginLefty = $(this).next();
   4.
  $marginLefty.animate({
   5.
marginLeft: parseInt($marginLefty.css('marginLeft'),10) ==
0 ?
   6.
  $marginLefty.outerWidth() :
   7.
  0
   8.
  });
   9.
});
  10.
  });

]

Every thing go well but i want to click the button again, and the
frame return to the position before ( so it slide from right, and i
want to click the button again and it slide to left to right), my
problem is after slide left to right , the button not work, please
help me solve this problem, sorry because English is not the main
language of me, thanks all;


[jQuery] Re: Expand and close Accordion List by choice without hover

2009-06-25 Thread amuhlou

it sounds like the jQuery UI Accordion widget would suit your needs
much better.

http://jqueryui.com/demos/accordion/

On Jun 25, 1:03 pm, Charlie  wrote:
> superfish menu was never designed to work on a click
> if you search this group  with "superfish click" you will find some threads 
> on this.  There are some patches for click in this search, i tried them one 
> day but never got them working
> ironwiller wrote:hi, i would like to ask what must i change and in which file 
> / line so i can have instead of on hover and closing automatically the 
> ability to expand by myself and close myself the menu with accordion list 
> choise...the site preview is:http://preview.nosmoke.grty in advanced for your 
> help


[jQuery] Re: Help ::Without URL / pagerefresh to get into login ((-->very urgent<--))

2009-06-25 Thread bharani kumar
Hi all,
for example am saying ,

around 10 fields in the form , u have entered all the fields, then u are see
card selection ,

the site asking u , u have account in our site, if yes means, we have show
the login link ,

Here please consentrate , if the enter the username and password , then they
submit the form , what will happen , the page gets refresh , so other values
get disappears ,

Thats y am asking / looking the code ,

without page refresh to login ,

Thanks



On Thu, Jun 25, 2009 at 9:38 PM, Charlie  wrote:

>   I tried to prompt a reasonable discussion on this , it doesn't appear you
> wish to help anyone help you
>
> personally I have no idea *exactly* what you are looking for , provided a
> multitude of resources to try to narrow it down and got a 6 word reply
>
> good luck to you...maybe someone else might try to help or get the code
> from youtube
>
>
>
>
> bharani kumar wrote:
>
> nothing simply like , you tube login
>
> On Thu, Jun 25, 2009 at 5:52 PM, Charlie  wrote:
>
>> Your request is so vague have no idea what you really need or what your
>> expectations are
>>
>> The following  were all very *easy* to find using jquery site and/or
>> google !
>>
>> http://docs.jquery.com/Ajax
>>
>> http://malsup.com/jquery/form/
>>
>> http://docs.jquery.com/Plugins/Validation
>>
>>
>> http://net.tutsplus.com/tutorials/javascript-ajax/submit-a-form-without-page-refresh-using-jquery/
>>
>>  suggestion : do some  research and then ask specific questions,
>>
>>
>>
>>
>>
>> bharani kumar wrote:
>>
>> Hi all ,
>>  Yes this is second post , i don't get reply for my first post ,
>>
>>  Am working on the travel booking site,
>>
>>  In my site user select the oder , after selected , there i given the
>> divertion , pay by card or cash ,
>>
>>  Assume if they choose card , then i show the links like , login(existing
>> customer) , register , directly enter card details ,
>>
>>  So if they click the login LINK,
>>
>>  Then am showing the login form without page refresh ,
>>
>>  *HERE i need your help*
>> *
>> *
>> *If they enter the username and password , after they hit the submit ,*
>> *
>> *
>> *I want to login without page refresh and URL changes ,*
>> *
>> *
>> *Any great suggestion i really appreciate , *
>> *
>> *
>> *Any doubt in my question , hesitate to  reply ,*
>> *
>> *
>> *Thanks *
>> *
>> *
>> *B.S.Bharanikumar*
>> *
>> *
>> *very urgent very urgent very urgent*
>>
>>
>>
>>
>> --
>> Regards
>> B.S.Bharanikumar
>> http://php-mysql-jquery.blogspot.com/
>>
>>
>>
>
>
> --
> Regards
> B.S.Bharanikumar
> http://php-mysql-jquery.blogspot.com/
>
>
>


-- 
Regards
B.S.Bharanikumar
http://php-mysql-jquery.blogspot.com/


[jQuery] Re: jquery adding and removing row

2009-06-25 Thread Mauricio (Maujor) Samy Silva
The following block of code isn't working:

newo.find('.remove').click(function () {
newo.remove();
alert('hel');
});

It should be:

$('.remove').click(function () {
$(this).parents('tr').remove();
});

Addicionaly check the sintaxe for:

.item :last

should be:

.item:last (without a blank space in between)

Maurício


  -Mensagem Original- 
  De: introvert 
  Para: jQuery (English) 
  Enviada em: quinta-feira, 25 de junho de 2009 14:04
  Assunto: [jQuery] jquery adding and removing row



  Hello,

  I want to be able to add row at the end of the table with a 'remove'
  link which will remove specific row.



[jQuery] copy addresses

2009-06-25 Thread efet

I am trying to overwrite fields with stored adresses in the following
page. But its not working as though not giving any errors. Do you see
anything wrong here?


$(function() {
$("input#copyshipping").click(function(){
if ($("input#copyshipping").is(':checked'))
{
// Checked, copy values
$("input#BillingFirstName").val("<%=Session
("ShippingFIRSTNAME")%>");
$("input#BillingLastName").val("<%=Session
("ShippingLASTNAME")%>");
$("input#BillingAddress1").val("<%=Session("ShippingADDRESS1")
%>");
$("input#BillingAddress2").val("<%=Session
("ShippingADDRESS2")%>");
$("input#BillingCity").val("<%=Session("ShippingCITY")
%>");
$("input#BillingState").val("<%=Session("ShippingSTATE")
%>");
$("input#BillingCountry").val("<%=Session
("ShippingPOSTALCODE")%>");
$("input#BillingPostalCode").val("<%=Session
("ShippingCOUNTRY")%>");
} else {
// Clear on uncheck
$("input#BillingFirstName").val("");
$("input#BillingLastName").val("");
$("input#BillingAddress1").val("");
$("input#BillingAddress2").val("");
$("input#BillingCity").val("");
$("input#BillingState").val("");
$("input#BillingCountry").val("");
$("input#BillingPostalCode").val("");
}
});
});


[jQuery] jquery adding and removing row

2009-06-25 Thread introvert

Hello,

I want to be able to add row at the end of the table with a 'remove'
link which will remove specific row.

The code I've managed to write so far:

$(document).ready(function() {

$("#add_item").click(function () {
var html = "remove";
var o = $("#calc .item :last");
var newo = o.parent().after(html);

newo.find('.remove').click(function () {
newo.remove();
alert('hel');
});


item_id++;
return false;
});

});

should work with the following html structure:



test


test



The problem is it wont instert the row at the proper place (after the
last .item (class) and the remove link wont work for the last row in
the table/list.

I have no idea why no handler is put on the last row.
Any help is highly appreciated!


[jQuery] Re: Expand and close Accordion List by choice without hover

2009-06-25 Thread Charlie





superfish menu was never designed to work on a click

if you search this group  with "superfish click" you will find some
threads on this.  There are some patches for click in this search, i
tried them one day but never got them working

ironwiller wrote:

  hi, i would like to ask what must i change and in which file / line so
i can have instead of on hover and closing automatically the ability
to expand by myself and close myself the menu with accordion list
choise...the site preview is: http://preview.nosmoke.gr

ty in advanced for your help

  






[jQuery] Expand and close Accordion List by choice without hover

2009-06-25 Thread ironwiller

hi, i would like to ask what must i change and in which file / line so
i can have instead of on hover and closing automatically the ability
to expand by myself and close myself the menu with accordion list
choise...the site preview is: http://preview.nosmoke.gr

ty in advanced for your help


[jQuery] Re: Toggle Text

2009-06-25 Thread Mauricio (Maujor) Samy Silva
Add the following to your script:

 if ( $(this).is(':checked') ) {
   $('#CheckAll').html('Uncheck All');
} else {
   $('#CheckAll').html('Check All');
}
 Maurício

  -Mensagem Original- 
  De: evanbu...@gmail.com 
  Para: jQuery (English) 
  Enviada em: quinta-feira, 25 de junho de 2009 13:12
  Assunto: [jQuery] Toggle Text



  Hi

  I'm using this to check/uncheck a group of checkboxes which works
  fine.  However, when all of checkboxes are checked, I would like the
  span id="CheckAll" to read "Uncheck All" and to toggle back to "Check
  All" when all of the boxes are unchecked.

  
  
  $(document).ready(function() {
  $('#chkAll').click(
   function() {
  $("INPUT[type='checkbox']").attr('checked', $
  ('#chkAll').is(':checked'));
  });
   });
  

  
  
  Check All
  

  Thanks

[jQuery] Re: Image Processing!!

2009-06-25 Thread Danny

There are people using  elements to do image processing in
Javascript; see http://ejohn.org/blog/ocr-and-neural-nets-in-javascript/
and http://www.pixastic.com/

On Jun 24, 2:03 pm, rosie  wrote:
> Hi there,
> Just wondering is it possible to take an image, for instance an item
> of clothing and remove the background (all one block color), or make
> it transparent so that the item of clothing which was uploaded onto a
> portfolio on a website can be fited onto a model...to be done
> automaticaly using jQuery.
>
> Thanks,
>
> Rosie


[jQuery] Re: Slider moveTo stopped working

2009-06-25 Thread StanW


Thank you! I did not know that.

Stan


Charlie Tomlinson wrote:
> 
> 
> there is a separate google group for jquery UI , you'll probably do
> better there. Try searching slider issues on that group, it's a common
> topic 
> http://groups.google.com/group/jquery-ui?pli=1 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Slider-moveTo-stopped-working-tp24177057s27240p24206678.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



[jQuery] Re: Toggle Text

2009-06-25 Thread ravi


On Jun 25, 2009, at 12:12 PM, evanbu...@gmail.com wrote:


I'm using this to check/uncheck a group of checkboxes which works
fine.  However, when all of checkboxes are checked, I would like the
span id="CheckAll" to read "Uncheck All" and to toggle back to "Check
All" when all of the boxes are unchecked.



I am usually loathe to introduce complexities like the above since for  
this rather trivial luxury, the code may have to loop through all  
checkboxes each time the user checks/unchecks a box. Instead, two  
separate buttons, one labelled "check all" and another "uncheck all",  
rather than a toggle, might be a better idea?


To answer your question though, I have only a hint (for now): perhaps  
something along the lines of the below (each time a checkbox is  
checked or unchecked) might work:


var checkedcount = $("INPUT[type='checkbox'] :checked").length();
if( checkedcount == 0 )
{
    toggle text to "check all" ...
}
else
{
var boxcount = $("INPUT[type='checkbox']").length();
if( boxcount == checkedcount )
{
... toggle text to "uncheck all" ...
}
}

A very simplistic approach (and the ":checked" above, as well as the  
use of .length(), is just my guess on what the selector should be;  
don't know off the top of my head without looking at some docs) which  
I am certain can be improved upon or discarded for a better approach.


--ravi




   
   $(document).ready(function() {
   $('#chkAll').click(
function() {
   $("INPUT[type='checkbox']").attr('checked', $
('#chkAll').is(':checked'));
   });
});




Check All


Thanks





[jQuery] Re: Slider moveTo stopped working

2009-06-25 Thread Charlie





there is a separate google group for jquery UI , you'll probably do
better there. Try searching slider issues on that group, it's a common
topic
http://groups.google.com/group/jquery-ui?pli=1


StanW wrote:

  
Thank you. However using 'value' moves the slider into the correct place, but
if the form is submitted without the sliders (I have 30 or so in each page)
being moved, the submitted values are null. I want viewers to be able to
return to a web page and move one or more sliders, but not have to re-enter
all of them.

Any help will be greatly appreciated! I really need to get this working
again.

Stan



Matthew-97 wrote:
  
  

Check out the 'value' option, moveTo was removed but value should do
the same: http://docs.jquery.com/UI/API/1.7/Slider



  
  
  






[jQuery] Re: Ajax uplaod

2009-06-25 Thread sinkingfish


Turns out the problem was with 'var'.

Changed 'clickedItem = this;' to 'var clickedItem = this;' solved my
problem. I'm going to have to read up on var, it was my understanding that
using var within a function made it local. Hmmm... ??



sinkingfish wrote:
> 
> I'm doing some ajax image uploads using the plugin at valums.com (thanks).
> 
> I have multiple images on the page which I will be replacing with the
> uploaded image. My problem is this, trying to refer to the clicked image
> within the onComplete function.
> 
> I tried creating a variable that refered to 'this' which I beleive to be
> the image element but when I make the change to the element it is not
> refected, making me think that the variable is a copy and not a reference
> ?
> 
> I've pasted here for you to have a peak.
> http://pastie.org/524221
> 
> Thanks 
> 
> Brian
> 

-- 
View this message in context: 
http://www.nabble.com/Ajax-uplaod-tp24203971s27240p24206367.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



[jQuery] Re: Superfish conflicht with Header Image for Joomla 1.5

2009-06-25 Thread Charlie





the majority of the problems with superfish integration into Joomla are
css issues. The existing template menu css doesn't get removed when you
install superfish and some of the template css conflicts with superfish

providing a link would help 

deboni wrote:

  Thanks! that seems to be the right approach. However I have no idea
how I should implement that into Joomla. Maybe it has been done
before?

On Jun 19, 9:52 pm, Theodore Ni  wrote:
  
  
I don't know the details behind your specific problem, but a solution may be
found at the following link:

http://docs.jquery.com/Using_jQuery_with_Other_Libraries

Teddy

On Fri, Jun 19, 2009 at 2:42 PM, deboni  wrote:



  Hi
  


  I'm using your superfish menu on a joomla website. It works perfect,
but there seems to be a conflict with another module which is using
mootools.
  


  They say the mootols (seems to be standard on Joomla 1.5) and jquery
can not be mixed.
  


  Do you know of any workaround for that problem?
  


  The menu is being used here?
  


  Best regards
  


  Silvio
  

  
  
  






[jQuery] Toggle Text

2009-06-25 Thread evanbu...@gmail.com

Hi

I'm using this to check/uncheck a group of checkboxes which works
fine.  However, when all of checkboxes are checked, I would like the
span id="CheckAll" to read "Uncheck All" and to toggle back to "Check
All" when all of the boxes are unchecked.



$(document).ready(function() {
$('#chkAll').click(
 function() {
$("INPUT[type='checkbox']").attr('checked', $
('#chkAll').is(':checked'));
});
 });




Check All


Thanks


[jQuery] Re: Help ::Without URL / pagerefresh to get into login ((-->very urgent<--))

2009-06-25 Thread Charlie





 I tried to prompt a reasonable discussion on this , it doesn't appear
you wish to help anyone help you

personally I have no idea *exactly* what you are looking for , provided
a multitude of resources to try to narrow it down and got a 6 word reply

good luck to you...maybe someone else might try to help or get the
code from youtube



bharani kumar wrote:
nothing simply like , you tube login 
  
  On Thu, Jun 25, 2009 at 5:52 PM, Charlie 
wrote:
  
Your request is so vague have
no idea what you really need or what your
expectations are

The following  were all very *easy* to find using jquery site and/or
google !

http://docs.jquery.com/Ajax

http://malsup.com/jquery/form/

http://docs.jquery.com/Plugins/Validation

http://net.tutsplus.com/tutorials/_javascript_-ajax/submit-a-form-without-page-refresh-using-jquery/

 suggestion : do some  research and then ask specific questions, 






bharani kumar wrote:
Hi all ,
  
  
  Yes this is second post , i don't get reply for my first
post ,
  
  
  Am working on the travel booking site,
  
  
  In my site user select the oder , after selected , there i
given
the divertion , pay by card or cash , 
  
  
  Assume if they choose card , then i show the links like ,
login(existing customer) , register , directly enter card details ,
  
  
  So if they click the login LINK,
  
  
  Then am showing the login form without page refresh ,
  
  
  HERE i need your help
  
  
  If they enter the username and password , after they hit
the
submit ,
  
  
  I want to login without page refresh and URL changes ,
  
  
  Any great suggestion i really appreciate , 
  
  
  Any doubt in my question , hesitate to  reply ,
  
  
  Thanks 
  
  
  B.S.Bharanikumar
  
  
  very urgent very urgent very urgent
  
  
  
  
  
  
-- 
Regards
B.S.Bharanikumar
  http://php-mysql-jquery.blogspot.com/
  





  
  
  
  
  
-- 
Regards
B.S.Bharanikumar
  http://php-mysql-jquery.blogspot.com/






[jQuery] Re: Toggle question..

2009-06-25 Thread brian

First, don't remove the profile info from the page when you first load
the form. Just fade it out. Then, say you had the profile info in a
div with ID 'profile' and the form in a div with ID 'edit_profile':

$('#cancel').click(function()
{
$('#edit_profile').fadeOut().remove();
$('#profile').fadeIn();
});

On Thu, Jun 25, 2009 at 9:44 AM, Dave Maharaj ::
WidePixels.com wrote:
> I load form into a div replaceing the content thats there with a form that
> will be updating the content .
>
> So click here to edit your profile -> profile info fades out -> form loads
> inplace...all good and simple
>
> Now "cancel" how can if a user clicks "cancel " remove the form and
> replace it with the original content that was there?
>
> I have an ajax submit working fine...but if the user decides to cancel how
> would i return the original i n fo that was there?
>
> Dave


[jQuery] Re: Slider moveTo stopped working

2009-06-25 Thread StanW


Thank you. However using 'value' moves the slider into the correct place, but
if the form is submitted without the sliders (I have 30 or so in each page)
being moved, the submitted values are null. I want viewers to be able to
return to a web page and move one or more sliders, but not have to re-enter
all of them.

Any help will be greatly appreciated! I really need to get this working
again.

Stan



Matthew-97 wrote:
> 
> 
> Check out the 'value' option, moveTo was removed but value should do
> the same: http://docs.jquery.com/UI/API/1.7/Slider
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Slider-moveTo-stopped-working-tp24177057s27240p24205827.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



[jQuery] Re: Help ::Without URL / pagerefresh to get into login ((-->very urgent<--))

2009-06-25 Thread bharani kumar
nothing simply like , you tube login

On Thu, Jun 25, 2009 at 5:52 PM, Charlie  wrote:

>  Your request is so vague have no idea what you really need or what your
> expectations are
>
> The following  were all very *easy* to find using jquery site and/or google
> !
>
> http://docs.jquery.com/Ajax
>
> http://malsup.com/jquery/form/
>
> http://docs.jquery.com/Plugins/Validation
>
>
> http://net.tutsplus.com/tutorials/javascript-ajax/submit-a-form-without-page-refresh-using-jquery/
>
>  suggestion : do some  research and then ask specific questions,
>
>
>
>
>
> bharani kumar wrote:
>
> Hi all ,
>  Yes this is second post , i don't get reply for my first post ,
>
>  Am working on the travel booking site,
>
>  In my site user select the oder , after selected , there i given the
> divertion , pay by card or cash ,
>
>  Assume if they choose card , then i show the links like , login(existing
> customer) , register , directly enter card details ,
>
>  So if they click the login LINK,
>
>  Then am showing the login form without page refresh ,
>
>  *HERE i need your help*
> *
> *
> *If they enter the username and password , after they hit the submit ,*
> *
> *
> *I want to login without page refresh and URL changes ,*
> *
> *
> *Any great suggestion i really appreciate , *
> *
> *
> *Any doubt in my question , hesitate to  reply ,*
> *
> *
> *Thanks *
> *
> *
> *B.S.Bharanikumar*
> *
> *
> *very urgent very urgent very urgent*
>
>
>
>
> --
> Regards
> B.S.Bharanikumar
> http://php-mysql-jquery.blogspot.com/
>
>
>


-- 
Regards
B.S.Bharanikumar
http://php-mysql-jquery.blogspot.com/


[jQuery] Re: horizontal Menu with no child menu

2009-06-25 Thread Sha

i have done no customization. Its the builtin  behavior of  superfish
menu that you must add a submenu item at least, in order for sub menu
to be displayed. I dont want to add a submenu item but i still  want
to display the submenu undernearth the main tabs or main menu.

Just look at the horizontal  menu example on the site and you willl
understand what i am talking about.

On Jun 25, 6:33 pm, Charlie  wrote:
> good chance you would get some help here but not without a link to see what 
> "wierd behavior" means, and to see code that causes it
> if it's a plugin menu helps to know what it is also
> Sha wrote:I want to make a horizontal menu with a lot of menu items but some 
> of them wont have any sub menus associated with them. Right now, i have to 
> add at least one item in submenu with sometext in it, else it gives a weired 
> behavior. But I want that any of the items should have no items below it yet 
> submenu shud be displayed, just like a long horizontal bar.. Can any one help 
> me?


[jQuery] Ajax uplaod

2009-06-25 Thread sinkingfish


I'm doing some ajax image uploads using the plugin at valums.com (thanks).

I have multiple images on the page which I will be replacing with the
uploaded image. My problem is this, trying to refer to the clicked image
within the onComplete function.

I tried creating a variable that refered to 'this' which I beleive to be the
image element but when I make the change to the element it is not refected,
making me think that the variable is a copy and not a reference ?

I've pasted here for you to have a peak.
http://pastie.org/524221

Thanks 

Brian
-- 
View this message in context: 
http://www.nabble.com/Ajax-uplaod-tp24203971s27240p24203971.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



[jQuery] Toggle question..

2009-06-25 Thread Dave Maharaj :: WidePixels.com
I load form into a div replaceing the content thats there with a form that
will be updating the content . 
 
So click here to edit your profile -> profile info fades out -> form loads
inplace...all good and simple
 
Now "cancel" how can if a user clicks "cancel " remove the form and
replace it with the original content that was there?
 
I have an ajax submit working fine...but if the user decides to cancel how
would i return the original i n fo that was there?
 
Dave


[jQuery] Re: horizontal Menu with no child menu

2009-06-25 Thread Charlie





good chance you would get some help here but not without a link to see
what "wierd behavior" means, and to see code that causes it

if it's a plugin menu helps to know what it is also

Sha wrote:

  I want to make a horizontal menu with a lot of menu items but some of
them wont have any sub menus associated with them.

Right now, i have to add at least one item in submenu with sometext in
it, else it gives a weired behavior.
But I want that any of the items should have no items below it yet
submenu shud be displayed,  just like a long horizontal bar..

Can any one help me?

  






[jQuery] Re: Help ::Without URL / pagerefresh to get into login ((-->very urgent<--))

2009-06-25 Thread Charlie





Your request is so vague have no idea what you really need or what your
expectations are

The following  were all very *easy* to find using jquery site and/or
google !

http://docs.jquery.com/Ajax

http://malsup.com/jquery/form/

http://docs.jquery.com/Plugins/Validation

http://net.tutsplus.com/tutorials/_javascript_-ajax/submit-a-form-without-page-refresh-using-jquery/

 suggestion : do some  research and then ask specific questions, 





bharani kumar wrote:
Hi all ,
  
  
  Yes this is second post , i don't get reply for my first post ,
  
  
  Am working on the travel booking site,
  
  
  In my site user select the oder , after selected , there i given
the divertion , pay by card or cash , 
  
  
  Assume if they choose card , then i show the links like ,
login(existing customer) , register , directly enter card details ,
  
  
  So if they click the login LINK,
  
  
  Then am showing the login form without page refresh ,
  
  
  HERE i need your help
  
  
  If they enter the username and password , after they hit the
submit ,
  
  
  I want to login without page refresh and URL changes ,
  
  
  Any great suggestion i really appreciate , 
  
  
  Any doubt in my question , hesitate to  reply ,
  
  
  Thanks 
  
  
  B.S.Bharanikumar
  
  
  very urgent very urgent very urgent
  
  
  
  
  
  
-- 
Regards
B.S.Bharanikumar
  http://php-mysql-jquery.blogspot.com/
  






[jQuery] Re: one div, multiple clicks

2009-06-25 Thread Charlie





in your click function:

if ($(this).is(":animated")){
       //do whatever you mean by "close"
     }
     //original animation here and remove $(this).animate from
mouseleave


mkauppinen wrote:

  Hi!

I have one div (.masterpiece) and now i can open it by click and close
it by move mouse out.

How I can make it so that it also close when i click it again (when
it's enlarged)?



	$(".masterpiece").bind("mouseenter",function(){

		$(".shade", this)
			.animate({ opacity: "0.4" }, {duration: 500, queue: false});

	}).bind("click",function(){

		$(this)
			.animate({ height: "450px" }, {duration: 500, easing:
"easeOutBounce", queue: false})
			.css('zIndex', '10');

		$(".shade", this)
			.animate({ opacity: "0" }, {duration: 500, queue: false});

		$("#bigshade")
			.animate({ opacity: "0.8" }, {duration: 500, queue: false})
			.css('zIndex', '5');

	}).bind("mouseleave",function(){

		$(this)
			.animate({ height: "80px" }, {duration: 500, queue: false})
			.css('zIndex', '1');

		$(".shade", this)
			.animate({ opacity: "0.8" }, {duration: 500, queue: false});

		$("#bigshade")
			.animate({ opacity: "0" }, {duration: 500, queue: false})
			.css('zIndex', '0');

	});


Thanks!

  






[jQuery] Re: Superfish conflicht with Header Image for Joomla 1.5

2009-06-25 Thread deboni

Thanks! that seems to be the right approach. However I have no idea
how I should implement that into Joomla. Maybe it has been done
before?

On Jun 19, 9:52 pm, Theodore Ni  wrote:
> I don't know the details behind your specific problem, but a solution may be
> found at the following link:
>
> http://docs.jquery.com/Using_jQuery_with_Other_Libraries
>
> Teddy
>
> On Fri, Jun 19, 2009 at 2:42 PM, deboni  wrote:
>
> > Hi
>
> > I'm using your superfish menu on a joomla website. It works perfect,
> > but there seems to be a conflict with another module which is using
> > mootools.
>
> > They say the mootols (seems to be standard on Joomla 1.5) and jquery
> > can not be mixed.
>
> > Do you know of any workaround for that problem?
>
> > The menu is being used here?
>
> > Best regards
>
> > Silvio


[jQuery] Re: Superfish conflicht with Header Image for Joomla 1.5

2009-06-25 Thread deboni

Thanks! that seems to be the right approach. However I have no idea
how I should implement that into Joomla. Maybe it has been done
before?

On Jun 19, 9:52 pm, Theodore Ni  wrote:
> I don't know the details behind your specific problem, but a solution may be
> found at the following link:
>
> http://docs.jquery.com/Using_jQuery_with_Other_Libraries
>
> Teddy
>
> On Fri, Jun 19, 2009 at 2:42 PM, deboni  wrote:
>
> > Hi
>
> > I'm using your superfish menu on a joomla website. It works perfect,
> > but there seems to be a conflict with another module which is using
> > mootools.
>
> > They say the mootols (seems to be standard on Joomla 1.5) and jquery
> > can not be mixed.
>
> > Do you know of any workaround for that problem?
>
> > The menu is being used here?
>
> > Best regards
>
> > Silvio


[jQuery] add link to leave in treeview async?

2009-06-25 Thread Kasper

How do i add a link to the leaves using treeview async?

I'm feeding it json encoded arrays like array('text' => hello, 'id' =>
1) and i'd like to add a 'url' => '/test.php' for example but i can't
figure out how to do this? Is this possible?

Thank you in advance


[jQuery] Re: Avoid the autocomplete menu to go offscreen by positioning it on top

2009-06-25 Thread Jörn Zaefferer
Hi,

thanks for sharing. The jQuery UI team is currently working on the
specification for its autocomplete (based on this plugin):
http://wiki.jqueryui.com/Autocomplete
It will leverage the collision detection of PositionTo
(http://jqueryui.pbworks.com/PositionTo) to handle situations like
this!

Jörn

On Wed, Jun 24, 2009 at 7:44 PM, Christophe wrote:
>
> Sometime the autocomplete menu will not be entirely visible because of
> the input is at the bottom of the screen
> To fix this problem i have created a small hack that will position the
> selectbox on top of the input.
>
>
> To see what I mean  look at the image:
> http://tinypic.com/r/t6zcrc/5
>
> code:
> autocomple.js line 701:
> replace function show by
> [code]
> show: function() {
>                if(options.scroll) {
>                list.scrollTop(0);
>                list.css({
>                                        maxHeight: options.scrollHeight,
>                                        overflow: 'auto'
>                                });
>
>                if($.browser.msie && typeof
> document.body.style.maxHeight === "undefined") {
>                                        var listHeight = 0;
>                                        listItems.each(function() {
>                                                listHeight += 
> this.offsetHeight;
>                                        });
>                                        var scrollbarsVisible = listHeight > 
> options.scrollHeight;
>                    list.css('height', scrollbarsVisible ?
> options.scrollHeight : listHeight );
>                                        if (!scrollbarsVisible) {
>                                                // IE doesn't recalculate 
> width when scrollbar disappears
>                                                listItems.width( list.width() 
> - parseInt(listItems.css("padding-
> left")) - parseInt(listItems.css("padding-right")) );
>                                        }
>                }
>            }
>
>            var offset = $(input).offset();
>                        var topPos = offset.top + input.offsetHeight;
>            var leftPos = offset.left;
>
>            var elmHeight = element.height();
>            var windowHeight = $(window).height();
>
>            // Check that position of Select does not go off screen-
> If so put select on top .
>            if ( (topPos + elmHeight) > windowHeight) {
>                topPos = offset.top - elmHeight;
>            }
>
>            element.css({
>                                width: typeof options.width == "string" || 
> options.width > 0 ?
> options.width : $(input).width(),
>                                top: topPos,
>                                left: leftPos
>                        }).show();
>                },
> [/code]
>
> Hope it helps someone
>
> Cheers
>
>


[jQuery] Re: Image Processing!!

2009-06-25 Thread Liam Byrne


Sounds like something you would do BEFORE the image was uploaded to the 
server, e.g. save the image as PNG or .GIF


Definitely couldn't be done "automatically", as you'd have to indicate 
what colour was meant to be "removed".


Liam

rosie wrote:

Hi there,
Just wondering is it possible to take an image, for instance an item
of clothing and remove the background (all one block color), or make
it transparent so that the item of clothing which was uploaded onto a
portfolio on a website can be fited onto a model...to be done
automaticaly using jQuery.

Thanks,

Rosie



No virus found in this incoming message.
Checked by AVG - www.avg.com 
Version: 8.5.375 / Virus Database: 270.12.91/2201 - Release Date: 06/25/09 06:22:00


  




[jQuery] Re: Highlight Current Button on jCarousel Lite When Using External Controls

2009-06-25 Thread alisetan

visit this post

http://mheidzir.wordpress.com/2009/06/25/how-to-highlight-external-controller-for-jcarousel/

On Jun 12, 11:10 pm, Build Interactive 
wrote:
> Is it possible? I have seen this requested numerous times but found no
> solution. When using the external controls, I want to add a class to
> the selected navigation number. I'm assuming this could be done using
> the callback but I don't know how. Ideas? Thanks


[jQuery] History plugin? DropDowns are emtpy after using "Back"-button of browser

2009-06-25 Thread DigitalDude

Hey,

I know this issue has probably been discussed before, but I need a
little help to get this to work and I need to know how I can solve
this problem once!

Here's the situation:
On Page 1 2 selects which are dependent on one another (for example
first one is Country, User choses the country, and the second dropdown
is populated after retrieving the Locations for this country via AJAX
call)
When I leave the page, and then use the "GoBack" Button of my browser,
the select-boxes are empty.

There has to be an easy way to solve this problem I believe. So
please, help me getting it to work!

Thanks in advance!



[jQuery] Avoid the autocomplete menu to go offscreen by positioning it on top

2009-06-25 Thread Christophe

Sometime the autocomplete menu will not be entirely visible because of
the input is at the bottom of the screen
To fix this problem i have created a small hack that will position the
selectbox on top of the input.


To see what I mean  look at the image:
http://tinypic.com/r/t6zcrc/5

code:
autocomple.js line 701:
replace function show by
[code]
show: function() {
if(options.scroll) {
list.scrollTop(0);
list.css({
maxHeight: options.scrollHeight,
overflow: 'auto'
});

if($.browser.msie && typeof
document.body.style.maxHeight === "undefined") {
var listHeight = 0;
listItems.each(function() {
listHeight += this.offsetHeight;
});
var scrollbarsVisible = listHeight > 
options.scrollHeight;
list.css('height', scrollbarsVisible ?
options.scrollHeight : listHeight );
if (!scrollbarsVisible) {
// IE doesn't recalculate width 
when scrollbar disappears
listItems.width( list.width() - 
parseInt(listItems.css("padding-
left")) - parseInt(listItems.css("padding-right")) );
}
}
}

var offset = $(input).offset();
var topPos = offset.top + input.offsetHeight;
var leftPos = offset.left;

var elmHeight = element.height();
var windowHeight = $(window).height();

// Check that position of Select does not go off screen-
If so put select on top .
if ( (topPos + elmHeight) > windowHeight) {
topPos = offset.top - elmHeight;
}

element.css({
width: typeof options.width == "string" || 
options.width > 0 ?
options.width : $(input).width(),
top: topPos,
left: leftPos
}).show();
},
[/code]

Hope it helps someone

Cheers



[jQuery] one div, multiple clicks

2009-06-25 Thread mkauppinen

Hi!

I have one div (.masterpiece) and now i can open it by click and close
it by move mouse out.

How I can make it so that it also close when i click it again (when
it's enlarged)?



$(".masterpiece").bind("mouseenter",function(){

$(".shade", this)
.animate({ opacity: "0.4" }, {duration: 500, queue: 
false});

}).bind("click",function(){

$(this)
.animate({ height: "450px" }, {duration: 500, easing:
"easeOutBounce", queue: false})
.css('zIndex', '10');

$(".shade", this)
.animate({ opacity: "0" }, {duration: 500, queue: 
false});

$("#bigshade")
.animate({ opacity: "0.8" }, {duration: 500, queue: 
false})
.css('zIndex', '5');

}).bind("mouseleave",function(){

$(this)
.animate({ height: "80px" }, {duration: 500, queue: 
false})
.css('zIndex', '1');

$(".shade", this)
.animate({ opacity: "0.8" }, {duration: 500, queue: 
false});

$("#bigshade")
.animate({ opacity: "0" }, {duration: 500, queue: 
false})
.css('zIndex', '0');

});


Thanks!


[jQuery] JQuery plugin Tooltip: how to have a list of elements as tooltip body, not just one line

2009-06-25 Thread Fred

Hi guys,

I'm quite new to JQuery and JavaScript. An old website used to display
many columns with date infos in the middle of a table. When too many
dates are rendered, last part of the table can't be seen without
scrolling horizontally which is not so nice. To avoid this, we wish to
use the JQuery tooltip plugin. We want only a certain number of dates
to be rendered in the table, such as 3 elements (tuples of start / end
dates in fact), and add an icon after these dates with a tooltip
showing all dates on mouse over.

My problem is I don't want to show all these dates on a single line,
but rather print a Title, and one pair of start/end dates per line in
the tooltip body. But how ?

The solution I see from now, without having put hands in code deeply,
would be to define the tooltip's width so that a new line is forced
where I want, but it doesn't sounds to be a good solution. Beeing able
to put HTML code like  or something directly in the 'title' field
used to create the tooltip would suit me, but I think it would be
syntaxically wrong.

Perhaps can you guys propose me a good solution ?

Thank you,
Fred.


[jQuery] horizontal Menu with no child menu

2009-06-25 Thread Sha

I want to make a horizontal menu with a lot of menu items but some of
them wont have any sub menus associated with them.

Right now, i have to add at least one item in submenu with sometext in
it, else it gives a weired behavior.
But I want that any of the items should have no items below it yet
submenu shud be displayed,  just like a long horizontal bar..

Can any one help me?


[jQuery] History plugin? AJAX-filled DropDowns are emtpy after using "Back"-button of browser

2009-06-25 Thread DigitalDude

Hey,

I think my first post was erased, so I will give it another try...

Scenario:
2 Dropdowns which depend on one another, user selects from first
dropdown (for example, country). Then an AJAX call is made and the
secon dropdown is poluated with the Country-related locations. The
User selects the location, and then he clicks on submit and is taken
to antoher page.

When I now hit the Browser's "Back" button, the dropdowns are empty,
the data and the preselection are erased.

So I need a way to save the data, so the user can go back with the
browser and has his preselected data in the dropdowns.

I would be very happy if someone could give me a simple example to
save the data from one dropdown, and i will try to adapt this to the
other dropdowns and maybe other elements in the future. Please help
me, it is very important!

Thanks in advance,

DD


  1   2   >