[jQuery] Re: Cycle: replace slide in running slideshow?
Mike, Thanks for this. I did find a solution by setting a flag for the first time through the cycle since there were other things too I wanted to happen only on the first time through. After the #title element is shown, I simply replaced its html with a different image and content. A stripped down version looks something like this: jQuery(document).ready(function($){ var firstTime = true; $('#cycle').cycle({ fx:'fade', speed:1500, timeout:7000, delay: 5000, before: doBefore }); function doBefore() { if (firstTime == true){ var i = $(".slide").index(this); if (i == 1){ $("#title").html("" + "class='caption'>foobar"); firstTime = false; }; }; }; }); This seems to work. I gather setting such a global variable is regarded as bad form, but in such a small application it seemed harmless. Your solution seems to avoids this. Thanks again, and thanks too for your generosity in developing this very generally useful plugin. Jon On Sun, 30 Aug 2009, Mike Alsup wrote: Is there a way to replace the first slide in a running slideshow such that it's shown only once?? Here's an example of something similar - might give you some ideas: http://www.malsup.com/jquery/cycle/title.html
[jQuery] Re: Replacing like items
you can add an id to your checkbox in order to get much easier reference to element clicked. Let's say you have id = widget1||123456, widget2||123456 etc then $('input[type=checkbox][id$=123456]')'.click(function(){ $('input[type=checkbox][id$=123456]')'.not($(this)) will give you all other check box // for more generic id yu can get the lase digit of the id and select all others as well var id = $(this).attr('id'); // get the last part with split function var chkid() = id.split('||'); now you get all other check box with $('input[type=checkbox][id$=' + chkid[1] + ']')'.not($(this)) }); On Aug 30, 12:44 pm, "Steffan A. Cline" wrote: > I have a form of data I am working on where I may have *nearly* the same > thing appear with a checkbox appear multiple times. > > For example: > > > > > > > > So, if checkbox #1 (widget1) is checked, it will either disable all other > ones containing the sku 123456 OR replace the others in the form having sku > 123456 with an image of a sort. > > Is there a way to select this without iterating through every checkbox in > the form and looking at it's value? > > Thanks > > Steffan > > --- > T E L 6 0 2 . 7 9 3 . 0 0 1 4 | F A X 6 0 2 . 9 7 1 . 1 6 9 4 > Steffan A. Cline > stef...@execuchoice.net Phoenix, > Azhttp://www.ExecuChoice.net USA > AIM : SteffanC ICQ : 57234309 > YAHOO : Steffan_Cline MSN : stef...@hldns.com > GOOGLE: Steffan.Cline Lasso Partner Alliance Member > ---
[jQuery] Re: "Too much recursion"
Hello, Thank you both. AmitTheKumar solution works fine. Cheers On Aug 29, 11:26 pm, AmitTheKumar wrote: > I think you should try just passing the function name as the second > parameter, instead of adding () after it. () will cause the function > to execute right away. So: > > function visibleFadeIn() > { > jQuery('#visible').fadeIn(2000, visibleFadeOut); > > } > > function visibleFadeOut() > { > jQuery('#visible').fadeOut(2000, visibleFadeIn); > > } > > // Starts the loop > visibleFadeIn(); > > On Aug 27, 11:16 pm, FCCS wrote: > > > Hello, > > > I'm trying to build a simple "fadeIn" - "fadeOut" loop on a div, but I > > get an infinite recursion the way I do it : > > > // + Code > > function visibleFadeIn() > > { > > jQuery('#visible').fadeIn(2000, visibleFadeOut()); > > > } > > > function visibleFadeOut() > > { > > jQuery('#visible').fadeOut(2000, visibleFadeIn()); > > > } > > > // Starts the loop > > visibleFadeIn(); > > // - Code > > > There must be another way to deal with this, does someone have a > > suggestion ? > > > Thank you very much, > > FCCS
[jQuery] Re: Newbie with jQuery
I am sure that you can design better way than 10 separate call, but anyway with your case you can at least group all call event like $('img[id^=img_]').click(function(){ // here you have all img with id starting with img_ click // then you can get the id of caller var id =$(this).attr('id'); // get the number var number() = id.splist('_'); // number[1] will give 1, 2 etc of img_1 etc. //now call your dialog $('#dialog_' + number[1]).dialog('close'); }); On Aug 30, 8:20 am, Reynier Pérez Mira wrote: > Hi every: > I'm starting with jQuery and I have a lot of doubts. I'm reading the > following books: > - jQuery Reference Guide (Jonathan Chaffer, Karl Swedberg) > - Learning jQuery 1.3 (Jonathan Chaffer, Karl Swedberg) > - jQuery UI 1.6 (Dan Wellman) > But as I said before I have a lot of doubts. Here goes the first. > > I'm trying to use the Dialog component from jQuery UI to show some modal > dialogs in my web app. For just one dialog I haven't problems because I > do this: > > In my HTML: > alt="Show info about: Dir name field" src="/images/information.png" /> > > The director name used by the system administrator. This > directive is required. > > And the JS code: > $('#dialog_1').dialog({ > autoOpen: false, > width: 600, > modal: 'true', > resizable: false, > draggable: false, > buttons: { > "Aceptar": function() { > $(this).dialog("close"); > } > } > > }); > > $('#img_1').click(function(){ > $('#dialog_1').dialog('open'); > return false; > > }); > > Now suppose that I have 10 different images: img_1, img_2, ..., img_10 > and for each of them I want associated a different dialog: dialog_1, > dialog_2, ..., dialog_10. I generate the IDs dinamically with PHP this > is not the problem, the problem is how to associated each image to the > correspondent dialog. I mean for example img_1 => dialog_1 and so on and > then when I click the ID=img_1 then the dialog_1 will be show and so on. > ¿Could any body help me with the jQuery code? > > Cheers and thanks in advance > -- > Ing. Reynier Pérez Mira
[jQuery] Re: JqModal / simpleModal - maintaining form state
With SimpleModal, you can use the persist option: $(el).modal({persist:true}); There are some known issues in IE though.[1] -Eric [1]: http://www.ericmmartin.com/projects/simplemodal_v12/#othernotes [under Known Issues] On Aug 30, 12:48 pm, "Steffan A. Cline" wrote: > I have tried both of these modal solutions, beautiful by the way, and found > a small problem with both of them and am wondering if there is a work > around. > > I have a form where there are a bunch of check boxes that I have enclosed in > a div that I am using for my popup modal. Now the thing is that while the > modal is up and I check a bunch of boxes and then close the modal, reopen > again, all checkboxes have been reset rather than retaining their state. Is > there a way to circumvent this behavior? > > So, if I click checkbox #1 and close the modal and then reopen the modal, > checkbox #1 is no longer checked. I need it to maintain it's state. > > Any suggestions? > > Thanks > > Steffan > > --- > T E L 6 0 2 . 7 9 3 . 0 0 1 4 | F A X 6 0 2 . 9 7 1 . 1 6 9 4 > Steffan A. Cline > stef...@execuchoice.net Phoenix, > Azhttp://www.ExecuChoice.net USA > AIM : SteffanC ICQ : 57234309 > YAHOO : Steffan_Cline MSN : stef...@hldns.com > GOOGLE: Steffan.Cline Lasso Partner Alliance Member > ---
[jQuery] Re: Append data using Slide In animation
try this $(data).appendTo("#chat_box").show(); On Aug 31, 3:14 am, Namir wrote: > Well I want to append some data to a div called chat_box but I want it > to slide in from the bottom as it appears, the code Im currently using > to attempt to reach this is > success: function(data){ > $('#chat_box').append(data.show("slide", {direction: "down"}, > "1000")); > }, > but this doesnt append the data at all. > > I've also tried this > success: function(data){ > $('#chat_box').append(data).show("slide", {direction: "down"}, > "1000"); > }, > but this just adds the effect to the whole div instead of just the > append data. > > For the whole code visitwww.forsakenrealms.co.cc/chat/?user=1
[jQuery] Re: Settimeout on Function
Hi, I tried this but it didn't work. It resulted in the class not being removed at all. You can see here: http://www.toomanydesigns.com/test/noflash/ On Aug 30, 11:20 am, KeeganWatkins wrote: > The basic syntax for delaying a function using setTimeout is this: > > setTimeout(function() { > // ...code here executes when the timeout is complete > > }, 2000 /* Length of timeout, in milliseconds */); > > so for your example, something like this should work: > > $(document).ready(function(){ > > $("#barcode span").hover( > function () { > $(this).addClass("barover"); > }, > function () { > setTimeout(function() { > $(this).removeClass("barover"); > }, 2000); > } > ); > }); > > On Aug 30, 9:49 am, a1anm wrote: > > > Hi, > > > I have this code: > > > $(document).ready(function(){ > > > $("#barcode span").hover( > > function () { > > $(this).addClass("barover"); > > }, > > function () { > > $(this).removeClass("barover"); > > } > > ); > > }); > > > I would like to add a timeout so that the removeClass gets delayed for > > a specified amount of time. Any ideas how to add a settimeout to > > this? > > > Thanks! > >
[jQuery] Re: Dissect an ID
Hi, thanks for the reply. I love learning new things but this is kind of complicated... I wrote this from what i looked up: var theid=new RegExp('\d+$'); var isthere = theid.exec("ww_1"); console.log(isthere); But all i get is null, any help? thanks again, Phil On Aug 31, 12:06 am, Jorge Godoy wrote: > I'd math the regex "\d+$", i.e., I'd get numbers at the end of the value. > > Then you could operate on the matched value. > > -- > Jorge Godoy > > On Sun, Aug 30, 2009 at 19:29, Phil wrote: > > > In jQuery how do I remove a certain part of an id... > > > for example i have a div id='thisisadiv_1' > > I want to remove the 'thisisadiv_' part > > This is so I can add/subtract 1 to switch divs. > > > Thanks in Advance. > > Phil.
[jQuery] Re: Dissect an ID
Thanks for the replys but i have solved it now: var number = ("ww_1").match(/\d/g); On Aug 31, 12:32 am, Charlie Griefer wrote: > There may be a more elegant way, but until it comes along... > > you can .split() the string on the _ character. > > myArray = myString.split('_') > > which in your case would create an array with element 'thisisadiv' at > position 0, and '1' at position 1. > > you could then reference it via myArray[1] > > On Sun, Aug 30, 2009 at 3:29 PM, Phil wrote: > > > In jQuery how do I remove a certain part of an id... > > > for example i have a div id='thisisadiv_1' > > I want to remove the 'thisisadiv_' part > > This is so I can add/subtract 1 to switch divs. > > > Thanks in Advance. > > Phil. > > -- > I have failed as much as I have succeeded. But I love my life. I love my > wife. And I wish you my kind of success.
[jQuery] Re: Dissect an ID
There may be a more elegant way, but until it comes along... you can .split() the string on the _ character. myArray = myString.split('_') which in your case would create an array with element 'thisisadiv' at position 0, and '1' at position 1. you could then reference it via myArray[1] On Sun, Aug 30, 2009 at 3:29 PM, Phil wrote: > > In jQuery how do I remove a certain part of an id... > > for example i have a div id='thisisadiv_1' > I want to remove the 'thisisadiv_' part > This is so I can add/subtract 1 to switch divs. > > Thanks in Advance. > Phil. -- I have failed as much as I have succeeded. But I love my life. I love my wife. And I wish you my kind of success.
[jQuery] Re: Dissect an ID
I'd math the regex "\d+$", i.e., I'd get numbers at the end of the value. Then you could operate on the matched value. -- Jorge Godoy On Sun, Aug 30, 2009 at 19:29, Phil wrote: > > In jQuery how do I remove a certain part of an id... > > for example i have a div id='thisisadiv_1' > I want to remove the 'thisisadiv_' part > This is so I can add/subtract 1 to switch divs. > > Thanks in Advance. > Phil.
[jQuery] Re: Move a div to another div
hi again ! i'va managed to do it by using "animate" (and "'position' : 'relative', 'left' : 60") Bye !
[jQuery] Dissect an ID
In jQuery how do I remove a certain part of an id... for example i have a div id='thisisadiv_1' I want to remove the 'thisisadiv_' part This is so I can add/subtract 1 to switch divs. Thanks in Advance. Phil.
[jQuery] Re: Cycle: replace slide in running slideshow?
> Is there a way to replace the first slide in a running slideshow such > that it's shown only once?? Here's an example of something similar - might give you some ideas: http://www.malsup.com/jquery/cycle/title.html
[jQuery] Append data using Slide In animation
Well I want to append some data to a div called chat_box but I want it to slide in from the bottom as it appears, the code Im currently using to attempt to reach this is success: function(data){ $('#chat_box').append(data.show("slide", {direction: "down"}, "1000")); }, but this doesnt append the data at all. I've also tried this success: function(data){ $('#chat_box').append(data).show("slide", {direction: "down"}, "1000"); }, but this just adds the effect to the whole div instead of just the append data. For the whole code visit www.forsakenrealms.co.cc/chat/?user=1
[jQuery] Newbie with jQuery
Hi every: I'm starting with jQuery and I have a lot of doubts. I'm reading the following books: - jQuery Reference Guide (Jonathan Chaffer, Karl Swedberg) - Learning jQuery 1.3 (Jonathan Chaffer, Karl Swedberg) - jQuery UI 1.6 (Dan Wellman) But as I said before I have a lot of doubts. Here goes the first. I'm trying to use the Dialog component from jQuery UI to show some modal dialogs in my web app. For just one dialog I haven't problems because I do this: In my HTML: The director name used by the system administrator. This directive is required. And the JS code: $('#dialog_1').dialog({ autoOpen: false, width: 600, modal: 'true', resizable: false, draggable: false, buttons: { "Aceptar": function() { $(this).dialog("close"); } } }); $('#img_1').click(function(){ $('#dialog_1').dialog('open'); return false; }); Now suppose that I have 10 different images: img_1, img_2, ..., img_10 and for each of them I want associated a different dialog: dialog_1, dialog_2, ..., dialog_10. I generate the IDs dinamically with PHP this is not the problem, the problem is how to associated each image to the correspondent dialog. I mean for example img_1 => dialog_1 and so on and then when I click the ID=img_1 then the dialog_1 will be show and so on. ¿Could any body help me with the jQuery code? Cheers and thanks in advance -- Ing. Reynier Pérez Mira
[jQuery] http://plugins.jquery.com is down
The plugins website is down: http://downforeveryoneorjustme.com/http://plugins.jquery.com/ and I'm not sure who to contact
[jQuery] Re: Facebook Connect & jQuery
Do you use the ruby gem facebooker? It's using prototype as it's default JavaScript framework. Call it this way to use jquery instead: <%= init_fb_connect('XFBML', :js => :jquery) %> hope this helps On Sunday, August 30, 2009, Avishai wrote: > > Hi, > > I've been trying to implement Facebook Connect on my site, which uses > jQuery pretty extensively. However, the minute I insert the FB connect > code into my page, I get this error: > > Element.observe is not a function > new()new (line 32) > Element.observe(window,'load', function() {\n > > which is: > > 32 Element.observe(window,'load', function() { > 33 FB_RequireFeatures(["XFBML"], function() { > 34 FB.Facebook.init('','/xd_receiver.html', {}); > 35 > 36 }); > 37 }); > 38 > 39//]]> > > Has anyone else experienced this issue and knows how to resolve it? > > Thanks! > > Avishai >
[jQuery] Re: JSON data manipulation
Kevin, Thanks for the info!!! The .push method is something new for me and it is a very good solution for my problem. Greets Glenn On Aug 30, 6:07 pm, Kevin Dalman wrote: > OOPS, I didn't formatted the data correctly for passing to Plot() - > sorry, didn't read carefully. But the premise is the same - create an > array by looping your data, and then pass the array when done. > > /Kevin > > On Aug 30, 9:04 am, Kevin Dalman wrote: > > > Hi Glenn, > > > Create an array and 'push' each hash of plot data onto it. When the > > loop is complete, pass the now complete array... > > > $.getJSON('/Graph/HearthRateDataJSON', "", function(data) { > > var data= [ ]; > > $.each(data, function(entryindex, entry) { > > data.push( { Name: entry['Name'], Serie: entry['Serie'] } ); > > }); > > Plot( data ); > > > }); > > > /Kevin > > > On Aug 29, 7:31 am, Depechie wrote: > > > > Hello guys. > > > > My question has actually more to do with jqPlot ( graph library for > > > jQuery ), but I'm still asking it here, because it concerns json data > > > manipulation through jquery. > > > I'm not a javascript nor JQuery programmer, I'm just in a learning > > > process. > > > > So my question. > > > To plot something through jqPlot the syntax should be: > > > plot = $.jqplot('chart', [line1, line2, line3], { ... } > > > > With line1, line2 and line3 as array variables! > > > > My current JSON data is: > > > [{"Name":"series1","Serie":[[1,4],[2,25],[3,7],[4,14]]}, > > > {"Name":"series2","Serie":[[1,13],[2,5],[3,7],[4,20]]}] > > > > And in my .js file I've put this: > > > $.getJSON('/Graph/HearthRateDataJSON', "", function(data) { > > > $.each(data, function(entryindex, entry) { > > > Plot(entry['Serie'], entry['Name']); > > > }); > > > }); > > > > Problem now is that the graph will only plot the 'last' serie, because > > > the graph itself needs all data at once! And not like I did going > > > through each JSON record and plot the line. > > > > So any thoughts on how to use the $.each to put all data in one > > > variable to get jqPlot to plot all series? > > > > Thanks > > > Glenn- Hide quoted text - > > > - Show quoted text -
[jQuery] Move a div to another div
Hi ! Here's a little example of what i want to do : " " I want to make an animation where the div "C" come from the div "A" to (inside) the div "B". Is it possible ? Thanks in advance ! Bye.
[jQuery] Re: event-binding to dynamically created elements... (JSP vs JS problem......)
sorry .up() is prototype... should be .parent() instead. On Aug 30, 1:20 pm, Josh Powell wrote: > kali - here is a way to accomplish the same thing in less code, and > lets you call the images anything you want instead of having to use > numbers. This is untested so there may be some slight errors, but the > logic should be sound: > > $(function() { > var imageArray = ['foo', 'bar', 'baz']; > > $(imageArray).each(function (item, i) { > $('#wrapper').append(' '"> alt="thumbnail' + i + '" width="80" height="80"/>'); > }); > > $('img.thumbsBorder').hover(function () { > $(this).toggleClass('dim').up().toggleClass('roll'); > }); > > });
[jQuery] Re: event-binding to dynamically created elements... (JSP vs JS problem......)
kali - here is a way to accomplish the same thing in less code, and lets you call the images anything you want instead of having to use numbers. This is untested so there may be some slight errors, but the logic should be sound: $(function() { var imageArray = ['foo', 'bar', 'baz']; $(imageArray).each(function (item, i) { $('#wrapper').append(''); }); $('img.thumbsBorder').hover(function () { $(this).toggleClass('dim').up().toggleClass('roll'); }); });
[jQuery] Re: Easy SELECT question for newbie
> I looked and looked for examples and thought I tried every conceivable > example. Always start right here http://docs.jquery.com/Selectors you would have run across this http://docs.jquery.com/Selectors/attributeEndsWith#attributevalue
[jQuery] Re: Issue with getJSON function... I get the JSON file but I can't do anything with it !! Help please
Guys I fixed it... I was not trying to access the data properly... Instead of writing data[2] and expect to get the data from it, I needed to ask for it explicitly: data[2].story.title. This gave me the title... Thx for your help guys.. On Aug 28, 10:07 pm, MorningZ wrote: > > The alert box that pops up diplays the following: > >http://localhost:3000 > > [object Object] > > Are you expecting different? > > http://jsbin.com/oceni/edit > > alerting an evaluated JSON object will show you [object Object] > > If you want to see the JSON broken down into it's Key/Value pairs, > Firefox + Firebug will show you that > > On Aug 28, 6:55 pm, lpdahito wrote: > > > > > Hi guys, > > I have a problem retrieving data in JSON format using Ajax with > > JQuery. > > Here's the code I use: > > > /app/controllers/stories_controller.rb: > > > def index > > @stories = Story.all > > respond_to do |format| > > format.html # index.html.erb > > format.xml { render :xml => @stories } > > format.json { render :json => @stories, :callback => params > > [:callback] } > > end > > end > > > /app/views/layouts/application.html.erb > > > ... > > <%= javascript_include_tag "jquery" %> > > > > $(document).ready(function(){ > > $.getJSON("/stories.json?callback=?", function(data){ > > alert(data[2]); > > }); > > }); > > > > ... > > Here's the problem I have... > > The alert box that pops up diplays the following:http://localhost:3000 > > [object Object] > > What's worst is that Rails retreives my data and returns it in a > > proper JSON format since when > > I enterhttp://localhost:3000/stories.jsonIget the JSON file > > What's wrong with JQuery ??? I do exactly what they say on the > > Website:http://docs.jquery.com/Ajax/jQuery.getJSON#urldatacallback > > I need help please... > > Thx...
[jQuery] Re: event-binding to dynamically created elements... (JSP vs JS problem......)
Even simpler: $('img.thumb').click(function () { $(this).toggleClass('dim'); });
[jQuery] Re: Easy SELECT question for newbie
No reason to be embarrassed. Everyone starts somewhere. Hell, compared to many of the folks on this list, I'm still a n00b. Just keep at it, refer to the docs early and often, and don't be afraid to ask questions as they come up. On Sun, Aug 30, 2009 at 11:23 AM, gBerger wrote: > > Thanks. That did the trick. > > I actually spent at least a couple of hours on this. say> > I looked and looked for examples and thought I tried every conceivable > example. > > Thanks again, > gBerger > > On Aug 30, 1:18 pm, Charlie Griefer wrote: > > #3 errors because as of jQuery 1.3, the use of the "@" symbol is > deprecated. > > > > $('input[id$="ckKyW"]') <-- all input elements with an id attribute that > > ENDS WITH 'ckKyW' > > > > see the "Attribute Filters" section ofhttp://docs.jquery.com/Selectors > > > > > > > > On Sun, Aug 30, 2009 at 7:31 AM, gBerger wrote: > > > > > I am an extreme beginner so sorry for the basic question. > > > > > I have a number of checkboxes on the screen that contain > > > an "ID" with the characters "ckKyW" in it. > > > Checkbox Examples: > > > whatever_ckKyW34 > > > whatnow_ckKyW67 > > > whoops_ckKyW23 > > > > > I have tried every combination that I could think of > > > (a few of them are below) but I am not able to retrieve > > > only these checkboxes. #1 below retrieves ALL checkboxes > > > but I know there is a way to retrieve only the ones I need. > > > > > Can some help me please. > > > > > Thanks, > > > gBerger > > > > > #1 > > > This works [ and I was proud of myself for getting this far :) ] > > > //var sChkBoxes = $("form :checkbox").each(function() > > > //{ > > > //alert(this.id); > > > //} > > > //); > > > > > #2 > > > // NO ERROR JUST DOESNT RETURN ANYTHING > > > //var s3 = ""; > > > //$("form :checkbox").find("a...@id*='ckKyW']").each(function() > > > //{ > > > //alert(this.id); > > > //} > > > //); > > > > > #3 > > > // ERRORS > > > //$("[...@id*='ckKyW']").each(function() { > > > //alert(this.id); > > > //} > > > //); > > > //$("a...@id*='ckKyW']").each(function() { > > > //alert(this.id); > > > //} > > > //); > > > > -- > > I have failed as much as I have succeeded. But I love my life. I love my > > wife. And I wish you my kind of success. > -- I have failed as much as I have succeeded. But I love my life. I love my wife. And I wish you my kind of success.
[jQuery] JqModal / simpleModal - maintaining form state
I have tried both of these modal solutions, beautiful by the way, and found a small problem with both of them and am wondering if there is a work around. I have a form where there are a bunch of check boxes that I have enclosed in a div that I am using for my popup modal. Now the thing is that while the modal is up and I check a bunch of boxes and then close the modal, reopen again, all checkboxes have been reset rather than retaining their state. Is there a way to circumvent this behavior? So, if I click checkbox #1 and close the modal and then reopen the modal, checkbox #1 is no longer checked. I need it to maintain it's state. Any suggestions? Thanks Steffan --- T E L 6 0 2 . 7 9 3 . 0 0 1 4 | F A X 6 0 2 . 9 7 1 . 1 6 9 4 Steffan A. Cline stef...@execuchoice.net Phoenix, Az http://www.ExecuChoice.net USA AIM : SteffanC ICQ : 57234309 YAHOO : Steffan_Cline MSN : stef...@hldns.com GOOGLE: Steffan.Cline Lasso Partner Alliance Member ---
[jQuery] Replacing like items
I have a form of data I am working on where I may have *nearly* the same thing appear with a checkbox appear multiple times. For example: So, if checkbox #1 (widget1) is checked, it will either disable all other ones containing the sku 123456 OR replace the others in the form having sku 123456 with an image of a sort. Is there a way to select this without iterating through every checkbox in the form and looking at it's value? Thanks Steffan --- T E L 6 0 2 . 7 9 3 . 0 0 1 4 | F A X 6 0 2 . 9 7 1 . 1 6 9 4 Steffan A. Cline stef...@execuchoice.net Phoenix, Az http://www.ExecuChoice.net USA AIM : SteffanC ICQ : 57234309 YAHOO : Steffan_Cline MSN : stef...@hldns.com GOOGLE: Steffan.Cline Lasso Partner Alliance Member ---
[jQuery] Re: cluetip html not being rendered
Found the problem. I was using CSS reset style on the page the cluetips were on. On Aug 30, 3:01 pm, mjs wrote: > I have been working with the cluetip plug-in for several hours and am > stuck. I can get most of the functionality working, but am unable to > load another page within the tip and see the formatted html. The text > shows up in the tip without formatting. The CSS for the tooltip > itself is working as expected. > > I have tried copying and pasting the html from the fragment pages on > the cluetip demo site, but am having the same issue. > > I am using the exact code used in the 2nd example on the demo > page:http://plugins.learningjquery.com/cluetip/demo/ > > Steve
[jQuery] cluetip html not being rendered
I have been working with the cluetip plug-in for several hours and am stuck. I can get most of the functionality working, but am unable to load another page within the tip and see the formatted html. The text shows up in the tip without formatting. The CSS for the tooltip itself is working as expected. I have tried copying and pasting the html from the fragment pages on the cluetip demo site, but am having the same issue. I am using the exact code used in the 2nd example on the demo page: http://plugins.learningjquery.com/cluetip/demo/ Steve
[jQuery] Re: Easy SELECT question for newbie
Thanks. That did the trick. I actually spent at least a couple of hours on this. I looked and looked for examples and thought I tried every conceivable example. Thanks again, gBerger On Aug 30, 1:18 pm, Charlie Griefer wrote: > #3 errors because as of jQuery 1.3, the use of the "@" symbol is deprecated. > > $('input[id$="ckKyW"]') <-- all input elements with an id attribute that > ENDS WITH 'ckKyW' > > see the "Attribute Filters" section ofhttp://docs.jquery.com/Selectors > > > > On Sun, Aug 30, 2009 at 7:31 AM, gBerger wrote: > > > I am an extreme beginner so sorry for the basic question. > > > I have a number of checkboxes on the screen that contain > > an "ID" with the characters "ckKyW" in it. > > Checkbox Examples: > > whatever_ckKyW34 > > whatnow_ckKyW67 > > whoops_ckKyW23 > > > I have tried every combination that I could think of > > (a few of them are below) but I am not able to retrieve > > only these checkboxes. #1 below retrieves ALL checkboxes > > but I know there is a way to retrieve only the ones I need. > > > Can some help me please. > > > Thanks, > > gBerger > > > #1 > > This works [ and I was proud of myself for getting this far :) ] > > // var sChkBoxes = $("form :checkbox").each(function() > > // { > > // alert(this.id); > > // } > > // ); > > > #2 > > // NO ERROR JUST DOESNT RETURN ANYTHING > > // var s3 = ""; > > // $("form :checkbox").find("a...@id*='ckKyW']").each(function() > > // { > > // alert(this.id); > > // } > > // ); > > > #3 > > // ERRORS > > // $("[...@id*='ckKyW']").each(function() { > > // alert(this.id); > > // } > > // ); > > // $("a...@id*='ckKyW']").each(function() { > > // alert(this.id); > > // } > > // ); > > -- > I have failed as much as I have succeeded. But I love my life. I love my > wife. And I wish you my kind of success.
[jQuery] Re: using cross domain scripting to embed HTML
You can't achieve your SEO goals with JavaScript (and that of course includes jQuery). Search engine crawlers don't run your JavaScript code, so they don't see anything you add to the page with JavaScript. Instead, they see what you get if you do a View Source on a page: they'll see your tag itself instead of the HTML code that you generate in that script. If SEO juice is a requirement, the only way to get it is to have your customers' websites run code on their servers that incorporates your HTML into their pages as they are downloaded. You could provide a web service that their servers hit while generating their pages. That service would return your HTML code, which they would then include in their own HTML output. This way, your HTML code becomes a direct part of their page as seen by web crawlers and View Source. Depending on your customers, though, you will probably find that many of them are unwilling or unable to write and run code on their own server to pick up your HTML. Going back to JavaScript, the way most ad network scripts work is very simple: they use document.write to insert content into the page at the point where the