I know it's a very basic question but I've been searching for an answer for over 4 hours and I can't get it to work.
I have GeoServer running locally and I'm trying to open a layer in my browser through OpenLayers 2.
This is the code I have:
I copied everything exactly like the example in the OpenLayers website, only changed the URL for the layer and the layer workspace/name.
I tried changing the url to "localhost:8080/geoserver/nurc/wms" and every other possible combination, and I can't get it to work. All I can see is the "+" and "-" for zooming in and out of the layer, but the layer is blank, and sometimes it shows only pink tiles.
Firebug does not show any errors.
Any suggestions please?