Re: Double background lines after a search

44 views
Skip to first unread message

Sean Gilligan

unread,
Aug 29, 2012, 6:57:14 PM8/29/12
to iPhoneWebDev
Hi Kurt,

What version of iUI are you using? Make sure you are on 0.4 (the
latest) as there were many fixes for forms. If you could post a link
to your app or a simplified sample (jsfiddle.net is even better) that
reproduces the issue that would greatly help.

Regards,

Sean

Remi Grumeau 

unread,
Aug 30, 2012, 5:39:25 AM8/30/12
to iphone...@googlegroups.com
it seems like a common rookie mistake, having two reasons most of the time:
- selected=true attribute tag on new div
- div.toolbar in new file

Like Sean says, a URL we can test might help a lot

Remi Grumeau

On 29 août 2012, at 03:21 PM, Kurt <kurtm...@gmail.com> wrote:

> First off just want to say how awesome the iUI framework is. We are planning on using it for multiple projects in the future.
>
> Currently we are using vTigerCRM (PHP) which has the older version of iUI loaded as an add on. We are trying to upgrade to the latest version of iUI and so far things have gone very smoothly. Due to this being a web application programming in PHH, we have had to use the "target="_webapp"" for a lot of the links.
>
> Unfortunately we are have problems with the search / Submit button to search through our application, which basically refreshing the current page with the results. The background of the title bar duplicates each time you press search.. Here is what it looks after 4 searches: http://contrack.iupat.info/After.png . The search functionality is actually working just fine, the only problem is the duplicate title bar background?
>
> Here is the code for our button:
>
> <div class="toolbar">
> <h1 id="pageTitle"></h1>
> <a class="button leftButton" href="javascript:window.close();">Home</a>
> <a class="button" href="#searchForm">Search</a>
> </div>
>
> Here is the code for the form:
>
> <form id="searchForm" class="dialog" onsubmit="if(this.search.value == '') return false;" action="index.php" method="GET">
> <fieldset>
> <h1>{$_MODULE->label()}</h1>
> <a class="button leftButton" type="cancel">Cancel</a>
> <a target="_webapp" class="button blueButton" type="submit">Search</a>
> <label for="keyword">Search:</label>
> <input type="hidden" name="_operation" value="listModuleRecords" />
> <input type="hidden" name="module" value="{$_MODULE->name()}" />
> <input id='__searchbox__q_' type="text" name="search" class="searchbox" value="{$_SEARCH}"/ placeholder="Type your keywords">
> </fieldset>
> </form>
>
> Any help would be appreciated. Thank you again for all your hard work with this framework.
>
> Kurt
>
> --
> You received this message because you are subscribed to the Google Groups "iPhoneWebDev" group.
> To post to this group, send email to iphone...@googlegroups.com.
> To unsubscribe from this group, send email to iphonewebdev...@googlegroups.com.
> Visit this group at http://groups.google.com/group/iphonewebdev?hl=en.
>
>

Remi Grumeau 

unread,
Aug 30, 2012, 9:40:59 AM8/30/12
to iphone...@googlegroups.com
Tes URL is blank here.

Remi

On 30 août 2012, at 02:25 PM, Kurt <kurtm...@gmail.com> wrote:

Gentlemen - I appreciate the quick feed back. And yes I believe it is probably a big "rookie" mistake. I have setup a demo environment quick, of course not all of the functionality is working inside. But the general idea is there and you can see double lines after you login and when you perform a search under the projects section.

 

http://test.iupat.info/vtigercrm/modules/Mobile/ user:test pass:test

 

I appreciate you guys take the time to look at it. I believe it has to do withe the way I am submitting the form in php, back to the index.php file. Like I said before, I had to make a lot of

the URL's target=webapp for things to work, however there is no way to do that with forms. (At least that I can figure out).

 

Kurt

Remi Grumeau 

unread,
Aug 30, 2012, 11:09:13 AM8/30/12
to iphone...@googlegroups.com
tell me about it... funny you ask about it today btw :)

i'm working on this at the moment, but it might not be part of master iUI branch anytime soon (if anytime) but an "extended" branch.


Remi

On 30 août 2012, at 04:25 PM, Kurt <kurtm...@gmail.com> wrote:

Remi, I had to update DNS this morning for this test server. Probally hasn't propagated yet. Should be pointing to 12.141.183.227.
 
I noticed IUI 0.4 doesn't work well with IE either and give's blank pages. Seems to work better with firefox.

Sean Gilligan

unread,
Aug 30, 2012, 4:47:08 PM8/30/12
to iphone...@googlegroups.com
On 8/30/12 7:25 AM, Kurt wrote:

> I noticed IUI 0.4 doesn't work well with IE

iUI was designed to only work with W3C-compliant browsers and the DOM
level 2 API and has never worked with IE. Now that IE 9, 10 support
that API, I would like to see pull requests on GitHub to add modern IE
support.

We're about to start work on iUI 0.5 and one *possible* feature is
support for the old IE event model (someone besides me would need to
step forward to lead this effort and to do the QA and support
necessary.) This would (in my opinion) be best provided by using an
external (pluggable) library for DOM interaction. jQuery & Zepto come
to mind as possible solutions, but are by no means the only way to go.

> either and give's blank pages. Seems to work better with firefox.

iUI supports Firefox with some styling differences (that we'd be happy
to receive pull requests to correct.) If you find any problems with
Firefox please create an Issue in the Google Code Issue DB.


-- Sean

Rémi Grumeau

unread,
Aug 30, 2012, 6:00:00 PM8/30/12
to iphone...@googlegroups.com
Still getting a timeout, even if using 

Form in the music sample should submit to music.gtpl or music.php.
Not the music.html

Remi

On Aug 30, 2012, at 10:16 PM, Kurt <kurtm...@gmail.com> wrote:

OK, so I am officially scrambled and can’t figure out why this continues to put multiple lines each time I do a search. I did resolve the login page issue, as it calls a different portion of my program. So I was able to take out the title DIV. I did reproduce it with one of your samples:

 

http://contrack.iupat.info/iui/samples/music/music.html

 

When you do a search the form of course submits the post information back to the same music.html page just like my application does. When this happens, it makes a duplicate title line. Hope this helps.

 

The funny thing in my application, we page the results of the records. When we do the search the double line exists, however when I click to go to the next page the double line disappears. Of course the hyperlink just links to the same page and gives the next set of results. So in essences its doing the same thing as a search, however via a hyperlink and not a form...

 

Hopefully you can understand my rambling and it doesn’t just run together J

 

Kurt

Sean Gilligan

unread,
Aug 30, 2012, 6:02:36 PM8/30/12
to iphone...@googlegroups.com, Kurt
On 8/30/12 1:16 PM, Kurt wrote:

I did reproduce it with one of your samples:

 

http://contrack.iupat.info/iui/samples/music/music.html



I can't load that URL.  It starts to load, but Safari 6 times out and displays a "can't connect to server" message.

Try to reproduce the problem on our demo site:
http://demo.iui-js.org/samples/music/music.html#_home

Is the problem reproducible there?


-- Sean

p.s. There is "Form Tests" web page on the demo site that has some example forms with different configurations that you might find helpful:
http://demo.iui-js.org/test/form-test.html#_formTest


Sean Gilligan

unread,
Aug 31, 2012, 11:32:22 AM8/31/12
to iphone...@googlegroups.com
Also (as Remi suggested), please double-check that you are not Ajaxing in a complete HTML page and inserting it into the DOM.  That might be your problem.

-- Sean

Sent from my iPhone

On Aug 31, 2012, at 7:01 AM, Kurt <kurtm...@gmail.com> wrote:

Guys - I apologize as I am now finding out our hosting server is having DNS record issues which is why you can't get to my links. When they get fixed I will repost for you to take a look.
 
Personally I would worry about Internet Explorer capabilities as it is quickly losing market share and increasingly disappoints me.
 
Sean - I am going to take your advise and review the form examples. Hopefully I can find a fix in there.
 
Hopefully, I havn't wasted your time.
 
Thanks,
   Kurt

Remi Grumeau

unread,
Aug 31, 2012, 12:25:58 PM8/31/12
to iphone...@googlegroups.com
This might be a good topic for a article somewhere in a blog or website or wiki.
Searching in a database from an iUI page using forms & PHP (& provide server-side alternative sample in Grails, Ruby, ASPx, ...)


Remi

Remi Grumeau

unread,
Aug 31, 2012, 12:43:30 PM8/31/12
to iphone...@googlegroups.com
This might be a good topic for a article somewhere in a blog or website or wiki.
Searching in a database from an iUI page using forms & PHP (& provide server-side alternative samples for ASPx, Ruby, ...) 

Remi


On Fri, Aug 31, 2012 at 5:32 PM, Sean Gilligan <msgil...@gmail.com> wrote:
Reply all
Reply to author
Forward
0 new messages