[jQuery] Re: JQueryUI Dialog custom html code instead of button

2009-12-29 Thread csplrj
Basically I want a  to which I can attach my background image
or any css that I require to give it a fancy look

CSJakharia



On Dec 26, 4:24 pm, csplrj  wrote:
> I want to make a provide custom look and feel and would like to use my
> own html code instead of simple input type=button in JQueryUI dialog
>
> Is there any way that can be done without writing the custom html code
> all by ourselves?
>
> Thanks in advance
>
> CSJakharia


[jQuery] Re: menu hover question

2009-12-29 Thread csplrj
I think something similar to menu used in http://www.colourlovers.com/

Is that so?

CSJakharia

On Dec 26, 7:53 pm, Šime Vidas  wrote:
> You should put your submenus inside the top-level menu items like
> this
>
> 
> First item
> 
> First item of the first item
> Second item of the first item
> 
> 
> Second item
> 
> First item of the second item
> Second item of the second item
> 
> 


[jQuery] [ask] json return

2009-12-29 Thread PUTRA PRIMA
hi i have a litle problem here T_T .. with json i try to load json and when
i alert the result, the result is undefined is there something i missed ?

this is my json :

[{"idfakultas":"5","iduniversitas":"35","namaFakultas":"Fakultas
Teknik","namaUniversitas":"Universitas Brawijaya","alamat":"Jl
Veteran","website":"http:\/\/brawijaya.ac.id"},{"idfakultas":"11","iduniversitas":"35","namaFakultas":"tes","namaUniversitas":"Universitas
Brawijaya","alamat":"Jl Veteran","website":"http:\/\/brawijaya.ac.id"}]

this is my jquery :
  $.getJSON("
http://localhost/ci/index.php/skripsi/superAdmin/fakultasDropDown/"+id,
  function(data){
alert("tes ="+data.idfakultas);
  });

the alert output is tes =undefined

-- 
Putra Prima A
0410630078 Teknik Elektro Brawijaya
3 ipa 2 smunsa 2004
http://siubie.web.id/


[jQuery] Re: Help on Independent DIV's that toggle!!

2009-12-29 Thread Erik
Brian,

It looks like you just added  $(this).next


[jQuery] Re: Help on Independent DIV's that toggle!!

2009-12-29 Thread Šime Vidas
Here is my solution:

The HTML structure of each DIV:



Basic content


Additional content



The JS code:

// the clickable "more details" SPAN element (as a string)
var $showMore = " More Details";

// the function that hides the second P, and adds the SPAN to the
first P
function hideDetails(div) {
$(div)
.find("p:first").append($showMore)
.end().find(".details").hide();
}

$(document).ready(function() {

// do the initialization for every DIV with class ".articles"
$(".article").each(function() { hideDetails(this); });

// attach a live click event handler to every "more details" SPAN
element
$(".showMore").live("click", function() {
$(this).closest(".article").find(".details").slideToggle(400);
$(this).text($(this).text() == 'More Details' ? 'Close' :
'More Details');
});

});

Because the handler was attached to an live event, you can now
dynamically create DIVs, for example:

$("")
.append("Another basic content")
.append("Another additional content")
.appendTo("body")
.each(function() { hideDetails(this); });

This solution works in the way that if JS is turned off, the second P
will be visible, and there will be no "More details" SPAN.





Re: [jQuery] Help on Independent DIV's that toggle!!

2009-12-29 Thread brian
Use classes:



http://jqueryjs.googlecode.com/files/jquery-1.3.2.min.js";>

$(document).ready(function()
{
$('.SomeOtherClass').hide();
$('a.SomeClass').click(function()
{
$(this).next('div.SomeOtherClass').slideToggle(400);
$(this).text($(this).text() == 'More Details' ? 'Close' : 'More 
Details');
return false;
});
});



More Details

foo



More Details

foo



More Details

foo




On Tue, Dec 29, 2009 at 7:01 PM, Erik  wrote:
> Hi everyone,
>
> I got one DIV working with my toggle script.  Works great.
>
> I need to add a few more DIV's with the same toggle script on the SAME
> PAGE.  I wanted to duplicate the same script with different DIV names,
> but it didn't work.
>
> How can i use the same script with INDEPENDENT DIV's on the same page?
>
> Here is my good independent script.
>
> 
> $(document).ready(function() {
>  $('#content1').hide();
>  $('a#slick-toggle').click(function() {
>  $('#content1').slideToggle(400);
>  $(this).text($(this).text() == 'More Details' ? 'Close' : 'More
> Details'); // <- HERE
>    return false;
> });
> });
> 
>


Re: [jQuery] Multifile - help

2009-12-29 Thread brian
OK, I think I understand now: you need to have separate groups of
files, each with their own MultiFile input and, thus, one or more
files for each group? In that case, you can check for the existence of
elements with class="MultiFile", which is the class name given to the
automatically-created file elements.

var intVal=2;
$(document).ready(function(){
$('#addFileButton').click(function(){addUploadFile();});

/* I've given the form id="the_form"
 */
$('#the_form').submit(function()
{
alert($('.MultiFile').length);
return false;
});
});

If you need to have separate totals for each group you should add a
class name to the group divs. This also makes it simple to get the
count for the number of existing groups when creating a new one.

Also, your HTML was incorrect (missing body tags).






$(document).ready(function(){
$('#addFileButton').click(function()
{
/* get the number of existing groups
 */
var group_index = $('.SomeClassName').length + 1;

var elStr = '
Please specify a file, or a set of files (dynamically):
' + '
'; /* create elements, append, and initialise as MultiFile */ $(elStr).appendTo('#outerVal'); $('#df' + group_index).MultiFile(); }); $('#the_form').submit(function() { /* run through each group and count the number of MultiFile elements */ $('.SomeClassName').each(function() { /* note the 2nd parameter 'this' which sets the context * as the particular group */ alert(this.id + ': ' + $('.MultiFile', this).length); }); return false; }); }); Please specify a file, or a set of files: Please specify a file, or a set of files: On Tue, Dec 29, 2009 at 4:33 PM, jayakumar ala wrote: > Brian, >  I our requirement i need to add this file elements dynamically for each > file path. And for each element i need the count of files that are uploaded > under that filepath. > Hope you understand my question now. Help is apprecited. > > Thanks > Jay > On Tue, Dec 29, 2009 at 12:56 PM, brian wrote: >> >> You shouldn't need more than one file element to begin with. The >> plugin takes care of creating new ones. Or, perhaps I don't understand >> what it is you're trying to do. >> >> On Tue, Dec 29, 2009 at 1:27 PM, jayakumar ala >> wrote: >> > Anyone can help me on this.. >> > >> > On Mon, Dec 28, 2009 at 10:39 AM, jayakumar ala >> > wrote: >> >> >> >> Hi, >> >> >> >> I am using Multifile plugin to select the multiple file. I am trying to >> >> get the final file count for each browser selection . Any help is >> >> appreciated. >> >> >> >> Here is the sample code i am using >> >> >> >> >> >> >> >> >> >> >> >> var intVal=2; >> >> $(document).ready(function(){ >> >>     $('#addFileButton').click(function(){addUploadFile();}); >> >>  }); >> >> >> >> function addUploadFile() { >> >> intVal++; >> >> $('
Please specify a file, or a set of files >> >> (dynamically):
'+ >> >>    '> >> id="df'+intVal+'" >> >> size="40"/>
').appendTo('#outerVal'); >> >> $('#df'+intVal).MultiFile(); >> >> } >> >> >> >> >> >> >> >> >> >> >> >> >> >> Please specify a file, or a set of files: >> >> >> >> >> >> >> >> Please specify a file, or a set of files: >> >> >> >> >> >> >> >> >> >> >> >> > >> /> >> >> >> >> >> >> >> >> >> >> Thanks >> >> Jay >> >> >> > > >

[jQuery] Help on Independent DIV's that toggle!!

2009-12-29 Thread Erik
Hi everyone,

I got one DIV working with my toggle script.  Works great.

I need to add a few more DIV's with the same toggle script on the SAME
PAGE.  I wanted to duplicate the same script with different DIV names,
but it didn't work.

How can i use the same script with INDEPENDENT DIV's on the same page?

Here is my good independent script.


$(document).ready(function() {
  $('#content1').hide();
  $('a#slick-toggle').click(function() {
  $('#content1').slideToggle(400);
  $(this).text($(this).text() == 'More Details' ? 'Close' : 'More
Details'); // <- HERE
return false;
});
});



[jQuery] Preloading CSS images issue

2009-12-29 Thread Alexandru Adrian Dinulescu
Hello.

I have a WP blog found at http://alexdweb.com/blog/, that has more than 1
"theme". Basically when you change the theme via the change theme option in
the start menu, some images are loaded. The problem is that those images are
pretty big, and i would like them to PRELOAD after the main theme has
loaded. (which is the default).
I have used the
http://plugins.jquery.com/project/automated_image_preloaderplugin
however i'm getting a $.preloadCssImage() is not a function error. I
am using jQuery 1.3.2. I've tried searching the web for an answer to this
question but only found 1 post, and that one only had replies concerning
different things.

Anyone can suggest a way to preload some images via jQuery or a reason why
the plugin gives that error?

Many thanks.
---
Alexandru Dinulescu
Web Developer
(X)HTML/CSS Specialist
Expert Guarantee Certified Developer
XHTML: http://www.expertrating.com/transcript.asp?transcriptid=1879053
CSS : http://www.expertrating.com/transcript.asp?transcriptid=1870619
Odesk Profile: http://www.odesk.com/users/~~3a2d7f591313701b
RentACoder Profile:
http://www.rentacoder.com/RentACoder/DotNet/SoftwareCoders/ShowBioInfo.aspx?lngAuthorId=6995323

LinkedIn Profile: http://ro.linkedin.com/in/alexandrudinulescu
XHTML/CSS/jQuery Blog -> http://alexdweb.com/blog
MainWebsite: http://alexdweb.com


[jQuery] JQuery 1.3.2 / JQuery-UI 1.7.2 Ajax Tabs - JavaScript not executing on Safari 4.0.4 Mac / IE 8 XP

2009-12-29 Thread les
I'm using JQuery-UI Tabs.  When it loads my page in Ajax mode, the
JavaScript that I've got at the end of the page doesn't seem to
execute in either IE or Safari.  $(function () { ...}) or just
console.log("...");

Any ideas?

None of the console.log's get executed either.  But I get all the
HTML.

Les

The setup in the main file is:

$(function() {
$("#tabs").tabs(
{
cache: false,
ajaxOptions:{cache:false},
show: function(event, ui) { newIslandList();}
});
$.ajaxSetup({cache: false});
$("li").show();
});

The included code:...


console.log("algae #2...");
$(function ()
{
console.log("algae...");
$("#algae_bt").click(function(e)
{
$('#algae_results').load("algae.php","req=results&"+$
('#algae_fm').serialize());
return false;
});
};



[jQuery] a tag selector question

2009-12-29 Thread Michael Bierman
Based on http://flowplayer.org/tools/demos/overlay/index.html I tried
to set up an experiment. I wanted to use an anchor tag instead of an
image  as the trigger. Note in the following, the second and third
items item work fine but the the first one does not and I can't figure
out why. Any help would be greatly appreciated.


// What is $(document).ready ? See: 
http://flowplayer.org/tools/using.html#document_ready
$(document).ready(function() {
$("a[rel]").overlay();
$("a[rel]").css("border","9px solid red");
$("img[rel]").overlay();
});


--
Michael


[jQuery] Re: Documentation for ~= selector

2009-12-29 Thread Šime Vidas

Well, good to know that it works in jQuery... i thought they left it
out intentionally :)


[jQuery] Re: JQuery "hanging" for unknown reason

2009-12-29 Thread Šime Vidas

Well, put the demo online...


Re: [jQuery] Multifile - help

2009-12-29 Thread jayakumar ala
Brian,
 I our requirement i need to add this file elements dynamically for each
file path. And for each element i need the count of files that are uploaded
under that filepath.
Hope you understand my question now. Help is apprecited.

Thanks
Jay
On Tue, Dec 29, 2009 at 12:56 PM, brian  wrote:

> You shouldn't need more than one file element to begin with. The
> plugin takes care of creating new ones. Or, perhaps I don't understand
> what it is you're trying to do.
>
> On Tue, Dec 29, 2009 at 1:27 PM, jayakumar ala 
> wrote:
> > Anyone can help me on this..
> >
> > On Mon, Dec 28, 2009 at 10:39 AM, jayakumar ala 
> wrote:
> >>
> >> Hi,
> >>
> >> I am using Multifile plugin to select the multiple file. I am trying to
> >> get the final file count for each browser selection . Any help is
> >> appreciated.
> >>
> >> Here is the sample code i am using
> >>
> >> 
> >> 
> >> 
> >> 
> >> var intVal=2;
> >> $(document).ready(function(){
> >> $('#addFileButton').click(function(){addUploadFile();});
> >>  });
> >>
> >> function addUploadFile() {
> >> intVal++;
> >> $('
Please specify a file, or a set of files > >> (dynamically):
'+ > >>' id="df'+intVal+'" > >> size="40"/>
').appendTo('#outerVal'); > >> $('#df'+intVal).MultiFile(); > >> } > >> > >> > >> > >> > >> > >> > >> Please specify a file, or a set of files: > >> > >> > >> > >> Please specify a file, or a set of files: > >> > >> > >> > >> > >> > >> /> > >> > >> > >> > >> > >> Thanks > >> Jay > >> > > >

Re: [jQuery] Re: Documentation for ~= selector

2009-12-29 Thread Karl Swedberg

the rel attribute, for one.

--Karl



On Dec 29, 2009, at 11:59 AM, Šime Vidas wrote:


Is there a attribute other then the class attribute where you have a
space-seperated list of values?

If not, the *= should be good enough.




[jQuery] Re: jQuery + OOP + AJAX

2009-12-29 Thread Scott Sauyet
On Dec 29, 5:23 am, fran23  wrote:
>> But even here, there is still something strange.  On each click of the
>> div, you're binding another event handler to do the same job.
>
> that's the CENTER OF MY TROUBLE. I did speak about the reason for using the
> show() function above.
> But maybe I can get your patience for one more special example that desribes
> my intention and trouble more precisely: Let's assume I work on a web site
> that should display the paragraphs of a book. The book has chapters and each
> chapter has s. I start displaying the first  (of the first chapter).
> When read by the user he clicks on the  and the next paragraph will
> shown.
> [ ... ]
> I can go on this way until the last  of the current chapter is
> added/shown. Now I should start with the first  of the second chapter.
> Therefore I have to delete all 's (of chapter 1) and show the first 
> of chapter 2. This is what my show()-function should do (that bothers you
> [and me too]): replace all current shown 's and RE-START with one  -
> the first one of chapter 2.
>
> Do you have any hint how to do it better ?

Well, first of all, it's a somewhat strange UI.  I certainly wouldn't
want to click for every paragraph; and even if I did, I would think a
"Next" button would be a better place to click than on the paragraph
itself.   But that aside, I'm sure it can be done.

First of all, does the click have to be in the last paragraph itself?
Or could it be in some parent container of the paragraphs?  That would
make it easier to handle.  You can then check the event target to see
if the user has clicked in the final paragraph.  This allows you to
register only one click handler, on the container of the paragraphs.
You will need some additional logic to ... oh hell with it.  Let me
give this a try.

Tinker, tinker, tinker.   Ok.  Done.

Something like this should work:

var $content = $("#content");

function showNextChapter() {
chapter = getNextChapter();
$content.empty().append("" + chapter.title + "<\/h1>");
$content.append(chapter.paragraphs[paragraphIdx]);
}

function showNextParagraph() {
if (!moreParagraphsForChapter()) {
showNextChapter();
return;
}
$content.append(getNextParagraph());
}

$content.click(function(event) {
showNextParagraph();
});

showNextChapter();

and if you want to allow only a click on the last paragraph, you can
replace the event handler with something like this:

$content.click(function(event) {
var handleEvent = false;
var $target = $(event.target);
if ($target.is("p:last-child")) {
handleEvent = true;
} else  {
var $para = $target.parents("p");
if ($para.length && $para.is("p:last-child")) handleEvent
= true;
}
if (handleEvent) {
showNextParagraph();
}
});

Obviously, you would need to write the code for getNextChapter(),
moreParagraphsForChapter(), and getNextParagraph() with your Ajax
code.

You can see this in effect here:

http://scott.sauyet.com/Javascript/Demo/2009-12-29a/

or, with that last addition, here

http://scott.sauyet.com/Javascript/Demo/2009-12-29a/?last

This may be oversimplified, because I have no error handling on last
chapter, simply looping back to the first, but I think this captures
the gist of it.

Good luck,

  -- Scott


Re: [jQuery] Multifile - help

2009-12-29 Thread brian
You shouldn't need more than one file element to begin with. The
plugin takes care of creating new ones. Or, perhaps I don't understand
what it is you're trying to do.

On Tue, Dec 29, 2009 at 1:27 PM, jayakumar ala  wrote:
> Anyone can help me on this..
>
> On Mon, Dec 28, 2009 at 10:39 AM, jayakumar ala  wrote:
>>
>> Hi,
>>
>> I am using Multifile plugin to select the multiple file. I am trying to
>> get the final file count for each browser selection . Any help is
>> appreciated.
>>
>> Here is the sample code i am using
>>
>> 
>> 
>> 
>> 
>> var intVal=2;
>> $(document).ready(function(){
>>     $('#addFileButton').click(function(){addUploadFile();});
>>  });
>>
>> function addUploadFile() {
>> intVal++;
>> $('
Please specify a file, or a set of files >> (dynamically):
'+ >>    '> size="40"/>
').appendTo('#outerVal'); >> $('#df'+intVal).MultiFile(); >> } >> >> >> >> >> >> >> Please specify a file, or a set of files: >> >> >> >> Please specify a file, or a set of files: >> >> >> >> >> >> >> >> >> >> >> Thanks >> Jay >> >

[jQuery] client side serialize issue

2009-12-29 Thread joshmckin
Hi folks hope I someone can helps with something simple

In my rails project I have a jquery connected sortable that current
sends updates to a hidden field using ajax

$(function() {
$("#sortable1, #sortable2").sortable({
connectWith: '.connectedSortable',

update:function(){
$.ajax({
data:$(this).sortable('serialize',{
key:'clients[]'
}),
dataType:'script',
type:'post',
url:'/users/selected_clients'
})
}
})
});

the above code produces {"selected_clients"=>"89,46"} . However
updating a hidden field with data from a sortable element is something
I would prefer done on the client side, so I came up with this:

$(function() {
$("#sortable1, #sortable2").sortable({

connectWith: '.connectedSortable',
update:function(){
var selected_clients = $(this).sortable('serialize',{
key:'clients[]'
});
$('#selected_clients').val(selected_clients)
}
})
});

Although this does update the hidden field the value is formatted as
{clients[]=89&clients[]=46" }, which is too messy. I would like the
results to make that of the ajax serialized data. How might I fix
this?

Thanks for your help,

Josh


[jQuery] Re: joining arrays

2009-12-29 Thread Šime Vidas
Well, running the map method on an jQuery method doesn't transform it
into an array therefore, your variables arr1 and arr2 are still
jQuery objects

First, it's easier to collect all IDs directly from the selector:

var myarray = $("#employees input[id$='Bonus'], #employees input[id
$='Salary']").map(function() {
return $(this).attr("id");
});

Now, myarray is an jQuery object containing all the properties like
any other jQuery object, but also all IDs as objects inside "inexed"
keys...

This should work:

$.each(myarray, function() {
alert(String(this));
});


[jQuery] Re: jQuery suggestion

2009-12-29 Thread MorningZ
"Writing the code that way is not only good for code completion/
suggestion but also good for syntax checking"

But it's also bad to repeat code which results in more "weight"
which is exactly why code like that is written like so  and
people's need for speed is going to far outweight your need for
IntelliJ's intellisense to work...  not that i have one ounce of say
in that, but after being on this Google Group for a while now, the
"core" of jQuery is all about optimized base functionality (which the
above code example does, as it takes care of two functions with one
set of code) and lowest kb's possible (which not repeating code
certainly helps!!)

You could make your own functions that *will* show up in Intellisense
but call the base functions, for instance... and note i have never
done this myself, but i know it's possible:

small and quick example:

http://jsbin.com/ujiru (run)
http://jsbin.com/ujiru/edit (code)

and then your text editor should pick up "your" version of innerWidth
and show it intellisense style, all without touching the core (or
increasing it's size!)  :-)


On Dec 29, 11:54 am, Thai Dang Vu  wrote:
> Thanks Scott for a reply. Is there any other place where I can talk to the
> jQuery team and hopefully persuade them to write this wonderful library in
> that "regular" way? Writing the code that way is not only good for code
> completion/suggestion but also good for syntax checking (esp. with a tool
> like Idea).
>
> On Mon, Dec 28, 2009 at 3:26 PM, Scott Sauyet wrote:
>
> > On Dec 28, 2:55 pm, Thai Dang Vu  wrote:
> > > I'm using IntelliJ Idea 9.0 which supports code completion/suggestion for
> > > javascript. It doesn't work with the innerHeight/Width because of this
>
> > >         jQuery.fn["inner" + name] = function(){ // [ ... ]
>
> > > Is there anyway to implement the innerHeight and innerWidth in a regular
> > > way?
>
> > Of course it could be done in the "regular" way.  But this is a means
> > to keep the download size of the library small.  There are numerous
> > places in the codebase where similar tricks are employed.  One
> > consistent goal of the jQuery team has been to keep the library as
> > lean as possible, and such tricks help, with practically no
> > performance cost.
>
> > I believe it would take a great deal of persuasion to convince the
> > team that supporting code completion in this way is worth the
> > additional weight of the download, but feel free to try... :-)
>
> >  -- Scott


Re: [jQuery] Multifile - help

2009-12-29 Thread jayakumar ala
Anyone can help me on this..

On Mon, Dec 28, 2009 at 10:39 AM, jayakumar ala  wrote:

> Hi,
>
> I am using Multifile plugin to select the multiple file. I am trying to get
> the final file count for each browser selection . Any help is appreciated.
>
> Here is the sample code i am using
>
> 
> 
> 
> 
> var intVal=2;
> $(document).ready(function(){
> $('#addFileButton').click(function(){addUploadFile();});
>  });
>
> function addUploadFile() {
> intVal++;
> $('
Please specify a file, or a set of files > (dynamically):
'+ >' size="40"/>
').appendTo('#outerVal'); > $('#df'+intVal).MultiFile(); > } > > > > > > > Please specify a file, or a set of files: > > > > Please specify a file, or a set of files: > > > > > > > > > > > > Thanks > Jay > >

[jQuery] regarding menu item in superfish

2009-12-29 Thread kon
I need to change the color of two of menu items. How can I do that?Can
you please help me I jus wanna change the color of two menu items and
rest reamain the same. Can you please help me with the css.



[jQuery] Setting iframe src with $("#iframeid").attr(src,url) adds unwanted item to browser history

2009-12-29 Thread Adam C.
This problem happens in both FF 3.0.x, and Safari, on both Windows and
Mac, but not on IE7.

When I set the src of an iframe, it adds another copy of the parent
document's URL to the browser history.  This gives the impression of a
broken back button (as the user has to click back twice to go to the
previous page.)

Here's a minimal test case showing that the problem isn't with jQuery,
per se.  It happens when I get the element using getElementbyId and
change the src directly.

Is there any way to avoid this back button breaking behavior?

Code sample:



http://ajax.googleapis.com/ajax/
libs/jquery/1.3.2/jquery.js">

$(document).ready(function() {
  // bypass jQuery
  $("#trigger").click(function() {
elt = document.getElementById("targetelt");
if(elt) {
  elt.src = "http://google.com";;
}
  });
  // using jQuery
  $("#triggerJQ").click(function(e) {
$("#targetelt").attr("src","http://bing.com";)
  });
});




hello world
hello jQuery world





[jQuery] jquery cycle plugin IE6 flicker (appears to reload elements repeatedly)

2009-12-29 Thread websymphony
I've employed the jquery cycle plugin (great work malsup!) to display
banners for various hospitals (such as
http://intermountainhealthcare.org/hospitals/bearriver/Pages/home.aspx).

To display the banners, I nested the call within a separate script
containing

$(document).ready(function() {
  (More scripts)
$('.ih-bannerCont').cycle({fx: 'fade', speed: 750, timeout: 7000,
before: contentOut, after: contentIn});
  (More scripts)
});

While the cycler works great on IE7 and FF3, IE6 chokes as it tries to
reload the images each time the cycler changes views (this appears a
flicker between each slide, and a white background).  I've reviewed
the cycler on malsup's jquery site, which works with no errors in
IE6.  Did I miss something?

-Thanks


Re: [jQuery] Re: Latest JQuery File

2009-12-29 Thread Cesar Sanz

never, never touch the jquery code!!!

- Original Message - 
From: "Sime Vidas" 

To: "jQuery (English)" 
Sent: Wednesday, December 23, 2009 7:23 PM
Subject: [jQuery] Re: Latest JQuery File




LOL
If you downloaded the jQuery library from www.jquery.com, than you can
be sure that it's valid leave it as it is.
It seems that the syntax highlighter in Dreamweaver isn't smart enough
to cope with the advanced JS code from jQuery :)


[jQuery] Re: How cani achieve this functionality?

2009-12-29 Thread Alex Mcauley
Check ajaxrain.com .. they have the perfect example of what you are
trying to do.

On Dec 29, 4:55 pm, Šime Vidas  wrote:
> The combo is a SELECT element, why shouldn't you be able to write
> inside it?
>
> For every character keyup event, you AJAX load the OPTION elements and
> put them inside the SELECT:::


[jQuery] Re: sorting columns using jquery. noob with html and java. built custom php using snmp

2009-12-29 Thread Alex Mcauley
Sorry there is a bug / error in the pastebin ...

I just noticed that it starts with  then it calls the
 ... tags

You will need to take the body tag from the very top and add it
directly after the closing  tag..

My bad!...

Also ... tablesorter comes with some CSS to make it look pretty so it
might be an idea to include that in the document too - save using ugly
(and nearly depreciated)  tags

On Dec 29, 4:25 pm, "Mark K. Ayler Jr. "  wrote:
> Alex,
> Thanks so much. It does look a lot better...and looking through your
> changes, it makes perfect sense. Thanks for doing that.
>
> Are you sure this code belongs in my .php file or should it be in the
> jquery.tablesorter.min.js file?
>
> $(document).ready(function() {
>     // call the tablesorter plugin
>     $("#results_table").tablesorter({
>            // enable debug mode
>            debug: true
>     });
>
> });
>
> On Tue, Dec 29, 2009 at 5:08 AM, Alex Mcauley <
>
>
>
> webmas...@thecarmarketplace.com> wrote:
> > You have alot of unclosed tags in there ...
>
> > Let me help you out a bit and pastebin how it should look!...
>
> > This should help
>
> >http://pastie.org/759936
>
> > On Dec 28, 6:44 pm, ace123  wrote:
> > > I'm not sure if this is possible...but I love the jquery tablesorter-
> > > but I can't figure out how to get it working. My page displays as if
> > > it's not even there. I used php to snmpget some data from my network
> > > switches and routers. It saves it to my DB...then I have this page to
> > > display the information from the database. This is where I want to be
> > > able to sort, by switch type, software version, etc. I'm not a code
> > > guy, just a network engineer trying to make my job easier. Your help
> > > please is MUCH appreciated. I've been trying to get this to
> > > work off and on for 6 months.
>
> > > This is what I've got so far
>
> > > The page looks something like this when I load it.
>
> > > Host Name       Device Type     Firmware Version        Software Version
>
> > > edge-109c-gs.gov.ntwk   470-24T         "3.6.0.7"     "v3.7.3.13"
> > > edge-241c-gs.anx.ntwk   470-24T         "3.6.0.7"     "v3.7.3.13"
> > > edge-399c-gs.anx.ntwk   470-24T         "3.6.0.7"     "v3.7.3.13"
>
> > > 
> > > 
>
> > >  > > $username="root";
> > > $password="";
> > > $database="switchesdb";
> > > mysql_connect(localhost,$username,$password);
> > > mysql_select_db($database) or die( "Unable to select database");
> > > $query="SELECT * FROM switchcode";
> > > $result=mysql_query($query);
> > > $num=mysql_numrows($result);
> > > ?>
>
> > > 
> > >  > > script>
> > >