[jQuery] pagination solution
I am looking for a simple solution to add pagination to some reports i have built using ASP and jquery. the problem is that the reports are returning so much data that the script(s) are timing out. SO based on that - i assume i woudl need to have some kind of ajax based pagination so that the script is only returning a small amount of data from the database at a time. But i will also need to be able to sort the columns and possibly search them. is there any simple plugin or combination of plugins that will allow for this? -- View this message in context: http://www.nabble.com/pagination-solution-tp20191702s27240p20191702.html Sent from the jQuery General Discussion mailing list archive at Nabble.com.
[jQuery] Re: Case-insensitive version of :contains(text) ?
this doesn't seem to work for me I assume i just add the jQuery.extend business in the head of the HTML file after my jquery include but before my other jquery functions? Karl Swedberg-2 wrote: > > On Oct 19, 2007, at 2:09 AM, Erik Beeson wrote: >> You could add your own expression for it (tested on FF2/Mac): >> >> jQuery.extend(jQuery.expr[':'], { >> containsIgnoreCase: "(a.textContent||a.innerText||jQuery(a).text >> ()||'').toLowerCase().indexOf((m[3]||'').toLowerCase())>=0" >> }); >> >> Usage: >> >> $('...:containsIgnoreCase("foo")'); >> > > > > Nice one, Erik! > > > --Karl > _ > Karl Swedberg > www.englishrules.com > www.learningjquery.com > > > -- View this message in context: http://www.nabble.com/Case-insensitive-version-of-%3Acontains%28text%29---tp13193237s27240p19904205.html Sent from the jQuery General Discussion mailing list archive at Nabble.com.
[jQuery] Re: simple table filtering?
that is very helpful and should be a great starting point - thank you very much for posting!! I will let you know how i make out. Eric-286 wrote: > > > This sounds specialized enough that you'll probably be writing the > code yourself. No problem, jQuery will help! > > Basically, every time the contents of your text fields change, you'll > go through every row of the table, check specific cells, and if they > don't match the text (http://www.w3schools.com/jsref/jsref_match.asp) > from the text field, hide the row. You'll need to set up the Drop- > down menus appropriately -- I would recommend that you have the Value > of the select Options be the index of the column. > > So if your table is: > Name | Address | Ice Cream > > Your select would contain: > Name > Address > Ice Cream > > I started the index at 0, so I'll be using eq() in my code. If I > started at 1, then I'd use nthChild: > http://docs.jquery.com/Core/eq -- index starts at 0 > http://docs.jquery.com/Selectors/nthChild -- index starts at 1 > > You could generate these dropdowns automatically, but I won't get into > that here. > > So the jQuery code that would get triggered on a "search" would look > something like this (untested code): > > $('#myTable tbody tr').each( function () { > var that = $(this); // save jQuery version of this > > var cellValueToConsider = that.find('td').eq( $ > ('#firstDropDown').val() ).text(); > > if (! cellValueToConsider.match( $('#firstSearchField').val() ) ) { > that.parent().hide(); > } > >// repeat similar logic with #secondDropDown and #secondSearchField > // or generalize the code for an arbitrary number of search > fields. > > }); > > > > > > > On Oct 6, 10:50 am, bdee1 <[EMAIL PROTECTED]> wrote: >> I am looking for a simple way to filter the contents of a table. to >> clarify >> - i would like to have a form at the top of an HTML table where i can >> select >> a field to filter on and then a textbox. as i type in the textbox, the >> table's contents will change to display only rows where the selected >> field >> contains the search term. >> >> I actually found a plugin to do this (uiTableFilter), but i need to take >> ti >> one step further. I need to have the ability to filter on more than one >> column. I tried just having two forms on the page, each calling the >> uiTableFilter plugin, but as soon as you start typing in one box, it just >> cancels out the search from any of the other boxes. >> >> any suggestions here? >> -- >> View this message in >> context:http://www.nabble.com/simple-table-filtering--tp19839476s27240p198394... >> Sent from the jQuery General Discussion mailing list archive at >> Nabble.com. > > -- View this message in context: http://www.nabble.com/simple-table-filtering--tp19839476s27240p19840326.html Sent from the jQuery General Discussion mailing list archive at Nabble.com.
[jQuery] simple table filtering?
I am looking for a simple way to filter the contents of a table. to clarify - i would like to have a form at the top of an HTML table where i can select a field to filter on and then a textbox. as i type in the textbox, the table's contents will change to display only rows where the selected field contains the search term. I actually found a plugin to do this (uiTableFilter), but i need to take ti one step further. I need to have the ability to filter on more than one column. I tried just having two forms on the page, each calling the uiTableFilter plugin, but as soon as you start typing in one box, it just cancels out the search from any of the other boxes. any suggestions here? -- View this message in context: http://www.nabble.com/simple-table-filtering--tp19839476s27240p19839476.html Sent from the jQuery General Discussion mailing list archive at Nabble.com.
[jQuery] Re: dimensiosn plugin
i'm sorry i still dotn think i follow entirely. so if i had an div element with an id of item1. and i wanted to get the position of it. the dimensions documentation says i would do: var position = {}; $("#myElement").position(position); so then in this example it should be: $("#item1").position(position); then to access the top position, i woudl do the following? $("#item1").offset().top is that correct? Karl Swedberg-2 wrote: > > > > Since it returns an object, you can use either dot notation or bracket > notation. So, to get the top position of an element, you could do > this ... > > $(element).offset().top > > or this ... > > $(element).offset()['top'] > > hope that helps. > > --Karl > _ > Karl Swedberg > www.englishrules.com > www.learningjquery.com > > > > On May 1, 2008, at 3:56 PM, bdee1 wrote: > >> >> >> i am a little unclear on how exactly to get the position of an >> element using >> jquery dimensions plugin. >> >> documentation says it returns "An object with top and left >> properties that >> are numbers representing the offset in pixels." >> >> and it says the object looks like this: >> { top: 10, left: 10 } >> >> so how do i access it? like a string? do i have to use string >> functions to >> pull out the height and width individually? >> -- >> View this message in context: >> http://www.nabble.com/dimensiosn-plugin-tp16995030s27240p16995030.html >> Sent from the jQuery General Discussion mailing list archive at >> Nabble.com. >> > > > -- View this message in context: http://www.nabble.com/dimensiosn-plugin-tp16995030s27240p17021373.html Sent from the jQuery General Discussion mailing list archive at Nabble.com.
[jQuery] dimensiosn plugin
i am a little unclear on how exactly to get the position of an element using jquery dimensions plugin. documentation says it returns "An object with top and left properties that are numbers representing the offset in pixels." and it says the object looks like this: { top: 10, left: 10 } so how do i access it? like a string? do i have to use string functions to pull out the height and width individually? -- View this message in context: http://www.nabble.com/dimensiosn-plugin-tp16995030s27240p16995030.html Sent from the jQuery General Discussion mailing list archive at Nabble.com.
[jQuery] question abotu validate plugin
i am using the validate plugin (http://plugins.jquery.com/project/validate) on a contact form here: http://beta.asset-guardians.com/contact.cfm the only problem is that the error messages are being inserted to the right of the field. I would liek them to appear just above the field (below the field's label). just submit the form without entering any values and you will see what i mean. any ideas on how to fix this? -- View this message in context: http://www.nabble.com/question-abotu-validate-plugin-tp14609198s27240p14609198.html Sent from the jQuery General Discussion mailing list archive at Nabble.com.
[jQuery] Re: Jquery Lightbox or Thickbox and Flickr?
ok so actually i ended up tryign out the picasa web albums and it is really nice because it allows you to upload up to a gig or so of photos for free and it lets you change the order of them. so that solved the ordering problem. woo hoo. only reminign question is how to handle the captions. the captions seem to be comign through as the rss item titles. so how could i make the captions coem through properly in the captions for lightbox? bmsterling wrote: > > o is the Object/Array > r is for random > > If the randomized option is set to true, line 224 will "shuffle" the > Object/Array. > > On 12/30/07, bdee1 <[EMAIL PROTECTED]> wrote: >> >> >> >> ok i think i woudl like to do that - have him append a number to the >> beginnign of each file. but i am not sure i follow your code on line >> 223. >> >> what are o and r in your function? >> and what is goign on in this function? >> >> >> >> bmsterling wrote: >> > >> > Well, like I said, as of right now, can do sets, but if he/she is >> willing >> > to >> > append a number infront of the file names you can probably do a sort >> and >> > get >> > it in order. >> > >> > The best place in the code to do that is at about line 223, just swap >> out >> > the if statement there with your sort code. >> > >> > On 12/26/07, bdee1 <[EMAIL PROTECTED]> wrote: >> >> >> >> >> >> >> >> really? man that could really be a problem for me then. he needs >> them >> >> to >> >> be in a specific order. wish i knew that before i started. >> >> >> >> >> >> bmsterling wrote: >> >> > >> >> > At best, you can set it to randomize the returned json, but with the >> >> > current >> >> > set up, you can't order it or grab a certain set. >> >> > >> >> > On 12/26/07, bdee1 <[EMAIL PROTECTED]> wrote: >> >> >> >> >> >> >> >> >> >> >> >> ok so it is working well but the client is asking how he can change >> >> the >> >> >> order >> >> >> of the pictures. it seems like with flickr you can add photos to >> >> "sets" >> >> >> and >> >> >> set a specific order, but there doesnt seem to be an rss feed for >> >> "sets", >> >> >> only for tagged photos. but there seems to be no way to set the >> order >> >> of >> >> >> tagged photos. >> >> >> >> >> >> how can i make this work fro my client? >> >> >> >> >> >> >> >> >> bmsterling wrote: >> >> >> > >> >> >> > I looks fine to me, can you send me a screen shot of the issue? >> >> >> > >> >> >> > On 12/22/07, bdee1 <[EMAIL PROTECTED]> wrote: >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> ok so i just dropped the code into a site template and it seems >> to >> >> >> work >> >> >> >> fine >> >> >> >> in IE but in firefox, it displays the gallery over and over >> again >> >> with >> >> >> >> weird >> >> >> >> layout. can youplease take a look? the url is >> >> >> >> http://beta.asset-guardians.com/portfolio.html >> >> >> >> http://beta.asset-guardians.com/portfolio.html >> >> >> >> >> >> >> >> you can see all the code by just doign a view source. >> >> >> >> >> >> >> >> any help would be greatly appreciated! >> >> >> >> -- >> >> >> >> View this message in context: >> >> >> >> >> >> >> >> >> >> http://www.nabble.com/Jquery-Lightbox-or-Thickbox-and-Flickr--tp14418944s27240p14474371.html >> >> >> >> Sent from the jQuery General Discussion mailing list archive at >> >> >> >> Nabble.com >> >> >> >> . >> >> >> >> >> >> >> >> >> >> >> > >> >> >> > >> >> >> > -- >> >> >> > Benjamin Sterling >> >> >> > http://www.KenzoMedia.com >> >> >> > http://www.KenzoHosting.com >> >> >> > http://www.benjaminsterling.com >> >> >> > >> >> >> > >> >> >> >> >> >> -- >> >> >> View this message in context: >> >> >> >> >> >> http://www.nabble.com/Jquery-Lightbox-or-Thickbox-and-Flickr--tp14418944s27240p14508959.html >> >> >> Sent from the jQuery General Discussion mailing list archive at >> >> >> Nabble.com >> >> >> . >> >> >> >> >> >> >> >> > >> >> > >> >> > -- >> >> > Benjamin Sterling >> >> > http://www.KenzoMedia.com >> >> > http://www.KenzoHosting.com >> >> > http://www.benjaminsterling.com >> >> > >> >> > >> >> >> >> -- >> >> View this message in context: >> >> >> http://www.nabble.com/Jquery-Lightbox-or-Thickbox-and-Flickr--tp14418944s27240p14509070.html >> >> Sent from the jQuery General Discussion mailing list archive at >> >> Nabble.com >> >> . >> >> >> >> >> > >> > >> > -- >> > Benjamin Sterling >> > http://www.KenzoMedia.com >> > http://www.KenzoHosting.com >> > http://www.benjaminsterling.com >> > >> > >> >> -- >> View this message in context: >> http://www.nabble.com/Jquery-Lightbox-or-Thickbox-and-Flickr--tp14418944s27240p14549408.html >> Sent from the jQuery General Discussion mailing list archive at >> Nabble.com >> . >> >> > > > -- > Benjamin Sterling > http://www.KenzoMedia.com > http://www.KenzoHosting.com > http://www.benjaminsterling.com > > -- View this message in context: http://www.nabble.com/Jquery-Lightbox-or-Thickbox-and-Flickr--tp14418944s27240p14560017.html Sent from the jQuery General Discussion mailing list archive at Nabble.com.
[jQuery] Re: Jquery Lightbox or Thickbox and Flickr?
ok i think i woudl like to do that - have him append a number to the beginnign of each file. but i am not sure i follow your code on line 223. what are o and r in your function? and what is goign on in this function? bmsterling wrote: > > Well, like I said, as of right now, can do sets, but if he/she is willing > to > append a number infront of the file names you can probably do a sort and > get > it in order. > > The best place in the code to do that is at about line 223, just swap out > the if statement there with your sort code. > > On 12/26/07, bdee1 <[EMAIL PROTECTED]> wrote: >> >> >> >> really? man that could really be a problem for me then. he needs them >> to >> be in a specific order. wish i knew that before i started. >> >> >> bmsterling wrote: >> > >> > At best, you can set it to randomize the returned json, but with the >> > current >> > set up, you can't order it or grab a certain set. >> > >> > On 12/26/07, bdee1 <[EMAIL PROTECTED]> wrote: >> >> >> >> >> >> >> >> ok so it is working well but the client is asking how he can change >> the >> >> order >> >> of the pictures. it seems like with flickr you can add photos to >> "sets" >> >> and >> >> set a specific order, but there doesnt seem to be an rss feed for >> "sets", >> >> only for tagged photos. but there seems to be no way to set the order >> of >> >> tagged photos. >> >> >> >> how can i make this work fro my client? >> >> >> >> >> >> bmsterling wrote: >> >> > >> >> > I looks fine to me, can you send me a screen shot of the issue? >> >> > >> >> > On 12/22/07, bdee1 <[EMAIL PROTECTED]> wrote: >> >> >> >> >> >> >> >> >> >> >> >> ok so i just dropped the code into a site template and it seems to >> >> work >> >> >> fine >> >> >> in IE but in firefox, it displays the gallery over and over again >> with >> >> >> weird >> >> >> layout. can youplease take a look? the url is >> >> >> http://beta.asset-guardians.com/portfolio.html >> >> >> http://beta.asset-guardians.com/portfolio.html >> >> >> >> >> >> you can see all the code by just doign a view source. >> >> >> >> >> >> any help would be greatly appreciated! >> >> >> -- >> >> >> View this message in context: >> >> >> >> >> >> http://www.nabble.com/Jquery-Lightbox-or-Thickbox-and-Flickr--tp14418944s27240p14474371.html >> >> >> Sent from the jQuery General Discussion mailing list archive at >> >> >> Nabble.com >> >> >> . >> >> >> >> >> >> >> >> > >> >> > >> >> > -- >> >> > Benjamin Sterling >> >> > http://www.KenzoMedia.com >> >> > http://www.KenzoHosting.com >> >> > http://www.benjaminsterling.com >> >> > >> >> > >> >> >> >> -- >> >> View this message in context: >> >> >> http://www.nabble.com/Jquery-Lightbox-or-Thickbox-and-Flickr--tp14418944s27240p14508959.html >> >> Sent from the jQuery General Discussion mailing list archive at >> >> Nabble.com >> >> . >> >> >> >> >> > >> > >> > -- >> > Benjamin Sterling >> > http://www.KenzoMedia.com >> > http://www.KenzoHosting.com >> > http://www.benjaminsterling.com >> > >> > >> >> -- >> View this message in context: >> http://www.nabble.com/Jquery-Lightbox-or-Thickbox-and-Flickr--tp14418944s27240p14509070.html >> Sent from the jQuery General Discussion mailing list archive at >> Nabble.com >> . >> >> > > > -- > Benjamin Sterling > http://www.KenzoMedia.com > http://www.KenzoHosting.com > http://www.benjaminsterling.com > > -- View this message in context: http://www.nabble.com/Jquery-Lightbox-or-Thickbox-and-Flickr--tp14418944s27240p14549408.html Sent from the jQuery General Discussion mailing list archive at Nabble.com.
[jQuery] Re: Jquery Lightbox or Thickbox and Flickr?
ok so the other thing the client was requesting was to be able to get captions into the lightbox effect. i know that i just need to add the caption to the title attribute of the a tags. and it looks like the plugin pulls the flickr caption as the alt tag for the image but how could i have it set the title tag for each a tag to the same value as the alt tag for each image? bmsterling wrote: > > At best, you can set it to randomize the returned json, but with the > current > set up, you can't order it or grab a certain set. > > On 12/26/07, bdee1 <[EMAIL PROTECTED]> wrote: >> >> >> >> ok so it is working well but the client is asking how he can change the >> order >> of the pictures. it seems like with flickr you can add photos to "sets" >> and >> set a specific order, but there doesnt seem to be an rss feed for "sets", >> only for tagged photos. but there seems to be no way to set the order of >> tagged photos. >> >> how can i make this work fro my client? >> >> >> bmsterling wrote: >> > >> > I looks fine to me, can you send me a screen shot of the issue? >> > >> > On 12/22/07, bdee1 <[EMAIL PROTECTED]> wrote: >> >> >> >> >> >> >> >> ok so i just dropped the code into a site template and it seems to >> work >> >> fine >> >> in IE but in firefox, it displays the gallery over and over again with >> >> weird >> >> layout. can youplease take a look? the url is >> >> http://beta.asset-guardians.com/portfolio.html >> >> http://beta.asset-guardians.com/portfolio.html >> >> >> >> you can see all the code by just doign a view source. >> >> >> >> any help would be greatly appreciated! >> >> -- >> >> View this message in context: >> >> >> http://www.nabble.com/Jquery-Lightbox-or-Thickbox-and-Flickr--tp14418944s27240p14474371.html >> >> Sent from the jQuery General Discussion mailing list archive at >> >> Nabble.com >> >> . >> >> >> >> >> > >> > >> > -- >> > Benjamin Sterling >> > http://www.KenzoMedia.com >> > http://www.KenzoHosting.com >> > http://www.benjaminsterling.com >> > >> > >> >> -- >> View this message in context: >> http://www.nabble.com/Jquery-Lightbox-or-Thickbox-and-Flickr--tp14418944s27240p14508959.html >> Sent from the jQuery General Discussion mailing list archive at >> Nabble.com >> . >> >> > > > -- > Benjamin Sterling > http://www.KenzoMedia.com > http://www.KenzoHosting.com > http://www.benjaminsterling.com > > -- View this message in context: http://www.nabble.com/Jquery-Lightbox-or-Thickbox-and-Flickr--tp14418944s27240p14509107.html Sent from the jQuery General Discussion mailing list archive at Nabble.com.
[jQuery] Re: Jquery Lightbox or Thickbox and Flickr?
really? man that could really be a problem for me then. he needs them to be in a specific order. wish i knew that before i started. bmsterling wrote: > > At best, you can set it to randomize the returned json, but with the > current > set up, you can't order it or grab a certain set. > > On 12/26/07, bdee1 <[EMAIL PROTECTED]> wrote: >> >> >> >> ok so it is working well but the client is asking how he can change the >> order >> of the pictures. it seems like with flickr you can add photos to "sets" >> and >> set a specific order, but there doesnt seem to be an rss feed for "sets", >> only for tagged photos. but there seems to be no way to set the order of >> tagged photos. >> >> how can i make this work fro my client? >> >> >> bmsterling wrote: >> > >> > I looks fine to me, can you send me a screen shot of the issue? >> > >> > On 12/22/07, bdee1 <[EMAIL PROTECTED]> wrote: >> >> >> >> >> >> >> >> ok so i just dropped the code into a site template and it seems to >> work >> >> fine >> >> in IE but in firefox, it displays the gallery over and over again with >> >> weird >> >> layout. can youplease take a look? the url is >> >> http://beta.asset-guardians.com/portfolio.html >> >> http://beta.asset-guardians.com/portfolio.html >> >> >> >> you can see all the code by just doign a view source. >> >> >> >> any help would be greatly appreciated! >> >> -- >> >> View this message in context: >> >> >> http://www.nabble.com/Jquery-Lightbox-or-Thickbox-and-Flickr--tp14418944s27240p14474371.html >> >> Sent from the jQuery General Discussion mailing list archive at >> >> Nabble.com >> >> . >> >> >> >> >> > >> > >> > -- >> > Benjamin Sterling >> > http://www.KenzoMedia.com >> > http://www.KenzoHosting.com >> > http://www.benjaminsterling.com >> > >> > >> >> -- >> View this message in context: >> http://www.nabble.com/Jquery-Lightbox-or-Thickbox-and-Flickr--tp14418944s27240p14508959.html >> Sent from the jQuery General Discussion mailing list archive at >> Nabble.com >> . >> >> > > > -- > Benjamin Sterling > http://www.KenzoMedia.com > http://www.KenzoHosting.com > http://www.benjaminsterling.com > > -- View this message in context: http://www.nabble.com/Jquery-Lightbox-or-Thickbox-and-Flickr--tp14418944s27240p14509070.html Sent from the jQuery General Discussion mailing list archive at Nabble.com.
[jQuery] Re: Jquery Lightbox or Thickbox and Flickr?
ok so it is working well but the client is asking how he can change the order of the pictures. it seems like with flickr you can add photos to "sets" and set a specific order, but there doesnt seem to be an rss feed for "sets", only for tagged photos. but there seems to be no way to set the order of tagged photos. how can i make this work fro my client? bmsterling wrote: > > I looks fine to me, can you send me a screen shot of the issue? > > On 12/22/07, bdee1 <[EMAIL PROTECTED]> wrote: >> >> >> >> ok so i just dropped the code into a site template and it seems to work >> fine >> in IE but in firefox, it displays the gallery over and over again with >> weird >> layout. can youplease take a look? the url is >> http://beta.asset-guardians.com/portfolio.html >> http://beta.asset-guardians.com/portfolio.html >> >> you can see all the code by just doign a view source. >> >> any help would be greatly appreciated! >> -- >> View this message in context: >> http://www.nabble.com/Jquery-Lightbox-or-Thickbox-and-Flickr--tp14418944s27240p14474371.html >> Sent from the jQuery General Discussion mailing list archive at >> Nabble.com >> . >> >> > > > -- > Benjamin Sterling > http://www.KenzoMedia.com > http://www.KenzoHosting.com > http://www.benjaminsterling.com > > -- View this message in context: http://www.nabble.com/Jquery-Lightbox-or-Thickbox-and-Flickr--tp14418944s27240p14508959.html Sent from the jQuery General Discussion mailing list archive at Nabble.com.
[jQuery] Re: Jquery Lightbox or Thickbox and Flickr?
actually i think i just got it working - stupid me forgot to put the tag. bmsterling wrote: > > I looks fine to me, can you send me a screen shot of the issue? > > On 12/22/07, bdee1 <[EMAIL PROTECTED]> wrote: >> >> >> >> ok so i just dropped the code into a site template and it seems to work >> fine >> in IE but in firefox, it displays the gallery over and over again with >> weird >> layout. can youplease take a look? the url is >> http://beta.asset-guardians.com/portfolio.html >> http://beta.asset-guardians.com/portfolio.html >> >> you can see all the code by just doign a view source. >> >> any help would be greatly appreciated! >> -- >> View this message in context: >> http://www.nabble.com/Jquery-Lightbox-or-Thickbox-and-Flickr--tp14418944s27240p14474371.html >> Sent from the jQuery General Discussion mailing list archive at >> Nabble.com >> . >> >> > > > -- > Benjamin Sterling > http://www.KenzoMedia.com > http://www.KenzoHosting.com > http://www.benjaminsterling.com > > -- View this message in context: http://www.nabble.com/Jquery-Lightbox-or-Thickbox-and-Flickr--tp14418944s27240p14481707.html Sent from the jQuery General Discussion mailing list archive at Nabble.com.
[jQuery] Re: Jquery Lightbox or Thickbox and Flickr?
ok so i just dropped the code into a site template and it seems to work fine in IE but in firefox, it displays the gallery over and over again with weird layout. can youplease take a look? the url is http://beta.asset-guardians.com/portfolio.html http://beta.asset-guardians.com/portfolio.html you can see all the code by just doign a view source. any help would be greatly appreciated! -- View this message in context: http://www.nabble.com/Jquery-Lightbox-or-Thickbox-and-Flickr--tp14418944s27240p14474371.html Sent from the jQuery General Discussion mailing list archive at Nabble.com.
[jQuery] Re: trouble with jquery lightbox plugin
anybody know of a way to add captions with lightbox plugin? bdee1 wrote: > > i am trying to work with the > http://leandrovieira.com/projects/jquery/lightbox/ jquery lightbox plugin > the overall effect is working well but for some reason is is not showing > any of the images. > > at the top of jquery.lightbox.js file there are some lines that let you > configure the path to the images. i don't know if this path is supposed > to be relative to the html file or to the js file. i tried both and still > the images don't show. what am i missing here? > -- View this message in context: http://www.nabble.com/trouble-with-jquery-lightbox-plugin-tp14421282s27240p14425364.html Sent from the jQuery General Discussion mailing list archive at Nabble.com.
[jQuery] Re: Jquery Lightbox or Thickbox and Flickr?
ok thats cool - i can fiddle with that. one other questions though how would i go about adding an onmouseover event handler to the images? by the way - if i didnt say so before - this is a really slick little plugin - i just have to work out the styling. bmsterling wrote: > > No I don't how to center the image in the LI without doing a bunch of > math, > but what I normally do in my css is set the width and height of the LI and > set the overflow:hidden. I am sure there is some other css hackery that > can > be done, but I am not an expert. > > On 12/19/07, bdee1 <[EMAIL PROTECTED]> wrote: >> >> >> >> oh ok i see what you mean now. seems to work. now of course if i use >> one >> of >> the other sizes, the pic are no longer uniform in width. so is there a >> way >> that i could style it so that the li's are always 200px in width with the >> image centered inside it? >> >> i tried adding: >> $('li', this).css("width","140px"); >> >> but it didn't seem to work. >> >> >> bmsterling wrote: >> > >> > You would do something like: >> > >> > $('a.jqAlbumParser').jqAlbumParser({ >> > tnSize:1 >> > }); >> > >> > On 12/19/07, bdee1 <[EMAIL PROTECTED]> wrote: >> >> >> >> >> >> >> >> where do i find that? i don't see those lines in the js file. >> >> >> >> >> >> bmsterling wrote: >> >> > >> >> > Set the tnSize param to 0, 1, 2 for a different size: >> >> > >> >> > * @param Integer tnSize >> >> > * This param takes in 0, 1,or 2 and will reference one >> of >> >> the >> >> > * thumbnail spots for picasa or flickr >> >> > * picasa: 0 == 72x48, 1 == 144x66, 2 == 288x192 >> >> > * flickr: 0 == 75x75 or 1 == 100 on long side or 2 >> == >> >> 240 >> >> > on long side >> >> > >> >> > You will have to see which one works best for you. >> >> > >> >> > On 12/19/07, bdee1 <[EMAIL PROTECTED]> wrote: >> >> >> >> >> >> >> >> >> >> >> >> any way i can make the thumbnails larger? or is that just the size >> >> they >> >> >> come >> >> >> in from flickr? >> >> >> >> >> >> >> >> >> >> >> >> bmsterling wrote: >> >> >> > >> >> >> > Cool; I have not tested it using the lightbox plugin, can you let >> me >> >> >> know >> >> >> > how it turns out? >> >> >> > >> >> >> > On 12/19/07, bdee1 <[EMAIL PROTECTED]> wrote: >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> nevermind my last post about not understanding yoru code - that >> was >> >> >> just >> >> >> >> me >> >> >> >> being stupid. i just looked at the lightbox plugin in more >> detail >> >> and >> >> >> >> answered my own questions duh. >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> bmsterling wrote: >> >> >> >> > >> >> >> >> > I guess a download link would have been useful: >> >> >> >> > >> >> >> >> >> >> >> >> >> >> http://benjaminsterling.com/articles/jqAlbumParser/common/js/jqAlbumParser.js >> >> >> >> > >> >> >> >> > Thanks for catching that. >> >> >> >> > >> >> >> >> > On 12/19/07, bdee1 <[EMAIL PROTECTED]> wrote: >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> ok that should work - now one last question... i dont see the >> >> >> download >> >> >> >> >> link >> >> >> >> >> for the plugin anywhere. >> >> >> >> >> >> >> >> >> >> >> >> >> >> >
[jQuery] Re: Jquery Lightbox or Thickbox and Flickr?
oh ok i see what you mean now. seems to work. now of course if i use one of the other sizes, the pic are no longer uniform in width. so is there a way that i could style it so that the li's are always 200px in width with the image centered inside it? i tried adding: $('li', this).css("width","140px"); but it didn't seem to work. bmsterling wrote: > > You would do something like: > > $('a.jqAlbumParser').jqAlbumParser({ > tnSize:1 > }); > > On 12/19/07, bdee1 <[EMAIL PROTECTED]> wrote: >> >> >> >> where do i find that? i don't see those lines in the js file. >> >> >> bmsterling wrote: >> > >> > Set the tnSize param to 0, 1, 2 for a different size: >> > >> > * @param Integer tnSize >> > * This param takes in 0, 1,or 2 and will reference one of >> the >> > * thumbnail spots for picasa or flickr >> > * picasa: 0 == 72x48, 1 == 144x66, 2 == 288x192 >> > * flickr: 0 == 75x75 or 1 == 100 on long side or 2 == >> 240 >> > on long side >> > >> > You will have to see which one works best for you. >> > >> > On 12/19/07, bdee1 <[EMAIL PROTECTED]> wrote: >> >> >> >> >> >> >> >> any way i can make the thumbnails larger? or is that just the size >> they >> >> come >> >> in from flickr? >> >> >> >> >> >> >> >> bmsterling wrote: >> >> > >> >> > Cool; I have not tested it using the lightbox plugin, can you let me >> >> know >> >> > how it turns out? >> >> > >> >> > On 12/19/07, bdee1 <[EMAIL PROTECTED]> wrote: >> >> >> >> >> >> >> >> >> >> >> >> nevermind my last post about not understanding yoru code - that was >> >> just >> >> >> me >> >> >> being stupid. i just looked at the lightbox plugin in more detail >> and >> >> >> answered my own questions duh. >> >> >> >> >> >> >> >> >> >> >> >> bmsterling wrote: >> >> >> > >> >> >> > I guess a download link would have been useful: >> >> >> > >> >> >> >> >> >> http://benjaminsterling.com/articles/jqAlbumParser/common/js/jqAlbumParser.js >> >> >> > >> >> >> > Thanks for catching that. >> >> >> > >> >> >> > On 12/19/07, bdee1 <[EMAIL PROTECTED]> wrote: >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> ok that should work - now one last question... i dont see the >> >> download >> >> >> >> link >> >> >> >> for the plugin anywhere. >> >> >> >> >> >> >> >> >> >> >> >> bmsterling wrote: >> >> >> >> > >> >> >> >> > Check out my jqAlbumParser plugin, it will allow you to parse >> out >> >> a >> >> >> >> flickr >> >> >> >> > album and then execute any additional plugin: >> >> >> >> > >> >> >> >> >> >> >> >> >> >> http://benjaminsterling.com/jquery-jqalbumparser-plugin-parses-out-flickr-picasa-clientside/ >> >> >> >> > >> >> >> >> > On 12/19/07, bdee1 <[EMAIL PROTECTED]> wrote: >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> i want to set up a photo gallery for a clients site and would >> >> like >> >> >> to >> >> >> >> use >> >> >> >> >> the >> >> >> >> >> http://leandrovieira.com/projects/jquery/lightbox/ Jquery >> >> LightBox >> >> >> >> plugin >> >> >> >> >> or somethign similar. that par is easy but i would like to >> be >> >> able >> >> >> to >> >> >> >> >> use >> >> >> >> >> images from flickr. that way the client would be able to >> upd
[jQuery] Re: Jquery Lightbox or Thickbox and Flickr?
where do i find that? i don't see those lines in the js file. bmsterling wrote: > > Set the tnSize param to 0, 1, 2 for a different size: > > * @param Integer tnSize > * This param takes in 0, 1,or 2 and will reference one of the > * thumbnail spots for picasa or flickr > * picasa: 0 == 72x48, 1 == 144x66, 2 == 288x192 > * flickr: 0 == 75x75 or 1 == 100 on long side or 2 == 240 > on long side > > You will have to see which one works best for you. > > On 12/19/07, bdee1 <[EMAIL PROTECTED]> wrote: >> >> >> >> any way i can make the thumbnails larger? or is that just the size they >> come >> in from flickr? >> >> >> >> bmsterling wrote: >> > >> > Cool; I have not tested it using the lightbox plugin, can you let me >> know >> > how it turns out? >> > >> > On 12/19/07, bdee1 <[EMAIL PROTECTED]> wrote: >> >> >> >> >> >> >> >> nevermind my last post about not understanding yoru code - that was >> just >> >> me >> >> being stupid. i just looked at the lightbox plugin in more detail and >> >> answered my own questions duh. >> >> >> >> >> >> >> >> bmsterling wrote: >> >> > >> >> > I guess a download link would have been useful: >> >> > >> >> >> http://benjaminsterling.com/articles/jqAlbumParser/common/js/jqAlbumParser.js >> >> > >> >> > Thanks for catching that. >> >> > >> >> > On 12/19/07, bdee1 <[EMAIL PROTECTED]> wrote: >> >> >> >> >> >> >> >> >> >> >> >> ok that should work - now one last question... i dont see the >> download >> >> >> link >> >> >> for the plugin anywhere. >> >> >> >> >> >> >> >> >> bmsterling wrote: >> >> >> > >> >> >> > Check out my jqAlbumParser plugin, it will allow you to parse out >> a >> >> >> flickr >> >> >> > album and then execute any additional plugin: >> >> >> > >> >> >> >> >> >> http://benjaminsterling.com/jquery-jqalbumparser-plugin-parses-out-flickr-picasa-clientside/ >> >> >> > >> >> >> > On 12/19/07, bdee1 <[EMAIL PROTECTED]> wrote: >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> i want to set up a photo gallery for a clients site and would >> like >> >> to >> >> >> use >> >> >> >> the >> >> >> >> http://leandrovieira.com/projects/jquery/lightbox/ Jquery >> LightBox >> >> >> plugin >> >> >> >> or somethign similar. that par is easy but i would like to be >> able >> >> to >> >> >> >> use >> >> >> >> images from flickr. that way the client would be able to update >> >> the >> >> >> >> images >> >> >> >> in the gallery whenever he needs to. >> >> >> >> >> >> >> >> has anyone done something like this or can suggest how to go >> about >> >> it? >> >> >> >> -- >> >> >> >> View this message in context: >> >> >> >> >> >> >> >> >> >> http://www.nabble.com/Jquery-Lightbox-or-Thickbox-and-Flickr--tp14418944s27240p14418944.html >> >> >> >> Sent from the jQuery General Discussion mailing list archive at >> >> >> >> Nabble.com >> >> >> >> . >> >> >> >> >> >> >> >> >> >> >> > >> >> >> > >> >> >> > -- >> >> >> > Benjamin Sterling >> >> >> > http://www.KenzoMedia.com >> >> >> > http://www.KenzoHosting.com >> >> >> > http://www.benjaminsterling.com >> >> >> > >> >> >> > >> >> >> >> >> >> -- >> >> >> View this message in context: >> >> >> >> >> >> http://www.nabble.com/Jquery-Lightbox-or-Thickbox-and-Flickr--tp14418944s27240p14420329.html >> >> >> Sent from the jQuery General Discussion mailing list archive at >> >> >> Nabble.com >> >> >> . >> >> >> >> >> >> >> >> > >> >> > >> >> > -- >> >> > Benjamin Sterling >> >> > http://www.KenzoMedia.com >> >> > http://www.KenzoHosting.com >> >> > http://www.benjaminsterling.com >> >> > >> >> > >> >> >> >> -- >> >> View this message in context: >> >> >> http://www.nabble.com/Jquery-Lightbox-or-Thickbox-and-Flickr--tp14418944s27240p14420823.html >> >> Sent from the jQuery General Discussion mailing list archive at >> >> Nabble.com >> >> . >> >> >> >> >> > >> > >> > -- >> > Benjamin Sterling >> > http://www.KenzoMedia.com >> > http://www.KenzoHosting.com >> > http://www.benjaminsterling.com >> > >> > >> >> -- >> View this message in context: >> http://www.nabble.com/Jquery-Lightbox-or-Thickbox-and-Flickr--tp14418944s27240p14422621.html >> Sent from the jQuery General Discussion mailing list archive at >> Nabble.com >> . >> >> > > > -- > Benjamin Sterling > http://www.KenzoMedia.com > http://www.KenzoHosting.com > http://www.benjaminsterling.com > > -- View this message in context: http://www.nabble.com/Jquery-Lightbox-or-Thickbox-and-Flickr--tp14418944s27240p14423425.html Sent from the jQuery General Discussion mailing list archive at Nabble.com.
[jQuery] Re: rounded corners on images with jquery?
thanks for the post - i will give that a shot - can i apply a border to that though? malsup wrote: > > > Here's an example of how to use the jQuery Corner plugin on an image: > > http://www.malsup.com/jquery/corner/image.html > > Mike > > > On Dec 17, 2007 7:12 PM, bdee1 <[EMAIL PROTECTED]> wrote: >> >> >> i know there are jquery plugins to round the corners on divs but is there >> one >> that will work on images? to see what i mean take a look at >> http://beta.asset-guardians.com/. >> >> it is a sit i am working on that in its very early stages. towards the >> bottom of the page there are two images (one is a baseball and the other >> is >> a ring. the baseball has square corners. the ring image has round >> corners. >> the corners on the ring image were rounded in photoshop and saved that >> way. >> >> it would be nice however to be able to apply a similar effect to any >> image >> with some simple jquery code like $("#ringImage").roundcorners(); >> >> anybody know if this is possible? >> -- >> View this message in context: >> http://www.nabble.com/rounded-corners-on-images-with-jquery--tp14375829s27240p14375829.html >> Sent from the jQuery General Discussion mailing list archive at >> Nabble.com. >> >> > > -- View this message in context: http://www.nabble.com/rounded-corners-on-images-with-jquery--tp14375829s27240p14422615.html Sent from the jQuery General Discussion mailing list archive at Nabble.com.
[jQuery] Re: Jquery Lightbox or Thickbox and Flickr?
any way i can make the thumbnails larger? or is that just the size they come in from flickr? bmsterling wrote: > > Cool; I have not tested it using the lightbox plugin, can you let me know > how it turns out? > > On 12/19/07, bdee1 <[EMAIL PROTECTED]> wrote: >> >> >> >> nevermind my last post about not understanding yoru code - that was just >> me >> being stupid. i just looked at the lightbox plugin in more detail and >> answered my own questions duh. >> >> >> >> bmsterling wrote: >> > >> > I guess a download link would have been useful: >> > >> http://benjaminsterling.com/articles/jqAlbumParser/common/js/jqAlbumParser.js >> > >> > Thanks for catching that. >> > >> > On 12/19/07, bdee1 <[EMAIL PROTECTED]> wrote: >> >> >> >> >> >> >> >> ok that should work - now one last question... i dont see the download >> >> link >> >> for the plugin anywhere. >> >> >> >> >> >> bmsterling wrote: >> >> > >> >> > Check out my jqAlbumParser plugin, it will allow you to parse out a >> >> flickr >> >> > album and then execute any additional plugin: >> >> > >> >> >> http://benjaminsterling.com/jquery-jqalbumparser-plugin-parses-out-flickr-picasa-clientside/ >> >> > >> >> > On 12/19/07, bdee1 <[EMAIL PROTECTED]> wrote: >> >> >> >> >> >> >> >> >> >> >> >> i want to set up a photo gallery for a clients site and would like >> to >> >> use >> >> >> the >> >> >> http://leandrovieira.com/projects/jquery/lightbox/ Jquery LightBox >> >> plugin >> >> >> or somethign similar. that par is easy but i would like to be able >> to >> >> >> use >> >> >> images from flickr. that way the client would be able to update >> the >> >> >> images >> >> >> in the gallery whenever he needs to. >> >> >> >> >> >> has anyone done something like this or can suggest how to go about >> it? >> >> >> -- >> >> >> View this message in context: >> >> >> >> >> >> http://www.nabble.com/Jquery-Lightbox-or-Thickbox-and-Flickr--tp14418944s27240p14418944.html >> >> >> Sent from the jQuery General Discussion mailing list archive at >> >> >> Nabble.com >> >> >> . >> >> >> >> >> >> >> >> > >> >> > >> >> > -- >> >> > Benjamin Sterling >> >> > http://www.KenzoMedia.com >> >> > http://www.KenzoHosting.com >> >> > http://www.benjaminsterling.com >> >> > >> >> > >> >> >> >> -- >> >> View this message in context: >> >> >> http://www.nabble.com/Jquery-Lightbox-or-Thickbox-and-Flickr--tp14418944s27240p14420329.html >> >> Sent from the jQuery General Discussion mailing list archive at >> >> Nabble.com >> >> . >> >> >> >> >> > >> > >> > -- >> > Benjamin Sterling >> > http://www.KenzoMedia.com >> > http://www.KenzoHosting.com >> > http://www.benjaminsterling.com >> > >> > >> >> -- >> View this message in context: >> http://www.nabble.com/Jquery-Lightbox-or-Thickbox-and-Flickr--tp14418944s27240p14420823.html >> Sent from the jQuery General Discussion mailing list archive at >> Nabble.com >> . >> >> > > > -- > Benjamin Sterling > http://www.KenzoMedia.com > http://www.KenzoHosting.com > http://www.benjaminsterling.com > > -- View this message in context: http://www.nabble.com/Jquery-Lightbox-or-Thickbox-and-Flickr--tp14418944s27240p14422621.html Sent from the jQuery General Discussion mailing list archive at Nabble.com.
[jQuery] Re: Jquery Lightbox or Thickbox and Flickr?
this worked out pretty well - i had some trouble gettign the images to load correctly in the lightbox plugin but that was something in the lightbox plugin i had to tweak - not yours. i don't have it posted online yet - i am just playing around locally. but in the next few weeks you will see it at www.asset-guardians.com on the portfolio page. bmsterling wrote: > > Cool; I have not tested it using the lightbox plugin, can you let me know > how it turns out? > > On 12/19/07, bdee1 <[EMAIL PROTECTED]> wrote: >> >> >> >> nevermind my last post about not understanding yoru code - that was just >> me >> being stupid. i just looked at the lightbox plugin in more detail and >> answered my own questions duh. >> >> >> >> bmsterling wrote: >> > >> > I guess a download link would have been useful: >> > >> http://benjaminsterling.com/articles/jqAlbumParser/common/js/jqAlbumParser.js >> > >> > Thanks for catching that. >> > >> > On 12/19/07, bdee1 <[EMAIL PROTECTED]> wrote: >> >> >> >> >> >> >> >> ok that should work - now one last question... i dont see the download >> >> link >> >> for the plugin anywhere. >> >> >> >> >> >> bmsterling wrote: >> >> > >> >> > Check out my jqAlbumParser plugin, it will allow you to parse out a >> >> flickr >> >> > album and then execute any additional plugin: >> >> > >> >> >> http://benjaminsterling.com/jquery-jqalbumparser-plugin-parses-out-flickr-picasa-clientside/ >> >> > >> >> > On 12/19/07, bdee1 <[EMAIL PROTECTED]> wrote: >> >> >> >> >> >> >> >> >> >> >> >> i want to set up a photo gallery for a clients site and would like >> to >> >> use >> >> >> the >> >> >> http://leandrovieira.com/projects/jquery/lightbox/ Jquery LightBox >> >> plugin >> >> >> or somethign similar. that par is easy but i would like to be able >> to >> >> >> use >> >> >> images from flickr. that way the client would be able to update >> the >> >> >> images >> >> >> in the gallery whenever he needs to. >> >> >> >> >> >> has anyone done something like this or can suggest how to go about >> it? >> >> >> -- >> >> >> View this message in context: >> >> >> >> >> >> http://www.nabble.com/Jquery-Lightbox-or-Thickbox-and-Flickr--tp14418944s27240p14418944.html >> >> >> Sent from the jQuery General Discussion mailing list archive at >> >> >> Nabble.com >> >> >> . >> >> >> >> >> >> >> >> > >> >> > >> >> > -- >> >> > Benjamin Sterling >> >> > http://www.KenzoMedia.com >> >> > http://www.KenzoHosting.com >> >> > http://www.benjaminsterling.com >> >> > >> >> > >> >> >> >> -- >> >> View this message in context: >> >> >> http://www.nabble.com/Jquery-Lightbox-or-Thickbox-and-Flickr--tp14418944s27240p14420329.html >> >> Sent from the jQuery General Discussion mailing list archive at >> >> Nabble.com >> >> . >> >> >> >> >> > >> > >> > -- >> > Benjamin Sterling >> > http://www.KenzoMedia.com >> > http://www.KenzoHosting.com >> > http://www.benjaminsterling.com >> > >> > >> >> -- >> View this message in context: >> http://www.nabble.com/Jquery-Lightbox-or-Thickbox-and-Flickr--tp14418944s27240p14420823.html >> Sent from the jQuery General Discussion mailing list archive at >> Nabble.com >> . >> >> > > > -- > Benjamin Sterling > http://www.KenzoMedia.com > http://www.KenzoHosting.com > http://www.benjaminsterling.com > > -- View this message in context: http://www.nabble.com/Jquery-Lightbox-or-Thickbox-and-Flickr--tp14418944s27240p14422607.html Sent from the jQuery General Discussion mailing list archive at Nabble.com.
[jQuery] Re: trouble with jquery lightbox plugin
ok i got it working. it seems that the path to the images has to be set relative to the html page. this seems a bit problematic if youwanted to use the plugin on different pages within your site. you would have to have a seperate .js file for each page you want to access it from and in those js files specify the appropriate paths to the images. bdee1 wrote: > > i am trying to work with the > http://leandrovieira.com/projects/jquery/lightbox/ jquery lightbox plugin > the overall effect is working well but for some reason is is not showing > any of the images. > > at the top of jquery.lightbox.js file there are some lines that let you > configure the path to the images. i don't know if this path is supposed > to be relative to the html file or to the js file. i tried both and still > the images don't show. what am i missing here? > -- View this message in context: http://www.nabble.com/trouble-with-jquery-lightbox-plugin-tp14421282s27240p14422535.html Sent from the jQuery General Discussion mailing list archive at Nabble.com.
[jQuery] trouble with jquery lightbox plugin
i am trying to work with the http://leandrovieira.com/projects/jquery/lightbox/ jquery lightbox plugin the overall effect is working well but for some reason is is not showing any of the images. at the top of jquery.lightbox.js file there are some lines that let you configure the path to the images. i don't know if this path is supposed to be relative to the html file or to the js file. i tried both and still the images don't show. what am i missing here? -- View this message in context: http://www.nabble.com/trouble-with-jquery-lightbox-plugin-tp14421282s27240p14421282.html Sent from the jQuery General Discussion mailing list archive at Nabble.com.
[jQuery] Re: Jquery Lightbox or Thickbox and Flickr?
nevermind my last post about not understanding yoru code - that was just me being stupid. i just looked at the lightbox plugin in more detail and answered my own questions duh. bmsterling wrote: > > I guess a download link would have been useful: > http://benjaminsterling.com/articles/jqAlbumParser/common/js/jqAlbumParser.js > > Thanks for catching that. > > On 12/19/07, bdee1 <[EMAIL PROTECTED]> wrote: >> >> >> >> ok that should work - now one last question... i dont see the download >> link >> for the plugin anywhere. >> >> >> bmsterling wrote: >> > >> > Check out my jqAlbumParser plugin, it will allow you to parse out a >> flickr >> > album and then execute any additional plugin: >> > >> http://benjaminsterling.com/jquery-jqalbumparser-plugin-parses-out-flickr-picasa-clientside/ >> > >> > On 12/19/07, bdee1 <[EMAIL PROTECTED]> wrote: >> >> >> >> >> >> >> >> i want to set up a photo gallery for a clients site and would like to >> use >> >> the >> >> http://leandrovieira.com/projects/jquery/lightbox/ Jquery LightBox >> plugin >> >> or somethign similar. that par is easy but i would like to be able to >> >> use >> >> images from flickr. that way the client would be able to update the >> >> images >> >> in the gallery whenever he needs to. >> >> >> >> has anyone done something like this or can suggest how to go about it? >> >> -- >> >> View this message in context: >> >> >> http://www.nabble.com/Jquery-Lightbox-or-Thickbox-and-Flickr--tp14418944s27240p14418944.html >> >> Sent from the jQuery General Discussion mailing list archive at >> >> Nabble.com >> >> . >> >> >> >> >> > >> > >> > -- >> > Benjamin Sterling >> > http://www.KenzoMedia.com >> > http://www.KenzoHosting.com >> > http://www.benjaminsterling.com >> > >> > >> >> -- >> View this message in context: >> http://www.nabble.com/Jquery-Lightbox-or-Thickbox-and-Flickr--tp14418944s27240p14420329.html >> Sent from the jQuery General Discussion mailing list archive at >> Nabble.com >> . >> >> > > > -- > Benjamin Sterling > http://www.KenzoMedia.com > http://www.KenzoHosting.com > http://www.benjaminsterling.com > > -- View this message in context: http://www.nabble.com/Jquery-Lightbox-or-Thickbox-and-Flickr--tp14418944s27240p14420823.html Sent from the jQuery General Discussion mailing list archive at Nabble.com.
[jQuery] Re: Jquery Lightbox or Thickbox and Flickr?
ok i got the download link and now i am looking at this code: i am not sure i follow what you are saying here: $(".jqAlbumParser").jqAlbumParser({ pluginExec : function(){ $('a', this).lightBox();// this refers to the list just created } }); so is this saying that for each a tag it generates, it calls a lightbox function? please explain this further. bmsterling wrote: > > By default, the output will look something like pathToFullSize > pathtoimage ... > > And you can style it how ever you want. If you want them to click to open > to lightbox, you would do something like: > > $(".jqAlbumParser").jqAlbumParser({ > pluginExec : function(){ > $('a', this).lightBox();// this refers to the list just created > } > }); > > > If you want to the plugin to execute on page load, do: > > $(".jqAlbumParser").jqAlbumParser({ > pluginExec : function(){ > $('a', this).lightBox();// this refers to the list just created > } > }).click(); > > Of course all that is wrapped in the .ready() method. > > > On 12/19/07, bdee1 <[EMAIL PROTECTED]> wrote: >> >> >> >> that looks promising but i don't think i need to hook the results into a >> plugin - i just want to output the results as links for use with >> lightbox. >> so if i don't hook into another plugin, how do i access the results? >> >> >> bdee1 wrote: >> > >> > yea i came across that one too but i don't really care for the style of >> > their lightbox effect. i greatly prefer the type of the one i posted >> > above. >> > >> > really if i were to use the jquery lightbox effect then i guess all i >> > would need is a jquery plugin or script that would allow me to pull a >> set >> > of image thumbnails and full size images from a flicker set and output >> > those thumbnails and links with a class="lightbox" on them. >> > >> > i am looking at the flickr api to see if i can just build something but >> it >> > would be much easier if i could find a plugin to do this. >> > >> > >> > Priest, James (NIH/NIEHS) [C] wrote: >> >> >> >> >> >>> -Original Message- >> >>> From: bdee1 [mailto:[EMAIL PROTECTED] ] >> >> >> >>> i want to set up a photo gallery for a clients site and would >> >>> like to use the >> >>> http://leandrovieira.com/projects/jquery/lightbox/ Jquery >> >>> LightBox plugin >> >>> or somethign similar. that par is easy but i would like to >> >>> be able to use >> >>> images from flickr. that way the client would be able to >> >> >> >> >> >> I'm digging around looking for the same thing: >> >> >> >> http://www.projectatomic.com/en/flickr.htm >> >> >> >> Still in alpha though... >> >> >> >> Jim >> >> >> >> >> > >> > >> >> -- >> View this message in context: >> http://www.nabble.com/Jquery-Lightbox-or-Thickbox-and-Flickr--tp14418944s27240p14419914.html >> Sent from the jQuery General Discussion mailing list archive at >> Nabble.com >> . >> >> > > > -- > Benjamin Sterling > http://www.KenzoMedia.com > http://www.KenzoHosting.com > http://www.benjaminsterling.com > > -- View this message in context: http://www.nabble.com/Jquery-Lightbox-or-Thickbox-and-Flickr--tp14418944s27240p14420821.html Sent from the jQuery General Discussion mailing list archive at Nabble.com.
[jQuery] Re: Jquery Lightbox or Thickbox and Flickr?
ok that should work - now one last question... i dont see the download link for the plugin anywhere. bmsterling wrote: > > Check out my jqAlbumParser plugin, it will allow you to parse out a flickr > album and then execute any additional plugin: > http://benjaminsterling.com/jquery-jqalbumparser-plugin-parses-out-flickr-picasa-clientside/ > > On 12/19/07, bdee1 <[EMAIL PROTECTED]> wrote: >> >> >> >> i want to set up a photo gallery for a clients site and would like to use >> the >> http://leandrovieira.com/projects/jquery/lightbox/ Jquery LightBox plugin >> or somethign similar. that par is easy but i would like to be able to >> use >> images from flickr. that way the client would be able to update the >> images >> in the gallery whenever he needs to. >> >> has anyone done something like this or can suggest how to go about it? >> -- >> View this message in context: >> http://www.nabble.com/Jquery-Lightbox-or-Thickbox-and-Flickr--tp14418944s27240p14418944.html >> Sent from the jQuery General Discussion mailing list archive at >> Nabble.com >> . >> >> > > > -- > Benjamin Sterling > http://www.KenzoMedia.com > http://www.KenzoHosting.com > http://www.benjaminsterling.com > > -- View this message in context: http://www.nabble.com/Jquery-Lightbox-or-Thickbox-and-Flickr--tp14418944s27240p14420329.html Sent from the jQuery General Discussion mailing list archive at Nabble.com.
[jQuery] Re: Jquery Lightbox or Thickbox and Flickr?
that looks promising but i don't think i need to hook the results into a plugin - i just want to output the results as links for use with lightbox. so if i don't hook into another plugin, how do i access the results? bdee1 wrote: > > yea i came across that one too but i don't really care for the style of > their lightbox effect. i greatly prefer the type of the one i posted > above. > > really if i were to use the jquery lightbox effect then i guess all i > would need is a jquery plugin or script that would allow me to pull a set > of image thumbnails and full size images from a flicker set and output > those thumbnails and links with a class="lightbox" on them. > > i am looking at the flickr api to see if i can just build something but it > would be much easier if i could find a plugin to do this. > > > Priest, James (NIH/NIEHS) [C] wrote: >> >> >>> -Original Message- >>> From: bdee1 [mailto:[EMAIL PROTECTED] >> >>> i want to set up a photo gallery for a clients site and would >>> like to use the >>> http://leandrovieira.com/projects/jquery/lightbox/ Jquery >>> LightBox plugin >>> or somethign similar. that par is easy but i would like to >>> be able to use >>> images from flickr. that way the client would be able to >> >> >> I'm digging around looking for the same thing: >> >> http://www.projectatomic.com/en/flickr.htm >> >> Still in alpha though... >> >> Jim >> >> > > -- View this message in context: http://www.nabble.com/Jquery-Lightbox-or-Thickbox-and-Flickr--tp14418944s27240p14419914.html Sent from the jQuery General Discussion mailing list archive at Nabble.com.
[jQuery] Re: Jquery Lightbox or Thickbox and Flickr?
yea i came across that one too but i don't really care for the style of their lightbox effect. i greatly prefer the type of the one i posted above. really if i were to use the jquery lightbox effect then i guess all i would need is a jquery plugin or script that would allow me to pull a set of image thumbnails and full size images from a flicker set and output those thumbnails and links with a class="lightbox" on them. i am looking at the flickr api to see if i can just build something but it would be much easier if i could find a plugin to do this. Priest, James (NIH/NIEHS) [C] wrote: > > >> -Original Message- >> From: bdee1 [mailto:[EMAIL PROTECTED] > >> i want to set up a photo gallery for a clients site and would >> like to use the >> http://leandrovieira.com/projects/jquery/lightbox/ Jquery >> LightBox plugin >> or somethign similar. that par is easy but i would like to >> be able to use >> images from flickr. that way the client would be able to > > > I'm digging around looking for the same thing: > > http://www.projectatomic.com/en/flickr.htm > > Still in alpha though... > > Jim > > -- View this message in context: http://www.nabble.com/Jquery-Lightbox-or-Thickbox-and-Flickr--tp14418944s27240p14419441.html Sent from the jQuery General Discussion mailing list archive at Nabble.com.
[jQuery] Jquery Lightbox or Thickbox and Flickr?
i want to set up a photo gallery for a clients site and would like to use the http://leandrovieira.com/projects/jquery/lightbox/ Jquery LightBox plugin or somethign similar. that par is easy but i would like to be able to use images from flickr. that way the client would be able to update the images in the gallery whenever he needs to. has anyone done something like this or can suggest how to go about it? -- View this message in context: http://www.nabble.com/Jquery-Lightbox-or-Thickbox-and-Flickr--tp14418944s27240p14418944.html Sent from the jQuery General Discussion mailing list archive at Nabble.com.
[jQuery] Re: rounded corners on images with jquery?
looks like that could work - i will give it a shot tonight. thanks! Jack Killpatrick wrote: > > > This isn't a jquery based solution (I don't know of any), but might do > what you need: > > http://www.netzgesta.de/bevel/ > > - Jack > > bdee1 wrote: >> i know there are jquery plugins to round the corners on divs but is there >> one >> that will work on images? to see what i mean take a look at >> http://beta.asset-guardians.com/. >> >> it is a sit i am working on that in its very early stages. towards the >> bottom of the page there are two images (one is a baseball and the other >> is >> a ring. the baseball has square corners. the ring image has round >> corners. >> the corners on the ring image were rounded in photoshop and saved that >> way. >> >> it would be nice however to be able to apply a similar effect to any >> image >> with some simple jquery code like $("#ringImage").roundcorners(); >> >> anybody know if this is possible? >> > > > > -- View this message in context: http://www.nabble.com/rounded-corners-on-images-with-jquery--tp14375829s27240p14396103.html Sent from the jQuery General Discussion mailing list archive at Nabble.com.
[jQuery] rounded corners on images with jquery?
i know there are jquery plugins to round the corners on divs but is there one that will work on images? to see what i mean take a look at http://beta.asset-guardians.com/. it is a sit i am working on that in its very early stages. towards the bottom of the page there are two images (one is a baseball and the other is a ring. the baseball has square corners. the ring image has round corners. the corners on the ring image were rounded in photoshop and saved that way. it would be nice however to be able to apply a similar effect to any image with some simple jquery code like $("#ringImage").roundcorners(); anybody know if this is possible? -- View this message in context: http://www.nabble.com/rounded-corners-on-images-with-jquery--tp14375829s27240p14375829.html Sent from the jQuery General Discussion mailing list archive at Nabble.com.
[jQuery] Re: gradient plugin - wont work on td's?
currently i am matching the td's based on a gradient class. so like this: $('.gradient').gradient(); how that work? Brandon Aaron wrote: > > > Try wrapping the contents of the td with a span first and then > applying the gradient to the span. Something like this: > > $('td').wrapInner('').find('> span').gradient(); > > -- > Brandon Aaron > > On Nov 14, 12:13 pm, bdee1 <[EMAIL PROTECTED]> wrote: >> anyone have an idea on this? >> >> bdee1 wrote: >> >> > i am trying to programatically add gradients to table header cells and >> i >> > came across the gradient plugin >> > (http://jquery.com/plugins/project/gradient). it seems that this >> plugin >> > works well for creatign gradients in divs but when i try and apply it >> to a >> > td, it seems to work in ie but in firefox, it puts the gradient at the >> top >> > of the page rather than in the td. >> >> > can anyone think of a possible workaround for this? >> >> -- >> View this message in >> context:http://www.nabble.com/gradient-plugin---wont-work-on-td%27s--tf480594... >> Sent from the jQuery General Discussion mailing list archive at >> Nabble.com. > > > -- View this message in context: http://www.nabble.com/gradient-plugin---wont-work-on-td%27s--tf4805944s27240.html#a13754529 Sent from the jQuery General Discussion mailing list archive at Nabble.com.
[jQuery] Re: gradient plugin - wont work on td's?
anyone have an idea on this? bdee1 wrote: > > i am trying to programatically add gradients to table header cells and i > came across the gradient plugin > (http://jquery.com/plugins/project/gradient). it seems that this plugin > works well for creatign gradients in divs but when i try and apply it to a > td, it seems to work in ie but in firefox, it puts the gradient at the top > of the page rather than in the td. > > can anyone think of a possible workaround for this? > -- View this message in context: http://www.nabble.com/gradient-plugin---wont-work-on-td%27s--tf4805944s27240.html#a13753105 Sent from the jQuery General Discussion mailing list archive at Nabble.com.
[jQuery] gradient plugin - wont work on td's?
i am trying to programatically add gradients to table header cells and i came across the gradient plugin (http://jquery.com/plugins/project/gradient). it seems that this plugin works well for creatign gradients in divs but when i try and apply it to a td, it seems to work in ie but in firefox, it puts the gradient at the top of the page rather than in the td. can anyone think of a possible workaround for this? -- View this message in context: http://www.nabble.com/gradient-plugin---wont-work-on-td%27s--tf4805944s27240.html#a13749147 Sent from the jQuery General Discussion mailing list archive at Nabble.com.
[jQuery] Re: textarea maxlength plugin
that did the trick - thanks! spinnach wrote: > > > this could be related to the issue i was having with maxlength, try > changing the source code to $("[EMAIL PROTECTED]") (with a capitol > L), and this.getAttribute('maxLength') .. > > dennis. > > bdee1 wrote: >> >> i have not tried it with an older version of jquery yet but i tried using >> IE7 >> and the latest version of firefox. the demo page on your site does work >> in >> both browsers but when i uploaded the example page to my site it did not >> work on textareas. >> >> >> Burobjorn wrote: >>> >>> Thats strange, could you try to use it with the older included jQuery >>> version? Do you get an error? Which browser are you using? Does it work >>> in the demo? >>> >>> grtz >>> BjornW >>> >>> >>> >>>> thanks - thats exactly what i had in mind - downloaded it and tried it >>>> and it >>>> works well for text fields but for soem reason it does nto work on >>>> textareas. any ideas? i am using jquery 1.1.3.1 >>>> >>>> >>>> >>>> Burobjorn wrote: >>>>> Yes, I have created such a plugin. Its still in alpha, but do check it >>>>> out: >>>>> >>>>> http://www.burobjorn.nl/code/textlimiter/ >>>>> >>>>> All the best, >>>>> >>>>> grtz >>>>> BjornW >>>>> >>>>> >>>>> bdee1 wrote: >>>>>> does anyone know of a jquery plugin that would allow me to set a >>>>>> maxlength >>>>>> attribute on a textarea? >>>>> >>> >>> >> > > > -- View this message in context: http://www.nabble.com/textarea-maxlength-plugin-tf4193495s15494.html#a11952023 Sent from the JQuery mailing list archive at Nabble.com.
[jQuery] Re: textarea maxlength plugin
i have not tried it with an older version of jquery yet but i tried using IE7 and the latest version of firefox. the demo page on your site does work in both browsers but when i uploaded the example page to my site it did not work on textareas. Burobjorn wrote: > > > Thats strange, could you try to use it with the older included jQuery > version? Do you get an error? Which browser are you using? Does it work > in the demo? > > grtz > BjornW > > > >> >> thanks - thats exactly what i had in mind - downloaded it and tried it >> and it >> works well for text fields but for soem reason it does nto work on >> textareas. any ideas? i am using jquery 1.1.3.1 >> >> >> >> Burobjorn wrote: >>> >>> Yes, I have created such a plugin. Its still in alpha, but do check it >>> out: >>> >>> http://www.burobjorn.nl/code/textlimiter/ >>> >>> All the best, >>> >>> grtz >>> BjornW >>> >>> >>> bdee1 wrote: >>>> does anyone know of a jquery plugin that would allow me to set a >>>> maxlength >>>> attribute on a textarea? >>> >>> >> > > > -- View this message in context: http://www.nabble.com/textarea-maxlength-plugin-tf4193495s15494.html#a11949076 Sent from the JQuery mailing list archive at Nabble.com.
[jQuery] Re: textarea maxlength plugin
thanks - thats exactly what i had in mind - downloaded it and tried it and it works well for text fields but for soem reason it does nto work on textareas. any ideas? i am using jquery 1.1.3.1 Burobjorn wrote: > > > Yes, I have created such a plugin. Its still in alpha, but do check it > out: > > http://www.burobjorn.nl/code/textlimiter/ > > All the best, > > grtz > BjornW > > > bdee1 wrote: >> >> does anyone know of a jquery plugin that would allow me to set a >> maxlength >> attribute on a textarea? > > > -- View this message in context: http://www.nabble.com/textarea-maxlength-plugin-tf4193495s15494.html#a11937671 Sent from the JQuery mailing list archive at Nabble.com.
[jQuery] textarea maxlength plugin
does anyone know of a jquery plugin that would allow me to set a maxlength attribute on a textarea? -- View this message in context: http://www.nabble.com/textarea-maxlength-plugin-tf4193495s15494.html#a11925609 Sent from the JQuery mailing list archive at Nabble.com.
[jQuery] Re: changing the value of a global variable inside an post callback function?
does anyone have any other suggestions on this? bdee1 wrote: > > thanks for getting back to me. > > problem is that i am not sure if i can do all the processing i need in > the callback function. because on my form i have > onsubmit="javascript:return validateForm(this)" so it calls my > validateForm function and if the validateform function returns true, the > form submits, otherwise it the form does not submit. > > my validateForm function contains something like this for each check: > if (!comparePasswords(form.password.value, form.confirmPassword.value)) > { > errorsfound += 1; > } > > > so each check calls a function to actually check a field. if that > function returns false, then i increment te errrsfound variable. > > then at the end of my validateForm function, if the value of errorsfound > is greater than 0, i return false from the validateForm function which > prevents the form from being submitted. > > so although i could use the post callback function in my checkEmailDups > function to display the necessar errors on the page (in the case of an > email duplicate being found), ho woudl i prevent the form from being > sumbitted if that was the only error on the page? > > > Rob Desbois-2 wrote: >> >> I've just spotted it after debugging it in Firebug. >> >> Anything which requires having a response for it to execute correctly, >> must >> be in the response-handling function. >> This is behaving exactly as required - the request is asynchronous, and >> you >> cannot guarantee that it will execute after the code that comes after it. >> >> The checkEmailDups() function cannot tell you the value without having to >> wait block execution until the response is received. Far better would be >> to >> send the check, and handle both cases within the callback function >> instead. >> This will also allow you to remove the (horrible) global variable. >> >> function checkEmailDups(myemail) { >>$.post("checkemail.cfm", { email: myemail }, function(data) { >> if ($.trim(data) === "available") { >> // allow whatever action is being performed >> } >> else if ($.trim(data) == "taken") { >> alert("That email address is taken"); >> } >>}); >> } >> >> --rob >> >> On 7/19/07, bdee1 <[EMAIL PROTECTED]> wrote: >>> >>> >>> >>> ok i may have figured out why this is happening. >>> i put replaces alert(dupsfound) with setTimeout('alert(dupsfound)',3000) >>> so >>> that the script waited 3 seconds before displaying the alert and then it >>> displayed the correct value >>> >>> so the key is that it IS settign the value properly but it just takes a >>> minute for the post to complete. >>> >>> so the next question is, how do i prevent the rest of the function >>> from >>> running until the post is finished? >>> >>> >>> >>> Rob Desbois-2 wrote: >>> > >>> > That should work if errorsFound is global - can you provide your code >>> or >>> > give us a link to look at? >>> > --rob >>> > >>> > On 7/19/07, bdee1 <[EMAIL PROTECTED]> wrote: >>> >> >>> >> >>> >> >>> >> i am building a function to validate a registration form for my site. >>> >> one >>> >> of >>> >> the things i need to validate is that the email address entered into >>> the >>> >> form does not already exist in the database. >>> >> >>> >> in my formValidate function i perform several tests. if a test fails >>> i >>> >> increment a errorsFound variable. at the end of my function if >>> >> errorsFound >>> >> is greater than 0, i do not submit the form. >>> >> >>> >> the test for my email field does a $.post to a checkEmail - a page >>> that >>> >> checks the database for duplicate email addresses. then my callback >>> >> function looks st the results of the post - if duplicates were found, >>> i >>> >> increment my errorsFound variable. >>> >> >>> >> problem is that from within my $.post callback function i cannot seem >>> to >>> >> access my errorsFound variable. >>> >> >>> >> how can i get my post callback f
[jQuery] Re: changing the value of a global variable inside an post callback function?
thanks for getting back to me. problem is that i am not sure if i can do all the processing i need in the callback function. because on my form i have onsubmit="javascript:return validateForm(this)" so it calls my validateForm function and if the validateform function returns true, the form submits, otherwise it the form does not submit. my validateForm function contains something like this for each check: if (!comparePasswords(form.password.value, form.confirmPassword.value)) { errorsfound += 1; } so each check calls a function to actually check a field. if that function returns false, then i increment te errrsfound variable. then at the end of my validateForm function, if the value of errorsfound is greater than 0, i return false from the validateForm function which prevents the form from being submitted. so although i could use the post callback function in my checkEmailDups function to display the necessar errors on the page (in the case of an email duplicate being found), ho woudl i prevent the form from being sumbitted if that was the only error on the page? Rob Desbois-2 wrote: > > I've just spotted it after debugging it in Firebug. > > Anything which requires having a response for it to execute correctly, > must > be in the response-handling function. > This is behaving exactly as required - the request is asynchronous, and > you > cannot guarantee that it will execute after the code that comes after it. > > The checkEmailDups() function cannot tell you the value without having to > wait block execution until the response is received. Far better would be > to > send the check, and handle both cases within the callback function > instead. > This will also allow you to remove the (horrible) global variable. > > function checkEmailDups(myemail) { >$.post("checkemail.cfm", { email: myemail }, function(data) { > if ($.trim(data) === "available") { > // allow whatever action is being performed > } > else if ($.trim(data) == "taken") { > alert("That email address is taken"); > } >}); > } > > --rob > > On 7/19/07, bdee1 <[EMAIL PROTECTED]> wrote: >> >> >> >> ok i may have figured out why this is happening. >> i put replaces alert(dupsfound) with setTimeout('alert(dupsfound)',3000) >> so >> that the script waited 3 seconds before displaying the alert and then it >> displayed the correct value >> >> so the key is that it IS settign the value properly but it just takes a >> minute for the post to complete. >> >> so the next question is, how do i prevent the rest of the function >> from >> running until the post is finished? >> >> >> >> Rob Desbois-2 wrote: >> > >> > That should work if errorsFound is global - can you provide your code >> or >> > give us a link to look at? >> > --rob >> > >> > On 7/19/07, bdee1 <[EMAIL PROTECTED]> wrote: >> >> >> >> >> >> >> >> i am building a function to validate a registration form for my site. >> >> one >> >> of >> >> the things i need to validate is that the email address entered into >> the >> >> form does not already exist in the database. >> >> >> >> in my formValidate function i perform several tests. if a test fails >> i >> >> increment a errorsFound variable. at the end of my function if >> >> errorsFound >> >> is greater than 0, i do not submit the form. >> >> >> >> the test for my email field does a $.post to a checkEmail - a page >> that >> >> checks the database for duplicate email addresses. then my callback >> >> function looks st the results of the post - if duplicates were found, >> i >> >> increment my errorsFound variable. >> >> >> >> problem is that from within my $.post callback function i cannot seem >> to >> >> access my errorsFound variable. >> >> >> >> how can i get my post callback function to increment my errorsFound >> >> variable? >> >> -- >> >> View this message in context: >> >> >> http://www.nabble.com/changing-the-value-of-a-global-variable-inside-an-post-callback-function--tf4111860s15494.html#a11691585 >> >> Sent from the JQuery mailing list archive at Nabble.com. >> >> >> >> >> > >> > >> > -- >> > Rob Desbois >> > Eml: [EMAIL PROTECTED] >> > Tel: 01452 760631 >> &
[jQuery] Re: changing the value of a global variable inside an post callback function?
ok i may have figured out why this is happening. i put replaces alert(dupsfound) with setTimeout('alert(dupsfound)',3000) so that the script waited 3 seconds before displaying the alert and then it displayed the correct value so the key is that it IS settign the value properly but it just takes a minute for the post to complete. so the next question is, how do i prevent the rest of the function from running until the post is finished? Rob Desbois-2 wrote: > > That should work if errorsFound is global - can you provide your code or > give us a link to look at? > --rob > > On 7/19/07, bdee1 <[EMAIL PROTECTED]> wrote: >> >> >> >> i am building a function to validate a registration form for my site. >> one >> of >> the things i need to validate is that the email address entered into the >> form does not already exist in the database. >> >> in my formValidate function i perform several tests. if a test fails i >> increment a errorsFound variable. at the end of my function if >> errorsFound >> is greater than 0, i do not submit the form. >> >> the test for my email field does a $.post to a checkEmail - a page that >> checks the database for duplicate email addresses. then my callback >> function looks st the results of the post - if duplicates were found, i >> increment my errorsFound variable. >> >> problem is that from within my $.post callback function i cannot seem to >> access my errorsFound variable. >> >> how can i get my post callback function to increment my errorsFound >> variable? >> -- >> View this message in context: >> http://www.nabble.com/changing-the-value-of-a-global-variable-inside-an-post-callback-function--tf4111860s15494.html#a11691585 >> Sent from the JQuery mailing list archive at Nabble.com. >> >> > > > -- > Rob Desbois > Eml: [EMAIL PROTECTED] > Tel: 01452 760631 > Mob: 07946 705987 > "There's a whale there's a whale there's a whale fish" he cried, and the > whale was in full view. > ...Then ooh welcome. Ahhh. Ooh mug welcome. > > -- View this message in context: http://www.nabble.com/changing-the-value-of-a-global-variable-inside-an-post-callback-function--tf4111860s15494.html#a11693506 Sent from the JQuery mailing list archive at Nabble.com.
[jQuery] Re: changing the value of a global variable inside an post callback function?
ok so i have posted my code below. it is a basic function that takes the form as an argument. then it does a post to check if the email already exists in the database. then hits a callback function that sets the value of the global var dupsfound to either true or false. then after the post it returns true or false depending on the value of dupsfound. problem is that when it gets to the alert(dupsfound) line, the alert spits out the default value of dupsfound. so it does not seem to be setting the value of dupsfound. var dupsfound="none"; function checkEmailDups(myemail) { $.post("checkemail.cfm", { email: myemail }, function(data){ if ($.trim(data) == "available") { dupsfound=false; } else if ($.trim(data) == "taken") { dupsfound=true; } }); alert(dupsfound); return false; if (dupsfound == true) { return true; } else if (dupsfound == false) { return false; } } Rob Desbois-2 wrote: > > That should work if errorsFound is global - can you provide your code or > give us a link to look at? > --rob > > On 7/19/07, bdee1 <[EMAIL PROTECTED]> wrote: >> >> >> >> i am building a function to validate a registration form for my site. >> one >> of >> the things i need to validate is that the email address entered into the >> form does not already exist in the database. >> >> in my formValidate function i perform several tests. if a test fails i >> increment a errorsFound variable. at the end of my function if >> errorsFound >> is greater than 0, i do not submit the form. >> >> the test for my email field does a $.post to a checkEmail - a page that >> checks the database for duplicate email addresses. then my callback >> function looks st the results of the post - if duplicates were found, i >> increment my errorsFound variable. >> >> problem is that from within my $.post callback function i cannot seem to >> access my errorsFound variable. >> >> how can i get my post callback function to increment my errorsFound >> variable? >> -- >> View this message in context: >> http://www.nabble.com/changing-the-value-of-a-global-variable-inside-an-post-callback-function--tf4111860s15494.html#a11691585 >> Sent from the JQuery mailing list archive at Nabble.com. >> >> > > > -- > Rob Desbois > Eml: [EMAIL PROTECTED] > Tel: 01452 760631 > Mob: 07946 705987 > "There's a whale there's a whale there's a whale fish" he cried, and the > whale was in full view. > ...Then ooh welcome. Ahhh. Ooh mug welcome. > > -- View this message in context: http://www.nabble.com/changing-the-value-of-a-global-variable-inside-an-post-callback-function--tf4111860s15494.html#a11693479 Sent from the JQuery mailing list archive at Nabble.com.
[jQuery] changing the value of a global variable inside an post callback function?
i am building a function to validate a registration form for my site. one of the things i need to validate is that the email address entered into the form does not already exist in the database. in my formValidate function i perform several tests. if a test fails i increment a errorsFound variable. at the end of my function if errorsFound is greater than 0, i do not submit the form. the test for my email field does a $.post to a checkEmail - a page that checks the database for duplicate email addresses. then my callback function looks st the results of the post - if duplicates were found, i increment my errorsFound variable. problem is that from within my $.post callback function i cannot seem to access my errorsFound variable. how can i get my post callback function to increment my errorsFound variable? -- View this message in context: http://www.nabble.com/changing-the-value-of-a-global-variable-inside-an-post-callback-function--tf4111860s15494.html#a11691585 Sent from the JQuery mailing list archive at Nabble.com.
[jQuery] Re: BlockUI question
yes it basically boils down to clicking a link to get a pdf. but on this page, the user is presented with a list of word documents that are stored as binary data in a database. the user chooses the word documents they want and then when they click the link, their selected word files are converted to pdf and then appended into the same PDF file. so if they choose one or 2 items it doesnt take very long but if they choose 30-40 items it takes a while and therefore I need the UI blocked with a "Please Wait" message. with that said - we do not use AJAX for this, we just use a standard navigation link. for now what i did is include a "cancel" link in the blockUI message which uses javascript to refresh the page and therefore unblock the UI, but it would be much nicer if the UI could just unblock when the UI automatically when the PDF file is generated. On May 23, 3:59 pm, "Mike Alsup" <[EMAIL PROTECTED]> wrote: > I'm not sure I followed all that. Does this boil down to clicking a > link to get a PDF? If so, that seems like an odd case for blocking > the UI. Is the request made using ajax or normal link navigation? > > Mike > > > > > I am using the BlockUI plugin on one of may pages. it works well for > > blocking the UI, but i am having trouble gettign it to unblock the UI. > > > on this page, i click a hyperlink which calls a page that generates a > > PDF file. this page calls another page which sends the PDF file to > > the browser so they get the "do you want to open or save the PDF" > > dialog. > > > the problem is that i dont knwo where i am supposed to put the > > $.unblockUI; so that the page will unblock when the PDF is spit back > > to the browser.- Hide quoted text - > > - Show quoted text -
[jQuery] BlockUI question
I am using the BlockUI plugin on one of may pages. it works well for blocking the UI, but i am having trouble gettign it to unblock the UI. on this page, i click a hyperlink which calls a page that generates a PDF file. this page calls another page which sends the PDF file to the browser so they get the "do you want to open or save the PDF" dialog. the problem is that i dont knwo where i am supposed to put the $.unblockUI; so that the page will unblock when the PDF is spit back to the browser. any ideas? unfortunately the page is on a corporate intranet so i cant link you to it.
[jQuery] Re: cant get autocomplete to work
can anyone help On Apr 26, 2:19 pm, bdee1 <[EMAIL PROTECTED]> wrote: > i have been tryign for a while to get autocomplete to work on a page > of my internal website with no success. i have used it before on > other sites but for some reason i can't get it to work here: > > i know that the autoComplete_PhoneList.cfm and > autoComplete_docsearch.cfm files return valid xml data. > > below is my code - can anyone help?? > > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";> > http://www.w3.org/1999/xhtml";> > > > Sunnyview Rehabilitation Hospital Intranet > > > > > > > > > > <!-- > function randomImage () > { > var imagenumber = 8 ; > var randomnumber = Math.random() ; > var rand1 = Math.round( (imagenumber-1) * randomnumber) + 1 ; > images = new Array; > images[1] = "../pix/main_pic.gif"; > images[2] = "../pix/main_pic2.gif"; > images[3] = "../pix/main_pic3.gif"; > images[4] = "../pix/main_pic4.gif"; > images[5] = "../pix/main_pic5.gif"; > images[6] = "../pix/main_pic6.gif"; > images[7] = "../pix/main_pic7.gif"; > images[8] = "../pix/main_pic8.gif"; > var image = images[rand1]; > var imagetag ="<img src=\""+image+"\" alt=\"Picture of Sunnyview > Employees and Patients\" style=\"float:left;\" />"; > document.write(imagetag); > } > //--> > > > > //whenthe DOM is ready (page is loaded) > $(document).ready(function() { > //autocomplete for Document Search on index.cfm > $('#autocomplete1').Autocomplete( > { > source: 'autocomplete_docSearch.cfm', > delay: 50, > fx: { > type: 'slide', > duration: 100 > }, > autofill: false, > helperClass: 'autocompleter', > selectClass: 'selectAutocompleter', > minchars: 1 > } > ); > > // Autocomplete for Phone List Search > $('#autocompletePhone').Autocomplete( > { > source: 'autocomplete_PhoneList.cfm', > delay: 50, > fx: { > type: 'slide', > duration: 100 > }, > autofill: false, > helperClass: 'autocompleter', > selectClass: 'selectAutocompleter', > minchars: 1 > } > ); > > }); > > > > > > > .autocompleter > { > border: 1px solid #6FBEFF; > width: 250px; > background-color: #EFF8FF;} > > .autocompleter ul li > { > padding: 2px 10px; > white-space: nowrap; > font-size: 11px;} > > .selectAutocompleter > { > background-color: #6FBEFF;} > > > > > > > > > > name="SearchTerms" size="30" > maxlength="255" value="" style="border: 1px solid #185693; font- > family:Arial, Helvetica, sans-serif; font-size:12px; height:17px; > color:#006699;" /> > value="Search Documents" > style="border: 1px solid #185693; font-family:Arial, Helvetica, sans- > serif; font-size:11px; background-color:#dce9f5; color:#006699;" /> > > > > > > http://sunweb";>Home > http://sunweb/calendar";>Reserve > Projector > Lunch Menu > href="http://sunweb/forums/viewforum.php?f=36";>Suggestion > Box > > Education > > > > > > > > > > > > > > > Last Name > First Name > > > > > > > Sort by Department a> Print This List a> http://sunweb/ > index.cfm?page=pagerlist">Pager List > > > > > > > > > href="./index.cfm?page=departments">Departments > href="http://sunweb/helpdesk";>Helpdesk > href="./index.cfm?page=directory&q
[jQuery] cant get autocomplete to work
i have been tryign for a while to get autocomplete to work on a page of my internal website with no success. i have used it before on other sites but for some reason i can't get it to work here: i know that the autoComplete_PhoneList.cfm and autoComplete_docsearch.cfm files return valid xml data. below is my code - can anyone help?? http://www.w3.org/1999/xhtml";> Sunnyview Rehabilitation Hospital Intranet //whenthe DOM is ready (page is loaded) $(document).ready(function() { //autocomplete for Document Search on index.cfm $('#autocomplete1').Autocomplete( { source: 'autocomplete_docSearch.cfm', delay: 50, fx: { type: 'slide', duration: 100 }, autofill: false, helperClass: 'autocompleter', selectClass: 'selectAutocompleter', minchars: 1 } ); // Autocomplete for Phone List Search $('#autocompletePhone').Autocomplete( { source: 'autocomplete_PhoneList.cfm', delay: 50, fx: { type: 'slide', duration: 100 }, autofill: false, helperClass: 'autocompleter', selectClass: 'selectAutocompleter', minchars: 1 } ); }); .autocompleter { border: 1px solid #6FBEFF; width: 250px; background-color: #EFF8FF; } .autocompleter ul li { padding: 2px 10px; white-space: nowrap; font-size: 11px; } .selectAutocompleter { background-color: #6FBEFF; } http://sunweb";>Home http://sunweb/calendar";>Reserve Projector Lunch Menu http://sunweb/forums/viewforum.php?f=36";>Suggestion Box Education Last Name First Name Sort by Department Print This List http://sunweb/ index.cfm?page=pagerlist">Pager List Departments http://sunweb/helpdesk";>Helpdesk Phone List What's New Contact Search Intranet Tools System Alerts http://sunweb/backend/docs/Tobacco%20Free%20Environment %20Campaign/Website%20Article%20-%20Tobacco-free.doc"> http://sunweb/backend/docs/Tobacco%20Free%20Environment %20Campaign/Website%20Article%20-%20Tobacco-free.doc">Tobacco Free InitiativeClick for More Information http://www.google.com/custom";> http://www.google.com/search";> http://sunweb;AWFID:a2c3369fb180cb19;"; /> Reserve Projector | Lunch Menu | http://sunweb/ suggestions">Suggestion Box | Departments | Helpdesk | http://sunweb/forums/viewforum.php? f=13">HospitalTalk What's New | Directory | Privacy Notice | Contact