[jQuery] Trying to force field change (tab event)

2009-07-13 Thread webspee...@gmail.com

Hey all.

I have a table being returned from an AJAX call that has input fields,
1 in each row. I want to give focus to the next element (next row)
when the user hits "enter" key.

Basically, the user is going to be in the first field and can either
change the value of that field *or* simply move to the next field. The
"tab" key has this functionality by default, what I want to do is
mimic the tab key when the enter key is pressed.

Any ideas?


[jQuery] Need to scroll inside of a by clicking a button

2009-08-14 Thread webspee...@gmail.com

I'm trying to use jQuery and Flexigrid to display a table. Once the
table is displayed, I want to be able to use the page up/page down
keys to scroll down the table.

I've tried using offsetTop and offsetParent but it's not working. The
values are being set as expected, but the scrollbar isn't moving.

Here is the JS code


var inum = 1;
function scrollDown()
{
var bDiv = $('.bDiv');


//alert("Point: " + document.getElementById("point20").offsetTop +
"\n" +
//  "ID: " + document.getElementById("point20").className +
"\n" +
//  "jQ: " + $("#point20").attr("id"));


var j = 'point' + inum.toString();
var thepoint = document.getElementById(j).offsetParent;

if(inum <= 199 && inum >= 0)
{
alert("incrementing scrollTop");
bDiv.scrollTop = parseInt(inum) * 5;  //thepoint;
inum++;
}
alert("Height: " + bDiv.scrollHeight);
/**
alert("Top: " + bDiv.scrollTop + "\n" +
  " I: " + inum + "\n" +
  " J: " + j + "\n" +
  "Point: " + thepoint + "\n" +
  "Parent: " + bDiv.offsetParent + "\n" +
  "Parent2: " + thepoint.offsetParent);
  ***/
//if(i==6) i=1;
//alert("Span Value: " + j + " - " + $("#" + j).attr("id") + "\n"
+ " - POINT: " + thepoint);
//alert("Top: " + bDiv.scrollTop);
//alert("Scroll: " + bDiv.outerHeight(true) + " - " +
bDiv.innerHeight(true));
//bDiv.scrollBy(150,150)
}


Each row has a cell with the following:
  

I've been all over this code and can't figure out why it won't work,
outside of me doing something wrong. Maybe I just need to take a
break.

Any help would be GREATLY appreciated.


[jQuery] Can't get dialog box to appear twice

2009-10-06 Thread webspee...@gmail.com

Hey all. I'm trying to work with a dialog box and when the page has
been refreshed, the dialog box appears fine. But if I close it out and
try to open it again, it won't open.

Here is the code I'm using.

$(function() {
$("#quickAddDisplay").dialog({
bgiframe: true,
resizable: false,
height:140,
width: 350,
modal: true,
overlay: {
backgroundColor: '#000',
opacity: 0.5
},
buttons: {
'Carton ID': function() {
/* initGrids("cartonid"); */
$(this).dialog('close')
},
'Order #': function() {
/* initGrids("orderid"); */
$(this).dialog('close')
},
}
});
});

Any ideas? I'm using the dialog.js plugin.


[jQuery] Need to move selection from one box to another box

2009-06-10 Thread webspee...@gmail.com

Hey all.

I'm looking to create a screen where there's a box on the left and a
box on the right. The left box contains names which can be moved to
the box on the right.

Between the two boxes will be two buttons, one labeled ">>" to move
from left to right and the other labeled "<<" to move from the right
to the left.

I've seen this many times but need to create one myself.

At first I was thinking of using selection lists with a size of 20 to
give it height and also set the width. Then, when a selection is
highlighted, the user can click the buttons in the middle to move the
selection from one box to the other. Using a selection list gives me
access to each individual selection and on the click of the button, I
can remove that selection from one list and append it to the other.

The problem with this approach is that the grayed out scrollbar is
visible. So, I was thinking of using a textarea and that is what
brought me here. Does anyone know of such a tool before I try
reinventing it?


[jQuery] Re: How to Get Div from IFrame

2009-11-13 Thread webspee...@gmail.com
I am in a similar situation and I don't want to use the iFrame, but
how do you use jQuery to do the following.

I have a page on my server and I want to display, say, www.google.com
in a portion of my page. With an iFrame, I simply set the src of the
iFrame. I've tried using jQuery to do the same but it won't work.

What I'm doing is this. I have a "search page" residing on another
site entirely and I'm going to be displaying that page on my page. In
the end it will be in the same domain but I'm trying to get a jump on
development.

What I need is to be able to manipulate the elements from the returned
page from my "parent page".

Any ideas?

On Nov 5, 4:17 pm, Michel Belleville 
wrote:
> $('#canvas_frame').contents().find('#my_div');
>
> To seek an id use "#", to seek inside a div use .contents().
>
> Plus, refrain from using iframe, this is almost as bad as using frame and
> almost never worth it. AJAX is good for you instead of shitty iframes.
>
> Michel Belleville
>
> 2009/11/5 Danish 
>
>
>
> > I have a page with multiple Frames and Division, Now I am trying to
> > extract one div having id="my_div" from iframe with Id =
> > "canvas_frame" but I am fail to do so, Nor I am getting iframe neither
> > Division in iframe.
> > I tried all these selectors but always null returns although they are
> > in page:
> > 1) $("my_div");
> > 2) $("my_div","canvas_frame");
> > 3) $("canvas_frame",content.document);
> > 4) $("canvas_frame");
> > 5)  var $frame = $("canvas_frame",content.document);
> >     var $div = $("my_div",$frame);
>
> > I am able to do this with Pure JavaScript but due to some reasons I
> > want to use JQuery Library, Any help will be highly appreciated.


[jQuery] Re: How to Get Div from IFrame

2009-11-13 Thread webspee...@gmail.com
When I try it, I get this error:

Error: Permission denied for  to get property
HTMLDocument.nodeType from :>.
Source File: http://www..com/js/jquery/jquery.js
Line: 2216

Here is the line of JS being used.

$("#eseSearchRight").html($('#searchFrame').contents().find
('.recordHeader').html());



On Nov 5, 4:17 pm, Michel Belleville 
wrote:
> $('#canvas_frame').contents().find('#my_div');
>
> To seek an id use "#", to seek inside a div use .contents().
>
> Plus, refrain from using iframe, this is almost as bad as using frame and
> almost never worth it. AJAX is good for you instead of shitty iframes.
>
> Michel Belleville
>
> 2009/11/5 Danish 
>
>
>
> > I have a page with multiple Frames and Division, Now I am trying to
> > extract one div having id="my_div" from iframe with Id =
> > "canvas_frame" but I am fail to do so, Nor I am getting iframe neither
> > Division in iframe.
> > I tried all these selectors but always null returns although they are
> > in page:
> > 1) $("my_div");
> > 2) $("my_div","canvas_frame");
> > 3) $("canvas_frame",content.document);
> > 4) $("canvas_frame");
> > 5)  var $frame = $("canvas_frame",content.document);
> >     var $div = $("my_div",$frame);
>
> > I am able to do this with Pure JavaScript but due to some reasons I
> > want to use JQuery Library, Any help will be highly appreciated.


[jQuery] Re: How to Get Div from IFrame

2009-11-20 Thread webspee...@gmail.com
Outside of my domain, I can understand. I'll have to hold off for a
bit then.

Although the page will be remote, it will be accessible by
http://search.mydomain.com. Once it's accessible as a "sub domain',
will I then have access to the page's elements?

On Nov 16, 7:55 am, Liam Byrne  wrote:
> You can't do this if the content of the iFrame is from a different
> server / domain.
>
> e.g. if it's not your content, then you can't get at it this way in
> order to show it in your page; you can only display the iframe as the
> owner intended.
>
> L
>
>
>
> webspee...@gmail.com wrote:
> > When I try it, I get this error:
>
> > Error: Permission denied for <http://www..com> to get property
> > HTMLDocument.nodeType from :>.
> > Source File:http://www..com/js/jquery/jquery.js
> > Line: 2216
>
> > Here is the line of JS being used.
>
> > $("#eseSearchRight").html($('#searchFrame').contents().find
> > ('.recordHeader').html());
>
> > On Nov 5, 4:17 pm, Michel Belleville 
> > wrote:
>
> >> $('#canvas_frame').contents().find('#my_div');
>
> >> To seek an id use "#", to seek inside a div use .contents().
>
> >> Plus, refrain from using iframe, this is almost as bad as using frame and
> >> almost never worth it. AJAX is good for you instead of shitty iframes.
>
> >> Michel Belleville
>
> >> 2009/11/5 Danish 
>
> >>> I have a page with multiple Frames and Division, Now I am trying to
> >>> extract one div having id="my_div" from iframe with Id =
> >>> "canvas_frame" but I am fail to do so, Nor I am getting iframe neither
> >>> Division in iframe.
> >>> I tried all these selectors but always null returns although they are
> >>> in page:
> >>> 1) $("my_div");
> >>> 2) $("my_div","canvas_frame");
> >>> 3) $("canvas_frame",content.document);
> >>> 4) $("canvas_frame");
> >>> 5)  var $frame = $("canvas_frame",content.document);
> >>>     var $div = $("my_div",$frame);
>
> >>> I am able to do this with Pure JavaScript but due to some reasons I
> >>> want to use JQuery Library, Any help will be highly appreciated.
> >>> 
>
> >>> No virus found in this incoming message.
> >>> Checked by AVG -www.avg.com
> >>> Version: 8.5.425 / Virus Database: 270.14.63/2500 - Release Date: 
> >>> 11/13/09 07:54:00


[jQuery] Having trouble using URL Parms with .load()....

2009-02-11 Thread webspee...@gmail.com

Hey all.

I have a form with about 20 fields elements and I also have 4 hidden
fields that I'm trying to send to the back end program.  If I run the
code as is but don't send any parameters in the URL, it returns the
output from my back end program fine. If I send the URL parms, the
back end code executes with all the parms having values, but I don't
get any output back from the back end program.

I tried using escape(url) and although I'm able to get output
returned, it's an error about the URL containing invalid syntax. The
back end program simply does a "echo" type command of the input parms
in a table format. If the URL parms are not sent, I get the table with
the headers, but of course no data. Sending the URL parms I get
nothing.

I pieced together some of the JQuery code, but I created the "each"
loop that creates the URL string. Since this is what I actually wrote,
I'm thinking it is the issue.

Any ideas?

Here is the code:

CODE BEGIN







 
   Company/Name Information
 Function:
 
 Department:
 
 Title:
 
 First Name:
 
 Last Name:
 
 
 
   Address Information
 Addr 1:
 
 Addr 2:
 
 City/St/Zip:
 
 
 
 
 
   Phone Information
 Phone:
 
 Fax:
 
 800 Phone:
 
 Cell:
 
 Home:
 
 
 
   Email Preferences
 Email:
   
 Email2:
   
 Flyer 1:
   
 Flyer 2:
   
 Flyer 3:
   
 
    
 
 
 
  
 

// Add, Update and Delete action
$(document).ready(function() {
 // attach a submit handler to the form
 $("form#contactForm").submit(function()
 {
   var url = "../pu/puajax-h.html?mode=" + $("#mode").val();
   $("input").each(function ()
   {
   if(this.id != "mode" && $("#" + this.id).val() != '')
   url+= "&" + this.id + "=" + $("#" + this.id).val();
   });
   alert("URL: " + url);
   //url = "../pu/puajax-h.html?mode=" + $("#mode").val();
   $('#msgCenter').load(url);
   //alert("After load " + document.getElementById
("msgCenter").innerHTML);
 });
});

CODE END


[jQuery] Gathering page elements when using .post()....

2009-02-11 Thread webspee...@gmail.com

Hey all.

I need to gather the name/value of 25 elements. Is there a quick way
of doing this with .post() rather than manually setting each one
individually?

I can do it with a URL, but I want to use POST, not GET.

Any suggestions?


[jQuery] Where can I get download files?

2009-02-11 Thread webspee...@gmail.com

I'm looking for effects.core.js but I can't find the file anywhere on
this site, The demos all use "latest-file.js".

I've checked the downloads, searched etc. Can anyone help?


[jQuery] Re: Does IE simply not work or...

2009-02-17 Thread webspee...@gmail.com

That is what I figured.

How does this block of code look?

[html]
$.post("../pu/puajax-x.html",{
  mode: "contactrow",
  loginid: $("#loginid").val(),
  field: $("#sortfield").val(),
  prowid: $("#prowid").val(),
  pdiro: $("#pdirection").val(),
}, function(xml)
{
  displayContactName(xml);
});
return false;
[/html]

JS debugger points to the "," before the function(xml) call. I keep
getting errors about "error: expected identifier, string or number".

On Feb 16, 6:05 pm, MorningZ  wrote:
> And rest assured that the library (including the validation plugin)
> FULLY work withIE, it's your code and how you are using jQuery that
> is the issue
>
> On Feb 16, 3:58 pm, "Dean C. Reed"  wrote:
>
> > Or is there a common work around?
>
> > I spent a few days getting familiar with JQuery and it works perfectly  
> > in Firefox. I go to test it inIEand literally nothing works. Aside  
> > from the basics, I'm using a validator plugin, but I'm getting JS  
> > errors at every turn. Vague errors like "object expected" when I'm  
> >simplycalling a JS function that uses JQuery calls.
>
> >IEis very frustrating, they should just shoot it and put us out of  
> > our misery.
>
> > 


[jQuery] Re: Does IE simply not work or...

2009-02-17 Thread webspee...@gmail.com

Thanks, cleaning up the trailing commas got me past that issue. Now
what I'm seeing is when the page loads, it says "IE cannot open 
operation failed" and displays error page. I've narrowed it down to
the autocomplete code below. I copied that block of code and added the
extra parms, but that was it. Any ideas on that? If I comment out the
autocomplete code and/or the elements referenced, the page loads fine.

[html]
$("#fname").autocomplete("../pu/puajax-h.html",
{
delay:10,
minChars:2,
matchSubset:1,
matchContains:1,
cacheLength:10,
onItemSelect:selectItem,
onFindValue:findValue,
//formatItem:formatItem,
autoFill:true,
extraParams: {mode:"autocomplete",field:"fname",loginid: $
("#loginid").val()}
//maxItemsToShow:10,
});
$("#lname").autocomplete("../pu/puajax-h.html",
{
delay:10,
minChars:2,
matchSubset:1,
matchContains:1,
cacheLength:10,
onItemSelect:selectItem,
onFindValue:findValue,
//formatItem:formatItem,
autoFill:true,
extraParams: {mode:"autocomplete",field:"lname",loginid: $
("#loginid").val()}
//maxItemsToShow:10,
});
[/html]

On Feb 17, 8:37 am, Michael Price  wrote:
> You have another comma at the end of this line:
> pdiro: $("#pdirection").val(),
>
> Get rid of that and see if it helps.
>
>
>
> webspee...@gmail.com wrote:
> > That is what I figured.
>
> > Howdoesthis block of code look?
>
> > [html]
> > $.post("../pu/puajax-x.html",{
> >               mode: "contactrow",
> >               loginid: $("#loginid").val(),
> >               field: $("#sortfield").val(),
> >               prowid: $("#prowid").val(),
> >               pdiro: $("#pdirection").val(),
> >             }, function(xml)
> >         {
> >           displayContactName(xml);
> >         });
> >         return false;
> > [/html]
>
> > JS debugger points to the "," before the function(xml) call. I keep
> > getting errors about "error: expected identifier, string or number".
>
> > On Feb 16, 6:05 pm, MorningZ  wrote:
> >> And rest assured that the library (including the validation plugin)
> >> FULLY work withIE, it's your code and how you are using jQuery that
> >> is the issue
>
> >> On Feb 16, 3:58 pm, "Dean C. Reed"  wrote:
>
> >>> Or is there a common work around?
> >>> I spent a few days getting familiar with JQuery and it works perfectly  
> >>> in Firefox. I go to test it inIEand literally nothing works. Aside  
> >>> from the basics, I'm using a validator plugin, but I'm getting JS  
> >>> errors at every turn. Vague errors like "object expected" when I'm  
> >>> simplycalling a JS function that uses JQuery calls.
> >>> IEis very frustrating, they should just shoot it and put us out of  
> >>> our misery.
> >>> 
>
> Regards,
> Michael Price


[jQuery] Re: Does IE simply not work or...

2009-02-17 Thread webspee...@gmail.com

OK, I got it. I had to put the autocomplete inside the document ready
block.

Thank you for your help. Minor tweaks and all is well.

...

On Feb 17, 8:37 am, Michael Price  wrote:
> You have another comma at the end of this line:
> pdiro: $("#pdirection").val(),
>
> Get rid of that and see if it helps.
>
>
>
> webspee...@gmail.com wrote:
> > That is what I figured.
>
> > Howdoesthis block of code look?
>
> > [html]
> > $.post("../pu/puajax-x.html",{
> >               mode: "contactrow",
> >               loginid: $("#loginid").val(),
> >               field: $("#sortfield").val(),
> >               prowid: $("#prowid").val(),
> >               pdiro: $("#pdirection").val(),
> >             }, function(xml)
> >         {
> >           displayContactName(xml);
> >         });
> >         return false;
> > [/html]
>
> > JS debugger points to the "," before the function(xml) call. I keep
> > getting errors about "error: expected identifier, string or number".
>
> > On Feb 16, 6:05 pm, MorningZ  wrote:
> >> And rest assured that the library (including the validation plugin)
> >> FULLY work withIE, it's your code and how you are using jQuery that
> >> is the issue
>
> >> On Feb 16, 3:58 pm, "Dean C. Reed"  wrote:
>
> >>> Or is there a common work around?
> >>> I spent a few days getting familiar with JQuery and it works perfectly  
> >>> in Firefox. I go to test it inIEand literally nothing works. Aside  
> >>> from the basics, I'm using a validator plugin, but I'm getting JS  
> >>> errors at every turn. Vague errors like "object expected" when I'm  
> >>> simplycalling a JS function that uses JQuery calls.
> >>> IEis very frustrating, they should just shoot it and put us out of  
> >>> our misery.
> >>> 
>
> Regards,
> Michael Price


[jQuery] Exploding nested s....

2009-02-17 Thread webspee...@gmail.com

Hey all.

Exploding a simple  is easy enough, but can you explode nested
s? I have a div container and inside it I have content generated
from an AJAX call. When I explode the outer div, I don't get the
"pieces" and the screen freezes up for a second. I don't know if the
div is too large or if it is because of the inside div.

Also, I would assume the inside div (the one returned via AJAX) would
have to be re-binded, is this correct? If so, how do you bind on an
explode? I can't simply write the statement, otherwise it would
explode immediately on the return from the AJAX call.

I was just curious about this is all.

...


[jQuery] I want to do validation via AJAX and then submit form...

2009-02-23 Thread webspee...@gmail.com

Hey all.

I am creating a login type screen and when the login button is
clicked, I validate the ID/password via AJAX and if successful, I then
submit the form.

I have the code to validate, but when it returns a true, how do I
submit the form to call the new page? Do I put the new page in the
action of the form and simply call the submit function for the form?
Or is there a way to use "load" in a post where it calls a program
rather than loads the url into a div?

...


[jQuery] Calling HTML pages using post...

2009-02-25 Thread webspee...@gmail.com

Hey all.

I have 5 buttons on a page, each one calls a different HTML page.
Currently, I have each button in its own form and on click, I'm
checking permissions and then submitting the form.

Is there an easier way of loading a page via post using JQuery?




[jQuery] Can't get onclick of tab to fire....

2009-02-26 Thread webspee...@gmail.com

Hey all.

I'm slowly but surely working through my tab issues.

My latest is that I can't get the onclick even to fire. I copied the
code, bt it won't work.

Also, is there a way to fire an event when a specific tab is clicked?

Here is the code I'm working with.

CODE BEGIN
http://www.w3.org/
TR/html4/strict.dtd">


WDS Web Main Screen











/* JQuery BEGIN */
$(document).ready(function() {
  $('#container').tabs({
  fxFade: true,
  fxSpeed: 'fast',
  onClick: function() {
  alert('onClick');
  },
  onHide: function() {
  alert('onHide');
  },
  onShow: function() {
  alert('onShow');
  }
  });
  $('#container').tabs({
onclick: function(tab) {
alert("hello");
}
});
  //$("#tabs").tabs();
});
/* JQuery END */


.bodycontainerlocal
{
height: 725px;
overflow: auto;
}






One
Two
Three


First tab is active by default:
$('#example').tabs();

 
 






CODE END


[jQuery] Re: Where can I get download files?

2009-02-26 Thread webspee...@gmail.com

Yeah. I have the latest. To be sure, I just downloaded the latest
version of jquery and I got the 6src6 UI, I just downloaded the latest
of that too.

Does the code look good?

On Feb 26, 9:46 am, "Richard D. Worth"  wrote:
> On Thu, Feb 26, 2009 at 9:11 AM, Webspeeder  wrote:
>
> > Well, I finally got things to work. I ended up removing everything I
> > had and starting over. I also switched to the exploded version (not
> > the 'min' version) but I don't know if that's the issue because I
> > haven't tried the min since I got it to work. I figure if it's
> > working, I don't want to mess with it until  I fully understand it.
>
> > Now though, the onclick for tab is not working. Back to the pit I
> > go.
>
> Just to be sure, are you using compatible versions of jQuery and jQuery UI
>
> jQuery UI 1.5.3 is only compatible with jQuery 1.2.6
> jQuery UI 1.6rc6 is only compatible with jQuery 1.3+
>
> I ask because when you have incompatible versions, it presents by just the
> symptom you've described: events not firing.
>
> - Richard
>
>
>
> > On Feb 25, 3:22 pm, brian  wrote:
> > > On Wed, Feb 25, 2009 at 3:16 PM, Richard D. Worth 
> > wrote:
>
> > > > On Wed, Feb 25, 2009 at 3:06 PM, brian  wrote:
>
> > > >> In my use, at least, I'm not including UI components in all views.
> > > >> And, when I do, there may be just one widget or whatever out of
> > > >> several that I might use. I could create several "personalized"
> > > >> files--one for each use case--but then I can't rely on the core file
> > > >> being cached because it's bundled up with several different widgets.
> > > >> And I'd require a personalized bundle for every combination I might
> > > >> want in future. Better, I think, to just include what I need, as I
> > > >> need it.
>
> > > > We're looking at a hybrid approach. Say if you select 3 plugins, it
> > would
> > > > include those 3 individual files, as well as a combined file that
> > contain
> > > > those 3 in 1. What do you think?
>
> > > Yeah, I'd like something like that.
>
> > > Don't get me wrong, though--I think the personalized bundles are a
> > > good idea for some situations. But, in my case, at least, I've only
> > > got a few places where I need UI stuff, and then only one thing or so
> > > at a time. I did consider creating bundles for each instance with a
> > > separate core file (so it'd be better cached) but ran into problems
> > > similar towebspeeder's. It seemed as if the bundle wasn't quite
> > > correct. And I'm pretty sure it was tabs also, as withwebspeeder.


[jQuery] Re: Where can I get download files?

2009-02-26 Thread webspee...@gmail.com

Would you be able to cut and paste the code above and see if it works
for you?

On Feb 26, 11:18 am, "webspee...@gmail.com" 
wrote:
> Yeah. I have the latest. To be sure, I just downloaded the latest
> version of jquery and I got the 6src6 UI, I just downloaded the latest
> of that too.
>
> Does the code look good?
>
> On Feb 26, 9:46 am, "Richard D. Worth"  wrote:
>
> > On Thu, Feb 26, 2009 at 9:11 AM,Webspeeder wrote:
>
> > > Well, I finally got things to work. I ended up removing everything I
> > > had and starting over. I also switched to the exploded version (not
> > > the 'min' version) but I don't know if that's the issue because I
> > > haven't tried the min since I got it to work. I figure if it's
> > > working, I don't want to mess with it until  I fully understand it.
>
> > > Now though, the onclick for tab is not working. Back to the pit I
> > > go.
>
> > Just to be sure, are you using compatible versions of jQuery and jQuery UI
>
> > jQuery UI 1.5.3 is only compatible with jQuery 1.2.6
> > jQuery UI 1.6rc6 is only compatible with jQuery 1.3+
>
> > I ask because when you have incompatible versions, it presents by just the
> > symptom you've described: events not firing.
>
> > - Richard
>
> > > On Feb 25, 3:22 pm, brian  wrote:
> > > > On Wed, Feb 25, 2009 at 3:16 PM, Richard D. Worth 
> > > wrote:
>
> > > > > On Wed, Feb 25, 2009 at 3:06 PM, brian  wrote:
>
> > > > >> In my use, at least, I'm not including UI components in all views.
> > > > >> And, when I do, there may be just one widget or whatever out of
> > > > >> several that I might use. I could create several "personalized"
> > > > >> files--one for each use case--but then I can't rely on the core file
> > > > >> being cached because it's bundled up with several different widgets.
> > > > >> And I'd require a personalized bundle for every combination I might
> > > > >> want in future. Better, I think, to just include what I need, as I
> > > > >> need it.
>
> > > > > We're looking at a hybrid approach. Say if you select 3 plugins, it
> > > would
> > > > > include those 3 individual files, as well as a combined file that
> > > contain
> > > > > those 3 in 1. What do you think?
>
> > > > Yeah, I'd like something like that.
>
> > > > Don't get me wrong, though--I think the personalized bundles are a
> > > > good idea for some situations. But, in my case, at least, I've only
> > > > got a few places where I need UI stuff, and then only one thing or so
> > > > at a time. I did consider creating bundles for each instance with a
> > > > separate core file (so it'd be better cached) but ran into problems
> > > > similar towebspeeder's. It seemed as if the bundle wasn't quite
> > > > correct. And I'm pretty sure it was tabs also, as withwebspeeder.


[jQuery] Re: Where can I get download files?

2009-02-26 Thread webspee...@gmail.com

http://paste.pocoo.org/show/105601/

On Feb 26, 1:15 pm, "Richard D. Worth"  wrote:
> I just looked through the thread and I'm not sure what code you mean. A
> pastie would be great (http://paste.pocoo.org/orhttp://jsbin.com/).
> Thanks.
>
> - Richard
>
> On Thu, Feb 26, 2009 at 11:20 AM, webspee...@gmail.com 
> > wrote:
>
> > Would you be able to cut and paste the code above and see if it works
> > for you?
>
> > On Feb 26, 11:18 am, "webspee...@gmail.com" 
> > wrote:
> > > Yeah. I have the latest. To be sure, I just downloaded the latest
> > > version of jquery and I got the 6src6 UI, I just downloaded the latest
> > > of that too.
>
> > > Does the code look good?
>
> > > On Feb 26, 9:46 am, "Richard D. Worth"  wrote:
>
> > > > On Thu, Feb 26, 2009 at 9:11 AM,Webspeeder
> > wrote:
>
> > > > > Well, I finally got things to work. I ended up removing everything I
> > > > > had and starting over. I also switched to the exploded version (not
> > > > > the 'min' version) but I don't know if that's the issue because I
> > > > > haven't tried the min since I got it to work. I figure if it's
> > > > > working, I don't want to mess with it until  I fully understand it.
>
> > > > > Now though, the onclick for tab is not working. Back to the pit I
> > > > > go.
>
> > > > Just to be sure, are you using compatible versions of jQuery and jQuery
> > UI
>
> > > > jQuery UI 1.5.3 is only compatible with jQuery 1.2.6
> > > > jQuery UI 1.6rc6 is only compatible with jQuery 1.3+
>
> > > > I ask because when you have incompatible versions, it presents by just
> > the
> > > > symptom you've described: events not firing.
>
> > > > - Richard
>
> > > > > On Feb 25, 3:22 pm, brian  wrote:
> > > > > > On Wed, Feb 25, 2009 at 3:16 PM, Richard D. Worth <
> > rdwo...@gmail.com>
> > > > > wrote:
>
> > > > > > > On Wed, Feb 25, 2009 at 3:06 PM, brian 
> > wrote:
>
> > > > > > >> In my use, at least, I'm not including UI components in all
> > views.
> > > > > > >> And, when I do, there may be just one widget or whatever out of
> > > > > > >> several that I might use. I could create several "personalized"
> > > > > > >> files--one for each use case--but then I can't rely on the core
> > file
> > > > > > >> being cached because it's bundled up with several different
> > widgets.
> > > > > > >> And I'd require a personalized bundle for every combination I
> > might
> > > > > > >> want in future. Better, I think, to just include what I need, as
> > I
> > > > > > >> need it.
>
> > > > > > > We're looking at a hybrid approach. Say if you select 3 plugins,
> > it
> > > > > would
> > > > > > > include those 3 individual files, as well as a combined file that
> > > > > contain
> > > > > > > those 3 in 1. What do you think?
>
> > > > > > Yeah, I'd like something like that.
>
> > > > > > Don't get me wrong, though--I think the personalized bundles are a
> > > > > > good idea for some situations. But, in my case, at least, I've only
> > > > > > got a few places where I need UI stuff, and then only one thing or
> > so
> > > > > > at a time. I did consider creating bundles for each instance with a
> > > > > > separate core file (so it'd be better cached) but ran into problems
> > > > > > similar towebspeeder's. It seemed as if the bundle wasn't quite
> > > > > > correct. And I'm pretty sure it was tabs also, as withwebspeeder.


[jQuery] Need nested tabs...

2009-02-26 Thread webspee...@gmail.com

Hey all.

Can anyone show me code to create nested tabs that work in the latest
version of jquery? I see plenty of examples in previous versions but I
can't get them to work.

I have a single line of tabs working fine, but I need nested tabs.

Any help would be appreciated.

...



[jQuery] How can I make no tab having focus on initial load....

2009-02-26 Thread webspee...@gmail.com

I know how to make a specific tab the "default" tab selected, but how
do I make none of them selected? I can pass either nothing (), (1) or
(2) etc for that tab to be selected so I tried passing a 0 but it
still selected the tab 1.




[jQuery] Re: Exploding nested s....

2009-02-27 Thread webspee...@gmail.com

Using the explode animation, where the div "explodes" into X pieces.

On Feb 17, 8:30 pm, Ricardo Tomasi  wrote:
> What do you mean by "explode"? remove?
>
> On Feb 17, 4:50 pm, "webspee...@gmail.com" 
> wrote:
>
> > Hey all.
>
> > Exploding a simple  is easy enough, but can you explode nested
> > s? I have a div container and inside it I have content generated
> > from an AJAX call. When I explode the outer div, I don't get the
> > "pieces" and the screen freezes up for a second. I don't know if the
> > div is too large or if it is because of the inside div.
>
> > Also, I would assume the inside div (the one returned via AJAX) would
> > have to be re-binded, is this correct? If so, how do you bind on an
> > explode? I can't simply write the statement, otherwise it would
> > explode immediately on the return from the AJAX call.
>
> > I was just curious about this is all.
>
> > ...


[jQuery] Trying to change CSS values for .ui-tabs but....

2009-03-05 Thread webspee...@gmail.com

I can change the properties that I need to change except the  color
of the clicked tab. I've tried many combos, here is what I have.

/* Tabs
--*/
.ui-tabs {padding: .2em;}
.ui-tabs .ui-tabs-nav { padding: .2em .2em 0 .2em;  position:
relative;background-image: url(/images/blackgradient.jpg);}
.ui-tabs .ui-tabs-nav li
{
float: left;
border-bottom: 0 !important;
margin: 0 .2em -1px 0;
padding: 0;
list-style: none;
background-image: url(/images/blackgradient.jpg);
}
.ui-tabs .ui-tabs-nav li a { display:block; text-decoration: none;
padding: .5em 1em;color: white; }
.ui-tabs .ui-tabs-nav li.ui-tabs-selected
{
padding-bottom: .1em;
border-bottom: 0;
background-image: none;
border: red solid thin;
}
.ui-tabs .ui-tabs-nav li.ui-tabs-selected li.ui-tabs-selected
{
padding-bottom: .1em;
border-bottom: 0;
background-image: none;
}
.ui-tabs-selected {color: black;}
.ui-tabs .ui-tabs-panel { padding: 1em 1.4em;  display: block; border:
0; background: none; }
.ui-tabs .ui-tabs-hide { display: none !important; }

Any ideas?


[jQuery] Trying to add/remove a class "when...."

2009-03-05 Thread webspee...@gmail.com

Hey all.

I'm trying to add/remove a class and am having trouble. When I add the
new class, the color takes hold, but not the changing of the
background image.

The original CSS is defined as input[type="button"]{background-
image:}

How do I remove a class that is defined like the one above? I tried
removeClass("input"), but that didn't work.



[jQuery] Re: Get contents of first child tr, td with class

2009-03-05 Thread webspee...@gmail.com

How would you get the second, third and so on?

On Feb 12, 2:21 pm, James  wrote:
> $("#recent_activity tbodytrtd.date:first").text();
>
> On Feb 12, 9:13 am, Mark Steudel  wrote:
>
> > I have a table like so:
>
> > 
> > 
> > 
> > t1
> > t2
> > 
> > 
> > 
> > 
> > value
> > 2008-09-01 <--- want this content
> > 
> > 
> > value
> > 2008-09-01
> > 
> > 
> > 
>
> > And I want to try and get the first td with class date, I've tried the
> > following and I get close, but I think I'm just missing something
> > easy:
>
> > $('#recent_activity tbody:first-child.activity_date').val(); <--
> > returns undefined
>
> > or
>
> > $('#recent_activity tbody:first-child.activity_date').html(); <--
> > returns null
>
> > Thoughts? Better way?
>
> > Thanks


[jQuery] Error on prepend in IE7

2009-03-23 Thread webspee...@gmail.com

Hey all.

I'm using jQuery with flexigrid and when the table displayes in IE7, I
get a JS error.

Here is the JS error and block of code it references.

unexpected call to method or property access

prepend: function() {
return this.domManip(arguments, true, function(elem){
if (this.nodeType == 1)
this.insertBefore( elem, this.firstChild );
});
},

At first I thought it might be having additional tags inside the table
cell data but I removed all the tags and I still get this error.

Any ideas?


[jQuery] Need to get value of table cell

2009-03-25 Thread webspee...@gmail.com

Hey all.

I have a table and I need to access the value of a particular cell in
the selected row.  I've seen this type of code before but can't
remember what to search on.

Any clues?