Form destroys web page layout. Html elements generated all over my files. Why?

  • 1
  • Problem
  • Updated 4 years ago
Hello guys. I am recently new to this phonegap and i must tell that i love it.

But i came across a problem.

I have a form which is just a simple textfield. And when user presses enter (done) on iphone it fires an action that i don't know why or which one that just messes my whole webpage. And another problem that i do not like is, that it is generating html tags all over my html files. I am using framework7 in this project. Thank you very much
Photo of Mihael Berčič

Mihael Berčič

  • 3 Posts
  • 0 Reply Likes
  • Very sad and anxios

Posted 4 years ago

  • 1
Photo of Petra V.

Petra V., Champion

  • 7794 Posts
  • 1391 Reply Likes
Let me assure you that Phonegap Build does certainly not "generate html elements all over your html files".

And what kind of 'action' is fired?
Photo of Mihael Berčič

Mihael Berčič

  • 3 Posts
  • 0 Reply Likes
@Petra i don't know how to post code so here is gist: https://gist.github.com/anonymous/938...

You can see the difference between index.htm (my local file) and myapp.html which is file after starting the server.

Here are some images:

Before search: 1 after search 2

Thank you
Photo of Petra V.

Petra V., Champion

  • 7794 Posts
  • 1391 Reply Likes
I have not enough information to check anything.

Firstly, I don't know how you expect myapp.html to display.
Secondly, myapp.html's HTML element has all kinds of CSS classes, of which I can't see how they are defined.
Thirdly, I can't check whether or not the css and js files on the client and the server are identical (or perhaps of different versions)
Fourthly, I find several pieces in myapp.html quite remarkable, such as:
style="width: 320px; max-width: 280px; height: 356px;"

And also, I have no clue how and why you are jumping from a client html document to a server html document.
Photo of Mihael Berčič

Mihael Berčič

  • 3 Posts
  • 0 Reply Likes
This is because i mostly edit html from jquery. Server and client i meant. The one i write and the one that google shows up. Ill just re-write it from start i guess.
Photo of JesseMonroy650 (Volunteer)

JesseMonroy650 (Volunteer), Champion

  • 3325 Posts
  • 122 Reply Likes
@Mihael
Since this is your first post, please answer the following question:
- is this your first hybrid app?
- are you using Desktop App?
- are you using CLI, Build, or SDK? Please do not assume the answer, please read the link.

Thanks
Jesse