[jQuery] Re: Display google.com in a Div

2009-03-31 Thread sliver
I think you should read up on what an img tag is http://www.w3.org/TR/REC-html40/struct/objects.html#h-13.2 And then to solve your problem, read up on the iframe tag http://www.w3.org/TR/html401/present/frames.html#h-16.5 Essentially, swap out the img tag with an iframe tag. On Mar 31, 5:15 

[jQuery] Re: Display google.com in a Div

2009-03-31 Thread sliver
if it was not clear Another Idea ? Regards Emilien On 31 mar, 13:39, sliver sliver2...@gmail.com wrote: I think you should read up on what an img tag ishttp://www.w3.org/TR/REC-html40/struct/objects.html#h-13.2 And then to solve your problem, read up on the iframe taghttp://www.w3.org/TR

[jQuery] Re: bind to front of event stack

2009-03-30 Thread sliver
K... made some updates and seems to work perfectly. (Also added a reverseStack function)... any feedback on this approach? http://snipplr.com/view/13556/jquery-event-stack-binder/ On Mar 30, 12:23 am, sliver sliver2...@gmail.com wrote: Actually, I need to make some changes... I wasn't

[jQuery] Re: bind to front of event stack

2009-03-29 Thread sliver
Thanks Eric! I made some adjustments to your code (to make it a bit more readable for me and to essentially just splice in the bound function to the stack in the desired location). You can check out the changes here: http://snipplr.com/view/13556/jquery-event-stack-binder/ On Mar 27, 10:19 

[jQuery] Re: String to Array

2009-03-29 Thread sliver
This is more of a general javascript question rather than jQuery... To answer your question though: first, you would need to make the string resemble an actual array structure: var x = '[[1,2,3],[1,2],[a],[[1],[asw]]]'; then you could simply use eval(x). On Mar 29, 11:31 am, Pronojit

[jQuery] Re: bind to front of event stack

2009-03-29 Thread sliver
Actually, I need to make some changes... I wasn't correctly setting the events object to the new order. On Mar 29, 5:23 pm, sliver sliver2...@gmail.com wrote: Thanks Eric! I made some adjustments to your code (to make it a bit more readable for me and to essentially just splice in the bound

[jQuery] bind to front of event stack

2009-03-27 Thread sliver
Purpose: You have a number of bound events of a specific type to an element that are applied depending on specific user interactions. However, when one of them is bound, it needs to be fired first and then prevent the others from being fired until it has been unbound and then return normal

[jQuery] Re: Retrieving values from elements of the same class

2009-03-27 Thread sliver
alert($('.approve').prev().val()); == alert($(this).prev().val()); On Mar 27, 1:23 pm, Thierry lamthie...@gmail.com wrote: For the following code: script src=jquery-1.3.2.js type=text/javascript/script script typetext/javascript $(document).ready(function() {    

[jQuery] Re: Plugin to display large image of thumbnail on hover

2009-03-27 Thread sliver
You could easily go to http://plugins.jquery.com/ and search thumbnail in the search box... first entry for me was Thumbnail hover popup. On Mar 27, 9:39 am, banacan banaca...@gmail.com wrote: As the subject says, I'm looking for a plugin that will display a larger image of the thumbnail when

[jQuery] Re: Suggestion on solution for array to new html content

2009-03-24 Thread sliver
($.map(arr,function(a){return 'div'+a.content +'/div';}).join('')).children('div').each(function(i,a){$(a).data ('testValue',arr[i].data)}).end().appendTo('body'); }); On Mar 23, 8:26 pm, sliver sliver2...@gmail.com wrote: Hi all, Ive been exploring various solutions for the following

[jQuery] Suggestion on solution for array to new html content

2009-03-23 Thread sliver
Hi all, Ive been exploring various solutions for the following and was interested to hear other opinions: From AJAX call: [{content: 'some html 1', data: 'some data 1'}, {content: 'some html 2', data: 'some data 2'}, ... , {content: 'some html N', data: 'some data N'}] Desired: Take the array

[jQuery] Re: css method on span reports block?

2009-03-02 Thread sliver
Bump... Is this an intended change in 1.3.2? I don't see anything about it in the release notes... On Mar 1, 1:59 pm, sliver sliver2...@gmail.com wrote: Is this a bug in 1.3.2 then? On Mar 1, 1:16 pm, Frederik Ring frederik.r...@gmail.com wrote: Looks like this is a 1.3.2 issue I think

[jQuery] Re: data object not included in clone?

2009-03-02 Thread sliver
If cloning does not copy the associated data objects, how can you do a complete copy all associated data objects to the cloned element? On Mar 1, 2:05 pm, sliver sliver2...@gmail.com wrote: When cloning and element, you can pass a boolean value of true to copy event handlers... what about

[jQuery] Re: data object not included in clone?

2009-03-02 Thread sliver
I've searched around quite a bit... and maybe I am missing the appropriate key words, but I don't see a jquery method for copying/ retrieving all associated data objects from an element. On Mar 2, 8:41 am, sliver sliver2...@gmail.com wrote: If cloning does not copy the associated data objects

[jQuery] css method on span reports block?

2009-03-01 Thread sliver
Im not sure if this is intended, but it leads to some unexpected results: console.log($('span/').css('display')); -- 'block' According to W3, span's default display value is inline. Any reason for the switch? Also, say you have a class definition in a style sheet: .inline { display:

[jQuery] Does removing an element automatically remove bound events from memory?

2009-03-01 Thread sliver
Say you have a page that will alter the DOM extensively through user interaction as well as binding events to those elements. My question is, are bound events to removed elements automatically unbound/removed as well?

[jQuery] Re: Does removing an element automatically remove bound events from memory?

2009-03-01 Thread sliver
Thanks for the quick response! On Mar 1, 1:42 pm, mkmanning michaell...@gmail.com wrote: As of 1.2.2 bound events and cached data are removed if you use .remove () or .empty() On Mar 1, 9:52 am, sliver sliver2...@gmail.com wrote: Say you have a page that will alter the DOM extensively

[jQuery] Re: css method on span reports block?

2009-03-01 Thread sliver
Is this a bug in 1.3.2 then? On Mar 1, 1:16 pm, Frederik Ring frederik.r...@gmail.com wrote: Looks like this is a 1.3.2 issue I think. Just tried it with 1.2.6 and it returned inline in both cases. On Mar 1, 6:31 pm, sliver sliver2...@gmail.com wrote: Im not sure if this is intended

[jQuery] data object not included in clone?

2009-03-01 Thread sliver
When cloning and element, you can pass a boolean value of true to copy event handlers... what about the data object from jQuery? console.log($('div/').data('foo', 'bar').clone(true).data('foo')); -- undefined

[jQuery] Trigger event for children on parent element remove event

2009-02-25 Thread sliver
Is there a way to trigger an event one element when another element is say, removed or hidden? In other words, maybe a way to register any number of elements to another element with callbacks to be called when a certain event occurs to the main element.

[jQuery] Re: Help validating dynamic form elements

2009-02-25 Thread sliver
You could also do something like: if ($('#frmRequests :text.attrib').filter(function() {return $ (this).val().length;}).size() == 0) { $(#attribAlert).text(at least one attribute must be filled in); return false; } On Feb 25, 6:12 pm, netcomp ra...@netcompulsion.com wrote: just a

[jQuery] Re: Proper jQuery object creation for chaining

2008-10-16 Thread sliver
Thanks Josh... I found a nice simple Class constructor that plays very nicely with jQuery and will simply use that for what I need to do. On Oct 15, 4:51 pm, Josh Nathanson [EMAIL PROTECTED] wrote: Hey Sliver, It looks like you are expecting jQuery to work like Prototype does...I'm not too

[jQuery] Proper jQuery object creation for chaining

2008-10-15 Thread sliver
Sorry in advance if this is confusing... I am new to jQuery (converting myself from Prototype), and as such I am finding situations where I need to create a new object, which I would have done with a class in Prototype (as such, doesn't make sense for it to appear anywhere except the start of a