[jQuery] Add span and class with text used inside a href - WrapInner according to text

2008-08-30 Thread Josoroma

Hi group,

How do i dinamically convert strings like
view
view
view
view
To:
view
add
edit
delete

I was reading:
http://docs.jquery.com/Attributes/text
http://docs.jquery.com/Manipulation/wrapInner

Thanks ind advance.


[jQuery] Loading page plugin or script.

2008-02-13 Thread Josoroma

Maybe a newbie question.

When i use Plesk 8 there is a loading message that display loading
page contents, and dissapear until all the page is loaded. There exist
some jquery plugin or script for this kind of functionality? to
prevent users to use the page options untill all the scripts, images
and contets are loaded.

Thanx in advance.


[jQuery] [validate] custom submit action

2008-02-13 Thread Josoroma

If i have a custom css toolbar in a form called "confirm" that doesn't
use a normal submit button like:


Instead i need to use the following css-link-button to check the
validate before submit:


How can i do the validate and submit?

Thanks in advance.


[jQuery] [validate] spinner - loading

2008-02-12 Thread Josoroma

Hi!

Thanks for all your help with validate plugin, my last questions ara
about:

#1 The way of showing a spinner or loading gif while the remote
validation is asking for data?

#2 (remote ajax call to know if user exist)The remote ajax call is
executed each time a wrote a character, can i do something to call the
remote validation only when the user is out of the input or when the
user click some kind of button next to the input field to check if
user exist?


Here is the code that im actually using:




$().ready(function() {

// add * to required field labels
$("div.required 
label").append(" * ");


jQuery.validator.addMethod("specialAlphaNumeric",
function( value, element ) {
var result = 
this.optional(element) || value.length >= 2 && /
^([A-Z0-9áéíóúüçìñ.,\'_\- ]+)$/i.test(value);
return result;
}, "Puede contener espacios, tener al 
menos dos y cualquiera de
los siguientes carácteres: [a-z][0-9][áéíóúüçìñ.,\'_-]");


jQuery.validator.addMethod("alphaNumeric", function( value,
element ) {
var result = 
this.optional(element) || value.length >= 2 && /^[A-
Z]([A-Z0-9]+)$/i.test(value);
return result;
}, "Debe empezar con una letra, tener 
al menos dos y cualquiera
de los siguientes carácteres: [a-z][0-9]");

$("#UserRegisterForm").validate({


});

});




[jQuery] Translate old JS function to Jquery - Super newbie question

2008-02-11 Thread Josoroma

If i have the following button:


The aobve button calls the next function:

function confirmAction( action ) {

document.getElementById('button_' + action).style.display = 'none';
document.getElementById('button_back').style.display = 'none';
document.confirm.submit();

return false;

}

My super newbie question is?
How do i can convert the function in Jquery?

Thanks in advance.



[jQuery] [validate] submit problem [validation]

2008-02-10 Thread Josoroma

I have a form without a submit button, i was making the submit with
the following code:


Register



How do i enable the call to validate before to realize the submit with
my href onclick "button" above?

Thanks in advance.


[jQuery] Parsing external XML files - Events Format

2008-01-30 Thread Josoroma

Hi!

Im working in a project that needs to parse like 10 external XML or
RSS resources of events. Some of this XML resources uses this format:
http://web.resource.org/rss/1.0/modules/event/






Other resources are not using this standard tags, they use tags in
different languages like:





another example:





Some of this events have description others dont. Some events
are Google Calendar XML format.

My question to you is not about to do my homework, is about standards
and the best way to design or parse something that can have a lot of
differents
formats.

There exist a way to parse an xml file with different formats and
indentation of tags using Jquery?

Now im going to investigate:
http://blog.reindel.com/2007/09/24/jquery-and-xml-revisited/
http://ajaxian.com/archives/ajaxian-featured-tutorial-parsing-xml-with-jquery
http://cgaskell.wordpress.com/2006/11/02/jquery-ajax-call-and-result-xml-parsing/
http://ajaxian.com/archives/ajaxian-featured-tutorial-parsing-xml-with-jquery

Thanks in advance.