[jQuery] Re: return value of nested functions is always undefined

2009-06-23 Thread anawak82

Hi Rob,

thank you for your quick reply!

 Add a return statement to getPrice, maybe something like:

   function getPrice(id) {
 return $.get('db.xml', function(d){
   ...
 });

I am sorry to say that this only return a XMLHttpRequest but not the
value of the variable price.

Kind regards
Tom


[jQuery] Is there any possibility to get Light window option Using Jquery functions , Autocomplete hints from database

2009-06-23 Thread anjith

Hai,

I am New to Jquery

When i click a hyperlink(anchor tag) I need to display a php page in
light window.

Autocomplete or Auto-suggest similar to googlesuggest In
google.comI heard we can do this using Jquery



Thanks and Regards,
Anjith


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

2009-06-23 Thread bharathbhooshan ambati
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 p...@bjorsq.net 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






 --
 భరత్ భూషణ్ అంబటి





-- 
భరత్ భూషణ్ అంబటి


[jQuery] Handling metadata in current version

2009-06-23 Thread Steve Hueners
I'm looking at: http://docs.jquery.com/Plugins/Metadata and see that the
plugin has not had any activity since late 07. Just getting started with jQ
and am interested in understanding compatibility-related issues before
diving into the tasks this plugin provides. or alternatives.thx


[jQuery] Re: crazy if... !not working.

2009-06-23 Thread Liam Potter


wouldn't it make more sense to do this

$(function(){
   $(a.thumb).fancybox();
});

umcosta wrote:

Ok, here is what I want to do (extracted from: 
http://docs.jquery.com/Traversing/hasClass):

script src=http://code.jquery.com/jquery-latest.js;/script
script
  $(document).ready(function(){

$(div).click(function(){
  if ( $(this).hasClass(protected) )
$(this).animate({ left: -10 }, 75)
   .animate({ left: 10 }, 75)
   .animate({ left: -10 }, 75)
   .animate({ left: 10 }, 75)
   .animate({ left: 0 }, 75);
});

  });
  /script


And here is my code:

script type=text/javascript src=scripts/jquery.js/script
script type=text/javascript src=scripts/jquery.localscroll.js/
script
script type=text/javascript src=scripts/jquery.scrollto.js/
script
script type=text/javascript src=scripts/jquery.fancybox.js/
script
script type=text/javascript
$(document).ready(function(){

$.localScroll();

$(a).click(function(){
   if ( $(this).hasClass(thumb) )
  $(this).fancybox();
});

});
/script

Any ideas???
  


[jQuery] Re: crazy if... !not working.

2009-06-23 Thread Liam Potter


nevermind, seen you already got this

Liam Potter wrote:

wouldn't it make more sense to do this

$(function(){
   $(a.thumb).fancybox();
});

umcosta wrote:
Ok, here is what I want to do (extracted from: 
http://docs.jquery.com/Traversing/hasClass):


script src=http://code.jquery.com/jquery-latest.js;/script
script
  $(document).ready(function(){

$(div).click(function(){
  if ( $(this).hasClass(protected) )
$(this).animate({ left: -10 }, 75)
   .animate({ left: 10 }, 75)
   .animate({ left: -10 }, 75)
   .animate({ left: 10 }, 75)
   .animate({ left: 0 }, 75);
});

  });
  /script


And here is my code:

script type=text/javascript src=scripts/jquery.js/script
script type=text/javascript src=scripts/jquery.localscroll.js/
script
script type=text/javascript src=scripts/jquery.scrollto.js/
script
script type=text/javascript src=scripts/jquery.fancybox.js/
script
script type=text/javascript
$(document).ready(function(){

$.localScroll();

$(a).click(function(){
   if ( $(this).hasClass(thumb) )
  $(this).fancybox();
});

});
/script

Any ideas???
  


[jQuery] Re: Is there any possibility to get Light window option Using Jquery functions , Autocomplete hints from database

2009-06-23 Thread Liam Potter


Check out the fancybox plugin and an autocomplete plugin

Fancybox - http://fancy.klade.lv/
Autocomplete - 
http://bassistance.de/jquery-plugins/jquery-plugin-autocomplete/


anjith wrote:

Hai,

I am New to Jquery

When i click a hyperlink(anchor tag) I need to display a php page in
light window.

Autocomplete or Auto-suggest similar to googlesuggest In
google.comI heard we can do this using Jquery



Thanks and Regards,
Anjith
  


[jQuery] calling ajax function from php file

2009-06-23 Thread naz

i m using jquery 1.3.2 .and i want to call a function define in ajax
file.form php file please tell me how can i do that .
thnx in anticipation
i need reply as soon as possible


[jQuery] Re: calling ajax function from php file

2009-06-23 Thread Liam Potter


You don't call php functions on the client side.
You just need to pass data on to it, and have the php manipulate in the 
way you want.


naz wrote:

i m using jquery 1.3.2 .and i want to call a function define in ajax
file.form php file please tell me how can i do that .
thnx in anticipation
i need reply as soon as possible
  


[jQuery] creating a visual frame using jquery

2009-06-23 Thread Peter Marino
Hi jQuery,
i'm trying to create a visual frame. My attempt can be seen here:
http://www.medlemmer.net/test/test_panel_basics.php

I use jQuery to resize the left and right div to the correct height, I can
see the result is correct.

my question is why do I get gaps at the bottom... it seems to come
when I put content inside my visual frame? Can someone point it out
for me?

another question is... is there any other method that can make the
left and right sides get the correct length? or is jquery the only way
to do that?

regards,
Peter

-- 
Power Tumbling - http://www.powertumbling.dk
OSG-Help - http://osghelp.com


[jQuery] Re: jQuery in an eBay auction template? Is it possible?

2009-06-23 Thread Ricardo

The error message says it all: for security reasons, your listing
*cannot* contain javascript.

On Jun 22, 1:01 pm, eepeterson eepeter...@gmail.com wrote:
 Ok, let me start by saying I'm not a great programmer. I can do well
 with HTML  CSS but don't know a ton about js  jQuery.

 Anyway, I'd like to include some jQuery in the form of a gallery of
 images in my eBay auction. However the problem I run into is that when
 I paste the completed code into the eBay I get a message that says
 Your listing cannot contain javascript(.cookie, cookie(, replace
 (, IFRAME, META, or includes), cookies or base href. So I revised
 the code to include no hrefs to the js and pasted it all in the header
 instead. I still get the same error. I took a closer look at the code
 and of course the instances of the replace() method and so on. I would
 like to figure a way around this so I could use jQuery on eBay.

 Has anyone had any luck using jQuery in an eBay auction?

 Any help you might have would be great. Thanks in advance.


[jQuery] Re: Array to JSON?

2009-06-23 Thread Ricardo

I know, I meant it won't handle actual arrays like [1,2,3]. Wasn't
needed at the time, probably not too difficult to implement.

On Jun 22, 9:24 pm, Josh Powell seas...@gmail.com wrote:
 That's okay, javascript doesn't have associative arrays, only arrays
 with object properties.

 On Jun 22, 2:45 pm, Ricardo ricardob...@gmail.com wrote:

  before someone complains: that function won't handle arrays (only
  objects)

  On Jun 22, 6:39 pm, Ricardo ricardob...@gmail.com wrote:

   Usually you'll send out parameters in query strings, only receive data
   in JSON, which is what jQuery is equipped to do. If you don't want the
   weight of a plugin you could use something like this:

   function toJSON(obj){
    var json = '({';
   $.each(obj, function(k,v){
     var q = typeof v == 'string' ? ~v.indexOf(') ? '' : ' : '';
     if (typeof v == 'object')
        v = toJSON(v).slice(0,-1).substr(1);
     json+= k + ':'+ q + v + q + ',';});

    return json.slice(0,-1)+'})';

   };

   On Jun 21, 11:23 pm, Nic Hubbard nnhubb...@gmail.com wrote:

I have been trying to figure out how I could go from an associative
array to JSON.  Is there a function for this?


[jQuery] Redirect to another page on selected option value

2009-06-23 Thread ciupaz

Hi all,
having a select option:

select id=NewUser name=NewUser
option value=0---Insert New User---/option
option value=1Mark/option
option value=2Ted/option
/select

on the click of the input=Submit, if is selected Insert New User,
how can I redirect the user to another page (.aspx, .ascx, .html, etc)
where he can insert the new values?

Thanks in advance.

Luis


[jQuery] Drop Shadows!!!

2009-06-23 Thread Erik R. Peterson

Hi everyone..

Is the jquery drop shadow worth using?

Can anyone direct me ofr the quickest solution.

many thanks

Erik


[jQuery] Re: Best web app automation testing tool?

2009-06-23 Thread swathi

Hi sara,

http://www.sdtcorp.com/ Go through This site Where u can Find
KeywordDriven Automation Tool Called
UTP(UnifiedtestPro). This Tool will be Answer All Ur Above mentioned
Requirements.

Feel free to ask If u need any assistance or mail me to
swathi...@gmail.com
regards
swathimnn




On Jun 19, 8:54 pm, sarah smor...@gmail.com wrote:
 Hello - I've been evaluating differentwebautomationtestingtools
 that allow you to record actions and play them back in thewebbrowser
 window to automatetesting.

 So far I have tried Molybdenum  TestGen4Web Firefox plugins.  I was
 not able to get Selenium IDE work for some reason.

 Molybdenum  TestGen4Web do not seem to activate the jQuery UI
 controls.  For example if I record clicking on a text field that has a
 date picker, thetestingtoolcannot find the element in the DOM to
 register the click on a date.

 What tools are you using?

 -Sarah


[jQuery] Re: Array to JSON?

2009-06-23 Thread cs

Why not make each field that has a nested key-value pair an object
instead? In short, any array with a key but without a value is an
object since your value is just an array of elements. What language is
in charge of your back-end? And how is it handling the inputs your
pass it? This is what really counts.

JSON is

On Jun 22, 7:01 pm, Nic Hubbard nnhubb...@gmail.com wrote:
 Yeah, I am not too hot on using a plugin for this.  I had hoped there
 was just a quick function that I could pass in an array and return
 JSON.

 On Jun 22, 8:28 am, diogobaeder diogobae...@gmail.com wrote:

  Hmmm... why would one use this plugin if we have Douglas Crockford's
  json2.org, which is the original JSON library from the same creator of
  the concept JSON? And why load more modules into the main jQuery
  object, making it heavier, if we don't use DOM element wrappers in the
  plugin, only conversions to/from JS objects?

  Sorry, I don't mean to be harsh, but it seems to me that this plugin
  is a reinvented wheel, and also that it didn't have to be a jQuery
  plugin to work. Does it have anything that we can't see in json2.org?

  Diogo

  On Jun 21, 11:39 pm, kranthi kranthi...@gmail.com wrote:

   are u looking forhttp://www.google.co.in/search?q=jquery+json+plugin?


[jQuery] Looking for jQuery experts for Open-Source Social Annotation platform

2009-06-23 Thread David Nolen

Hello all,

I work on an open source social meta-web and annotation tool called
ShiftSpace (http://www.shiftspace.org, 
http://github.com/ShiftSpace/shiftspace/tree/master).
The ShiftSpace platform is primarily written in MooTools, however with
the release of MooTools 1.2.3, it is now possible for MooTools and
jQuery to coexist.  To see the kinds of social applications that can
be built with ShiftSpace check out http://moma.org.

At the moment the non-GreaseMonkey plugin version of ShiftSpace works
just fine running MooTools and jQuery together.  However we're looking
for people who are avid jQuery+GreaseMonkey hackers who might be
interested in the effort to make the GM version of ShiftSpace run both
libraries seamlessly.

Please check out our website for more info and/or join the discussion
at the http://groups.google.com/group/ShiftSpace-dev. If you have any
thoughts, feedback or would like to contribute please don't hesitate
to contact us.

Thanks,
David Nolen (Lead ShiftSpace Developer)


[jQuery] peculiar behaviour of clone

2009-06-23 Thread brown.33

Hi,

I am new to jquery. I used clone for both prepend and prependTo. For
prependTo, it is working fine.

But if we apply prepend for $j(#begin_947).clone().prepend($j
('#end_947')), it is deleting the entire end_947 element.
Can somebody explain me, why it is happening like this.

Thanks in advance


[jQuery] jquery cookie plugin

2009-06-23 Thread juxprose


Hello

This function works with the jquery cookie plugin
(http://plugins.jquery.com/project/cookie) and code from here
(http://www.komodomedia.com/blog/2008/07/using-jquery-to-save-form-details/)

script type=text/javascript
$(document).ready(function(){
remember('[name=field_name]');
});
/script

It remembers the input field name field_name. 

Does anyone know the correct way to add additonal input fields to the
remember function?

Many Thanks
-- 
View this message in context: 
http://www.nabble.com/jquery-cookie-plugin-tp24163193s27240p24163193.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



[jQuery] Re: Redirect to another page on selected option value

2009-06-23 Thread Liam Potter


$(select#NewUser).change(function(){
   if ($(this).val() == 0) {
  window.location.href = http://www.url-to-form.com
   }
});

ciupaz wrote:

Hi all,
having a select option:

select id=NewUser name=NewUser
option value=0---Insert New User---/option
option value=1Mark/option
option value=2Ted/option
/select

on the click of the input=Submit, if is selected Insert New User,
how can I redirect the user to another page (.aspx, .ascx, .html, etc)
where he can insert the new values?

Thanks in advance.

Luis
  


[jQuery] jQuery in an eBay auction template? Is it possible?

2009-06-23 Thread eepeterson

Ok, let me start by saying I'm not a great programmer. I can do well
with HTML  CSS but don't know a ton about js  jQuery.

Anyway, I'd like to include some jQuery in the form of a gallery of
images in my eBay auction. However the problem I run into is that when
I paste the completed code into the eBay I get a message that says
Your listing cannot contain javascript(.cookie, cookie(, replace
(, IFRAME, META, or includes), cookies or base href. So I revised
the code to include no hrefs to the js and pasted it all in the header
instead. I still get the same error. I took a closer look at the code
and of course the instances of the replace() method and so on. I would
like to figure a way around this so I could use jQuery on eBay.

Has anyone had any luck using jQuery in an eBay auction?

Any help you might have would be great. Thanks in advance.


[jQuery] Re: jQuery in an eBay auction template? Is it possible?

2009-06-23 Thread eepeterson

That's not the message I saw. Also you can definitely use some forms
of javascript on eBay. See this: 
http://pages.ebay.com/help/policies/listing-javascript.html

So I guess what I'm really asking is if it is possible to modify or
use part of the jQuery script to meet eBay's terms on javascript.

Thanks!


On Jun 23, 5:23 am, Ricardo ricardob...@gmail.com wrote:
 The error message says it all: for security reasons, your listing
 *cannot* contain javascript.

 On Jun 22, 1:01 pm, eepeterson eepeter...@gmail.com wrote:



  Ok, let me start by saying I'm not a great programmer. I can do well
  with HTML  CSS but don't know a ton about js  jQuery.

  Anyway, I'd like to include some jQuery in the form of a gallery of
  images in my eBay auction. However the problem I run into is that when
  I paste the completed code into the eBay I get a message that says
  Your listing cannot contain javascript(.cookie, cookie(, replace
  (, IFRAME, META, or includes), cookies or base href. So I revised
  the code to include no hrefs to the js and pasted it all in the header
  instead. I still get the same error. I took a closer look at the code
  and of course the instances of the replace() method and so on. I would
  like to figure a way around this so I could use jQuery on eBay.

  Has anyone had any luck using jQuery in an eBay auction?

  Any help you might have would be great. Thanks in advance.


[jQuery] Re: creating a visual frame using jquery

2009-06-23 Thread Peter Marino
Hi,
I would really like to do as you mention... I have my forms using rounded
corners from jquery and it's
super cool but these panels I create have shadows on them too...
haven't see any plugin to do that yet with rounded corners and captions.

I have searched the net for solutions and tried 100's of different
combinations... any suggestion
what to do to get less code would be super.

peter

On Tue, Jun 23, 2009 at 1:07 PM, Charlie charlie...@gmail.com wrote:

  you can accompish this 4 corner box with far less markup, standard css
 with no script

 there's lots of css tutorials on this topic. I'm all for using jquery to
 add creative solutions but sometimes using a bulldozer when all that is
 needed is a shovel is overkill

 for example, wrap your middles around contents and no height calculations
 necessary. Try using every tag available in module to apply css for your
 frame, don't waste outer container.  You'll definitely appreciate it when
 page size increases

 Peter Marino wrote:

 Hi jQuery,
  i'm trying to create a visual frame. My attempt can be seen here:
 http://www.medlemmer.net/test/test_panel_basics.php

  I use jQuery to resize the left and right div to the correct height, I
 can
 see the result is correct.

  my question is why do I get gaps at the bottom... it seems to come
 when I put content inside my visual frame? Can someone point it out
 for me?

  another question is... is there any other method that can make the
 left and right sides get the correct length? or is jquery the only way
 to do that?

  regards,
 Peter

 --
 Power Tumbling - http://www.powertumbling.dk
 OSG-Help - http://osghelp.com





-- 
Power Tumbling - http://www.powertumbling.dk
OSG-Help - http://osghelp.com


[jQuery] Re: creating a visual frame using jquery

2009-06-23 Thread Charlie





you can accompish this 4 corner box with far less markup, standard css
with no script

there's lots of css tutorials on this topic. I'm all for using jquery
to add creative solutions but sometimes using a bulldozer when all that
is needed is a shovel is overkill

for example, wrap your middles around contents and no height
calculations necessary. Try using every tag available in module to
apply css for your frame, don't waste outer container. You'll
definitely appreciate it when page size increases 

Peter Marino wrote:
Hi jQuery,
  
  
  i'm trying to create a visual frame. My attempt can be seen here:
  http://www.medlemmer.net/test/test_panel_basics.php
  
  
  I use jQuery to resize the left and right div to the correct
height, I can
  see the result is correct.
  
  
  my question is why do I get gaps at the bottom... it seems to
come
  when I put content inside my visual frame? Can someone point it
out
  for me?
  
  
  another question is... is there any other method that can make
the
  left and right sides get the correct length? or is jquery the
only way
  to do that?
  
  
  regards,
  Peter
  
-- 
Power Tumbling - http://www.powertumbling.dk
OSG-Help - http://osghelp.com
  






[jQuery] Thanks to all jQuery developers

2009-06-23 Thread fredriley

I don't know if this is said often enough as I'm a relative newbie to
jQuery, but I'd just like to say a big THANK YOU!! to all those
involved in the jQuery project - developers, documentation writers,
contributors to this group, and anyone else I've forgotten. Whilst,
for me at least, jQuery was a steep learning curve despite/because of
my programming background, it really is a very elegant framework with
a hell of a lot of work put into it, which saves us web designers/
developers having to write stuff from scratch in JS (then finding it
falls over in IE), and I for one really, really appreciate the
development effort that's been put in.

A big extra thanks to those involved in jQuery UI, who've saved me a
hell of a lot of work. These days managers and users want super-cuddly
interfaces à la Facebook which do everything for the user save scratch
their arse for them, and it's a 'mare putting that sort of stuff
together from scratch in JS and CSS *and* making it cross-platform,
standards-compliant and accessible. The Theme Roller in UI really has
made my life a lot easier, and the interfaces knock the socks off
managers and end-users.

Cheers

Fred


[jQuery] Re: Jquery Sound

2009-06-23 Thread Paul Hutson



On Apr 29, 4:47 pm, Evan e...@nthdegree-designs.com wrote:
 On Mar 13, 3:06 pm, Paul Hutson hutsonphu...@googlemail.com wrote:





  Hello,

  I've been trying to get the following working :

 http://dev.jquery.com/view/trunk/plugins/sound/

  However, it only plays about a second to three seconds of the
  designatedsoundbefore shutting off (in FF and Safari) but loads
  fully in Opera.  The music is hosted locally at the moment.

  Any ideas?

  The test code I'm using is as follows :

          $.sound.play('Sounds/Music/OE1.mp3');

  TIA,
  Paul

 I was running in to the same problem. I had playback working fine with
 the @5750 build, but was not able to stop playback.

 If you look at line 84 of the @5854 build, you will see that the when
 the timeout occurs it is set to remove the entire element. I finally
 gave up, and instead of trying to stop the timeout, I just commented
 out the element.remove() line. Now audio plays fine and I can stop it
 viajquery.

 Here is what my lines 83 - 87 look like now:
 setTimeout(function() {
                         //element.remove();
                 }, options.timeout)

                 return element;

 Hope that helps someone.

 Now I need to figure out how to get it to loop the audio.

Excellent find, thank you.

As a bit of repayment, do the following to loop the sound :

Change the play: function to : play: function(url, loopNumber,
options)

then change this bit of code :

var element = $.browser.msie
? $('bgsound/').attr({
src: options.url,
loop: 1,
autostart: true
  })
: $(this.template(options.url));

to be :

var element = $.browser.msie
? $('bgsound/').attr({
src: options.url,
loop: loopNumber,
autostart: true
  })
: $(this.template(options.url));

I think that should work, although I've not tested it (I'm playing
with adding in a length of track option that works).


[jQuery] slide a div open and closed

2009-06-23 Thread webguy262


I need to create and effect just like what happens when you mouse over the
Check Availability link on this site:

http://www.claridges.co.uk/

I have downloaded this simple show/hide example:

http://docs.jquery.com/UI/Effects/Slide#overview

I need help, tho, with how to configure things so the div moves up a set
distance to reveal the form, and then stays there until the link is clicked
to lower it.

Thanks!
-- 
View this message in context: 
http://www.nabble.com/slide-a-div-open-and-closed-tp24165182s27240p24165182.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



[jQuery] JSP Calling Crystal Report Having Stored Procedure

2009-06-23 Thread RUQUIA TABASSUM
Hi i am calling a crystal report from jsp where the crystal report is
designed using stored procedure but the report does not get displayed and
shows errors
my jsp file is

Code:
%@ page import=com.crystaldecisions.report.web.viewer.* %

%@ page import=com.crystaldecisions.sdk.occa.report.data.* %

%@ page import=com.crystaldecisions.reports.sdk.ReportClientDocument %

%@ page import = java.util.* %

%
try{

Object reportSource = session.getAttribute(reportSource);

if (reportSource == null)

{

String report = Report4.rpt;

ReportClientDocument reportClientDoc = new ReportClientDocument();

reportClientDoc.open(report, 0);

reportSource = reportClientDoc.getReportSource();

session.setAttribute(reportSource, reportSource);

}


CrystalReportViewer viewer = new CrystalReportViewer();

viewer.setReportSource(reportSource);

viewer.setEnableParameterPrompt(false);



if (session.getAttribute(refreshed) == null)

{

viewer.refresh();

session.setAttribute(refreshed, true);

}


viewer.setOwnPage(true);

viewer.processHttpRequest(request, response,
getServletConfig().getServletContext(), null);

}
catch(Exception e)
{
e.printStackTrace();
}
%

error:
com.crystaldecisions.report.web.viewer.CrystalReportViewer
Unexpected Query Engine error


the Report4.jsp connects to the database using oracle Native connection. the
Report runs perfectly well when i open it directly from crystal report
viewer.
Any help appreciated.


[jQuery] load

2009-06-23 Thread Levi

Hi,

I'm using this function

$(document).ready(function() {
   $('#menu a').click(function() {
 $('#conteudo').load( $(this).attr('rel') );
 return false;
   });
});

div id=menu
lia href=# rel=user.phpClientes/a/li
/div
div id=conteudo/div

for load in div=conteudo the page on php. But the script jquery in
php pager not function.


[jQuery] How to make jQuery work in IE 5.5

2009-06-23 Thread pHoEniX

Hi.
Recently I had to make a project in IE 5.5 too. IE 5.5 throw almost
instantly error. I have downloaded the developer version and try to
figure out what could cause the errors.

By commenting out line
2167: div.appendChild( document.createComment() );
and removing select/select from line 3122 jquery works perfect.
But I am not sure these changes are safe. I need sy comment. Thanks in
advance.


[jQuery] Re: Using embedding youtube videos

2009-06-23 Thread Jonathan Vanherpe (T T NV)


onearmfrog wrote:

Hello.

I've been trying to add embedded youtube videos to the carousel
but so far without success.

The videos are all over the screen, even when I wrap them in div.

Has anyone ever done this and could help me?
(or maybe it can't be done?

Thanks!


Do you have a link, or a better description of 'allover the screen'?

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


[jQuery] Using embedding youtube videos

2009-06-23 Thread onearmfrog

Hello.

I've been trying to add embedded youtube videos to the carousel
but so far without success.

The videos are all over the screen, even when I wrap them in div.

Has anyone ever done this and could help me?
(or maybe it can't be done?

Thanks!



[jQuery] Re: Determine if autocomplete returns an empty list and number of records returned

2009-06-23 Thread JohnT

Hi. Sorry, but I am not getting this flicker effect.

Actually, I don't think this method is such a good idea anymore
because you'd be forking the original source code. Now, I am simply
returning a JSON record that indicates that there are 0 records and
this works better for me.

John

On Jun 22, 9:13 pm, Dushyant Patel patel.dushy...@gmail.com wrote:
 i foundnd it, but its getting some flicker effect. how to avoid that?
 do you any idea? please share with me.

 Thanks

 On Jun 22, 7:36 pm, Dushyant Patel patel.dushy...@gmail.com wrote:

  Could you please tell me where exactly added following script block.

          isEmpty: function(data) {
                  if (data == 0) {
                          $(#result).html(No match found);
                  }
          }

  I am having same problem, but i don't want to show message, i just
  want to simply hide layer.

  On Jun 5, 4:20 pm, JohnT jtra...@gmail.com wrote:

   Hi. I've just started using jQuery Autocomplete a few weeks ago.

   While using jQuery, I found that I needed to know how many records
   were returned and also if the result set returned was empty. After
   searching the jQuery documentation I couldn't find any property or
   method that returned this value, so I've added that functionality
   myself and wanted to share it with the group.

   1) Determine the number of records returned:

   I wanted to show the user how many results were returned after they
   start typing into the autocomplete field similar to how Google
   indicates the number of results found when you start typing in the
   search box.

   At first I thought the max parameter in the function formatItem
   returned this value. However, it returns the max option that you set
   it to. So if your query returns 100 records and you set max to 25,
   it'll obviously return 25 (not what I wanted).

   So after trying various things, I looked at the jQuery code and simply
   added the number of records returned by the database to the
   formateItem function. In the fillList() function around line 660 I
   added the data.length parameter:

           var formatted = options.formatItem(data[i].data, i+1, max, data
   [i].value, term, data.length);

   And in my autocomplete code, I added the parameter to the end of the
   param list:

           formatItem: function(data, i, total, value, searchTerm, 
   totalResults)

   So now whenever a new search is preformed, I get back the number of
   search result from the database.

   2) Determine if a result set returned was empty

   I wanted to update a div with a message like no records found
   whenever the query yielded no results. Again, after searching the
   jQuery documentation, I couldn't find any property or method that
   would indicate this so I added it to the code.

   In the request function after the line var data = cache.load(term); I
   added the following:

           if (!data) {
                   options.isEmpty(0);
           } else {
                   options.isEmpty(data.length);
           }

   And in my autocomplete code, I added the following:

           isEmpty: function(data) {
                   if (data == 0) {
                           $(#result).html(No match found);
                   }
           }

   Hope this helps others. Since I am new to jQuery I'd appreciate any
   feedback especially if there is a better way to do this.

   Thanks
   John


[jQuery] Re: load

2009-06-23 Thread Paul Hutson

Ensure you've included the Jquery package at the top of the page.


[jQuery] Re: creating a visual frame using jquery

2009-06-23 Thread Liam Potter


3 images
1) the top bar,
2) the full width of the panel (including shadow)
3) bottom corners

3 divs

div id=top/div
div id=content
   content here
/div
div id=bottom/div

each div would have the same width and height as the image you made for 
it and apply as background

The content will need padding so nothing bleeds over the border  shadow

Drawback to this method is it can only scale vertically.
So, keep to fixed with layouts.

I know there are many rounded corner plugins, but usually you don't need 
to use them.


- Liam

Peter Marino wrote:

Hi,

I would really like to do as you mention... I have my forms using 
rounded corners from jquery and it's

super cool but these panels I create have shadows on them too...
haven't see any plugin to do that yet with rounded corners and captions.

I have searched the net for solutions and tried 100's of different 
combinations... any suggestion

what to do to get less code would be super.

peter

On Tue, Jun 23, 2009 at 1:07 PM, Charlie charlie...@gmail.com 
mailto:charlie...@gmail.com wrote:


you can accompish this 4 corner box with far less markup, standard
css with no script

there's lots of css tutorials on this topic. I'm all for using
jquery to add creative solutions but sometimes using a bulldozer
when all that is needed is a shovel is overkill

for example, wrap your middles around contents and no height
calculations necessary. Try using every tag available in module to
apply css for your frame, don't waste outer container.  You'll
definitely appreciate it when page size increases

Peter Marino wrote:

Hi jQuery,

i'm trying to create a visual frame. My attempt can be seen here:
http://www.medlemmer.net/test/test_panel_basics.php

I use jQuery to resize the left and right div to the correct
height, I can
see the result is correct.

my question is why do I get gaps at the bottom... it seems to come
when I put content inside my visual frame? Can someone point it out 
for me?


another question is... is there any other method that can make the
left and right sides get the correct length? or is jquery the
only way
to do that?

regards,
Peter

-- 
Power Tumbling - http://www.powertumbling.dk

OSG-Help - http://osghelp.com





--
Power Tumbling - http://www.powertumbling.dk
OSG-Help - http://osghelp.com


[jQuery] Re: return value of nested functions is always undefined

2009-06-23 Thread RobG



On Jun 23, 4:31 pm, anawak82 anawa...@googlemail.com wrote:
 Hi Rob,

 thank you for your quick reply!

  Add a return statement to getPrice, maybe something like:

    function getPrice(id) {
      return $.get('db.xml', function(d){
        ...
      });

 I am sorry to say that this only return a XMLHttpRequest but not the
 value of the variable price.

Your original function appears to be extremely inefficient, but
anyhow, without knowing the structure of the XML document you are
dealing with, use:

function getPrice(id) {
  var price;
...
  price = $data.find(preis).text().trim();
...
  return price;
}


Note that price is declared in the outer function and not in the inner
function.


--
Rob


[jQuery] Re: slide a div open and closed

2009-06-23 Thread Mauricio (Maujor) Samy Silva
I've hosted a live example for the effect at: http://jsbin.com/irera/

Edit it at:  http://jsbin.com/irera/edit 

Maurício
  -Mensagem Original- 
  De: webguy262 
  Para: jquery-en@googlegroups.com 
  Enviada em: terça-feira, 23 de junho de 2009 09:37
  Assunto: [jQuery] slide a div open and closed

  I need to create and effect just like what happens when you mouse over the
  Check Availability link on this site:

  http://www.claridges.co.uk/



[jQuery] Re: jQuery Tooltip Plug-in 1.3 Update

2009-06-23 Thread funomat

You need to use a newer dimensions version.

http://plugins.jquery.com/project/dimensions

Tiago

On 24 Mai, 05:49, kiusau kiu...@mac.com wrote:
 I have recently noticed that version 1.3 of the jQueryTooltipPlug-in
 does not work with jQuery's version 1.3.2.  Is there a patch
 available?  Is there one on the way?

 Roddy


[jQuery] Ajax tooltips using jQuery?

2009-06-23 Thread Nick Drew

Hi guys,

I'm after an ajax tooltip to use with jQuery.

For some reason, every one I find is either mootools or Prototype
which without hacking around, don't seem to work alongside jQuery.

Any recommendations, or maybe a script I could use that I haven't
already found?

Thanks


[jQuery] Carousel with external controls problem

2009-06-23 Thread Jason Pang

Well, I managed to put 2 Carousel with external controls together on
a page.

Now, I'm facing another problem, that's the external controls.

The controls, I can't change the numbers to something else (name of
the picture).

You can check out what I mean here: http://jasonpang.com/test/test4.html
Click on Personal Projects, you'll see a carousel with external
controls with text names, and It's not working, unless it's numbers.

Please help :)


[jQuery] Re: load

2009-06-23 Thread khaled abbad
ensure what is the jQuery version that you use.


[jQuery] Re: jquery-ui dialog and ajax issues updating from 1.2.6 to 1.3.2

2009-06-23 Thread Etienne Robillard

I retried and it's still grokking loudly:

http://gthc.org/tm_api-2.0/demo.html

the most irritating part is:

 [e] message = [string] s.xhr is not a function
Exception ``TypeError: s.xhr is not a function'' thrown from function
anonymous(event=Object:{38}) in
http://gthc.org/media/js/jquery-ui-1.7.2-custom/development-bundle/jquery-1.3.2.js
line 2693.

How is that happening ? Does it need any extra options in $.ajaxSettings
for making it compatible with 1.3.X ?

My $.ajaxSettings looks like this, at least in the 1.2.6 series:
http://gthc.org/tm_api-2.0/src/ajax.js

I have find no use yet for the 'xhr' param, is this now required in
jquery 1.3.X ?

Best regards,
Etienne



Etienne Robillard wrote:
 Thanks!
 
 I'll upgrade to jQuery UI 1.7+ and retry.. :D
 
 Best regards,
 Etienne
 
 
 Cesar Sanz wrote:
 I had the problem too..

 You must to update jquery and ui too

 - Original Message - 
 From: James james.gp@gmail.com
 To: jQuery (English) jquery-en@googlegroups.com
 Sent: Monday, June 22, 2009 12:18 PM
 Subject: [jQuery] Re: jquery-ui dialog and ajax issues updating from 1.2.6 
 to 1.3.2



 When you update jQuery to 1.3+ from an older version, you also have to
 update your UI library to 1.7+ because jQuery 1.3+ is not compatible
 with older versions of jQuery UI.

 On Jun 22, 5:25 am, Etienne Robillard robillard.etie...@gmail.com
 wrote:
 Hi,

 I'm using jquery-ui 1.6 custom build with jquery 1.2.6 trying to
 set up a dialog window. Unfortunately I can't update to 1.3.2 since this
 would trigger some unexpected XHR-related bugs like the following:

 Exception ``TypeError: M.xhr is not a function'' thrown from function
 anonymous(M=Object:{12}) in
 http://localhost/media/js/jquery/jquery-1.3.2.min.js

 So I'm sticking with the 1.2.6 build, which works fine despite a
 minor/not-critical XHR issue:

 Exception ``TypeError: s.accepts is undefined'' thrown from function
 anonymous(s=Object:{12}) in
 http://localhost/media/js/jquery/jquery-1.2.6.pack.js

 Notice that this error is reported in FireBug/Venkman, however Firefox
 doesn't seem to care and let the XMLHTTPRequest to execute successfully.

 The code for the dialog window is given below. I don't seem to
 understand why posted data cannot be shown on the dialog box twice.

 Moreover, it will display it as I want on the first $.post request but
 any additional requests triggered with a click event don't show any
 updated data on the dialog box. Venkman reports that the anonymous
 callback function manages to obtain the updated data, but still nothing
 get shown on the dialog, just an empty div... ;-)

 Any help or advices for debugging this issue?

 Best regards,
 Etienne

 This is the script that gets evaluated by jQuery (using $.get(...)). A
 json object is returned by the server either containing form validation
 errors or a result object that contains simple strings.

 script type=text/javascript
 $(function(){

 $('#'+'formControlBtn').bind('click', function(){
 //send the form with a ajax request. on success,
 //return a comment preview.
 var formData = $('#'+'commentform').serialize();

 //one-liner to remove old error messages before posting a new comment
 $('p.error').each(function(){$(this).remove()});

 $.post('comment', formData, function(json) {
 var result = json.errordict || json.comment;

 if (result == json.comment) {
 // Look for the comment preview..
 // Display a pop-up window (dialog) with the comment preview
 // in HTML. By clicking on OK or Save the user has no more
 // undo chances and the comment will be made.
 var commentHTMLDialog = $('div id=commentDialog
 class=ui-dialog ui-widget ui-content\/div');

 // Set a title
 $(commentHTMLDialog).attr('title', 'Preview comment');

 // Setup default dialog constructor options
 $(commentHTMLDialog).dialog({
 autoOpen: true,
 bgiframe: false, // must keep this for IE6? default =
 'dont care'
 width: 500,
 modal: true, // prevent reposting while the dialog
 is enabled
 dialogClass: 'generic',
 height: 400,
 overlay: {
 backgroundColor: '#000',
 opacity: 0.5
 },
 buttons: {
 It's all good, add my comment please. : function() {
 $(this).dialog('close');
 },
 Cancel: function() {
 $(this).dialog('close');
 }
 },
 open: function() {
 // Constructor to define what to do when opening
 // the dialog widget
 var commentHTMLBody = $(ul
 id='commentHTMLBody'/ul);
 $(commentHTMLBody).prependTo($(commentHTMLDialog));
 for (var x in result) {
 // create the template on the fly
 $('li'+x+':
 '+result[x]+'\/li').appendTo('#'+'commentHTMLBody');
 };

 } //open
 });

 $(commentHTMLDialog).dialog('open');
 return false;
 //$('#'+'commentForm').html('Thanks for your input!');
 } else {
 // found some validation errors
 for (var x in result) {
 $('p class=error'+'b'+x+':
 \/b'+result[x]+'\/p').appendTo('#'+'commentForm');
 };
 };
 }, json);
 return false;
 });});

 /script

 --
 Etienne Robillard robillard.etie...@gmail.com
 Green Tea Hackers Club http://gthc.org/
 Blog: http://gthc.org/blog/

[jQuery] select all values of a multiple select list

2009-06-23 Thread shaded

is there a way to select all values of a multiple select list by
default?


[jQuery] Re: creating a visual frame using jquery

2009-06-23 Thread Peter Marino
Hi Liam,
your method isn't flexible enough,
thanks for trying

peter

On Tue, Jun 23, 2009 at 4:04 PM, Liam Potter radioactiv...@gmail.comwrote:


 3 images
 1) the top bar,
 2) the full width of the panel (including shadow)
 3) bottom corners

 3 divs

 div id=top/div
 div id=content
   content here
 /div
 div id=bottom/div

 each div would have the same width and height as the image you made for it
 and apply as background
 The content will need padding so nothing bleeds over the border  shadow

 Drawback to this method is it can only scale vertically.
 So, keep to fixed with layouts.

 I know there are many rounded corner plugins, but usually you don't need to
 use them.

 - Liam

 Peter Marino wrote:

 Hi,

 I would really like to do as you mention... I have my forms using rounded
 corners from jquery and it's
 super cool but these panels I create have shadows on them too...
 haven't see any plugin to do that yet with rounded corners and captions.

 I have searched the net for solutions and tried 100's of different
 combinations... any suggestion
 what to do to get less code would be super.

 peter

 On Tue, Jun 23, 2009 at 1:07 PM, Charlie charlie...@gmail.com mailto:
 charlie...@gmail.com wrote:

you can accompish this 4 corner box with far less markup, standard
css with no script

there's lots of css tutorials on this topic. I'm all for using
jquery to add creative solutions but sometimes using a bulldozer
when all that is needed is a shovel is overkill

for example, wrap your middles around contents and no height
calculations necessary. Try using every tag available in module to
apply css for your frame, don't waste outer container.  You'll
definitely appreciate it when page size increases

Peter Marino wrote:

Hi jQuery,

i'm trying to create a visual frame. My attempt can be seen here:
http://www.medlemmer.net/test/test_panel_basics.php

I use jQuery to resize the left and right div to the correct
height, I can
see the result is correct.

my question is why do I get gaps at the bottom... it seems to come
when I put content inside my visual frame? Can someone point it out
  for me?

another question is... is there any other method that can make the
left and right sides get the correct length? or is jquery the
only way
to do that?

regards,
Peter

--Power Tumbling - http://www.powertumbling.dk
OSG-Help - http://osghelp.com





 --
 Power Tumbling - http://www.powertumbling.dk
 OSG-Help - http://osghelp.com




-- 
Power Tumbling - http://www.powertumbling.dk
OSG-Help - http://osghelp.com


[jQuery] Re: what is wrong with this simple load data codes

2009-06-23 Thread Steven Yang
i am not sure whether
getir.asp?Process=UPSWEIGHT=1PostalCode=90012Country=us
equals to
getir.asp?Process=UPSWEIGHT=1POSTALCODE=90012COUNTRY=us

maybe check that


[jQuery] Re: trigger validation by input:button

2009-06-23 Thread Pascal

I am new to Jquery and Validate and have similar issue, as anyone got
a solution?

On Jun 12, 7:58 am, Matt sean...@gmail.com wrote:
 Hi,

 I have been working on a big form and using jquery plug-in (wizard
 form) to divide tit into small subforms. Now, I am trying to integrate
 the Validation plugin to deal with the validation and come up with an
 issue.

 I run validation on subforms which contains two buttons(back, next).
 Those 2 buttons are input:button type but not input:submit. I realise
 the Validation plug-in would trigger the validation on submit event.
 Is there any way I can modify the code so that it could handle my
 requirement?

 Having a look on the multipart demo which is the exact scenario I am
 dealing with. However, the page below is not working. I tried on both
 IE and FF.

 http://jquery.bassistance.de/validate/demo/multipart/

 Please advise.

 Cheers,
 Matt


[jQuery] Re: Trigger jquery event on ajax loaded content

2009-06-23 Thread Scott Sauyet


Steve the Canuck wrote:

How do I get this code to run once I've made the Ajax call?


All the Ajax calls have callbacks in them.  Just check the documentation 
for the one you are using.


  -- Scott


[jQuery] Re: jQuery Autocomplete - After service call if result is NULL then layer should be invisible

2009-06-23 Thread tarave

As I mentioned in my earlier post I have the same problem with
autocomplete.

The fix/workaround that I added to my page was to add a validation
that is executed just prior to the page submit.

The validation takes the typed in value and queries my data source to
verify the typed in value exists.  If the value does not exist the
validation raises an error the user has to deal with.  Doing these met
all my requirements and I did not have to change the plugin logic.

Regards,
Todd


[jQuery] XML manipulation

2009-06-23 Thread bigb

I'm having some real difficulty figuring out how to manipulate xml
data with jquery. Here is my situation. I have a hidden TextArea that
contains xml data, something like this:

items
  item value='1' text='x'/item
  item value='2' text='y'/item
/items


So, let's say I want to remove the item with value='1'.

1) I grab the value of the textarea:

var xml = $(# + id).val();

2) I then find the node and remove it:

$(xml).find(item[value='123']).remove();


Problem is, it doesn't remove anything! It finds the node just fine,
but the remove() function doesn't seem like it is doing anything. I've
tried looping through eacy item $('item',xml).each(function ); and
then calling remove(); but that does not work either. Any help on how
to manipulate xml data correctly? Thank you.

Bryan


[jQuery] Re: XML manipulation

2009-06-23 Thread Liam Potter


take it out of the textarea, right now it's not XML data but random text.

bigb wrote:

I'm having some real difficulty figuring out how to manipulate xml
data with jquery. Here is my situation. I have a hidden TextArea that
contains xml data, something like this:

items
  item value='1' text='x'/item
  item value='2' text='y'/item
/items


So, let's say I want to remove the item with value='1'.

1) I grab the value of the textarea:

var xml = $(# + id).val();

2) I then find the node and remove it:

$(xml).find(item[value='123']).remove();


Problem is, it doesn't remove anything! It finds the node just fine,
but the remove() function doesn't seem like it is doing anything. I've
tried looping through eacy item $('item',xml).each(function ); and
then calling remove(); but that does not work either. Any help on how
to manipulate xml data correctly? Thank you.

Bryan
  


[jQuery] Re: XML manipulation

2009-06-23 Thread Michael Lawson

I can't speak for javascript as I'm not the expert here, but in a lot of
other languages you have to explicitly tell objects and functions that the
String you are using is xml, else its just a string, which sounds like your
problem here.

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:   bigb bryanands...@gmail.com
   
  To: jQuery (English) jquery-en@googlegroups.com  
   
  Date:   06/23/2009 11:39 AM  
   
  Subject:[jQuery] XML manipulation
   






I'm having some real difficulty figuring out how to manipulate xml
data with jquery. Here is my situation. I have a hidden TextArea that
contains xml data, something like this:

items
  item value='1' text='x'/item
  item value='2' text='y'/item
/items


So, let's say I want to remove the item with value='1'.

1) I grab the value of the textarea:

var xml = $(# + id).val();

2) I then find the node and remove it:

$(xml).find(item[value='123']).remove();


Problem is, it doesn't remove anything! It finds the node just fine,
but the remove() function doesn't seem like it is doing anything. I've
tried looping through eacy item $('item',xml).each(function ); and
then calling remove(); but that does not work either. Any help on how
to manipulate xml data correctly? Thank you.

Bryan

inline: graycol.gifinline: ecblank.gif

[jQuery] Re: XML manipulation

2009-06-23 Thread bigb

I don't have an option to remove it from the textarea at the moment.
Is there a better way to storing and generating xml data on the fly?

On Jun 23, 8:41 am, Liam Potter radioactiv...@gmail.com wrote:
 take it out of the textarea, right now it's not XML data but random text.

 bigb wrote:
  I'm having some real difficulty figuring out how to manipulate xml
  data with jquery. Here is my situation. I have a hidden TextArea that
  contains xml data, something like this:

  items
    item value='1' text='x'/item
    item value='2' text='y'/item
  /items

  So, let's say I want to remove the item with value='1'.

  1) I grab the value of the textarea:

      var xml = $(# + id).val();

  2) I then find the node and remove it:

      $(xml).find(item[value='123']).remove();

  Problem is, it doesn't remove anything! It finds the node just fine,
  but the remove() function doesn't seem like it is doing anything. I've
  tried looping through eacy item $('item',xml).each(function ); and
  then calling remove(); but that does not work either. Any help on how
  to manipulate xml data correctly? Thank you.

  Bryan


[jQuery] Re: select all values of a multiple select list

2009-06-23 Thread Charlie





$("#yourSelect option").attr("selected","selected");

shaded wrote:

  is there a way to select all values of a multiple select list by
default?

  






[jQuery] Re: Using embedding youtube videos

2009-06-23 Thread onearmfrog

Never mind, I solved it.. :)

Yes, I needed the video to show itself in a youtube box, embedded.
In order for it to work, I inserted this code: param name=wmode
value=transparent /

Hope it would help someone else who's having this problem.

On Jun 23, 3:17 pm, Jonathan Vanherpe (T  T NV) jonat...@tnt.be
wrote:
 onearmfrog wrote:
  Hello.

  I've been trying to add embedded youtube videos to the carousel
  but so far without success.

  The videos are all over the screen, even when I wrap them in div.

  Has anyone ever done this and could help me?
  (or maybe it can't be done?

  Thanks!

 Do you have a link, or a better description of 'allover the screen'?

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


[jQuery] Re: XML manipulation

2009-06-23 Thread Liam Potter


I haven't really worked with XML before, but I can't see storing it in a 
textarea actually working.

As I understand your code you have this

textarea
items
item value='1' text='x'/item
item value='2' text='y'/item
/items
/textarea

You then put
items
 item value='1' text='x'/item
 item value='2' text='y'/item
/items

into the var 'xml'

This is now stored as a string
As far as I know you cannot use find on a string

I don't think this method will work, as far as I know you need to pull in the 
xml through ajax, and define it's dataType as xml.
You could try something like this

|$(function() {
$.ajax({
type: GET,
url: items.xml,
dataType: xml,
success: function(xml) {
$(xml).find('|item[value='123']|').remove();
}
});
});
|

Like I said though, I've not worked with XML before.

- Liam

bigb wrote:

I don't have an option to remove it from the textarea at the moment.
Is there a better way to storing and generating xml data on the fly?

On Jun 23, 8:41 am, Liam Potter radioactiv...@gmail.com wrote:
  

take it out of the textarea, right now it's not XML data but random text.

bigb wrote:


I'm having some real difficulty figuring out how to manipulate xml
data with jquery. Here is my situation. I have a hidden TextArea that
contains xml data, something like this:
  
items

  item value='1' text='x'/item
  item value='2' text='y'/item
/items
  
So, let's say I want to remove the item with value='1'.
  
1) I grab the value of the textarea:
  
var xml = $(# + id).val();
  
2) I then find the node and remove it:
  
$(xml).find(item[value='123']).remove();
  
Problem is, it doesn't remove anything! It finds the node just fine,

but the remove() function doesn't seem like it is doing anything. I've
tried looping through eacy item $('item',xml).each(function ); and
then calling remove(); but that does not work either. Any help on how
to manipulate xml data correctly? Thank you.
  
Bryan
  


[jQuery] Re: trigger validation by input:button

2009-06-23 Thread Liam Potter


As long as the buttons do not have any submit events binded you should 
be fine.

I'm not used either plugin though.

Pascal wrote:

I am new to Jquery and Validate and have similar issue, as anyone got
a solution?

On Jun 12, 7:58 am, Matt sean...@gmail.com wrote:
  

Hi,

I have been working on a big form and using jquery plug-in (wizard
form) to divide tit into small subforms. Now, I am trying to integrate
the Validation plugin to deal with the validation and come up with an
issue.

I run validation on subforms which contains two buttons(back, next).
Those 2 buttons are input:button type but not input:submit. I realise
the Validation plug-in would trigger the validation on submit event.
Is there any way I can modify the code so that it could handle my
requirement?

Having a look on the multipart demo which is the exact scenario I am
dealing with. However, the page below is not working. I tried on both
IE and FF.

http://jquery.bassistance.de/validate/demo/multipart/

Please advise.

Cheers,
Matt



[jQuery] Re: Array to JSON?

2009-06-23 Thread Nic Hubbard

Well, right now I am sending JSON to my php script which then uses
json_decode() to make them into vars.  But, I am wondering, is sending
JSON the best way?  Or should I just send the data as a normal query
string, rather than JSON?  Which is best?

On Jun 22, 5:13 pm, cs chuck.schleut...@gmail.com wrote:
 Why not make each field that has a nested key-value pair an object
 instead? In short, any array with a key but without a value is an
 object since your value is just an array of elements. What language is
 in charge of your back-end? And how is it handling the inputs your
 pass it? This is what really counts.

 JSON is

 On Jun 22, 7:01 pm, Nic Hubbard nnhubb...@gmail.com wrote:



  Yeah, I am not too hot on using a plugin for this.  I had hoped there
  was just a quick function that I could pass in an array and return
  JSON.

  On Jun 22, 8:28 am, diogobaeder diogobae...@gmail.com wrote:

   Hmmm... why would one use this plugin if we have Douglas Crockford's
   json2.org, which is the original JSON library from the same creator of
   the concept JSON? And why load more modules into the main jQuery
   object, making it heavier, if we don't use DOM element wrappers in the
   plugin, only conversions to/from JS objects?

   Sorry, I don't mean to be harsh, but it seems to me that this plugin
   is a reinvented wheel, and also that it didn't have to be a jQuery
   plugin to work. Does it have anything that we can't see in json2.org?

   Diogo

   On Jun 21, 11:39 pm, kranthi kranthi...@gmail.com wrote:

are u looking forhttp://www.google.co.in/search?q=jquery+json+plugin?


[jQuery] Re: Ajax tooltips using jQuery?

2009-06-23 Thread Charlie Griefer
There are a brazillian tooltip plugins for jQuery.  have you googled -jquery
tooltip- ?

At the moment, I lean towards liking qTip the best.

http://craigsworks.com/projects/qtip/

On Tue, Jun 23, 2009 at 6:18 AM, Nick Drew nickxd...@gmail.com wrote:


 Hi guys,

 I'm after an ajax tooltip to use with jQuery.

 For some reason, every one I find is either mootools or Prototype
 which without hacking around, don't seem to work alongside jQuery.

 Any recommendations, or maybe a script I could use that I haven't
 already found?

 Thanks




-- 
I have failed as much as I have succeeded. But I love my life. I love my
wife. And I wish you my kind of success.


[jQuery] Flash movie not playing in IE6, but working fine in firefox google chrome

2009-06-23 Thread krishna1...@gmail.com

Hi All,

I have used the swfobject.js file  its methods to play a flash movie
in my webpage. It works fine when I open the page in firefox  chrome
but does not work in IE-6.

Below is the code i used:

script type=text/javascript src=%= request.getContextPath() %/js/
swfobject.js/script
script type=text/javascript

function loadSWF(url) {
var flashvars = {
  autostart: false,
  thumb: videos/call/FirstFrame.png,
  thumbscale: 45
};
swfobject.embedSWF(url, flashcontent, 440, 300,
9.0.0,expressInstall.swf, flashvars);
}
/script

div id=flashcontent/div


Please help me on this.


[jQuery] Re: XML manipulation

2009-06-23 Thread bigb

Well, thank you everyone for your help. Through it I was able to come
up with a solution.

First, I had to convert the data from the textarea into an XmlDocument
(see jQuery.createXMLDocument).

Then, my manipulation worked perfectly.

Finally I had to convert the xmlDoc back to a string.

On Jun 23, 9:05 am, Liam Potter radioactiv...@gmail.com wrote:
 I haven't really worked with XML before, but I can't see storing it in a
 textarea actually working.
 As I understand your code you have this

 textarea
         items
                 item value='1' text='x'/item
                 item value='2' text='y'/item
         /items
 /textarea

 You then put
 items
   item value='1' text='x'/item
   item value='2' text='y'/item
 /items

 into the var 'xml'

 This is now stored as a string
 As far as I know you cannot use find on a string

 I don't think this method will work, as far as I know you need to pull in the 
 xml through ajax, and define it's dataType as xml.
 You could try something like this

 |$(function() {
                 $.ajax({
                         type: GET,
                         url: items.xml,
                         dataType: xml,
                         success: function(xml) {
                                 $(xml).find('|item[value='123']|').remove();
                         }
                 });});

 |

 Like I said though, I've not worked with XML before.

 - Liam

 bigb wrote:
  I don't have an option to remove it from the textarea at the moment.
  Is there a better way to storing and generating xml data on the fly?

  On Jun 23, 8:41 am, Liam Potter radioactiv...@gmail.com wrote:

  take it out of the textarea, right now it's not XML data but random text.

  bigb wrote:

  I'm having some real difficulty figuring out how to manipulate xml
  data with jquery. Here is my situation. I have a hidden TextArea that
  contains xml data, something like this:

  items
    item value='1' text='x'/item
    item value='2' text='y'/item
  /items

  So, let's say I want to remove the item with value='1'.

  1) I grab the value of the textarea:

      var xml = $(# + id).val();

  2) I then find the node and remove it:

      $(xml).find(item[value='123']).remove();

  Problem is, it doesn't remove anything! It finds the node just fine,
  but the remove() function doesn't seem like it is doing anything. I've
  tried looping through eacy item $('item',xml).each(function ); and
  then calling remove(); but that does not work either. Any help on how
  to manipulate xml data correctly? Thank you.

  Bryan


[jQuery] Re: jQuery Autocomplete - After service call if result is NULL then layer should be invisible

2009-06-23 Thread Dushyant Patel

It returns an empty, but still layer is there, it should be hided.

On Jun 22, 11:10 am, Jörn Zaefferer joern.zaeffe...@googlemail.com
wrote:
 What happens when your service doesn't return a result? As long as it
 returns an empty result (not an error), it should work fine.

 Jörn

 On Mon, Jun 22, 2009 at 5:01 PM, Dushyant Patelpatel.dushy...@gmail.com 
 wrote:

  Hello,

  I am using jQuery Autocomplete Plug-ins(http://bassistance.de/jquery-
  plugins/jquery-plugin-autocomplete/).

  Let me explain my problem:

  If i am looking for shirt and star typing shi and it showing me 10
  results for shirt, but now after shi if i type like shixyzyz it
  should clear list and hide autocomplete layer.

  In my case it is not doing that. Layer stay there with old results.

  Pleaes note that i am making service call using JSONP and following is
  my code.

  $j(.autocomplete).autocomplete('URL/Service.svc/REST/SEARCH/', {
                 minChars: 3,
                 matchContains: true,
                 selectFirst: false,
                 cacheLength: 0,
                 width:307,
                 dataType: jsonp,

  any suggestion or hint on this.

  Please help me.

  Thanks in advance.


[jQuery] Re: jQuery Autocomplete - After service call if result is NULL then layer should be invisible

2009-06-23 Thread Dushyant Patel

Hey i did not get you. Could please tell me more in details, if
possible with some code/examples.

Thanks in advance.

On Jun 23, 11:28 am, tarave arav...@yahoo.com wrote:
 As I mentioned in my earlier post I have the same problem with
 autocomplete.

 The fix/workaround that I added to my page was to add a validation
 that is executed just prior to the page submit.

 The validation takes the typed in value and queries my data source to
 verify the typed in value exists.  If the value does not exist the
 validation raises an error the user has to deal with.  Doing these met
 all my requirements and I did not have to change the plugin logic.

 Regards,
 Todd


[jQuery] Positioning Thickbox

2009-06-23 Thread sso

Is there a parameter or method for positioning thickbox?  The center
of the page is usually ideal, but not always.

I assumed something like this would work, but it doesn't seem to have
any affect.
?KeepThis=trueTB_iframe=trueheight=600width=1000left=200

Suggestions?


[jQuery] Re: Determine if autocomplete returns an empty list and number of records returned

2009-06-23 Thread Dushyant Patel

Could you please share code snippet with me.

Thanks in advanced.

On Jun 23, 9:29 am, JohnT jtra...@gmail.com wrote:
 Hi. Sorry, but I am not getting this flicker effect.

 Actually, I don't think this method is such a good idea anymore
 because you'd be forking the original source code. Now, I am simply
 returning a JSON record that indicates that there are 0 records and
 this works better for me.

 John

 On Jun 22, 9:13 pm, Dushyant Patel patel.dushy...@gmail.com wrote:

  i foundnd it, but its getting some flicker effect. how to avoid that?
  do you any idea? please share with me.

  Thanks

  On Jun 22, 7:36 pm, Dushyant Patel patel.dushy...@gmail.com wrote:

   Could you please tell me where exactly added following script block.

           isEmpty: function(data) {
                   if (data == 0) {
                           $(#result).html(No match found);
                   }
           }

   I am having same problem, but i don't want to show message, i just
   want to simply hide layer.

   On Jun 5, 4:20 pm, JohnT jtra...@gmail.com wrote:

Hi. I've just started using jQuery Autocomplete a few weeks ago.

While using jQuery, I found that I needed to know how many records
were returned and also if the result set returned was empty. After
searching the jQuery documentation I couldn't find any property or
method that returned this value, so I've added that functionality
myself and wanted to share it with the group.

1) Determine the number of records returned:

I wanted to show the user how many results were returned after they
start typing into the autocomplete field similar to how Google
indicates the number of results found when you start typing in the
search box.

At first I thought the max parameter in the function formatItem
returned this value. However, it returns the max option that you set
it to. So if your query returns 100 records and you set max to 25,
it'll obviously return 25 (not what I wanted).

So after trying various things, I looked at the jQuery code and simply
added the number of records returned by the database to the
formateItem function. In the fillList() function around line 660 I
added the data.length parameter:

        var formatted = options.formatItem(data[i].data, i+1, max, data
[i].value, term, data.length);

And in my autocomplete code, I added the parameter to the end of the
param list:

        formatItem: function(data, i, total, value, searchTerm, 
totalResults)

So now whenever a new search is preformed, I get back the number of
search result from the database.

2) Determine if a result set returned was empty

I wanted to update a div with a message like no records found
whenever the query yielded no results. Again, after searching the
jQuery documentation, I couldn't find any property or method that
would indicate this so I added it to the code.

In the request function after the line var data = cache.load(term); I
added the following:

        if (!data) {
                options.isEmpty(0);
        } else {
                options.isEmpty(data.length);
        }

And in my autocomplete code, I added the following:

        isEmpty: function(data) {
                if (data == 0) {
                        $(#result).html(No match found);
                }
        }

Hope this helps others. Since I am new to jQuery I'd appreciate any
feedback especially if there is a better way to do this.

Thanks
John


[jQuery] Re: Ajax tooltips using jQuery?

2009-06-23 Thread Rick Faircloth
So, the Brazillians are making a move in the jQuery programming market, huh?



On Tue, Jun 23, 2009 at 12:26 PM, Charlie Griefer charlie.grie...@gmail.com
 wrote:

 There are a brazillian tooltip plugins for jQuery.  have you googled
 -jquery tooltip- ?

 At the moment, I lean towards liking qTip the best.

 http://craigsworks.com/projects/qtip/

 On Tue, Jun 23, 2009 at 6:18 AM, Nick Drew nickxd...@gmail.com wrote:


 Hi guys,

 I'm after an ajax tooltip to use with jQuery.

 For some reason, every one I find is either mootools or Prototype
 which without hacking around, don't seem to work alongside jQuery.

 Any recommendations, or maybe a script I could use that I haven't
 already found?

 Thanks




 --
 I have failed as much as I have succeeded. But I love my life. I love my
 wife. And I wish you my kind of success.




-- 
--
Ninety percent of the politicians give the other ten percent a bad
reputation.  Henry Kissinger


[jQuery] Re: Ajax tooltips using jQuery?

2009-06-23 Thread Charlie





cluetip well supported on this board

http://plugins.learningjquery.com/cluetip/demo/


Charlie Griefer wrote:
There are a brazillian tooltip plugins for jQuery. have
you googled -jquery tooltip- ?
  
At the moment, I lean towards liking qTip the best.
  
  http://craigsworks.com/projects/qtip/
  
  On Tue, Jun 23, 2009 at 6:18 AM, Nick Drew nickxd...@gmail.com
wrote:
  
Hi guys,

I'm after an ajax tooltip to use with jQuery.

For some reason, every one I find is either mootools or Prototype
which without hacking around, don't seem to work alongside jQuery.

Any recommendations, or maybe a script I could use that I haven't
already found?

Thanks
  
  
  
  
  
-- 
I have failed as much as I have succeeded. But I love my life. I love
my wife. And I wish you my kind of success.






[jQuery] Re: Flash movie not playing in IE6, but working fine in firefox google chrome

2009-06-23 Thread Sam Sherlock
Have you tried the google group for swfobject?
- S


2009/6/23 krishna1...@gmail.com krishna1...@gmail.com


 Hi All,

 I have used the swfobject.js file  its methods to play a flash movie
 in my webpage. It works fine when I open the page in firefox  chrome
 but does not work in IE-6.

 Below is the code i used:

 script type=text/javascript src=%= request.getContextPath() %/js/
 swfobject.js/script
script type=text/javascript

function loadSWF(url) {
var flashvars = {
  autostart: false,
  thumb: videos/call/FirstFrame.png,
  thumbscale: 45
};
swfobject.embedSWF(url, flashcontent, 440,
 300,
 9.0.0,expressInstall.swf, flashvars);
}
/script

div id=flashcontent/div


 Please help me on this.



[jQuery] Re: peculiar behaviour of clone

2009-06-23 Thread Scott Sauyet


brown.33 wrote:

But if we apply prepend for $j(#begin_947).clone().prepend($j
('#end_947')), it is deleting the entire end_947 element.
Can somebody explain me, why it is happening like this.


Do you really mean the following?:

$j(#begin_947).prepend($j('#end_947').clone());

This says, Make a clone of end_947, and prepend it before begin_947. 
Yours says, Make a clone of begin_947, and prepend end_947 before it 
(without putting the clone into the DOM.)


Cheers,

  -- Scott


[jQuery] Rond Corners Question....

2009-06-23 Thread Erik R. Peterson


Hi Guys!

Is the Round Corners script with Jquery worth using?  Does it really  
work with all browsers?  Does is need tweeking from the original  
install?


Any opinions out there?

Erik


[jQuery] Re: jquery-ui dialog and ajax issues updating from 1.2.6 to 1.3.2

2009-06-23 Thread James

It's most likely the other code in your script that's causing it.
Try removing all of your scripts on you page except for the jQuery
library and the jQuery UI library. There should be no errors. (If
there is, then something is wrong with the libraries you have.)
Then one by one add the other scripts in and check whether there are
errors. This will closer pinpoint the cause of the issue.

On Jun 23, 4:35 am, Etienne Robillard robillard.etie...@gmail.com
wrote:
 I retried and it's still grokking loudly:

 http://gthc.org/tm_api-2.0/demo.html

 the most irritating part is:

  [e] message = [string] s.xhr is not a function
 Exception ``TypeError: s.xhr is not a function'' thrown from function
 anonymous(event=Object:{38}) in
 http://gthc.org/media/js/jquery-ui-1.7.2-custom/development-bundle/jq...
 line 2693.

 How is that happening ? Does it need any extra options in $.ajaxSettings
 for making it compatible with 1.3.X ?

 My $.ajaxSettings looks like this, at least in the 1.2.6 
 series:http://gthc.org/tm_api-2.0/src/ajax.js

 I have find no use yet for the 'xhr' param, is this now required in
 jquery 1.3.X ?

 Best regards,
 Etienne



 Etienne Robillard wrote:
  Thanks!

  I'll upgrade to jQuery UI 1.7+ and retry.. :D

  Best regards,
  Etienne

  Cesar Sanz wrote:
  I had the problem too..

  You must to update jquery and ui too

  - Original Message -
  From: James james.gp@gmail.com
  To: jQuery (English) jquery-en@googlegroups.com
  Sent: Monday, June 22, 2009 12:18 PM
  Subject: [jQuery] Re: jquery-ui dialog and ajax issues updating from 1.2.6
  to 1.3.2

  When you update jQuery to 1.3+ from an older version, you also have to
  update your UI library to 1.7+ because jQuery 1.3+ is not compatible
  with older versions of jQuery UI.

  On Jun 22, 5:25 am, Etienne Robillard robillard.etie...@gmail.com
  wrote:
  Hi,

  I'm using jquery-ui 1.6 custom build with jquery 1.2.6 trying to
  set up a dialog window. Unfortunately I can't update to 1.3.2 since this
  would trigger some unexpected XHR-related bugs like the following:

  Exception ``TypeError: M.xhr is not a function'' thrown from function
  anonymous(M=Object:{12}) in
  http://localhost/media/js/jquery/jquery-1.3.2.min.js

  So I'm sticking with the 1.2.6 build, which works fine despite a
  minor/not-critical XHR issue:

  Exception ``TypeError: s.accepts is undefined'' thrown from function
  anonymous(s=Object:{12}) in
  http://localhost/media/js/jquery/jquery-1.2.6.pack.js

  Notice that this error is reported in FireBug/Venkman, however Firefox
  doesn't seem to care and let the XMLHTTPRequest to execute successfully.

  The code for the dialog window is given below. I don't seem to
  understand why posted data cannot be shown on the dialog box twice.

  Moreover, it will display it as I want on the first $.post request but
  any additional requests triggered with a click event don't show any
  updated data on the dialog box. Venkman reports that the anonymous
  callback function manages to obtain the updated data, but still nothing
  get shown on the dialog, just an empty div... ;-)

  Any help or advices for debugging this issue?

  Best regards,
  Etienne

  This is the script that gets evaluated by jQuery (using $.get(...)). A
  json object is returned by the server either containing form validation
  errors or a result object that contains simple strings.

  script type=text/javascript
  $(function(){

  $('#'+'formControlBtn').bind('click', function(){
  //send the form with a ajax request. on success,
  //return a comment preview.
  var formData = $('#'+'commentform').serialize();

  //one-liner to remove old error messages before posting a new comment
  $('p.error').each(function(){$(this).remove()});

  $.post('comment', formData, function(json) {
  var result = json.errordict || json.comment;

  if (result == json.comment) {
  // Look for the comment preview..
  // Display a pop-up window (dialog) with the comment preview
  // in HTML. By clicking on OK or Save the user has no more
  // undo chances and the comment will be made.
  var commentHTMLDialog = $('div id=commentDialog
  class=ui-dialog ui-widget ui-content\/div');

  // Set a title
  $(commentHTMLDialog).attr('title', 'Preview comment');

  // Setup default dialog constructor options
  $(commentHTMLDialog).dialog({
  autoOpen: true,
  bgiframe: false, // must keep this for IE6? default =
  'dont care'
  width: 500,
  modal: true, // prevent reposting while the dialog
  is enabled
  dialogClass: 'generic',
  height: 400,
  overlay: {
  backgroundColor: '#000',
  opacity: 0.5
  },
  buttons: {
  It's all good, add my comment please. : function() {
  $(this).dialog('close');
  },
  Cancel: function() {
  $(this).dialog('close');
  }
  },
  open: function() {
  // Constructor to define what to do when opening
  // the dialog widget
  var commentHTMLBody = $(ul
  id='commentHTMLBody'/ul);
  $(commentHTMLBody).prependTo($(commentHTMLDialog));
  for (var x in result) 

[jQuery] Re: Internet Explorer and the html method??

2009-06-23 Thread James

In here: div class=thumb+nu+
you're trying to set the variable nu, yet, nu is also a part of
the variable you're trying to set.
You should add ending semi-colons ( ; ) to properly end your code,
which will reduce errors.
I think you want:

 var nu = $(this).find('nu').text();

 var html = div class=thumb+nu+a href='http://mylink.com'
img
src='images/+thumb+.jpg' alt='+alt+' name='image+nu+' width=82
height=62 border=0/a/div;

 $(#content).append(html);



On Jun 22, 9:50 pm, Lleoun adoming...@vivocom.es wrote:
 Dear all,

 The following code is working great for all browsers except for
 Internet Explorer ..
 I've been investigating and the problem seems to be the html method.
 How can I change the script for it to work in Internet Explorer also?

 Thanks in advance!

 script src=scripts/jquery-1.3.2.min.js type=text/javascript/
 script
    script type=application/javascript
      $(function() {

              $.ajax({
                  type: GET,
                  url: myxml.xml,
                  dataType: xml,
                  success: function(xml) {
                      $(xml).find('item').each(function(){
                          var thumb = $(this).find('thumb').text()
                          var ids = $(this).find('ids').text()
                           var alt = $(this).find('alt').text()
                           var nu = $(this).find('nu').text()

  .html(div class=thumb+nu+a href='http://mylink.com'img
 src='images/+thumb+.jpg' alt='+alt+' name='image+nu+' width=82
 height=62 border=0/a/div)

                              .appendTo('#content');

                      }); //close each(
                  }
              }); //close $.ajax(
      }); //close $
 /script

 div id=content/div


[jQuery] Re: calling ajax function from php file

2009-06-23 Thread James

Maybe they want to use this library :p
http://phpjs.org

Of course, it still doesn't call actual server-side PHP functions.

On Jun 22, 10:57 pm, Liam Potter radioactiv...@gmail.com wrote:
 You don't call php functions on the client side.
 You just need to pass data on to it, and have the php manipulate in the
 way you want.

 naz wrote:
  i m using jquery 1.3.2 .and i want to call a function define in ajax
  file.form php file please tell me how can i do that .
  thnx in anticipation
  i need reply as soon as possible


[jQuery] Re: return value of nested functions is always undefined

2009-06-23 Thread Scott Sauyet


anawak82 wrote:


function getPrice(id)
   {
 $.get('db.xml', function(d){
 $(d).find('data').each(function(){
var $data = $(this);
 if ($data.find(id).text() == id)
 {
var price = $data.find(preis).text().trim();
return price;
}
 });
 });
 };

I assume that the nested functions are part of the problem, but I
don't know how to solve it.


Your return statement is returning out of the function inside the 
each.  That is not getting back to the outer function.  In this case, 
returning false works like a break statement in a loop, returning true 
works like a continue statement, and either way, it's not what you 
want.  And although something like this looks better, it will also not work:


function getPrice(id) {
var price;
$.get('db.xml', function(d) {
$(d).find('data').each(function() {
var $data = $(this);
if ($data.find(id).text() == id) {
price = $data.find(preis).text().trim();
return false; // ends the each loop immediately.
}
});
});
return price;
};

That's because the AJAX call returns immediately, and there is no wait 
for price to be updated.  Essentially, you need to structure your code 
so that any result of an AJAX call is handled with a callback.  Let's 
say you have some function


function handlePriceUpdate(id, price) {
// ...
}

Then you could invoke it from your function like this:

function updatePrice(id) {
$.get('db.xml', function(d) {
$(d).find('data').each(function() {
var $data = $(this);
if ($data.find(id).text() == id) {
var price = $data.find(preis).text().trim();
handlePriceUpdate(id, price);
return false; // ends the each loop immediately.
}
});
});
};

And perhaps even better would be to pass the function directly into the 
call, like this:


function updatePrice(id, handler) {
$.get('db.xml', function(d) {
$(d).find('data').each(function() {
var $data = $(this);
if ($data.find(id).text() == id) {
var price = $data.find(preis).text().trim();
handler(price, id /* needed? */);
return false; // ends the each loop immediately.
}
});
});
};

Note that none of this is tested at all.

Cheers,

  -- Scott


[jQuery] Problem with loading SELECT on change of other select

2009-06-23 Thread Paul

Hi there,

This is what I'm trying to do:

When a user selects a group in the first SELECT box, another SELECT
box should be loaded from an external PHP-file (using MySQL), based on
the group-id of the first SELECT box.

I use this code:

$('#kiesgroep').change(function(){
$.post(?php echo base_url();?php/kies_speltak.php, {
groepid: $('#kiesgroep').val()
  }, function(response){
$('#kiesspeltakveld').fadeOut();
setTimeout(finishAjax('kiesspeltakveld', '+escape(response)
+'), 200);
  });
  return false;
}).change();

function finishAjax(id, response) {
  $('#'+id).html(unescape(response));
  $('#'+id).fadeIn();
} //finishAjax

where #kiesspeltakveld is the field where the second SELECT box should
be loaded,
and #kiesgroep is the id of the first SELECT box.
But now the problem is that the second SELECT box gets loaded when the
page loads, NOT when the first SELECT box gets changed. Does anyone
know why?


[jQuery] Re: what is wrong with this simple load data codes

2009-06-23 Thread efet

It does, but I tried it with uppercase, lowercase none worked. Page is
giving me this error when first opened though

Error: [Exception... Component is not available  nsresult:
0x80040111 (NS_ERROR_NOT_AVAILABLE)  location: JS frame ::
file:///C:/Program%20Files/Mozilla%20Firefox/components/nsSessionStore.js
:: sss_saveState :: line 1909  data: no]
Source File: 
file:///C:/Program%20Files/Mozilla%20Firefox/components/nsSessionStore.js
Line: 1909


[jQuery] Re: Problem with loading SELECT on change of other select

2009-06-23 Thread Charlie





this sure doesn't look right

$('#kiesgroep').change(function(){$.post}).change();
remove 2nd change(). it's likely causing change to trigger


Paul wrote:

  Hi there,

This is what I'm trying to do:

When a user selects a group in the first SELECT box, another SELECT
box should be loaded from an external PHP-file (using MySQL), based on
the group-id of the first SELECT box.

I use this code:

$('#kiesgroep').change(function(){
		$.post("?php echo base_url();?php/kies_speltak.php", {
	groepid: $('#kiesgroep').val()
	  }, function(response){
	$('#kiesspeltakveld').fadeOut();
	setTimeout("finishAjax('kiesspeltakveld', '"+escape(response)
+"')", 200);
	  });
	  return false;
	}).change();

function finishAjax(id, response) {
  $('#'+id).html(unescape(response));
  $('#'+id).fadeIn();
} //finishAjax

where #kiesspeltakveld is the field where the second SELECT box should
be loaded,
and #kiesgroep is the id of the first SELECT box.
But now the problem is that the second SELECT box gets loaded when the
page loads, NOT when the first SELECT box gets changed. Does anyone
know why?

  






[jQuery] Re: what is wrong with this simple load data codes

2009-06-23 Thread efet

Ok that fixed! They index.asp and getir.asp were in a folder so I had
to add the folder name in the url section. Something like  this:
$.post(newfolder/getir.asp?Process=UPS

On Jun 23, 2:55 pm, efet efetun...@gmail.com wrote:
 It does, but I tried it with uppercase, lowercase none worked. Page is
 giving me this error when first opened though

 Error: [Exception... Component is not available  nsresult:
 0x80040111 (NS_ERROR_NOT_AVAILABLE)  location: JS frame ::
 file:///C:/Program%20Files/Mozilla%20Firefox/components/nsSessionStore.js
 :: sss_saveState :: line 1909  data: no]
 Source File: 
 file:///C:/Program%20Files/Mozilla%20Firefox/components/nsSessionStore.js
 Line: 1909


[jQuery] [ANN] jQuery Metadata 2.1

2009-06-23 Thread Yehuda Katz
I just released jQuery Metadata 2.1, which adds support for HTML5 data-*.
Usage:

 p id=one class=some_class data-item_id=1
data-item_label=LabelThis is a p/p;

$.metadata.setType(html5)
$(#one).metadata().item_id == 1;
$(#one).metadata().item_label == Label;

 Get it at http://plugins.jquery.com/project/metadata

-- 
Yehuda Katz
Developer | Engine Yard
(ph) 718.877.1325


[jQuery] Re: Problem with loading SELECT on change of other select

2009-06-23 Thread Matthew

Question about the code, in the change() event, why are you calling
two functions for the callback? I though change() could only get one
function as a parameter.

On Jun 23, 11:44 am, Paul paulverh...@gmail.com wrote:
 Hi there,

 This is what I'm trying to do:

 When a user selects a group in the first SELECT box, another SELECT
 box should be loaded from an external PHP-file (using MySQL), based on
 the group-id of the first SELECT box.

 I use this code:

 $('#kiesgroep').change(function(){
                 $.post(?php echo base_url();?php/kies_speltak.php, {
                 groepid: $('#kiesgroep').val()
               }, function(response){
                 $('#kiesspeltakveld').fadeOut();
                 setTimeout(finishAjax('kiesspeltakveld', '+escape(response)
 +'), 200);
               });
               return false;
         }).change();

 function finishAjax(id, response) {
   $('#'+id).html(unescape(response));
   $('#'+id).fadeIn();

 } //finishAjax

 where #kiesspeltakveld is the field where the second SELECT box should
 be loaded,
 and #kiesgroep is the id of the first SELECT box.
 But now the problem is that the second SELECT box gets loaded when the
 page loads, NOT when the first SELECT box gets changed. Does anyone
 know why?


[jQuery] shadow box+ajax and i have few queries .plz advice me

2009-06-23 Thread vetriB2W

Hi,
- How to show the shadow box with the help of jquery.
-how to call ajax.(when i tried $.post ,it requested twice .One with
the url i provided and another the current page url).How to resolve
this
- How to load the result from ajax ie response text?
-How to show some images while calling ajax and till we get the
response.
-how to show validation by changing the border color.

.Please advice me.


[jQuery] superfish horizontal navbar with a third level

2009-06-23 Thread Roberto da Costa

Hi,

I'm in trouble implementing superfish in a website project. My problem
is: I have a category based menu item that has two sub-levels set to
display horizontally. I hover the first menu item and the first sub-
level shows. Then I click the first sub-level and both it and its
parent-item get highlighted and stay visible. Then I do the same to
the sub-level below these but it doesn't work. This second sub-level
gets the right class ('current') but the first level loses its
'current-cat-parent sfHover sf-breadcrumb' classes causing all levels
to disappear.
Can someone help me please?


[jQuery] Using slideDown in a slideUp callback

2009-06-23 Thread Matthew

Hi all,
   I am trying to slideUp a container Div and using the slideUp's
callback parameter call slideDown on a different element that is not
inside the slideUp container Div:

$(#pageWrap).slideUp(1000, function(){
   $(#externalform).slideDown(500);
   $(#btn_uopBack).fadeIn(250);
});

One again all the elements being used with the effects are not
children or parents of each other.

The problem seems to be that when you call a slideDown or slideUp
inside a slideUp or slideDown callback the intial effect does not
work. So in my above example the $(#pageWrap).slideUp just jumps up
without a slide. I need the callback so I can have the effects happen
after the initial slideUp. Since I'm calling effects on different
elements I can't do the dot chain. Any other way to make this happen?
I'd like to avoid settimeout() if possible.

~ Matthew


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

2009-06-23 Thread Chippo

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
bharathbhooshan.amb...@gmail.com 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 p...@bjorsq.net 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

  --
  భరత్ భూషణ్ అంబటి

 --
 భరత్ భూషణ్ అంబటి


[jQuery] Re: nyroModal manual opening a page

2009-06-23 Thread Loony2nz

figured it out :)

var datastring = $(data).serialize();
var URL = /thankyoupage.cfm? + datastring;
$.nyroModalManual({
type: 'iframe',
modal: true,
url: URL
});

On Jun 18, 3:39 pm, Loony2nz loony...@gmail.com wrote:
 I have this within my page to open a page manually:

 $.nyroModalManual({
         url: '/thankyouPage.cfm'

 });

 Is there a way to pass URL parameters to the URL attribute?

 I tried HASH, but that didn't work.

 Thoughts?

 Thanks!


[jQuery] Re: load

2009-06-23 Thread Anderson Levi
I'm using jquery-1.3.2.min version .





2009/6/23 khaled abbad khaledab...@gmail.com

 ensure what is the jQuery version that you use.



[jQuery] Jquery JQzoom is not a function error, why?

2009-06-23 Thread Matt

I am working on an ecommerce site that uses smarty tpl files and I am
having trouble implementing JQzoom, I have already use a java based
menu system so I am aware of the {literal}{/literal}

I am trying to use JQzoom for product images and when the product page
loads the java isn't working. Firefox error console says.
Error: $(.jqzoom).jqzoom is not a function
Source File:/index.php?target=productsproduct_id=30472
Line: 23

When I run firefox's javascript debugger,  jquery.jqzoom1.0.1.js is
there and the.jqzoom function is present
NB, this isn't working in explorer either

Here is my code


head
{include file=meta.tpl}
{if $content == product_details || $content == products}
link rel=stylesheet type=text/css href={$skin_dir}/jqzoom.css /

link href={$skin_dir}/shadowbox.css rel=stylesheet type=text/
css /
script type=text/javascript language=JavaScript 1.2
src={$smarty.const.CSCART_HOST_DIR}/classes/scripts/
jquery-1.3.2.min.js/script
script type=text/javascript language=JavaScript 1.2
src={$smarty.const.CSCART_HOST_DIR}/classes/scripts/jquery.js/
script

script type=text/javascript language=JavaScript 1.2
src={$smarty.const.CSCART_HOST_DIR}/classes/scripts/shadowbox-
jquery.js/script
script type=text/javascript language=JavaScript 1.2
src={$smarty.const.CSCART_HOST_DIR}/classes/scripts/shadowbox.js/
script
script type=text/javascript language=JavaScript 1.2
src={$smarty.const.CSCART_HOST_DIR}/classes/scripts/
jquery.jqzoom1.0.1.js/script



script type=text/javascript
{literal}
$(document).ready(function(){
$(.jqzoom).jqzoom(); This is line 23
});

{/literal}
/script

{/if}

It has been suggested to me that the library isn't being loaded, but I
don't understand why.

I tried using  Jquery.noConflict () but that didn't make a difference.

Anyone got any ideas or suggestions?


[jQuery] Re: load

2009-06-23 Thread Anderson Levi
I already included at the top.

In IE function, but in Firefox not function.






2009/6/23 Paul Hutson hutsonphu...@googlemail.com


 Ensure you've included the Jquery package at the top of the page.


[jQuery] Re: Problems on IE7

2009-06-23 Thread xoail

Hi,

I did some fixes on validations on my local but it dint help much...

I did some more research and learned that, first the main site is
loading the jquery.listen.js file
and then when I click Glossary, the iframe is also loading the
jquery.listen.js file. Could it be that it has to do something
with conflicts between those two loads?



On Jun 22, 11:49 am, Charlie charlie...@gmail.com wrote:
 I'm far from an expert but your glossary is using a script to manipulate the 
 DOM. If DOM isn't valid, scripts manipulating it are likely to have problems. 
 A lot of  behind the scenes  repositioning, styling etc  occur to tags in 
 browser when manipulation scripts run so it only makes sense that  tag 
 problems  will cause script problems, resulting in page problems
 best guess is after you use glossary, browser isn't able to reassemble DOM 
 exactly, or has memory problems or ..your guess is good as mine
 xoail wrote:Yeah now I see the errors... but what I cant understand is why 
 would it work when I dont click glossary and directly go to search? The issue 
 only occurs when glossary is used first and then search but if I hit search 
 before using glossary, it works fine. If it had to do with validations, I 
 would assume it wont work at all irrespective of whether I use glossary or 
 not.. but I could be wrong.. my knowledge of javascript and jquery is very 
 limited so I desperately need some help... I am trying to fix some of those 
 errors relating to ID values being same... if you can think of anything else 
 please do let me know. Thanks a lot for helping me with this... On Jun 22, 
 9:31 am, Charliecharlie...@gmail.comwrote:validator shows recurring ID's 
 missing script type's, broken tags , invalid style placements, invalid xhtml 
 tags  etc,http://validator.w3.org/check?verbose=1uri=http%3A%2F%2Fpjm.comthe 
 errors part can be seen in web dev toolbar in firefox. Mostly they are 
 warnings and these seem to be quite common. The interesting part to me was 
 how often they refresh I profess to not know much about rapidly updating  
 pages like yours. Validation can cause all sorts of wierd things in DOM 
 manipulation, likely best place to start xoail wrote:What tool did you use to 
 see all those errors? I tried firebug and fiddler but they dont show much. 
 Also, I tried on another PC and I got the same problem with IE7. Thanks! On 
 Jun 20, 6:04 pm, Charliecharlie...@gmail.comwrote:i tried this in IE 7 and 
 was able to get to search after closing modal without complete lock up page 
 does however have a significant number of validation errors, multiple use of 
 ID's,  broken tags, invalid xhtml tags ,style tags inside body all over the 
 place etc and error console keeps throwing about a hundred warnings every 
 10-15 seconds some or all of these issues may be causing problems, validation 
 might help xoail wrote:Anybody? On Jun 19, 3:40 pm, 
 xoailmdsoh...@gmail.comwrote:Hi All, I've been literally pulling my hair 
 out with this issue I have with our corporate w ebsite. The problem is with 
 jquery light box (jqmodal) that freezes other controls after use  in IE7. 
 There seem to be no problem with IE6 or FF. If you go to p$j$m.com (remove $ 
 signs), click Glossary (on top left) close it and then try to use search (top 
 right), it freezes and then throws an error. Like I said, this issue only 
 happens in IE7. I have a feeling that something in jqmodal isnt closing and 
 its conflicting with other controls and IE7 is stupid enough to not identify 
 and correct it. I would greatly appreciate any help in this regards. Thanks!


[jQuery] Re: Determine if autocomplete returns an empty list and number of records returned

2009-06-23 Thread JohnT

First of all, your back end servlet/PHP/ASP etc needs to return JSON.
I simply return this if the record is empty: [ {records:'0'} ]

Then, in the formatItem function I check the JSON data:

if (data.records  data.records == 0) {
return No match found;
}

John


On Jun 23, 12:48 pm, Dushyant Patel patel.dushy...@gmail.com wrote:
 Could you please share code snippet with me.

 Thanks in advanced.

 On Jun 23, 9:29 am, JohnT jtra...@gmail.com wrote:

  Hi. Sorry, but I am not getting this flicker effect.

  Actually, I don't think this method is such a good idea anymore
  because you'd be forking the original source code. Now, I am simply
  returning a JSON record that indicates that there are 0 records and
  this works better for me.

  John

  On Jun 22, 9:13 pm, Dushyant Patel patel.dushy...@gmail.com wrote:

   i foundnd it, but its getting some flicker effect. how to avoid that?
   do you any idea? please share with me.

   Thanks

   On Jun 22, 7:36 pm, Dushyant Patel patel.dushy...@gmail.com wrote:

Could you please tell me where exactly added following script block.

        isEmpty: function(data) {
                if (data == 0) {
                        $(#result).html(No match found);
                }
        }

I am having same problem, but i don't want to show message, i just
want to simply hide layer.

On Jun 5, 4:20 pm, JohnT jtra...@gmail.com wrote:

 Hi. I've just started using jQuery Autocomplete a few weeks ago.

 While using jQuery, I found that I needed to know how many records
 were returned and also if the result set returned was empty. After
 searching the jQuery documentation I couldn't find any property or
 method that returned this value, so I've added that functionality
 myself and wanted to share it with the group.

 1) Determine the number of records returned:

 I wanted to show the user how many results were returned after they
 start typing into the autocomplete field similar to how Google
 indicates the number of results found when you start typing in the
 search box.

 At first I thought the max parameter in the function formatItem
 returned this value. However, it returns the max option that you set
 it to. So if your query returns 100 records and you set max to 25,
 it'll obviously return 25 (not what I wanted).

 So after trying various things, I looked at the jQuery code and simply
 added the number of records returned by the database to the
 formateItem function. In the fillList() function around line 660 I
 added the data.length parameter:

         var formatted = options.formatItem(data[i].data, i+1, max, 
 data
 [i].value, term, data.length);

 And in my autocomplete code, I added the parameter to the end of the
 param list:

         formatItem: function(data, i, total, value, searchTerm, 
 totalResults)

 So now whenever a new search is preformed, I get back the number of
 search result from the database.

 2) Determine if a result set returned was empty

 I wanted to update a div with a message like no records found
 whenever the query yielded no results. Again, after searching the
 jQuery documentation, I couldn't find any property or method that
 would indicate this so I added it to the code.

 In the request function after the line var data = cache.load(term); I
 added the following:

         if (!data) {
                 options.isEmpty(0);
         } else {
                 options.isEmpty(data.length);
         }

 And in my autocomplete code, I added the following:

         isEmpty: function(data) {
                 if (data == 0) {
                         $(#result).html(No match found);
                 }
         }

 Hope this helps others. Since I am new to jQuery I'd appreciate any
 feedback especially if there is a better way to do this.

 Thanks
 John


[jQuery] Re: Positioning Thickbox

2009-06-23 Thread brian

It's handled by CSS. Look for the #TB_window rule. I think it should
be fairlyt straightforward to modify the JS to accept left, top,
right, or bottom params, though. Look for the params[] variable.
There's also a tb_position() function that could be modified.

On Tue, Jun 23, 2009 at 12:46 PM, ssostrongsilent...@gmail.com wrote:

 Is there a parameter or method for positioning thickbox?  The center
 of the page is usually ideal, but not always.

 I assumed something like this would work, but it doesn't seem to have
 any affect.
 ?KeepThis=trueTB_iframe=trueheight=600width=1000left=200

 Suggestions?


[jQuery] Datagrid

2009-06-23 Thread Dyne Lightnos

Hello. I need advice as to what Datagrid component to use.

I need one that supports JSON, and it's considerably updated. Also
could use the update, add and delete functions.

I seem to have a hard time finding a good library to do Grid work.
Ingrid doesn't do it for me and Flexigrid is dead and doesn't work
with JQuery 1.3.2

Any ideas are more than welcome!


[jQuery] Re: Drop Shadows!!!

2009-06-23 Thread Raj

Hi Erik,

The http://eyebulb.com/dropshadow/ is definitely promising. However, I
tried using it for draggable content which has a border and other divs
around it, the shadow didnt work on this quite well. Am still on the
looking for something as neat as this.

Thanks,
Raj

On Jun 23, 2:10 am, Erik R. Peterson eriks...@mac.com wrote:
 Hi everyone..

 Is the jquery drop shadow worth using?

 Can anyone direct me ofr the quickest solution.

 many thanks

 Erik


[jQuery] Looping through getJSON data

2009-06-23 Thread Nic Hubbard

I am returning data from the .getJSON() function and trying to write
is all out in the body.  But, for some reason this is not working at
all.  What have I done wrong?

$.getJSON(api_url, params,
function(data, texStatus)   {
// Check our array
for (i=0;idata.length; ++i) {
$('body').append(data[i]);
}
}
);


[jQuery] Re: Jquery JQzoom is not a function error, why?

2009-06-23 Thread brian

On Tue, Jun 23, 2009 at 12:28 PM, Mattmjol...@hotmail.com wrote:

 I am working on an ecommerce site that uses smarty tpl files and I am
 having trouble implementing JQzoom, I have already use a java based
 menu system so I am aware of the {literal}{/literal}

 I am trying to use JQzoom for product images and when the product page
 loads the java isn't working. Firefox error console says.
 Error: $(.jqzoom).jqzoom is not a function
 Source File:/index.php?target=productsproduct_id=30472
 Line: 23

You mean javascript, right? Different thing.

 When I run firefox's javascript debugger,  jquery.jqzoom1.0.1.js is
 there and the.jqzoom function is present
 NB, this isn't working in explorer either

 Here is my code

This would be easier to diagnose if you post the source of the page
(ie. what the browser sees), rather than your smarty template code.


[jQuery] jquery parsing problem

2009-06-23 Thread Bill

If I get the following response back from $.get(..., 'xml'), jQuery is
unable to recognize address as an attribute.

?xml version=1.0 encoding=UTF-8?\n
device address=http://192.168.1.100/

NOTE: The '\n' are actual line feeds not, the characters \ and n. I
just want to show them for emphasis since removing it in the above
scenario allows it to work.

If the line feed character is removed so that it is all on one line,
then it works fine. If device is split up like

?xml version=1.0 encoding=UTF-8?\n
device\n
  url address=http://192.168.1.100/\n
/device

then everything parses fine.


[jQuery] Re: jQuery in an eBay auction template? Is it possible?

2009-06-23 Thread Raj

Hi,

eBay does say this as a rule. If you reference jquery through src in
script, then it may fall under this category.

HTML or JavaScript that automatically calls remote scripts and pages
(such as JavaScript includes or iframes)

However, there is nothing that stops you from pasting the content from
jquery.js to your page. I work for eBay and if its okay with you -
please send me your content, I can check if there is anything else in
there that makes it come back with this error message.

Thanks,
Raj
rajb...@gmail.com

On Jun 23, 4:13 pm, eepeterson eepeter...@gmail.com wrote:
 That's not the message I saw. Also you can definitely use some forms
 of javascript on eBay. See 
 this:http://pages.ebay.com/help/policies/listing-javascript.html

 So I guess what I'm really asking is if it is possible to modify or
 use part of the jQuery script to meet eBay's terms on javascript.

 Thanks!

 On Jun 23, 5:23 am, Ricardo ricardob...@gmail.com wrote:

  The error message says it all: for security reasons, your listing
  *cannot* contain javascript.

  On Jun 22, 1:01 pm, eepeterson eepeter...@gmail.com wrote:

   Ok, let me start by saying I'm not a great programmer. I can do well
   with HTML  CSS but don't know a ton about js  jQuery.

   Anyway, I'd like to include some jQuery in the form of a gallery of
   images in my eBay auction. However the problem I run into is that when
   I paste the completed code into the eBay I get a message that says
   Your listing cannot contain javascript(.cookie, cookie(, replace
   (, IFRAME, META, or includes), cookies or base href. So I revised
   the code to include no hrefs to the js and pasted it all in the header
   instead. I still get the same error. I took a closer look at the code
   and of course the instances of the replace() method and so on. I would
   like to figure a way around this so I could use jQuery on eBay.

   Has anyone had any luck using jQuery in an eBay auction?

   Any help you might have would be great. Thanks in advance.


[jQuery] [validate] Decent Date Checking using the JQuery Validate Plugin?

2009-06-23 Thread Mr Fett

Hi all,

I've been using the fantastic validate plugin for a while now but I've
always found the support for date validation sorely lacking as it
really only checks that there are three numeric columns (i.e. nn/nn/
).

See here for the reference to this in the documentation:
http://docs.jquery.com/Plugins/Validation/Methods/date

Does anyone know of a simple way /  addition to have the validate
plugin check to make sure a date is actually valid?

Thanks!

Bob


[jQuery] Re: jQuery Tooltip Plug-in 1.3 Update

2009-06-23 Thread Karl Swedberg


On Jun 23, 2009, at 9:50 AM, funomat wrote:



You need to use a newer dimensions version.

http://plugins.jquery.com/project/dimensions




You don't need to use the Dimensions plugin at all. It has been  
incorporated into the jQuery core file.




--Karl


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



[jQuery] Re: superfish horizontal navbar with a third level

2009-06-23 Thread Charlie





'current-cat-parent' isn't a class used in original superfish .



Is this a CMS installation(joomla or other?)

You either have a modified version, or this class comes from your template. Sounds like you have other css and/or scripts affecting menu.

No way to tell without link or code 



Roberto da Costa wrote:

  Hi,

I'm in trouble implementing superfish in a website project. My problem
is: I have a category based menu item that has two sub-levels set to
display horizontally. I hover the first menu item and the first sub-
level shows. Then I click the first sub-level and both it and its
parent-item get highlighted and stay visible. Then I do the same to
the sub-level below these but it doesn't work. This second sub-level
gets the right class ('current') but the first level loses its
'current-cat-parent sfHover sf-breadcrumb' classes causing all levels
to disappear.
Can someone help me please?

  






[jQuery] Re: TreeView question

2009-06-23 Thread Russell

Any help appreciated!

On Jun 18, 9:39 am, GTGeek88 russcampb...@interthink.com wrote:
 I'm looking at using the treeview plugin by Jorn.  What I'm wondering
 is how to get folders added at a particular spot and how to manage
 folders by dragging them around (or in some other fashion).  Perhaps
 there are some plugins to the plugin, so to speak.  Or maybe there is
 another one better suited to folder management.  Could anyone give
 some suggestions or recommendations?  His plugin is working well for
 navigation, but I need a bit more.


  1   2   >