Jump to content


Photo

MVC OOP Tutorial 34


  • Please log in to reply
4 replies to this topic

#1 wantho

wantho

    Newbie

  • Members
  • Pip
  • 3 posts

Posted 23 March 2013 - 11:39 PM

Hello Jesse.

I've hit a bad patch.

I'm on the mvc tutorial 4 from OOP tutorial 34 and a whoopsie has happened.

When I open up WAMP and run tutorial 4 the page looks fine and the 'X' links are the correct color,

When I click on one to delete, all the links go to red and locks in that state until I switch off and back on again.

I can still add to the database but cannot delete.

Your downloaded file works a treat and although I've tried comparing I can't spot any error.

could I have a jscript error..??



#2 JoeBengalen

JoeBengalen

    Member

  • Members
  • PipPip
  • 20 posts
  • LocationThe Netherlands

Posted 25 March 2013 - 01:02 AM

What is you quetion exactly. If the downloaded version works fine and yours doesnt, it seems pretty clear to me that you made some sort of mistake in you own version. Some mistakes are really hard to find (a single typo or forgotten semicolon).

 

You can try to replace parts of his code with yours and check if it still works. If not you know where the mistake is.



#3 wantho

wantho

    Newbie

  • Members
  • Pip
  • 3 posts

Posted 25 March 2013 - 06:24 PM

Hello Joe.

I've really tried hard at comparing and although I did find a couple of transcription errors this last bit has beaten me.

 

One thing I did that I was curious about was that part way through transcribing the code I had a javascript error pop up asking if I wanted to continue using scripts on a particular page, being a bit impatient and in order to get rid of the pop up I said no, I am now wondered if that is persistant and is denying me using scripts, I don't know enough about it to know if the thing resets after shut down.



#4 Jeff

Jeff

    Member

  • Members
  • PipPip
  • 14 posts
  • LocationWisconsin

Posted 28 March 2013 - 04:24 AM

It sounds like one of the tuts using Ajax, so yes you need JavaScript to run.

Javascript is browser related, not server, so restarting the server will not help.

 

Try restarting your browser, clear the cache first.

 

What browser are you using?

Chrome would be the best for starting as it has dev tools that are useful for JavaScript debugging.

Or Firefox with Firebug plugin.



#5 wantho

wantho

    Newbie

  • Members
  • Pip
  • 3 posts

Posted 28 March 2013 - 12:51 PM

Hello Jeff.

 

Thanks for replying.  I've given up on that particular problem at the moment.  I downloaded Jesse's tutorial and proceeded with that, everything is moving along just fine at the moment.

 

I did find that adding a '/' in links on two code lines in tut-5 accidently solved a problem so I might go back and take another look at the code from tut-4.

 

I am using WAMP which I managed to download in Opera... I am more of a mystery to my computer than it is to me..






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users