jquery-archive / jquery-mobile

jQuery Mobile Framework
https://jquerymobile.com
Other
9.69k stars 2.4k forks source link

docs: page self-submitting-forms missing JQM #4242

Closed frequent closed 12 years ago

frequent commented 12 years ago

This page in the docs could use a JQM makeover:

Self submitting forms http://jquerymobile.com/demos/1.1.0/docs/forms/forms-sample-selfsubmit.php

Looks like plain HTML. Tried in FF and Chrome.

MauriceG commented 12 years ago

Hi Anne :-) I saw this issue also and it seems this forms demo pages are a bit "orphaned". The script tag for jqm-docs.js is not correct. After correction this in local repo, I've got a php warning. Maurice

agcolom commented 12 years ago

Hi :-) oh yes, this looks wrong! Will take a look this evening...

frequent commented 12 years ago

It sure is a classic look :-)

MauriceG commented 12 years ago

@frequent may somebody wanted to remember us how boring the world would look without the power of jQuery mobile, the coolest code since Commodore C64 Basic ;-)

jaspermdegroot commented 12 years ago

Time for a break... going to play Pacman ;-)

MauriceG commented 12 years ago

yeah! there is now ethernet awailable for the c64. we can play over the internet :-)

jaspermdegroot commented 12 years ago

I prefer 56k modem, otherwise you probably beat me :-)

Back to the issue. I am pretty sure that...

<script src="../../js/"></script>

should be replaced by...

<script src="../../js/jquery.mobile.js"></script>

When you load a script you have to point to a file, not a folder. The styling is missing because the framework JS is not loaded (and no classes have been added) when you enter the page directly.

frequent commented 12 years ago

Ups... Zak Mckracken just beat Pacman... :-)

agcolom commented 12 years ago

Hi everyone, just to let you know the ../../js issue is now being looked at... (server thing) and shouldn't need changing.

Retro talk I love it... I had an Oric-1 ;-) I used to spend weekends copying code from book! Fantastic! Googdnight everyone, it's bedtime for me...

jaspermdegroot commented 12 years ago

I just saw this commit https://github.com/jquery/jquery-mobile/commit/76c52b96b7ea87bbab5974e04f692f4b88a67c86 which explains it all to me. The jquery.mobile.js part after ../../js/ is added by Makefile (now also to php files). It just didn't cross my mind that it has to point to another file for releases.

agcolom commented 12 years ago

I think we can close as fixed now.