[jQuery] Improving jquery performance on this site..(stop stutter)

2009-08-18 Thread p...@scotche.gg

Hey group!

I am near completion on a site I chose to use Jquery for rather than
Flash for a client.
While some flash is used as a background image, the content is HTML
and Jquery for effects.

The issue as i see is stuttering and not smooth jquery actions in
sliding etc on page load.
Is there a better way hold a few seconds to ensure all page data in
content and images are loaded and then trigger the flash and jquery
actions? Or maybe preload the page on the page before (index.php) and
then goto the required page?

As i say simply i want to try to help out the initial page loading
effects like the slide to stop it stuttering.

http://scotche.gg/newsu

thanks for any ideas or pointers..

scotch


[jQuery] JQuery Validate div selector issues

2009-12-23 Thread p...@scotche.gg
Hi Guys

I am trying to get validate to work, but I am soo close and yet soo
far!
I think the problem is the selector and way i append the error or
valid classes to the label, or specify the element for errors?

Can anyone see the mismatch or problem?

HTML example...
[code]Company Name:




error_array['company_name']; ?>
 [/code]

where the inputrightdiv is what holds my todo image,
then i want it replaced with inputrightdiv-valid which shows my nice
green tick image!

Jquery Validation initialization( i have taken out extra options for
simplicity )...

[code]

$(document).ready(function() {
// validate signup form on keyup and submit
var validator = $("#recruiter_signup").validate({
rules: {
CompanyName: "required"

},
messages: {
CompanyName: "Please ensure you have entered your 
company name."


},
// the errorPlacement has to take the table layout into account
errorPlacement: function(error, element) {
error.appendTo(element.parent().parent());

},
// Set Error Element
errorElement: "div.inputrightdiv",
// Focus in textbox
focusInvalid: false,// show all form error at a time
// Set Error Class
//errorClass: "error",
errorClass:"inputrightdiv-error",
// specifying a submitHandler prevents the default submit, good 
for
the demo
submitHandler: function() {
alert("submitted!");
},
// set this class to error-labels to indicate valid fields
success: function(label) {

 label.addClass('inputrightdiv-valid');

}
});
});
[/code]

thanks for any tips or eagle eyes :)