[jQuery] jquery append in ie6

2009-06-05 Thread liam
Not sure if I am doing something wrong here, but this fails in IE6: $.getJSON("links.htt", { "get_favorites" : 1 }, function(data){ $.each(data, function(key) { $("#selectModule").append( $("").html(key).attr("value", key) );

[jQuery] Re: jquery append in ie6

2009-06-05 Thread liam
ok, i did this instead, > $(".pulldownOptionsContainerHidden").append( > $(" class='pulldownOption'>").html(key).attr("value", key) > ); maybe ie gets confused when not being specific enough? fortunately in this case i

[jQuery] Re: jquery append in ie6

2009-06-05 Thread liam
; > key).attr("value", key) > >                ); > > >                // ie6 messes this up?!?! > >                $(".pulldownContainer[relid=selectModule]").children > > (".pulldownOptionsContainerHidden").append( > >                

[jQuery] Re: jquery append in ie6

2009-06-05 Thread liam
; > key).attr("value", key) > >                ); > > >                // ie6 messes this up?!?! > >                $(".pulldownContainer[relid=selectModule]").children > > (".pulldownOptionsContainerHidden").append( > >                

[jQuery] Re: jquery append in ie6

2009-06-05 Thread liam
; > key).attr("value", key) > >                ); > > >                // ie6 messes this up?!?! > >                $(".pulldownContainer[relid=selectModule]").children > > (".pulldownOptionsContainerHidden").append( > >                

[jQuery] Re: jquery append in ie6

2009-06-05 Thread liam
ok, i did this instead, > $(".pulldownOptionsContainerHidden").append( > $(" class='pulldownOption'>").html(key).attr("value", key) > ); maybe ie gets confused when not being specific enough? fortunately in this case i

[jQuery] Re: Horizontally scroll a table

2009-06-17 Thread liam
You could also add overflow to the container div's style. See http://www.w3schools.com/Css/pr_pos_overflow.asp It might be easier than working with more js. On Jun 17, 9:03 am, michael wrote: > Hello all, > > Is there a plugin somewhere that will allow a table to horizontally > scroll within a

[jQuery] alternative to .live("change") in IE6

2009-06-18 Thread liam
So I have a set of elements that are ajax'd in and out depending on what is selected using the event "change". I know that .live("change") is not fully supported, but I was wondering if anyone had come up with a real creative way around this.

Re: [jQuery] Load image gallery faster - or tips

2009-11-17 Thread liam
Images can only load as quickly as their connection will allow. Your best option is to load the first set of thumbnails (if there's, say, 12 per page I load 24) and the first image, and then dynamically load the remainder via ajax or other method. Liam > > Hi everyone, > >

[jQuery] Re: [jquery.form.js v2.18] file upload field and standard fields

2009-01-29 Thread liam
Might just be a typo, but just in case - it should be $_POST > > What does the error field say? And I'm pretty sure that MAX_FILE_SIZE > must come immediately before your file input element. > > Also, are you sure the file is within your upload limit? > > On Thu, Jan 29, 2009 at 1:01 PM, phicar

[jQuery] Re: iframes and jquery

2009-03-11 Thread liam
> > Hello, > > I have a couple of hidden divs with iframes linked to external sites > using the "display:none" css tag. They are then revealed using a > button. The problem is that the hidden divs load the iframe content > even if the buttons are never clicked causing a very slow page load. > Is

[jQuery] Re: jQuery runs inserted scripts prior to inserting HTML

2007-09-18 Thread Liam Byrne
after the HTML it is referring to... e.g.- form input id=a script for element with id=a /form When I move the scripts below the form tag, the script executes as it should and everything works. But this method is a work-around, and I'd rather not do it this way. ~Benjam -- Regards,

Re: [jQuery] Re: How to check TD background image has been loaded.

2010-02-26 Thread Liam Byrne
$("#leftCol").css("background-image","url("+imagePath+")");}); Liam jscharf wrote: 2 possibilities: via attribute: $("#mytd").attr("background", "path/to/image.jpg"); or via CSS $("#mytd").css("backgr

[jQuery] Re: Multiple Jquery on one page

2009-07-14 Thread Liam Potter
You are including the jquery library multiple times, you only need to call jquery once. eg $(function(){ $("#selector").plugin(); $("#selector").plguin(); }); Mean Mike wrote: I'm confused are you saying this doesn't work ? function makeSublist(parent,

[jQuery] Re: Multiple Jquery on one page

lder. Sarm wrote: Thanks for reply but both jquery files are related plugin. If i will delete one jquery file then related will stop work. I know one jquery file is enough so if i will remove this one then Sublist part will be stop work and if i will remove this one then calender will stop

[jQuery] Re: children() passable variables there

from what I'm seeing you could accomplish this with css alone. Alexandru Adrian Dinulescu wrote: it doesnt work at all, working with 20+ rows this happens only in ie, firefox/saf/google works. --- Alexandru Dinulescu Web Developer (X)HTML/CSS Specialist Expert Guarantee Certif

[jQuery] Re: Drag and Drop

Documentation and Demo's, made for a reason. http://jqueryui.com/demos/draggable/#constrain-movement Sri wrote: Hi All, I am using "ui.draggable.js" plugin.To drag images.It is working fine but i want to restrict dragging out of div.How can i do this?Any Suggestions?

[jQuery] Get the tagname from an event ?

Hi folks I have a function that operates on left and right arrow keypress, but I want to temporarily "return true" if they're pressed while an input has focus. One way I thought of was to check the tagname of the event ? The other way is to check the length of the input:focus array, but I

[jQuery] Re: Get the tagname from an event ?

Cheers John! Had forgotten about / omitted the ".srcElement" :-P L John Beppu wrote: http://docs.jquery.com/Events/jQuery.Event#event.target On Wed, Jul 15, 2009 at 3:07 AM, Liam Byrne <mailto:l...@onsight.ie>> wrote: Hi folks I have a function that operate

[jQuery] Re: A job for you?

You do realise the things you asked for all most likely exist already under open source licenses? Geuintoo wrote: I didn't got any answer. Mabe I was not clear: I look for a jQuery - Programmer, who I pay to devlope some code.

[jQuery] Re: div display help

You've no jQuery in there for a start. Instead of var c = document.getElementByID(f); c.style.display = "block"; try $("#"+f).show(); L chuck wrote: I am having some trouble getting some divs to display dynamically. Can someone please offer a pointer?

[jQuery] Re: Another image rollover question

For something like this, you'd be best off having all 4 states of the button in a single graphic file, one under the other, and using the background-position to control it. The image would be 4 times as big as the allocated div or li, with only a quarter of it showing at a time depending on

[jQuery] Re: height/width of background image

After setting a src, the width and height won't be available until the image has loaded (can take 3 or ~ seconds, depending on image size). You need to trigger the calculation based on an image_1.load event firing. L weidc wrote: hi, at the moment i'm trying to get the height width of the

[jQuery] Re: if button clicked then do this else do that

A click is an EVENT, it either happened or it didn't. If it didn't happen, then the "else" code that you're talking about would be running constantly and repeatedly. I'm not sure if what you asked for is what you meant, because "if a button isn't clicked" describes every other moment or even

[jQuery] Re: Binding Events on a Click

Yup, add then click, and use the return value (normally false to stop the HREF triggering) to allow the HREF to continue (i.e. return true in the function) But if you're revealing a password like this, it won't be very secure, because something "HIDDEN" is still there in the "View Source" L

[jQuery] Re: Design pattern for animate()

use width() and offset in an if statement var pageWidth = $(document).width(); var hudOffset = hud.offset(); if ( pageWidth - hudOffset.left < 360 ) { hud.animate({left:-360}, 90); } else { return false; } I'm guessing you'd need something like that. littlerobothead wrote: I have a sma

[jQuery] Re: Binding Events on a Click

Option 1 : set the target of the link to "_blank", bind the text reveal, and return true so that the natural href triggers Option 2 : bind the text reveal, adding a window.open($(this).attr("href")) to the code L pinman wrote: Thanks for the response Liam - at l

[jQuery] Re: any yone know how biocompare styled the thickbox

it's just a lot of CSS changes, just like building any web element. Mean Mike wrote: I wouldn't use thickbox I would use jquery-ui.dialog but if you want to use thick box I suggest downloading thickbox and maybe looking at the documentation Mean Mike On Jul 17, 9:23 am, SeanthePaddy wrote:

[jQuery] Re: Set Element Position

GET x=$("#elementName").offset().left; y=$("#elementName").offset().top; SET $("#anotherElementName").css({left:x,top:y}); NoMatter wrote: Hi Guys , Its my first time here. My Question is .. When a button click , I need to change the positions of few DIVs . How do I assign X and Y . I saw t

[jQuery] Re: Replace an element with only opening or close element tag

If you do what you're thinking, then every second content element would be OUTSIDE of any What (I think) you need to do is: FIRST : OPEN DIV LAST : CLOSE DIV EVERY IN-BETWEEN CLOSE DIV FOLLOWED BY OPEN DIV If you don't do all of those in a single step, however, I'd suspect that the brow

[jQuery] Re: li/img click and window.keydown

show us you script and stop bumping so often. Lideln wrote: Up ! On 17 juil, 22:47, Lideln wrote: Up ! :) On 16 juil, 22:32, Lideln wrote: up On 16 juil, 08:10, Lideln wrote: up ! (wow, this forum gets 10 new posts per hour) On 15 juil, 21:52

[jQuery] Re: [tooltip] Fade on IE

Yep, simply no way around this except to not use a PNG or not to animate the opacity. Michael Smith wrote: I've struggled with similar problems - and have reluctantly had to use a gif instead. Although the image might not be as nice, it does actually seem to work fine in IE On Mon, Jul 20, 2

[jQuery] Re: jquery slider..1 issue left! :) (works in FF but not IE)

in the css #slider{ width:896px; overflow:hidden; } Alan wrote: note: Thanks Charlie for helping with first issue! I'm down to one issue with the easyslider jquery plugin. If you look at http://www.movieeye.com/index-new.jsp in IE 7, you'll notice the text is overfl

[jQuery] Re: jquery slider..1 issue left! :) (works in FF but not IE)

I've just had a closer look and the way you have this setup is messed up, why do you have 3 li's containing 6 divs each, rather then using an li to contain each thumbnail and caption? Alan wrote: note: Thanks Charlie for helping with first issue! I'm down to one issue with the easyslider jq

[jQuery] Re: Binding of object

I'm a bit confused, how many functions are you trying to run onclick of #login? sken wrote: Hey, is it possible to get the "binding" of an object. Let`s say i do $("#login").click(function); so the next time i call $("#login") i want to check if a click event is already bind to that obejct.

[jQuery] Re: Preemptively getting the "auto" height of a

take off the height in the CSS, store the computed height in a var, and on page load set the div to the 300px, then animate to the height contained in the var. ebakunin wrote: Hello, I have a with a height of 300px, overflow hidden, and a lot of text -- more than can be displayed in the .

[jQuery] Re: jQuery Animation problem

I had to go searching for the script in the js file $("#toonalleseizoenen").toggle(function(){ $("#alleseizoenen").animate({ height: 'hide', opacity: 'hide' }, 'slow'); },function(){ $("#alleseizoenen").animate({ height: 'show', opacity: 'show' }, 'fast'); }); You're

[jQuery] Re: Binding of object

well, if there is only one function binded to the object, and only will be one, why do you need to check if there is an event bound to it? sken wrote: The click event should only trigger ONE function. I use a lot of ajax content and for some reason, it happens that on one object (#login) the

[jQuery] Re: Binding of object

can you show me your code, as I'm still struggling to understand just what you are trying to achieve. Why would you bind several clicks to the object, all running the one function? sken wrote: there are several click binding. so the function is triggered several times. the function gets aja

[jQuery] Re: Binding of object

st curious if there is a check function to find out if there is already a binding. Why would you bind several clicks to the object, all running the one function? That's my point. I DON'T WANT THIS. On 21 Jul., 16:48, Liam Potter wrote: can you show me your code, as I&#

[jQuery] Re: Binding of object

Well the way you do it would really do anything, it will just unbind, then run the function again as it is chained? sken wrote: Would make sense but i think i go with my unbind solution ... thanx for your help.

[jQuery] Re: Fade on IE

completely defeating the point of using the alpha in the PNG. Ryan wrote: Another possibility if the container of the image has a solid background is to change the matte of the png to that same color of the html container background. ie. if your changing the opacity of the image and its in a d

[jQuery] Re: Inline JQuery

Why not simply put the

[jQuery] Re: Fade on IE

Well, considering this problem is caused by a PNG using alpha transparency in IE, I can assume he is using alpha transparency for a reason. Ryan wrote: Yes well there was no mention of wanting to use the alpha transparency but yes you are right. On Jul 21, 8:28 am, Liam Potter wrote

[jQuery] Re: Should this work?

Think there's a color plugin that will make this work ? http://plugins.jquery.com/project/color L Rick Faircloth wrote: NM…”Only properties that take numeric values are supported (e.g. backgroundColor is not supported).” *From:* jquery-en@googlegroups.com [mailto:jquery...@googlegroups.co

[jQuery] Re: Toggle Div Based on Value

use an if statement, "if value == retired, do this" evanbu...@gmail.com wrote: Hi I'm not sure how to approach this. I want to toggle each div with a checkbox or hyperlink which shows/hides every div where the RelStatus value = 'retired'. I'm able to see the value of each RelStatus value using

[jQuery] Re: Toggle Div Based on Value

s function, this allows you to traverse up the dom. evanbu...@gmail.com wrote: Right, but how do I associate the span tag which contains the value = 'Retired' with the div that contains it? In other words, I need to toggle the contents of the entire div and not just the span tag. Th

[jQuery] Re: Toggle Div Based on Value

$(this).parents("div").toggle(); } }) }); }); On Jul 23, 10:47 am, Liam Potter wrote: $("span a").click(function(){ var checkValue = $(this).parents("div").attr("value"); if (checkValue == 'Retired'){

[jQuery] Re: Toggle Div Based on Value

} }) }); }); Show Retired " class="IndividualDirectors"> () On Jul 23, 11:46 am, Liam Potter wrote: I'll need to see your html to see why, but I suspect it's because you targeted a specific id #table1.RelStatus. eva

[jQuery] Re: Toggle Div Based on Value

This should work fine $(document).ready(function() { $("#directors input[type='checkbox']").click(function() { $('span.RelStatus').each(function() { var RelStatusValue = $(this).find("span").text();

[jQuery] Re: How to deterine number of words in a string?

you don't need a plugin, this will do it var string = $("span.string").text(); var count = string.split(" "); alert(count.length); Conrad Cheng wrote: Hi all, Any jquery plugin can check number of word in a string instead using of .length?... Many thanks. Conrad

[jQuery] Re: How to deterine number of words in a string?

{ alert( $("span.string").stringCount() ); }); Liam Potter wrote: you don't need a plugin, this will do it var string = $("span.string").text(); var count = string.split(" "); alert(count.length); Conrad Cheng wrote: Hi all, Any jquery plugin can check number

[jQuery] Re: find() not working in Firefox

I could see that being VERY slow $("p").each(function() { if ($(this).text()=='When the day..believing') { $(this).replaceWith('chota'); return false } }) would work, but I wouldn't recommend it. Anyway, why would you want to do this, and how would you manage to ge

[jQuery] Re: How to deterine number of words in a string?

sors handle these, although I suspect they have "approximately" at the end ? If you need an approximation, though, [the other] Liam's solution will do nicely. Liam Potter wrote: or if you really do want it as a plugin Plugin: (function($){ $.fn.stringCount = function() {

[jQuery] Re: How to deterine number of words in a string?

k if there is a letter afterwards and if so, to add a space/count as a new word. Liam Byrne wrote: Assuming that people entering the string leave spaces after punctuation - commas, full-stops, exclamation marks, etc I've often had to tweak routines like this because people didn

[jQuery] Re: Test - please ignore

no, I will acknowledge! anoop wrote: Test - please ignore

[jQuery] Re: Advice needed on jQuery page to be built

divs, updated using ajax. gnetcon wrote: Hello, all! Brand new to jQuery, although I have used some apps that use jQuery in it. I have a page I have to build using PHP and (preferably) jQuery. I have an immense array with anywhere from 100 to 10,000+ items in it. I'll have a page with 3 pan

[jQuery] Re: Combine JQuery objects question

already been answered, his example was his answer. brian wrote: appendTo()? What do you mean by "join"? On Mon, Jul 27, 2009 at 11:40 AM, www.voguemalls.com wrote: who knows if it is possible to join two jQuery objects to make a new object. For example... var e1 = $("#firstObject"); var

[jQuery] Re: How to deterine number of words in a string?

A letter count is FAR easier - just get the string's length. L Rick Faircloth wrote: Is it as simple to do a letter count? -Original Message- From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On Behalf Of Liam Potter Sent: Friday, July 24, 2009 6:53 AM To: j

[jQuery] Re: jqm and livequery issue

uncomment the return false jjshell wrote: Hi, Please consider the code below. It should open a modal everytime a link of a given class is clicked. But... it does not. //get the url of the link clicked var url; $('a.edit').livequery('click',function(){ url= $(this).attr('href'); }); //init

[jQuery] Re: Advice needed on jQuery page to be built

;, url: "arrays.php", data: "arrKey="+arrayKey, success: function(html){ $("div.result").append(html); } }); }); Like I said, no idea if this would work, as I don't have a lot

[jQuery] Re: Advice needed on jQuery page to be built

just seen Brian's solution, which is similar but cleaner, don't know why I didn't think of just leaving the data in the href. Liam Potter wrote: Hi gnet, I've not really done much with arrays, so this is more theory but you should be able to build upon it. You will

[jQuery] Re: can i use .load to return HTML but not inject in to dom?

$.load("../"+myModule+"/"+navTitle+"/folders/index.php", function(e){ console.log(e); $('#folders').replaceWith(e); return false; }); try that robing wrote: I don't know if this is possible or not but i would like to use the .load method to retur

[jQuery] Re: can i use .load to return HTML but not inject in to dom?

then I'd say use the ajax function. http://docs.jquery.com/Ajax/jQuery.ajax#options robing wrote: Hi Liam, i got "$.load is not a function", any other suggestions?? On Jul 29, 9:57 pm, Liam Potter wrote: $.load("../"+myModule+"/"+navTit

[jQuery] Re: can i use .load to return HTML but not inject in to dom?

Surely $("#folders").replaceWith will actually do the - er - replacing ? L Liam Potter wrote: $.load("../"+myModule+"/"+navTitle+"/folders/index.php", function(e){ console.log(e); $('#folders').replaceWith

[jQuery] Re: can i use .load to return HTML but not inject in to dom?

Try using $.get - it'll return the data From http://docs.jquery.com/Ajax/load : .load : Load HTML from a remote file and inject it into the DOM. HOWEVER : .get : Load a remote page using an HTTP GET request. $.get("../"+myModule+"/"+navTitle+"/folders/index.php", { OPTIONAL PARAMETERS HERE

[jQuery] Re: stop jquery script until image is load

not tried this, but I'm assuming. $("img").ready(function(){ // do stuff here }); Matthieu wrote: Hi Id like to now if its possible to stop a jquery script and continue it only when an image is load and disolayed? thks

[jQuery] Re: jqm and livequery issue

h.o.remove(); // remove overlay h.w.fadeOut(1); // hide window }, }); $('a.edit').livequery('click',function(){ $('#modal-test').jqmShow(); return false; }); On 29 juil, 10:44, Liam Potter wrote: uncomment the return false jjshell wrote: Hi,

[jQuery] Re: POST data not being sent

tell us what happens when you submit the form, also, don't delete the quoted posts, means everyone not using a web based group reader can follow the conversation. shaf wrote: Thanks for the reply but that doesnt really answer my question.

[jQuery] Lazy Load plugin

Hi All, The www.appelsiini.com site is down, and I can't find any where else to download it. Can someone who has to full package (looking for uncompressed code to study) upload it somewhere for me to download from please. Thanks, - Liam

[jQuery] Re: a select question

I think he just wants to select anything without a certain class eg $("div:not('.abc')") Michael Lawson wrote: mmm a little more information in regards to what exactly you want to do but $('div').eq(i); where i is the index of the div you want to access alternatively you could also do $('d

[jQuery] Filament Group date range picker

daterangepicker({ dateFormat: 'd/m/yy', datepickerOptions: {dateFormat: 'd/m/yy'} }); Still no luck, anyone know how to sort this? Thanks, Liam

[jQuery] Re: Bug? -- toggle() of TR broke in IE8

It's down to the way IE handles tables, nothing to do with a jquery bug (people are so quick to shout out that word). Boiled down, you can't do a lot of things to tr's in IE, and display none is one of the things you can't change. - Liam Fontzter wrote: bump? Can anyo

[jQuery] Re: Newbie Question

function _ajaxInit() { $("a.group").fancybox( { 'overlayShow': true }); }); window.onload = function () { $('.sliderGallery').each(function(){ var id_parts = $(this).attr('id').split('_'); var id = id_parts[id_parts.length - 1]; var container = $('#sli

[jQuery] Re: Newbie Question

7;, function(){ $('#loadHere').load(url, function(){ $('#loadHere').fadeIn('fast'); }); }); return false; }); Dave -Original Message- From: Liam Potter [mailto:radioactiv...@gmail.com] Sent: August-04-09 12:5

[jQuery] Re: Google Maps inside jqModal

can you post an example? anush wrote: Has anybody tried embedding Google Maps inside jqModal ? The maps aren't getting displayed properly. $().ready(function() { $('#dialog').jqm(); }); Would be great of somebody could help me out

[jQuery] Re: Newbie Question

rors syntax error [Break on this error] });\n (line 167) syntax error [Break on this error] });\n (line 6) _ajaxInit is not defined [Break on this error] _ajaxInit();\n That's what I see now but still nothing good happening. dave -Original Message- From: Liam Potter [mailto:radioa

[jQuery] Re: On mouse events / style switch

$("div").toggleClass('className'); http://docs.jquery.com/Main_Page Everything you need right now is in there, only ask questions if it isn't on there, or google. I'm not trying to be an ass but too many people expect to have their hand held while learning anything, and being told the answers

[jQuery] Re: Newbie Question

ot;> Page 2 page2.js </tt><pre style="margin: 0em;"> Since Page 2 is going to be loaded into page 1 DIV do I move the page2 scripts to page 1? Dave -Original Message- From: Liam Potter [mailto:radioactiv...@gmail.com] Sent: August-

[jQuery] Re: Bug? -- toggle() of TR broke in IE8

it ends up hiding at the end. You may want to post a bug report http://dev.jquery.com/report/ Fontzter wrote: Liam, Thanks for your input, we all know how irritating IE can be. However, there are a few things about this that puzzle me: * It works in IE6, IE7, FF, Chrome and Opera * It works w

[jQuery] Re: xpath not returning objects

, in a big red box it says This is an old version of the *Selectors* API: *View the Current API * Old Orange Juice wrote: IF that's the case, http://docs.jquery.com/DOM/Traversing/Selectors#Using_CSS_and_XPath_Together should be changed. That page says:

[jQuery] Re: Fade in / Out

$("div").fadeIn(300).animate({opacity:1},5000).fadeOut(300); Dave Maharaj :: WidePixels.com wrote: I was wondering how do you make text fade in for a specific amount of time then fade out. I have the fade in / out part..i just cant figure out the duration so it stays there after fading in fo

[jQuery] Re: HTML5 video tag available?

try it? quiKe wrote: Hi, do you know if it is possible to use selectors for a video tag? For example: $(this).find('div.misc').find('ul').addClass('thumb-fila').find ('li').find('video').each(function(){ }); to capture the video tags on a li? Thanks

[jQuery] Re: jQuery animate marginTop jerky in IE

Have you tried animating just the top position instead? touch_the_sky wrote: Hi everyone! I have an issue with IE which has been driving me absolutely mad for like last 2 days. Basically all works awesome, crossbrowser, etc. apart from one floated div, when I am trying to animate it's margin-t

[jQuery] Re: HTML5 video tag available?

try adding document.createElement(video); before your jquery script quiKe wrote: tried (doesn´t work) but i wanted to know if maybe i was on a mistake. On Aug 7, 12:52 pm, Liam Potter wrote: try it? quiKe wrote: Hi, do you know if it is possible to use selectors for a video

[jQuery] Re: Problem on IE8

How are you setting the border in CSS ? If you set it explicitly, it should work cross-browser L Gaiz wrote: I found 2 problems when I use jQuery on IE8 1. When I use $('elementId').css('border-top-width'), it return "medium", but other browsers return "0px" 2. After domready, my page, that'

[jQuery] Re: Problem on IE8

do not know why it error on IE8 only (IE7, FF is work fine) On Aug 11, 2:26 am, Liam Byrne wrote: How are you setting the border in CSS ? If you set it explicitly, it should work cross-browser L Gaiz wrote: I found 2 problems when I use jQuery onIE8 1. When I use $('ele

[jQuery] Re: Add extra content to the title attribute

something like this var origTitle = $("a.newWindow").attr("title"); $("a.newWindow").attr("title", origTitle+" - This link will open in a new window"); Paul Collins wrote: Hi all, This is hopefully simple. I have a bunch of links with titles, like TITLE="Facebook" and so on. I am adding JQ

[jQuery] Re: Add extra content to the title attribute

Paul Collins wrote: > I'm using the "add" JQuery command, > $("a.newWindow").attr("title", " - This link will open in a new window"); I can't see any "add" there ? The proper code would be $("a.newWindow").attr("title",$(this).attr("title")+" - This link will open in a new window"); L Pau

[jQuery] Re: Refresh DIV with full page refresh

Be nice :p, obviously his first language is not English. you should be using jQuery's ajax functions. http://docs.jquery.com/Ajax Charlie wrote: $("div").refresh() that function should give you as much success as trying to understand the *details* of your request. bharani kumar wrote: We

[jQuery] Re: How to specify a default value...

Your concatenation is broke, (I'm assuming the logic behind this is actually working) this >' + (row[19] ? '+ row[19] + ' : 'N/A') + '< should be ' + (row[19] ? ''+ row[19] + '' : 'N/A') + '< As for what is going on here, it's just an if statement shortened down, and could be written like

[jQuery] Re: How to specify a default value...

oi, don't be skipping over my answers :p lol Rick Faircloth wrote: And finally, to continue today’s live, public coding experiments… The answer appears to be that a second set of ‘ ‘ are needed for the conditional: >’ (row[19] ? ‘ ‘ + row[19] + ‘ ‘ : ‘N/A’) + ‘< Instead of: >’(row[19] ?

[jQuery] Re: attr doesn't work in IE6 and Chromium

wow... I'm not even sure what your are trying to achieve with thisno need for doing this through the onclick attribute, and I can't think why you are trying to set the onclick with some javascript? Julijan Andjelic wrote: $("#sitemap a:eq(1)").attr("onclick","$('#sitemap a:eq(2)').text(

[jQuery] Re: How to specify a default value...

row[19]'s value, if not print 'N/A' So, you can see, the second example is not checking if row[19] has a value, but whether or not it exists at all. Now, I would take this with a pinch of salt, as my programming theory is poor at best, but this is what I think is happening. - Liam

[jQuery] Re: toggle and logic confusion

when you click on a button, run a function to close all the divs, and run a function to open the specified div. Bruce MacKay wrote: Yes, you are right - what I described was like an accordion, but I left out the description of the actual links on which the div's are opened/closed. The li

[jQuery] Re: JSON how to transform an object into an array?

Shouldn't you be using $.getJSON instead? Mark wrote: Hi all. I got an php page who picks up data out of my data base and puts it in a multidimensinal array. That array is being encoded to Json $event = json_encode($super_array); Then i made an javasript get funtion to get that array to my ma

[jQuery] Re: How can we stop the "animate" function?

use .stop() $(document).ready(function(){ $("div#button1").click(function(){ $("#box").stop().animate({ "margin-left" : "150px" }); }); $("div#button2").click(function(){ $("#box").stop().animate({

[jQuery] Re: Malsup FormPlugin - doesn't Ajax!

can you not set the form to display:none through the javascript? Anxiro wrote: Hi there! I'm using the Form Plugin by Malsup (http://malsup.com/jquery/form/). I'm using this a lot, so I'm used to all the configs and settings. That's not a problem. My problem is, that my DIV (where the FORM is

[jQuery] Re: How to POST using jQuery?

well, on the post callback, forward the browser to the page? window.location="/page.php" Mark Smith wrote: Hi, I know you can use jquery to post data from a json object ajaxly. However I want to redirect the browser to the new page (like submitting a form) only passing the values explicitly

[jQuery] Re: How to POST using jQuery?

user with have no parameters posted to it. On Aug 12, 3:50 pm, Liam Potter wrote: well, on the post callback, forward the browser to the page? window.location="/page.php" Mark Smith wrote: Hi, I know you can use jquery to post data from a json object ajaxly. H

  1   2   3   4   5   >