This topic is locked
[SOLVED]

 Jquery strange error

6/29/2012 6:53:17 PM
PHPRunner General questions
A
Athlon author

Hi, could do with some guidance help please. Completely stuck with a strange issue. Previously everything worked fine and its suddenly started doing this strange thing.
I call a custom built autosave every 10 minutes and also fire the same function using a save and continue button. All is working but the style sheet is displaying incorrectly on some pages.

Normally orange - some pages it is grey. I am scratching my head and have been unable to identify whats causing it. Any ideas? It appears to be working fine but i am alarmed at the fault and more at the cause which seems to defy logic. Some pages it displays with an orange bar - others a grey bar - same style sheet !
Is there something that has not updated on the generated pages or something. Firebug shows no errors and the files are all loaded.
Loading jquery-ui-1.8.18.custom.min, jquery-ui-1.8.18.custom.css
Using enterprise edition.
Thanks,
Mike.

C
cgphp 6/29/2012

Try to not load the jquery UI js and css files and build your project. Do you still see the issue?

A
Athlon author 6/29/2012



Try to not load the jquery UI js and css files and build your project. Do you still see the issue?


Thanks - but if I do not load it - it fails and errors. If I load it without the css it runs but the box is obviously not positioned and is not formatted correctly.
<script type=text/javascript src="include/kimJS.js"></SCRIPT>

<script type=text/javascript src="include/jquery-ui-1.8.18.custom.min.js"></SCRIPT>

<script type=text/javascript src="include/MenuInd/stmenu.js"></SCRIPT>

<script type=text/javascript src="include/MenuChild/stmenu.js"></SCRIPT>

<script type=text/javascript src="include/MenuMeds/stmenu.js"></SCRIPT>
Now if i add the following to the header to call the css:

<link rel="stylesheet" type="text/css" href="include/jquery-ui-1.8.18.custom.css"/>
it works perfectly on 1 or 2 views but on all the others it is a different colour - grey.. not orange as should be.

Also I notice it strips this code <link rel="stylesheet" type="text/css" href="include/jquery-ui-1.8.18.custom.css"/> from the header after build - I have always had to edit the header afterwards.

Should it be written differently.
How can this work on some pages but not others. Even tried a page reset - no fix, no errors.
This make any sense?
Thanks again,
Mike.

A
Athlon author 7/1/2012

Is there anyone that can shed some light on this so I can fault find it. Bit at a loss as to how runner is using jquery. I can not see any reason why it works on some pages and changes colour only... on others. Its like it is using a different style sheet (colour) as default over riding this one but why on only some pages eludes me.
Also as mentioned previously - the loading of the style sheet is always stripped from the header after build... How / where should I put this please.

C
cgphp 7/1/2012
A
Athlon author 7/1/2012

Thanks but still no joy - I think there is a bug some where. I have found that the end "/" made it strip it from the header. So that's fixed.
My header looks like this:

<script type=text/javascript src="include/kimJS.js"></SCRIPT>

<script type=text/javascript src="include/jquery-ui-1.8.18.custom.min.js"></SCRIPT>

<script type=text/javascript src="include/MenuInd/stmenu.js"></SCRIPT>

<script type=text/javascript src="include/MenuChild/stmenu.js"></SCRIPT>

<script type=text/javascript src="include/MenuMeds/stmenu.js"></SCRIPT>

<link rel="stylesheet" href="include/jquery-ui-1.8.18.custom.css" type="text/css">
All files are loaded in firebug and no errors - infact everything actually works.

However this is what happens on some pages it is grey on other sit is Orange as intended.

Cant see a logical reason for this. The css loads in the correct place and everything - only the colour has changed.

I am worried because I can not see a cause and fear something is going to break.
Some pages like this: Wrong


Others are ok - Correct:


It would help me fault find if i knew how this was possible with Runner and how it works.

Notice slight difference in text style also - maybe a clue?
Many thanks - Mike.

C
cgphp 7/1/2012

I don't know what could be the problem. Try to load the latest dev bundle of jQuery UI (1.8.21).

A
Athlon author 7/31/2012



I don't know what could be the problem. Try to load the latest dev bundle of jQuery UI (1.8.21).


Didn't spend any time looking into it but it turned out to be a single graphic I copied from 1 page to an other that made it do this. Some html must have gotten carried with the graphic.

Found only by constant resets and doing things 1 at a time.. still no idea why lol.. but it may be useful to others. Drove me nuts.