[jQuery] Re: Beginners problem with selectors

2009-11-23 Thread Prashant
Hi ,

I hope it would helpfull.






function getLastTR()
{

alert($("#tbl tr:last").html());

}




first tr
II tr
III tr






thanks
Prashant
On Nov 19, 7:20 pm, jkrassman  wrote:
> Hi, sorry if I am posting in the wrong group?
>
> I am having a simple nested table, looks like this
>
> 
> 
> 
> test
> New test
> 
> 
> 
>
> So my problem is that I cant get the last TR within the first table?
>
> var Obj = $("table#list tbody>tr:last");
>
> Of course it looks at the last  in the table, but how should I
> manage to get the last TR in the first table?
>
> Best regards, Joakim


[jQuery] Re: JQuery and ColdFusion

2009-11-23 Thread Prashant
Hi,

in your following statement:
window.location.href = 'index.cfm?fuseaction=myapp.home';

if you try the full path OR relative url of index.cfm then i guess
your problem would get solved.
e.g. window.location.href = 'index.cfm?fuseaction=myapp.home';

thanks
Prashant

On Nov 20, 12:28 pm, Westside  wrote:
> Hi,
>
> I'm trying to use ColdFusion and JQuery but I'm having some problems
> setting/reading session variables.  I have a login box that I use
> jquery to do the ajax work.  In my ajax call I have this snippet
>
> $(form).ajaxSubmit({
>
> type: 'POST',
>
> dataType: 'json',
>
> url: '/myapp/model/System.cfc?method=authenticate&returnFormat=json'
>
> success: function(resp, textStatus){
>       if(resp[0]==true){
>         window.location.href = 'index.cfm?fuseaction=myapp.home';
>       }
>
> });
>
> So within System.cfc there is a method called "authenticate", in this
> method I'm trying to set some session variables (e.g, session.email,
> session.title) that I can reference once the user is logged in.   So
> if the response from the ajax call returns true, the user gets
> redirected to this other page using window.location.href shown above.
>
> For some reason though, these session variables don't exist
> (session.email, session.title)  when I try to cfdump them out on the
> 'index.cfm?fuseaction=myapp.home' page.  I can dump them in the CFC
> and see that they are getting set correctly, but outside the CFC, they
> dont show up.  Can anyone please shed some light on why I can't see my
> session variables?  It mus thave something to do with calling the CFC
> directly or something
>
> Thanks


[jQuery] Re: Date range Picker jquery

2009-06-28 Thread Prashant Khanal
hmmhave a look at the code below and its the one provided in that
example:

$(function()
{
$('.date-pick').datePicker()
$('#start-date').bind(
'dpClosed',

function(e, selectedDates)
{
var d = selectedDates[0];
if (d) {
d = new Date(d);
$('#end-date').dpSetStartDate(.asString());
}
}
);
$('#end-date').bind(

'dpClosed',
function(e, selectedDates)
{
var d = selectedDates[0];
if (d) {
d = new Date(d);

$('#start-date').dpSetEndDate(d.addDays(-1).asString());
}
}

);
});

replace *d.addDays(1) and d.addDays(-1) *with just *d*. This will allow you
to set same day as start date and end date if this is what you wanted.
On Sun, Jun 28, 2009 at 4:19 PM, bharani kumar <
bharanikumariyer...@gmail.com> wrote:

> hi ,
> y tried but cant changes its functionality ,
>
> Thanks
>
> On Sun, Jun 28, 2009 at 11:19 AM, Prashant Khanal <
> prashantkha...@gmail.com> wrote:
>
>> you mean to say the problem is that you are not allowed to select the same
>> day as the end date. That can be changed. If you check the source code
>> provided and play a little with that code.
>>
>>
>>
>>
>> On Sun, Jun 28, 2009 at 11:25 AM, bharani kumar <
>> bharanikumariyer...@gmail.com> wrote:
>>
>>> The plugin is fine , but u see ,some time my customer the journey may be
>>> one day,but its not possible in that plugin 
>>>
>>> thanks
>>>
>>>
>>> On Sun, Jun 28, 2009 at 9:01 AM, Prashant Khanal <
>>> prashantkha...@gmail.com> wrote:
>>>
>>>> check this out
>>>> this might help you
>>>>
>>>> http://www.kelvinluck.com/assets/jquery/datePicker/v2/demo/datePickerStartEnd.html
>>>>
>>>>
>>>> On Sat, Jun 27, 2009 at 8:17 PM, bharani kumar <
>>>> bharanikumariyer...@gmail.com> wrote:
>>>>
>>>>>
>>>>>
>>>>> Hi
>>>>>
>>>>> Tell the name of the plugin for
>>>>> datePickers with start and end dates
>>>>> Thanks
>>>>>
>>>>> B.S.Bharanikumar
>>>>>
>>>>>
>>>>
>>>
>>>
>>> --
>>> Regards
>>> B.S.Bharanikumar
>>> http://php-mysql-jquery.blogspot.com/
>>>
>>
>>
>
>
> --
> Regards
> B.S.Bharanikumar
> http://php-mysql-jquery.blogspot.com/
>


[jQuery] Re: Date range Picker jquery

2009-06-27 Thread Prashant Khanal
you mean to say the problem is that you are not allowed to select the same
day as the end date. That can be changed. If you check the source code
provided and play a little with that code.



On Sun, Jun 28, 2009 at 11:25 AM, bharani kumar <
bharanikumariyer...@gmail.com> wrote:

> The plugin is fine , but u see ,some time my customer the journey may be
> one day,but its not possible in that plugin 
>
> thanks
>
>
> On Sun, Jun 28, 2009 at 9:01 AM, Prashant Khanal  > wrote:
>
>> check this out
>> this might help you
>>
>> http://www.kelvinluck.com/assets/jquery/datePicker/v2/demo/datePickerStartEnd.html
>>
>>
>> On Sat, Jun 27, 2009 at 8:17 PM, bharani kumar <
>> bharanikumariyer...@gmail.com> wrote:
>>
>>>
>>>
>>> Hi
>>>
>>> Tell the name of the plugin for
>>> datePickers with start and end dates
>>> Thanks
>>>
>>> B.S.Bharanikumar
>>>
>>>
>>
>
>
> --
> Regards
> B.S.Bharanikumar
> http://php-mysql-jquery.blogspot.com/
>


[jQuery] Re: Date range Picker jquery

2009-06-27 Thread Prashant Khanal
check this out
this might help you
http://www.kelvinluck.com/assets/jquery/datePicker/v2/demo/datePickerStartEnd.html

On Sat, Jun 27, 2009 at 8:17 PM, bharani kumar <
bharanikumariyer...@gmail.com> wrote:

>
>
> Hi
>
> Tell the name of the plugin for
> datePickers with start and end dates
> Thanks
>
> B.S.Bharanikumar
>
>


[jQuery] Re: when is what ready?

2009-06-22 Thread Prashant Khanal
$(function() {.}); is shorthand for $(document).ready(function(){.
>
> });


whoa!..i wasn't aware of that..Thanks anyway.


On Mon, Jun 22, 2009 at 3:05 PM, Liam Potter wrote:

>
> $(function() {.}); is shorthand for
> $(document).ready(function(){.});
>
> Use this, it will check if the page content is loaded before firing.
>
> $(window).load(function() {
> alert( "hello" );
> });
>
> Prashant Khanal wrote:
>
>> i guess you should use $(document).ready(function(){.});
>> but keep in mind this fires after DOM is loaded and before page contents
>> are loaded.
>> http://www.learningjquery.com/2006/09/introducing-document-ready
>>
>> On Mon, Jun 22, 2009 at 1:06 PM, Peter Marino > marino.pe...@gmail.com>> wrote:
>>
>>Hi jQuery,
>>
>>I assumed when I used the
>>$(function() {
>>alert( "hello" );
>>});
>>
>>that the page was finished loading? but what I see is that the
>>popup alert comes before my images on my page
>>are finished loading? is this correct?
>>
>>I need to do something to my page when everything is done
>>loading.. how does one do that?
>>
>>Peter
>>
>>--Power Tumbling - http://www.powertumbling.dk
>>OSG-Help - http://osghelp.com
>>
>>
>>


[jQuery] Re: when is what ready?

2009-06-22 Thread Prashant Khanal
i guess you should use $(document).ready(function(){.});
but keep in mind this fires after DOM is loaded and before page contents are
loaded.
http://www.learningjquery.com/2006/09/introducing-document-ready

On Mon, Jun 22, 2009 at 1:06 PM, Peter Marino wrote:

> Hi jQuery,
> I assumed when I used the
>
> $(function() {
> alert( "hello" );
> });
>
> that the page was finished loading? but what I see is that the popup alert
> comes before my images on my page
> are finished loading? is this correct?
>
> I need to do something to my page when everything is done loading.. how
> does one do that?
>
> Peter
>
> --
> Power Tumbling - http://www.powertumbling.dk
> OSG-Help - http://osghelp.com
>


[jQuery] jqModal - ajax response

2009-06-17 Thread prashant roy

Hi,

I am using jqModal to pop up the modal dialog box.
I want to check the content of loaded request in jqModal dialog box at
the time of  showing this jqModal dialog box.

its same thing like i want to have responseText of ajax call for this
JqModal dialog bo.

I know it has few methods for its callback like onShow/onHide,OnLoad
but how i can check returned content from ajax for this jQmodal.


-- 
Prashant Roy


[jQuery] Comparison of jQuery Multi function Table Plugins : that filter rows, sort column /s and Paginate Records Pagination and allows in place editing

2008-07-11 Thread Prashant Bhate

Hi,

There are couple of jQuery Plugins that sort, filter and paginate the
table ...

http://plugins.jquery.com/project/ColumnFilters
http://plugins.jquery.com/project/tablesorter
http://motherrussia.polyester.se/jquery-plugins/tablesorter
http://tablesorter.com/docs/
http://plugins.jquery.com/project/tableFilter
http://gregweber.info/projects/uitablefilter

Obviously Confusing to choose amongst them , isn't it ?!!...

If someone has worked on / with any of these plugins, request you to
share your experiences [good as well as bad !!] so that it would help
the community  as a whole...

Also has any one been working on combination of [client side (using
java script pagination ) + server side (Like Hibernate Pagination)]
pagination.
Implementing in this way would reduce the load on server [fetch less
data] and client side [hide data] and increases load on server side ??

Thanks,
Prashant Bhate


[jQuery] Re: BlockUI and FF3

2008-07-10 Thread Prashant Bhate

Hi,

Rather than posting/pasting code here,
Perhaps you could try to paste it at http://paste-it.net
and share the link ?

Thanks,
Prashant


On Jul 10, 2:30 am, Mike Alsup <[EMAIL PROTECTED]> wrote:
> On Jul 9, 8:06 pm, Marcus Eby <[EMAIL PROTECTED]> wrote:
>
> > I can't unfortunately, its a private app. But I'll post some of the
> > surrounding HTML code.
>
> Not sure if you posted enough code to show the problem, but it seems
> to work fine for me:
>
> http://www.malsup.com/jquery/block/test/marcus.html
>
> Maybe you could create a very small demo page that shows the problem?