<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[xajax Forums - Xajax, Jquery and form]]></title>
		<link>http://community.xajaxproject.org/topic/8044/xajax-jquery-and-form/</link>
		<description><![CDATA[The most recent posts in Xajax, Jquery and form.]]></description>
		<lastBuildDate>Mon, 22 Jun 2009 23:32:06 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Xajax, Jquery and form]]></title>
			<link>http://community.xajaxproject.org/post/28298/#p28298</link>
			<description><![CDATA[Yes Im trying to add multiple hidden rows, and right now they are all the same id. So with what you said, I presume each row will need to be unique in order for the jQuery to properly function (hide and slideToggle)? I'll give it a shot this evening. THanks.]]></description>
			<author><![CDATA[dummy@example.com (Fielder)]]></author>
			<pubDate>Mon, 22 Jun 2009 23:32:06 +0000</pubDate>
			<guid>http://community.xajaxproject.org/post/28298/#p28298</guid>
		</item>
		<item>
			<title><![CDATA[Re: Xajax, Jquery and form]]></title>
			<link>http://community.xajaxproject.org/post/28296/#p28296</link>
			<description><![CDATA[Are you trying to create multiple rows with the hidden information?  If so, you will need to add a row number to the ID (or in some other way, make the ID unique).

Otherwise, you should be able to assign a value to the innerHTML of the DIV

// Joe]]></description>
			<author><![CDATA[dummy@example.com (CtC)]]></author>
			<pubDate>Mon, 22 Jun 2009 20:42:06 +0000</pubDate>
			<guid>http://community.xajaxproject.org/post/28296/#p28296</guid>
		</item>
		<item>
			<title><![CDATA[Re: Xajax, Jquery and form]]></title>
			<link>http://community.xajaxproject.org/post/28293/#p28293</link>
			<description><![CDATA[It didn't help.

In fact I've created a working<div> that is loaded at pageload with a button_showstore, and it works as expected. But it just doesn't act on the dynamically created <div>s from the xajax code.

It doesnt have anything to do with the fact that the <div> is inside a table?
[code]
<table>
<tr>
<td><div id="store_body">Hidden Information Here</div></td>
</tr>
</table>
[/code]]]></description>
			<author><![CDATA[dummy@example.com (Fielder)]]></author>
			<pubDate>Sun, 21 Jun 2009 23:20:27 +0000</pubDate>
			<guid>http://community.xajaxproject.org/post/28293/#p28293</guid>
		</item>
		<item>
			<title><![CDATA[Re: Xajax, Jquery and form]]></title>
			<link>http://community.xajaxproject.org/post/28292/#p28292</link>
			<description><![CDATA[Ok, I'll give it a shot but I've tried just about everything.

So although I'm hiding a particular <div> id in my jquery.js (on page load) before it even exists on a page, when xajax does creates it (w/o page refresh) the jquery will affect it and be hidden?

See what I'm initially loading is 
[code]
$(document).ready(function() {

    $('#button_showstore').click(function() {
        $('#store_body').slideToggle("fast");
    });

    $('#store_body').hide();
});
[/code]
like I said this div doesnt exist at the time of the page load. I want it to be hidden though when it is finally created by xajax.
[code]
<div id="store_body">Hidden Information Goes Here</div>

<a href='JavaScript:void(0);' id='button_showstore'><img src='../../../assets/images/icons/shape_square_edit.png' /></a>
[/code]

Then obviously I want to be able to click on the button to toggle the hide/unhide.]]></description>
			<author><![CDATA[dummy@example.com (Fielder)]]></author>
			<pubDate>Sun, 21 Jun 2009 22:57:16 +0000</pubDate>
			<guid>http://community.xajaxproject.org/post/28292/#p28292</guid>
		</item>
		<item>
			<title><![CDATA[Re: Xajax, Jquery and form]]></title>
			<link>http://community.xajaxproject.org/post/28291/#p28291</link>
			<description><![CDATA[@Jagarm you could use a html element as memory for a variable

@fielder if jquery is loaded in the head of your page, you can use it, i dunno if thats the mistake but it should be $('#store_body') instead of $(#store_body) or better $('store_body') if you want to select using the id of an element]]></description>
			<author><![CDATA[dummy@example.com (Mairu)]]></author>
			<pubDate>Sun, 21 Jun 2009 08:23:58 +0000</pubDate>
			<guid>http://community.xajaxproject.org/post/28291/#p28291</guid>
		</item>
		<item>
			<title><![CDATA[Re: Xajax, Jquery and form]]></title>
			<link>http://community.xajaxproject.org/post/28290/#p28290</link>
			<description><![CDATA[Please help - I must be missing something, because I cannot get my jQuery to work with my xajax.

My xajax is creating a table asynchronously (w/o page refresh), but my $(#store_body).hide(); in my jquery.js is not hiding the store_body div created from this table. The $(#store_body).hide(); is loaded when the page first loads, so there may be some disconnect between the 2.

So I tried $objResponse->Script("$(#store_body).hide();"); but still nothing.

In my firebug I am getting this 
[code]
<cmd cmd="js">S$(#store_body).hide()</cmd><cmd cmd="as" id="div_table" prop="innerHTML"
><![CDATA[S<table class="styledTable"><tr><th width="20%" class="title">St . . .

...etc
[/code]

What am I missing? I've seen a little here-and-there about a jQuery plugin, but nothing explaining it simple enough for me to play with. Is there something else I need to be loading to get access to the jQuery stuff?]]></description>
			<author><![CDATA[dummy@example.com (Fielder)]]></author>
			<pubDate>Sun, 21 Jun 2009 03:01:56 +0000</pubDate>
			<guid>http://community.xajaxproject.org/post/28290/#p28290</guid>
		</item>
		<item>
			<title><![CDATA[Xajax, Jquery and form]]></title>
			<link>http://community.xajaxproject.org/post/28282/#p28282</link>
			<description><![CDATA[Hi everyone!

I have a form, and I'm validating the user with xajax of course, the following is how I currently call the function with jquery:

[code]
$(document).ready(function(){
    $("#frmLogin").submit(function(){
        xajax__validate_admin(xajax.getFormValues(this));
        return false;
    });
});
[/code]

I am redirecting the user to the appropriate page from php whenever the login is good, but from jquery is there any way to find out if the login is a success?

Thank you!]]></description>
			<author><![CDATA[dummy@example.com (Jagarm)]]></author>
			<pubDate>Fri, 19 Jun 2009 18:55:14 +0000</pubDate>
			<guid>http://community.xajaxproject.org/post/28282/#p28282</guid>
		</item>
	</channel>
</rss>
