[jQuery] Re: detecting edge cases when swapping divs

2009-12-14 Thread robert...@gmail.com
Abbey - Here you go - this works for me in IE http://www.greenearthcrew.com/jquery/moverows.htm On Dec 14, 5:43 pm, Abbey i.am.wait...@gmail.com wrote: @Robert The code didn't work for me. @Charlie I tried length=0 and length=1 and the pane always goes past the footer div. $(.pane

[jQuery] Re: detecting edge cases when swapping divs

2009-12-13 Thread robert...@gmail.com
I am trying to learn Jquery and tried to tackle this one. I figured you must identify id and class, then rename each after a movement. This seems to work ok - but I am sure there is a more elegent way to do it. !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN http://

[jQuery] Capture Mouse XY

2009-10-19 Thread robert...@gmail.com
I am hoping someone can guide me in the right direction. I need a script or function that will capture the X Y position of the mouse click and set it in a variabvle that I will store in DB. Caveat - I need it to be XY position relative to the top left position of a image *(floor plan map)...so

[jQuery] Re: Split Form field into array

2009-10-08 Thread robert...@gmail.com
/html On Oct 7, 4:06 pm, James james.gp@gmail.com wrote: I've set up a sample page on JS Bin:http://jsbin.com/oqeco Check the source for the code. On Oct 7, 2:38 am, robert...@gmail.com robert...@gmail.com wrote: It seems straight forward but I still need some advice. I have this so

[jQuery] Re: Split Form field into array

2009-10-08 Thread robert...@gmail.com
Thanks again to James Figured this easy one out myself: just changed: for (var i in rows) { var parts = rows[i].split(' '); partNum[i] = escape( parts[0] ); qty[i] = escape( parts[1] ); if(qty[i]==undefined|qty[i]==){qty[i]= 1}; } On Oct 8, 9:12 am, robert...@gmail.com

[jQuery] Re: Split Form field into array

2009-10-07 Thread robert...@gmail.com
(return). Then for each of those lines, split it again by (space). (Store all of these in an array(s).) Then you can use the join() function to add , (comma) to a list in your array. On Oct 6, 1:32 pm, robert...@gmail.com robert...@gmail.com wrote: I really hope someone can assist

[jQuery] Split Form field into array

2009-10-06 Thread robert...@gmail.com
I really hope someone can assist: I am trying to take a form field: textarea name=PartNum cols=15 rows=5 id=PartNum value=/ textarea The user will put in part numbers , space, qty, carraige return ,then another entry on the next lineit will look like this: bd 2 bd1200 5 I want to

[jQuery] Re: Joining values in ajax load

2009-09-02 Thread robert...@gmail.com
going to have to provide some HTML of your #CustNum and #PartNum. On Sep 1, 2:54 pm, robert...@gmail.com robert...@gmail.com wrote: Newbie here - Whenever I try to join variables I get results for first item (CustNum) only...PartNum returns as 'undefined'. Can someone tell me the problem

[jQuery] Re: Joining values in ajax load

2009-09-02 Thread robert...@gmail.com
Resolved...The issue was the recordset query ...the Jquery code was ok afterall. My lesson learned is to find a better way to test errors ... Thx On Sep 2, 9:26 am, robert...@gmail.com robert...@gmail.com wrote: I was trying to simplify my question and consequently may have not asked

[jQuery] Joining values in ajax load

2009-09-01 Thread robert...@gmail.com
Newbie here - Whenever I try to join variables I get results for first item (CustNum) only...PartNum returns as 'undefined'. Can someone tell me the problem with this code: $(document).ready(function() { $(.mybutton).click(function(event) { $(#myDiv).load(Test.asp?CustNum=+ $('#CustNum').val()

[jQuery] Set value in Parent

2009-06-11 Thread robert...@gmail.com
Hello, I have a page in an Iframe and when the user clicks a image (href), I want a value to be set in the parent page. I don't know why this is not working...please assist. In the iframe page , dollar1 is the id of the Imagebutton, then I have a hidden variable id= setEndUser. On the parent