[jQuery] Re: selected accordion background

2010-01-19 Thread spiderling
Thank you very much!! Works perfectly.

Pasquale.


On Jan 18, 12:31 pm, Nathan Klatt n8kl...@gmail.com wrote:
 Pasquale,

 Looks like it no longer sets the class to selected for you; just gotta
 do it yourself.



 On Mon, Jan 18, 2010 at 12:31 PM, spiderling webmas...@spiderling.ca wrote:
  bump :-)

  On Jan 15, 7:13 pm, spiderling webmas...@spiderling.ca wrote:
  I'm using an accordion which functions perfectly. I was using jQuery
  1.2.6 with UI 1.6 and was able to have a different background image
  displayed when the section was expanded using .selected. I upgraded to
  jQuery 1.3.2 with UI 1.7.2, and the selected / expanded background
  image no longer works. Everything else works fine. Any suggestions on
  how I can get it working again with 1.3.2 and 1.7.2?

  Thanks
  Pasquale

  // jQuery
  script type=text/javascript
  $(document).ready(function(){
          $(#accordion1).accordion({
                  active: false,
                  header: '.heading',
                  collapsible: true,
                  autoHeight: false

          })
   .bind('accordionchange', function(event, ui) {
     $(ui.oldHeader).removeClass(selected);
     $(ui.newHeader).   addClass(selected);
   });

 });
  /script

 Nathan


[jQuery] Re: Simple .html problem in 1.4

2010-01-19 Thread seasoup
What does the responseText look like?

On Jan 18, 7:58 pm, Bruce MacKay br...@thomasbaine.com wrote:
 Hi folks,

 The following function works fine in jQ1.3, but not in jQ1.4

 function getArchive(pID){
      $.get(scripts/ajax_editor.asp?id=getArcepID=+pID+q= + new
 Date().getTime(),
      function(responseText){
          //console.log(responseText);
          $('#archive').html(responseText).show();
      });
      $('#archiveOn').hide();$('#archiveOff').show(5);

 };

 In both instances, the responseText is returned, but whereas it is
 injected into the div 'archive' and displayed when using jQ1.3, nothing
 happens when 1.4 is used.

 Any idea of where I should be looking for a solution?

 Thanks, Bruce


[jQuery] Re: JQuery and AJAX Heartbeat question

2010-01-19 Thread mind01
Thanks for your tips brian and scott.

 set_time_limit(0);

 The expected value is integer seconds. A value of 0 disables the time
 limit altogether.

If i try set_time_limit(20); it gives me an 500 error after 20
seconds, but if i set the value to 60 seconds, i still get a server
time out after 30 seconds.

I have seen upload scripts with some kind of callback to the server to
avoid a time out.
There must be something i can do right?

Thnx again.


[jQuery] jQuery 1.4 change event problem

2010-01-19 Thread Steven Yang
Hi all

I apologize if this problem has been post or report.

I have a problem using jQuery 1.4 when i use
$(#mySelect).change(function(){...my logic...})

This problem only occurs in IE. 6-8 all have the same problem and jQuery
1.3.2 does not have this problem.

This problem occurs when I bind a change event on a select and when the
page is loaded the selected option is not the first one.
What will happen is when I click on the select and not even have a chance to
choose my option, the change event is fired. But after the first change,
things works normally.

i made a simple sample here:
http://jsbin.com/apufa/ http://jsbin.com/apufa/edit

you will notice when you click on the select the alert will fire, but it
should only be fired when i actually change the option.

is this a bug?

Thanks


[jQuery] Re: jQuery 1.4 change event problem

2010-01-19 Thread pambuk
Same here, would love to hear an answer.

On Jan 19, 11:00 am, Steven Yang kenshin...@gmail.com wrote:
 Hi all

 I apologize if this problem has been post or report.

 I have a problem using jQuery 1.4 when i use
 $(#mySelect).change(function(){...my logic...})

 This problem only occurs in IE. 6-8 all have the same problem and jQuery
 1.3.2 does not have this problem.

 This problem occurs when I bind a change event on a select and when the
 page is loaded the selected option is not the first one.
 What will happen is when I click on the select and not even have a chance to
 choose my option, the change event is fired. But after the first change,
 things works normally.

 i made a simple sample 
 here:http://jsbin.com/apufa/http://jsbin.com/apufa/edit

 you will notice when you click on the select the alert will fire, but it
 should only be fired when i actually change the option.

 is this a bug?

 Thanks


[jQuery] Re: JQuery and AJAX Heartbeat question

2010-01-19 Thread Scott Sauyet
On Jan 19, 4:44 am, mind01 mindproduction...@gmail.com wrote:
 If i try set_time_limit(20); it gives me an 500 error after 20
 seconds, but if i set the value to 60 seconds, i still get a server
 time out after 30 seconds.

If you're in control of the php.ini file, there is almost certainly a
setting in there you can use.  But I doubt this is something
overridable in individual scripts.

 I have seen upload scripts with some kind of callback to the server to
 avoid a time out.

Yes, but uploads are handled differently than these scripts.  I'm
pretty sure your PHP script is not called until the entire HTTP
request is received.  Callbacks are probably built with something
watching for the upload to a file to be completed, although that's a
complete guess.

 There must be something i can do right?

Well you, of course.  If you can update the php.ini, I'm sure you can
fix this.  But that would mean that your server might hang, for say
ten minutes on other requests that are not processing, just stuck.

I think the solution I suggested before would not be terribly
difficult to work out.

Good luck,

  -- Scott


[jQuery] UNSUSCRIBE

2010-01-19 Thread Juan Ignacio Borda

unsuscribe
attachment: juanignacioborda.vcf

[jQuery] Multilevel navigation error

2010-01-19 Thread test11

Hi
   I am using superfish component for multilevel navigation menu. I have
successfully implemented it. but i got a small problem. When my website
opened for the first time, it is showing all the menu links until the page
loads completely in internet explorer. here is my site www.makrohealth.com.
It became a big problem for me. every ones suggestion will be helpful.

Thanks
Kiran Kumar Uppuluncha 
-- 
View this message in context: 
http://old.nabble.com/Multilevel-navigation-error-tp27224969s27240p27224969.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



[jQuery] Lists, Filtering and Searching, Oh My!

2010-01-19 Thread david.vansc...@gmail.com
A while back, the company I work for tasked me with coming up with a
better way to move through a listing of forms on our Intranet.  The
way it was done before involved two identical files being maintained
simultaneously, one sorted by the form ID (AA0001) and the other by
name.  The list of forms is nothing to sneeze at ... the first page
includes a list of over 1800 forms.

My first stab at a solution moved everything into a single unordered
list.  I was able to assign classes to each list item for the alpha
character, the ID and type.  Clicking on the appropriate links would
show only those items which you selected.  I also plugged in Rik
Lomas' awesome QuickSearch plugin to quickly search the list.  The
only drawback was that the group responsible for maintaining the list
of forms had to choose whether they wanted the list sorted by name or
form ID.  They chose name.  Last week though, they decided that wasn't
good enough and they needed to be able to sort by either name or form
ID, so I've been handed this project again and told to make it work
more to their liking.  A table would break from the way they've
organized these forms for years now, so they're really not interested
in something like that, so it'd really need to be a list.  The forms
need to be able to be sorted alphabetically by name or form ID as well
as organized by category.

My first idea was to build a big (and I mean BIG) JSON file that would
store all the information for these forms.  I'd then be able to parse
through the JSON object and build the list on the fly based on what
they clicked.  Of course, we're talking about a JSON file that'd
probably be over 2000 lines and would have to be parsed every time
they click something (I'm not sure if I could call in the JSON file
and have it available instead of using $.getJSON).  Then there's the
issue of searching.  Obviously QuickSearch works great, but how am I
going to search through a static file without throwing everything on
to the page?

As you can see, I've begun brainstorming some ideas, but I'd really
love to hear what other solutions come to mind for you guys.  Any
ideas you have would be awesome.  Thanks!


David


Re: [jQuery] Re: jQuery 1.4 change event problem

2010-01-19 Thread David Statler
I made a quick mock up of this to try to find the problem. As you have both
stated, the problem only occurs in IE (I only tried it on IE6). However, I
rewrote the following and this works on IE6. The problem seems to occur when
you add selected=selected to the second option value.


!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN
  http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd;
html xmlns=http://www.w3.org/1999/xhtml; xml:lang=en lang=en
head
meta http-equiv=Content-type content=text/html; charset=utf-8
/
titleSandbox/title
style type=text/css media=screen
body { background-color: #000; font: 16px Helvetica, Arial;
color: #fff; }
/style
script type=text/javascript src=
http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js;/script
script type=text/javascript
$(document).ready(function(){
$(#mySelect).change(function(){
alert($(this).find(option:selected).val());
});
});
/script
/head
body
select id=mySelect
option value=1Value 1/option
option value=2Value 2/option
/select
/body
/html



On Tue, Jan 19, 2010 at 6:06 AM, pambuk wojtek.zymo...@gmail.com wrote:

 Same here, would love to hear an answer.

 On Jan 19, 11:00 am, Steven Yang kenshin...@gmail.com wrote:
  Hi all
 
  I apologize if this problem has been post or report.
 
  I have a problem using jQuery 1.4 when i use
  $(#mySelect).change(function(){...my logic...})
 
  This problem only occurs in IE. 6-8 all have the same problem and jQuery
  1.3.2 does not have this problem.
 
  This problem occurs when I bind a change event on a select and when the
  page is loaded the selected option is not the first one.
  What will happen is when I click on the select and not even have a chance
 to
  choose my option, the change event is fired. But after the first
 change,
  things works normally.
 
  i made a simple sample here:http://jsbin.com/apufa/
 http://jsbin.com/apufa/edit
 
  you will notice when you click on the select the alert will fire, but it
  should only be fired when i actually change the option.
 
  is this a bug?
 
  Thanks



[jQuery] Re: UNSUSCRIBE

2010-01-19 Thread MorningZ
You click on Edit my membership options on the right and then go to
the email options No email


On Jan 19, 6:27 am, Juan Ignacio Borda juanignaciobo...@gmail.com
wrote:
 unsuscribe

  juanignacioborda.vcf
  1KViewDownload


[jQuery] Setting Attributes and filter them

2010-01-19 Thread Mircea
Hi,
I want to make something that will do the following:
Have 5 elements, each element with its own Attributes - font-size,
color, font-style, markup (span, li, b,...)
When an element is selected to have an if statement that will open a
new panel.

I am thinking at something like this:

Set element1, the following Attributes:span, font-size 20px...

If ellement1 selected Attributes = li
execute function li

If ellement1 selected Attributes = span
execute function span

I am not quite sure how to do this (well, in fact I am clueless.. ).
If anyone can give me some pointers on where to start or some
tutorials I would be greatfull.

Thank you!



[jQuery] How to change the text appearing blockOverlay

2010-01-19 Thread Sullan
Hi All,
I'm using this block UI to show loading screenwhen navigating
between pages.. the problem i face is, the message 'Please wait' is
coming from jquery.blockUI.js. Is there any way that i can pass this
message from the HTML file to blockUI function or some other way to
directly get the message from the HTML file ??..

The function is something like this...

jQuery('.blockOverlay').attr('title','Loading..');
jQuery.blockUI();


Please help



[jQuery] Validator plugin class=cancel not working when submit called from script

2010-01-19 Thread Flying Duck
When the user clicks on an input button where cancel is added to the
class attribute, the form submits as expected, but when the the input
button is submitted by script like this, $(input
[name='Btn_Cancel']).submit(), then the validation fires as if the
class=cancel is not there.

Any idea why the difference in the ways of submitting the form?

I'm using jquery 1.3.2 and jquery.validate 1.6.

Thanks


[jQuery] Autocomplete plugin compatability with jQuery 1.4?

2010-01-19 Thread Anthony Rayner
 Hi all,

We're using Jörn Zaefferer's awesome
'Autocompletehttp://bassistance.de/jquery-plugins/jquery-plugin-autocomplete/'
plugin and wondered if anyone knows if it is compatible with jQuery 1.4? Be
very intereseted to find out.

Many thanks.
Anthony.


Re: [jQuery] Re: jQuery 1.4 change event problem

2010-01-19 Thread Bruno Santos
Indeed, the problem is related to the selected option not to the be the
first one, on the first time the object is *clicked*.

The problem is not exactly the selected parameter written on the body, but
the currently selected option in runtime.
To verify that, just add an onload event to body, and set the selected
option by code.
The *$(document).ready* code is run and binds the event *before* the *onload
* function is called to set the selection.
And yet the problem occurs:

!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN
  http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd;
html xmlns=http://www.w3.org/1999/xhtml; xml:lang=en lang=en
head
meta http-equiv=Content-type content=text/html; charset=utf-8
/
titleSandbox/title
style type=text/css media=screen
body { background-color: #000; font: 16px Helvetica, Arial;
color: #fff; }
/style
script type=text/javascript src=
http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js;/script
script type=text/javascript
function setsecond(){
mySelect.options.item(1).selected = true;  // IE only code
}
$(document).ready(function(){
$(#mySelect).change(function(){
alert($(this).find(option:selected).val());
});
});
/script
/head
body onload=javascript:setsecond()
select id=mySelect
option value=1Value 1/option
option value=2Value 2/option
/select
/body
/html



2010/1/19 David Statler statler.da...@gmail.com

 I made a quick mock up of this to try to find the problem. As you have both
 stated, the problem only occurs in IE (I only tried it on IE6). However, I
 rewrote the following and this works on IE6. The problem seems to occur when
 you add selected=selected to the second option value.



 !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN
   http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd;
 html xmlns=http://www.w3.org/1999/xhtml; xml:lang=en lang=en
 head
 meta http-equiv=Content-type content=text/html; charset=utf-8
 /
 titleSandbox/title
 style type=text/css media=screen
 body { background-color: #000; font: 16px Helvetica, Arial;
 color: #fff; }
 /style
 script type=text/javascript src=
 http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js;/script
 script type=text/javascript
 $(document).ready(function(){
 $(#mySelect).change(function(){
 alert($(this).find(option:selected).val());
 });
 });
 /script
 /head
 body
 select id=mySelect
 option value=1Value 1/option
 option value=2Value 2/option
 /select
 /body
 /html




 On Tue, Jan 19, 2010 at 6:06 AM, pambuk wojtek.zymo...@gmail.com wrote:

 Same here, would love to hear an answer.

 On Jan 19, 11:00 am, Steven Yang kenshin...@gmail.com wrote:
  Hi all
 
  I apologize if this problem has been post or report.
 
  I have a problem using jQuery 1.4 when i use
  $(#mySelect).change(function(){...my logic...})
 
  This problem only occurs in IE. 6-8 all have the same problem and jQuery
  1.3.2 does not have this problem.
 
  This problem occurs when I bind a change event on a select and when
 the
  page is loaded the selected option is not the first one.
  What will happen is when I click on the select and not even have a
 chance to
  choose my option, the change event is fired. But after the first
 change,
  things works normally.
 
  i made a simple sample here:http://jsbin.com/apufa/
 http://jsbin.com/apufa/edit
 
  you will notice when you click on the select the alert will fire, but it
  should only be fired when i actually change the option.
 
  is this a bug?
 
  Thanks





[jQuery] (validate) Select List

2010-01-19 Thread MarketAgent 007
I'm new to jQuery.  I would love some help with the following.

I'm using the validator plugin. Here is a description of what I'm
trying to validate.

Step 1 (required):

Select Vehicle Make.

select name=Vehicle Make class=required
   option value=ChevyChevy/option
   option value=FordFord/option
   option value=OtherOther/option
/select

Step 2a: (this is required if select is Chevy or Ford):

If Chevy or Ford, Select Vehicle Type.

select name=Vehicle Type
   optionSedan/option
   optionSUV/option
/select

Step 2b: (this is required if select is Other):

If Other please enter details:
input  type=text /
input  type=text /

The validation is working except when selecting Ford.  If Ford is
selected in step 1., Step 2a should be required.

I have a working demo here: http://www.ma007.com/test/index.html

Any help would be greatly appreciated!


[jQuery] (validate) Compatability with jQuery 1.4?

2010-01-19 Thread Anthony
Hi all,

We're planning on using Jörn Zaefferer's 'validate' plugin and
wondered if anyone knows if it is compatible with jQuery 1.4? Be very
intereseted to find out.

Many thanks.
Anthony.


[jQuery] Baseline issues with Lazyload

2010-01-19 Thread estevan
Hi I'm new here,

Does anyone here have experience using the Js Baseline Image fix
(http://code.google.com/p/js-fix-image-baseline/) with the Lazyload
plugin (http://www.appelsiini.net/projects/lazyload)?

I'm currently utilizing a CSS grid system with the baseline fix but
lazyload disrupts it.  Does anyone else have experience with this?


Re: [jQuery] Reduce Image Quality

2010-01-19 Thread Michael Kubler
Thanks for that, Uploadify http://www.uploadify.com/ is exactly what I 
was looking for!


--
Michael Kubler
*G*rey *P*hoenix *P*roductions http://www.greyphoenix.biz
Mobile : 0433483008

I believe in a better world. I support the Zeitgeist Movement 
http://www.zeitgeistsa.com.




German Bortoli wrote:

I just found too uploadify, that use JQuery... :D
Will test both.
Thanks a lot for answer.
--
- Bortoli German -
Web: http://ventalocal.com.ar
Blog: http://www.geoks.com.ar


[jQuery] [autocomplete] Bug Reported with no response.

2010-01-19 Thread Andy M
I submitted a bug, as requested, to the jQuery bugtracker over a year
ago.  The bug was validated and assigned to Joern but has since sat
untouched for over a year.  The defect is at http://dev.jquery.com/ticket/3719.
I tested against the latest version and this bug is still there.
Anybody know if this is/will be addressed or do I just have to keep
patching the source every time there's an update?

Thanks.


Re: [jQuery] Validator plugin class=cancel not working when submit called from script

2010-01-19 Thread Jörn Zaefferer
Try .click() instead of .submit().

Jörn

On Tue, Jan 19, 2010 at 3:04 AM, Flying Duck moore.p...@gmail.com wrote:

 When the user clicks on an input button where cancel is added to the
 class attribute, the form submits as expected, but when the the input
 button is submitted by script like this, $(input
 [name='Btn_Cancel']).submit(), then the validation fires as if the
 class=cancel is not there.

 Any idea why the difference in the ways of submitting the form?

 I'm using jquery 1.3.2 and jquery.validate 1.6.

 Thanks



Re: [jQuery] JQuery Trigger Event

2010-01-19 Thread Asharudeen
hi

Thanks for your reply..

Unfortunately, It seems trigger is not a issue.. I am trying to list dynamic
file tree using JQuery. It seems to be work fine in Firefox. But in IE, it
has not working.. I thought it is related to trigger event. Later I
understand, it is related to some what different.  But I have not face any
alerts/errors in IE. Currently analyzing the issue. Will update you once I
found the issue.

Meanwhile, anyone update me, what kind of things will cause the similar
browser compatible issues, so that I can check them first. I am creating
dynamic sub trees in Javascript by using AJAX calls. (by using
ColumnNavigation plugin)





On Mon, Jan 18, 2010 at 10:20 PM, Nathan Klatt n8kl...@gmail.com wrote:

 On Mon, Jan 18, 2010 at 10:30 AM, ashar udeen asharud...@gmail.com
 wrote:
  $('#parent1').trigger(click);
 
  This code seems to be work in Firefox. But when I tried the same in
  IE8, it does not work. Could any one update me, how to fix this.

 Have you tried just $('#parent1').click()?



[jQuery] need help with simple jQuery problem

2010-01-19 Thread Rory Bernstein
Hello,

I am a total jQuery novice, and I tried to use jQuery for a project
but I'm having trouble.

http://www.rorybernstein.com/stage/index2.html

When you click the blue go ahead link, it expands the hidden div,
revealing content. I want the effect to be a slide effect, as on
this sample page:
http://adipalaz.awardspace.com/experiments/jquery/expand.html
From these various examples, I want the slideToggle effect -
slideToggle (slow), as shown in section 2 of the above link.

I cannot figure out what is wrong; my toggle link does work (it
expands the hidden div), but I do not know how to get it to slide at
the speed shown in the sample.

Any help would be appreciated.
Thanks,
Rory


[jQuery] Superfish - Horizontal and vertical superfish menus on the same page

2010-01-19 Thread pier.m...@gmail.com
Hi!
can someone please tell me how to change the css so that a horizontal
and a vertical superfish menus can coexist on the same page without
interfering? I will use a Joomla extension module for this.
Best regards,
Pier


[jQuery] Re: checking if jquery loaded

2010-01-19 Thread zendog74
I ended up solving this problem by using the lazy load method
described here:

http://www.squidoo.com/load-jQuery-dynamically

I think the loadPlugins() function was being called before jQuery had
a chance to fully load, thus causing the errors.


On Jan 15, 12:08 pm, Nalum mallon.l...@gmail.com wrote:
 Hello zendog74,
 In your script above you have script.onload = loadPlugins();, the
 onload event is only usable in the body tag or the frameset tag.

 Other than that I think your script is ok.

 On Jan 15, 4:44 pm, zendog74 n8cs...@gmail.com wrote:

  These just give me undefined errors, as jQuery is not defined if it is
  not loaded.

  Again, what I need to do is load jQuery if it is not already loaded
  and then load all of the required plug-ins once it is loaded.

  On Jan 14, 4:39 pm, waseem sabjee waseemsab...@gmail.com wrote:

   if(jQuery) {
    // jquery is loaded}

   if($) {
    // jquery is loaded

   }

   or
   if (jQuery != null) {
    // jquery is loaded}

   if ($ != null) {
    // jquery is loaded

   }
   On Thu, Jan 14, 2010 at 11:30 PM, zendog74 n8cs...@gmail.com wrote:
I am trying to only load jquery and jqueryui if they do not already
exist. If they do exist, then I load a bunch of plug-ins used by the
app. However, the below is not working and I have no idea why. Can
anyone provide some insight?

if (typeof jQuery == 'undefined') {
       console.log(loading local jquery files);

       var head = document.getElementsByTagName(head)[0];
       var script = document.createElement(script);
       script.type = text/javascript;
       script.src = /cml/js/jquery.min.js;
       script.onload = loadPlugins();
       head.appendChild(script);
       var script2 = document.createElement(script);
       script2.type = text/javascript;
       script2.src = /cml/js/jquery-ui.min.js;
       head.appendChild(script2);
   }

       function loadPlugins(){
               if(typeof jQuery != 'undefined'){
                       console.log(jquery is defined);

                       jQuery.noConflict();

                       //load the plugins
                       if(!jQuery().maxlength){
                               jQuery(head).append('scr' + 'ipt
type=text/javascript src=
%=response.encodeURL(cntxPath + /js/jquery.maxlength-min.js)%/
scr' + 'ipt');
                               console.log(loaded maxlength plugin);
                       }

                       if(!jQuery().address){
                               jQuery(head).append('scr' + 'ipt
type=text/javascript src=
%=response.encodeURL(cntxPath + /js/jquery.address-1.1.min.js)%/
scr' + 'ipt');
                               console.log(loaded address plugin);
                       }

                       if(!jQuery().delay){
                               jQuery(head).append('scr' + 'ipt
type=text/javascript src=
%=response.encodeURL(cntxPath + /js/jquery.delay.js)%/scr' +
'ipt');
                               console.log(loaded delay plugin);
                       }

                       if(!jQuery().ajaxSubmit){
                               jQuery(head).append('scr' + 'ipt
type=text/javascript src=
%=response.encodeURL(cntxPath + /js/jquery.form.js)%/scr' +
'ipt');
                               console.log(loaded form plugin);
                       }
       

Thanks everyone.




[jQuery] Re: jQuery for DoD web hosting

2010-01-19 Thread justintr
Wouldn't this apply to any Ajax functions in any JS framework? Rey,
how do you suppose they are billing this as a potential security hole
for unauthorized access? I just don't see it. I was really hoping
Chris would contact me.

On Jan 14, 4:51 pm, Rey Bango r...@reybango.com wrote:
 Hey Chris,

 I understand. Unfortunately, without more details, it's going to be
 very hard for us to help. If you can get us more info, we're here to
 listen and help.

 Rey...On Thu, Jan 14, 2010 at 4:45 PM, ChrisM manni...@gmail.com wrote:
  Rey, thanks for getting back to me. The issues were flagged as cross-
  site scripting, saying a call to getScript, getJSON etc. leaves the
  door open for unauthorized requests.

  Even though we are sure that we could use this safely in an
  application, we are at the mercy of the scan results. Sorry that I
  can't share more information.

  Thanks,
  Chris


Re: [jQuery] new forums used?

2010-01-19 Thread Cesar Sanz
In my case, I just have access to my email via outlook (cuz of my job).. it 
will be a shame not to

read, ask or contribute with you.


- Original Message - 
From: Rick Faircloth r...@whitestonemedia.com

To: jquery-en@googlegroups.com
Sent: Monday, January 18, 2010 12:17 PM
Subject: RE: [jQuery] new forums used?



it is easier to use a spammed mailing list than a forum.


Yes... I would gladly put up with some spam to keep all messages flowing 
to

my inbox,
rather than having to use a forum.  I can filter the spam as it arrives...

-Original Message-
From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On
Behalf Of Octavian Rasnita
Sent: Monday, January 18, 2010 1:04 PM
To: jquery-en@googlegroups.com
Subject: Re: [jQuery] new forums used?

From: Nathan Klatt n8kl...@gmail.com


On Mon, Jan 18, 2010 at 10:05 AM, Octavian Rasnita
orasn...@gmail.com
wrote:

If some of the users won't like the forum, they would be able to use
the mailing lists, while if other users wouldn't want to receive the
emails from the mailing list they could just unsubscribe, so the
mailing lists won't hurt anyone.


The mailing list is great but what's expected to happen shortly after
they stop moderating it, reportedly a significant effort, is the list
will be overrun by spammers. Hopefully their fears are unfounded but
I'm not holding my breath.

Nice knowin' y'all. ;)



Well, this is not important at all. If the mailing list subscribers will
dislike that spam so much, they will be able to unsubscribe anytime, but
maybe some of them will happily accept that spam and also like to continue
using the list.

I am subscribed to the list with a Gmail address that takes care of most 
of
the spam, and I also have an anti-spam application for other email 
accounts

I use, so it is easier to use a spammed mailing list than a forum.

Octavian







Re: [jQuery] [mcDropdown] Enhancement Request

2010-01-19 Thread Dan G. Switzer, II
There's no need to add this to the code. You can just place the wrapper in
the actual HTML and apply whatever CSS you need specific to the instance of
the mcDropdown.

-Dan

On Mon, Jan 18, 2010 at 4:21 PM, Jerry jerryab...@gmail.com wrote:

 Howdy...

 The GivaInc.com site says that the devs monitor this list for stuff
 and they don't give out their emails anywhere on the site. So...

 The mcDropdown is great but needed a little push from me in order to
 get the field to display properly on a form with labels to the left of
 the field (versus above). Because of that I needed to have a way to
 create css for the anchor and wrapper div tags inserted by the
 mcDropdown plugin.

 I added the following two new defaults:

, wrapperId: null  // The id of the wrapper for
 more css
 control ...  added 2010-01-18 Jerry Ablan jab...@pogostick.com
, anchorId: null   // The id of the
 anchor for more css
 control  ...  added 2010-01-18 Jerry Ablan jab...@pogostick.com

 In addition, the following was changed at line 160 (after insert of
 above two lines):

// create the div to wrap everything in
$divInput = $('div class=mcdropdowna ' + (
 settings.anchorId !
 == null ? ' id=' + settings.anchorId + ' ' : '' ) + 'href=#
 tabindex=-1/ainput type=hidden name=' + (el.name || el.id) +
 ' id=' + (el.id || el.name) + ' //div')
.appendTo($('div ' + ( settings.wrapperId !== null
 ? 'id=' +
 settings.wrapperId + ' ' : '' ) + 'style=position: relative;/
 div'))
.parent();

 With the wrapper div and anchor accessible now, I can style the CSS to
 get the field in the right place.

 Thanks!





Re: [jQuery] need help with simple jQuery problem

2010-01-19 Thread Nathan Klatt
That seems like a lot of code for something so simple. Why don't you
just follow the example from the docs:

http://docs.jquery.com/Effects/slideToggle#speedcallback

?

Nathan


Re: [jQuery] JQuery Trigger Event

2010-01-19 Thread Nathan Klatt
On Tue, Jan 19, 2010 at 10:03 AM, Asharudeen asharud...@gmail.com wrote:
 Unfortunately, It seems trigger is not a issue.. I am trying to list dynamic
 file tree using JQuery. It seems to be work fine in Firefox. But in IE, it
 has not working.. I thought it is related to trigger event.

It might be worthwhile for you to put together a simple example on one
of the collaborative Javascript sites (e.g., http://jsbin.com) so
others on the list can easily see it for ourselves and play around.

Nathan


[jQuery] Simplae JQuery/Ajax question - GET variables

2010-01-19 Thread parot

I am very (very) used to PHP but just trying to grips with JQuery/Ajax and
this is a very simple problem that I cannot find an easy -  understandable
answer to especially one that works - strange I know.  My experience is that
all answers to this question - on another site - are too complex and totally
miss the point.

Take a standard HTML link   Get this page   now add a get variable 
?trythis=a-changing-value Get this page 

I want to pass ?trythis=a-changing-value via JQuery/Ajax to another page,
perform a query based on the actual value of 'trythis' ( but for this
example I am only using echo $_GET[] as I can work out the PHP query with
ease ONCE i can get the trythis variable to the page) and then display those
results without a page refresh on the original page. e.g.

Page one

in the head:

$(document).ready(function() {
$(#idoflink).click(function() {

 somewhere I need to declare the variable trythis and use it in
JQuery/Ajax- WHERE and HOW  and no a fixed hard coded reply will not help,
the variable trythis will have changing values

  $(#display_results_here).load(tryit.php);

});
  });

In the body

?trythis=a-changing-value Get this page 

div id=display_results_here/div

Then on the page tryit.php a simple echo $_GET['trythis'];

What I cannot do and I do not seem to get a sensible, easy to follow and
understandable answer from knowledgeable JQuery people is find out how to
pass the valiable trythis to the page tryit.php and then return the result,
in this case a simple php echo.

-- 
View this message in context: 
http://old.nabble.com/Simplae-JQuery-Ajax-question---GET-variables-tp27229104s27240p27229104.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



Re: [jQuery] Simplae JQuery/Ajax question - GET variables

2010-01-19 Thread Nathan Klatt
On Tue, Jan 19, 2010 at 11:06 AM, parot russ...@parotkefalonia.com wrote:
 What I cannot do and I do not seem to get a sensible, easy to follow and
 understandable answer from knowledgeable JQuery people is find out how to
 pass the valiable trythis to the page tryit.php and then return the result,
 in this case a simple php echo.

I must misunderstand you...

var trythis = 57;
$.get(tryit.php, { trythis: trythis }, function(data) {
$(#resultsGoHere).html(data); });

Nathan


Re: [jQuery] Simplae JQuery/Ajax question - GET variables

2010-01-19 Thread parot

Thnks Nathan, 

Very near, but it is more basic than that - how do I get the variable
?trythis=changable value into var trythis=;

Sounds silly and quiet simpel, but can I get a plain english answer - no

Thanks for your reply


Nathan Klatt-2 wrote:
 
 On Tue, Jan 19, 2010 at 11:06 AM, parot russ...@parotkefalonia.com
 wrote:
 What I cannot do and I do not seem to get a sensible, easy to follow and
 understandable answer from knowledgeable JQuery people is find out how to
 pass the valiable trythis to the page tryit.php and then return the
 result,
 in this case a simple php echo.
 
 I must misunderstand you...
 
 var trythis = 57;
 $.get(tryit.php, { trythis: trythis }, function(data) {
 $(#resultsGoHere).html(data); });
 
 Nathan
 
 

-- 
View this message in context: 
http://old.nabble.com/Simplae-JQuery-Ajax-question---GET-variables-tp27229104s27240p27229508.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



Re: [jQuery] Simplae JQuery/Ajax question - GET variables

2010-01-19 Thread Nathan Klatt
On Tue, Jan 19, 2010 at 11:32 AM, parot russ...@parotkefalonia.com wrote:
 Very near, but it is more basic than that - how do I get the variable
 ?trythis=changable value into var trythis=;

Maybe a sequence diagram would be helpful. Here's what I hear you asking:

http://www.websequencediagrams.com/?lz=bm90ZSBsZWZ0IG9mIHdlYnBhZ2U6IG1lIGZpcnN0IQpKYXZhc2NyaXB0LT50cnlpdC5waHA6IHRyeXRoaXMgPSA1NwoAPwVyaWdoAEAFABsLU2ltcGxlIGVjaG8gb2YgdmFyaWFibGUANggKAEgJLS0-AF8KOiA1NwBrDQCBDgkACQ8AexUic29tZXRoaW5nIGVsc2UiAExSAFERAIEXFQB3EQs=default

Could you modify that to better explain what you mean, maybe?

Nathan


Re: [jQuery] Lists, Filtering and Searching, Oh My!

2010-01-19 Thread John Arrowwood
json is one approach.  XML is another.  CSV works, too.  The format of the
file should be what works best for the people that need to maintain it.
Then, you need to find a good way of getting that data into the browser and
in a format that is easy to work with.

How often does this file change?  Is this something that can be loaded at
the beginning of the user session and then cached?  Or do you need to update
the user's view regularly?  That is, do you need multiple ajax calls, or
just load it all in on page load?

If it were me, using Excel to manage the list, and exporting to CSV, then
loading and parsing that is probably what I would do.  Just make sure your
CSV parsing code is bug-free.  :)  When you load and parse the CSV, just
load each record into an object in an array.  Piece of cake.  Then you build
your display based on the array, sorting and/or filtering as you do so,
based on what the user needs.  That last part has the potential to be a
slightly sticky piece of cake if you tried to do it all yourself, but even
then it is doable.

Using the QuickSearch might work, but looking at the sample, it's pretty
slow with even a small list (looking at the table example), so with such a
large data set, it may not be much fun.  Won't know until you try.  There
are also plugins (are there not?) which turn tables into sortable/searchable
data sets.  You could build one of those as an 'alternative possibility' for
your users to look at.



On Tue, Jan 19, 2010 at 4:54 AM, david.vansc...@gmail.com 
david.vansc...@gmail.com wrote:

 A while back, the company I work for tasked me with coming up with a
 better way to move through a listing of forms on our Intranet.  The
 way it was done before involved two identical files being maintained
 simultaneously, one sorted by the form ID (AA0001) and the other by
 name.  The list of forms is nothing to sneeze at ... the first page
 includes a list of over 1800 forms.

 My first stab at a solution moved everything into a single unordered
 list.  I was able to assign classes to each list item for the alpha
 character, the ID and type.  Clicking on the appropriate links would
 show only those items which you selected.  I also plugged in Rik
 Lomas' awesome QuickSearch plugin to quickly search the list.  The
 only drawback was that the group responsible for maintaining the list
 of forms had to choose whether they wanted the list sorted by name or
 form ID.  They chose name.  Last week though, they decided that wasn't
 good enough and they needed to be able to sort by either name or form
 ID, so I've been handed this project again and told to make it work
 more to their liking.  A table would break from the way they've
 organized these forms for years now, so they're really not interested
 in something like that, so it'd really need to be a list.  The forms
 need to be able to be sorted alphabetically by name or form ID as well
 as organized by category.

 My first idea was to build a big (and I mean BIG) JSON file that would
 store all the information for these forms.  I'd then be able to parse
 through the JSON object and build the list on the fly based on what
 they clicked.  Of course, we're talking about a JSON file that'd
 probably be over 2000 lines and would have to be parsed every time
 they click something (I'm not sure if I could call in the JSON file
 and have it available instead of using $.getJSON).  Then there's the
 issue of searching.  Obviously QuickSearch works great, but how am I
 going to search through a static file without throwing everything on
 to the page?

 As you can see, I've begun brainstorming some ideas, but I'd really
 love to hear what other solutions come to mind for you guys.  Any
 ideas you have would be awesome.  Thanks!


 David




-- 
John Arrowwood
John (at) Irie (dash) Inc (dot) com
John (at) Arrowwood Photography (dot) com
John (at) Hanlons Razor (dot) com
--
http://www.irie-inc.com/
http://arrowwood.blogspot.com/


Re: [jQuery] Re: JQuery and AJAX Heartbeat question

2010-01-19 Thread brian
Whoops. I guess this bit of info from the manual is pertinent:

Warning

This function has no effect when PHP is running in safe mode. There is
no workaround other than turning off safe mode or changing the time
limit in the php.ini.


On Tue, Jan 19, 2010 at 4:44 AM, mind01 mindproduction...@gmail.com wrote:
 Thanks for your tips brian and scott.

 set_time_limit(0);

 The expected value is integer seconds. A value of 0 disables the time
 limit altogether.

 If i try set_time_limit(20); it gives me an 500 error after 20
 seconds, but if i set the value to 60 seconds, i still get a server
 time out after 30 seconds.

 I have seen upload scripts with some kind of callback to the server to
 avoid a time out.
 There must be something i can do right?

 Thnx again.



[jQuery] Find text. Is this possible with JQuery?

2010-01-19 Thread shapper
Hello,

Is it possible with JQuery to find all words xyz in a text and
replace it by span class=xyzxyz/span?

Thanks,
Miguel


[jQuery] Multiple elements slider

2010-01-19 Thread Mircea
Hi,
I have one slider that have to resize font-size on 4 different
elements. At this time it works on all 4 of them (span) but I would
like to make it work for any individual element that is selected. If I
select one element the slider should resize only that one.

My slider code is:

// Font Size Slider
$().ready(function() {
document.onselectstart = new Function('return false');

/* simple slider[default skin] */
var maxFont = 60;
var mf = $('span).css('font-size', 20);
//   var mf = $('span').attr('title');

$.fn.jSlider({
renderTo: '#slidercontainer1',
size: { barWidth: 400, sliderWidth: 5 },
onChanging: function(percentage, e) {
mf.css('font-size', maxFont * percentage);
window.console  console.log('percentage: %s',
percentage);
}

});
});

Thank you for your help!


Re: [jQuery] Lists, Filtering and Searching, Oh My!

2010-01-19 Thread Randall Morgan
Would it not be better to provide a server side script such as php or
asp to allow a paged, sorted, ajax call. Even if you put all this data
in an access database or xml file the server side script can parse and
return a small chuck of data reasonably fast.

At 1800 records I'd opt for a database write a script to import/export
to-from csv for that the list management can be done via xcell or
similar app.



On Tue, Jan 19, 2010 at 12:06 PM, John Arrowwood jarro...@gmail.com wrote:
 json is one approach.  XML is another.  CSV works, too.  The format of the
 file should be what works best for the people that need to maintain it.
 Then, you need to find a good way of getting that data into the browser and
 in a format that is easy to work with.

 How often does this file change?  Is this something that can be loaded at
 the beginning of the user session and then cached?  Or do you need to update
 the user's view regularly?  That is, do you need multiple ajax calls, or
 just load it all in on page load?

 If it were me, using Excel to manage the list, and exporting to CSV, then
 loading and parsing that is probably what I would do.  Just make sure your
 CSV parsing code is bug-free.  :)  When you load and parse the CSV, just
 load each record into an object in an array.  Piece of cake.  Then you build
 your display based on the array, sorting and/or filtering as you do so,
 based on what the user needs.  That last part has the potential to be a
 slightly sticky piece of cake if you tried to do it all yourself, but even
 then it is doable.

 Using the QuickSearch might work, but looking at the sample, it's pretty
 slow with even a small list (looking at the table example), so with such a
 large data set, it may not be much fun.  Won't know until you try.  There
 are also plugins (are there not?) which turn tables into sortable/searchable
 data sets.  You could build one of those as an 'alternative possibility' for
 your users to look at.



 On Tue, Jan 19, 2010 at 4:54 AM, david.vansc...@gmail.com
 david.vansc...@gmail.com wrote:

 A while back, the company I work for tasked me with coming up with a
 better way to move through a listing of forms on our Intranet.  The
 way it was done before involved two identical files being maintained
 simultaneously, one sorted by the form ID (AA0001) and the other by
 name.  The list of forms is nothing to sneeze at ... the first page
 includes a list of over 1800 forms.

 My first stab at a solution moved everything into a single unordered
 list.  I was able to assign classes to each list item for the alpha
 character, the ID and type.  Clicking on the appropriate links would
 show only those items which you selected.  I also plugged in Rik
 Lomas' awesome QuickSearch plugin to quickly search the list.  The
 only drawback was that the group responsible for maintaining the list
 of forms had to choose whether they wanted the list sorted by name or
 form ID.  They chose name.  Last week though, they decided that wasn't
 good enough and they needed to be able to sort by either name or form
 ID, so I've been handed this project again and told to make it work
 more to their liking.  A table would break from the way they've
 organized these forms for years now, so they're really not interested
 in something like that, so it'd really need to be a list.  The forms
 need to be able to be sorted alphabetically by name or form ID as well
 as organized by category.

 My first idea was to build a big (and I mean BIG) JSON file that would
 store all the information for these forms.  I'd then be able to parse
 through the JSON object and build the list on the fly based on what
 they clicked.  Of course, we're talking about a JSON file that'd
 probably be over 2000 lines and would have to be parsed every time
 they click something (I'm not sure if I could call in the JSON file
 and have it available instead of using $.getJSON).  Then there's the
 issue of searching.  Obviously QuickSearch works great, but how am I
 going to search through a static file without throwing everything on
 to the page?

 As you can see, I've begun brainstorming some ideas, but I'd really
 love to hear what other solutions come to mind for you guys.  Any
 ideas you have would be awesome.  Thanks!


 David



 --
 John Arrowwood
 John (at) Irie (dash) Inc (dot) com
 John (at) Arrowwood Photography (dot) com
 John (at) Hanlons Razor (dot) com
 --
 http://www.irie-inc.com/
 http://arrowwood.blogspot.com/




-- 
If you ask me if it can be done. The answer is YES, it can always be
done. The correct questions however are... What will it cost, and how
long will it take?


Re: [jQuery] Find text. Is this possible with JQuery?

2010-01-19 Thread David Statler
If you're talking about simple find  replace, you can do it with
javascript.

http://www.w3schools.com/jsref/jsref_replace.asp



On Tue, Jan 19, 2010 at 2:38 PM, shapper mdmo...@gmail.com wrote:

 Hello,

 Is it possible with JQuery to find all words xyz in a text and
 replace it by span class=xyzxyz/span?

 Thanks,
 Miguel



Re: [jQuery] Simplae JQuery/Ajax question - GET variables

2010-01-19 Thread parot

Hi Nathan 

http://www.websequencediagrams.com - now I'm really confused I think I
understand it but but let me explain

I want to scroll back and forward through the months on a calendar without
refreshing the page. I have the php calendar, but I don't want any page
refresh which I can do with PHP and just send the GET to the page.  so
ideally what I need is 2 links back and forward with the month variable i.e.
1-12 (Jan - Dec) passed to JQury/Ajax. I have been looking at a number of
scripts, but all to far complex (i.e. do more than I need) just I cant
fathom out how to pass Back (Jan go to Dec) or Forward (Jan go to Feb) and
so on. just need 1 month at a time, nothing fancy etc.



Nathan Klatt-2 wrote:
 
 On Tue, Jan 19, 2010 at 11:32 AM, parot russ...@parotkefalonia.com
 wrote:
 Very near, but it is more basic than that - how do I get the variable
 ?trythis=changable value into var trythis=;
 
 Maybe a sequence diagram would be helpful. Here's what I hear you asking:
 
 http://www.websequencediagrams.com/?lz=bm90ZSBsZWZ0IG9mIHdlYnBhZ2U6IG1lIGZpcnN0IQpKYXZhc2NyaXB0LT50cnlpdC5waHA6IHRyeXRoaXMgPSA1NwoAPwVyaWdoAEAFABsLU2ltcGxlIGVjaG8gb2YgdmFyaWFibGUANggKAEgJLS0-AF8KOiA1NwBrDQCBDgkACQ8AexUic29tZXRoaW5nIGVsc2UiAExSAFERAIEXFQB3EQs=default
 
 Could you modify that to better explain what you mean, maybe?
 
 Nathan
 
 

-- 
View this message in context: 
http://old.nabble.com/Simplae-JQuery-Ajax-question---GET-variables-tp27229104s27240p27231466.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



Re: [jQuery] Simplae JQuery/Ajax question - GET variables

2010-01-19 Thread Nathan Klatt
On Tue, Jan 19, 2010 at 1:45 PM, parot russ...@parotkefalonia.com wrote:
 I want to scroll back and forward through the months on a calendar without
 refreshing the page. I have the php calendar, but I don't want any page
 refresh which I can do with PHP and just send the GET to the page.  so
 ideally what I need is 2 links back and forward with the month variable i.e.
 1-12 (Jan - Dec) passed to JQury/Ajax. I have been looking at a number of
 scripts, but all to far complex (i.e. do more than I need) just I cant
 fathom out how to pass Back (Jan go to Dec) or Forward (Jan go to Feb) and
 so on. just need 1 month at a time, nothing fancy etc.

How's about something like this?

button id=prevMonthPrevious month/button
div id=calendar/div
button id=nextMonthNext month/button

script type=text/javascript
var currentMonth = 1;
function loadMonth(newMonth) {
   $(#calendar).load(getCalendar.php?m=+newMonth);
}
$().ready(function() {
   loadMonth(currentMonth);
   $(button#prevMonth).click(function() { loadMonth(--currentMonth); });
   $(button#nextMonth).click(function() { loadMonth(++currentMonth); });
});
/script


Re: [jQuery] (Validate) Checking once an Entry is Change

2010-01-19 Thread Nathan Klatt
On Sat, Jan 16, 2010 at 6:42 PM, Scott Wilcox sc...@tig.gr wrote:
 Pastebin of code: http://pastebin.com/ma643a4e

Hiya Scott,

What's the code at the other end look like - i.e., /api/check/existac?

Nathan


Re: [jQuery] Simplae JQuery/Ajax question - GET variables

2010-01-19 Thread parot

Nathan, what can I say, perfect. Thanks a lot.  Think I understand it, Do
years automatically increment / decrease with +newYear -newYear like months
so you could have something like

$(button#prevMonth).click(function() {
loadMonth(--currentMonth),loadYear(--currentYear); });


Nathan Klatt-2 wrote:
 
 On Tue, Jan 19, 2010 at 1:45 PM, parot russ...@parotkefalonia.com wrote:
 I want to scroll back and forward through the months on a calendar
 without
 refreshing the page. I have the php calendar, but I don't want any page
 refresh which I can do with PHP and just send the GET to the page.  so
 ideally what I need is 2 links back and forward with the month variable
 i.e.
 1-12 (Jan - Dec) passed to JQury/Ajax. I have been looking at a number of
 scripts, but all to far complex (i.e. do more than I need) just I cant
 fathom out how to pass Back (Jan go to Dec) or Forward (Jan go to Feb)
 and
 so on. just need 1 month at a time, nothing fancy etc.
 
 How's about something like this?
 
 button id=prevMonthPrevious month/button
 div id=calendar/div
 button id=nextMonthNext month/button
 
 script type=text/javascript
 var currentMonth = 1;
 function loadMonth(newMonth) {
$(#calendar).load(getCalendar.php?m=+newMonth);
 }
 $().ready(function() {
loadMonth(currentMonth);
$(button#prevMonth).click(function() { loadMonth(--currentMonth); });
$(button#nextMonth).click(function() { loadMonth(++currentMonth); });
 });
 /script
 
 

-- 
View this message in context: 
http://old.nabble.com/Simplae-JQuery-Ajax-question---GET-variables-tp27229104s27240p27232199.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



Re: [jQuery] Multiple elements slider

2010-01-19 Thread Nathan Klatt
On Tue, Jan 19, 2010 at 1:39 PM, Mircea i...@amsterdamsat.com wrote:
 I have one slider that have to resize font-size on 4 different
 elements. At this time it works on all 4 of them (span) but I would
 like to make it work for any individual element that is selected.

Have your selector add/remove a class, say, resizeable, then modify
the slider to only manipulate elements with that class, a la:

   onChanging: function(percentage, e) {
   $(.resizeable).css('font-size', maxFont * percentage);

Nathan


Re: [jQuery] Simplae JQuery/Ajax question - GET variables

2010-01-19 Thread Nathan Klatt
On Tue, Jan 19, 2010 at 2:29 PM, parot russ...@parotkefalonia.com wrote:
 so you could have something like

 $(button#prevMonth).click(function() {
 loadMonth(--currentMonth),loadYear(--currentYear); });

Well, to handle year and month you'll want something like:

var currentMonth = 1;
var currentYear = 2010;
function deltaMonth(delta) {
   currentMonth += delta;
   while (currentMonth  1) {
  --currentYear;
  currentMonth += 12;
   }
   while (currentMonth  12) {
  ++currentYear;
  currentMonth -= 12;
   }
}


[jQuery] Validate jquery plugin problem

2010-01-19 Thread Niagara
Hi guys,
i'm using  jQuery JavaScript Library v1.4 and   jQuery validation plug-
in 1.6
My code with  jQuery validation plug-in 1.5 work correctly, but with
the new version NO.

The JS:
$().ready(function() {
$(#registrazione).validate({
submitHandler: function() {
checkLock('registrazione','Sei sicuro di abitare fuori 
dall
\'italia?');
},
rules: {
nome_cognome:{
required:  true,
minlength: 3,
maxlength: 60,
},
username: {
required: true,
minlength: 3,
maxlength: 40,
remote: /metwit/comuni/action.php,
nowhitespace: true
},

password: {
required: true,
minlength: 5
},

email: {
required: true,
email: true,
remote: /metwit/comuni/action.php
},
localita: {
required: true
},
antispam_captcha: {
required: true,
remote: /metwit/comuni/action.php
},

agree: required
},
messages: {
nome_cognome:{
required: Inserisci la tua identità,
minlength: Minimo 3 parole,
maxlength: Massimo 60 parole
},
username: {
required: Inserisci un username.,
minlength: Minimo 3 lettere.,
maxlength: Lunghezza username massima 
superata.,
remote: Username in uso.,
nowhitespace: Inserisci solo caratteri e 
numeri.
},
password: {
required: Inserisci una password,
minlength: Minimo 5 lettere.
},
email: {
required: Inserisci un'email.,
email: Inserisci un'email valida.,
remote: Email in uso.
},
localita: {
required: Inserisci la località da cui 
segnali, selezionandola
dalla mappa sopra.
},
antispam_captcha: {
required: Inserisci il codice antispam.,
remote: Inserisci il codice antispam corretto.
},
agree: {
required: Devi accettare i termini del 
servizio.
}
}
});
});

The html:
form method=POST id=registrazione
table
tr
tdNome  Cognome/td
tdinput type=text name=nome_cognome/td
/tr
tr
tdUsername/td
tdinput type=text name=username/td
/tr
tr
tdPassword/td
tdinput type=password name=password/td
/tr
tr
tdEmail/td
tdinput type=text name=email/td
/tr
tr
tdMappa/td
tddiv id=map style=width:430px; 
height:385px; border:1px
solid black;/div/td
/tr
tr
tdDa dove fai le tue segnalazioni?/td
td
input type=text name=localita 
id=localita style=width:
400px;
input type=button id=centra 
value=Trova
onclick=G.centraLoc($('#localita').val());
brspanEs:Via del Sansovino, 50142 
Firenze, Italia (Puoi
trascinare il marker nella mappa nella località e via precisa in cui
abiti. ;-))/span
/td
/tr
tr
   

[jQuery] jquery iframe hide div

2010-01-19 Thread DOTS
hello

these days i am also working on same and trying to hide few of the div
inside the iframe of some other domain. just  wanted to know can you
help me with the solution.

Thanks


[jQuery] Selection broken in Firefox 3.5.7

2010-01-19 Thread Jeff
Hi,

I have the following code to ensure at least one report checkbox is
checked on my page

if ($(input[type='checkbox'][checked]).size() == 0)
{
  $(#error).css(color, red).text(Please select
at least one report.);
  return false;
  }
  return true;

This worked fine in Firefox until I updated to Firefox 3.5.7.  Now size
() always returns zero even if I have a checkbox selected.  Why does
this no longer work?  Is there a better way to write this code?  Note
that I do not have easy access to the IDs of the checkbox controls
because they are dynamically created with ASP.Net.

Thanks.



[jQuery] Demo site is seemingly somewhat broken

2010-01-19 Thread JohnB
It seems that the web server on the demo site is somewhat broken, I
don't imagine that the Loaded from a Dynamic HTML File part of:

http://jquery.com/demo/ajax/

should be showing the source code of a Perl script. (http://jquery.com/
demo/ajax/html.cgi)

Cheers,

John.


Re: [jQuery] need help with simple jQuery problem

2010-01-19 Thread parot

Hi Rory

Like you a  jQuery novice, but think I can help. Though I agree there
seems to be a lot of code in here/there that is not needed - plus would not
validate against W3C standards e.g. take out the p after the /h6 and
replace your  / 's with strong / strong.

Anyhow here goes - and I have no dobut it can be simplified more

$(document).ready(function(){
$('a.hide').hide();
return false;
  });

This is a standard a href = link with an id of hide and makes sure it is
hidden when the page opens


Create another link a href = with an id of toggle 

(OK you can name them what you want)

Then in the head try something like

$(document).ready(function(){
$('a.toggle').click(function() {
$('.demo').toggle(400);
$('a.toggle').hide(slow);
$('a.hide').show(slow);
return false;
  });
  }); 

$(document).ready(function(){
$('a.hide').click(function() {
$('.demo').hide(slow); 
$('a.toggle').show(slow);
$('a.hide').hide(slow);
return false;
  });
  }); 

OK, this assumes that the links - hide and toggle are out site your CSS
demo class but you can move them insider the class and hide/show only
based on the links.

e.g.

$(document).ready(function(){
$('a.toggle').click(function() {
$('.demo').show(slow);
return false;
  });
  }); 


$(document).ready(function(){
$('a.hide').click(function() {
$('.demo').hide(slow);
return false;
  });
  }); 



Rory Bernstein wrote:
 
 Hello,
 
 I am a total jQuery novice, and I tried to use jQuery for a project
 but I'm having trouble.
 
 http://www.rorybernstein.com/stage/index2.html
 
 When you click the blue go ahead link, it expands the hidden div,
 revealing content. I want the effect to be a slide effect, as on
 this sample page:
 http://adipalaz.awardspace.com/experiments/jquery/expand.html
 From these various examples, I want the slideToggle effect -
 slideToggle (slow), as shown in section 2 of the above link.
 
 I cannot figure out what is wrong; my toggle link does work (it
 expands the hidden div), but I do not know how to get it to slide at
 the speed shown in the sample.
 
 Any help would be appreciated.
 Thanks,
 Rory
 
 

-- 
View this message in context: 
http://old.nabble.com/need-help-with-simple-jQuery-problem-tp27228125s27240p27229401.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



Re: [jQuery] Simplae JQuery/Ajax question - GET variables

2010-01-19 Thread parot

Natahn,

Very very nearly there - just ummm not sure where to put the Year code. 
Other than that works perfectly in the calander I want which has a show /
hide function for a form with an ajax reply - I got tha bit working
perfectly, it was just using JQuery to prefect a page refresh on the month
change.  That now happensd thanks, just - sorry to be a pain, where do I put
thae year function.  Thanks a real lot.



parot wrote:
 
 Nathan, what can I say, perfect. Thanks a lot.  Think I understand it, Do
 years automatically increment / decrease with +newYear -newYear like
 months so you could have something like
 
 $(button#prevMonth).click(function() {
 loadMonth(--currentMonth),loadYear(--currentYear); });
 
 
 Nathan Klatt-2 wrote:
 
 On Tue, Jan 19, 2010 at 1:45 PM, parot russ...@parotkefalonia.com
 wrote:
 I want to scroll back and forward through the months on a calendar
 without
 refreshing the page. I have the php calendar, but I don't want any page
 refresh which I can do with PHP and just send the GET to the page.  so
 ideally what I need is 2 links back and forward with the month variable
 i.e.
 1-12 (Jan - Dec) passed to JQury/Ajax. I have been looking at a number
 of
 scripts, but all to far complex (i.e. do more than I need) just I cant
 fathom out how to pass Back (Jan go to Dec) or Forward (Jan go to Feb)
 and
 so on. just need 1 month at a time, nothing fancy etc.
 
 How's about something like this?
 
 button id=prevMonthPrevious month/button
 div id=calendar/div
 button id=nextMonthNext month/button
 
 script type=text/javascript
 var currentMonth = 1;
 function loadMonth(newMonth) {
$(#calendar).load(getCalendar.php?m=+newMonth);
 }
 $().ready(function() {
loadMonth(currentMonth);
$(button#prevMonth).click(function() { loadMonth(--currentMonth);
 });
$(button#nextMonth).click(function() { loadMonth(++currentMonth);
 });
 });
 /script
 
 
 
 

-- 
View this message in context: 
http://old.nabble.com/Simplae-JQuery-Ajax-question---GET-variables-tp27229104s27240p27232554.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



[jQuery] Re: Multiple elements slider

2010-01-19 Thread Mircea
Thanx Nathan,
I've set a class on the selected element and tell the slider to resize
text on that class. Firebug tells me that the class is set but does
nothing to the respective class...


[jQuery] Re: Multiple elements slider

2010-01-19 Thread Mircea
This is strange,
The element is selected after I had click and drag it, change its
position. It have the class 'selected' dynamically added to it. If I
create another static element div class=selectedSome text/div -
the text resize work on that new element.


[jQuery] append return onto text value

2010-01-19 Thread Benn
How do I append a hard return onto a text value box so that it causes
it to submit the form?


Re: [jQuery] Simplae JQuery/Ajax question - GET variables

2010-01-19 Thread parot

Hi Nathan

Thanks a lot for everything, managed to sort the years out OK not in the
java but in the PHP page - I'm just an old fashioned PHP type of guy really.

Thanks alot for everything



parot wrote:
 
 Natahn,
 
 Very very nearly there - just ummm not sure where to put the Year code. 
 Other than that works perfectly in the calander I want which has a show /
 hide function for a form with an ajax reply - I got tha bit working
 perfectly, it was just using JQuery to prefect a page refresh on the month
 change.  That now happensd thanks, just - sorry to be a pain, where do I
 put thae year function.  Thanks a real lot.
 
 
 
 parot wrote:
 
 Nathan, what can I say, perfect. Thanks a lot.  Think I understand it, Do
 years automatically increment / decrease with +newYear -newYear like
 months so you could have something like
 
 $(button#prevMonth).click(function() {
 loadMonth(--currentMonth),loadYear(--currentYear); });
 
 
 Nathan Klatt-2 wrote:
 
 On Tue, Jan 19, 2010 at 1:45 PM, parot russ...@parotkefalonia.com
 wrote:
 I want to scroll back and forward through the months on a calendar
 without
 refreshing the page. I have the php calendar, but I don't want any page
 refresh which I can do with PHP and just send the GET to the page.  so
 ideally what I need is 2 links back and forward with the month variable
 i.e.
 1-12 (Jan - Dec) passed to JQury/Ajax. I have been looking at a number
 of
 scripts, but all to far complex (i.e. do more than I need) just I cant
 fathom out how to pass Back (Jan go to Dec) or Forward (Jan go to Feb)
 and
 so on. just need 1 month at a time, nothing fancy etc.
 
 How's about something like this?
 
 button id=prevMonthPrevious month/button
 div id=calendar/div
 button id=nextMonthNext month/button
 
 script type=text/javascript
 var currentMonth = 1;
 function loadMonth(newMonth) {
$(#calendar).load(getCalendar.php?m=+newMonth);
 }
 $().ready(function() {
loadMonth(currentMonth);
$(button#prevMonth).click(function() { loadMonth(--currentMonth);
 });
$(button#nextMonth).click(function() { loadMonth(++currentMonth);
 });
 });
 /script
 
 
 
 
 
 

-- 
View this message in context: 
http://old.nabble.com/Simplae-JQuery-Ajax-question---GET-variables-tp27229104s27240p27233076.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



Re: [jQuery] Selection broken in Firefox 3.5.7

2010-01-19 Thread Nathan Klatt
On Tue, Jan 19, 2010 at 2:31 PM, Jeff fnd...@gmail.com wrote:
 if ($(input[type='checkbox'][checked]).size() == 0)

Think you want:

if ($(input[type='checkbox']:checked).size() == 0)

Nathan


[jQuery] Tablesorter, not sorting link column

2010-01-19 Thread ProvaFM

Hi,

I'm using Tablesorter (great app)  it's sorting everything just fine except
a column of odd data.

The column of data looks like this:
$20
$25 - $300
$40
$2 - $30

Each cell value is either a dollar amount or range of 2 figures.  I want the
data to be sorted with the largest number in each cell.  Additionally, each
cell is a link.  Using another sorting app I sorted my data with the rel=
tag of the href.  So the data looked like this:
$20 -would sort 1 (lowest)
$25 - $300- would sort 4 (highest)
$40 -would sort 3
$2 - $30  -would sort 2

The first few characters of each cell were:   Bounty/th ( url...)
I've tried textExtraction.

I'm new to jquery, so if anyone has experience I would really appreciate a
pointing in the right direction.

Thanks,
-David
-- 
View this message in context: 
http://old.nabble.com/Tablesorter%2C-not-sorting-link-column-tp27233295s27240p27233295.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



Re: [jQuery] Validate jquery plugin problem

2010-01-19 Thread Nathan Klatt
2010/1/19 Niagara keit...@libero.it:
 My code with  jQuery validation plug-in 1.5 work correctly, but with
 the new version NO.

In what way does it not work? False positives? False negatives?
Console errors or silent refusal? Help us to help you. ;)

Nathan


[jQuery] Tablesorter, not sorting link column

2010-01-19 Thread ProvaFM

Hi,

I'm using Tablesorter (great app)  it's sorting everything just fine except
a column of odd data.

The column of data looks like this:
$20
$25 - $300
$40
$2 - $30

Each cell value is either a dollar amount or range of 2 figures.  I want the
data to be sorted with the largest number in each cell.  Additionally, each
cell is a link.  Using another sorting app I sorted my data with the rel=
tag of the href.  So the data looked like this:
$20 -would sort 1 (lowest)
$25 - $300- would sort 4 (highest)
$40 -would sort 3
$2 - $30  -would sort 2

The first few characters of each cell were:   a rel=    that's how
the data was sorted.

With Tablesorter, I can't figure out how to sort this column.
You can see the column in action here
http://www.prova.fm/writeup/index.php?option=com_listingsItemid=13 (It's
the Bounty column)
I've tried columnparsing column 8 to 'url'  other values
I've tried th class={sorter: 'text'}Bounty/th ( url...)
I've tried textExtraction.

I'm new to jquery, so if anyone has experience I would really appreciate a
pointing in the right direction.

Thanks,
-David
-- 
View this message in context: 
http://old.nabble.com/Tablesorter%2C-not-sorting-link-column-tp27233316s27240p27233316.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



Re: [jQuery] jquery iframe hide div

2010-01-19 Thread DOTS D.O.Technology Services
hello all any one on this ?

On Wed, Jan 20, 2010 at 1:34 AM, DOTS dotsbulk...@gmail.com wrote:

 hello

 these days i am also working on same and trying to hide few of the div
 inside the iframe of some other domain. just  wanted to know can you
 help me with the solution.

 Thanks



[jQuery] Superfish - drop up rather than down

2010-01-19 Thread galilee99
HI, I'm trying to implement a superfish navbar but I need the menus to
slide up rather than down on mouseover.  Has anyone done this
before...any tips?  thanks.


Re: [jQuery] jquery iframe hide div

2010-01-19 Thread Nathan Klatt
Assuming you do not control the content you're embedding in the
iframe, online consensus seems to be that you are SOL.

http://www.google.com/search?q=css+apply+iframe+contents

On Tue, Jan 19, 2010 at 4:05 PM, DOTS D.O.Technology Services
dotsbulk...@gmail.com wrote:
 hello all any one on this ?

 On Wed, Jan 20, 2010 at 1:34 AM, DOTS dotsbulk...@gmail.com wrote:

 hello

 these days i am also working on same and trying to hide few of the div
 inside the iframe of some other domain. just  wanted to know can you
 help me with the solution.

 Thanks


Re: [jQuery] Re: Multiple elements slider

2010-01-19 Thread Nathan Klatt
On Tue, Jan 19, 2010 at 3:12 PM, Mircea i...@amsterdamsat.com wrote:
 This is strange,
 The element is selected after I had click and drag it, change its
 position. It have the class 'selected' dynamically added to it. If I
 create another static element div class=selectedSome text/div -
 the text resize work on that new element.

You need to have the selector inside of the handler - if you select
it, save it off in a variable, then reference the variable in the
handler, it will be referring to whatever met the selector when it was
executed. E.g.,

onChanging: function(percentage, e) {
   $(.resizeable).css('font-size', maxFont * percentage);

not

var resizeable = $(.resizeable);
onChanging: function(percentage, e) {
   resizeable.css('font-size', maxFont * percentage);

You know?

Just a thought.

Nathan


[jQuery] How to insert HTML in an iframe

2010-01-19 Thread pablo
Hi,

I need to insert HTML in an iframe. This works in IE but not in
Firefox:

$(this.iframe).append(phello/p);

What is the problem in Firefox?

Thank you very much.


[jQuery] Re: jQuery 1.4 and Broken UI Dialog Animations

2010-01-19 Thread lloydphillips
We've just had the same issue happen this morning. :(


[jQuery] Re: jQuery 1.4 upgrade + env.rhino.js + blue-ridge

2010-01-19 Thread Steven Parkes
You may want to post to the blue ridge list. I just checked the sample
app and it doesn't work with 1.4, though it gives an error rather than
not just running the specs. I tried updating the env.js that blue
ridge bundles and that fails in a completely different way ... but,
then, so does the 1.3.2 port, so blue ridge needs some sort of update
to run with the newest env.js. I can look at the env.js stuff once
that happens.

I'm using 1.4 in a non-blue-ridge/non-screw-unit app and haven't run
into any incompatibilities yet ... but, then, I also use the Ruby/
SpiderMonkey port of env.js rather than the Rhino version, so that's a
difference, too.


[jQuery] Re: Multiple elements slider

2010-01-19 Thread Mircea
Nathan,
It does work this way!
Thank you!


Re: [jQuery] Re: jQuery 1.4 change event problem

2010-01-19 Thread Steven Yang
sorry not too sure what you have concluded here.
so do you mean after you do the select by code, the problem is solved? or
still occurs?

and is this a problem that jQuery may be responsible to handle or are we
suppose to handle ourselves?
i was already forced to downgrade back to 1.3.2 because of this, because we
do a lot of submit onchange.

thanks

On Tue, Jan 19, 2010 at 10:11 PM, Bruno Santos bit...@gmail.com wrote:

 Indeed, the problem is related to the selected option not to the be the
 first one, on the first time the object is *clicked*.

 The problem is not exactly the selected parameter written on the body,
 but the currently selected option in runtime.
 To verify that, just add an onload event to body, and set the selected
 option by code.
 The *$(document).ready* code is run and binds the event *before* the *
 onload* function is called to set the selection.
 And yet the problem occurs:


 !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN
   http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd;
 html xmlns=http://www.w3.org/1999/xhtml; xml:lang=en lang=en
 head
 meta http-equiv=Content-type content=text/html; charset=utf-8
 /
 titleSandbox/title
 style type=text/css media=screen
 body { background-color: #000; font: 16px Helvetica, Arial;
 color: #fff; }
 /style
 script type=text/javascript src=
 http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js;/script
 script type=text/javascript
 function setsecond(){
 mySelect.options.item(1).selected = true;  // IE only code

 }
 $(document).ready(function(){
 $(#mySelect).change(function(){
 alert($(this).find(option:selected).val());
 });
 });
 /script
 /head
 body onload=javascript:setsecond()

 select id=mySelect
 option value=1Value 1/option
 option value=2Value 2/option
 /select
 /body
 /html



 2010/1/19 David Statler statler.da...@gmail.com

 I made a quick mock up of this to try to find the problem. As you have both
 stated, the problem only occurs in IE (I only tried it on IE6). However, I
 rewrote the following and this works on IE6. The problem seems to occur when
 you add selected=selected to the second option value.



 !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN
   http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd;
 html xmlns=http://www.w3.org/1999/xhtml; xml:lang=en lang=en
 head
 meta http-equiv=Content-type content=text/html; charset=utf-8
 /
 titleSandbox/title
 style type=text/css media=screen
 body { background-color: #000; font: 16px Helvetica, Arial;
 color: #fff; }
 /style
 script type=text/javascript src=
 http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js;/script
 script type=text/javascript
 $(document).ready(function(){
 $(#mySelect).change(function(){
 alert($(this).find(option:selected).val());
 });
 });
 /script
 /head
 body
 select id=mySelect
 option value=1Value 1/option
 option value=2Value 2/option
 /select
 /body
 /html




 On Tue, Jan 19, 2010 at 6:06 AM, pambuk wojtek.zymo...@gmail.com wrote:

 Same here, would love to hear an answer.

 On Jan 19, 11:00 am, Steven Yang kenshin...@gmail.com wrote:
  Hi all
 
  I apologize if this problem has been post or report.
 
  I have a problem using jQuery 1.4 when i use
  $(#mySelect).change(function(){...my logic...})
 
  This problem only occurs in IE. 6-8 all have the same problem and
 jQuery
  1.3.2 does not have this problem.
 
  This problem occurs when I bind a change event on a select and when
 the
  page is loaded the selected option is not the first one.
  What will happen is when I click on the select and not even have a
 chance to
  choose my option, the change event is fired. But after the first
 change,
  things works normally.
 
  i made a simple sample here:http://jsbin.com/apufa/
 http://jsbin.com/apufa/edit
 
  you will notice when you click on the select the alert will fire, but
 it
  should only be fired when i actually change the option.
 
  is this a bug?
 
  Thanks






[jQuery] Re: jquery 1.4 and jqueryui tabs with ajax load

2010-01-19 Thread MrEcho
Yes im having the very same issue.
No idea how to fix it.

On Jan 18, 2:59 am, Joris D'Huys jdh...@gmail.com wrote:
 I've upgraded to jquery 1.4 and my tabs with ajax load no longer
 work.
 uncaught exception: jQuery UI Tabs: Mismatching fragment identifier.
 When I use the previous jquery version, everything works fine.

 Any idea on how to solve this?

 Thanks


[jQuery] how to get href value

2010-01-19 Thread adi sembiring
I'm trying to get href value from anchor tag.

code
$(document).ready(function() {
$(a).click(function(event) {
alert(As you can see, the link no longer took you to 
jquery.com);
//$(a).html.href;
event.preventDefault();
});
});


a href=http://jquery.com/;jQuery/a
/code


Re: [jQuery] Re: jQuery 1.4 and Broken UI Dialog Animations

2010-01-19 Thread Karl Swedberg
yeah, I'm pretty sure jQuery UI 1.7.2 is not compatible with jQuery  
1.4. The jQuery UI team are working on an update.


--Karl


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




On Jan 19, 2010, at 3:51 PM, lloydphillips wrote:


We've just had the same issue happen this morning. :(




Re: [jQuery] how to get href value

2010-01-19 Thread Matt Quackenbush
$(a).attr(href);


Re: [jQuery] how to get href value

2010-01-19 Thread Michael Geary
But that would give you the href for the first A element in the document,
not necessarily the one you clicked.

Going back to the OP's code, this.href would be the easiest way to get it:

$(document).ready(function() {
   $(a).click(function(event) {
   alert( You clicked http://jquery.com/a link to  +
this.href );
   return false;
   });
});

-Mike

On Tue, Jan 19, 2010 at 9:14 PM, Matt Quackenbush quackfu...@gmail.comwrote:

 $(a).attr(href);




Re: [jQuery] how to get href value

2010-01-19 Thread adi sembiring
Got it ..., thanks all

On Wed, Jan 20, 2010 at 1:22 PM, Michael Geary m...@mg.to wrote:

 But that would give you the href for the first A element in the document,
 not necessarily the one you clicked.

 Going back to the OP's code, this.href would be the easiest way to get it:


 $(document).ready(function() {
$(a).click(function(event) {
alert( You clicked http://jquery.com/a link to  +
 this.href );
return false;
});
 });

 -Mike

 On Tue, Jan 19, 2010 at 9:14 PM, Matt Quackenbush quackfu...@gmail.comwrote:

 $(a).attr(href);





-- 
Adi Gunanta Sembiring
Blog: http://adisembiring.wordpress.com
YM: adisembir...@yahoo.com
GTalk: adi.sembir...@gmail.com
e-mail: sembiring@gmail.com
Facebook: sembiring@gmail.com
HP: +62 852 6892 4259


[jQuery] create a menu in jQuery easyui

2010-01-19 Thread stworthy

To define a  http://code.google.com/p/jquery-easyui/ easyui  menu, prepare a
menu markup:

div id=mm style=width:120px;
divNew/div
divOpen/div
div icon=icon-saveSave/div
div class=menu-sep/div
divExit/div
/div

Now build the menu:

$('#mm').menu();

Remember the menu is hidden, show the menu by run follwing code:

$('#mm').menu('show', {
  left:100,
  top:100
});

-- 
View this message in context: 
http://old.nabble.com/create-a-menu-in-jQuery-easyui-tp27237579s27240p27237579.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.