[jQuery] Re: TinyMCE and JQuery

2008-09-12 Thread Giovanni Battista Lenoci


shapper ha scritto:

Hello,

I want to add TinyMCE to the TextAreas with classes "A" and "B" that
show in my pages.

TinyMCE allows only to apply it by ID's or to all Text Areas.

How can I apply TinyMCE using JQuery to TextAreas by CSS Class?

Thanks,
Miguel

  

I've used this way: (every textarea of class "a" must have a single id)

elems = '';
$('.a').each(function() {
 if(elems !='') {
   elems += ',';
 }
 elems += this.id;
});

initTinymce(elems);

function initTinymce(elems) {
 var elems;
 if(typeof(elems) == 'undefined') {
   mode = 'textareas';
   elems = '';
 } else {
   mode = 'exact';
 }
 tinyMCE.init({
   theme : "advanced",
   mode : mode,
   elements : elems,
   .
});
}

--
gianiaz.net - web solutions
p.le bertacchi 66, 23100 sondrio (so) - italy
+39 347 7196482 



[jQuery] Bind events on DOM elements inserted from other frame

2008-09-12 Thread hubbs

I have been experiencing strangeness with trying to bind events to DOM
elements that have been inserted from a different frame using .get().
For some reason the elements don't be binded with the events if they
are inserted from other frame.  In testing, if I try the same thing
within the SAME frame the the events get binded correctly.

Am I missing something here?  Is this a limitation of jQuery?


Re: REWARD VILLA MEWAH GRATIS

2008-09-12 Thread DEWI BENING
On 8/27/08, DEWI BENING <[EMAIL PROTECTED]> wrote:
>
> SUDAH BOSAN TINGGAL DI RUMAH KONTRAKAN?
> MAU PUNYA RUMAH SENDIRI SECEPATNYA?
> TAPI UANGNYA UNTUK DP DAN CICILAN TIDAK PUNYA?
> ATAU..
> Ith summarized info
if (lastblock != "" ) {
$("#row_" + lastblock).load("my ajax call w 
param &shortInfo=" +
lastblock );
}
//replace content in clicked block with full info
$("#row_" + $(this).attr("id")).load("my ajax call w
param&fullInfo=" + $(this).attr("id")  );
//set latest block shown
lastblock = $(this).attr("id") ;
});
});
});




[jQuery] Re: Form re-skinning as in ExtJS

2008-09-12 Thread Sam Sherlock
There is themeroller for ui don't know if that extended to basic form
elements or just the ui widgets (expected the later)

- S

2008/9/12 jhead <[EMAIL PROTECTED]>

>
> Is there a form re-skinning plugin for JQuery?
> I am wanting ExtJS like results:
> http://extjs.com/deploy/dev/examples/form/dynamic.html
> where you can re-skin all the form input elements; that would be
> really useful.
>
> Thanks,
> JHead
>


[jQuery] XML: How to get all attributes of a element?

2008-09-12 Thread DC

Is there anyway to iterate through a element's attributes without
knowing beforehand how many or what attributes an element will have?

For example:




I'd want to make some kind of json from this, with the Apple object
having values for attributes type and state, and the Orange object
just having a value for "name".


[jQuery] Re: How do I update my control after I submit data to my database?

2008-09-12 Thread Josh Nathanson


You would do this in the callback function from the ajax call.  One way 
might be to have an empty div available on your page:



Then the ajax callback, assuming you are returning json data:
   function( data ) { $("#username").text( data.username ); }

-- Josh


- Original Message - 
From: "jmDesktop" <[EMAIL PROTECTED]>

To: "jQuery (English)" 
Sent: Friday, September 12, 2008 2:48 PM
Subject: [jQuery] How do I update my control after I submit data to my 
database?





If I use jQuery .ajax to submit to my myUpdate.php file, after I do
that, how do I then update my control that I submitted the information
to update in the first place?

For example, I have username textbox on a form, and I submit that
username to a database.  I then have a div or label that needs to show
that newly submitted username if it is submitted to teh database
correctly.

I know how to submit the context of the textbox "username" to the
database (.ajax,etc.), but not how to refresh that part of the page to
show the database content.

Thank you for any links or help. 




[jQuery] Re: IE ajax request giving the same result every time it's called

2008-09-12 Thread Josh Nathanson


IE always caches the response, so you have to explicitly set cache=false in 
your ajax call.  You can either do that on your specific ajax call, or 
globally via the $.ajaxSetup function.  Consult the jQuery docs -> Ajax 
section for more information.


-- Josh


- Original Message - 
From: "ch2450" <[EMAIL PROTECTED]>

To: "jQuery (English)" 
Sent: Friday, September 12, 2008 1:16 PM
Subject: [jQuery] IE ajax request giving the same result every time it's 
called





Hi,
Every ten seconds I'm checking the id of the last entry in my
database. For this purpose I'm using a GET ajax request calling a
really simple PHP code.
This step works wonderfully for Firefox and Safari on PCs and Macs. IE
however seems to return the same number over and over (the number it
got from its first request), although I'm positive that the db has
been updated correctly.
Anyone familiar with this random behavior from IE?

Clem. 




[jQuery] How do I update my control after I submit data to my database?

2008-09-12 Thread jmDesktop

If I use jQuery .ajax to submit to my myUpdate.php file, after I do
that, how do I then update my control that I submitted the information
to update in the first place?

For example, I have username textbox on a form, and I submit that
username to a database.  I then have a div or label that needs to show
that newly submitted username if it is submitted to teh database
correctly.

I know how to submit the context of the textbox "username" to the
database (.ajax,etc.), but not how to refresh that part of the page to
show the database content.

Thank you for any links or help.


[jQuery] mousedown, mousemove, mouseup

2008-09-12 Thread RandyJohnson

below is the jQuery code that I am writing to draw a simple box on the
screen.

When I depress the mouse ('mousedown') it sets the box's initial
position.

As I drag the mouse ('mousemove') the box gets redrawn from the
initial position to the new point.

When I release the mouse ('mouseup') it is supposed to then create a
div that draw a box.

The problem that I am having is that if I update 4 css parameters in
the mousemove handler the mouseup bind gets ignored.  If I only update
3 of them, the moveup fires properly.

I sure it is something stupid that I am doing but I cannot find it.

Any help is appreciated.

Thanks in advance...

Randy

$(document).ready(function()
{
$('#testing').HSABox();
});

jQuery.fn.HSABox = function(params)
{
{
function mouseDown(e)
{
p = {x: e.pageX, y: e.pageY};

$(this).bind('mouseup',p,mouseUp);
$(this).bind('mousemove',p,mouseMove);

$('body').append('');
$('#' + params.boxID).css('display','block');
return false;
}

function mouseUp(e)
{
$('#' + params.boxID).remove();
$(this).unbind('mousemove');
$(this).unbind('mouseup');

var r = params.boxID + (parseInt($('.' + 
params.boxStopClass).size(),
10) + 1);

$('body').append('');
$('#' + r).css(updateBox(e));
return false;
}

function mouseMove(e)
{
var id = '#' + params.boxID;
b = updateBox(e);
$(id).css('left',b.left);
$(id).css('top',b.top);
$(id).css('width',b.width);
$(id).css('height',b.height);
return false;
}

function updateBox(e)
{
o = {};
o.left  = Math.min(e.pageX,e.data.x);
o.top   = Math.min(e.pageY,e.data.y);
o.width = Math.abs(e.data.x - e.pageX);
o.height= Math.abs(e.data.y - e.pageY);
return o;
}

params = jQuery.extend(
{
boxID:  'boxDiv',   
// used for the temporary div
boxStartClass:  'boxOutlineStart',  // used to identify the 
outline
boxStopClass:   'boxOutlineStop'// used to 
identify a finished
outline
},params);

return this.each(function(){ $(this).bind('mousedown',mouseDown); });
};


[jQuery] Re: keyup() + clicking = hmmm...

2008-09-12 Thread alexg

Hi. First time posting here.

I am trying to replicate holding shift + click to select multiple
links. I have the shift/click working but have no clue how to go about
say, clicking on the 1st link, then holding the shift key, eventually
clicking the 5th link, would add a class to highlight links from 1-5.

Here is what I have:

var shiftPressed = event.shiftKey;

if ((shiftPressed || $(this)) == true) {
/* I assume this is where the action to add the class for particular
links would go */
}

Hope you guys understood.

Thanks in advance.


On Aug 3, 5:15 pm, MeltingIce <[EMAIL PROTECTED]> wrote:
> Good idea, that seemed to do the trick.  Thanks!
>
> On Aug 3, 3:57 pm, Tobia Conforto <[EMAIL PROTECTED]> wrote:
>
> > MeltingIce wrote:
> > > I'm working on a script thats somewhat similar to a directory
> > > listing script and I'm trying to emulate the ability to select
> > > multiple files at once by holding down theshiftkey
>
> > Just an idea: I believe I read somewhere that the event object for a
> > mouseclickcontains the information on the modifier keys that were
> > pressed when theclickoccurred:
>
> > $('.file').click(function(event) {
> >if (event.SOMETHING)
> >  //shift-click
> >else
> >  //normalclick
>
> > });
>
> > I don't know the details, though.
>
> > Tobia


[jQuery] Form re-skinning as in ExtJS

2008-09-12 Thread jhead

Is there a form re-skinning plugin for JQuery?
I am wanting ExtJS like results: 
http://extjs.com/deploy/dev/examples/form/dynamic.html
where you can re-skin all the form input elements; that would be
really useful.

Thanks,
JHead


[jQuery] Re: $.ajax isn't parsing JSON object properly

2008-09-12 Thread FrenchiINLA

are you using .net 3.5? in this casse try the following:
success: function(rdata) {
var obj = rdata.d;
for some security reason web service make this way the JSON object

On Sep 12, 8:31 am, Namlet <[EMAIL PROTECTED]> wrote:
> I'm trying to digest a JSON object returned from an ASP.NET
> Webservice.  I'm not sure if my problem is on the ASP.NET side, or the
> JavaScript side, but I could use some guidance.
>
> This code:
>     $.ajax({
>         type: "POST",
>         contentType: "application/json; charset=utf-8",
>         url: "xxx",
>         data: "{'guid':'{85FDC9B6-C20C-4007-9AA8-AE7B62FC0309}'}",
>         dataType: "json",
>         success: function(rdata) {
>             //var str = eval(rdata);
>             $("body").append(rdata);
>             //alert(rdata);
>         }
>     });
>
> Produces this:
> {"guid" : "85fdc9b6-c20c-4007-9aa8-ae7b62fc0309","person_id" :
> "558311","fname" : "Nkulu","mname" : "Ntanda","lname" :
> "Ntambo","prefix" : "Bishop","suffix" : "","relation" :
> "Jr.","ethnicity_code" : "AA","gender" : "M","conference_id" :
> "68","bm_age_cat" : "MA","addr_address_id" : "32555","addr_address1" :
> "United Methodist Church","addr_address2" : "P.O. Box
> 20219","addr_city" : "Kitwe","addr_state_code" : "","addr_zip_code" :
> "","addr_country_code" : "ZAM","wk_phone_id" :
> "15296","wk_country_code" : "243","wk_city_code" :
> "970","wk_area_code" : "","wk_phone" : "29-004","wk_ext" :
> "555","fax_phone_id" : "16157","fax_country_code" :
> "243","fax_city_code" : "971","fax_area_code" : "","fax_phone" :
> "08-9792","home_phone_id" : "32978","home_country_code" :
> "222","home_city_code" : "333","home_area_code" : "","home_phone" :
> "444-","cell_phone_id" : "","cell_country_code" :
> "","cell_city_code" : "","cell_area_code" : "","cell_phone" :
> "","email_id" : "4003","email_address" :
> "[EMAIL PROTECTED]","education" : "","recvd_loan" :
> "False","grad_umcscu" : "False","grad_instit" : "","umc_scu_trustee" :
> "False","trustee_instit" : "","emp_church_name" : "","pres_posit" :
> "","assist_name" : "","church_memship" : "","church_size_id" :
> "","loc_chur_respon" : "","ann_conf_respon" : "","gen_chur_respon" :
> "","add_info" : "","spec_needs" : ""}
>
> While this code:
>     $.ajax({
>         type: "POST",
>         contentType: "application/json; charset=utf-8",
>         url: "xxx",
>         data: "{'guid':'{85FDC9B6-C20C-4007-9AA8-AE7B62FC0309}'}",
>         dataType: "string", //
> <--­-
>         success: function(rdata) {
>             //var str = eval(rdata);
>             $("body").append(rdata);
>             //alert(rdata);
>         }
>     });
>
> Produces this:
> "{\"guid\" : \"85fdc9b6-c20c-4007-9aa8-ae7b62fc0309\",\"person_id\" :
> \"558311\",\"fname\" : \"Nkulu\",\"mname\" : \"Ntanda\",\"lname\" :
> \"Ntambo\",\"prefix\" : \"Bishop\",\"suffix\" : \"\",\"relation\" :
> \"Jr.\",\"ethnicity_code\" : \"AA\",\"gender\" : \"M\",\"conference_id
> \" : \"68\",\"bm_age_cat\" : \"MA\",\"addr_address_id\" : \"32555\",
> \"addr_address1\" : \"United Methodist Church\",\"addr_address2\" :
> \"P.O. Box 20219\",\"addr_city\" : \"Kitwe\",\"addr_state_code\" :
> \"\",\"addr_zip_code\" : \"\",\"addr_country_code\" : \"ZAM\",
> \"wk_phone_id\" : \"15296\",\"wk_country_code\" : \"243\",
> \"wk_city_code\" : \"970\",\"wk_area_code\" : \"\",\"wk_phone\" :
> \"29-004\",\"wk_ext\" : \"555\",\"fax_phone_id\" : \"16157\",
> \"fax_country_code\" : \"243\",\"fax_city_code\" : \"971\",
> \"fax_area_code\" : \"\",\"fax_phone\" : \"08-9792\",\"home_phone_id
> \" : \"32978\",\"home_country_code\" : \"222\",\"home_city_code\" :
> \"333\",\"home_area_code\" : \"\",\"home_phone\" : \"444-\",
> \"cell_phone_id\" : \"\",\"cell_country_code\" : \"\",\"cell_city_code
> \" : \"\",\"cell_area_code\" : \"\",\"cell_phone\" : \"\",\"email_id
> \" : \"4003\",\"email_address\" : \"[EMAIL PROTECTED]",\"education
> \" : \"\",\"recvd_loan\" : \"False\",\"grad_umcscu\" : \"False\",
> \"grad_instit\" : \"\",\"umc_scu_trustee\" : \"False\",\"trustee_instit
> \" : \"\",\"emp_church_name\" : \"\",\"pres_posit\" : \"\",
> \"assist_name\" : \"\",\"church_memship\" : \"\",\"church_size_id\" :
> \"\",\"loc_chur_respon\" : \"\",\"ann_conf_respon\" : \"\",
> \"gen_chur_respon\" : \"\",\"add_info\" : \"\",\"spec_needs\" :
> \"\"};"
>
> It looks properly formatted to me, but maybe I'm missing something.
> Regardless, I cannot access any properties of the object.  I would
> greatly appreciate any help.
>
> Thanks!


[jQuery] pagination sample ?

2008-09-12 Thread cc96ai

Does anyone use pagination plugin
http://plugins.jquery.com/project/pagination

is there any sample for calling ajax  ? how could we apply it ?
1) we set the number record in pagination, if that's ajax dynamic
return, we don't know how many will be, how could we resolve it ?


function pageselectCallback(page_id, jq){
$('#Searchresult').text("Showing search results "+
((page_id*10)+1)+"-"+((page_id*10)+10));
   }

$(document).ready(function(){
// Create pagination element
$("#Pagination").pagination(300, {
num_edge_entries: 2,
num_display_entries: 8,
callback: pageselectCallback
});
});


[jQuery] sortable, draggable and droppable compared with plugin tablednd

2008-09-12 Thread Mike Miller

Hi can anyone tell me if the jquery ui functions sortable, draggable
and droppable can be applied to tables?  Similar to what the tablednd
plugin does?

M


[jQuery] Re: AutoComplete Detecting mustMatch failure.

2008-09-12 Thread PeterS

There is a simple way to solve this - but you have to alter the plugin
code:

1. Look for the `function hideResultsNow()`
2. Below the code

 else
 $input.val( "" );

I added this line:

 $input.trigger("result", null);

That's it - this makes the `result` event is triggered (with empty
data) when options.mustMatch clears the input field. Then following
works for me:

$('#city').result( function(event, row, formatted) {
 $(this).parent().parent().find('input[name="id"]').val( row ?
row.id : '' );
 });


[jQuery] JQuery Plugin: ajaxContent questions

2008-09-12 Thread Scott Stewart

Hi all,

I'm using the ajaxContent plugin, it's loaded via a ColdFusion template
(header.cfm)

I'm running into a couple of issues with it..

1) It positively will not load pages into a div in IE7 (works on one
page in Firefox)
2) I'm running it on multiple pages, however it will not work on one
page while working on another, the code is identical with the exception
of the called page.

and ideas on what's going on?

header js calls are here:

http://cfm.pastebin.com/m4d7f1d6

working ColdFusion template is here

http://cfm.pastebin.com/d5d46d6a1

non working ColdFusion template is here:

http://cfm.pastebin.com/m155db21e

ColdFusion function that creates tab bar is here:

http://cfm.pastebin.com/m24a18393

-- 
Scott Stewart
ColdFusion Developer

Office of Research Information Systems
Research & Economic Development
University of North Carolina at Chapel Hill

Phone:(919)843-2408
Fax: (919)962-3600
Email: [EMAIL PROTECTED]





[jQuery] Re: $.ajax isn't parsing JSON object properly

2008-09-12 Thread Namlet

Says undefined, so it's not accessing the properties properly with an
rdata.guid for instance.

Turns out, I need to eval the string which I couldn't get right at
first.  I tried eval(rdata); but it failed.

However, when I tried eval('(' + rdata + ')') it worked fine!  So why
is this how I have to eval it?  It would help me to understand how to
use it.

Thanks!


On Sep 12, 12:59 pm, MorningZ <[EMAIL PROTECTED]> wrote:
> "I cannot access any properties of the object"
>
> Do you get an error?
> Not sure how to access the values?
> Something else?
>
> The first result is valid JSON (to see, just paste it into the
> excellent "JSON Viewer" you can download athttp://www.codeplex.com/JsonViewer)
>
> But you don't provide enough information on what's wrong, so it's
> difficult to tell you what's right


[jQuery] Re: help with ajax post

2008-09-12 Thread nananannae2

Thank you!

On Sep 5, 4:24 pm, "Jake McGraw" <[EMAIL PROTECTED]> wrote:
> $.ajax({
>     type: "POST"
>     , url: "GetNewHash.aspx"
>     , data:
>     {
>       orderid : $("#orderid").val()
>       , amount : $("#amount").val()
>       , dtnow : $("#time").val()
>       , Gateway_MerchantConfigID : $("#Gateway_MerchantConfigID").val()
>     }
>    , async: false
>    , success : function (response) {
>      $("#hash").val(response);
>    }
>
> });
>
> - jake
>
> On Fri, Sep 5, 2008 at 3:36 PM, nananannae2 <[EMAIL PROTECTED]> wrote:
>
> > can someone help me get this to work please?  i need a post to a page
> > that returns a string to set but it's my first time using it
>
> >  $("#hash").val(
> >               $.ajax({type: "POST"
> >               ,url: "GetNewHash.aspx"
> >               ,data:"orderid="+ $("#orderid").val()+"&amount="+ $
> > ("#amount").val()+"&dtnow="+ $("#time").val()
> > +"&Gateway_MerchantConfigID="+ $("#Gateway_MerchantConfigID").val()"
> >               ,async: false}).responseText);


[jQuery] Toggle doesn't perform well in Safari and crashes Chrome

2008-09-12 Thread robertaugustin

Hi,

I'm having a problem with jquery's toggle function in Safari 3.1.2 and
Google Chrome, maybe one of you knows the issue and can help...

Here's the code:


***CODE
//For each menu button, toggle its child div (containing child menu
items) while hiding the others if they are open
$(document).ready(function(){
$('div.menuchild').hide();
$("a.menuchild_1").click(function(){
$("div#menuchild_1").toggle();
$("div#menuchild_2:visible").hide();
$("div#menuchild_3:visible").hide();
return false;
});
$("a.menuchild_2").click(function(){
$("div#menuchild_2").toggle();
$("div#menuchild_1:visible").hide();
$("div#menuchild_3:visible").hide();
return false;
});
$("a.menuchild_3").click(function(){
$("div#menuchild_3").toggle();
$("div#menuchild_1:visible").hide();
$("div#menuchild_2:visible").hide();
return false;
});
});


/CODE

All div#menuchild_1,2,3 have a background-image. They also contain
another div that closes that background at the top (think rounded
corners).


Now I'm sure this could be done more quickly using variables and not
hardcoding it :) But it works fine for now - except for Safari and
Chrome:

- In Safari, the div#menuchild_1,2,3 that pop up are broken
(background-image doesn't show fully) UNTIL you move the mouse over
the div. This means that the background image isn't positioned
correctly (it's set to "no-repeat bottom left"), but somewhere in the
vertical middle of the div. Also, the contained div doesn't show at
all before the mouse moves over it.

- Google Chrome seems to work but regularly crashes ("Snap, something
went wrong...") when you try to click on the parent menu items
repeatedly and quickly.

Not sure if Webkit is having a problem here or if my code is... emm...
worthy of improvement. Any help will be appreciated!


[jQuery] Re: Accordian menu + FadeIn - some weirdness...can someone help me?

2008-09-12 Thread Rob Fletcher
Noone knows how to stabilize the animation and make this run better?

On Fri, Sep 12, 2008 at 11:42 AM, RFletcher <[EMAIL PROTECTED]>wrote:

> I am making an accordian menu with 4 main buttons.  All buttons should
> be closed at start. When you click 1 button the content area should
> slide down and then the content should fade-in.  I have for the most
> part written the script to create this effect however i see some
> glitches with it.  When you click the next tab i can see the two
> buttons at the bottom moving up and down slightly.  Its not a huge
> deal, but i would rather them not move at all. I only want the button
> i click to move.
>
> Here is my script, please let me know if there is a better way to
> write this as many google searches didn't reveal anything good.  I'm
> sure someone else has wanted to make an accordian menu (slide and then
> fade-in) effect.
>
> $(document).ready(function() {
> $("dd").hide();
> $("span").hide();
>
> $("dt a").click(function () {
>
> $("span").fadeOut(100);
>
>$("dd:visible").slideUp("slow");
>
>$(this).parent().next().slideDown("slow", function () {
>$("span").fadeIn("slow");
>});
>return false;
>});
> });
>
> And my HTML code looks like this:
>
> 
>
>
>
>
>
>Loreum Ipsum
>Futurum veniam est claritatem lorem lorem. Sequitur legunt
> consequat qui Investigationes Investigationes. Ut quam me gothica
> dolore ut. Dynamicus est aliquip aliquip tincidunt accumsan. Nunc qui
> et dolor lectores hendrerit. Sequitur mutationem blandit hendrerit.
> facilisis et nis4
>
>Loreum Ipsum
>Zzril legere quam lectorum parum hendrerit. Iriure exerci option
> euismod futurum etiam. Ut nostrud praesent qui aliquip luptatum.
> Consectetuer eodem aliquam iriure nulla lectorum. Eum aliquip
> hendrerit et ut eodem. Dynamicus claritatem placerat.  facilisis et
> nis4
>
>
>
>
> 
>
> 
>
>
>
>
>
>Loreum Ipsum
>Futurum veniam est claritatem lorem lorem. Sequitur legunt
> consequat qui Investigationes Investigationes. Ut quam me gothica
> dolore ut. Dynamicus est aliquip aliquip tincidunt accumsan. Nunc qui
> et dolor lectores hendrerit. Sequitur mutationem blandit hendrerit.
> facilisis et nis4
>
>Loreum Ipsum
>Zzril legere quam lectorum parum hendrerit. Iriure exerci option
> euismod futurum etiam. Ut nostrud praesent qui aliquip luptatum.
> Consectetuer eodem aliquam iriure nulla lectorum. Eum aliquip
> hendrerit et ut eodem. Dynamicus claritatem placerat.  facilisis et
> nis4
>
>
>
>
> 
>
> 
>
>
>
>
>
>Loreum Ipsum
>Futurum veniam est claritatem lorem lorem. Sequitur legunt
> consequat qui Investigationes Investigationes. Ut quam me gothica
> dolore ut. Dynamicus est aliquip aliquip tincidunt accumsan. Nunc qui
> et dolor lectores hendrerit. Sequitur mutationem blandit hendrerit.
> facilisis et nis4
>
>Loreum Ipsum
>Zzril legere quam lectorum parum hendrerit. Iriure exerci option
> euismod futurum etiam. Ut nostrud praesent qui aliquip luptatum.
> Consectetuer eodem aliquam iriure nulla lectorum. Eum aliquip
> hendrerit et ut eodem. Dynamicus claritatem placerat.  facilisis et
> nis4
>
>
>
>
> 
>
> 
>
>
>
>
>
>Loreum Ipsum
>Futurum veniam est claritatem lorem lorem. Sequitur legunt
> consequat qui Investigationes Investigationes. Ut quam me gothica
> dolore ut. Dynamicus est aliquip aliquip tincidunt accumsan. Nunc qui
> et dolor lectores hendrerit. Sequitur mutationem blandit hendrerit.
> facilisis et nis4
>
>Loreum Ipsum
>Zzril legere quam lectorum parum hendrerit. Iriure exerci option
> euismod futurum etiam. Ut nostrud praesent qui aliquip luptatum.
> Consectetuer eodem aliquam iriure nulla lectorum. Eum aliquip
> hendrerit et ut eodem. Dynamicus claritatem placerat.  facilisis et
> nis4
>
>
>
>
>
> 
>


[jQuery] Re: Comparing two textboxes

2008-09-12 Thread Littletower

thanks a lot, but it still doesn't work :( now i always get the error
message...

Here is the code of checkpasse.php:





On 10 sep, 09:21, "[EMAIL PROTECTED]"
<[EMAIL PROTECTED]> wrote:
> instead of this:
> $.post("checkpasse.php",{ edtMdp: $("#edtMdp").val(), edtCMdp: $
> ("#edtCMdp").val()}, ...
> do this:
> $.post("checkpasse.php",{ edtMdp: function() { return $
> ("#edtMdp").val() }, edtCMdp: function() { return $
> ("#edtCMdp").val() }} , 
>
> On 10 Sep., 01:31, Littletower <[EMAIL PROTECTED]> wrote:
>
> > Hi,
> > I wrote a script to verify if two text boxes have the same value/text.
> > checkpasse.php just verifies if the text box edtMdp($_POST['edtMdp'])
> > equals edtCMdp ($_POST['edtCMdp']), if they do: echo "yes", if the
> > don't echo "no"
> > so if the result of checkpasse.php is, for example,
> > "no" (datamdp=='no') then a message box will appear with a error
> > message
> > the problem: it only shows the "Vérification..." message box, line 6.
> > It looks like it doesn't check the result of checkpasse.php...
>
> > Please could you help me out here? thx
>
> > Here is the code:
>
> > $(document).ready(function()
> > {
> >         $("#edtCMdp").blur(function()
> >         {
> >                 //remove all the class add the messagebox classes and start 
> > fading
> >                 $
> > ("#msgboxmdp").removeClass().addClass('messagebox').text('Vérification...').fadeIn("slow");
> >                 //check the username exists or not from ajax
> >                 $.post("checkpasse.php",{ edtMdp: $("#edtMdp").val(), 
> > edtCMdp: $
> > ("#edtCMdp").val()} ,function(datamdp)
> >         {
> >                   if(datamdp=='no')
> >                   {
> >                         $("#msgboxmdp").fadeTo(200,0.1,function() //start 
> > fading the
> > messagebox
> >                         {
> >                           //add message and change the class of the box and 
> > start fading
> >                           $(this).html('Vérifiez votre mot de
> > passe!').addClass('messageboxerror').fadeTo(900,1);
> >                         });
> >           }
> >                   else
> >                   {
> >                         $("#msgboxmpd").fadeTo(200,0.1,function()  //start 
> > fading the
> > messagebox
> >                         {
> >                           //add message and change the class of the box and 
> > start fading
> >                           $(this).html('Le mot de passe est
> > correcte!').addClass('messageboxok').fadeTo(900,1);
> >                         });
> >                   }
>
> >         });
>
> >         });
>
> > });


[jQuery] Re: $.ajax isn't parsing JSON object properly

2008-09-12 Thread MorningZ

"I cannot access any properties of the object"

Do you get an error?
Not sure how to access the values?
Something else?

The first result is valid JSON (to see, just paste it into the
excellent "JSON Viewer" you can download at http://www.codeplex.com/JsonViewer)

But you don't provide enough information on what's wrong, so it's
difficult to tell you what's right



[jQuery] Re: IE and Validate

2008-09-12 Thread Steve Blades
Yeah, I tried that. No luck there either (the former was for adding
functionality that needed to occur after validation, but prior to
submission). It's really odd, as there are no errors thrown, and it works
like a champ in FF. The code in the html is so ridiculously simple as well,
and appears to be well formed. I'm stumped.

On Thu, Sep 11, 2008 at 1:42 PM, Jörn Zaefferer <
[EMAIL PROTECTED]> wrote:

> validate() adds a submit handler. Adding that to the form inside your
> own submit handler results in undefined behaviour. Please take a look
> at the basic documentation on how to properly use the validate method:
> http://docs.jquery.com/Plugins/Validation#Example
>
> In your case something like this:
>
> var errContainer = $('#msgContainer');
> $('#loginForm').validate({
> errorContainer: errContainer,
>errorLabelContainer: $("ul",errContainer),
>rules: {
>username: "required",
>password: "required"
>},
>messages: {
>username: 'You must enter a Username',
>password: 'You must enter a Password'
>},
>wrapper: 'li'
>});
>
> Thats all.
>
> Jörn
>
> On Thu, Sep 11, 2008 at 6:54 PM, Steve Blades <[EMAIL PROTECTED]> wrote:
> > Wondering if someone can help track an issue. I'm using validate 1.1 with
> > JQuery 1.2.3 (can't upgrade at this time). I have a simple login form,
> and
> > trying to validate that the fields aren't empty prior to submit. Working
> > great in Firefox, but IE doing nothing, and not throwing an error:
> >
> > $('#loginForm').submit(function(){
> > var errContainer = $('#msgContainer');
> > var v = $(this).validate({
> > errorContainer: errContainer,
> > errorLabelContainer: $("ul",errContainer),
> > rules: {
> > username: "required",
> > password: "required"
> > },
> > messages: {
> > username: 'You must enter a Username',
> > password: 'You must enter a Password'
> > },
> > wrapper: 'li'
> > });
> >
> > if(v.form()){
> > return true;
> > }
> > else{
> > return false;
> > }
> > });
> >
> > Anyone have any ideas?
> >
> > --
> > Steve "Cutter" Blades
> > Adobe Certified Professional
> > Advanced Macromedia ColdFusion MX 7 Developer
> > _
> > http://blog.cutterscrossing.com
> > ---
> > The Past is a Memory
> > The Future a Dream
> > But Today is a Gift
> > That's why they call it
> > The Present
> >
>



-- 
Steve "Cutter" Blades
Adobe Certified Professional
Advanced Macromedia ColdFusion MX 7 Developer
_
http://blog.cutterscrossing.com
---
The Past is a Memory
The Future a Dream
But Today is a Gift
That's why they call it
The Present


[jQuery] Accordian menu + FadeIn - some weirdness...can someone help me?

2008-09-12 Thread RFletcher

I am making an accordian menu with 4 main buttons.  All buttons should
be closed at start. When you click 1 button the content area should
slide down and then the content should fade-in.  I have for the most
part written the script to create this effect however i see some
glitches with it.  When you click the next tab i can see the two
buttons at the bottom moving up and down slightly.  Its not a huge
deal, but i would rather them not move at all. I only want the button
i click to move.

Here is my script, please let me know if there is a better way to
write this as many google searches didn't reveal anything good.  I'm
sure someone else has wanted to make an accordian menu (slide and then
fade-in) effect.

$(document).ready(function() {
$("dd").hide();
$("span").hide();

$("dt a").click(function () {

$("span").fadeOut(100);

$("dd:visible").slideUp("slow");

$(this).parent().next().slideDown("slow", function () {
$("span").fadeIn("slow");
});
return false;
});
});

And my HTML code looks like this:







Loreum Ipsum
Futurum veniam est claritatem lorem lorem. Sequitur legunt
consequat qui Investigationes Investigationes. Ut quam me gothica
dolore ut. Dynamicus est aliquip aliquip tincidunt accumsan. Nunc qui
et dolor lectores hendrerit. Sequitur mutationem blandit hendrerit.
facilisis et nis4

Loreum Ipsum
Zzril legere quam lectorum parum hendrerit. Iriure exerci option
euismod futurum etiam. Ut nostrud praesent qui aliquip luptatum.
Consectetuer eodem aliquam iriure nulla lectorum. Eum aliquip
hendrerit et ut eodem. Dynamicus claritatem placerat.  facilisis et
nis4












Loreum Ipsum
Futurum veniam est claritatem lorem lorem. Sequitur legunt
consequat qui Investigationes Investigationes. Ut quam me gothica
dolore ut. Dynamicus est aliquip aliquip tincidunt accumsan. Nunc qui
et dolor lectores hendrerit. Sequitur mutationem blandit hendrerit.
facilisis et nis4

Loreum Ipsum
Zzril legere quam lectorum parum hendrerit. Iriure exerci option
euismod futurum etiam. Ut nostrud praesent qui aliquip luptatum.
Consectetuer eodem aliquam iriure nulla lectorum. Eum aliquip
hendrerit et ut eodem. Dynamicus claritatem placerat.  facilisis et
nis4












Loreum Ipsum
Futurum veniam est claritatem lorem lorem. Sequitur legunt
consequat qui Investigationes Investigationes. Ut quam me gothica
dolore ut. Dynamicus est aliquip aliquip tincidunt accumsan. Nunc qui
et dolor lectores hendrerit. Sequitur mutationem blandit hendrerit.
facilisis et nis4

Loreum Ipsum
Zzril legere quam lectorum parum hendrerit. Iriure exerci option
euismod futurum etiam. Ut nostrud praesent qui aliquip luptatum.
Consectetuer eodem aliquam iriure nulla lectorum. Eum aliquip
hendrerit et ut eodem. Dynamicus claritatem placerat.  facilisis et
nis4












Loreum Ipsum
Futurum veniam est claritatem lorem lorem. Sequitur legunt
consequat qui Investigationes Investigationes. Ut quam me gothica
dolore ut. Dynamicus est aliquip aliquip tincidunt accumsan. Nunc qui
et dolor lectores hendrerit. Sequitur mutationem blandit hendrerit.
facilisis et nis4

Loreum Ipsum
Zzril legere quam lectorum parum hendrerit. Iriure exerci option
euismod futurum etiam. Ut nostrud praesent qui aliquip luptatum.
Consectetuer eodem aliquam iriure nulla lectorum. Eum aliquip
hendrerit et ut eodem. Dynamicus claritatem placerat.  facilisis et
nis4








[jQuery] Re: Child ID

2008-09-12 Thread shapper

The problem is not exactly that ...

I am developing a MVC application ... for example, PostController has
views: Create, Destroy and Edit.

All views have a form named Create, Destroy and Edit.

Most forms have common JQuery scripts: ToolTip, FileStyle, etc ...

However, in some cases they differ ... So to differentiate these cases
I include the form id. Does this make any sense?

I am using a single file named Post.js ... Yes, I could and I have
used 1 file per view ...

However, consider I have 20 controllers having an average of 4
views ... that gives me 80 js files ... hard do mantain.

So I am creating a single js file for each controller associated to
all its views ...

Does this make any sense?

Thanks,
Miguel

On Sep 12, 4:42 pm, MorningZ <[EMAIL PROTECTED]> wrote:
> $("#StartDate, #FinishDate", "form#Create").each(function() {
>     $(this).mask("-99-99 99:99:99");
>   });
>
> but to note, ID's should be unique in the page, so having
>
> 
> 
>
> 
>     
>     
> 
>
> 
>     
>     
> 
>
> 
> 
>
> doesn't semantically make sense (and isn't 'valid HTML' to boot)
>
> Why not just use a css class to denote which you want to "mask"?


[jQuery] Re: Child ID

2008-09-12 Thread MorningZ

$("#StartDate, #FinishDate", "form#Create").each(function() {
$(this).mask("-99-99 99:99:99");
  });


but to note, ID's should be unique in the page, so having


















doesn't semantically make sense (and isn't 'valid HTML' to boot)

Why not just use a css class to denote which you want to "mask"?


[jQuery] Child ID

2008-09-12 Thread shapper

Hello,

I have the following:

  $("#StartDate, #FinishDate").each(function() {
$(this).mask("-99-99 99:99:99");
  });

It is working but I want to apply this only to StartDate and
FinishDate inputs that are inside the form with id "Create".

How can I do this?

Thanks.
Miguel


[jQuery] JQuery Plugin: ajaxContent questions

2008-09-12 Thread Scott Stewart

Hi all,

I'm using the ajaxContent plugin, it's loaded via a ColdFusion template 
(header.cfm)

I'm running into a couple of issues with it..

1) It positively will not load pages into a div in IE7 (works on one 
page in Firefox)
2) I'm running it on multiple pages, however it will not work on one 
page while working on another, the code is identical with the exception 
of the called page.

and ideas on what's going on?

header js calls are here:

http://cfm.pastebin.com/m4d7f1d6

working ColdFusion template is here

http://cfm.pastebin.com/d5d46d6a1

non working ColdFusion template is here:

http://cfm.pastebin.com/m155db21e

ColdFusion function that creates tab bar is here:

http://cfm.pastebin.com/m24a18393

-- 
Scott Stewart
ColdFusion Developer

Office of Research Information Systems
Research & Economic Development
University of North Carolina at Chapel Hill

Phone:(919)843-2408
Fax: (919)962-3600
Email: [EMAIL PROTECTED]




[jQuery] Re: Tabs Rotate Overlap

2008-09-12 Thread Orkan

btw. I played a bit with ui.effects on Tabs 
http://orkan.jaslo4u.pl/chili_toolbar/

On Sep 11, 11:31 am, Klaus Hartl <[EMAIL PROTECTED]> wrote:
> You mean the animation? I'm sorry, currently not. Implement cross-
> fading is on my list though...
>
> --Klaus
>
> On Sep 10, 3:57 pm, Chad Pry <[EMAIL PROTECTED]> wrote:
>
> > Is there a way to get the tabs rotation effect to overlap just a
> > little bit?


[jQuery] Re: Detecting Ctrl + click

2008-09-12 Thread [EMAIL PROTECTED]

Hi there,

Does the "if(e.ctrlKey) {"  apply also for Macs?  I know a Mac doesn't
have a Ctrl key as such, but it has some key that allows for multiple
selections of things.

 - Dave


On Sep 11, 2:10 pm, "[EMAIL PROTECTED]"
<[EMAIL PROTECTED]> wrote:
> Just do something like this:
>
> $(document).click(function(e) {
>   if(e.ctrlKey) {
>     console.log("Ctrl+Click");
>     // your code goes here...
>   } else if(e.altKey) {
>     console.log("Alt+Click");
>   } else if(e.shiftKey) {
>     console.log("Shift+Click");
>   }
>
> });
>
> I have just add 2 other events
>
> On 11 Sep., 21:28, "[EMAIL PROTECTED]"
>
>
>
> <[EMAIL PROTECTED]> wrote:
> > Thanks both for your input.  I guess the question is, there cleraly
> > seems to be a way to detect if a key is pressed, and there is a way to
> > define a click event, but how would I do a combination?
>
> > Is the easiest way to capture the event when the Ctrl key is pressed,
> > set a flag, and check if that flag is still set when I catch the mouse
> > click event?
>
> >  - Dave
>
> > On Sep 11, 7:37 am, owen <[EMAIL PROTECTED]> wrote:
>
> > > I've had some success with the hotkeys plugin:
>
> > >http://code.google.com/p/js-hotkeys/
>
> > > Check out the demo:http://jshotkeys.googlepages.com/test-static-01.html
>
> > >   -- Owen- Hide quoted text -
>
> - Show quoted text -


[jQuery] Re: Id not Found

2008-09-12 Thread shapper

I tried it ... but I wanted to ask just to cover all the situations. I
needed to be sure ...

Thank You!
Miguel

On Sep 12, 2:51 pm, MorningZ <[EMAIL PROTECTED]> wrote:
> "Will I create any problem to a page or fire any error if I apply a
> JQuery plugin to an id that does not exist?"
>
> Why not *just try it* and see what happens?  wouldn't that have been
> faster/easier than making a post about it?


[jQuery] jQuery tabs not working in IE. Functioning in FF.

2008-09-12 Thread godsgimp

Hi my name is Craig and I am a copywriter who has never done any
previous web design (so be kind)

In the past two weeks I have been trying to build a website for my
girlfriend who is a photographer. I have used a plugin called
stepCarousel from dynamic drive for the gallery- after some misses I
finally got that to work in IE.

See my example at: www.tessaholding.co.za/home.html

Next I used the tabs ui plugin to make the content tabbed and to fade
in and out. However I didn't want the tabbed navigation, i wanted to
link from a seperate div to the tabbed content. As I haven't done any
javascript, css or html before this it's been a bit of a steep
learning curve.

Anyway I got it to work the way I want it to in Firefox, but when I
tested it in IE, Opera and Chrome. Only the stepCarousel script seems
to work, the tabs donnot function and in IE's case, the positioning is
completely broken.

See my example at: www.tessaholding.co.za/testing/home.html

The galleries at this point are all the same images, I will change
them later, if I can get this all to work. Otherwise I may have to pay
someone else to build this thing for me and get the credit from my
girlfriend...

Oh yes I also tried to get a rollover fade in header to work, but that
also only works in Firefox and not in IE, see my example here:
www.tessaholding.co.za/test/test.html

Thanks in advance for any help, any at all!


[jQuery] Re: Fire events programmatically

2008-09-12 Thread Richard D. Worth
I don't know of any plans to add it to core. I think it works fine as a
plugin.

- Richard

On Fri, Sep 12, 2008 at 8:37 AM, Huub <[EMAIL PROTECTED]> wrote:

>
> Right, is it to be a part of jQuery?
> I can use the extension
> Great.
>
>
> Regards, Huub
>
> On Sep 9, 4:40 pm, "Richard D. Worth" <[EMAIL PROTECTED]> wrote:
> > Sounds like you may be interested in jquery.simulate:
> >
> > http://dev.jquery.com/view/tags/ui/latest/tests/simulate/jquery.simul...
> >
> > It will create and fire/dispatch mouse and keyboard events. Here's an
> > example of use:
> >
> > $("#myEl").simulate("mousedown", { clientX: 50, clientY: 100 });
> >
> > Browser support for elements and events is quite mixed.
> >
> > - Richard
> >
> > On Tue, Sep 9, 2008 at 10:07 AM, Huub <[EMAIL PROTECTED]> wrote:
> >
> > > I don't think that trigger() does the trick.
> >
> > > First of all i tested it.
> > > second, more important, things like createEvent,
> > > dispatchEvent,fireEvent do not appear in jQuery.js
> >
> > > Regards, Huub
> >
> > > On Sep 8, 11:11 pm, "Josh Nathanson" <[EMAIL PROTECTED]> wrote:
> > > > Isn't that the same as this:
> >
> > > > $("#ID1").trigger("change");
> >
> > > > -- Josh
> >
> > > > - Original Message -
> > > > From: "Huub" <[EMAIL PROTECTED]>
> > > > To: "jQuery (English)" 
> > > > Sent: Monday, September 08, 2008 11:30 AM
> > > > Subject: [jQuery]Fireevents programmatically
> >
> > > > > Sometimes it's needed to create an event programmatically. (Which
> is
> > > > > different from running an event function (triggering)
> >
> > > > > This can be done by the followingfirecode
> >
> > > > > var el=document.getElementById("ID1")
> >
> > > > >fire(el,'change')
> >
> > > > >   functionfire(evttype) {
> > > > >   if (document.createEvent) {
> > > > > var evt = document.createEvent('HTMLEvents');
> > > > > evt.initEvent( evttype, false, false);
> > > > > el.dispatchEvent(evt);
> > > > >   } else if (document.createEventObject) {
> > > > > el.fireEvent('on' + evttype);
> > > > >   }
> > > > >   }
> > > > > looks like this trick is not yet in jQuery, perhaps for a reason?
> >
> > > > > Huub
> >
> > > > > Regards
>


[jQuery] Re: Oddity with Jquery and Adobe AIR

2008-09-12 Thread Andy Matthews

Ah...

That makes perfect sense then. In that case, I believe that AIR has trouble
(or might not be able to) read externally loaded Javascript. It's a
sandboxing issue:

http://labs.adobe.com/wiki/index.php/AIR:HTML_Security_FAQ#So_what_does_this
_new_security_model_look_like.3F



 

-Original Message-
From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of gecko68
Sent: Thursday, September 11, 2008 8:16 PM
To: jQuery (English)
Subject: [jQuery] Re: Oddity with Jquery and Adobe AIR


Yes the click event works. But it will require a lot more programming since
the HTML being added is generated via Ajax. I guess I could bring the data
in via json and assemble the HTML objects from within the original script.

I am curious why it works in safari but not webkit/air.
Thanks for the assist.


On Sep 11, 4:40 pm, "Andy Matthews" <[EMAIL PROTECTED]> wrote:
> Why are you using onclick attributes? jQuery supports the click event 
> natively (which also works in AIR apps:
>
> Looks like for your HTML the jQuery might be this:
>
> $('span.pageName a').click(function(){
>         // do something here
>
> });
>
> This has the added benefit of cleaning up your HTML and making it far 
> easier to read.
>
> andy matthews
>
> -Original Message-
> From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] 
> On
>
> Behalf Of gecko68
> Sent: Thursday, September 11, 2008 1:45 PM
> To: jQuery (English)
> Subject: [jQuery] Oddity with Jquery and Adobe AIR
>
> I am trying to append some HTML to an object. It includes href's and 
> onclick events, but for some reason in AIR the onclicks don't seem to
fire.
>
> var pageName = 'text';
> var x = 1;
> var newPageData = " class='pageName'>"+pageName+"" + " onclick='alert("+x+");'> class='mini-icon'>"
> +
> "Check 
> me div>";
>
>         $('.scrollContainer').append(newPageData);
>
> It all appears fine, but when I click the icon, nothing happens. I 
> have tested this script in FireFox and Opera with no problems.
>
> Any help would be appreciated.
> Dan




[jQuery] Re: jQuery BlockUI

2008-09-12 Thread W3Max

Thank you, it works...

But, I would like to use a custom cursor and as soon as I use -->
cursor : 'url(/images/ajax-loader.gif)' it does not work anymore.

Any idea ?

W3Max

On Sep 11, 6:14 pm, Mike Alsup <[EMAIL PROTECTED]> wrote:
> > I can't change thecursorfor the jQueryBlockUIPlugin... Am I the
> > only one ?
>
> Where do you see the waitcursor?  On the overlay?  Use the overlayCSS
> option to override it there.
>
> Mike


[jQuery] Re: Replace form with new form - AJAX stops working

2008-09-12 Thread Mike Alsup

> The problem I am running into is that on a failure, the myForm.php
> with the error message and fields filled in is passed back, but
> clicking on the Submit button no longer seems to call the jQuery event
> handler for the click. Nothing happens. Can dynamically loaded HTML be
> used in conjunction with the jQuery/AJAX on the page?

Give this a read:

http://docs.jquery.com/Frequently_Asked_Questions#Why_do_my_events_stop_working_after_an_Ajax_request.3F


[jQuery] What is crashing Safari 2?

2008-09-12 Thread PED

I've found some reference to problems with Safari 2.0.4 and have fixed
one rendering issue related to using fadeTo but I have more severe
problems which crash it.

The following page will crash Safari when a thumbnail is clicked:
http://lonemadsen.pedesign.co.uk/photos.php

It uses jQuery version 1.2.6 and the following jQuery script:
http://lonemadsen.pedesign.co.uk/script/jquery.photopage2.js

Any help would be much appreciated. Thanks.



[jQuery] Re: Fire events programmatically

2008-09-12 Thread Huub

Right, is it to be a part of jQuery?
I can use the extension
Great.


Regards, Huub

On Sep 9, 4:40 pm, "Richard D. Worth" <[EMAIL PROTECTED]> wrote:
> Sounds like you may be interested in jquery.simulate:
>
> http://dev.jquery.com/view/tags/ui/latest/tests/simulate/jquery.simul...
>
> It will create and fire/dispatch mouse and keyboard events. Here's an
> example of use:
>
> $("#myEl").simulate("mousedown", { clientX: 50, clientY: 100 });
>
> Browser support for elements and events is quite mixed.
>
> - Richard
>
> On Tue, Sep 9, 2008 at 10:07 AM, Huub <[EMAIL PROTECTED]> wrote:
>
> > I don't think that trigger() does the trick.
>
> > First of all i tested it.
> > second, more important, things like createEvent,
> > dispatchEvent,fireEvent do not appear in jQuery.js
>
> > Regards, Huub
>
> > On Sep 8, 11:11 pm, "Josh Nathanson" <[EMAIL PROTECTED]> wrote:
> > > Isn't that the same as this:
>
> > > $("#ID1").trigger("change");
>
> > > -- Josh
>
> > > - Original Message -
> > > From: "Huub" <[EMAIL PROTECTED]>
> > > To: "jQuery (English)" 
> > > Sent: Monday, September 08, 2008 11:30 AM
> > > Subject: [jQuery]Fireevents programmatically
>
> > > > Sometimes it's needed to create an event programmatically. (Which is
> > > > different from running an event function (triggering)
>
> > > > This can be done by the followingfirecode
>
> > > > var el=document.getElementById("ID1")
>
> > > >fire(el,'change')
>
> > > >   functionfire(evttype) {
> > > >       if (document.createEvent) {
> > > >         var evt = document.createEvent('HTMLEvents');
> > > >         evt.initEvent( evttype, false, false);
> > > >         el.dispatchEvent(evt);
> > > >       } else if (document.createEventObject) {
> > > >         el.fireEvent('on' + evttype);
> > > >       }
> > > >   }
> > > > looks like this trick is not yet in jQuery, perhaps for a reason?
>
> > > > Huub
>
> > > > Regards


[jQuery] Re: Newbie question on positioning images

2008-09-12 Thread BB

Is the gif visible when you try to get it's height?
If not try this:
var height = $('#wait_also').css("visibility", "visible").height();
$('#wait_also').css("visibility", "hidden");

On 12 Sep., 12:23, Kevin Thorpe <[EMAIL PROTECTED]> wrote:
> Sorry, this is very simple I think but I can't fathom it out.
>
> I have a select box (id=select_also) and a gif (id=wait_also) and I want
> the gif centred over the select box so
> I can turn it on and off as I reload the contents of the select box.
> I've tried adding in the jquery.dimensions
> plugin and the gif has the functions defined as properties, but
> $('#wait_also').height() is returning null.
>
> Can anyone please hold my hand on this?
>
> thanks


[jQuery] Re: Code Editors

2008-09-12 Thread tlob

holy moly, I didn't know aptana, I think it will replace my jEdit.org.

thx!



[jQuery] Re: Superfish menu activate on click

2008-09-12 Thread jardeeq

Hi,

I made patch against superfish-1.4.8, which fixes your problem and
adds desired functionality. We are using it in company intranet and it
looks like working well with some minor issues. Any further sugestions
or code improvements will be appreciated.

You can find my patch on http://plugins.jquery.com/node/3967

jarda


On Aug 7, 9:34 am, yitzc <[EMAIL PROTECTED]> wrote:
> Hi. I am using the Superfish menu, and it fits my needs perfectly. The
> problem is that the client I am designing the website for has decided
> that he wants the menus to appear only when he clicks on them - and
> not when he hovers the mouse over them.
>
> I was able to get the main menu to work onClick by modifying line 49,
> changing:
>
> $('li:has(ul)',this)[($.fn.hoverIntent && !o.disableHI) ?
> 'hoverIntent' : 'hover'](over,out).each(function() {...});
>
> To:
>
> $('li:has(ul)',this).click(over).hover(function()
> {},out).each(function() { ... });
>
> So that I still get the hover out effect when he moves the mouse off
> the menu.
> The problem is that now all my submenus don't respond - not when I
> click on them or when I move the mouse over them.
>
> Does anyone know why this would be happening, or (even better) have a
> working hack/fix to make Superfish work on click only?
>
> (If the sub-menus activate on hover, that would be a bonus)
>
> -- Yitzhak


[jQuery] Re: Detecting Ctrl + click

2008-09-12 Thread BB

Just something I would like to add:
if you now say: e.altKey doesn't work!!
it is right... but will be fixed in the next release of jQuery, see:
http://dev.jquery.com/ticket/2947

On 11 Sep., 22:10, "[EMAIL PROTECTED]"
<[EMAIL PROTECTED]> wrote:
> Just do something like this:
>
> $(document).click(function(e) {
>   if(e.ctrlKey) {
>     console.log("Ctrl+Click");
>     // your code goes here...
>   } else if(e.altKey) {
>     console.log("Alt+Click");
>   } else if(e.shiftKey) {
>     console.log("Shift+Click");
>   }
>
> });
>
> I have just add 2 other events
>
> On 11 Sep., 21:28, "[EMAIL PROTECTED]"
>
> <[EMAIL PROTECTED]> wrote:
> > Thanks both for your input.  I guess the question is, there cleraly
> > seems to be a way to detect if a key is pressed, and there is a way to
> > define a click event, but how would I do a combination?
>
> > Is the easiest way to capture the event when the Ctrl key is pressed,
> > set a flag, and check if that flag is still set when I catch the mouse
> > click event?
>
> >  - Dave
>
> > On Sep 11, 7:37 am, owen <[EMAIL PROTECTED]> wrote:
>
> > > I've had some success with the hotkeys plugin:
>
> > >http://code.google.com/p/js-hotkeys/
>
> > > Check out the demo:http://jshotkeys.googlepages.com/test-static-01.html
>
> > >   -- Owen


[jQuery] Re: $.post callback problem

2008-09-12 Thread Peter Edwards

It looks like you have a rogue parenthesis to me - 
$.post($(this).attr("href")) - the last closing parenthesis completes 
the $.post call, so your callback function will not fire.

on 11/09/2008 21:49 Tom Shafer said::
> i am trying to use data i am getting back from $.post but I am not
> able to get the function with the data in it to work
>
>
>
> $("a.rater").click(function(event)
>   {
>   $.post($(this).attr("href")),
>   function(data)
>   {
>  update = data.split('|');
> $('#'update[0]).replaceWith(update[1]);
>   };
>   return false;
>   }
> );
>
> i also tried
>
> $("a.rater").click(function(event)
>   {
>   $.post($(this).attr("href")),
>   function(data)
>   {
> alert(+data);
>   };
>   return false;
>   }
> );
>
> any suggestions?
>
>
>
>   


[jQuery] Showing And Hiding Select Options - Works in FF not IE

2008-09-12 Thread VirtualRichard

Hi, this is quite the frustration. It works in Firefox 3.0.1 but not
in IE 7.

Say I have a select box with 7 options. I want to selectively show or
hide options based on a selection in another select box. When the
first select box changes, that fires off a call like:

FilterOptions(1, 1, 1, 0, 0, 0, 1);

A 1 means show the option and a 0 means hide the option. I do this
like so:

function FilterOptions(a, b, c, d, e, f, g)
{
for (var i = 0; i < arguments.length; i++)
{
(arguments[i] == 1) == true ? $("select#FilterOptions 
option:eq(" +
i + ")").show() : $("select#FilterOptions option:eq(" + i +
")").hide();
}
}

In IE7 all options are shown regardless of 0s or 1s. There are no
script errors. I've managed to alert all sorts of info (IE alerts the
correct values for (arguments[i] == 1) == true) and that shows me the
script gets this far but to no avail. The options stay resolutely
visible :(

Any ideas what is wrong?

Richard


[jQuery] superfish and lightbox dont work together

2008-09-12 Thread ric

hi,

as soon as i fill my header the required data for lightbox.






I loose the config commands

autoArrows:  true,// disable
generation of arrow mark-up
dropShadows: true // disable
drop shadows

my arrows and my dropshadow disappear.

I have discovered that this line makes them disappear.


The script itself does work fine.

has anybody already encountered and solved that problem?


[jQuery] jQuery jerking animation

2008-09-12 Thread weidc

Hi,

well I made some kind of slideshow with some picture's. It's jerking
really hard sometimes especially when the picture's are over the whole
screen 'cause of the 100% width.
Is there any way to get it smooth?

Here's the code:


$(document).ready(function(){

$("#slideshow img").css("display","none");

function run(elementnumber){



if (elementnumber == $("#slideshow img").length)
elementnumber = 0;

var slideshowheigh = $("#slideshow").height();
$("#slideshow img:eq("+elementnumber+")").css("margin-top", 0);
$("#slideshow img:eq("+elementnumber+")").css("display", 
"block");
$("#slideshow img:eq("+elementnumber+")").css("opacity", "0");
$("#slideshow 
img:eq("+elementnumber+")").show("normal",function(){
var speedie = 39900;
var imgheight = $(this).height();
var unten = imgheight - slideshowheigh;
var mitte = (imgheight/2) - (slideshowheigh/2);

$(this).css("margin-top", 0);

//fade(elementnumber);
$(this).animate({marginTop: -mitte,opacity:1},speedie, 
function ()
{

$(this).animate({marginTop: 
-unten,opacity:0},speedie, function ()
{

$(this).css("margin-top", 0);

$(this).slideUp(1, 
run(elementnumber+1));

});
});
});
};
run(0);
});


CSS code is like that:

#slideshow{width:100%; height:290px; overflow:hidden;
position:absolute; }
#slideshow img{ min-width:100%;}


-weidc


[jQuery] Re: Superfish menu activate on click

2008-09-12 Thread insekticid

test

On 7 Srp, 09:34, yitzc <[EMAIL PROTECTED]> wrote:
> Hi. I am using the Superfish menu, and it fits my needs perfectly. The
> problem is that the client I am designing the website for has decided
> that he wants the menus to appear only when he clicks on them - and
> not when he hovers the mouse over them.
>
> I was able to get the main menu to work onClick by modifying line 49,
> changing:
>
> $('li:has(ul)',this)[($.fn.hoverIntent && !o.disableHI) ?
> 'hoverIntent' : 'hover'](over,out).each(function() {...});
>
> To:
>
> $('li:has(ul)',this).click(over).hover(function()
> {},out).each(function() { ... });
>
> So that I still get the hover out effect when he moves the mouse off
> the menu.
> The problem is that now all my submenus don't respond - not when I
> click on them or when I move the mouse over them.
>
> Does anyone know why this would be happening, or (even better) have a
> working hack/fix to make Superfish work on click only?
>
> (If the sub-menus activate on hover, that would be a bonus)
>
> -- Yitzhak


[jQuery] Re: JQuery Form Plugin and json

2008-09-12 Thread Stefan Sturm

Hello

>
> beforeSubmit: function(arr) {
>var json = // ... build json string
>arr.length = 0; // throw away current array contents (if you want)
>arr[0] = { name: 'someName', value: json };
> }
>

thats it :-) Thanks...

Greetings,
Stefan Sturm


[jQuery] JQuery text replace on Search Box

2008-09-12 Thread adeking

Hi,

I have encountered a strange problem with my text replace using JQuery
for my search box.

Everything worksd as it should, but if a user clicks the back button
while navigating my site, the JQuery will then not work.

If I havent explained myself adequatly, please click the link below,
go through a few links, then click the back button and try using the
search box.

http://www.macmillan-academy.org.uk/zeltha/index.php


If anyone has encountered this problem before, I would be gratful to
hear of the solution.

Many thanks.


[jQuery] Replace form with new form - AJAX stops working

2008-09-12 Thread jyushinx

Hi,

I'm very new to both AJAX and jQuery, so bare with me.

I have a form with three fields that is stored as a template (call it
myForm.php). When the parent page is loaded, it loads myForm.php
inside it and there is an AJAX script using jQuery which sends the
form data to a PHP script (call it validation.php) where the data is
validated. If there is a failure on one of the elements, the
validation.php passes back myForm.php with the error message filled in
as well as the entered values. If the validation was successful,
validation.php would pass back the template for the next step in the
form.

The problem I am running into is that on a failure, the myForm.php
with the error message and fields filled in is passed back, but
clicking on the Submit button no longer seems to call the jQuery event
handler for the click. Nothing happens. Can dynamically loaded HTML be
used in conjunction with the jQuery/AJAX on the page?

If instead of a fix, you have any better ideas as to how to accomplish
what I'm doing, feel free to let me know that as well. I don't have to
do it this way, I just want to have server side validation.

Thanks.

Adam


[jQuery] Re: Superfish menu activate on click

2008-09-12 Thread jardeeq

Hi,

I made patch which addresses your problem with not-responding submenus
and makes lower-level submenus open on hover.
Any other suggestions or code improvements would be appreciated.

You can find my patch (including instructions ) on 
http://plugins.jquery.com/node/3967

jarda


On Aug 7, 9:34 am, yitzc <[EMAIL PROTECTED]> wrote:
> Hi. I am using the Superfish menu, and it fits my needs perfectly. The
> problem is that the client I am designing the website for has decided
> that he wants the menus to appear only when he clicks on them - and
> not when he hovers the mouse over them.
>
> I was able to get the main menu to work onClick by modifying line 49,
> changing:
>
> $('li:has(ul)',this)[($.fn.hoverIntent && !o.disableHI) ?
> 'hoverIntent' : 'hover'](over,out).each(function() {...});
>
> To:
>
> $('li:has(ul)',this).click(over).hover(function()
> {},out).each(function() { ... });
>
> So that I still get the hover out effect when he moves the mouse off
> the menu.
> The problem is that now all my submenus don't respond - not when I
> click on them or when I move the mouse over them.
>
> Does anyone know why this would be happening, or (even better) have a
> working hack/fix to make Superfish work on click only?
>
> (If the sub-menus activate on hover, that would be a bonus)
>
> -- Yitzhak


[jQuery] superfish image buttons

2008-09-12 Thread tuffcode

Hello,
I've searched the List and read the entries. The problem is that I
could not get them to work. I'm ok with css, certainly not a pro. I'm
better with javascript and PHP. Here's the bit of css that I modified
from another post to this List...

#community a { background: transparent url(images/topnav/
community.gif) no-repeat 0 0; }
#community:hover a, #community.sfHover a { background-image:
url(images/topnav/community_on.gif); }

The images are correct, the paths that is. I can not get them to
display in the superfish menu. Here's my html (using the included
example menu)...






menu item that is 
quite long


menu item 
→

menu item
menu 
item
menu 
item
menu 
item
menu 
item




My question is about what to name "community"? Where to place the id
in the html? I've tried applying it to the UL, the LI, the , and
the  and none worked.

Appreciate any help. Since this is a common-ish problem, anyone care
to make an example with image buttons for main menu items? If I can
get this going, I'll donate my example to The Cause. Last note, I am
using multiple images for on/off but am open to thoughts on combining
into a single image.

Aloha,
Colin



[jQuery] Re: Tabs and focus() input-Elements issue

2008-09-12 Thread Klaus Hartl

Hallo QT,

I noticed you're using the old Tabs 2. I do not support that any
longer, UI Tabs replaced it since quite a while and I don't really
have the time to support both. I suspect that the focus problem has
something do do with history but I'm not sure.

--Klaus


On Sep 11, 9:32 am, qt <[EMAIL PROTECTED]> wrote:
> Hi Klaus
>
> Thanks for your reply:
>
> By "calling the tab directly", I mean to load a tab from an external
> page or by entering the url (from the tab) in the browsers address
> bar.
> "calling from the tab itself" means to click a tab to load its
> contents.
>
> See an online demo from your demo page (first example, second 
> tab):http://hanfgarten.li/tabs/
> when hit the tab directly, it works:http://hanfgarten.li/tabs/#fragment-2
>
> Hope that this example helps clarifying what I mean...
>
> Thanks again!
> ~QT
>
> On Sep 8, 8:44 pm, Klaus Hartl <[EMAIL PROTECTED]> wrote:
>
> > I don't understand yet. Can you explain the difference of "calling the
> > Tab directly" and "calling from the tab(s) itself", ideally with code
> > samples?
>
> > --Klaus
>
> > On Sep 8, 4:34 pm, qt <[EMAIL PROTECTED]> wrote:
>
> > > Hi list
>
> > > We use Klaus Hartls' Tabs in a company intranet application.
> > > It's just awesome.
>
> > > But there is a little confusion about setting afocuson an input-
> > > field (ie. $('#myInput').focus() ).
> > > It works well when calling the Tab directly, but it would notfocus
> > > when calling from the tab(s) itself.
> > > I just tested it with the demo pages from Klaus and there it would not
> > > work either.
>
> > > Does someone have an example or an idea of how to get around this?
>
> > > Thanks in adv.
> > > QT


[v8-users] V8 and XML

2008-09-12 Thread rajika

hello there,
I'd like to know about any API or a sample code of handling XML ,
something like E4X in V8 or any other thing available for V8. Thanks
in advance.!
--~--~-~--~~~---~--~~
v8-users mailing list
v8-users@googlegroups.com
http://groups.google.com/group/v8-users
-~--~~~~--~~--~--~---



[jQuery] Re: [validate] Test element validation without triggering error message display?

2008-09-12 Thread Jörn Zaefferer
There is no plugin method for that, but you can use the validator
check method directly:

var validator = $("#myform").validate();
var result = validator.check("#myelement");

That still has side effects on the internal validator state, but that
shouldn't be a problem.

Let me know if that helps.

Jörn

On Fri, Sep 12, 2008 at 9:59 AM, boermans <[EMAIL PROTECTED]> wrote:
>
> How would I check if the value of a given text field is valid
> according to the rules specified with the Validation plugin (returning
> true or false) without triggering validation?
>
> Like using validation().element(el) or $(el).valid() - purely for the
> returned boolean - without the error message showing if it is invalid.
>
> I do not wish to remove the error message altogether, rather I am
> looking for a way to test the validation of the field without setting
> it's validation state as far as the plugin is concerned. Leaving me
> free to trigger visible validation checks independently.
>
> +
>
> In this specific scenario I am using the typewatch plugin  www.dennydotnet.com/post/TypeWatch-jQuery-Plugin.aspx> to store/apply
> the values of text fields as the user types. There is no form
> submission. To prevent an invalid value being applied by the typewatch
> callback I hoped to include a validation test. This works but displays
> the error message well before the user is likely to have completed
> typing their email address. I would instead prefer to trigger the
> visible Validation test on blur.
>
> Any suggestions for alternative approaches are very welcome!
>
> Thanks in advance
> Ollie
>


[jQuery] Re: ToolTip Bassistance and TinyMCE

2008-09-12 Thread Jörn Zaefferer
Your selector is borked, the $-prefix doesn't make much sense. That
should be "#tinymce" (by id) or ".mceContentBody" (by class).

Jörn

On Thu, Sep 11, 2008 at 11:51 PM, shapper <[EMAIL PROTECTED]> wrote:
>
> Hello,
>
> I am trying to make the ToolTip Bassistance to work with TinyMCE:
> http://tinymce.moxiecode.com/examples/full.php
>
> I want to display a message when the user places the mouse on the
> content area which renders as follows:
>  title="this is the title" dir="ltr">
>
> The content area is inside an IFrame.
>
> I used the following:
>  $("$mceContentBody").tooltip();
>
> or
>
>  $("$tinymce").tooltip();
>
> But it is not working.
>
> Could someone help me in solving this?
>
> Thanks,
> Miguel
>
>


Sexy Teenage Lovers Unseen Hot Lift Sex Scandal Video...

2008-09-12 Thread sherin s
 *Sexy Teenage Lovers Unseen Hot Lift Sex Scandal Video...*

http://www.mirchiactress.com/Sex%20Scandal%20Videos/lovers-lift-scandal-video.php
http://www.mirchiactress.com/Sex%20Scandal%20Videos/lovers-lift-scandal-video.php
http://www.mirchiactress.com/Sex%20Scandal%20Videos/lovers-lift-scandal-video.php
http://www.mirchiactress.com/Sex%20Scandal%20Videos/lovers-lift-scandal-video.php
http://www.mirchiactress.com/Sex%20Scandal%20Videos/lovers-lift-scandal-video.php


Check More Actress Sexy Videos and Photos at
 > fine in Firefox, but in IE it first goes to 100% white and then
> > suddenly changes to half transparent. It would be nice if it IE would
> > behave the same way as Firefox does.
>
> > Does any know how to get this right in IE as well, or should I forget
> > about getting this to work in IE?
>
> >http://tijmensmit.com/dev/fade2.html
>
> > Regards,
> > Tijmen


[jQuery] [validate] Test element validation without triggering error message display?

2008-09-12 Thread boermans

How would I check if the value of a given text field is valid
according to the rules specified with the Validation plugin (returning
true or false) without triggering validation?

Like using validation().element(el) or $(el).valid() - purely for the
returned boolean - without the error message showing if it is invalid.

I do not wish to remove the error message altogether, rather I am
looking for a way to test the validation of the field without setting
it’s validation state as far as the plugin is concerned. Leaving me
free to trigger visible validation checks independently.

+

In this specific scenario I am using the typewatch plugin  to store/apply
the values of text fields as the user types. There is no form
submission. To prevent an invalid value being applied by the typewatch
callback I hoped to include a validation test. This works but displays
the error message well before the user is likely to have completed
typing their email address. I would instead prefer to trigger the
visible Validation test on blur.

Any suggestions for alternative approaches are very welcome!

Thanks in advance
Ollie