[jQuery] Re: JSPacker for .NET

2007-09-26 Thread brian
I have been searching for something just like this. I would like to get a copy of the code if possible. Thanks On Sep 17, 9:08 pm, Jeffrey Kretz [EMAIL PROTECTED] wrote: I've spend the last few days building a .NET implementation of a gzip packer. It accepts an argument like either of these

[jQuery] ie6 fails to parse ajaxed scripts - rough fix provided

2008-01-28 Thread Brian
$.ajax evaluates scripts within the response when dataType is HTML... but not in ie6. To get around this, I have made this: function eval_html(html) { tags = /\script.*?\(.*?)\\/script\/gi; if(html = html.match(tags)){ eval(html .join()

[jQuery] How to format options that are only relevant in certain contexts?

2008-10-12 Thread Brian
I'm writing a star rating plugin. I'd like to write it respecting established coding standards. Generally: there are contexts where the plugin will or will not asynchronously submit (outside or inside of a form, by default). Based on the context, there some options that will not be relevant (e.g.

[jQuery] Can I make jquery not fail silently??

2008-11-04 Thread brian
I make mistakes. Sometimes I should write code like: $(#divEditUnit_ + UnitID).fadeOut(); I expect #divEditUnit_ + UnitID to evaluate to something like #divEditUnit_f3c23142-e933-4e13-ada3-2592893dc17c, which would be nice since I have a div with an id of divEditUnit_f3c23142-e933-4e13-

[jQuery] Re: Can I make jquery not fail silently??

2008-11-05 Thread brian
It's not a failure to run a query and find nothing - that's a perfectly valid use case. I understand where you are coming from on the querying side, but shouldn't calling a method on an empty object fail? How can I fade in...nothing? I'm going to still think of this as a huge design flaw.

[jQuery] Re: Can I make jquery not fail silently??

2008-11-05 Thread brian
Now $('#non-existing-id').fail().toggle() will fail, but will work if it's not empty. That's actually right on the money. Thanks. //Still thinks fail silently on id queries is insane, but knows a religious argument when he sees one.

[jQuery] Re: Can I make jquery not fail silently??

2008-11-05 Thread brian
: That 'religious' bit is a bit offensive don't you think? There are good reasons for failing silently as Mike, Richard and Jeffrey have pointed out. The fact you don't accept/understand them doesn't make their (and mine) opinions less empirical. - ricardo On Nov 5, 5:10 pm, brian [EMAIL PROTECTED

[jQuery] I'm having problems making a div show up when I load the page

2008-11-05 Thread Brian
I'm using jqModal.. I simply want an email subscription list to pop up when the page is loaded here's what I've got. script type=text/javascript $(document).ready(function() { $('#dialog').jqm(); }); /script a href=# class=jqModalview/a -that is a link... I don't want to use a

[jQuery] Re: window close

2008-11-25 Thread brian
Is the content of the pop-up (including the close link) an external file? In any case, why not just give the pop-up div an ID? On Tue, Nov 25, 2008 at 12:05 AM, Namrata Vagyani [EMAIL PROTECTED]wrote: This is also not working :( On Mon, Nov 24, 2008 at 7:51 PM, Isaak Malik [EMAIL PROTECTED]

[jQuery] Re: window close

2008-11-26 Thread brian
: yes the content of pop-up is in external file. I tried with ID also but not able to hide it. On Tue, Nov 25, 2008 at 10:41 AM, brian [EMAIL PROTECTED] wrote: Is the content of the pop-up (including the close link) an external file? In any case, why not just give the pop-up div an ID

[jQuery] Re: Auto Save After Every Field Change?

2008-11-27 Thread brian
I agree with Don. If this was, say, an administrative page, sure (maybe). But, if it's anything the general public will be using, no way. As for traffic, I guess it depends on the info that the form will be transmitting. If there aren't any textareas or file uploads, it's unlikely to amount to

[jQuery] Re: code dosen't work if put after some other code

2008-11-28 Thread brian
I think you'll need to post the exact code you're having problems with. On Fri, Nov 28, 2008 at 8:32 AM, Betty [EMAIL PROTECTED] wrote: Hi, I'm new. I've written two pieces of code with jQuery. Each of them works well individually. However, if I put them one after the other, the first one

[jQuery] Re: Remove ellipsis from shortened title.

2008-11-28 Thread brian
H3 tag, or DT? Anyway, I'm pretty sure that remove is not what you want. I think you'd need to do something like: $('h3').each(function(){ var t = $(this).text(); $(this).text(t.replace(/hellip;/''/)); }); Obviously, replace h3 with whatever makes the most sense for your page. On Fri,

[jQuery] Re: Appending text works; appending element doesn't

2008-11-28 Thread brian
I can tell you that my experience also with an XHTML+XML MIME and JQuery was full of pain. Luckily, I had the option to change the Content-Type, as it was only there for a legacy app. So, I never bothered to investigate further whether or not it could work with JQuery. On Fri, Nov 28, 2008 at

[jQuery] Re: code dosen't work if put after some other code

2008-11-28 Thread brian
to be passed two functions, one for mouseover and one for mouseout: http://docs.jquery.com/Events/hover However that doesn't explain why just the second one doesn't work... see if using mouseover() or bind('mouseenter',fn) helps. On Nov 29, 12:16 am, Betty [EMAIL PROTECTED] wrote: Thank you, brian

[jQuery] Re: [jCarousel]

2008-11-29 Thread brian
Create an itemVisibleInCallback function. The second param is the list-item object, from which you can get the anchor. http://sorgalla.com/projects/jcarousel/#Configuration On Sat, Nov 29, 2008 at 10:38 AM, Alex [EMAIL PROTECTED] wrote: Using the example of external controls

[jQuery] Re: [jCarousel]

2008-11-29 Thread brian
'); } You can also specify an itemVisibleOutCallback to remove the class once it's no longer visible. On Sat, Nov 29, 2008 at 5:22 PM, Alex Hempton-Smith [EMAIL PROTECTED] wrote: Thanks Brian, I've read through that documentation and I'm not sure how I would go about using that to add the 'current

[jQuery] Re: Can jQuery genrated tag to trigger handler?

2008-12-01 Thread brian
It's a scope problem. When javascript parses that $(#goto).click(...) line, #goto does not yet exist. You need to assign the click handler to #goto within the same function that creates the link. Try this: function pageReady() { $(#go).click(function() { $(div#content).append('a

[jQuery] Re: Can find() return elements in DOM order?

2008-12-01 Thread brian
FWIW, same problem using $('form#myform').find('*').filter('input,select,textarea'); It seems that jQuery creates a new collection but iterates through for each selector in filter(), gathering matches from the source, rather than running through the source and comparing each element with each

[jQuery] Re: Can find() return elements in DOM order?

2008-12-01 Thread brian
On Dec 1, 11:55 pm, brian [EMAIL PROTECTED] wrote: FWIW, same problem using $('form#myform').find('*').filter('input,select,textarea'); It seems that jQuery creates a new collection but iterates through for each selector in filter(), gathering matches from the source, rather than

[jQuery] Re: Selecting only partial text from div

2008-12-02 Thread brian
Have a look at this plugin: http://plugins.learningjquery.com/expander/ I'm sure you could adjust that to get something like what you want. On Mon, Dec 1, 2008 at 9:55 PM, [EMAIL PROTECTED] [EMAIL PROTECTED]wrote: I've a div which has lot of contents inside it... I need to display only text

[jQuery] Re: Getting totals per row

2008-12-02 Thread brian
Give all of your day inputs the same class (say, DayInput). Do the same for the total divs (eg, TotalDiv). Then wrap each group of DayInputs, together with their corresponding TotalDiv in a div or tbody (you can have several of those in a table). Now, assign a handler to each $('.DayInput') which

[jQuery] Re: Change number of images shown

2008-12-02 Thread brian
$('#whatever').jcarousel({ scroll: 1, visible: 1 }); On Tue, Dec 2, 2008 at 2:06 PM, RockDad [EMAIL PROTECTED] wrote: This seems like a simple thing to do put I cannot figure out how to do it. I'm implementing the jcarousel scripts but cannot figure out how to chnage the number of

[jQuery] Re: Tooltip made from two different elements. Hover() Issue

2008-12-02 Thread brian
You could make the fadeout last longer $(document).ready(function(){ $(B.toolTipCaller).hover(function(event){ $(Div.toolTip).fadeIn(slow); }, function(){ $(Div.toolTip).fadeOut(x);// where x = no. of milliseconds to fade }); /* to bring the tooltip back to full

[jQuery] Re: Hover Repeats Over and Over...

2008-12-03 Thread brian
You are not using hover(), you're using the hoverIntent plugin. From its website: -- snip -- hoverIntent is a plug-in that attempts to determine the user's intent... like a crystal ball, only with mouse movement! It works like (and was derived from) jQuery's built-in hover. However, instead of

[jQuery] Re: click function doesn't work on html element created on the fly with jquery

2008-12-04 Thread brian
That's because the element did not exist when you assigned the click handler. Have a look at the liveQuery plugin [1] or otherwise make sure that any newly-created elements are given notice of how the're supposed to act when you introduce them to the document. [1]

[jQuery] Re: Selecting a table cell based upon it's header?

2008-12-04 Thread brian
Once you loop through the headers and get the index position of a particular one, you could select the nth child of the row. On Thu, Dec 4, 2008 at 11:23 AM, Josh Rosenthal [EMAIL PROTECTED] wrote: Hi All, Hopefully this is a stupid question, and I just haven't been able to find information

[jQuery] Re: Selecting a table cell based upon it's header?

2008-12-04 Thread brian
(with nth-child removing the th). Am I missing something obvious? On Thu, Dec 4, 2008 at 11:50 AM, brian [EMAIL PROTECTED] wrote: Once you loop through the headers and get the index position of a particular one, you could select the nth child of the row. On Thu, Dec 4, 2008 at 11:23 AM

[jQuery] Re: Trouble Understanding getJSON call

2008-12-05 Thread brian
You use it like jQuery.getJSON(url, data, callback) function handleIt104(data, status) { // ... } var url = 'http://the.domain.com/getJSON.php'; var data = {what: ever}; $.getJSON(url, data, handleIt104) I don't know what you mean about a script tag. Maybe i've completely misunderstood

[jQuery] Re: Help creating a special menu

2008-12-05 Thread brian
You're only passing one value for background-position; there should be a left and top. Looking at the code you posted and the images themselves, it's not clear to me what you want the hovered link to look like. I'm assuming here that you want the hovered link to change to black text, and the

[jQuery] Re: How to access href-property

2008-12-05 Thread brian
I'd say that's a broken feed-reader. On Fri, Dec 5, 2008 at 12:46 PM, Karl Swedberg [EMAIL PROTECTED] wrote: Not sure about that, but one advantage of full URLs is that they work in all feed readers. I was using root-relative URLs on my blog until somebody complained that these links wouldn't

[jQuery] Re: How to achieve this effect?

2008-12-05 Thread brian
Once you've got a function that can fade in a series of images, slide them across the page, and fade out, just keep track of the last direction and use the opposite for the next one. On Fri, Dec 5, 2008 at 1:53 PM, sabrinax [EMAIL PROTECTED] wrote: If you go to the Gucci homepage:

[jQuery] Re: Simulate Link being clicked...

2008-12-07 Thread brian
Just bind doSomething() to the click event for the second link. This looks like a usability nightmare, but whatever ... On Sun, Dec 7, 2008 at 12:42 PM, SLR [EMAIL PROTECTED] wrote: First off, I'm not sure this is even possible, but I thought I'd ask... Is it possible to use jQuery (or

[jQuery] Re: jQuery Plugin -- DOMisBetter

2008-12-07 Thread brian
I despise having to deal with IE as much as the next (reasonable) person but posting a link to a page that forces some users to kill their browser process is pretty juvenile. Sure, it's right there in the URL, but still ... The plugin seems alright, though I can't think of a compelling reason to

[jQuery] Re: Simulate Link being clicked...

2008-12-07 Thread brian
No need for scripting: #thumbnails li a { display: block; height: 200px; } On Sun, Dec 7, 2008 at 1:35 PM, SLR [EMAIL PROTECTED] wrote: Just bind doSomething() to the click event for the second link. Can you expand on this? I apologize, I'm somewhat new to jQuery. This looks like a

[jQuery] Re: Dynamic Stylesheets

2008-12-07 Thread brian
Have a look here: http://www.alistapart.com/articles/alternate/ On Sun, Dec 7, 2008 at 1:17 PM, SLR [EMAIL PROTECTED] wrote: How do you dynamically add or remove stylesheets to a page? I've seen a lot of examples on how to add css styles or classes to an elment, but I haven't found

[jQuery] Re: Simulate Link being clicked...

2008-12-07 Thread brian
On Sun, Dec 7, 2008 at 2:40 PM, SLR [EMAIL PROTECTED] wrote: No need for scripting: #thumbnails li a { display: block; height: 200px; } I think you are missing what I'm trying to do... No offense meant, but I think you've misunderstood the CSS I posted. As I understand it, you want the

[jQuery] Re: Masked Input Plugin 1.2

2008-12-08 Thread brian
Very neat. I especially like the definitions. BTW, your packed version doesn't come with the license. I realise that the focus with packed is to get the file as small as possible but, if you want the license included, you should add it to the file yourself. Thanks again. I'll take it out for a

[jQuery] Re: how to image cache using jQuery?

2008-12-09 Thread brian
On Tue, Dec 9, 2008 at 9:03 AM, darwin liem [EMAIL PROTECTED] wrote: Naaah, I've check this one... it still load all the image in view port... what I want to achieve is that some sort of var imgtemp = new Image(); which will cache image however this only works for img tags not background... I

[jQuery] Re: DOMWindow resizable.

2008-12-09 Thread brian
see here: http://sonspring.com/journal/jquery-iframe-sizing On Tue, Dec 9, 2008 at 9:10 AM, m.ugues [EMAIL PROTECTED] wrote: Hallo all. I use DOMWindow (http://swip.codylindley.com/DOMWindowDemo.html) to display some content loaded via ajax call. I have a problem with DOMWindow similare

[jQuery] Re: Functions and variables

2008-12-09 Thread brian
On Tue, Dec 9, 2008 at 10:12 AM, Will [EMAIL PROTECTED] wrote: Thanks. I ready an article somewhere and it mentioned not combining old coding forms with new in reference to jQuery. It didn't make much sense to me and this confirms it. I'll continue to code with functions and such and just

[jQuery] Re: Autocomplete with JSON contacting the server frequently

2008-12-09 Thread brian
On Tue, Dec 9, 2008 at 11:11 AM, R. Rajesh Jeba Anbiah [EMAIL PROTECTED] wrote: On Dec 8, 9:30 pm, R. Rajesh Jeba Anbiah [EMAIL PROTECTED] wrote: I have noted that the JSON version/usagehttp://jquery.bassistance.de/autocomplete/demo/json.htmlis contacting the server frequently. The

[jQuery] creating unique IDs

2008-12-09 Thread brian
or: DOMWindow -- open with selector I'm writing a plugin that creates a div with a form and attaches it to the document, hidden. There may be several of these on the page so I dispensed with IDs, choosing to use class selectors to get at them to display, etc.. So far, this has been fine.

[jQuery] Re: Updating the DOM after .load

2008-12-09 Thread brian
It depends on what's inside newcontent.html and what you want to do with it. What liveQuery does, more or less, is keep track of any new elements that match selectors for things added to its queue and update them on the fly. For example, if you were planning to add new links with class, new_pie

[jQuery] Re: how to image cache using jQuery?

2008-12-09 Thread brian
On Tue, Dec 9, 2008 at 10:37 PM, darwin liem [EMAIL PROTECTED] wrote: so i cant check whether the image is really cache or not? can we bind onload()? to image? for example: $(image_id).bind(onload,function(){ imgtemp.src = '...'; $(this).css('backgroundImage','url('+imgTemp.src +')'); });

[jQuery] Re: creating unique IDs

2008-12-09 Thread brian
] wrote: Why not just define a global variable, like script type=text/javascriptvar divID = 0;/script and use that when assigning the ID, while incrementing the value for the next.. So a super quick example http://paste.pocoo.org/show/94617/ On Dec 9, 3:51 pm, brian [EMAIL

[jQuery] Re: Error getting value from server

2008-12-09 Thread brian
Please keep your threads tidy. Don't spam the list with the same question. The file that contains the line: var myvalue = %= myservervalue%; ... is a .js file, right? It's been a long time, but I'm guessing the ASP interpreter isn't set by default to parse .js files. Put the line in the head

[jQuery] Re: Error getting value from server

2008-12-10 Thread brian
This really ought to be asked on an ASP list but I'll try to explain. On Wed, Dec 10, 2008 at 3:48 AM, JQueryProgrammer [EMAIL PROTECTED] wrote: Sorry for the spam. Actually my issue is that I am trying to keep my html file neat and tidy by putting all my javascript code in a separate js

[jQuery] Re: Updating the DOM after .load

2008-12-10 Thread brian
at 10:05 AM, slandry [EMAIL PROTECTED] wrote: Brian thanks for the feedback. I'm definitely trying to render the sparklines on the HTML which is called by newcontent.html. In my example when you click the link you should see a pie chart. Instead you see the data 10,90 Here is a link

[jQuery] Re: How do I write a function to close shadowbox?

2008-12-10 Thread brian
Shadowbox.close() (I've never used it Myself, so YMMV) On Wed, Dec 10, 2008 at 4:10 PM, Rick Faircloth [EMAIL PROTECTED] wrote: For my success callback (I guess that's what you call it...) I've got a series of events after an $.ajax post. Here they are:

[jQuery] Re: hover event going to infinite loop

2008-12-11 Thread brian
It's not an infinite loop. Your cursor is passing over the div and back several times, causing the hover states to toggle. Try this: div id=divEmpDetails style=border:1px solid #000; Now, run your cursor in and out of the div several times. The toggling should run for a bit, then stop. The fix

[jQuery] externalizing script seems to break append()

2008-12-11 Thread Brian
or whether this is a bug? (Firefox 2.0.0.18, JQuery 1.2.6). Thanks, Brian

[jQuery] Re: Beginner question about toogeling a status

2008-12-11 Thread brian
On Thu, Dec 11, 2008 at 10:30 AM, heohni [EMAIL PROTECTED] wrote: Hi, this is my first post, I hope I do everything right! Most of us only post questions here when we're doing something wrong ;-) For the moment I toogle only active into inactive. Because I do not know how to send 2

[jQuery] Re: hover event going to infinite loop

2008-12-11 Thread brian
the hover event will be activated. http://cherne.net/brian/resources/jquery.hoverIntent.html http://plugins.jquery.com/project/hoverIntent On Thu, Dec 11, 2008 at 1:21 PM, Sridhar dsridha...@gmail.com wrote: Hi brian, I cannot set the width on the div tag unless the image

[jQuery] Re: Selector difficulty/removeClass

2008-12-11 Thread brian
$('#quiz') On Thu, Dec 11, 2008 at 11:25 PM, Bruce MacKay b.mac...@massey.ac.nz wrote: Hello folks, I want to remove a css class (.qyes) from every label element inside a single div (id=quiz). Each label element has an ID of the form fb*** where *** represents a unique identifier (that

[jQuery] Re: Selector difficulty/removeClass

2008-12-11 Thread brian
~ahem~ sorry 'bout that. $('label', '#quiz').removeClass('qyes'); On Thu, Dec 11, 2008 at 11:31 PM, brian bally.z...@gmail.com wrote: $('#quiz') On Thu, Dec 11, 2008 at 11:25 PM, Bruce MacKay b.mac...@massey.ac.nz wrote: Hello folks, I want to remove a css class (.qyes) from every label

[jQuery] change input[type=button] value

2008-12-11 Thread brian
Lots of false-positives googling this. input type=button id=a_button value=foo / $('#a_button').attr('value', 'bar'); Doesn't work? Or, am i losing my mind?

[jQuery] Re: change input[type=button] value

2008-12-11 Thread brian
On Fri, Dec 12, 2008 at 12:36 AM, brian bally.z...@gmail.com wrote: Lots of false-positives googling this. input type=button id=a_button value=foo / $('#a_button').attr('value', 'bar'); Doesn't work? Or, am i losing my mind? 2 rules of programers' email lists (in no particular order): 1

[jQuery] Re: change input[type=button] value

2008-12-12 Thread brian
On Fri, Dec 12, 2008 at 6:52 AM, Richard D. Worth rdwo...@gmail.com wrote: 2) Don't forget you can use .val(newValue) instead of .attr(value, newValue) Yeah, I'd tried that first, then attr() because the first wasn't working. sheepish I felt like a terniary n00b. /sheepish

[jQuery] Re: Selectors

2008-12-12 Thread brian
Thats a lot of divs. You didn't say which div you're aiming to to get at. But, I think :last doesn't work the wy you're expecting (which was my initial expectation, as well). If you add some IDs you can see how it's working: div id=div_pdfs div input name=my_file_0 size=52

[jQuery] Re: Is there a createElement equivalent in jQuery?

2008-12-12 Thread brian
I'm a bit like you in that specifying HTML feels a bit funny. I always preferred to add attributes, etc. to an object(though it could be quite tedious before jQuery). Anyway, one still needs to specify some HTML but this is a bit better: $('a /') .attr('href', '#') .attr('id',

[jQuery] Re: Would anyone care to critique my approach/code to this login scheme?

2008-12-12 Thread brian
Because your server var is not being set (or saved to the session, or whatever), this really is a Coldfusion issue. On Fri, Dec 12, 2008 at 12:14 PM, Rick Faircloth r...@whitestonemedia.com wrote: Hello, all... I appreciate everyone's help in getting my first ColdFusion/Ajax/jQuery code

[jQuery] Re: jquery ajax-built page with embedded ajax code issue

2008-12-12 Thread brian
This is probably the most asked question wrt jQuery. The reason why your newly-created links are not being handled by the ajax function is because they did not exist when the click handler was attached. Either set the click handler to be a separate function and ensure that any new links also get

[jQuery] Re: Would anyone care to critique my approach/code to this login scheme?

2008-12-12 Thread brian
On Fri, Dec 12, 2008 at 2:13 PM, Rick Faircloth r...@whitestonemedia.com wrote: Hi, Brian, and thanks for the feedback. This solution mixes jQuery and CF, so I posted it to the CF-Talk list, as well. Haven't heard from anyone there, yet. Maybe they can figure out why

[jQuery] Re: jquery ajax-built page with embedded ajax code issue

2008-12-12 Thread brian
On Fri, Dec 12, 2008 at 2:24 PM, ray rayjohnterr...@gmail.com wrote: could you show me an example of what you mean here by this, either using the code above or another example? That sounds like the 'correct' way to do it. [ set the click handler to be a separate function and ensure

[jQuery] Re: Selectors

2008-12-12 Thread brian
On Fri, Dec 12, 2008 at 2:41 PM, Diogo Neves dafne...@gmail.com wrote: hi brian, thanks for your help! well... i only suspected that $( '#div_pdfs div:last div:last' ) worked because $( '#div_pdfs div:eq(1) div:eq(1)' ) worked perfectly... that HTML is generated by javascript, it has

[jQuery] Re: jquery ajax-built page with embedded ajax code issue

2008-12-13 Thread brian
On Fri, Dec 12, 2008 at 4:30 PM, ray rayjohnterr...@gmail.com wrote: I've implemented the changes you've suggested, but I'm seeing the same issue (clicks are not being intercepted by JQuery). :-/ I do understand what you suggested, but I'm now very confused as to why it isn't working.

[jQuery] Re: creating unique IDs

2008-12-13 Thread brian
I just came across a *much* better way to do this in Andris Valums' ajax_upload plugin: var get_uid = function(){ var uid = 0; return function(){ return uid++; } }(); That's what's called a closure, btw. http://valums.com/

[jQuery] Re: jquery ajax-built page with embedded ajax code issue

2008-12-14 Thread brian
On Sat, Dec 13, 2008 at 5:05 PM, ray rayjohnterr...@gmail.com wrote: It appears that the .children portion of the code either isn't getting the .ajax_link classes, or the click handler isn't getting correctly applied. Is there a way to determine what the actual results returned are by the

[jQuery] Re: Getting PHP values remotley

2008-12-14 Thread brian
On Sat, Dec 13, 2008 at 5:48 PM, Abethebabe abrahamalra...@gmail.com wrote: Hello, I was wondering how to get a value from a php file after I send data to it using the $.ajax() method. Here's my code. jQuery: var path = $(this); var addtask = $('.inputtask').val(); $.ajax({

[jQuery] WymEditor forum

2008-12-14 Thread brian
I registered with the WymEditor forum a few hours ago and haven't received a confirmation email. Does anyone know if this is automated or someone does that manually? It's run with phpBB, FWIW. Also, there seems to be something odd happening with their site. Somehow, I ended up at this page:

[jQuery] Re: layout of a project / good practices

2008-12-15 Thread brian
On Mon, Dec 15, 2008 at 10:13 AM, Jan Limpens jan.limp...@gmail.com wrote: Hi guys, I wonder if anybody knows a good page/tutorial/etc... that explains good practices in structuring a project that uses jquery. Currently I have a mess of files that all populate the global name space with

[jQuery] Re: incompatible while creating image element with IE

2008-12-15 Thread brian
On Mon, Dec 15, 2008 at 10:41 AM, joe zhoulongh...@gmail.com wrote: $(image/).attr({src:imagesrc,alt:joe}) .mouseover(function(){this.src=imagel+imageid;}) .mouseout(function(){this.src=images+imageid;}) .appendTo($(#bc+bookrecno)); $(image src=\+imagesrc+\/)

[jQuery] Re: jQuery and PHP form problem

2008-12-15 Thread brian
On Mon, Dec 15, 2008 at 7:43 PM, Mike Alsup mal...@gmail.com wrote: You should never have an element with an id value that does not match its name value. Get that straightened out and you'll be fine. That's not true at all. Do you have a reference for that? The id attr. is solely for the

[jQuery] Re: jQuery and PHP form problem

2008-12-15 Thread brian
On Mon, Dec 15, 2008 at 8:18 PM, Magnificent imightbewrongbutidontthin...@gmail.com wrote: I'm wondering if echo'ing the jQuery script inside my PHP code will work. If I do: if($_POST['search_button']){ echo script type='text/javascript' alert('inside post branch');

[jQuery] Re: jQuery and PHP form problem

2008-12-15 Thread brian
On Mon, Dec 15, 2008 at 9:59 PM, Mike Alsup mal...@gmail.com wrote: You should never have an element with an id value that does not match its name value. Get that straightened out and you'll be fine. That's not true at all. Do you have a reference for that? The id attr. is solely for

[jQuery] Re: jQuery and PHP form problem

2008-12-15 Thread brian
On Mon, Dec 15, 2008 at 10:10 PM, Magnificent imightbewrongbutidontthin...@gmail.com wrote: Yes, the id on the form element. If I remove that, then var_dump $_POST, I'm definitely getting my form info, for example here's a var_dump of my latest search: array(2) { [search_field]= string(7)

[jQuery] Re: jQuery and PHP form problem

2008-12-15 Thread brian
$('#form_search').bind('submit', function() { alert('form sumitted'); }); What does your actual function do? Does it send anything to your PHP script?

[jQuery] Re: How to link myFunction(this) to a div

2008-12-16 Thread brian
On Mon, Dec 15, 2008 at 5:07 PM, WebGrunt bievie...@gmail.com wrote: Hi I'm new to jQuery and here's one thing that doesn't make sense. How do I link an existing function with this as argument to a div? The function to be called is really simple: function test(e) { alert(e.id);

[jQuery] Re: How to link myFunction(this) to a div

2008-12-16 Thread brian
sorry about the wrap. $(document).ready(function() { $(div.someClass).click(function() { /* note: no $() so you pass the element, * not the jQuery object */ elementTest(this); }); });

[jQuery] Re: New topic

2008-12-16 Thread brian
On Tue, Dec 16, 2008 at 2:33 PM, GoJakie goja...@gmail.com wrote: Dear Friends, I had posted a new topic half an hour ago which is not showing up??? any ideas? The one about sorting PHP tables? It's there. I've noticed that gMail doesn't include one's own posts to the list in the INBOX.

[jQuery] Re: [OT] Client side web application with jQuery

2008-12-16 Thread brian
On Tue, Dec 16, 2008 at 5:59 PM, Leandro Ardissone lardiss...@gmail.com wrote: Hi, I'm need to implement a website (intranet) that runs everything on the client side communicating to the server via RESTful requests. I'm using jQuery but my big issue at the moment is how to manage the

[jQuery] Re: What am I doing wrong here -- htmlTo?

2008-12-16 Thread brian
On Tue, Dec 16, 2008 at 5:50 PM, ken jqu...@kenman.net wrote: I am trying to do the following: 1) create an IMG 2) assign an SRC to the IMG 3) wrap the IMG in br/'s 4) insert the resultant HTML into #foo I have been hammering at this for awhile now, and am having problems; I've tried

[jQuery] Superfish: post the license, please

2008-12-16 Thread Brian
Joel Birch, Would you please state the license(s) for Superfish on the jQuery page (the page with the stars indicating the voters' rating of the plug- in)? This would put it in an easily accessible location and it would be present for every new release. thanks, Brian

[jQuery] Re: What am I doing wrong here -- htmlTo?

2008-12-17 Thread brian
On Wed, Dec 17, 2008 at 11:13 AM, ken jqu...@kenman.net wrote: I need to replace the contents of #foo. I would love to use CSS, and if I were starting anew that would be the case, but unfortunately I am working on an existing application converting the plain-jane JS to jQuery. I'm simply

[jQuery] Re: Basic help with elements and selectors

2008-12-17 Thread brian
On Wed, Dec 17, 2008 at 11:46 AM, sshefer shai.she...@gmail.com wrote: Hi, Im using the js-hotkeys plugin with a hover but am running into some issues. The below code runs well but, obviously, selects all of my position_info classes. I'd like to be able to specify $(this) so that the

[jQuery] Re: Make li list of unique json data?

2008-12-17 Thread brian
On Wed, Dec 17, 2008 at 9:49 AM, alpha tester david.oli...@rbs.co.uk wrote: Hi I'm just learning JQuery and while I've got my head around the general concepts, the real power of the logic it provides is still escaping me. I've got a page with a JSON dataset like this: var myData = {

[jQuery] Re: Basic help with elements and selectors

2008-12-17 Thread brian
On Wed, Dec 17, 2008 at 1:16 PM, sshefer shai.she...@gmail.com wrote: Hey Brian - Thanks for the response. I've tried that but get target.bind is not a function in Firebug. Any other ideas? My bad. Try: var target = $(e.target);

[jQuery] Re: Clone and HTTPS

2008-12-17 Thread brian
On Wed, Dec 17, 2008 at 1:52 PM, Mike cblaz...@gmail.com wrote: I am recieving an unsecure its on page error from an HTTPS page that looks fine with all hyperlinks. I narrowed it down to the jquery clone method, as it is cloning a hyperlink, but the href is https on their. Not sure why

[jQuery] Re: Basic help with elements and selectors

2008-12-17 Thread brian
On Wed, Dec 17, 2008 at 2:31 PM, sshefer shai.she...@gmail.com wrote: Here is my current code: $('.position_info').hover( function(e) { var target = $(e.target); target.bind('keydown', 'space', function(){

[jQuery] Re: Basic help with elements and selectors

2008-12-17 Thread brian
On Wed, Dec 17, 2008 at 4:05 PM, brian bally.z...@gmail.com wrote: On Wed, Dec 17, 2008 at 2:31 PM, sshefer shai.she...@gmail.com wrote: Here is my current code: $('.position_info').hover( function(e) { var target = $(e.target); target.bind

[jQuery] Re: Make li list of unique json data?

2008-12-17 Thread brian
On Wed, Dec 17, 2008 at 7:27 PM, Dave Methvin dave.meth...@gmail.com wrote: It might be worthwhile to generalize it and just push the original JSON record onto the list. That way the code doesn't need to change if you later need to pass more than title and link. var categories = {}, groupBy

[jQuery] Re: jQuery tips and tricks article

2008-12-17 Thread brian
Yes, good stuff. Thanks. On Wed, Dec 17, 2008 at 8:04 PM, Mike Chabot mcha...@gmail.com wrote: Jon, Thanks for writing that article. It was very clear and helpful. -Mike Chabot On Tue, Dec 16, 2008 at 10:51 AM, jonhobbs jon.hobbs.sm...@gmail.com wrote: Hi guys, I hope nobody minds me

[jQuery] Re: Make li list of unique json data?

2008-12-18 Thread brian
On Thu, Dec 18, 2008 at 4:49 AM, alpha tester david.oli...@rbs.co.uk wrote: Hmmm... struggling to read from this new dataset using the code provided - can someone point out the stupidity in the following code: html head script type=text/javascript var myData = { records : [ { CATEGORY

[jQuery] Re: Superfish: post the license, please

2008-12-19 Thread Brian
Thank you. On Dec 17, 2:19 am, Joel Birch joeldbi...@gmail.com wrote: No problem. If you view that page again you should see this information added to the end of the plugin description. Hope this is sufficient. Thanks for the suggestion. JoelBirch.

[jQuery] Superfish - negative margin on hover in IE

2008-12-22 Thread Brian
I would like to put a negative margin on the hover of the LI's in a superfish jQuery menu on a vertical menu. When I do this, in IE on the hover, the elements go below the rest of the menu. It's fine in Firefox. Here's my starting code: /*** adding sf-vertical in addition to sf-menu creates a

[jQuery] Re: Beginner question about toogeling a status

2008-12-30 Thread brian
On Mon, Dec 22, 2008 at 7:20 AM, heohni heidi.anselstet...@consultingteam.de wrote: This: status.addClass(the_new_status); prints the new status, but the browser does not show the image which is connected with the new status class? Can I somehow refresh the div only? Is that possible?

[jQuery] Re: Posting multiple values from a checkbox

2008-12-30 Thread brian
On Wed, Dec 31, 2008 at 1:16 AM, Michael Geary m...@mg.to wrote: There is nothing wrong with doing both -- nesting the input inside the label and using the for attribute. Or is there? I'm in the habit of doing so because I sometimes change my mind about nesting inputs inside their labels.

[jQuery] Re: Autocomplete plugin rare behaviour

2008-12-30 Thread brian
On Wed, Dec 31, 2008 at 2:14 AM, R0bb13 robertorebo...@gmail.com wrote: Hi I'm using the autocomplete plugin to edit the name of a product in a CMS. When the name field (with autocomplete) is empty the autocomplete works perfectly. However when the field is not empty and you remove the

[jQuery] Re: Autocomplete plugin rare behaviour

2008-12-31 Thread brian
On Wed, Dec 31, 2008 at 5:29 AM, R0bb13 robertorebo...@gmail.com wrote: The text input has an initial value but the autocomplete does not care about it. Sometimes it works and some times it doesn't. However the ajax requests for the text in the input is done but the results are not displayed

  1   2   3   4   5   6   7   8   >