[jQuery] Re: Offset changing event

2009-03-19 Thread Muhammad Zaheer Asghar
http://lattestphones.blogspot.com/

http://latesttechnologyblog.blogspot.com/

http://home-safety-tips.blogspot.com/


On 3/19/09, John Smith master9...@gmail.com wrote:


 Hi everyone

 I have outer div #outer with overflow hidden and absolutely positioned
 bigger container #inner inside it. Outerdiv is cutting off innerdiv.
 So i desided append #inner to body and set its position depending of
 #outer offset. Now how do i get event if outerdiv offset is changed so
 i can set new position to #inner. Is there any plugin for that



[jQuery] Re: iCal browser

2009-03-19 Thread Muhammad Zaheer Asghar
http://lattestphones.blogspot.com/

http://latesttechnologyblog.blogspot.com/

http://home-safety-tips.blogspot.com/


On 3/19/09, cool.imps cool.i...@gmail.com wrote:


 This application allows a user to interactively browse the contents of
 any ical (.ics,.vcs) formatted files available in the net

 http://coolimps.brinkster.net

 I would appreciate comments and feedback



[jQuery] Re: ajaxForm File Upload Issue

2009-03-19 Thread Muhammad Zaheer Asghar
http://lattestphones.blogspot.com/

http://latesttechnologyblog.blogspot.com/

http://home-safety-tips.blogspot.com/


On 3/19/09, Pascal Zajac eaglereloa...@gmail.com wrote:


 Hi guys (and probably Mike directly given how quickly he answers
 these),

 I've been a long time user of the ajaxForm plugin but as of right now
 I cannot get file uploads happening. It's the same story you can read
 on here a tonne of times - the form submits fine over POST as AJAX but
 as soon as you fill in the file upload field, it bombs. The catch is,
 I don't have any fields with the name/ID of 'submit' in the form - the
 submit button is id=submit_button and name=sbmt_button (because
 recently you were just matching whether the name started with submit
 at all so I changed it). I've also tried changing the ID to
 sbmt_button with no change.

 I'm using jQuery 1.3.2 and v2.24 of the form plugin, and I can provide
 access to the pages it's happening on if requested.

 Thanks in advance.



[jQuery] Re: Superfish animation when hiding menus?

2009-03-19 Thread Muhammad Zaheer Asghar
http://lattestphones.blogspot.com/

http://latesttechnologyblog.blogspot.com/

http://home-safety-tips.blogspot.com/


On 3/18/09, TommyB m...@tommyb.com wrote:


 Hello,

 Does Superfish support hiding menus with animation as well as when
 showing them?

 Thanks,

 TommyB



[jQuery] Re: iCal Calendar format file browser

2009-03-19 Thread Muhammad Zaheer Asghar
http://lattestphones.blogspot.com/

http://latesttechnologyblog.blogspot.com/

http://home-safety-tips.blogspot.com/


On 3/19/09, cool.imps cool.i...@gmail.com wrote:


 With this application you can interactively browse the contents of
 any .ics .vcs format Calendar files



[jQuery] Re: Do you need authorization for SVN import???

2009-03-19 Thread Muhammad Zaheer Asghar
http://lattestphones.blogspot.com/

http://latesttechnologyblog.blogspot.com/

http://home-safety-tips.blogspot.com/


On 3/18/09, J.V. servicefol...@gmail.com wrote:


 I am using Eclipse SVN subclipse plugin.
 I can browse all code on:
 http://jqueryjs.googlecode.com/svn

 but when I need to import it locally it asks me for credentials:
 I tried to leave it blank or use  guest,  but it throws the error:
 -
 import -m  D:/SANDBOX/zxy
 http://jqueryjs.googlecode.com/svn/trunk/jquery
Authorization failed
 svn: MKACTIVITY of '/svn/!svn/act/d0b979c6-50ec-0449-
 ae92-35a848b66c9a': authorization failed (http://
 jqueryjs.googlecode.com)

The operation was interrupted
 svn: Operation canceled
 --
 How can I import it? Of what client are you using?

 Thanks for help,
 Jan



[jQuery] Re: Can't select link in custom xml in firefox

2009-03-19 Thread Muhammad Zaheer Asghar
http://lattestphones.blogspot.com/

http://latesttechnologyblog.blogspot.com/

http://home-safety-tips.blogspot.com/


On 3/19/09, rossallan rossal...@gmail.com wrote:


 I'm trying to select the text in the link element in the xml below:

 press_releases
 press_release
titletitle text/title
teaserteaser text/teaser
publication_datepublication date/publication_date
linkhttp://www.linkgoeshere.com/link
link_typeexternal/link_type
 /press_release
 press_releases

 Using the following code:

 $(xml).find('press_release').each(function() {

var linkText = $(this).children(link).text();

 });

 This works in IE, however Firefox returns nothing (I can select all
 the other elements)

 If I alert:

 $(this).text()

 I can see the entire object including the link text. However If I
 alert:

 $(this).children().text()

 I can see the everything but the link element text.

 I presume the fact that link is an HTML tag that only contains
 attributes is causing a conflict here, I *might* be able to get the
 xml changed but would rather not if there's an easy solution.



[jQuery] Re: jQuery checkbox checked attribute only enters in IE

2009-03-19 Thread Muhammad Zaheer Asghar
http://lattestphones.blogspot.com/

http://latesttechnologyblog.blogspot.com/

http://home-safety-tips.blogspot.com/


On 3/18/09, Greg Kass greg.k...@ardishealth.com wrote:


 I have the following code (this is a minimized version of the actual code
 to demonstrate what is happening).  The code inserts form fields from data
 contained in an object:


jQuery(document).ready(function() {
var fieldName = optin;
var attrib = {
type:checkbox, className:checked,
 checked:checked, value:1, name:promo-optin, id:promo-optin
}
var inputType = attrib.type;
var inputHTML =
 (inputType===select)?select/select:input type='+inputType+' /;

inputHTML =
 jQuery(div+inputHTML+/div).find(input,select).each(function(){
jQuery(this).attr(id,fieldName);
for (x in attrib) {
if (x!==type) {
jQuery(this).attr(x,attrib[x]);
}
}
}).end().html();
jQuery(body).append(inputHTML);
})

 Every attribute in the attrib object is added to the input tag correctly in
 IE6.  In FF2, Safari, and Chrome, the checked attribute is not added to
 the tag, and therefore the checkbox is not checked.  (I haven't bothered to
 check IE7 and FF3 yet)  Here is the actual tag from FF, retrieved via
 Firebug:

 input type=checkbox id=promo-optin class=checked value=1
 name=promo-optin/

 Changing the value of checked from checked to true or true doesn't
 make a difference, either.  How do I get the checked attribute to add
 properly?





[jQuery] Re: How to prevent default action of *blur* event?

2009-03-19 Thread Muhammad Zaheer Asghar
http://lattestphones.blogspot.com/

http://latesttechnologyblog.blogspot.com/

http://home-safety-tips.blogspot.com/


On 3/19/09, ScottD ads...@gmail.com wrote:


 I have a code block like the following:

 $(document).ready(function(event) {
$('#txtField').blur(function() {
if (invalid(this.value))
{
event.preventDefault();
//display error message
}
});
 });

 My purpose is to check for the input the users key-in and keep the
 focus at the current text field if the input is invalid. But when I
 jump to other fields by TAB or by mouse clicking, everything happens
 as normal. Do you suggest any way to prevent the changing focus
 action?
 Indeed, the W3C DOM Event Specification states that *blur* event is
 not cancelable, so I can understand why its default action cannot be
 prevented. But how come when I try to view event.cancelable in
 Firefox, it shows *true*?!
 If I replace event.preventDefault() with $(this).focus(), it works in
 IE, but not in Firefox.



[jQuery] Re: Sortable problems

2009-03-19 Thread Muhammad Zaheer Asghar
http://lattestphones.blogspot.com/

http://latesttechnologyblog.blogspot.com/

http://home-safety-tips.blogspot.com/


On 3/18/09, err_ok jack.regn...@googlemail.com wrote:


 I am having some problems with the sortable plugin, most annoyingly in
 firefox instead of drag and drop functionality it seems to be click
 once then click again to drop.. but it doesn't seem to work at
 consistently, this problem isn't apparent in other demo's I have tried
 to I am assuming it is a problem on my end, also I can't get scrolling
 while dragging to work on any browser that I have tried. Any help
 would be great!

 JQuery code as follows;

$(document).ready(function() {
$(#library-table).sortable({
items  : '.library-item',
cursor : 'move',
handle : '.handle',
scroll : true,
update : function () {
$.post('/libraries/sort',
 '_method=putauthenticity_token='+AUTH_TOKEN+''+$(this).sortable
 ('serialize'));
}
});
});

 an HTML Example;

 div id=library-table class=ui-sortable
div class=library-item id=listItem-1
%= image_tag '/images/pdf.png', :height = '40px',
 :class
 = :handle%
h3%= library.title %/h3
p%= library.desc %/p
ul
li%= link_to Download,
 library.doc.url(), :target = :blank
 %/li
li%= link_to 'Delete', library, :confirm
 = 'Are you
 sure?', :method = :delete % | /li
li%= link_to Edit,
 edit_library_path(library.permalink), :rel
 = 'facebox' % | /li
/ul
/div2
div class=library-item id=listItem-2
%= image_tag '/images/pdf.png', :height = '40px',
 :class
 = :handle%
h3%= library.title %/h3
p%= library.desc %/p
ul
li%= link_to Download,
 library.doc.url(), :target = :blank
 %/li
li%= link_to 'Delete', library, :confirm
 = 'Are you
 sure?', :method = :delete % | /li
li%= link_to Edit,
 edit_library_path(library.permalink), :rel
 = 'facebox' % | /li
/ul
/div
/div

 I do not get any errors in firebug, I am quite stumped. Any help would
 be much appreciated!

 Jack

 



[jQuery] Re: iCal Calendar format file browser

2009-03-19 Thread Muhammad Zaheer Asghar
http://lattestphones.blogspot.com/

http://latesttechnologyblog.blogspot.com/

http://home-safety-tips.blogspot.com/


On 3/18/09, coolimps vasanth.de...@gmail.com wrote:


 This web application browses .ics and .vcs iCal Calendar files

 http://coolimps.brinkster.net