Welcome to the nuBuilder Forums!

Join our community by registering and logging in.
As a member, you'll get access to exclusive forums, resources, and content available only to registered users.

No longer able to 'drag objects' on form after refresh

Locked
ozpritcha
Posts: 5
Joined: Thu Oct 16, 2014 3:06 am

No longer able to 'drag objects' on form after refresh

Unread post by ozpritcha »

Hi there,

I'm getting the hang of nuBuilder, but I've just hit a snag.

I had just made some JavaScript changes to a form, and thought I'd try the 'refresh' button down the bottom right instead of backing out of the form and going in again for each change (I was doing this cause the normal CMD+R doesn't work as it logs me out)

Anyway, what happened after that was that my form layout was reset (all of the objects lay over the top of each other and in a single vertical line)

Bugger... oh well, I'll just move them back.

When I click on the drag objects icon nothing appears in my list any more!! I also can't select objects with the mouse to move them.

I tried going in and editing an object then coming back to the form, but it didn't make any difference.

Any ideas would be much appreciated. Of course this happened on my most complex form... so I don't really feel like rebuilding the whole thing.

Thanks for your help
ozpritcha
Posts: 5
Joined: Thu Oct 16, 2014 3:06 am

Re: No longer able to 'drag objects' on form after refresh

Unread post by ozpritcha »

Just realised there are a bunch of JS errors popping up.

This comes up even on loading the login screen
Failed to load resource: net::ERR_CACHE_MISS http://localhost/c.rrw-d/

The others whenever I open any of the user forms
Uncaught SyntaxError: Unexpected identifier jquery-1.8.3.js:564
Uncaught SyntaxError: Unexpected identifier jquery-1.8.3.js:564
admin
Site Admin
Posts: 2825
Joined: Mon Jun 15, 2009 2:23 am
Been thanked: 29 times

Re: No longer able to 'drag objects' on form after refresh

Unread post by admin »

ozpritcha,

Sounds like you have some custom js with errors.

The reason all the Objects are in one column is that nuBuilder repositions them after loading the Edit Form, if you have an error in your js for that Form, it dies before it gets to reposition anything.

Try commenting out your js bit by bit until you find the problem.

Steven
ozpritcha
Posts: 5
Joined: Thu Oct 16, 2014 3:06 am

Re: No longer able to 'drag objects' on form after refresh

Unread post by ozpritcha »

Ok... that was a waste of time!

It seems that nuBuilder's refresh button works fine....

I had foolishly missed an inverted comma in my JavaScript code, which brought everything crashing down.

I was misled by the fact that nuBuilder uses JS to place elements on the screen. So when I broke Javascript nothing got placed correctly.

Cheers guys.
ozpritcha
Posts: 5
Joined: Thu Oct 16, 2014 3:06 am

Re: No longer able to 'drag objects' on form after refresh

Unread post by ozpritcha »

admin wrote:ozpritcha,

Sounds like you have some custom js with errors.

The reason all the Objects are in one column is that nuBuilder repositions them after loading the Edit Form, if you have an error in your js for that Form, it dies before it gets to reposition anything.

Try commenting out your js bit by bit until you find the problem.

Steven
Thanks heaps Steven,

Unfortunately I saw your message just after solving it!

If I had used the refresh button prior to that it would have twigged straight away! But when that happened I presumed it was some sort of reset positioning button.

Thanks again,
Antony
admin
Site Admin
Posts: 2825
Joined: Mon Jun 15, 2009 2:23 am
Been thanked: 29 times

Re: No longer able to 'drag objects' on form after refresh

Unread post by admin »

No worries Antony.
Locked