We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
package main
import ( “fmt” “net/http” “github.com/gorilla/mux” ) func showRecord(w http.ResponseWriter, r *http.Request) { out :=“Hello World” w.Header().Set(“Content-Type”, “text/plain”) fmt.Fprintf(w,out)
} func handleRequests() { router :=mux.NewRouter() router.HandleFunc("/dashboard/show",showRecord).Methods(“GET”) http.ListenAndServe(":8080", router) }
func main() { handleRequests() }
In ryantx-ajax-panel I am able to get the output using iframe. But when using GET method in the panel getting the below error
Request Error {“data”:{“message”:“Unexpected error”}}
Please guide how to get the output using GET method instead of iframe.
Thanks, Debasish
The text was updated successfully, but these errors were encountered:
Hi,
Same problem here.. We are trying to get JSON and we get it just with iframe output !
Any solution @debasishdas033 ?
Sorry, something went wrong.
No branches or pull requests
package main
import (
“fmt”
“net/http”
“github.com/gorilla/mux”
)
func showRecord(w http.ResponseWriter, r *http.Request) {
out :=“Hello World”
w.Header().Set(“Content-Type”, “text/plain”)
fmt.Fprintf(w,out)
}
func handleRequests() {
router :=mux.NewRouter()
router.HandleFunc("/dashboard/show",showRecord).Methods(“GET”)
http.ListenAndServe(":8080", router)
}
func main() {
handleRequests()
}
In ryantx-ajax-panel I am able to get the output using iframe. But when using GET method in the panel getting the below error
Request Error
{“data”:{“message”:“Unexpected error”}}
Please guide how to get the output using GET method instead of iframe.
Thanks,
Debasish
The text was updated successfully, but these errors were encountered: