views:

92

answers:

2

Hi all,

Im having an issue loading the JQuery library when I visit my webpage for the first time.. therefore none of its functions work...If i visit another page on my site, or reload it , the script works and continues to from there on... and to recreate the issue, I have to clear my cookies....I have checked my code and it seems fine to me, I think its something to do with the php configuration of the server but I am not too sure...

I have posted this question before but Now i have narrowed down my problem and here is a video link of the issue in action:

http://intellectuni.com/fmyscript.html

any help would be appreciated, as I am really frustrated and not sure what to do

thanks

A: 

Try to have jQuery wait for document ready...

$(document).ready(function() {
    function submitToggle() {
        ...
    }
});

Is this the problem?

Frankie
that can be abbreviated "$(function() { ... })" -- but we don't know what the code looks like so it's impossible to tell whether that's the problem.
Pointy
@Pointy, actually you can look at the code... just surf to http://intellectuni.com/ and check it from there. This was the first warning that popped my eyes. Maybe there are other red flags.
Frankie
yes thats the problem the submit button is not being called, if i go to the "top" page and then everything starts to work
Tim
A: 

actually this is silly but guys I have resolved my problem I had to use http://"www" rather then http://

so the domain wasn't configured for "http://".... Thanks for the great help and really appreciated your quick replies and effort

Tim
Great, perhaps you should flag your answer as the correct one? :)
Morningcoffee