<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Just Uber &#187; ajax</title>
	<atom:link href="http://www.justuber.com/blog/tag/ajax/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.justuber.com/blog</link>
	<description>Dancing with Nerds</description>
	<lastBuildDate>Thu, 17 Mar 2011 11:11:52 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Symfony &#8211; Prototype &#8211; Lightwindows &#8211; problems</title>
		<link>http://www.justuber.com/blog/2009/02/13/symfony-prototype-lightwindows-problems/</link>
		<comments>http://www.justuber.com/blog/2009/02/13/symfony-prototype-lightwindows-problems/#comments</comments>
		<pubDate>Fri, 13 Feb 2009 11:12:24 +0000</pubDate>
		<dc:creator>Adam</dc:creator>
				<category><![CDATA[Rants]]></category>
		<category><![CDATA[ajax]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[mvc]]></category>
		<category><![CDATA[prototype]]></category>
		<category><![CDATA[symfony]]></category>

		<guid isPermaLink="false">http://www.justuber.com/blog/?p=152</guid>
		<description><![CDATA[Hi all,
here is a problem (and solution) that tasked me for around 3 hours last night.
I am using Symfony MVC (ver 1.0) framework to create an intranet based application.  A lot of the work is AJAX driven to help with usability. 
I had a requirement to be able to create new entities from one [...]]]></description>
			<content:encoded><![CDATA[<p>Hi all,<br />
here is a problem (and solution) that tasked me for around 3 hours last night.<br />
I am using <a href="http://www.symfony-project.org/">Symfony MVC</a> (ver 1.0) framework to create an intranet based application.  A lot of the work is AJAX driven to help with usability. </p>
<p>I had a requirement to be able to create new entities from one page, the entity requires a large amount of information to be entered.  I am not decided but the two choices I have tried are<br />
a) Using a short form that reduces the amount of data needed to create the entity (e.g. just the name of the thing) and<br />
b) A pop up modal window that presents the full form.</p>
<p>The first I implemented with no problems, fully ajaxed up and working &#8211; a good option really.<br />
The second I decided to use the <a href="http://www.symfony-project.org/plugins/sfLightWindowPlugin"> lightwindow plugin</a>.  After following all the instructions to make it work it just sat there mocking me, nothing happening.  I use <a href="https://addons.mozilla.org/en-US/firefox/addon/1843">Firebug</a> to help me decode the problems and this tool gave the following cryptic error:<br />
<code>"0x8057000d (NS_ERROR_XPC_CANT_CONVERT_WN_TO_FUN)"</code><br />
I had to laugh &#8211; it reminded me of a Microsoft error message, similar to something BizTalk throws up if you forget to enable the first part of an orchestration (noob error!).<br />
Any ways &#8211; a bit of searching on Google brings back this <a href="http://radio.javaranch.com/davo/categories/Java/">blog</a> (thanks to Dave for putting me on the right track).</p>
<p>I then looked at the Prototype libraries that come shipped with Symfony 1.0 and doh! they are older than those required for lightwindow, simple error, simple solution.  It just took me a long time to figure out, and I thought other noobs may be in a similar situation searching for a simple answer.</p>
<p>Downloading and installing the <a href="http://www.symfony-project.org/plugins/sfPrototypePlugin">prototype plugin</a> solved the prototype problem  gave me great looking pop up windows (just don&#8217;t forget to clear your cache using symfony cc).</p>
<p>Now all I have to sort out is the stupid cross browser problems (IE in particular!) ggggrrrrrr.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.justuber.com/blog/2009/02/13/symfony-prototype-lightwindows-problems/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

