[jQuery] Re: jquery ui dialog get element from button

2009-07-24 Thread Carlo Landmeter
ete": function() {window.location = "/home/"+ > $(this).attr > ("id") ;}, >                        "Cancel": function() {$(this).dialog("close");} >                }); > >                $("#dialog").dialog("open"); >

[jQuery] Re: jquery ui dialog get element from button

2009-07-22 Thread Carlo Landmeter
Sorry i forgot to add it. The button is placed before the dialog div. Carlo On Tue, Jul 21, 2009 at 2:43 PM, Mean Mike wrote: > > Carlo buddy where is the button with the id that your looking for ? > > On Jul 21, 5:06 am, Carlo Landmeter wrote: >> I'm not able to se

[jQuery] Re: jquery ui dialog get element from button

2009-07-21 Thread Carlo Landmeter
("#dialog").dialog("open"); }); }); Then somewhere at the end of the page I have: Hope this helps. Carlo On Mon, Jul 20, 2009 at 9:11 PM, Mean Mike wrote: > > can I see the html that goes with this code ? > > On Jul 18, 4:48 am, Carlo Landmeter

[jQuery] Re: jquery ui dialog get element from button

2009-07-18 Thread Carlo Landmeter
essage = "You are about to do something: "; >                $(".ui-dialog-content").text($message + $(this).attr("id")); >                var somevar = $(this).attr("id"); >                $("#dialog").dialog("open"); >        }); > }); > [/code]

[jQuery] Re: jquery ui dialog get element from button

2009-07-17 Thread Carlo Landmeter
ui-dialog-title-dialog").text("Attention"); var $message = "You are about to do something: "; $(".ui-dialog-content").text($message + $(this).attr("id")); var $somevar = $(this).attr("id"); }); }); On Fri, Jul 17, 2009 at 1:14 AM, Ch

[jQuery] Re: jquery ui dialog get element from button

2009-07-16 Thread Carlo Landmeter
t; $('#dialog').dialog('open'); > }); > > $("#dialog").dialog({ > autoOpen:false, > modal:true, > overlay: {backgroundColor: "#000",opacity: 0.5}, > resizable:false, > butto

[jQuery] jquery ui dialog get element from button

2009-07-16 Thread Carlo Landmeter
Hi, I have probably a simple question which i cannot seem to find the answer to. I have a series of images which i want to use as buttons to trigger a dialog. Inside this dialog i need the ID of the image button (or any other element). But it seems after I load the dialog i cannot alter the conte

[jQuery] Re: Best way to do this for multiple input fields?

2008-12-19 Thread Carlo Landmeter
I'm not 100% clear on what you are trying to accomplish > > but you can select items by what an attribute "starts with" > > http://docs.jquery.com/Selectors/attributeStartsWith#attributevalue > > so > > $("input[id^='item']") > &

[jQuery] Best way to do this for multiple input fields?

2008-12-18 Thread Carlo Landmeter
Hi, I'm trying to create a form with multiple input fields. These fields should have a button to be able to check its content with .ajax. I am able to create this function for a single field, but i don't know what the best way would be to do it for multiple input fields: input#item0 input#item1 i