[jQuery] - tableFormSynch if (Empty) {Error}

2009-03-03 Thread Mario Moura
Nice plugin,

I just want report a error if the list is empty, If you delete all itens,
you cant add more itens anymore.

I tried start from a empty list and same error, but I am still reading and
studing this plugin.

Congratulations Brian,

Regards

macm


[jQuery] Re: jQuery 1.3.2 Released

2009-02-21 Thread Mario Moura
var Jquery = 1.3.2

$(this).amazing({

// thanks John Resig

});

Cheers

Mario
macm



2009/2/20 James 

>
> Thanks! So far it seems to be working without issues on my projects,
> including those with UI 1.6rc6. :)
>
> On Feb 20, 4:01 pm, John Resig  wrote:
> > > Awesome, thanks John. So UI 1.7 should be around the corner as well?
> >
> > Let's hope so! You'll have to ask the UI team :-) I think they're
> > getting real close, though.
> >
> > --John
>


[jQuery] Re: Back or Continue Solution to UI Tabs and Jquery Form

2009-02-06 Thread Mario Moura
SOLVED


Ok

I found in this conversation:

"Form with two buttons determining which was clicked"

by Mark Steudel and Hector Virgen

So If you want add this feature to your UI Tab do this:

   $('#myForm input[type=submit]').click( function(event) {
   var element = ( event.target ?  event.target :
event.srcElement );

   $('#myForm').ajaxSubmit({
   success: function(t) {
   if( $(element).attr('id') == 'back' )
{
 $('#tabs').tabs('select',0);
   }

   if( $(element).attr('id') ==
'continue' ) {
 $('#tabs').tabs('select',2);
   }
   }
   });


   return false;
   }
   );

Regards

macm

2009/2/6 Mario Moura 

> Hi James
>
> Not yet, but thanks.
>
> if I find a solution I will post here.
>
> Cheers!
>
>
> macm
>
>
>
>
> 2009/2/6 James 
>
>
>> How about, instead of:
>> x = this.id;
>>
>> try:
>> x = $(this).attr('id');
>>
>> On Feb 6, 1:22 am, Mario Moura  wrote:
>> > Hi Folks
>> >
>> > I did this with ajax tab options and Jquery Form
>> >
>> > $(document).ready(function() {
>> > $("#myForm").ajaxForm( function() {
>> >$("#tabs").tabs("select",2);
>> > });
>> >
>> > });
>> >
>> > Inside of my tab 1 have
>> >
>> > > name="back"/>
>> >
>> > > > name="continue"/>
>> >
>> > As you can see if I submit #myForm I will go to next tab
>> > $("#tabs").tabs("select",2);
>> >
>> > But to back I am having problems. Because is a second submit button. So
>> I am
>> > trying this:
>> >
>> > $(document).ready(function() {
>> >
>> > $(".click").click(function(){
>> >   //Get the id of this clicked item
>> >   x = this.id;
>> >
>> > });
>> >
>> >   // before submit, call BackOrContinue
>> >   var options = {
>> > beforeSubmit:  BackOrContinue
>> >   };
>> >
>> >   $("#myform").ajaxForm(options);
>> >
>> >   function BackOrContinue {
>> >
>> > if (x == "back") {
>> >   $("#tabs").tabs("select",0);
>> > } else {
>> >   $("#tabs").tabs("select",2);
>> > }
>> >   }
>> >
>> > });
>> >
>> > My error is $ is not defined
>> >
>> > I tried
>> >
>> >   $("#myForm").ajaxForm( function() {
>> > x = this.id;
>> > alert(x);
>> >   if (x == "back") {
>> >   $("#tabs").tabs("select",0);
>> > } else {
>> >   $("#tabs").tabs("select",2);
>> > }
>> >});
>> >
>> > and x = "undefined"
>> >
>> > What is missing?
>> >
>> > Regards
>> >
>> > macm
>>
>
>
>
>
>


[jQuery] Re: Back or Continue Solution to UI Tabs and Jquery Form

2009-02-06 Thread Mario Moura
Hi James

Not yet, but thanks.

if I find a solution I will post here.

Cheers!


macm




2009/2/6 James 

>
> How about, instead of:
> x = this.id;
>
> try:
> x = $(this).attr('id');
>
> On Feb 6, 1:22 am, Mario Moura  wrote:
> > Hi Folks
> >
> > I did this with ajax tab options and Jquery Form
> >
> > $(document).ready(function() {
> > $("#myForm").ajaxForm( function() {
> >$("#tabs").tabs("select",2);
> > });
> >
> > });
> >
> > Inside of my tab 1 have
> >
> > 
> >
> >  > name="continue"/>
> >
> > As you can see if I submit #myForm I will go to next tab
> > $("#tabs").tabs("select",2);
> >
> > But to back I am having problems. Because is a second submit button. So I
> am
> > trying this:
> >
> > $(document).ready(function() {
> >
> > $(".click").click(function(){
> >   //Get the id of this clicked item
> >   x = this.id;
> >
> > });
> >
> >   // before submit, call BackOrContinue
> >   var options = {
> > beforeSubmit:  BackOrContinue
> >   };
> >
> >   $("#myform").ajaxForm(options);
> >
> >   function BackOrContinue {
> >
> > if (x == "back") {
> >   $("#tabs").tabs("select",0);
> > } else {
> >   $("#tabs").tabs("select",2);
> > }
> >   }
> >
> > });
> >
> > My error is $ is not defined
> >
> > I tried
> >
> >   $("#myForm").ajaxForm( function() {
> > x = this.id;
> > alert(x);
> >   if (x == "back") {
> >   $("#tabs").tabs("select",0);
> > } else {
> >   $("#tabs").tabs("select",2);
> > }
> >});
> >
> > and x = "undefined"
> >
> > What is missing?
> >
> > Regards
> >
> > macm
>



-- 
Mário Alberto Chaves Moura
moura.ma...@gmail.com
31-3264-6203
31-9157-6000


[jQuery] Back or Continue Solution to UI Tabs and Jquery Form

2009-02-06 Thread Mario Moura
Hi Folks

I did this with ajax tab options and Jquery Form

$(document).ready(function() {
$("#myForm").ajaxForm( function() {
   $("#tabs").tabs("select",2);
});
});


Inside of my tab 1 have





As you can see if I submit #myForm I will go to next tab
$("#tabs").tabs("select",2);

But to back I am having problems. Because is a second submit button. So I am
trying this:


$(document).ready(function() {

$(".click").click(function(){
  //Get the id of this clicked item
  x = this.id;
});

  // before submit, call BackOrContinue
  var options = {
beforeSubmit:  BackOrContinue
  };

  $("#myform").ajaxForm(options);

  function BackOrContinue {

if (x == "back") {
  $("#tabs").tabs("select",0);
} else {
  $("#tabs").tabs("select",2);
}
  }

});


My error is $ is not defined

I tried

  $("#myForm").ajaxForm( function() {
x = this.id;
alert(x);
  if (x == "back") {
  $("#tabs").tabs("select",0);
} else {
  $("#tabs").tabs("select",2);
}
   });

and x = "undefined"

What is missing?


Regards

macm


[jQuery] Re: - Object Oriented / PHP5 - Possible BUG with Jquery

2008-09-25 Thread Mario Moura
Hi Ricardo

Thanks. Works fine now!  You saved my day!

Regards

Mario

NOT A BUG!! MY FAULT!

SOLVED



2008/9/25 ricardobeat <[EMAIL PROTECTED]>

>
> I have no clue on the PHP side of this, but try this script instead:
>
> 
> $(document).ready(function() {
>
> $("#out").click(function(){
>$('form').submit();
>return false;
>     });
>
>  });
> 
>
> On Sep 25, 11:40 am, "Mario Moura" <[EMAIL PROTECTED]> wrote:
> > Object Oriented / PHP5 - Possible BUG with Jquery
> >
> > Hi Folks
> >
> > I was creating a simple singleton class (but I tested with others Desing
> > Patterns) with php like this:
> >
> > class header {
> >static private $instance = false;
> >
> > private function js()
> > {
> > $(document).ready(function() {
> > $("#out").each(function(i){
> > $(this).bind("click", function(event){
> > document.form.submit();
> > });
> > });
> > });
> >
> > }
> >
> > private function css() {
> > }
> >
> > private function header () {
> > 
> > echo $this->js().$this->css();
> > 
> > Logout 
> > 
> > 
> > 
> > 
> > 
> >
> > } // end header()
> >
> >static function instance() {
> >if(!Header::$instance) {
> >Header::$instance = new header();
> >}
> >return Header::$instance;
> >}
> >
> > }
> >
> > My Surprise!! Jquery didnt work properly.
> >
> > I tried a lot of variations and some times I changed my script adding
> >
> > alert('something');
> >
> > and sometimes my page received the $_POST but with the code above
> definitly
> > didnt work. (I have very similar codes in procedural style and works
> fine. )
> >
> > Jquery didnt acept the event ("click"), but works with
> alert('something');
> >
> > So I insert the Submit button 
> >
> > and with this my page receive the $_POST.
> >
> > So I am new in the amazing PHP5/OOP world and I dont know if can be a bug
> > from PHP/Browser/JavaScript or Jquery.
> >
> > So I am reporting.
> >
> > My felling tell me that I am sending all this stuffs () to an
> > Object and something is going wrong there.
> >
> > Hope someone can help me.
> >
> > Regards
> >
> > Mario
> > macm
>



-- 
Mário Alberto Chaves Moura
[EMAIL PROTECTED]
31-3264-6203
31-9157-6000


[jQuery] - Object Oriented / PHP5 - Possible BUG with Jquery

2008-09-25 Thread Mario Moura
Object Oriented / PHP5 - Possible BUG with Jquery

Hi Folks

I was creating a simple singleton class (but I tested with others Desing
Patterns) with php like this:

class header {
   static private $instance = false;

private function js()
{
$(document).ready(function() {
$("#out").each(function(i){
$(this).bind("click", function(event){
document.form.submit();
});
});
});
}

private function css() {
}

private function header () {

echo $this->js().$this->css();

Logout 






} // end header()

   static function instance() {
   if(!Header::$instance) {
   Header::$instance = new header();
   }
   return Header::$instance;
   }

}

My Surprise!! Jquery didnt work properly.

I tried a lot of variations and some times I changed my script adding

alert('something');

and sometimes my page received the $_POST but with the code above definitly
didnt work. (I have very similar codes in procedural style and works fine. )

Jquery didnt acept the event ("click"), but works with alert('something');

So I insert the Submit button 

and with this my page receive the $_POST.

So I am new in the amazing PHP5/OOP world and I dont know if can be a bug
from PHP/Browser/JavaScript or Jquery.

So I am reporting.

My felling tell me that I am sending all this stuffs () to an
Object and something is going wrong there.

Hope someone can help me.

Regards

Mario
macm


[jQuery] Re: "this" - Basic question

2008-09-05 Thread Mario Moura
Mike

Thanks a Lot!

Works like a charm! and thanks for the nice // comments

Regards

Mario

2008/9/5 Michael Geary <[EMAIL PROTECTED]>

>  Your question isn't really about "this", but about how to get some text
> that isn't in its own element. It's just a text node inside the .tr
> element.
>
> Can you put it in a span?
>
> 
>   my text please!
>   I dont want this children
> 
>
> Then you could just use:
>
> var tr = $('.x',this).html();
>
> You can get the text from the HTML code you have, though. Here's one way
> that comes to mind - but maybe there is something simpler. Are you sitting
> down? :-)
>
> var tr = $.trim( $(this).clone().children('.w').remove().end().html() );
>
> Let's break that down (in fact, you may like to format it this way in your
> code instead of the one-liner):
>
> var tr = $.trim( // remove extraneous whitespace when done
> $(this)  // jQuery object for the element
> .clone() // clone it so we don't change the original
> .children('.w')  // select the div.w child element
> .remove()// remove it
> .end()   // go back to the cloned element
> .html()  // and get its HTML
> );
>
> (We'll see how much of that formatting survives posting...)
>
> -Mike
>
>  --
> *From:* jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] *On
> Behalf Of *Mario Moura
> *Sent:* Friday, September 05, 2008 11:51 AM
> *To:* jquery-en@googlegroups.com
> *Subject:* [jQuery] "this" - Basic question
>
>  Hi Folks
>
> I have:
>
> $(".tr").each(function(i){
> $(this).bind("click", function(event){
> var tr = $(this).html();
> .
>
>
> My html is
>
> my text please!
>   I dont want this children
> 
>
> I am trying select only "my text please!" without children().
>
> I tried .remove() .not(".w") .not("div.w") and a lot of variations
>
> Look I am not working in the "document" I have this in "this" argument.
>
> so
>
> $(this).html() = my text please! I dont want this
> children
>
> so I want remove I dont want this children
>
> Regards
>
> Mario
> macm
>
>


-- 
Mário Alberto Chaves Moura
[EMAIL PROTECTED]
31-3264-6203
31-9157-6000


[jQuery] "this" - Basic question

2008-09-05 Thread Mario Moura
Hi Folks

I have:

$(".tr").each(function(i){
$(this).bind("click", function(event){
var tr = $(this).html();
.


My html is

my text please!
  I dont want this children


I am trying select only "my text please!" without children().

I tried .remove() .not(".w") .not("div.w") and a lot of variations

Look I am not working in the "document" I have this in "this" argument.

so

$(this).html() = my text please! I dont want this
children

so I want remove I dont want this children

Regards

Mario
macm


[jQuery] Re: Is it possible get the data from ajaxSuccess?

2007-12-15 Thread Mario Moura
Hi Richard

Thanks a lot. I will start read John Resign Book and study a lot JavaScript.

Yes the solution is declarate the variable before but I would like this
varaible be global.

I dont recommend use var because will turn it local

So I did

 $(document).ready(function(){
  check1 = null;
  function checked(check) {
this.check = check
}

$("#ajax").ajaxForm({
success:
function(data) {
  check1 = new checked(data)
  // do stuff with data;
  }
});

$("#target").ajaxSuccess(function(request, settings){
 $(function() {
 alert(check1);
})
});



And it is working!! So we can test response of any ajax response.

But isnt already. When I dedug I can see the value into check1 but when the
alert run print [object Object]

So the result is into this object "check1". How can I access the value of an
object in Javascript?

Thanks for your help, And David thanks too, I am trying test all ajax
response no matter where they came from.

Regards

Mario Moura

2007/12/15, David Serduke <[EMAIL PROTECTED]>:
>
>
> On Dec 14, 1:06 pm, "Richard D. Worth" <[EMAIL PROTECTED]> wrote:
> > $("#target").ajaxSuccess(function(request, settings) {
> >   if (check1 == "something") {
> > $(this).append(check1);
> >   }
> >
> > });
>
> I believe the first parameter for ajaxSuccess functions is the event.
> Then comes the request and settings.  So iirc that would be:
>
> $("#target").ajaxSuccess(function(e, request, settings) {
>   if (request.responseText == "success") {
> alert("Got a successful response");
>   }
> }
>
> Also untested. :)
>
> David
>
>


-- 
Mário Alberto Chaves Moura
[EMAIL PROTECTED]
31-3264-6203
31-9157-6000


[jQuery] Re: Is it possible get the data from ajaxSuccess?

2007-12-14 Thread Mario Moura
 Almost, the problem is always  "check1 is not defined"

Example:

  function checked(check) {
this.check = check
}

 $("#ajax").ajaxForm({
success:
function(data) {
  check1 = new checked(data)
  // do stuff with data;
  }
});

  $("#target").ajaxSuccess(function(request, settings){
 $(function() {
 if (check1 == "something") {
 $(this).append(check1);
 }
})
});

Ideas how can I fix "check1 is not defined"?

Regards

Mario Moura

2007/12/14, Mario Moura <[EMAIL PROTECTED]>:
>
>   Wow, thanks a lot Richard
>
> I can do this with php (quite simple) but I am lost with Jquery /
> Javascript syntax. Could you help me?
>
> Example
>
>  $("#mychild").ajaxForm({
> success:
> function(data) {
>   // do stuff with data;
> function toCheck() {
> $(data);
> }
> }
> });
>
> // So for each Ajax request I will insert
> function toCheck() {
> $(data);  // or I can get some data into $data like
> $(data).attr("myid")
> }
>
> // So I want check if toCheck() have a value or not but I will let
> simple, just alert me.
> // I dont know if the syntax is ok
>
> function pleaseAlertMe() {
> alert(toCheck());
> }
>
> I dont want (or I cant) pass the $(data) to a div and check
> there by DOM I prefer check by function. If is it possible of course.
>
> And now I will study a lot of JavaScript Syntax. ;)
>
> Regards
>
> Mario Moura
>
> 2007/12/14, Richard D. Worth < [EMAIL PROTECTED]>:
> >
> > You could declare a function and give it a name, instead of using an
> > anonymous function, then pass that as the success function for each ajax
> > call.
> >
> > - Richard
> >
> > On Dec 14, 2007 8:51 AM, Mario Moura < [EMAIL PROTECTED]> wrote:
> >
> > > No.
> > >
> > > Let me explain better.
> > >
> > > In your scenario you made a individual AJAX request and into this
> > > request you create rules.
> > >
> > > But JQuery  could create an universal AjaxSucess to test all data from
> > > all ajax requests.
> > >
> > > So imagine this scenario:
> > >
> > > The page have a lot of AJAX requests, something like ajaxform, $.ajax,
> > > $.post, $.get
> > >
> > > So from response of each AJAX we could create a function like: (and I
> > > will use switch)
> > >
> > >
> > > $().ajaxSuccess (function() {
> > >  switch( $(data).attr("id")  ) { // here I get the data from
> > > AJAX Sucess every time happen could by by xml, json but I am using div
> > > case 'myid':
> > > // do stuff with data;
> > > break;
> > > case 'myid2':
> > >// do stuff with data;
> > > break;
> > >  }
> > >
> > > no matter if it is from $.ajax({"type": "POST",  "url": " foo1.php",}); 
> > > or  $.ajax({"type": "POST", "url": "
> > > foo2.php "}); or $.ajax({"type": "POST", "url": "foo3.php ",});
> > >
> > > But at this moment. I think is not possible. But could be a good
> > > improve.
> > >
> > > Did you understand?
> > >
> > > Regards
> > >
> > > Mario Moura
> > >
> > > 2007/12/14, Giovanni Battista Lenoci < [EMAIL PROTECTED]>:
> > >
> > > >
> > > > Don't know if I understood,
> > > >
> > > >$.ajax({"type": "POST",
> > > >   "url": " foo2.php",
> > > >   "data": data,
> > > >   "dataType": "json",
> > > >   "success": function(server_response) {
> > > >   switch(server_response.wich_function) {
> > > >  case '1':
> > > > on_success_one(server_response);
> > > >  break;
> > > >  case '2':
> > > > on_success_two(server_response);
> > > >  break;
> > > >   }
> > > >
> > > >   });
> > > >
> > > >
> > >
> > >
> > > --
> > > Mário Alberto Chaves Moura
> > > [EMAIL PROTECTED]
> > > 31-3264-6203
> > > 31-9157-6000
> >
> >
> >
>
>
> --
> Mário Alberto Chaves Moura
> [EMAIL PROTECTED]
> 31-3264-6203
> 31-9157-6000
>



-- 
Mário Alberto Chaves Moura
[EMAIL PROTECTED]
31-3264-6203
31-9157-6000


[jQuery] Re: Is it possible get the data from ajaxSuccess?

2007-12-14 Thread Mario Moura
  Wow, thanks a lot Richard

I can do this with php (quite simple) but I am lost with Jquery / Javascript
syntax. Could you help me?

Example

 $("#mychild").ajaxForm({
success:
function(data) {
  // do stuff with data;
function toCheck() {
$(data);
}
}
});

// So for each Ajax request I will insert
function toCheck() {
$(data);  // or I can get some data into $data like
$(data).attr("myid")
}

// So I want check if toCheck() have a value or not but I will let
simple, just alert me.
// I dont know if the syntax is ok

function pleaseAlertMe() {
alert(toCheck());
}

I dont want (or I cant) pass the $(data) to a div and check
there by DOM I prefer check by function. If is it possible of course.

And now I will study a lot of JavaScript Syntax. ;)

Regards

Mario Moura

2007/12/14, Richard D. Worth <[EMAIL PROTECTED]>:
>
> You could declare a function and give it a name, instead of using an
> anonymous function, then pass that as the success function for each ajax
> call.
>
> - Richard
>
> On Dec 14, 2007 8:51 AM, Mario Moura < [EMAIL PROTECTED]> wrote:
>
> > No.
> >
> > Let me explain better.
> >
> > In your scenario you made a individual AJAX request and into this
> > request you create rules.
> >
> > But JQuery  could create an universal AjaxSucess to test all data from
> > all ajax requests.
> >
> > So imagine this scenario:
> >
> > The page have a lot of AJAX requests, something like ajaxform, $.ajax,
> > $.post, $.get
> >
> > So from response of each AJAX we could create a function like: (and I
> > will use switch)
> >
> >
> > $().ajaxSuccess (function() {
> >  switch( $(data).attr("id")  ) { // here I get the data from
> > AJAX Sucess every time happen could by by xml, json but I am using div
> > case 'myid':
> > // do stuff with data;
> > break;
> > case 'myid2':
> >// do stuff with data;
> > break;
> >  }
> >
> > no matter if it is from $.ajax({"type": "POST",  "url": " foo1.php ",});
> > or  $.ajax({"type": "POST", "url": "foo2.php "}); or $.ajax({"type":
> > "POST", "url": "foo3.php ",});
> >
> > But at this moment. I think is not possible. But could be a good
> > improve.
> >
> > Did you understand?
> >
> > Regards
> >
> > Mario Moura
> >
> > 2007/12/14, Giovanni Battista Lenoci <[EMAIL PROTECTED]>:
> >
> > >
> > > Don't know if I understood,
> > >
> > >$.ajax({"type": "POST",
> > >   "url": " foo2.php",
> > >   "data": data,
> > >   "dataType": "json",
> > >   "success": function(server_response) {
> > >   switch(server_response.wich_function) {
> > >  case '1':
> > > on_success_one(server_response);
> > >  break;
> > >  case '2':
> > > on_success_two(server_response);
> > >  break;
> > >   }
> > >
> > >   });
> > >
> > >
> >
> >
> > --
> > Mário Alberto Chaves Moura
> > [EMAIL PROTECTED]
> > 31-3264-6203
> > 31-9157-6000
>
>
>


-- 
Mário Alberto Chaves Moura
[EMAIL PROTECTED]
31-3264-6203
31-9157-6000


[jQuery] Re: Is it possible get the data from ajaxSuccess?

2007-12-14 Thread Mario Moura
No.

Let me explain better.

In your scenario you made a individual AJAX request and into this request
you create rules.

But JQuery  could create an universal AjaxSucess to test all data from all
ajax requests.

So imagine this scenario:

The page have a lot of AJAX requests, something like ajaxform, $.ajax,
$.post, $.get

So from response of each AJAX we could create a function like: (and I will
use switch)


$().ajaxSuccess (function() {
 switch( $(data).attr("id")  ) { // here I get the data from AJAX
Sucess every time happen could by by xml, json but I am using div
case 'myid':
// do stuff with data;
break;
case 'myid2':
   // do stuff with data;
break;
 }

no matter if it is from $.ajax({"type": "POST",  "url": "foo1.php ",}); or
$.ajax({"type": "POST", "url": "foo2.php "}); or $.ajax({"type": "POST",
"url": "foo3.php ",});

But at this moment. I think is not possible. But could be a good improve.

Did you understand?

Regards

Mario Moura

2007/12/14, Giovanni Battista Lenoci <[EMAIL PROTECTED]>:
>
>
> Don't know if I understood,
>
>$.ajax({"type": "POST",
>   "url": " foo2.php",
>   "data": data,
>   "dataType": "json",
>   "success": function(server_response) {
>   switch(server_response.wich_function) {
>  case '1':
> on_success_one(server_response);
>  break;
>  case '2':
> on_success_two(server_response);
>  break;
>   }
>
>   });
>
>


-- 
Mário Alberto Chaves Moura
[EMAIL PROTECTED]
31-3264-6203
31-9157-6000


[jQuery] Is it possible get the data from ajaxSuccess?

2007-12-14 Thread Mario Moura
Hi folks

Is it possible get the data from ajaxSuccess?

So I could validate data from any ajax request in serverside.

Example.

I am passing 


$().ajaxSuccess (function() {
if ( $(data).attr("id") = 'myid') {
// do stuff with data
}
});

Look that this ajaxSuccess will test all ajax requests.

I know that I could do something like

   $.ajax({"type": "POST",
  "url": "foo.php ",
  "data": data,
  "dataType": "json",
  "success": on_success_one});

   $.ajax({"type": "POST",
  "url": " foo2.php",
  "data": data,
  "dataType": "json",
  "success": on_success_two});

So in this scenario I will test each AJAX request and One by one I could
create a sucess function.

But my question is different I want create a ajaxSuccess to test all data
from all AJAX request if someone fit my desire I run my function.

Regards

Mario Moura


[jQuery] Re: Jquery Forms - On the Fly

2007-12-13 Thread Mario Moura
Ok

A lot of people are looking for this so I will share the solution.

So the Solution is very easy:


$("#mychild").ajaxForm({
success:
function(data) {
$("#target").append($('#OnTheFly').clone().attr({ style:
"display:" }));
$("#Myid").val(data);  // Here I get the reponse of this
Ajax
 $("#OnTheFly").ajaxForm({
success:
function(data) {
// something
}
});


}
});


Please let me know if is fine and if I can commit this improve to Jquery
Forms Documentation.

Regards

Mario Moura



2007/12/13, Mario Moura <[EMAIL PROTECTED]>:
>
> Hi
>
> I want create a AJAX Forms on the fly.
>
>
>
> $("#mychild").ajaxForm({
> success:
> function(data) {
> $("#target").append($('#OnTheFly').clone().attr({ style:
> "display:" }));
> $("#Myid").val(data);  // Here I get the reponse of this
> Ajax
> }
> });
>
>
>
> So I have a hide form (Let say my template) so I just clone it.
>
>
>   
>
> 
>
>   
>
>
>
>
> this form will be transform to
>
>
>
>   
>
> 
>
>   
>
>
>
> Unfortunately Jquery cant clone the event so When I click in the "cloned
> form" Jquery can't run the event like:
>
>
>
>  $("#OnTheFly").ajaxForm({
> success:
>     function(data) {
> // something
> }
> });
>
>
>
>
> I tried "Copy Events" plugin but didnt work with Jquery Forms or I made
> something wrong.
>
> Can Brandon Aaron help me? Seems to be the expert in this area.
>
> Someone have an Idea?
>
> Regards
>
> Mario Moura
> macm
>


[jQuery] Jquery Forms - On the Fly

2007-12-13 Thread Mario Moura
Hi

I want create a AJAX Forms on the fly.



$("#mychild").ajaxForm({
success:
function(data) {
$("#target").append($('#OnTheFly').clone().attr({ style:
"display:" }));
$("#Myid").val(data);  // Here I get the reponse of this
Ajax
}
});



So I have a hide form (Let say my template) so I just clone it.


  



  




this form will be transform to



  



  



Unfortunately Jquery cant clone the event so When I click in the "cloned
form" Jquery can't run the event like:



 $("#OnTheFly").ajaxForm({
success:
function(data) {
// something
}
});




I tried "Copy Events" plugin but didnt work with Jquery Forms or I made
something wrong.

Can Brandon Aaron help me? Seems to be the expert in this area.

Someone have an Idea?

Regards

Mario Moura
macm


[jQuery] Share my trick to debugger Jquery with FireBug

2007-12-13 Thread Mario Moura
Hi

I would like to share my trick to debugger Jquery with FireBug.

It isnt advanced but could be useful to start debugg Jquery Code.

So your page load and now you will start a lot of functions and in the
middle of ones you want do,

$("#mytarget").append($("something"));

(or more complicate tasks)

So before you start run this function (for example into an AJAX requisition)
you want create a BreakPoint,

So you go to FireBug/Scripts and create a breakpoint. (see
http://www.getfirebug.com/js.html)

The problem: You can't see what $("#mytarget").append($("something"));
did   (look, it is a simple example, imagine complicate tasks)

So you should create a variable like:

var test = $("#mytarget").append($("something"));

So you can mouse over "test" and see what this function did. You can see in
the tab "watch" and see the result.

Nice but I am not a Javascript Ninja but seems to be a good reason why
Javascript programmers love use "var" because turn easy the job in the
debugg stage but $this comment I will let to advanced programmers.

So we should create our JQuery functions always with varaibles to turn our
job easy? Exist a "best pratice" to create variables in Javascript world?

Hope be useful

Regards

Mario Moura
macm


[jQuery] Re: Using jQuery to track advert clicks

2007-12-11 Thread Mario Moura
Hi

This topic is very interesting.

I would like to recommend Cesar Rodas. I will study this ASAP.

http://www.phpclasses.org/browse/package/4012.html

He have a class to track clicks without AJAX.

He is using an image tag.

He said to me

"The image tag is quite simple, is for emulate an AJAX request, but ajax
request works only for the same host, so what I do is create a new image
object and put there the image request, example:



The object is generated in javascript and the phparchive.php returns an
empty image or you can hide the result. "

We could try convert this idea to Jquery. Gstats is GNU General Public
License (GPL).

I didnt study yet, like I said. But seem to be a good solution.

So I think that when the browser try read the  the server can get the
parameters. without AJAX! (I guess!)

Regards

Mario Moura
macm

2007/12/11, Chris Hardy <[EMAIL PROTECTED]>:
>
>
> I'm not an expert with jQuery, but I think something like this might do
> the
> trick..
>
> $("a.adtrack").click(function(){
> // Get url of advert
> var adURL = $(this).attr("href");
>
> // Log click to database
> $.ajax({
> type: "GET",
> url: "/path/to/tracking/script.asp",
> data: "advertURL=" + adURL;
> });
>
> // Redirect to target URL
> window.location = adURL;
> });
>
> Give your links a class of "adtrack"
>
> http://www.someurl.com/"; class="adtrack">Go to Some URL
>
> Then you can go about setting up your tracking script to request the URL
> from the querystring and log it to the database.
>
> --
> From: "Darren Savery" <[EMAIL PROTECTED]>
> Sent: Tuesday, December 11, 2007 4:50 PM
> To: "jQuery (English)" 
> Subject: [jQuery] Using jQuery to track advert clicks
>
> >
> > Hi,
> >
> > Is it possible to use jQuery to track advert clicks? I have adverts
> > that appear on certain pages of my site. Whenever someone clicks on an
> > advert, I would like to record this as a new entry in a database table
> > (tblAdvertClicks).
> >
> > I know I could pass the visitor to a processing page then forward them
> > on to the advert destination, but I want the link to do directly from
> > my site to the advertisers - without a 3rd page being involved (this
> > is for SEO purposes in case anyone is interested). Someone suggested
> > jQuery could do this.
> >
> > Can anyone help?
> >
> >
>



-- 
Prezado(a)s Sr(a)s



Atenciosamente,

Mário Alberto Chaves Moura
[EMAIL PROTECTED]
Av. Raja Gabaglia, 4859 / 209
Belo Horizonte MG 30360670
31-3264-6203
31-9157-6000


[jQuery] Share my trick to Deserialized the response of JQuery Forms

2007-12-11 Thread Mario Moura
Hi All

I am working in Jquery Forms
http://malsup.com/jquery/form/#getting-started

I would like to share a tip/trick

in the your php file create a output like this

echo '';

to deserialized the response

$(document).ready(function() {
$('#myForm').ajaxForm({
beforeSubmit:
validate,
success:
function(data) {
$('#myid ').append('my
response');
}
});


So What I did is get with $(data).attr("id") the value of $id

You can create how many itens you need in your php file and deserialized the
response

$(data).attr("title")
$(data).attr("image")

you can use xml, json but I think text is fast.

Hope be useful

Regards

Mario Moura
macm


[jQuery] Re: Form Plugin and File Uploads (form.submit() is not a function)

2007-12-08 Thread Mario Moura
Thanks Mike

You save my day.

Regards

Mario

2007/12/8, Mike Alsup <[EMAIL PROTECTED]>:
>
>
> On Dec 8, 2007 8:23 AM, Mario Moura <[EMAIL PROTECTED]> wrote:
> > Hi All
> >
> > Same question.
> >
> >
> > my form is something like
> >
> >  action="../submitajax.php">
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> >  id="uploadResponseType">
> > 
> > 
>
>
> This is likely the cause of your problem:
>
> 
>
> Do not use ids (or names) that collide with JavaScript functions
> names.  Do something like this instead:
>
> 
>
> Mike
>


[jQuery] Re: Form Plugin and File Uploads (form.submit() is not a function)

2007-12-08 Thread Mario Moura
Hi All

Same question.

form.submit is not a function
form.submit();

Works fine without "file upload field".

I didnt understand about  files.php.

What is inside this file?

my form is something like

















My script is

  
// prepare the form when the DOM is ready
$(document).ready(function() {
var options = {
target:'#output1',   // target element(s) to be updated with
server response
beforeSubmit:  showRequest,
success:   showResponse  // post-submit callback

// other available options:
//url:   url // override for form's 'action' attribute
//type:  type// 'get' or 'post', override for form's
'method' attribute
//dataType:  null// 'xml', 'script', or 'json' (expected
server response type)
//clearForm: true// clear all form fields after successful
submit
//resetForm: true// reset the form after successful submit

// $.ajax options can be used here too, for example:
//timeout:   3000
};

// bind form using 'ajaxForm'
$('#myForm').ajaxForm(options);
$('#myForm').ajaxForm( { beforeSubmit: validate } );
$('#myForm').ajaxForm({
beforeSubmit: function(a,f,o) {
o.dataType = $('#uploadResponseType').val();
$('#uploadOutput').html('Submitting...');
},
success: function(data) {
var $out = $('#uploadOutput');
$out.html('Form success handler received: ' + typeof
data + '');
if (typeof data == 'object' && data.nodeType)
data = elementToString(data.documentElement, true);
else if (typeof data == 'object')
data = objToString(data);
$out.append('
'+ data +'
'); } }); }); function validate(formData, jqForm, options) { // jqForm is a jQuery object which wraps the form DOM element // // To validate, we can access the DOM elements directly and return true // only if the values of both the username and password fields evaluate // to true var form = jqForm[0]; if (!form.title.value || !form.tag.value) { alert('Please enter a value for'); return false; } alert('Both fields contain values.'); } // pre-submit callback function showRequest(formData, jqForm, options) { // formData is an array; here we use $.param to convert it to a string to display it // but the form plugin does this for you automatically when it submits the data var queryString = $.param(formData); // jqForm is a jQuery object encapsulating the form element. To access the // DOM element for the form do this: // var formElement = jqForm[0]; alert('About to submit: \n\n' + queryString); // here we could return false to prevent the form from being submitted; // returning anything other than false will allow the form submit to continue return true; } // post-submit callback function showResponse(responseText, statusText) { // for normal html responses, the first argument to the success callback // is the XMLHttpRequest object's responseText property // if the ajaxForm method was passed an Options Object with the dataType // property set to 'xml' then the first argument to the success callback // is the XMLHttpRequest object's responseXML property // if the ajaxForm method was passed an Options Object with the dataType // property set to 'json' then the first argument to the success callback // is the json data object returned by the server alert('status: ' + statusText + '\n\nresponseText: \n' + responseText + '\n\nThe output div should have already been updated with the responseText.'); } $(document).ready(function(){ $('.warning').remove(); $.get("../../../token.php",function(txt){ $(".ts").attr({ value: txt }); }); }); 2007/11/4, Mike Alsup <[EMAIL PROTECTED]>: > > > > I have similar problem, but when I'm trying to upload a file an error > > occurs, saying: > > > > "opts.success is not a function" > > > You're using jQuery v1.0.4. The Form Plugin requires v1.1 or later. > > Mike > -- Prezado(a)s Sr(a)s Atenciosamente, Mário Alberto Chaves Moura [EMAIL PROTECTED] Av. Raja Gabaglia, 4859 / 209 Belo Horizonte MG 30360670 31-3264-6203 31-9157-6000

[jQuery] Re: Ajax ie7 $.post

2007-12-03 Thread Mario Moura
Sorry, works fine with ie7

I miss remove last ",'

mytext:$("input#url").val(), <==

Jquery is amazing.

Regards

Mario Moura


2007/12/3, Mario Moura <[EMAIL PROTECTED]>:
>
> Hi folks
>
> I tried make a simple ajax and didnt work in ie7. FF works fine.
>
>  
>  $(document).ready(function(){
>
> $("#submit").each(function(){
>$(this).bind("click", function(){
>
>  $.post("../../../submitajax.php",
>   {
>   ts: $(".secure").attr("name"),
>   mytext:$("input#url").val(),
>   },
>   function(data){
> $('#click10').remove();
> $('.share').append(data);
> }
> );
> });
> });
>
>  });
>   
>
> I tested$("#submit").each(function(){  $(this).bind("click",
> function(){  
> with alert and the "alert" works in ie7
>
> but the problems should be in $.post because I let a
> debug(DebugBreak())open into my php file and $.post didnt send nothing to
> there.
>
> I read some asnwers about "chache" and headers but I couldnt understand.
>
> Regards
>
> Mario Moura
> macm
>



-- 
Prezado(a)s Sr(a)s



Atenciosamente,

Mário Alberto Chaves Moura
[EMAIL PROTECTED]
Av. Raja Gabaglia, 4859 / 209
Belo Horizonte MG 30360670
31-3264-6203
31-9157-6000


[jQuery] Ajax ie7 $.post

2007-12-03 Thread Mario Moura
Hi folks

I tried make a simple ajax and didnt work in ie7. FF works fine.

 
 $(document).ready(function(){

$("#submit").each(function(){
   $(this).bind("click", function(){

 $.post("../../../submitajax.php",
  {
  ts: $(".secure").attr("name"),
  mytext:$("input#url").val(),
  },
  function(data){
$('#click10').remove();
$('.share').append(data);
}
);
});
});

 });
  

I tested$("#submit").each(function(){  $(this).bind("click",
function(){  
with alert and the "alert" works in ie7

but the problems should be in $.post because I let a debug(DebugBreak())open
into my php file and $.post didnt send nothing to there.

I read some asnwers about "chache" and headers but I couldnt understand.

Regards

Mario Moura
macm


[jQuery] Resize and Crop - Sugestion to Crop.js Plugin

2007-09-13 Thread Mario Moura
Hi Folks

I was testing crop plugin, amazing and easy.

But crop plugin get object properties (from the file).

I would like to suggest to get height and width from img 'line'

example:


Regards

Mario


[jQuery] Re: How to solve problem with zindex and active elements

2007-09-07 Thread Mario Moura
Hi

Other solution could de CSS overflow:

http://www.w3schools.com/css/pr_pos_overflow.asp

Regards

Mairo

2007/9/4, Dan Evans <[EMAIL PROTECTED]>:
>
>
> You could add a click event that only gets fired once to the the mask.
> Something like:
> $('#maskID').one('click', function(){
> $(this).remove();
> });
> That would take the mask away when the user clicks it.
> $(this).remove(); could also be $(this).hide() if you might re-use it
> later.
> Another solution would be to just set the content div to "display:
> none" or "visibility: hidden" in the CSS and then alter that when the
> user clicks the mask.
>
> - Dan Evans
>
> On Sep 1, 2:09 am, gianiaz <[EMAIL PROTECTED]> wrote:
> > Hi, I don't know how to solve this problem then I ask you, my
> > gurus :-)
> >
> > I created 2 divs, one with the content, and one with a mask to put
> > over the content to hide the content I don't want to see on the load
> > of the page (with z-index greater then the first one) .
> >
> > You can see an example here:
> >
> > http://www.gianiaz.net/jquery/mask/index.html
> >
> > The problem is that I can't catch the click event on the first span,
> > cause the z-index is minor of the mask one.
> >
> > If I change the zindex order I can click on the element but loose the
> > mask effect:
> >
> > http://www.gianiaz.net/jquery/mask/index2.html
> >
> > How can I get all work?
> >
> > Thank you
>
>


-- 
Mário Alberto Chaves Moura
[EMAIL PROTECTED]
31-9157-6000


[jQuery] Webmaster Remove false plugin from JQuery

2007-09-04 Thread Mario Moura
Hi Folks

I dont know if is fake but I tried find this guy in our forum and I cant
find.

I tried find something in the link provided and nothing about JQuery or even
about plugin "Custom Borders"

It is in http://docs.jquery.com/Plugins

*Custom Borders * by Sorin
Ionescu
like Rounded Corners, but uses images for the border.

Other very strange is

*JReflection * by -
JReflection is based on reflection.js but it allows to use it in jquery
style. Documentation will be included very soon...

If I made a mistake my apologize

Regards

Mario


[jQuery] Re: where is Fisheye menu (not from interface)

2007-09-04 Thread Mario Moura
Ok,

thanks a lot

Mario

2007/9/4, Joel Birch <[EMAIL PROTECTED]>:
>
>
> > > > I swear had seen Fisheye menu solution but it wasnt from Interface.
> It was
> > > > another JQuery Plugin.
>
> Yep, this rings a bell for me. Mainly due to the slightly misleading
> title "CSS Dock Menu". It doesn't degrade gracefully without JS - at
> least it didn't when I tested it. Let me see if I can find the link...
> yep here it is:
>
> http://www.ndesign-studio.com/blog/design/css-dock-menu/
>
> Joel Birch.
>



-- 
Mário Alberto Chaves Moura
[EMAIL PROTECTED]
31-9157-6000


[jQuery] where is Fisheye menu (not from interface)

2007-09-03 Thread Mario Moura
Hi folks

I swear had seen Fisheye menu solution but it wasnt from Interface. It was
another JQuery Plugin.

Anyone know where is it?

Regards

Mario


[jQuery] Jcarousel fadeIn and fadeOut

2007-08-29 Thread Mario Moura
Hi Folks

I am impress how jcarousel is easy to setup.
http://sorgalla.com/projects/jcarousel/#Configuration

Congratulations Jan.

If  I am using scroll: 1,

I dont like of scroll effect (right to left) and I prefer use fadeIn and
FadeOut between images.

Is it possible? How?

Regards

-- 
Mário


[jQuery] Re: Dynamic Form Validation?

2007-08-24 Thread Mario Moura
Jörn

Like I said I am not sure about this. Please I am not criticize anyone. I
love your Validation. Works Fine.

My form have a ajax button. Something like this







So I have Two submit buttons into the same form. One is Ajax and other is to
submit the form.

When I click in "ajax submit button" Validation Plugin think I am trying
send my form but it is not true.

SeVir tried help-me with this function:

$("#attach-button").click(function(){
   $("#myform")[0].submit();//DOM submit trigger, not jQuery submit
trigger
   return false;
});

but didnt work and I will try others suggestion of SeVir.

You can see the only common thing between two "input" fields is the type
==>  

So I only can imagine that in some place into plugin tell to acept all
submit buttons or IF NOT should have a function to avoid this (acept all
submit clicks)

Do you understand? Like I said I am not sure about this.

Regards

Mario

2007/8/24, Jörn Zaefferer <[EMAIL PROTECTED]>:
>
>
> Mario Moura schrieb:
> > SeViR
> >
> > Thanks I will try ASAP.
> >
> > I dont know if this make sense, I am just thinking.
> >
> > but the plugin core shouldnt indicate type="submit" or should avoid it
> > because in this situation could bring problems with ajax and others
> > "submit buttons" into the main form. I am not sure about this.
>
> I'm not sure what you are referring to. Could you explain that in more
> detail?
>
> -- Jörn
>



-- 
Mário


[jQuery] Re: Dynamic Form Validation?

2007-08-24 Thread Mario Moura
SeViR

Thanks I will try ASAP.

I dont know if this make sense, I am just thinking.

but the plugin core shouldnt indicate type="submit" or should avoid it
because in this situation could bring problems with ajax and others "submit
buttons" into the main form. I am not sure about this.

But anyway thanks for help.

Regards

Mario



2007/8/23, Jörn Zaefferer <[EMAIL PROTECTED]>:
>
>
> SeViR schrieb:
> > How I can see the correct code would be:
> >
> > $("#theform").validate({
> >rules:{
> >   t2: {
> >  required: function(element){
> > return $(t1).value == "test";
> >  }
> >   }
> >}
> > });
> >
> Right, my mistake.
>
> -- Jörn
>



-- 
Mário Alberto Chaves Moura
[EMAIL PROTECTED]
31-9157-6000


[jQuery] Re: Dynamic Form Validation?

2007-08-23 Thread Mario Moura
Hi SeVir and Jörn,

Yes I was thinking about this tonight. I need avoid the click event.

$("#attach-button").each(function(){
$(this).bind("click", function(){
$("#node-form")[0].submit();
return false;
});
});

I tested your function but I can only click attach-button one time. The
second click dont work.(I cant attach more files) I made a lot of
variations.

I was thinking insert another function to unbind the event or something like
this.

So I tried but dont work

$("#attach-button").each(function(){
$(this).bind("click", function(){

$("#node-form")[0].submit(
function() {
  $("#attach-button").unbind();
}
);

return false;
});
});

Ideas?

Regards

Mario


2007/8/23, SeViR <[EMAIL PROTECTED]>:
>
>
> Mario Moura escribió:
> > Hi SeVir and Folks
> >
> >
> > My form have a ajax button. Ajax button always is type="submit" so I
> > tested ValidationAide and Jquery Validation (bassistance.de
> > <http://bassistance.de>)
> >
> > Both plugins have the following bad behavior.
> >
> > When I click in Ajax Button (value="Attach" id="attach-button"
> > name="attach") both think that I am trying send the form and try
> validate.
> >
> > So My Ajax function cant work :(
> >
> > Can I bypass this? How can I hack this? Ideas?
> >
> > How can I say to "Jquery Validation" to validate id="edit-submit" and
> > not type="submit"? Or how can exclude id="attach-button" from
> Validation?
> >
> > Because $("#myform").validate(); already declared.
> >
> > My Form is:
> >
> >
> >  > action="/send/invoice">
> >
> >  > id="attach-button" name="attach"/>
> >
> >  > id="edit-submit" name="op"/>
> >
> > 
> >
> > Regards
> >
> > Mario
> Using any validation library, in your HTML example you can bypass the
> validation using this code:
> //inside document.ready
> $("#attach-button").click(function(){
> $("#myform")[0].submit();//DOM submit trigger, not jQuery submit
> trigger
> return false;
> });
>
> --
> Best Regards,
> José Francisco Rives Lirola 
>
> SeViR CW · Computer Design
> http://www.sevir.org
>
> Murcia - Spain
>
>


-- 
Mário Alberto Chaves Moura
[EMAIL PROTECTED]
31-9157-6000


[jQuery] Re: Checkbox updating database asynchronously?

2007-08-22 Thread Mario Moura
Hi

Look

http://docs.jquery.com/Ajax

Regards

Mario

2007/8/22, Steve Finkelstein <[EMAIL PROTECTED]>:
>
>
> Hi all,
>
> I'm looking for a simple way to change a boolean value in a database
> based on whether a checkbox is checked or not in a jquery environment.
>
> Would anyone be kind enough to point me in the correct direction to
> get this accomplished?
>
> Thank you.
>
> - sf
>
>


-- 
Mário Alberto Chaves Moura
[EMAIL PROTECTED]
31-9157-6000


[jQuery] Re: Dynamic Form Validation?

2007-08-22 Thread Mario Moura
Hi SeVir and Folks


My form have a ajax button. Ajax button always is type="submit" so I tested
ValidationAide and Jquery Validation (bassistance.de)

Both plugins have the following bad behavior.

When I click in Ajax Button (value="Attach" id="attach-button"
name="attach") both think that I am trying send the form and try validate.

So My Ajax function cant work :(

Can I bypass this? How can I hack this? Ideas?

How can I say to "Jquery Validation" to validate id="edit-submit" and not
type="submit"? Or how can exclude id="attach-button" from Validation?

Because $("#myform").validate(); already declared.

My Form is:










Regards

Mario




2007/8/18, SeViR <[EMAIL PROTECTED]>:
>
>
> ValidationAide, that I think, is in the same direction of Validation
> plugin or jQuery.YAV.
> Reading the examples, I can see some good things and some bad things
> (for me):
>
> * Simple class validation, this is good, I only have to set a class. In
> this sense, Validation and
> jQuery.YAV have the same possibility.
>
> * Custom functions. The same as Validation and jQuery.YAV.
>
> * Error display. For me, ValidationAide has less flexibility than
> Validation or jQuery.YAV,
> can I set another tag for errors? No, in the code the summaryShow set an
>  list. But there
> is one thing, the links of the errors focused the field, that is good
> :-) I like it but, watching the
> generate code I can see links with attached code  ... I prefer attach the
> events inside DOM.
>
> * Validation and jQuery.YAV has more pre-defined rules in the sense.
>
> By the other side, *the first question of the thread is field rules
> depends of others (relationships
> between the rules). I  this sense, only jQuery.YAV has this possibility
> without custom functions*.
>
> Validation plugin has many possibilities and flexibility, I have
> inspired in this plugin for jQuery.YAV.
> Also real-time validation of the fields (on change input) I like it, it
> is the next feature for jQuery.YAV :-P
> I like much the links pointing the error fields of ValidationAide, maybe
> this plugin need more flexibility,
> but anyway is a good job :-)
>
> Mario Moura escribió:
> > Hi
> >
> > take a look
> >
> >
> http://dnaide.blogspot.com/2007/05/validationaide-easy-as-client-side-form.html
> >
> > BrowserSide validation. Very good.
> >
> > Regards
> >
> > Mario
> >
> > 2007/8/17, SeViR <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>>:
> >
> >
> >
> > --
> > Mário Alberto Chaves Moura
> > [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
> > 31-9157-6000
>
>
> --
> Best Regards,
> José Francisco Rives Lirola 
>
> SeViR CW · Computer Design
> http://www.sevir.org
>
> Murcia - Spain
>
>


-- 
Mário Alberto Chaves Moura
[EMAIL PROTECTED]
31-9157-6000


[jQuery] Re: Jquery can show Images from file:///C:?

2007-08-18 Thread Mario Moura
Hi Andy

I really wish but I am not JQuery Ninja, yet.

; )

Mario



2007/8/17, Andy Matthews <[EMAIL PROTECTED]>:
>
>  Yeah...would be nice if someone took something like that and converted it
> to a plugin. Mario? YOu up for it?
>
> :)
>
>  --
> *From:* jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] *On
> Behalf Of *Mario Moura
> *Sent:* Friday, August 17, 2007 2:58 PM
> *To:* jquery-en@googlegroups.com
> *Subject:* [jQuery] Re: Jquery can show Images from file:///C:?
>
> Hi
>
> Wow. Looks great.
>
> ASAP I will study this
>
> I saw that fileExtension is caseSensitive so probably should have
> fileExtension == "JPG"
> fileExtension == "jpg"
> fileExtension == "Jpg"
> to avoid trouble.
>
> thanks a lot Andy for share this
>
> Regards
>
> Mario
>
>
>
> 2007/8/17, Joan Piedra < [EMAIL PROTECTED]>:
> >
> > Hello Andy,
> > It looks interesting, I've tried this before but I had some difficulties
> > with Firefox, at last I could do it with IE6, IE7, and Firefox. But Safari
> > and Opera mask the whole url in the input file. So this won't work in those
> > browsers.
> >
> > Regards,
> >
> >
> > On 8/17/07, Andy Matthews < [EMAIL PROTECTED]> wrote:
> > >
> > >  That's not true at all. I've got a JS file that allows for live
> > > previews. The JS file is attached, and here's the code needed to trigger 
> > > it:
> > >
> > > 
> > > 
> > > 
> > > 
> > >
> > > I can't say that it works on all computers, but I've never once had a
> > > client say that it didn't work.
> > >
> > >  --
> > > *From:* jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED]
> > > *On Behalf Of *Joan Piedra
> > > *Sent:* Friday, August 17, 2007 12:39 PM
> > > *To:* jquery-en@googlegroups.com
> > > *Subject:* [jQuery] Re: Jquery can show Images from file:///C:?
> > >
> > >  Hey Mario,
> > > I had the same idea some time ago, but after trying some workarounds
> > > and reading a lot of browser docs I noticed this was an horrible and 
> > > really
> > > bad practice in web development.
> > >
> > > So we actually can't make an "image preview" before sending data to
> > > the server.
> > > We will have to stick to the simple way, upload then preview.
> > >
> > > Cheers,
> > >
> > >
> > > On 8/7/07, Mario Moura < [EMAIL PROTECTED]> wrote:
> > > >
> > > > Hi folks
> > > >
> > > > What I am trying is show an image into my browser with this tag
> > > >
> > > > 
> > > > into my browser.
> > > >
> > > > Is it possible? or is a security lock from browsers?
> > > >
> > > > I am using $.post()
> > > >
> > > > So I could send the path that user choice C:/Users/example.JPG to my
> > > > php and return  > > > src="file:///C:/Users/example.JPG"/>
> > > >
> > > > But isnt working because browsers cant show this tag  > > > height="50" src="file:///C:/Users/example.JPG"/>
> > > >
> > > > I can upload the file to webserver I know but will be more fast and
> > > > I can save some bandwidth traffic if I could do this. And avoid 
> > > > malicious
> > > > users consume my bandwidth traffic.
> > > >
> > > > So I am trying use AJAX to simulate Upload Ajax? and when forms is
> > > > already send images normaly (without ajax).
> > > >
> > > > So Jquery can show Images from file:///C:? or something like this?
> > > >
> > > > Regards
> > > >
> > > > Mario
> > >
> > >
> > >
> > >
> > > --
> > > Joan Piedra || Frontend webdeveloper
> > > http://joanpiedra.com/
> > >
> > >
> >
> >
> > --
> > Joan Piedra || Frontend webdeveloper
> > http://joanpiedra.com/
> >
>
>
>
> --
> Mário Alberto Chaves Moura
> [EMAIL PROTECTED]
> 31-9157-6000
>



-- 
Mário Alberto Chaves Moura
[EMAIL PROTECTED]
31-9157-6000


[jQuery] Re: Jquery can show Images from file:///C:?

2007-08-17 Thread Mario Moura
Hi

Wow. Looks great.

ASAP I will study this

I saw that fileExtension is caseSensitive so probably should have
fileExtension == "JPG"
fileExtension == "jpg"
fileExtension == "Jpg"
to avoid trouble.

thanks a lot Andy for share this

Regards

Mario



2007/8/17, Joan Piedra <[EMAIL PROTECTED]>:
>
> Hello Andy,
> It looks interesting, I've tried this before but I had some difficulties
> with Firefox, at last I could do it with IE6, IE7, and Firefox. But Safari
> and Opera mask the whole url in the input file. So this won't work in those
> browsers.
>
> Regards,
>
>
> On 8/17/07, Andy Matthews < [EMAIL PROTECTED]> wrote:
> >
> >  That's not true at all. I've got a JS file that allows for live
> > previews. The JS file is attached, and here's the code needed to trigger it:
> >
> > 
> > 
> > 
> > 
> >
> > I can't say that it works on all computers, but I've never once had a
> > client say that it didn't work.
> >
> >  --
> > *From:* jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] *On
> > Behalf Of *Joan Piedra
> > *Sent:* Friday, August 17, 2007 12:39 PM
> > *To:* jquery-en@googlegroups.com
> > *Subject:* [jQuery] Re: Jquery can show Images from file:///C:?
> >
> > Hey Mario,
> > I had the same idea some time ago, but after trying some workarounds and
> > reading a lot of browser docs I noticed this was an horrible and really bad
> > practice in web development.
> >
> > So we actually can't make an "image preview" before sending data to the
> > server.
> > We will have to stick to the simple way, upload then preview.
> >
> > Cheers,
> >
> >
> > On 8/7/07, Mario Moura < [EMAIL PROTECTED]> wrote:
> > >
> > > Hi folks
> > >
> > > What I am trying is show an image into my browser with this tag
> > >
> > >  into
> > > my browser.
> > >
> > > Is it possible? or is a security lock from browsers?
> > >
> > > I am using $.post()
> > >
> > > So I could send the path that user choice C:/Users/example.JPG to my
> > > php and return  > > src="file:///C:/Users/example.JPG"/>
> > >
> > > But isnt working because browsers cant show this tag  > > height="50" src="file:///C:/Users/example.JPG"/>
> > >
> > > I can upload the file to webserver I know but will be more fast and I
> > > can save some bandwidth traffic if I could do this. And avoid malicious
> > > users consume my bandwidth traffic.
> > >
> > > So I am trying use AJAX to simulate Upload Ajax? and when forms is
> > > already send images normaly (without ajax).
> > >
> > > So Jquery can show Images from file:///C:? or something like this?
> > >
> > > Regards
> > >
> > > Mario
> >
> >
> >
> >
> > --
> > Joan Piedra || Frontend webdeveloper
> > http://joanpiedra.com/
> >
> >
>
>
> --
> Joan Piedra || Frontend webdeveloper
> http://joanpiedra.com/
>



-- 
Mário Alberto Chaves Moura
[EMAIL PROTECTED]
31-9157-6000


[jQuery] Re: Dynamic Form Validation?

2007-08-17 Thread Mario Moura
Hi

take a look

http://dnaide.blogspot.com/2007/05/validationaide-easy-as-client-side-form.html

BrowserSide validation. Very good.

Regards

Mario

2007/8/17, SeViR <[EMAIL PROTECTED]>:
>
>
> I suppose that you need a custom rule due to validation plugin don't
> support relations
> between fields.
>
> With jQuery.YAV (http://jquery.com/plugins/project/jquery_yav) I can do:
>
>  alt="{params:'some_value', require: 'pre-condition', condition:
> {name:'mycond', type:'implies', id:'t2', msg:'Please this field if
> required if you write a t1 value'}}" />
>  alt="{require:'post-condition',condition:{name:'mycond'}}"/>
>
> And My JS code:
>
> $("#theform").yav();
>
> Example (write "some_value" in the first field):
> http://projects.sevir.org/storage/yav/implies.html
>
> I like validation plugin but I want better more complexes rules of
> jQuery.YAV :-)
>
> howa escribió:
> > Hello, anyone has idea how to do dynamic form validation?
> >
> > e.g. using
> http://bassistance.de/jquery-plugins/jquery-plugin-validation/
> >
> >
> > 
> > 
> >
> >
> > I only want to check for required field for t2 ONLY if t1 is equal to
> > some value
> >
> > e.g.
> >
> > If t1 = "test", then t2 cannot be null, else never mind abt t2
> >
> > has any idea?
> >
> >
> >
>
>
> --
> Best Regards,
> José Francisco Rives Lirola 
>
> SeViR CW · Computer Design
> http://www.sevir.org
>
> Murcia - Spain
>
>


-- 
Mário Alberto Chaves Moura
[EMAIL PROTECTED]
31-9157-6000


[jQuery] Re: Plugin: frameReady updated. Now with better docs and demos ;)

2007-08-16 Thread Mario Moura
Hi Daemach

Thanks for frameReady is amazing.

I am trying integrate with http://tinymce.moxiecode.com/

To have a common example I will use the image button of

http://wiki.moxiecode.com/examples/tinymce/installation_example_05.php

To avoid problems with other library I did:


jQuery.noConflict(); var $j = jQuery;
$j(document).ready(function() {
$j.frameReady(function(){
$j('#iframetarget').append("pleaseworks");
},"top.mcWindow_0_iframe.mcWindow_0_iframe", { } );
});



To be simple I want pass the word "pleaseworks" to div #iframetarget (I
created into of the file: ../js/tiny_mce/plugins/advimage/image.htm)

So if someone need duplicate just install tinymce, edit image.htm and insert
 after  line 22.

Is the target correct? "top.mcWindow_0_iframe.mcWindow_0_iframe" I tried "
top.mcWindow_0_iframe" too. You can see too each push button change iframes
to mcWindow_1_iframe, mcWindow_2_iframe ...

What is missing?

If your plugin works with tinymce, we could do amazing things into "tinymce
iframes" like Ajax, bring lists, thumbs etc..

Serious will be amazing and probably thousands of developers will look to
your plugin because the big problem with tinymce is how upload files to
server with security.

So we can made ajax upload into a form and pass these urls to tinymce
iframes to fill images urls, media urls with a simple click. Will be more
friendly to the user.

 It is simple, secure and fast but first we need frameReady work there.

May you help me if you have time?

Regards

Mario


2007/4/19, Daemach <[EMAIL PROTECTED]>:
>
>
> I just updated frameReady to support loading script and stylesheet
> files in other frames, including nested, dynamically created iframes
> if necessary.  frameReady loads jQuery in the target frame(s) by
> default, so you can run any jQuery function in the target frame as if
> you were dealing with the local document.   $("p") instead of $("p",
> top.mainFrame.iFrame.document) for example.  You can also load jQuery
> plugins and stylesheets and any functions you want to run will wait
> until those files are loaded, parsed and available before running.
>
> More information and a demo here:  http://ideamill.synaptrixgroup.com/?p=6
>
> If you take the time to look at this, please let me know what you
> think!
>
>


-- 
Mário Alberto Chaves Moura
[EMAIL PROTECTED]
31-9157-6000


[jQuery] Jquery cant manipulate inline TinyMCE. Why?

2007-08-16 Thread Mario Moura
Hi Folks

I am trying use inline TinyMCE with Jquery.

http://wiki.moxiecode.com/examples/tinymce/installation_example_05.php

I follow instructions to make Jquery work with Other Libraries and its
working.

When I try manipulate elements into the inline doesnt work.

If I print the script into "inline page" (when inline page is load).
I cant bring elements outside of inline (from my original DOM).

After inline load
I can manipulate my DOM but cant manipulate "inline DOM"

Ho can you see one moment I can manipulate "inline DOM" but not "original
DOM" and after I can manipulate "original DOM"  but not "inline DOM".


jQuery.noConflict(); var $j = jQuery;

$j(document).ready(function() {
var myvar = $j(".MyClassFromOriginalDOM").text()
$j('#MyIdOnInlineDOM').append($j("#OtherIdOnInlineDOM").text());
<== works
$j('#MyIdOnInlineDOM').append(myvar); <== doesnt works when
inline page load but after $j(".MyClassFromOriginalDOM").text() works
});


Why? Ideas? I am missing something

Regards

-- 
Mário Moura


[jQuery] Re: How pass more variables in Star Rating System (AJAX Question)

2007-08-14 Thread Mario Moura
Ok Its done.

I just create a Jquery ajax .

But I still have a problem. Always!

Will be friendly if I can show in Star System the user vote (using star)

after received the answer from my server

case 1: $($('#rate1').children().eq(1)).addClass("star on") 

Ok Now I can show to my user him vote.

But When the mouser cross over the start rate system, change the class again
to "star" and I lose my preformat visibility.

Ideas how can I fix this?

Regards

Mario





2007/8/14, Mario Moura <[EMAIL PROTECTED]>:
>
> Hi Folks
>
> I saw that Star Rating System pass only the vote.
>
> How can I add more variables? Something like this:
>
> $.post("url.php",
>   {
>   user: $('#user').attr('name'),
>   currenttime : $('#currenttime').attr("name"),
>   }
>
> Regards
>
> --
> Mário Moura




-- 
Mário Alberto Chaves Moura
[EMAIL PROTECTED]
31-9157-6000


[jQuery] How pass more variables in Star Rating System (AJAX Question)

2007-08-14 Thread Mario Moura
Hi Folks

I saw that Star Rating System pass only the vote.

How can I add more variables? Something like this:

$.post("url.php",
  {
  user: $('#user').attr('name'),
  currenttime : $('#currenttime').attr("name"),
  }

Regards

-- 
Mário Moura


[jQuery] Re: Please fix TreeView bassistance - Please DEV to not stable plugins

2007-08-10 Thread Mario Moura
Ok Sorry.

was suggestion. My mistake. Sorry again.

Back to work or back to hacking. ; )

Cheers

Mario






2007/8/10, Stephan Beal <[EMAIL PROTECTED]>:
>
>
> On Aug 10, 3:31 am, "Mario Moura" <[EMAIL PROTECTED]> wrote:
> > Please John Resig ask to plugin providers make plugins to work with all
> > browsers (or FF and IE at least) if no please post JQuery.NamePlugin
> (DEV).js
> > or something like this.
> >
> > DEV to Not Stable.
>
> Hi, Mario! Some comments:
>
> a) Whether or not a plugin works in Firefox or MSIE or Opera has
> NOTHING to do with whether it is "in development" or not. That may
> simply be a design decision. Please don't assume that just because
> something does not work in MSIE, that this is a bug.
>
> b) John Resig has NO authority over the release (or release state) of
> plugins (except perhaps the plugins released via the official SVN
> tree). If he were to become a dictator and say, "nobody is allowed to
> release plugins unless they work on all browsers," several developers
> would probably walk out on him.
>
> c) Not all developers have access to all browsers, so they cannot test
> for every possible environment. For example, i don't possess a copy of
> Windows nor do i own a Mac, so i can't test a thing on MSIE or Safari.
>
> d) The web is a very volatile/hostile environment, and there will
> rarely be solutions which work on ALL versions of ALL browsers. That
> is simply something you'll have to come to terms with if you're going
> to do web development.
>
> Happy hacking!
>
>


-- 
Mário Alberto Chaves Moura
[EMAIL PROTECTED]
31-9157-6000


[jQuery] Re: Please fix TreeView bassistance - Please DEV to not stable plugins

2007-08-09 Thread Mario Moura
Hi

With few elements can work well but if you create a tree with 100-200
elements can have some problems.

In Todo of Treeview Advise
* Animations in IE are not perfectly smooth

But It is just a idea to plugins providers DEV to not stable versions.

Regards

Mario

2007/8/9, Ganeshji Marwaha <[EMAIL PROTECTED]>:
>
> why do u say it doesn't work in IE. It seems to work fine for me. Granted,
> i just saw the demo.
>
> -GTG
>
> On 8/9/07, Mario Moura < [EMAIL PROTECTED]> wrote:
> >
> > Hi Folks
> >
> > TreeView is amazing plugin from
> > http://bassistance.de/jquery-plugins/jquery-plugin-treeview/
> >
> > But unfortunately just work on FF
> >
> > Please Jörn Zaefferer and Myles Angell do you have a date to fix
> > Treeview? to work with ie6 and ie7?
> >
> > Please John Resig ask to plugin providers make plugins to work with all
> > browsers (or FF and IE at least) if no please post JQuery.NamePlugin(DEV).js
> > or something like this.
> >
> > DEV to Not Stable.
> >
> > Drupal team do this and work well
> >
> > Regards
> >
> > Mario
> >
>
>


-- 
Mário Alberto Chaves Moura
[EMAIL PROTECTED]
31-9157-6000


[jQuery] Please fix TreeView bassistance - Please DEV to not stable plugins

2007-08-09 Thread Mario Moura
Hi Folks

TreeView is amazing plugin from
http://bassistance.de/jquery-plugins/jquery-plugin-treeview/

But unfortunately just work on FF

Please Jörn Zaefferer and Myles Angell do you have a date to fix Treeview?
to work with ie6 and ie7?

Please John Resig ask to plugin providers make plugins to work with all
browsers (or FF and IE at least) if no please post JQuery.NamePlugin(DEV).js
or something like this.

DEV to Not Stable.

Drupal team do this and work well

Regards

Mario


[jQuery] Re: Jquery can show Images from file:///C:?

2007-08-07 Thread Mario Moura
Ok Stephan

Thanks a lot for this explain. Now I can go to right way.

Regards

Mario

2007/8/7, Stephan Beal <[EMAIL PROTECTED]>:
>
>
> On Aug 8, 1:28 am, "Mario Moura" <[EMAIL PROTECTED]> wrote:
> > What I am trying is show an image into my browser with this tag
> >
> >  into my
> > browser.
> >
> > Is it possible? or is a security lock from browsers?
>
> Both. It is possible, but only if your browser allows it.
>
> > I am using $.post()
>
> It is likely that you won't be able to POST to a JPG file. You should
> use GET. For example, on my local web server i can POST to HTML files,
> but on my hosting provider i cannot - i have to use GET for HTML
> files.
>
> > So I could send the path that user choice C:/Users/example.JPG to my php
> and
> > return 
>
> Imagine what would happen if any JavaScript could read a local file
> and then POST it back to the web site. Scary stuff.
>
> > But isnt working because browsers cant show this tag  > height="50" src="file:///C:/Users/example.JPG"/>
>
> As well it should not. See above.
>
> > I can upload the file to webserver I know but will be more fast and I
> can
> > save some bandwidth traffic if I could do this. And avoid malicious
> users
> > consume my bandwidth traffic.
>
> But this feature is far more malicious than bandwidth theft.
>
> > So Jquery can show Images from file:///C:? or something like this?
>
> This is not a question of jQ, but of JavaScript and the browser's
> security settings. i would NEVER enable my browser to allow reading of
> local files. i don't even think that Firefox lets you configure it to
> do that.
>
>


-- 
Mário Alberto Chaves Moura
[EMAIL PROTECTED]
31-9157-6000


[jQuery] Jquery can show Images from file:///C:?

2007-08-07 Thread Mario Moura
Hi folks

What I am trying is show an image into my browser with this tag

 into my
browser.

Is it possible? or is a security lock from browsers?

I am using $.post()

So I could send the path that user choice C:/Users/example.JPG to my php and
return 

But isnt working because browsers cant show this tag 

I can upload the file to webserver I know but will be more fast and I can
save some bandwidth traffic if I could do this. And avoid malicious users
consume my bandwidth traffic.

So I am trying use AJAX to simulate Upload Ajax? and when forms is already
send images normaly (without ajax).

So Jquery can show Images from file:///C:? or something like this?

Regards

Mario


[jQuery] Re: Allowing a .click() function to occur as many times as needed in tandem with .load() ?

2007-08-03 Thread Mario Moura
Hi Wizzud

You provide to me the best explain how click() and events works and
how unbind()
them. Should be in documentation.

Thanks a lot

"2. the click functions
You detail the click function attached to div.vote_against_selected, the
last steps of which are to change the class of the clicked element to be
div.vote_for_selected. Not a problem in itself.
However, say that, when you run the code that assigns the
div.vote_against_selected click function, it picks up Element A.
Element A, when clicked, will now run the function you have specified below.
As a result of running that function Element A will have its class changed.
BUT that will not affect the code that runs the next time you click Element
A! It will still run the function you have specified below because that is
the code that was assigned to its click.

The only way (outside of the behaviours plugin?) to get Element A (now with
class vote_for_selected) to run the other code you now want it to run when
clicked, is to remove (unbind) Element A's current click function (the stuff
below) and to assign (bind) a new click function with other the code."

Regards

Mario Moura



2007/7/30, oliver <[EMAIL PROTECTED]>:
>
>
> It sounds to me as though you are setting up the $
> ("div.vote_for_selected").click( ... ) event when the div in question
> does not actually have that class, correct?  If so, it is not going to
> work.  Setting an event on a jQuery selector that returns no DOM
> elements does NOT set up events for when those elements do eventually
> exist: it just fails silently.
>
> What you want to do is have the two click functions attached to the
> same DOM element, so I would just put them in the same function body
> with an if/else statement to figure out what the current class is and
> thus which branch of the code to run.
>
> oliver
>
> On Jul 28, 8:50 am, inVINCable <[EMAIL PROTECTED]> wrote:
> > Hello everyone,
> >
> > I am just about ready to throw my darn computer out the window
> > here :P.
> >
> > What I am doing is quite simple, I am using the .load() function to
> > call upon a function, like so:
> >
> > $("div.vote_against_selected").click(function(){
> > //first load content
> > $("div.fake").load("/stories/vote/1/" + $storyid);
> >
> > )};
> >
> > I should note that div.fake does NOT exist, as I do not want anything
> > loaded, because I change the div myself, via the .html() function,
> > like so:
> >
> > $first_new_votes_for = $votes_for * 1 + 1;
> > $first_new_votes_against = $votes_against * 1 - 1;
> > if ($first_new_votes_against == "") {
> > $first_new_votes_against = "0";
> >
> > }
> >
> > $("h3.votenumberfor").html($first_new_votes_against);
> > $("h3.votenumberagainst").html($first_new_votes_for);
> >
> > That works fine and dandy as well! Now, at the very end of my .click()
> > function, after the load, and the .html() functions have taken place,
> > I remove and add a class like so:
> >
> > $(this).removeClass("vote_against_selected");
> > $(this).addClass("vote_for_selected");
> >
> > Again, this works perfect! I even look at look at the code with
> > firebug, and the classes are removed, and added, which is what is
> > exactly what is supposed to happen. But here is the kicker, I have
> > another function that does the EXACT same thing, but is for the
> > vote_for_selected. You will notice right above I used the addClass on
> > the vote_for_select above, like this:
> >
> > $(this).addClass("vote_for_selected");
> >
> > Again, after looking at the source and verifying that the change was
> > made, I try clicking on the new class (that was changed from
> > vote_against_selected, to vote_for_selected when a click on
> > vote_against_selected took place) but NOTHING happens! Ah, and I
> > cannot understand why because looking at my source, the class is
> > changed, so why isn't jquery recognizing this change!
> >
> > Any tips/pointers/advice on where to go from here or any functions to
> > look at are greatly appreciated! (Btw I have use the bind() function
> > in every possible combination but nothing seems to work :(
> >
> > Sincerely,
> > Vince
>
>


-- 
Mário Alberto Chaves Moura
[EMAIL PROTECTED]
31-9157-6000


[jQuery] Drag and Drop links

2007-08-02 Thread Mario Moura
Hi Folks

I am trying drag and drop links from treeview plugin to a input box.

or any link (no matter)

When I try do this the input box receive the href. and title

Ex:

Natural Gas
Distribution

So in this case my input box will receive

http://localhost/final/24360
Natural Gas Distribution

Even if I change my link and remove href or just insert my text.

Natural
Gas Distribution

always will receive my base_path + href  in the last case will receive
something like

http://localhost/final/Natural+Gas+Distribution
Natural Gas Distribution

Probably is a browser feature. I am not sure. Always two rows first href and
second is title

Is it possible or JQuery on the fly drag and Drop just the title? or the
second line to input value box?

Can I remove the "first line" while I am draging the element before drop?

I tried Interface and easydrag and ui.js and ui.drag.js but didnt work.
Ideas?

My input is a simple text field (one line) so just paste the first line
(Href)



This feature is very simple but very useful for many web app.


Regards

Mario Moura


[jQuery] Re: Two words for Jquery

2007-08-01 Thread Mario Moura
BJ AJ


(Before JQuery) (After JQuery)

; )

Mario



2007/8/1, Matt Stith <[EMAIL PROTECTED]>:
>
> Ok then
>
> ;)
>
> On 8/1/07, Aaron Heimlich <[EMAIL PROTECTED]> wrote:
> >
> > On 8/1/07, Matt Stith <[EMAIL PROTECTED]> wrote:
> > >
> > > O rly?
> >
> >
> > Ya rly
> >
> > --
> > Aaron Heimlich
> > Web Developer
> > [EMAIL PROTECTED]
> > http://aheimlich.freepgs.com
>
>
>


-- 
Mário Alberto Chaves Moura
[EMAIL PROTECTED]
31-9157-6000


[jQuery] load() and .ajax How can I do to not freeze my page?

2007-07-31 Thread Mario Moura
Hi Folks

I am trying understand load() and $.ajax

When I insert this code.

$('#loadContent').click(function(){
$("#myid").load("http://localhost/final/myajax.php";);
});

My php file run a query and return a DOM (because I saved my DOM into my
MySql, "caching")

The problem is this function load() freeze my page (few seconds) Works but
freeze.

I read a lot about AJAX theory and I know that I need set in my Javascript
XMLHttpRequest to true to not freeze my request.

I hope JQuery do this to me so I dont need be crazy to understand all
Javascript problems and solutions.

So I read JQuery Documentations and tried use .ajax

Apparently I dont have problem but how can I output the result using JQuery?

$('#loadContent').click(function(){

 var myvar = $.ajax({
  type: "GET",
  url: "http://localhost/final/myajax.php";,
  dataType: "html",
  async: true
 });
return myvar
});

What is missing?

I used this to start my Ajax.



Regards

Mário Moura


[jQuery] Re: Sliding an image into a box - Little animation

2007-07-28 Thread Mario Moura
Thanks Mitchell

Not yet

I tried and a lot of variations

$("dd ul li").hover(
function(){
  $(this).css({background: "blue" }).SlideOutRight(1000)
},
function(){
  $(this).css({background: "" }).SlideinRight(1000)
});   // NOT WORKING

I would like just background sliding and complete the box. (when mouseover)
and slideout after. Nice effect with flash.or animated gif But with Jquery
is more fun!

Ideas?

Regards

Mario

2007/7/28, Mitchell Waite <[EMAIL PROTECTED]>:
>
>  You could use the Interface Elements plug-in and the effect SlideInRight.
>
>
>
> *From:* jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] *On
> Behalf Of *Mario Moura
> *Sent:* Saturday, July 28, 2007 6:41 AM
> *To:* jquery-en@googlegroups.com
> *Subject:* [jQuery] Sliding an image into a box - Little animation
>
>
>
> Hi Folks
>
> I am trying make a little effect.
>
> In my menu/box/container I want a Sliding effect of  a image or background
> color.
>
> So when mouseover
> --> the image complete the box from left to right. One time and stop.
>
> $("dd/ul/li").mouseover( function() {
> $($(this).addClass("selected")).animate({top: -205},"slow");
> return false;
> } );
>
> Ideas?
>
> Regards
>
> --
> Mário
>



-- 
Mário Alberto Chaves Moura
[EMAIL PROTECTED]
31-9157-6000


[jQuery] Sliding an image into a box - Little animation

2007-07-28 Thread Mario Moura
Hi Folks

I am trying make a little effect.

In my menu/box/container I want a Sliding effect of  a image or background
color.

So when mouseover
--> the image complete the box from left to right. One time and stop.

$("dd/ul/li").mouseover( function() {
$($(this).addClass("selected")).animate({top: -205},"slow");
return false;
} );

Ideas?

Regards

-- 
Mário


[jQuery] Re: switch between two class - Basic Issue

2007-07-25 Thread Mario Moura

Thanks Jonathan

Almost but still not working

$('.collapsible .collapsed').bind('click', function() {

$(this).toggleClass('collapsible').toggleClass('collapsed').toggleClass('collapsibleopen');
});

I said too

I have many .collapsible .collapsed classes so I cant change all at the same
time. Ideas?

So when I use your idea my All "tree" open and if I click again all close.
Works fine in main root.

Can I set in $(this) to apply this JQuery only in the real clicked
"element"? I am trying some XPath Selectors. Could you help me?

Cheers ;)

Mario


2007/7/25, Jonathan Sharp <[EMAIL PROTECTED]>:


The issue lies in that you're trying to bind your click event to
.collapsibleopen at document ready time. The .collapsibleopen class won't be
available until the user clicks to have it added. I think below is more of
what you're after...

$('.collapsible .collapsed .collapsibleopen').bind('click', function() {

$(this).toggleClass('collapsible').toggleClass('collapsed').toggleClass('collapsibleopen');
});

Cheers,
-js


On 7/25/07, Mario Moura <[EMAIL PROTECTED]> wrote:
>
> Hi Folks
>
> I am trying switch between two class
>
> Is it possible?
>
>
> $(document).ready(function(){
>
>  $(".collapsible .collapsed").click(function(){
> $(this).removeClass().addClass("collapsibleopen");
>  });
>
>  $("collapsibleopen").click(function(){
> $(this).removeClass().addClass("collapsible collapsed");
>  });
>
>  });
>
> My first switch works but when I click in collapsibleopen (change from
> the previous click) didnt change.
>
> I have many .collapsible .collapsed classes so I cant change all at the
> same time. Ideas?
>
> Regards
>
> --
> Mário






--
Mário Alberto Chaves Moura
[EMAIL PROTECTED]
31-9157-6000


[jQuery] Re: switch between two class - Basic Issue

2007-07-25 Thread Mario Moura

yes, But still not working. Strange behavior. I guess or I need study more.
:)

$(document).ready(function(){

$(".collapsible .collapsed").click(function(){
   $(this).removeClass().addClass("collapsibleopen");
});

$(".collapsibleopen").click(function(){
   $(this).removeClass().addClass("collapsible collapsed");
});

});

thanks

Regards

Mario


2007/7/25, Eric C <[EMAIL PROTECTED]>:



shouldn't your line:
$("collapsibleopen").click(function(){
be
$(".collapsibleopen").click(function(){

?
On Jul 25, 3:28 pm, "Mario Moura" <[EMAIL PROTECTED]> wrote:
> Hi Folks
>
> I am trying switch between two class
>
> Is it possible?
>
> $(document).ready(function(){
>
>  $(".collapsible .collapsed").click(function(){
> $(this).removeClass().addClass("collapsibleopen");
>  });
>
>  $("collapsibleopen").click(function(){
> $(this).removeClass().addClass("collapsible collapsed");
>  });
>
>  });
>
> My first switch works but when I click in collapsibleopen (change from
the
> previous click) didnt change.
>
> I have many .collapsible .collapsed classes so I cant change all at the
same
> time. Ideas?
>
> Regards
>
> --
> Mário





--
Mário Alberto Chaves Moura
[EMAIL PROTECTED]
31-9157-6000


[jQuery] switch between two class - Basic Issue

2007-07-25 Thread Mario Moura

Hi Folks

I am trying switch between two class

Is it possible?


$(document).ready(function(){

$(".collapsible .collapsed").click(function(){
   $(this).removeClass().addClass("collapsibleopen");
});

$("collapsibleopen").click(function(){
   $(this).removeClass().addClass("collapsible collapsed");
});

});

My first switch works but when I click in collapsibleopen (change from the
previous click) didnt change.

I have many .collapsible .collapsed classes so I cant change all at the same
time. Ideas?

Regards

--
Mário


[jQuery] Re: AJAX .load() Can I set web place to my script?

2007-07-25 Thread Mario Moura

Hi Rob

Sorry my english. Isnt native

I think php will get the php code and execute it.

I am Drupalist.

$().load() will execute my php file always in my main root or in
http://localhost/mysite or in actual physical path, no matter.

I need pass an argument to this php file or to my server (I dont know how or
which "server or file") telling this php file isnt in main root it is in
http://localhost/mysite/node/add/mycontent. Like a mask or alias.

myscript.php is
- - - - - -
chdir('./../../../'); // for relative path includes to work I tried change
this value but didnt work
include "includes/bootstrap.inc";
drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL);
print $content;
- - - - - -

If I can pass the argument (path=http://localhost/mysite/node/add/mycontent)
to my server with load() the $print content; will get my content from this
path in the Drupal.

You can see if this work could be a good, fast and easy way to implement
AJAX and many CMS will love.

But could be a crazy idea. If is forgive me and sorry.

Regards

Mario

2007/7/25, Rob Desbois <[EMAIL PROTECTED]>:


Mario,

I don't understand - are you wishing to change the working directory for
PHP? If so the function chdir() can help you.

If that's not what you're asking I don't get it, can you rephrase the
question, perhaps let us know what you're trying to do with this?

--rob


On 7/25/07, Mario Moura <[EMAIL PROTECTED]> wrote:
>
> Hi Folks
>
> Now I am tasting Jquery AJAX
>
> My BIG problem is
>
> $("#myID").load("/mysite/myCustomDir/MyOtherPlace/myscript.php");
>
> Yes I can run my php file. Excelent! but How can I set to this file to
> run in http://localhost/mysite/mydir/myplace?
>
> In other word I would like to say to my server hey! I am in 
http://localhost/mysite/mydir/myplace
> load me
>
> Every time run in http://localhost/mysite
>
> It is impossible set the web url by php. Could I set with Jquery?
>
> In my case is impossible set
> /mysite/myCustomDir/MyOtherPlace/myscript.php equal with
> http://localhost/mysite/mydir/myplace
>
> Regards
>
> --
> Mário




--
Rob Desbois
Eml: [EMAIL PROTECTED]
Tel: 01452 760631
Mob: 07946 705987
"There's a whale there's a whale there's a whale fish" he cried, and the
whale was in full view.
...Then ooh welcome. Ahhh. Ooh mug welcome.





--
Mário Alberto Chaves Moura
[EMAIL PROTECTED]
31-9157-6000


[jQuery] AJAX .load() Can I set web place to my script?

2007-07-25 Thread Mario Moura

Hi Folks

Now I am tasting Jquery AJAX

My BIG problem is

$("#myID").load("/mysite/myCustomDir/MyOtherPlace/myscript.php");

Yes I can run my php file. Excelent! but How can I set to this file to run
in http://localhost/mysite/mydir/myplace?

In other word I would like to say to my server hey! I am in
http://localhost/mysite/mydir/myplace load me

Every time run in http://localhost/mysite

It is impossible set the web url by php. Could I set with Jquery?

In my case is impossible set /mysite/myCustomDir/MyOtherPlace/myscript.php
equal with http://localhost/mysite/mydir/myplace

Regards

--
Mário


[jQuery] Re: TreeView with "Checkbox Tree"

2007-07-23 Thread Mario Moura

Other good example

http://www.scbr.com/docs/products/dhtmlxTree/

Regards



2007/6/26, Jörn Zaefferer <[EMAIL PROTECTED]>:



Mario Moura wrote:
> Yes, Jörn
>
> Will be a good addon to treeview.
>
> About Christof email if just add the checkboxes to the -Tag will
> work?
>
> Should I re-create my tree from my select form using
> 
> or
>  
How about this?

Blah

--
Jörn Zaefferer

http://bassistance.de





--
Mário Alberto Chaves Moura
[EMAIL PROTECTED]
31-9157-6000


[jQuery] Re: Remove Column from a table

2007-07-13 Thread Mario Moura

Sean

Thanks a lot, works like a charm.

Regards

Mario Moura

2007/7/13, Sean Catchpole <[EMAIL PROTECTED]>:


$('#myid table').find('th:first-child, td:first-child' ).remove();

~Sean





--
Mário Alberto Chaves Moura
[EMAIL PROTECTED]
31-9157-6000


[jQuery] Remove Column from a table

2007-07-12 Thread Mario Moura

Hi Folks

I need remove first a last column from a table.

To head I used

$('#myid table thead tr > th:first').remove()
$('#myid table thead tr > th:last').remove()

Works fine but to body I am trying without sucess.

I tried this but how you can see will delete only first and last cell.

$('#myid table tbody tr > td:first').remove()
$('#myid table tbody tr > td:last').remove()

Ideas?

Regards

--
Mário Moura


[jQuery] Re: Strange behavior

2007-07-12 Thread Mario Moura

Sorry It is done

The problem it is I am using Jquery tabs Plugin and my function should be
run before this plugin

Thanks anyway

Regards

Mario

2007/7/12, Mario Moura <[EMAIL PROTECTED]>:


Hi Folks

I wrote:

$("#fragment-2 .pager .pager-list > a").attr("href", function() {return
this.href + ('#fragment-2')});

When I insert into my Firefox Console and run works fine.

When I tried insert into my pages this Jquery function didnt run. I tried
everything (after Jquery script, after and before php functions etc)

I am reporting this bug to see if somebody can tell me why.



jQuery(document).ready(function() {
$("#fragment-2 .pager .pager-list > a").attr("href",
function() {return this.href + ('#fragment-2')});
 });


Regards

--
Mário Moura





--
Mário Alberto Chaves Moura
[EMAIL PROTECTED]
31-9157-6000


[jQuery] Strange behavior

2007-07-12 Thread Mario Moura

Hi Folks

I wrote:

$("#fragment-2 .pager .pager-list > a").attr("href", function() {return
this.href + ('#fragment-2')});

When I insert into my Firefox Console and run works fine.

When I tried insert into my pages this Jquery function didnt run. I tried
everything (after Jquery script, after and before php functions etc)

I am reporting this bug to see if somebody can tell me why.



jQuery(document).ready(function() {
   $("#fragment-2 .pager .pager-list > a").attr("href", function()
{return this.href + ('#fragment-2')});
});


Regards

--
Mário Moura


[jQuery] Re: TreeView with "Checkbox Tree"

2007-06-26 Thread Mario Moura

Yes, Jörn

Will be a good addon to treeview.

About Christof email if just add the checkboxes to the -Tag will work?

Should I re-create my tree from my select form using

or



Regards

Mario




2007/6/25, Jörn Zaefferer <[EMAIL PROTECTED]>:



Christof Donat wrote:
>> I want insert Checkbox in my treeview.
>>
>> Is it possible with JQuery?
>>
>
> I guess Jörns Treeview Plugin will do the trik for you. Just add the
> checkboxes to the -Tag.
>
> http://bassistance.de/jquery-plugins/jquery-plugin-treeview/
>
Thats what I thought at first, too. The examples posted is a bit
trickier though: Unchecking a nested checkbox makes the parent checkbox
half-checked (grey background), achieved by replacing normal checkboxes
with images. If you uncheck all children, the parent is unchecked, too.
Sounds like an interesting addon to the treeview plugin.

--
Jörn Zaefferer

http://bassistance.de





--
Mário Alberto Chaves Moura
[EMAIL PROTECTED]
31-9157-6000


[jQuery] TreeView with "Checkbox Tree"

2007-06-25 Thread Mario Moura

Hi Folks

I am looking for this:

http://www.blueshoes.org/_bsJavascript/components/tree/examples/example3.html

I want insert Checkbox in my treeview.

Is it possible with JQuery?

Regards


Mário Moura


[jQuery] Re: Remove DOM siblings after current item

2007-06-05 Thread Mario Moura

Not tested

$().remove($('#appendExtraAppointments').children());

or


$().remove($('#appendExtraAppointments').siblings());

Not sure,

Mario

2007/6/5, [EMAIL PROTECTED] <[EMAIL PROTECTED]>:



I have the following DOM:


blah 1
blah 2
blah 3
blah 4


I would like to remove the li elements after the blah 2.

I tried doing something like this, but it didn't work:

$('#appendExtraAppointments').siblings().not($('li').prev).remove();

Any ideas?

Thanks!





--
Mário Alberto Chaves Moura
[EMAIL PROTECTED]
31-9157-6000


[jQuery] Re: How to remove links from Interface Slideshow?

2007-06-04 Thread Mario Moura

Try use CSS in the class

or find the container of 123456 and use $('.nameofcontainer').hide()

Mario

2007/6/4, Rick Faircloth <[EMAIL PROTECTED] >:



Hi, all...

I'm using the Eyecon Interface Slideshow plug-in.

I'm using it simply to display images that fade one to another
without wanting the user to click any links or control the images.

I'm trying to remove the image links: "123456", but when I remove
the options (and these are options), I get errors.

???

Thanks,

Rick






--
Mário Alberto Chaves Moura
[EMAIL PROTECTED]
31-9157-6000


[jQuery] Re: How to remove links from Interface Slideshow?

2007-06-04 Thread Mario Moura

Try use CSS in the class or ID

or find the container of 123456 and use $('.nameofcontainer').hide()




2007/6/4, Rick Faircloth <[EMAIL PROTECTED]>:



Hi, all...

I'm using the Eyecon Interface Slideshow plug-in.

I'm using it simply to display images that fade one to another
without wanting the user to click any links or control the images.

I'm trying to remove the image links: "123456", but when I remove
the options (and these are options), I get errors.

???

Thanks,

Rick






--
Mário Alberto Chaves Moura
[EMAIL PROTECTED]
31-9157-6000


[jQuery] Re: I asked out of curiosity.

2007-06-03 Thread Mario Moura

Thanks folks

The tip was nice.

In my case I resolved using this:

$('.myclass').each(function(){
  $(this).prepend($(this).parent().parent().prev().text());
});

Regards

Mario


2007/6/3, March <[EMAIL PROTECTED]>:



you could use it like this:

$('.children0').prepend(this.parents('.myclass-siblings').prev().text());

On 6/3/07, Mario Moura <[EMAIL PROTECTED]> wrote:
> Hi Folks
>
> I have a group of div's with same class.
>
> MY TEXT 1
> 
> 
> <=TO HERE (1)
> 
> 
>
> MY TEXT 2
> 
> 
> <=TO HERE (2)
> 
> 
>
> MY TEXT 3
> 
> 
> <=TO HERE (3)
> 
> 
>
> I know do this to one group something like this:
>
> $('.children1').prepend($('.myclass').text())
>
> The problem is in my DOM I have 10 occurrences of .myclass
>
> Is it possible run Jquery dynamically.
>
> It is mean find the text of .myclass and insert the text in your
> $('.children1') and go to next occurrence.
>
> If is not possible my solution will convert class to ID (to be unique)
>
> I asked out of curiosity.
>
> Regards
>
> Mario


--
Zacky Ma
www.marchbox.com





--
Mário Alberto Chaves Moura
[EMAIL PROTECTED]
31-9157-6000


[jQuery] I asked out of curiosity.

2007-06-03 Thread Mario Moura

Hi Folks

I have a group of div's with same class.

MY TEXT 1


   <=TO HERE (1)
   


MY TEXT 2


   <=TO HERE (2)
   


MY TEXT 3


   <=TO HERE (3)
   


I know do this to one group something like this:

$('.children1').prepend($('.myclass').text())

The problem is in my DOM I have 10 occurrences of .myclass

Is it possible run Jquery dynamically.

It is mean find the text of .myclass and insert the text in your
$('.children1') and go to next occurrence.

If is not possible my solution will convert class to ID (to be unique)

I asked out of curiosity.

Regards

Mario


[jQuery] How override default "Destination URL" to Media or Flash plugin?

2007-06-01 Thread Mario Moura

Hi Folks

I have some .swf files.

Sometimes I need change "Destination URL" for the same swf file

I am not specialist in flash so isnt my plan edit each one.

Some files have "default Destination URL" others are in blank.

How can I do that with jQuery Media Plugin or jQuery Flash Plugin?

I saw Max Media Manager, I dont know what they did but It is possible
override default "Destination URL" so if they did Jquery can do this too!

Please help me.

Regards

Mario


[jQuery] How override default "Destination URL" to media or flash plugin?

2007-06-01 Thread Mario Moura

Hi Folks

I have some .swf files.

Sometimes I need change "Destination URL" for the same swf file

I am not specialist in flash so isnt my plan edit each one.

Some files have "default Destination URL" others are in blank.

How can I do that with jQuery Media Plugin or jQuery Flash Plugin?

I saw Max Media Manager, I dont know what they did but It is possible
override default "Destination URL" so if they did Jquery can do this too!

Please help me.

Regards


[jQuery] Re: [ANN] jQuery Media Plugin

2007-06-01 Thread Mario Moura

Hi,

I have a .swf file

Jquery Pluging works fine but how can I insert a link in my swf file?

I tried flashvars, attrs, params, link, href.

Something like this:

jQuery(document).ready(function() {
$('.media').media( {
   width: 300,
   height:250 ,
   autoplay: true,
1)  flashvars: { getURL:'http:www.mylink.com', '_blank'}  /** whitout numers
1),2),3) of course **/
2) flashvars: { value: 'link=http:www.mylink.com'}
3) attrs: { link:  'http:www.mylink.com'}

   })
});

I am not developer of flash but I have someones I will be happy if I could
link them to some places without edit each one.

Is it possible?

Regards

Mario

2007/5/26, Bil Corry <[EMAIL PROTECTED]>:



Rhapidophyllum wrote on 5/26/2007 7:49 AM:
> Are those -PC- instead of -Mac- Firefox instructions?

PC.

- Bil






--
Mário Alberto Chaves Moura
[EMAIL PROTECTED]
31-9157-6000


[jQuery] Re: Suggestion - A | B | C | - Navigation container

2007-05-18 Thread Mario Moura

Hi Folks

I was thinking but If the list have hundreds of itens?

We could create a Pager

<-- 1 | 2 | 3 | 4 ... --->
<-- ... 5 | 6 | 7 | 8 ... --->

in the botton of each letter

and

limit each list with a user's argument for example 10 itens or 100 itens

Just an Idea

Regards

Mario


2007/5/13, Ⓙⓐⓚⓔ <[EMAIL PROTECTED]>:


the latest version works against the actual text, instead of the html
inside the 

I.E. It's fixed, thanks to Sam's notice!

On 5/13/07, Mario Moura <[EMAIL PROTECTED]> wrote:
>
> Hi
>
> If the list have an anchor tag Jake
>
> letters.js cant work
>
> The result will be A to all itens. My hunch is A from 
> Regards
>
> Mario
>
>
>
> 2007/5/13, Ⓙⓐⓚⓔ <[EMAIL PROTECTED]>:
> >
> > Good catch Sam, it's been updated over at google.
> > http://jqueryjs.googlecode.com/svn/trunk/plugins/letters/
> >
> > On 5/13/07, Sam Collett < [EMAIL PROTECTED]> wrote:
> > >
> > >
> > > On May 13, 2:10 am, "Ⓙⓐⓚⓔ" <[EMAIL PROTECTED]> wrote:
> > > > Thanks Mario, I put it up in the plugins directory of the 
svn.http://jqueryjs.googlecode.com/svn/trunk/plugins/letters/
> > >
> > > >
> > > Instead of html() perhaps text() would be better as it wouldn't work
> > > as expected when there is a list item like this:
> > > Some text
> > >
> > >
> >
> >
> > --
> > Ⓙⓐⓚⓔ - יעקב   ʝǡǩȩ   ᎫᎪᏦᎬ
>
>
>
>
> --
> Mário Alberto Chaves Moura
> [EMAIL PROTECTED]
> 31-9157-6000
>



--
Ⓙⓐⓚⓔ - יעקב   ʝǡǩȩ   ᎫᎪᏦᎬ





--
Mário Alberto Chaves Moura
[EMAIL PROTECTED]
31-9157-6000


[jQuery] Star Rating System

2007-05-17 Thread Mario Moura

Hi Folks

I would like to suggest a improvement in this amazing plugin
http://php.scripts.psu.edu/rja171/widgets/rating.php

look  http://www.imdb.com/title/tt0413300/

You have User Rating: 7.4/10 average .

This average could be in a container for example 

Select
1
2
.
7
10



So two things are important.
If  none  isnt selected so Request user vote , and after vote append
vote like Imdb did.
if  

[jQuery] Re: Suggestion - A | B | C | - Navigation container

2007-05-13 Thread Mario Moura

Ok.

Done with:
var lis = $('ul/a').siblings()

I dont know if is the best way but is working.

Thanks again Jake.

Regards

Mario

2007/5/13, Mario Moura <[EMAIL PROTECTED]>:


Hi

If the list have an anchor tag Jake

letters.js cant work

The result will be A to all itens. My hunch is A from :
>
> Good catch Sam, it's been updated over at google.
> http://jqueryjs.googlecode.com/svn/trunk/plugins/letters/
>
> On 5/13/07, Sam Collett < [EMAIL PROTECTED]> wrote:
> >
> >
> > On May 13, 2:10 am, "Ⓙⓐⓚⓔ" <[EMAIL PROTECTED]> wrote:
> > > Thanks Mario, I put it up in the plugins directory of the 
svn.http://jqueryjs.googlecode.com/svn/trunk/plugins/letters/
> >
> > >
> > Instead of html() perhaps text() would be better as it wouldn't work
> > as expected when there is a list item like this:
> > Some text
> >
> >
>
>
> --
> Ⓙⓐⓚⓔ - יעקב   ʝǡǩȩ   ᎫᎪᏦᎬ




--
Mário Alberto Chaves Moura
[EMAIL PROTECTED]
31-9157-6000





--
Mário Alberto Chaves Moura
[EMAIL PROTECTED]
31-9157-6000


[jQuery] Re: Suggestion - A | B | C | - Navigation container

2007-05-13 Thread Mario Moura

Hi

If the list have an anchor tag Jake

letters.js cant work

The result will be A to all itens. My hunch is A from :


Good catch Sam, it's been updated over at google.
http://jqueryjs.googlecode.com/svn/trunk/plugins/letters/

On 5/13/07, Sam Collett <[EMAIL PROTECTED]> wrote:
>
>
> On May 13, 2:10 am, "Ⓙⓐⓚⓔ" <[EMAIL PROTECTED]> wrote:
> > Thanks Mario, I put it up in the plugins directory of the 
svn.http://jqueryjs.googlecode.com/svn/trunk/plugins/letters/
>
> >
> Instead of html() perhaps text() would be better as it wouldn't work
> as expected when there is a list item like this:
> Some text
>
>


--
Ⓙⓐⓚⓔ - יעקב   ʝǡǩȩ   ᎫᎪᏦᎬ





--
Mário Alberto Chaves Moura
[EMAIL PROTECTED]
31-9157-6000


[jQuery] Re: Suggestion - A | B | C | - Navigation container

2007-05-12 Thread Mario Moura

Amazing,

Thanks a lot, should be in Jquery Plugins page,

Regards

Mario

2007/5/12, Ⓙⓐⓚⓔ <[EMAIL PROTECTED]>:


thanks Bill,
Like any piece of new code, there are bound to be bugs... click works
better here than toggle, so :


http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd";>
http://www.w3.org/1999/xhtml"; xml:lang="en">


letters



jQuery.keysOf = function(obj){
var keys = []
for(keys[keys.length] in obj);
return keys
}
jQuery.fn.letters = function(speed){
var ul = jQuery(this)
var items = {}
var lis = ul.children()
var div = jQuery("
") .prependTo(ul.parent()) lis.each(function(){ var let = jQuery(this).hide().html().charAt(0).toUpperCase() if (!items[let]) items[let] = [] items[let].push(this) }) var keys = jQuery.keysOf(items).sort().reverse() for (var i in keys){ (function(i){ // scope i jQuery("" + keys[i] +"") .css({textDecoration: 'underline',cursor:'pointer'}) .click(function(){ lis.hide() jQuery(items[keys[i]]).show(speed,function(){jQuery(this).attr('style','')}) }) .prependTo(div) if (i | ").prependTo(div) })(i) } } jQuery(function($){ $('ul.alpha').letters('slow') }); jaime nacho noelle andy duncan jake junior donna mario anna bill john On 5/11/07, Bil Corry < [EMAIL PROTECTED]> wrote: > > > Ⓙⓐⓚⓔ wrote on 5/11/2007 5:06 PM: > > As a plug in: > > Very cool, thanks for sharing! > > - Bil > > > > > -- Ⓙⓐⓚⓔ - יעקב ʝǡǩȩ ᎫᎪᏦᎬ -- Mário Alberto Chaves Moura [EMAIL PROTECTED] 31-9157-6000

[jQuery] Suggestion - A | B | C | - Navigation container

2007-05-11 Thread Mario Moura

Hi Folks

This email is a suggest to a new plugin.

Is it possible from a list  create a A/B/C Navigation container?

A | B | C | ...

Accessible Travel
Assisted Living
...

If is possible please let me know, If not feel free to use it.

Regards

Mario


[jQuery] Re: click - Basic issue

2007-05-10 Thread Mario Moura

Done

Fixed with last Jquery version?

Thanks Jquery Team!

Regards

Mario

2007/5/10, Mario Moura <[EMAIL PROTECTED]>:


Ok I did

 window.open("http://localhost"; +
($($("a").contains($(".slideshowCaption").text()).clone().empty()).attr("href"))

works fine in FF but in IE

I receive the word "about" in the middle of my domain. Example: =>
http://localhostabout/home/admin

Crazy bug! I trying find something but if an expert could be explain what
is going on I will be glad.

Regards

Mario


2007/5/10, Mario Moura <[EMAIL PROTECTED]>:
>
> Thanks Klaus
>
> You are right.
>
> Now I have another problem.
>
> $($("a").contains($(".slideshowCaption").text())
> .clone().empty()).attr("href")
>
> Show me /mydir/myref works fine in FF but in IE7
> dont.(about:/mydir/myref)
>
> So I am trying concatenate "http://www.mydomain " with /mydir/myref into
> window.open
>
> Do you know How Can I do this?
>
> Regards
>
> Mario
>
>
> 2007/5/10, Klaus Hartl < [EMAIL PROTECTED]>:
> >
> >
> > Mario Moura wrote:
> > > Thanks,
> > >
> > > Works like a charm. Now I finished what I was looking for.
> > >
> > > I was working to insert a link in caption(Subtitle) of Interface
> > > SlideShow  ( http://interface.eyecon.ro/demos/slideshow.html
> > > < http://interface.eyecon.ro/demos/slideshow.html>)
> > >
> > > Here my solution:
> > >
> > > $(".slideshowCaption").click( function openNewWindow()
> > > {
> > > window.open($($("a").contains($(".slideshowCaption
> > > ").text()).clone().empty()).attr("href"), "_self");
> > > } ); */ by Mario Moura
> >
> > I'm not sure if naming an anonymous function is supported in every
> > browser. The following should be sufficient:
> >
> > $(".slideshowCaption").click( function() {
> >  window.open($($("a").contains($(".slideshowCaption").text())
> >  .clone().empty()).attr("href"), "_self");
> > } );
> >
> > More information:
> > http://my.opera.com/hallvors/blog/show.dml/738487
> >
> >
> > -- Klaus
> >
> >
>
>
> --
> Mário Alberto Chaves Moura
> [EMAIL PROTECTED]
> 31-9157-6000
>



--
Mário Alberto Chaves Moura
[EMAIL PROTECTED]
31-9157-6000





--
Mário Alberto Chaves Moura
[EMAIL PROTECTED]
31-9157-6000


[jQuery] Re: click - Basic issue

2007-05-10 Thread Mario Moura

Ok I did

window.open("http://localhost"; +
($($("a").contains($(".slideshowCaption").text()).clone().empty()).attr("href"))

works fine in FF but in IE

I receive the word "about" in the middle of my domain. Example: =>
http://localhostabout/home/admin

Crazy bug! I trying find something but if an expert could be explain what is
going on I will be glad.

Regards

Mario


2007/5/10, Mario Moura <[EMAIL PROTECTED]>:


Thanks Klaus

You are right.

Now I have another problem.

$($("a").contains($(".slideshowCaption").text())
.clone().empty()).attr("href")

Show me /mydir/myref works fine in FF but in IE7 dont.(about:/mydir/myref)

So I am trying concatenate "http://www.mydomain"; with /mydir/myref into
window.open

Do you know How Can I do this?

Regards

Mario


2007/5/10, Klaus Hartl <[EMAIL PROTECTED]>:
>
>
> Mario Moura wrote:
> > Thanks,
> >
> > Works like a charm. Now I finished what I was looking for.
> >
> > I was working to insert a link in caption(Subtitle) of Interface
> > SlideShow  (http://interface.eyecon.ro/demos/slideshow.html
> > < http://interface.eyecon.ro/demos/slideshow.html>)
> >
> > Here my solution:
> >
> > $(".slideshowCaption").click( function openNewWindow()
> > {
> > window.open($($("a").contains($(".slideshowCaption
> > ").text()).clone().empty()).attr("href"), "_self");
> > } ); */ by Mario Moura
>
> I'm not sure if naming an anonymous function is supported in every
> browser. The following should be sufficient:
>
> $(".slideshowCaption").click( function() {
>  window.open($($("a").contains($(".slideshowCaption").text())
>  .clone().empty()).attr("href"), "_self");
> } );
>
> More information:
> http://my.opera.com/hallvors/blog/show.dml/738487
>
>
> -- Klaus
>
>


--
Mário Alberto Chaves Moura
[EMAIL PROTECTED]
31-9157-6000





--
Mário Alberto Chaves Moura
[EMAIL PROTECTED]
31-9157-6000


[jQuery] Re: click - Basic issue

2007-05-10 Thread Mario Moura

Thanks Klaus

You are right.

Now I have another problem.

$($("a").contains($(".slideshowCaption").text())
   .clone().empty()).attr("href")

Show me /mydir/myref works fine in FF but in IE7 dont.(about:/mydir/myref)

So I am trying concatenate "http://www.mydomain"; with /mydir/myref into
window.open

Do you know How Can I do this?

Regards

Mario


2007/5/10, Klaus Hartl <[EMAIL PROTECTED]>:



Mario Moura wrote:
> Thanks,
>
> Works like a charm. Now I finished what I was looking for.
>
> I was working to insert a link in caption(Subtitle) of Interface
> SlideShow  (http://interface.eyecon.ro/demos/slideshow.html
> <http://interface.eyecon.ro/demos/slideshow.html>)
>
> Here my solution:
>
> $(".slideshowCaption").click( function openNewWindow()
> {
> window.open($($("a").contains($(".slideshowCaption
> ").text()).clone().empty()).attr("href"), "_self");
> } ); */ by Mario Moura

I'm not sure if naming an anonymous function is supported in every
browser. The following should be sufficient:

$(".slideshowCaption").click( function() {
 window.open($($("a").contains($(".slideshowCaption").text())
 .clone().empty()).attr("href"), "_self");
} );

More information:
http://my.opera.com/hallvors/blog/show.dml/738487


-- Klaus





--
Mário Alberto Chaves Moura
[EMAIL PROTECTED]
31-9157-6000


[jQuery] Re: click - Basic issue

2007-05-09 Thread Mario Moura

Thanks,

Works like a charm. Now I finished what I was looking for.

I was working to insert a link in caption(Subtitle) of Interface SlideShow
(http://interface.eyecon.ro/demos/slideshow.html)

Here my solution:

$(".slideshowCaption").click( function openNewWindow()
{
   window.open($($("a").contains($(".slideshowCaption
").text()).clone().empty()).attr("href"), "_self");
} ); */ by Mario Moura


So you just need have  tag with my href.

Hope be useful to who looking for same objective.

Regards

Mario


2007/5/9, Aaron Heimlich <[EMAIL PROTECTED]>:


this should work:

$("p").click( function() { window.location = 'http://localhost/home'; } );

but why not just use an plain old link?

On 5/9/07, Mario Moura <[EMAIL PROTECTED]> wrote:
>
> Hi all
>
> I am trying
>
> $("p").click( function() { alert("Hello"); } );
>
> but I would like open in same window a page(link) like
> http://localhost/home
>
> How can I do that?
>
> I can only receive popups with click() function
>
> Regards
>
> Mario
>



--
Aaron Heimlich
Web Developer
[EMAIL PROTECTED]
http://aheimlich.freepgs.com





--
Mário Alberto Chaves Moura
[EMAIL PROTECTED]
31-9157-6000


[jQuery] click - Basic issue

2007-05-09 Thread Mario Moura

Hi all

I am trying

$("p").click( function() { alert("Hello"); } );

but I would like open in same window a page(link) like http://localhost/home

How can I do that?

I can only receive popups with click() function

Regards

Mario


[jQuery] Re: SlideShow Interface

2007-05-09 Thread Mario Moura

I am trying and I am almost there

$($('.slideshowCaption').parent('a')).removeAttr("href")
$(".slideshowCaption").wrap($("a").contains($(".slideshowCaption
").text()).clone().empty());

is fine but two things hapen:
1) unlimited  empty tags (How can I remove  without remove all
children elements?)
2) I need a function

$(document).ready(function(){
$result = $(".slideshowCaption ").text();
if ($(".slideshowCaption ").text() != $result) {
$($('.slideshowCaption').parent('a')).removeAttr("href")
$(".slideshowCaption").wrap($("a").contains($(".slideshowCaption
").text()).clone().empty());
};
});

Please who can help me rewrite this function to JQuery?

Regards

Mario


2007/5/9, Mario Moura <[EMAIL PROTECTED]>:


Hi Folks

Everbody probably know SlideShow from
http://interface.eyecon.ro/demos/slideshow.html

It is nice but dont have a way to href the caption to something.

I am trying but change function dont do what I hope, so probably I am in
wrong way.

$($(".slideshowCaption
").text()).change($(".slideshowCaption").wrap($("a").contains($(".slideshowCaption
").text()).clone().empty()));

basically
$(".slideshowCaption ").text() find the text from slideshowCaption

I hope when this text change (by interface) I can insert in
.slideshowCaption a wrap element (a) that contains  ($(".slideshowCaption
").text()).clone().empty())

I am using .clone ()because I cant lose the text reference and .empty()
because .wrap () need empty element (work fine if I insert into firebug
console)

I tested $(".slideshowCaption").attr("onchange", "alert('Hello');");

So when .slideshowCaption change should alert hello. But again nothing
happen.

What is missing? tips?

Regards

Mario





--
Mário Alberto Chaves Moura
[EMAIL PROTECTED]
31-9157-6000


[jQuery] SlideShow Interface

2007-05-09 Thread Mario Moura

Hi Folks

Everbody probably know SlideShow from
http://interface.eyecon.ro/demos/slideshow.html

It is nice but dont have a way to href the caption to something.

I am trying but change function dont do what I hope, so probably I am in
wrong way.

$($(".slideshowCaption
").text()).change($(".slideshowCaption").wrap($("a").contains($(".slideshowCaption
").text()).clone().empty()));

basically
$(".slideshowCaption ").text() find the text from slideshowCaption

I hope when this text change (by interface) I can insert in
.slideshowCaption a wrap element (a) that contains  ($(".slideshowCaption
").text()).clone().empty())

I am using .clone ()because I cant lose the text reference and .empty()
because .wrap () need empty element (work fine if I insert into firebug
console)

I tested $(".slideshowCaption").attr("onchange", "alert('Hello');");

So when .slideshowCaption change should alert hello. But again nothing
happen.

What is missing? tips?

Regards

Mario


[jQuery] Re: $("img").attr("title", "${this.src}");

2007-05-09 Thread Mario Moura

Now I see you John Resig.  I feel honored talk with you. Congratulations and
tanks for all.

Regards

Mario

2007/5/9, Mario Moura <[EMAIL PROTECTED]>:


Ok I found here:

http://www.visualjquery.com
attr(key, value)  ---> Example

But fortunately I found my mistake:

Will work like this

$($("#myid//img").get(0)).attr("title",
$($('#myid/.markup02/div/.field-item').siblings().get(0)).text());

Without ${...}

Regards

Mario

2007/5/9, John Resig <[EMAIL PROTECTED]>:
>
>
> Mario -
>
> ${...} doesn't, currently, exist in jQuery. Did you find an example
> somewhere that showed it as working? (It needs to be fixed.)
>
> --John
>
> On 5/9/07, Mario Moura < [EMAIL PROTECTED]> wrote:
> > Hi Folks
> >
> > I am trying $("img").attr("title", "${this.src}");
> >
> > So :
> >
> > $("img").attr("title",
> >
> "${$($('#myid/.markup02/div/.field-item').siblings().get(1)).text()}");
> >
> > If I insert my function
> > $($('#myid/.markup02/div/.field-item').siblings().get(1)).text()
> > in firebug console I receive "my target text"
> >
> > but when I try insert into $("img").attr("title", "${...}  I receive
> full
> > expression "$($('#myid...text()"
> >
> > What is missing?
> >
> > Mario
>



--
Mário Alberto Chaves Moura
[EMAIL PROTECTED]
31-9157-6000





--
Mário Alberto Chaves Moura
[EMAIL PROTECTED]
31-9157-6000


[jQuery] Re: $("img").attr("title", "${this.src}");

2007-05-09 Thread Mario Moura

Ok I found here:

http://www.visualjquery.com
attr(key, value)  ---> Example

But fortunately I found my mistake:

Will work like this

$($("#myid//img").get(0)).attr("title",
$($('#myid/.markup02/div/.field-item').siblings().get(0)).text());

Without ${...}

Regards

Mario

2007/5/9, John Resig <[EMAIL PROTECTED]>:



Mario -

${...} doesn't, currently, exist in jQuery. Did you find an example
somewhere that showed it as working? (It needs to be fixed.)

--John

On 5/9/07, Mario Moura <[EMAIL PROTECTED]> wrote:
> Hi Folks
>
> I am trying $("img").attr("title", "${this.src}");
>
> So :
>
> $("img").attr("title",
> "${$($('#myid/.markup02/div/.field-item').siblings().get(1)).text()}");
>
> If I insert my function
> $($('#myid/.markup02/div/.field-item').siblings().get(1)).text()
> in firebug console I receive "my target text"
>
> but when I try insert into $("img").attr("title", "${...}  I receive
full
> expression "$($('#myid...text()"
>
> What is missing?
>
> Mario





--
Mário Alberto Chaves Moura
[EMAIL PROTECTED]
31-9157-6000


[jQuery] $("img").attr("title", "${this.src}");

2007-05-09 Thread Mario Moura

Hi Folks

I am trying $("img").attr("title", "${this.src}");

So :

$("img").attr("title",
"${$($('#myid/.markup02/div/.field-item').siblings().get(1)).text()}");

If I insert my function
$($('#myid/.markup02/div/.field-item').siblings().get(1)).text() in firebug
console I receive "my target text"

but when I try insert into $("img").attr("title", "${...}  I receive full
expression "$($('#myid...text()"

What is missing?

Mario


[jQuery] AutoExec

2007-05-08 Thread Mario Moura

Hi Folks

How can I force my JQuery script run?

After my Html page is loaded I have some scripts in the middle of DOM (like
I need) (because is generated from some db_query)


$(document).ready(function(){
$("markup02").append("something");
$("img").attr({title:"something"});
});


My JQuery.js is fine

Is it possible?

Regards

Mario


[jQuery] Re: A simple Comparison

2007-04-30 Thread Mario Moura

Ok Done

If someone is looking for this:

$(".field_image03']").children().is(".imagefield-edit-image-row");

return true or false

Thanks for all

Mario


2007/4/30, Mario Moura <[EMAIL PROTECTED]>:


Hi Folks

I am trying a simple Comparison.

IF ($('.field_image04').find(".imagefield-edit-image-row") == null ) 

When I test in differents .class (.field_image04, .field_image03..) I
receive empty, null results or a random text result.

What I need is just do if have result or else do another thing if I
havent. (I know do that)

But comparison always return false in both cases.

What is missing? Is it a bug?

Regards

Mario





--
Mário Alberto Chaves Moura
[EMAIL PROTECTED]
31-9157-6000


[jQuery] A simple Comparison

2007-04-30 Thread Mario Moura

Hi Folks

I am trying a simple Comparison.

IF ($('.field_image04').find(".imagefield-edit-image-row") == null ) 

When I test in differents .class (.field_image04, .field_image03..) I
receive empty, null results or a random text result.

What I need is just do if have result or else do another thing if I havent.
(I know do that)

But comparison always return false in both cases.

What is missing? Is it a bug?

Regards

Mario


[jQuery] Re: Find a element - Basic issue

2007-04-27 Thread Mario Moura

Folks

Thanks a lot, now I can find my element

Mario


2007/4/27, Karl Swedberg <[EMAIL PROTECTED]>:


Hi Mario,
I think what you're looking for is the ":selected" pseudo-class.

Try this:

$('#edit-taxonomy-1 :selected')

To get its value, add .val()
To get its inner text, add .text()


--Karl
_
Karl Swedberg
www.englishrules.com
www.learningjquery.com



On Apr 27, 2007, at 1:59 PM, Mario Moura wrote:

Hi Folks
My DOM is something like this



services
Products

I am trying find the option that have selected="selected" of course is
very random in many inputs.
I tried a lot of things but nothing works.

$($("#edit-taxonomy-1").children().get()).contains("selected")
$($("#edit-taxonomy-1").children().get()).find("selected")
I tried very basic like
$().find("selected") but dont work and many others.

What is missing?

I will appreciate a tip. Help me!

Regards

macm






--
Mário Alberto Chaves Moura
[EMAIL PROTECTED]
31-9157-6000


[jQuery] Find a element - Basic issue

2007-04-27 Thread Mario Moura

Hi Folks
My DOM is something like this



services
Products

I am trying find the option that have selected="selected" of course is very
random in many inputs.
I tried a lot of things but nothing works.

$($("#edit-taxonomy-1").children().get()).contains("selected")
$($("#edit-taxonomy-1").children().get()).find("selected")
I tried very basic like
$().find("selected") but dont work and many others.

What is missing?

I will appreciate a tip. Help me!

Regards

macm


[jQuery] Litebox

2007-04-13 Thread Mario Moura

Hi

How can I add caption in Litebox?
How can I setup the position of controls?
I see the new feature auto-advance slide show but I need autoplay how can I
do this with JQuery?
So when my page open litebox start immediately.

Regards

macm


[jQuery] Re: Validate a Children

2007-04-04 Thread Mario Moura

Almost there but semantic is wrong:

If (($("#markup2").children().get().length > 0) AND
($("#markup1").children().get().length == 0))

$("#markup1").append($("#markup2").children().get(1)).show();

FALSE;

Should I insert into a function?

Regards

macm


2007/4/4, Mario Moura <[EMAIL PROTECTED]>:


Hi

 I have two markups




--
Mário Alberto Chaves Moura
[EMAIL PROTECTED]
31-9157-6000


[jQuery] Validate a Children

2007-04-04 Thread Mario Moura

Hi

I have two markups


[jQuery] Re: Trick to pass input file

2007-04-03 Thread Mario Moura

Ok. It is a security reason.

I was thinking about. I am Drupalist.

Let say I have 6 browse button (eg. img01, img02, img03, img04, img05,
img06)

I hide all except the first.

The user click first browse button and make a choice.

So I Can hide the first button (with label and everything else) copy the
choice of user to a div and show the second browse button.

If user "delete" the div should be empty the content button and bring back
to top.(or something like that)

I can create a chain to 2-3-4-5-6 and to all upload buttons I have and the
last we can set a message (limit of upload is 6 files)(In this technique we
will always have a limit) .

Of course the upload process will occur only when user submit the form.

This solution could be very useful to all CMS and in special to Drupal.

But unfortunately I am not a programmer. Who can help me?

I think this post will resolve a lot of problems to a lot of people.

Should be based in JQuery to show the power of this beautiful tool.

Regards

macm




2007/4/3, Erik Beeson <[EMAIL PROTECTED]>:



You can't set the value of an input type="file" field and here's why:





document.getElementById('hacker_form').submit();


If you were allowed to set the value like that, the above snippet
would upload the target file without the user even knowing it was
happening. That's the security issue.

--Erik


On 4/2/07, macm <[EMAIL PROTECTED]> wrote:
>
> Hi
>
> I am trying upload without refresh so I tried
>
>
http://the-stickman.com/web-development/javascript/upload-multiple-files-with-a-single-file-element/
>
> Works like a charm but:
>
> Browser Peculiarities
>
> * Internet Explorer and Netscape do not use the VALUE attribute as
> the default contents of the input area. Any default value set via HTML
> is not usable via scripting and the DOM as well (hence it is not
> listed as 'supported' in any of the browsers.) If a user enters text
> in the field however, that value is then reachable via the DOM as it
> normally would be for a normal INPUT field (via the .value property.)
> The reason for this behavior would presumably be to ensure the
> security/safety of users against malicious authors. Opera displays the
> default VALUE attribute value and submits it as well (although it
> prompts for confirmation on submit if you have not altered that
> value.)
>
> from:
http://www.blooberry.com/indexdot/html/tagpages/i/inputfile.htm
>
>
> I heard that exist a trick about this and I would like to know who can
> tell me.
>
> So How I have paths from example above.
>
> Something like that => c:/mydocuments/myfile.gif
>
> How can I insert this in input file element? (I know how can I insert
> but the problem isnt accept like I said before)
>
> If Input file dont accept value=" " how can I insert the path into
> input element?
>
> Regards
>
> macm
>
>





--
Mário Alberto Chaves Moura
[EMAIL PROTECTED]
31-9157-6000


[jQuery] Re: Trick to pass input file

2007-04-02 Thread Mario Moura

Could I create in my target input  a JQuery function to
load, clone, submit, autofill or I dont know what to accept user choice from

http://the-stickman.com/web-development/javascript/upload-multiple-files-with-a-single-file-element/

So I could get each path(element) and insert into each target ( 

Or please tell me it is impossible so I will forget this.

Regards

macm

2007/4/2, Kush Murod < [EMAIL PROTECTED]>:



well looks like next plugin improvement for form plugin, hey Mike Alsup :)


macm wrote:
> Hi
>
> I am trying upload without refresh so I tried
>
> 
http://the-stickman.com/web-development/javascript/upload-multiple-files-with-a-single-file-element/

>
> Works like a charm but:
>
> Browser Peculiarities
>
> * Internet Explorer and Netscape do not use the VALUE attribute as
> the default contents of the input area. Any default value set via HTML
> is not usable via scripting and the DOM as well (hence it is not
> listed as 'supported' in any of the browsers.) If a user enters text
> in the field however, that value is then reachable via the DOM as it
> normally would be for a normal INPUT field (via the .value property.)
> The reason for this behavior would presumably be to ensure the
> security/safety of users against malicious authors. Opera displays the
> default VALUE attribute value and submits it as well (although it
> prompts for confirmation on submit if you have not altered that
> value.)
>
> from:
http://www.blooberry.com/indexdot/html/tagpages/i/inputfile.htm
>
>
> I heard that exist a trick about this and I would like to know who can
> tell me.
>
> So How I have paths from example above.
>
> Something like that => c:/mydocuments/myfile.gif
>
> How can I insert this in input file element? (I know how can I insert
> but the problem isnt accept like I said before)
>
> If Input file dont accept value=" " how can I insert the path into
> input element?
>
> Regards
>
> macm
>
>





--
Mário Alberto Chaves Moura
[EMAIL PROTECTED]
31-9157-6000