Frustrating Firefox Problem while making AJAX request on an anchor Programming Web Development by ximath … req.setVariables("foo=hede"); req.setMethod("POST"); req.setSuccessCallback( function(o… req.setVariables("foo=hede"); req.setMethod("POST"); req.setSuccessCallback( function(o)… req.setVariables("foo=hede"); req.setMethod("POST"); req.makeRequest(); }[/CODE] … Validation in Zend Framework Not working in Index Controller Programming Web Development by sugumarclick … the method for the display form to POST $this->setMethod('post'); // Add an email element $this->addElement('text', 'email… jquery html form ajax Programming Web Development by johnniegee …) + '&url=' + encodeURIComponent(url) + "&line=" + line; req.setMethod("POST"); return req.loadXMLDoc("/scripts/logerror.php… Zend_Form setAction problem Programming Web Development by eburlea … = null) { parent::__construct($options); $this->setName('login'); $this->setMethod('post'); $this->setAction("/auth/index"); ... Please help… Re: Zend_Form setAction problem Programming Web Development by eburlea … = null) { parent::__construct($options); $this->setName('login'); $this->setMethod('post'); $view = Zend_Layout::getMvcInstance()->getView(); $this->setAction($view… Re: record count returns no columns Programming Software Development by javaAddict …(); while (rst.next()) { ClassA cla = new ClassA(); cla.setMethod...(rst.get....(1)); cla.setMethod...(rst.get....(2)); //other method v.add(cla… Re: record count returns no columns Programming Software Development by choybutchoy …(); while (rst.next()) { ClassA cla = new ClassA(); cla.setMethod...(rst.get....(1)); cla.setMethod...(rst.get....(2)); //other method v.add(cla… Re: Formatting XML response from php curl with conditional statement. Programming Web Development by diafol …('https://api.infobip.com/sms/1/text/single'); $request->setMethod(HTTP_METH_POST); $request->setHeaders(array( 'accept' => 'application/json', 'content… Re: Frustrating Firefox Problem while making AJAX request on an anchor Programming Web Development by langsor Hello, I hope I understand what your situation is here ... but why not simply disable the link and submit the page href with a script when the ajax is done doing its thing? This isn't a perfect example and still needs some tuning, but it might help with some different ideas how to do it :-/ [B]test_script.php[/B] [CODE=php] <?php if ( $… Re: Frustrating Firefox Problem while making AJAX request on an anchor Programming Web Development by ximath Hi and thank you, But the problem is I am writing a module to a community, thus, some part of the code (anchors) already exist. But span tags and javascript there belongs to me. Thus, I don't want to interfere with the anchors in case they might be changed in future. This is also the reason why I have encapsulated them in <span> tags … Re: Frustrating Firefox Problem while making AJAX request on an anchor Programming Web Development by ~s.o.s~ The error makes proper sense; think about it, the page which made an Ajax request in the first place is no longer there and hence a NS_ERROR_NOT_AVAILABLE. You have two options here: • Redirect the user to the Google home page once the Ajax request is complete and you have the status with you; analyze the status and redirect accordingly based on … Re: Frustrating Firefox Problem while making AJAX request on an anchor Programming Web Development by langsor Hey, This new idea of mine might not seem more elegant than your [I]setTimout[/I] idea, but it is another approach to consider, and doesn't mess with your existing tags -- [I]just the <span>s you put in.[/I] [B]test_script.php[/B] [CODE=php] <?php if ( $_REQUEST ) { sleep(2); print $_REQUEST['task'].'::'.$_REQUEST['foo']; exit; } … Re: Frustrating Firefox Problem while making AJAX request on an anchor Programming Web Development by ximath Hi again, [QUOTE=~s.o.s~;683597]The error makes proper sense; think about it, the page which made an Ajax request in the first place is no longer there and hence a NS_ERROR_NOT_AVAILABLE. You have two options here: • Redirect the user to the Google home page once the Ajax request is complete and you have the status with you; analyze the … Re: Frustrating Firefox Problem while making AJAX request on an anchor Programming Web Development by langsor [QUOTE=ximath;683755] @langsor: Thanks, I have glanced your code a little bit, it seems a little complicated. Thus, I want to confirm that I have got it correct, what you've done there is instead of adding onclick and onmouseover eventhandlers in HTML, you specify them in javascript so that they are binded in runtime. And after request is complete,… Re: Frustrating Firefox Problem while making AJAX request on an anchor Programming Web Development by ximath [QUOTE=langsor;683819]You are correct, and this way you don't interfere with the existing code at all. You just need some [I]hook [/I]for the javascript to grab onto, like a [I]class-name[/I], [I]id[/I], [I]name [/I]or [I]href [/I]attribute ([I]almost anything really[/I]). I know this is a bit confusing code, but it is also incredibly flexible … Re: Frustrating Firefox Problem while making AJAX request on an anchor Programming Web Development by langsor [QUOTE=ximath;683571] One another solution I have come up with was tracking the AJAX requests and cancel the incomplete ones when user clicks the link. However, this may not only risk efficiency but also it would be totally inconsistent with the semantics of AJAX which is about making requests in such a way that no one actually knows when a … Re: Frustrating Firefox Problem while making AJAX request on an anchor Programming Web Development by Bob Holmes I'm not certain if this is what you are looking for. It works in both IE and FF. AJAX requests are made several times in quick succession (before the previous request can be completed) from the onload event of this page: [url]http://mmpp.com/mcweb200.nsf/formYieldSearch?Openform[/url]. Section 2. and section 4. on the page show 'Loading' in the … Re: Frustrating Firefox Problem while making AJAX request on an anchor Programming Web Development by ximath [QUOTE=Bob Holmes;683902]I'm not certain if this is what you are looking for. It works in both IE and FF. AJAX requests are made several times in quick succession (before the previous request can be completed) from the onload event of this page: [url]http://mmpp.com/mcweb200.nsf/formYieldSearch?Openform[/url]. Section 2. and section 4. on the … Re: Frustrating Firefox Problem while making AJAX request on an anchor Programming Web Development by langsor [B]@ximath[/B] Apparently I really like working on this puzzle ... I thought of this early this morning but have been away from my computer until now. This is likely the way it should be done -- [I]do you see what is different?[/I] [B]test_script.php [/B]([I]this is the same[/I]) [CODE=php] <?php if ( $_REQUEST ) { sleep(2); … Re: Frustrating Firefox Problem while making AJAX request on an anchor Programming Web Development by ~s.o.s~ > What I'm doing is, triggering two requests before page is redirected, which means their > destination is not undefined. When request is triggered, the page actually exists. Of course the destination exists and so does the source when making the request, but clicking on the link loads a new page and hence the context in which the … Re: Validation in Zend Framework Not working in Index Controller Programming Web Development by mschroeder if you're making the form submit to itself then you need to make the index action in the index controller look for post data so it knows it needs to validate the form. [code=php] <?php class IndexController extends Zend_Controller_Action { public function indexAction() { $form = new Default_Form_Index(); $request = $this… Re: Validation in Zend Framework Not working in Index Controller Programming Web Development by sugumarclick It works. . .Thankyou [QUOTE=mschroeder;1030904] Re: Zend_Form setAction problem Programming Web Development by Banderson This is the way I do MVC in instances like this. I post the form to self (eg: the curent URL) validate the form on the fly and check for credentials if all is well redirect to the auth pages. In other words above the line : $this->setAction("/auth/index"); you need to get the current url and pass it to the setAction() Re: Zend_Form setAction problem Programming Web Development by eburlea In my code it is exactly the same and that's why I post here, maybe there is other thing to do when calling the form from a view helper... Re: Zend_Form setAction problem Programming Web Development by Banderson The current url is not being declared nor do you have a redirection as I said in the code you have posted. Re: Zend_Form setAction problem Programming Web Development by eburlea The problem is that action does not go to the right page. For example I am in the page ->http://localhost/mysite/public/mycontroller/myaction and the form should post to ->http://localhost/mysite/public/auth/index but after I submit the form, the link transforms into ->http://localhost/mysite/public/mycontroller/auth/index Please advise …