cake-php@googlegroups.com
[Top] [All Lists]

Croogo - search form in new theme fail

Subject: Croogo - search form in new theme fail
From: Daniel
Date: Mon, 10 Jan 2011 02:49:20 -0800 PST
Hello

I'm creating a new template for Croog. When I realized that the search
form does not work. The code is:
<form action="javascript: document.location.href=''+Croogo.basePath
+'search/q:'+encodeURI($('#searchform #q').val());" method="post"
id="searchform">
       <div class="input text">
                       <input type="text" id="q" value="ad" name="q">
               </div>
               <div class="submit">
                       <input type="submit" value="Search">
               </div>
</form>

I think the problem is because they do not know to run the javascript:
javascript: document.location.href=''+Croogo.basePath+'search/
q:'+encodeURI($('#searchform #q').val());

Forgive my bad English (Google Translate,;)),

A greeting and thanks in advance,
Daniel

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@xxxxxxxxxxxxxxxx
To unsubscribe from this group, send email to
cake-php+unsubscribe@xxxxxxxxxxxxxxxx For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

<Prev in Thread] Current Thread [Next in Thread>
  • Croogo - search form in new theme fail, Daniel <=